-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
415 lines (415 loc) · 12.5 KB
/
Copy pathpackage.json
File metadata and controls
415 lines (415 loc) · 12.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
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
{
"name": "pion-code",
"publisher": "auchan",
"author": "Pi on Code contributors",
"displayName": "Pi / Code",
"description": "A Pi-native multi-session coding agent workspace for VS Code. Pi Coding Agent / Pi on Code / Pi Code GUI.",
"version": "0.2.13",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/auchan/pi-on-code.git"
},
"homepage": "https://github.com/auchan/pi-on-code#readme",
"bugs": {
"url": "https://github.com/auchan/pi-on-code/issues"
},
"icon": "pi-icon-light.png",
"galleryBanner": {
"color": "#0b0c0e",
"theme": "dark"
},
"keywords": [
"pi",
"coding-agent",
"ai",
"chat",
"agent",
"llm",
"vscode"
],
"packageManager": "bun@1.3.14",
"type": "module",
"engines": {
"vscode": "^1.118.0"
},
"extensionKind": [
"workspace"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "Pi on Code can execute commands and modify workspace files, so it requires a trusted workspace."
},
"virtualWorkspaces": {
"supported": false,
"description": "Pi on Code requires a local or remote filesystem and a workspace-installed Pi runtime."
}
},
"categories": [
"AI",
"Chat"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "pi-on-code.codeAgent",
"title": "Pi: Code Agent",
"icon": "$(hubot)"
},
{
"command": "pi-on-code.abort",
"title": "Pi: Abort"
},
{
"command": "pi-on-code.installPi",
"title": "Pi: Install Pi Coding Agent"
},
{
"command": "pi-on-code.setAnthropicApiKey",
"title": "Pi: Set Anthropic API Key"
},
{
"command": "pi-on-code.setOpenAIApiKey",
"title": "Pi: Set OpenAI API Key"
},
{
"command": "pi-on-code.clearApiKeys",
"title": "Pi: Clear Stored API Keys"
},
{
"command": "pi-on-code.pickModel",
"title": "Pi: Switch Model"
},
{
"command": "pi-on-code.cycleModel",
"title": "Pi: Cycle Model"
},
{
"command": "pi-on-code.pickThinkingLevel",
"title": "Pi: Set Thinking Level"
},
{
"command": "pi-on-code.cycleThinkingLevel",
"title": "Pi: Cycle Thinking Level"
},
{
"command": "pi-on-code.pickFile",
"title": "Pi: Pick File to Reference"
},
{
"command": "pi-on-code.pickCommand",
"title": "Pi: Slash Command Picker"
},
{
"command": "pi-on-code.pickFork",
"title": "Pi: Fork Session from Message"
},
{
"command": "pi-on-code.exportSession",
"title": "Pi: Export Session to HTML"
},
{
"command": "pi-on-code.cloneSession",
"title": "Pi: Clone Session"
},
{
"command": "pi-on-code.login",
"title": "Pi: Set Up API Key / Login"
},
{
"command": "pi-on-code.resumeSession",
"title": "Pi: Resume Session"
},
{
"command": "pi-on-code.compact",
"title": "Pi: Compact Context"
},
{
"command": "pi-on-code.toggleAutoCompaction",
"title": "Pi: Toggle Auto-Compaction"
},
{
"command": "pi-on-code.toggleAutoRetry",
"title": "Pi: Toggle Auto-Retry"
},
{
"command": "pi-on-code.addSession",
"title": "Pi: Add Pi Session",
"icon": {
"light": "media/pi-editor-button.svg",
"dark": "media/pi-editor-dark.svg"
}
},
{
"command": "pi-on-code.revealEntry",
"title": "Pi: Reveal Entry in Chat"
},
{
"command": "pi-on-code.copyEntryText",
"title": "Pi: Copy Entry Text"
},
{
"command": "pi-on-code.focusSession",
"title": "Pi: Focus Session"
},
{
"command": "pi-on-code.pickSessionModel",
"title": "Pi: Pick Model for Session"
},
{
"command": "pi-on-code.pickSessionThinking",
"title": "Pi: Pick Thinking Level for Session"
},
{
"command": "pi-on-code.reloadContext",
"title": "Pi: Reload Context Files"
},
{
"command": "pi-on-code.forkSession",
"title": "Pi: Fork Session from Message"
},
{
"command": "pi-on-code.resumePastSession",
"title": "Pi: Resume Past Session"
},
{
"command": "pi-on-code.deletePastSession",
"title": "Pi: Delete Archived Session"
},
{
"command": "pi-on-code.deleteAllPastSessions",
"title": "Pi: Delete All Archived Sessions",
"icon": "$(trash)"
},
{
"command": "pi-on-code.filterPastSessions",
"title": "Pi: Filter Past Sessions",
"icon": "$(filter)"
},
{
"command": "pi-on-code.installPackage",
"title": "Pi: Install Package"
},
{
"command": "pi-on-code.uninstallPackage",
"title": "Pi: Uninstall Package"
},
{
"command": "pi-on-code.searchPackages",
"title": "Pi: Search Packages",
"icon": "$(search)"
},
{
"command": "pi-on-code.refreshPackages",
"title": "Pi: Refresh Packages",
"icon": "$(refresh)"
},
{
"command": "pi-on-code.updatePackage",
"title": "Pi: Update Package"
},
{
"command": "pi-on-code.updateAllPackages",
"title": "Pi: Update All Packages",
"icon": "$(sync)"
},
{
"command": "pi-on-code.openPiDevMarketplace",
"title": "Pi: Open Pi.dev Marketplace"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "pi-on-code",
"title": "Pi on Code",
"icon": "media/pi-activity.svg"
}
]
},
"views": {
"pi-on-code": [
{
"type": "webview",
"id": "pi-on-code.sessions",
"name": "Pi"
}
]
},
"keybindings": [
{
"command": "pi-on-code.codeAgent",
"key": "ctrl+alt+i",
"mac": "cmd+alt+i"
}
],
"configuration": {
"title": "Pi on Code",
"properties": {
"pi-on-code.promptToInstall": {
"type": "boolean",
"default": true,
"description": "Prompt to install Pi if it is not found. You can always run Pi: Install Pi Coding Agent manually."
},
"pi-on-code.systemPromptAppend": {
"type": "string",
"default": "",
"scope": "resource",
"description": "Additional instructions appended to the Pi system prompt for new sessions."
},
"pi-on-code.enableSkills": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Load project and global Pi skills for new sessions."
},
"pi-on-code.enableContextFiles": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Load AGENTS.md and inferred project guidelines for new sessions."
},
"pi-on-code.autoAttachActiveEditor": {
"type": "boolean",
"default": true,
"description": "Automatically attach the active editor or selection to new Pi prompts"
},
"pi-on-code.autoCollapseToolResults": {
"type": "boolean",
"default": true,
"description": "Automatically collapse completed Pi tool results to their title"
},
"pi-on-code.enablePromptTemplates": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Register Pi and Pi on Code prompt templates for new sessions (for example /fix-diagnostics and /explain-code)."
},
"pi-on-code.defaultModelProvider": {
"type": "string",
"default": "",
"description": "Default model provider (e.g. 'anthropic'). Empty = auto-detect first available."
},
"pi-on-code.defaultModelId": {
"type": "string",
"default": "",
"description": "Default model ID (e.g. 'claude-sonnet-4-5'). Requires defaultModelProvider to be set."
},
"pi-on-code.defaultThinkingLevel": {
"type": "string",
"default": "off",
"enum": [
"off",
"minimal",
"low",
"medium",
"high",
"xhigh"
],
"description": "Default thinking level for new sessions"
},
"pi-on-code.contextBudget": {
"type": "number",
"default": 0,
"description": "Per-session token budget. 0 = use model default. Increase for longer conversations before auto-compaction."
},
"pi-on-code.sessionDir": {
"type": "string",
"default": "",
"description": "Custom session storage directory for session .jsonl files. Empty = use the pi SDK default (~/.pi/agent/sessions/). Equivalent to --session-dir."
},
"pi-on-code.autoOpenOnStart": {
"type": "boolean",
"default": false,
"description": "Automatically reveal a new Pi chat tab when the extension activates. Previously open Pi session tabs are always restored."
},
"pi-on-code.chatPanelLocation": {
"type": "string",
"default": "panel",
"enum": [
"panel",
"splitPanel"
],
"enumDescriptions": [
"Open Pi chats (new, resumed, and forked) as tabs in the active editor group without splitting the editor area.",
"Open Pi chats (new, resumed, and forked) in a new editor group split to the right of the active group."
],
"description": "Where Pi chats open in the editor: as a tab in the active group, or split to the right."
}
}
},
"menus": {
"editor/title": [
{
"command": "pi-on-code.addSession",
"group": "navigation",
"when": "resourceScheme != pi"
}
]
}
},
"scripts": {
"vscode:prepublish": "bun run package",
"build": "bun run package && bun run vsix:pack",
"install:vsix": "bun scripts/install-vsix.mjs",
"compile": "bun run verify && bun run bundle",
"bundle": "bun run --parallel bundle:extension bundle:webview",
"bundle:extension": "bun esbuild.js",
"bundle:webview": "bun esbuild.webview.js",
"bundle:production": "bun run --parallel bundle:extension:production bundle:webview:production",
"bundle:extension:production": "bun esbuild.js --production",
"bundle:webview:production": "bun esbuild.webview.js --production",
"watch": "bun run --parallel watch:esbuild watch:webview watch:tsc",
"watch:esbuild": "bun esbuild.js --watch",
"watch:webview": "bun esbuild.webview.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "bun run verify && bun run bundle:production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "bun run compile-tests && bun run compile",
"verify": "bun run --parallel check-types lint test:release-notes",
"check-types": "bun run --parallel check-types:extension check-types:webview",
"check-types:extension": "tsc --noEmit",
"check-types:webview": "tsc --noEmit -p tsconfig.webview.json",
"lint": "eslint src",
"test:release-notes": "node --test scripts/release-notes.test.mjs",
"test": "vscode-test",
"vsix": "bun run build",
"vsix:pack": "bun scripts/build-vsix.mjs",
"wiki:lint": "bunx tsx agent-wiki/scripts/wiki-lint.ts",
"wiki:lint:full": "bunx tsx agent-wiki/scripts/wiki-lint.ts --full",
"publish": "bun run build && bun scripts/publish-vsix.mjs",
"un-publish": "bunx vsce unpublish",
"vsix:openvsx": "bun run package && bunx ovsx publish"
},
"devDependencies": {
"@types/node": "~22.19.19",
"@types/vscode": "^1.118.0",
"@vscode/vsce": "^3.9.1",
"esbuild": "^0.27.7",
"eslint": "^9.39.4",
"ovsx": "^0.10.12",
"typescript": "^5.9.3",
"typescript-eslint": "^8.59.3",
"zod": "^4.4.3"
},
"optionalDependencies": {
"@types/mocha": "^10.0.10",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2"
},
"trustedDependencies": [
"@vscode/vsce-sign",
"esbuild",
"keytar"
],
"dependencies": {
"highlight.js": "^11.11.1",
"morphdom": "^2.7.8"
}
}