-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
151 lines (151 loc) · 5 KB
/
Copy pathpackage.json
File metadata and controls
151 lines (151 loc) · 5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "command-code-provider",
"displayName": "Command Code Provider",
"description": "Use Command Code models in VS Code's AI features, including Copilot Chat.",
"version": "0.3.6",
"publisher": "devparanjay",
"license": "AGPL-3.0-or-later",
"icon": "media/icon.png",
"engines": {
"vscode": "^1.104.0"
},
"categories": [
"AI",
"Chat",
"Machine Learning"
],
"keywords": [
"command code",
"cmdcode",
"language model",
"language-models",
"language model provider",
"copilot"
],
"repository": {
"type": "git",
"url": "https://github.com/devparanjay/cmdcode-vsc.git"
},
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished",
"onLanguageModelChatProvider:cmdcode",
"onLanguageModelChatProvider:cmdcode-api"
],
"contributes": {
"languageModelChatProviders": [
{
"vendor": "cmdcode",
"displayName": "Command Code CLI",
"managementCommand": "cmdcode.showLog"
},
{
"vendor": "cmdcode-api",
"displayName": "Command Code API",
"managementCommand": "cmdcode.setApiKey"
}
],
"commands": [
{
"command": "cmdcode.setApiKey",
"title": "Command Code: Set API Key",
"category": "Command Code"
},
{
"command": "cmdcode.showLog",
"title": "Command Code: Show Log",
"category": "Command Code"
},
{
"command": "cmdcode.copyDiagnostics",
"title": "Command Code: Copy Diagnostics",
"category": "Command Code"
},
{
"command": "cmdcode.restartProvider",
"title": "Command Code: Refresh Model List",
"category": "Command Code"
}
],
"configuration": {
"title": "Cmd Code",
"properties": {
"cmdcode.cliPath": {
"type": "string",
"default": "",
"markdownDescription": "Absolute path to the `command-code` CLI. Leave empty to resolve `cmd` on `PATH` automatically."
},
"cmdcode.maxTurns": {
"type": "number",
"default": 24,
"minimum": 1,
"maximum": 100,
"description": "Maximum agent turns per request, passed as --max-turns. Clamped to 1-100."
},
"cmdcode.timeoutSeconds": {
"type": "number",
"default": 600,
"minimum": 0,
"description": "Wall-clock deadline for a single request, in seconds. 0 disables the deadline."
},
"cmdcode.maxPromptChars": {
"type": "number",
"default": 900000,
"minimum": 1000,
"description": "Maximum characters in the rendered prompt. History is truncated to fit; the live request never is."
},
"cmdcode.imageSupport": {
"type": "boolean",
"default": true,
"markdownDescription": "Read images you attach, on vision-capable models. On the CLI path this tells the Command Code CLI to read images without asking each time, because a headless run has no way to prompt. Turn it off to never send images."
},
"cmdcode.enableCliProvider": {
"type": "boolean",
"default": true,
"markdownDescription": "Offer the **Command Code CLI** provider group. Works on every plan, reads images, but cannot run Copilot's tools. Turn it off to run API-only."
},
"cmdcode.enableApiProvider": {
"type": "boolean",
"default": true,
"markdownDescription": "Offer the **Command Code API** provider group. Needs an API key and a GOAT-or-higher plan. This is the only path that can run Copilot's tools, including browser control."
},
"cmdcode.zeroDataRetention": {
"type": "boolean",
"default": false,
"markdownDescription": "API only. Enforce zero data retention (`x-cmd-zdr: 1`): no prompt training, and requests are refused rather than routed through a provider that cannot honour it. Narrows which tools may be sent, so some tools are dropped when this is on."
},
"cmdcode.logLevel": {
"type": "string",
"enum": [
"error",
"normal",
"verbose"
],
"enumDescriptions": [
"Only errors.",
"Errors plus lifecycle messages.",
"Everything, including NDJSON frame diagnostics."
],
"default": "normal",
"description": "Verbosity of the \"Cmd Code\" output channel."
}
}
}
},
"scripts": {
"build": "tsup",
"check": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit && vitest run",
"check:real-cli": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/check-real-cli.ts",
"test": "vitest run",
"package": "vsce package",
"vscode:prepublish": "npm run build"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/vscode": "1.104.0",
"@vscode/vsce": "^4.0.0",
"tsup": "^8.5.1",
"typescript": "^5.9.0",
"vitest": "^5.0.2"
}
}