-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
251 lines (251 loc) · 8.43 KB
/
Copy pathpackage.json
File metadata and controls
251 lines (251 loc) · 8.43 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
"name": "squarecode",
"displayName": "SquareCode",
"description": "Multi-subscription AI chat — Claude, GPT, and Gemini at one table via your existing subscriptions, no API keys.",
"version": "0.3.0",
"publisher": "squarehead",
"private": true,
"license": "MIT",
"engines": {
"vscode": "^1.93.0"
},
"categories": [
"Chat"
],
"main": "./dist/extension.js",
"activationEvents": [],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "squarecode",
"title": "SquareCode",
"icon": "media/icons/squarecode.svg"
}
],
"panel": [
{
"id": "squarecode-panel",
"title": "SquareCode",
"icon": "media/icons/squarecode.svg"
}
]
},
"views": {
"squarecode": [
{
"type": "webview",
"id": "squarecode.chat",
"name": "Chat",
"icon": "media/icons/squarecode.svg",
"contextualTitle": "SquareCode"
}
],
"squarecode-panel": [
{
"type": "webview",
"id": "squarecode.panelChat",
"name": "Chat",
"icon": "media/icons/squarecode.svg",
"contextualTitle": "SquareCode"
}
]
},
"commands": [
{
"command": "squarecode.open",
"title": "Open Chat",
"category": "SquareCode"
},
{
"command": "squarecode.openInEditor",
"title": "Open Chat in Editor Area",
"category": "SquareCode"
},
{
"command": "squarecode.newThread",
"title": "New Thread",
"category": "SquareCode"
},
{
"command": "squarecode.addSelectionToChat",
"title": "Add Selection to SquareCode Chat",
"category": "SquareCode"
},
{
"command": "squarecode.sidecar.restart",
"title": "Sidecar: Restart",
"category": "SquareCode"
},
{
"command": "squarecode.sidecar.login",
"title": "Sidecar: Log In to Provider…",
"category": "SquareCode"
},
{
"command": "squarecode.changeParticipantModel",
"title": "Change Participant Model",
"category": "SquareCode"
}
],
"menus": {
"editor/context": [
{
"command": "squarecode.addSelectionToChat",
"when": "editorHasSelection",
"group": "squarecode@1"
}
],
"commandPalette": [
{
"command": "squarecode.addSelectionToChat",
"when": "editorHasSelection"
}
]
},
"configuration": {
"title": "SquareCode",
"properties": {
"squarecode.sidecar.mode": {
"type": "string",
"enum": [
"managed",
"external"
],
"enumDescriptions": [
"SquareCode downloads and supervises the CLIProxyAPI sidecar (with your consent).",
"You run CLIProxyAPI yourself; SquareCode only connects and health-checks it."
],
"default": "managed",
"description": "How the CLIProxyAPI sidecar is run."
},
"squarecode.sidecar.port": {
"type": "number",
"default": 8317,
"minimum": 1024,
"maximum": 65535,
"description": "Localhost port for the managed CLIProxyAPI sidecar."
},
"squarecode.sidecar.binaryPath": {
"type": "string",
"default": "",
"description": "Optional path to a CLIProxyAPI binary. When empty in managed mode, SquareCode downloads a pinned release from GitHub (asks first)."
},
"squarecode.sidecar.externalUrl": {
"type": "string",
"default": "http://127.0.0.1:8317",
"description": "Base URL of your own CLIProxyAPI instance (used when squarecode.sidecar.mode is \"external\")."
},
"squarecode.participants": {
"type": "array",
"default": [],
"markdownDescription": "Participants at the table. Leave empty (default) to auto-seat one participant per connected account; set this only to take manual control of the table. Each manually configured participant needs a stable `id` (used in @-mentions), a `displayName`, and a `model` string (validate against the sidecar's `/v1/models`).",
"items": {
"type": "object",
"required": [
"id",
"displayName",
"model"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_-]*$",
"description": "Stable id used in @-mentions and transcripts."
},
"displayName": {
"type": "string"
},
"color": {
"type": "string",
"format": "color",
"default": "#888888",
"description": "Avatar/label accent color."
},
"model": {
"type": "string",
"description": "Model string passed to the endpoint."
},
"systemPrompt": {
"type": "string",
"default": "",
"description": "Optional per-participant persona/instructions."
},
"enabled": {
"type": "boolean",
"default": true
},
"effort": {
"type": "string",
"enum": [
"none",
"auto",
"low",
"medium",
"high",
"xhigh",
"max"
],
"description": "Default reasoning effort for this participant. Omit for the provider default. Silently ignored by non-thinking models. (Bonfire is per-send only.)"
}
}
}
},
"squarecode.router.defaultMode": {
"type": "string",
"enum": [
"manual",
"roundRobin"
],
"default": "manual",
"description": "Who answers when a message has no @-mention."
},
"squarecode.context.autoIncludeActiveFile": {
"type": "boolean",
"default": false,
"description": "Automatically attach the active editor file as a context block on each message."
},
"squarecode.tools.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Give participants access to the folder open in VS Code via tools (list folders, read files, find files, search contents). This is the master switch — turn it off to keep the conversation to what you paste in. Whether a given send is **read-only** or **Full access** (also create/edit/delete files and run commands) is chosen per-message with the 🔒 toggle in the composer, which always starts read-only. (Not used by Bonfire, whose subagents are text-only.)"
},
"squarecode.tools.commandsEnabled": {
"type": "boolean",
"default": true,
"markdownDescription": "In Full access mode, allow the `run_command` tool (run shell commands like tests/builds). Each command still requires your approval (Allow / Deny / Allow Commands in this Session). Turn this off to permit file writes but never command execution."
},
"squarecode.prompt.softLimitChars": {
"type": "number",
"default": 150000,
"minimum": 10000,
"description": "Soft character budget for assembled prompts; oldest messages are omitted (with a marker) beyond it."
}
}
}
},
"scripts": {
"compile": "npm run check-types && npm run lint && node esbuild.js",
"check-types": "tsc --noEmit -p ./ && tsc --noEmit -p src/webview && tsc --noEmit -p tsconfig.test.json",
"watch": "node esbuild.js --watch",
"test": "vitest run",
"lint": "eslint src test",
"mock-server": "node test/fixtures/mockServerCli.ts",
"package": "npm run compile && node esbuild.js --production && vsce package"
},
"dependencies": {
"markdown-it": "^14.1.0"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
"@types/node": "^20.14.0",
"@types/vscode": "~1.93.0",
"@vscode/vsce": "^3.2.0",
"esbuild": "^0.24.0",
"eslint": "^9.15.0",
"jsdom": "^29.1.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.15.0",
"vitest": "^2.1.5"
}
}