mirror of
https://github.com/larsbaunwall/vscode-copilot-bridge.git
synced 2025-10-05 22:22:59 +00:00
79 lines
2.4 KiB
JSON
79 lines
2.4 KiB
JSON
{
|
|
"name": "copilot-bridge",
|
|
"displayName": "Copilot Bridge",
|
|
"description": "Local OpenAI-compatible chat endpoint bridging to GitHub Copilot Chat via VS Code Chat provider.",
|
|
"version": "0.1.0",
|
|
"publisher": "thinkability",
|
|
"engines": {
|
|
"vscode": "^1.90.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"onStartupFinished",
|
|
"onCommand:bridge.enable",
|
|
"onCommand:bridge.disable",
|
|
"onCommand:bridge.status"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"commands": [
|
|
{ "command": "bridge.enable", "title": "Copilot Bridge: Enable" },
|
|
{ "command": "bridge.disable", "title": "Copilot Bridge: Disable" },
|
|
{ "command": "bridge.status", "title": "Copilot Bridge: Status" }
|
|
],
|
|
"configuration": {
|
|
"title": "Copilot Bridge",
|
|
"properties": {
|
|
"bridge.enabled": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Start the Copilot Bridge automatically when VS Code starts."
|
|
},
|
|
"bridge.host": {
|
|
"type": "string",
|
|
"default": "127.0.0.1",
|
|
"description": "Bind address for the local HTTP server. For security, keep this on loopback."
|
|
},
|
|
"bridge.port": {
|
|
"type": "number",
|
|
"default": 0,
|
|
"description": "Port for the local HTTP server. 0 picks a random ephemeral port."
|
|
},
|
|
"bridge.token": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional bearer token required in Authorization header. Leave empty to disable."
|
|
},
|
|
"bridge.historyWindow": {
|
|
"type": "number",
|
|
"default": 3,
|
|
"minimum": 0,
|
|
"description": "Number of user/assistant turns to include (system message is kept separately)."
|
|
},
|
|
"bridge.maxConcurrent": {
|
|
"type": "number",
|
|
"default": 1,
|
|
"minimum": 1,
|
|
"description": "Maximum concurrent /v1/chat/completions requests. Excess requests return 429."
|
|
},
|
|
"bridge.verbose": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Verbose logging to the 'Copilot Bridge' output channel."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"compile": "tsc -p .",
|
|
"watch": "tsc -w -p .",
|
|
"vscode:prepublish": "npm run compile"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.10.0",
|
|
"typescript": "^5.4.0",
|
|
"vscode": "^1.1.40"
|
|
}
|
|
}
|