Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
758 lines (758 loc) · 27.7 KB
/
Copy pathpackage.json
File metadata and controls
758 lines (758 loc) · 27.7 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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
{
"name": "agentextension",
"displayName": "AgentExtension",
"description": "Reviewable coding changes in VS Code, powered by local TrueForge.",
"version": "0.7.1",
"publisher": "LiteralKrishu",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/StackOverHack-Hub/AgentExtension.git"
},
"engines": {
"vscode": "^1.101.0",
"node": ">=22.14.0"
},
"categories": [
"AI",
"Other"
],
"main": "./src/extension.js",
"activationEvents": [
"onStartupFinished"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": false
},
"virtualWorkspaces": false
},
"contributes": {
"commands": [
{
"command": "agentextension.inlineEdit",
"title": "AgentExtension: Edit Selection"
},
{
"command": "agentextension.open",
"title": "AgentExtension: Open Agent Panel"
},
{
"command": "agentextension.configureModel",
"title": "AgentExtension: Connect Model"
},
{
"command": "agentextension.tools",
"title": "AgentExtension: Configure Tools"
},
{
"command": "agentextension.slashCommands",
"title": "AgentExtension: Show Slash Commands"
},
{
"command": "agentextension.managePlugins",
"title": "AgentExtension: Manage Plugins"
},
{
"command": "agentextension.reviewGit",
"title": "AgentExtension: Review Working-Tree Changes"
},
{
"command": "agentextension.cancel",
"title": "AgentExtension: Cancel Run"
},
{
"command": "agentextension.undo",
"title": "AgentExtension: Undo Last Apply"
},
{
"command": "agentextension.scheduledReports",
"title": "AgentExtension: Manage Scheduled Reports"
},
{
"command": "agentextension.exportAudit",
"title": "AgentExtension: Export Audit Log"
},
{
"command": "agentextension.syncAudit",
"title": "AgentExtension: Sync Organization Audit"
},
{
"command": "agentextension.project",
"title": "AgentExtension: Open Shared Project"
},
{
"command": "agentextension.instructions",
"title": "AgentExtension: Manage Instructions"
},
{
"command": "agentextension.permissionRules",
"title": "AgentExtension: Manage Permission Rules"
},
{
"command": "agentextension.rebuildIndex",
"title": "AgentExtension: Clear Source Index"
},
{
"command": "agentextension.importPlugin",
"title": "AgentExtension: Import Plugin Package"
},
{
"command": "agentextension.exportPlugin",
"title": "AgentExtension: Export Plugin Package"
},
{
"command": "agentextension.pluginWorkflow",
"title": "AgentExtension: Run Plugin Workflow"
},
{
"command": "agentextension.inlineSuggestionStats",
"title": "AgentExtension: Show Inline Suggestion Statistics"
},
{
"command": "agentextension.codingSchedules",
"title": "AgentExtension: Scheduled Coding Drafts"
},
{
"command": "agentextension.handoff",
"title": "AgentExtension: Draft Handoff"
}
],
"keybindings": [
{
"command": "agentextension.inlineEdit",
"key": "ctrl+alt+i",
"mac": "cmd+alt+i",
"when": "editorTextFocus && editorHasSelection && !editorReadonly"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "agentextension",
"title": "AgentExtension",
"icon": "media/icon.svg"
}
]
},
"views": {
"agentextension": [
{
"id": "agentextension.panel",
"type": "webview",
"name": "Agent"
}
]
},
"configuration": {
"title": "AgentExtension",
"properties": {
"agentextension.serverUrl": {
"type": "string",
"default": "http://127.0.0.1:8790",
"scope": "machine",
"description": "Local TrueForge server URL."
},
"agentextension.model": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Model name from TrueForge, including the provider prefix."
},
"agentextension.compaction": {
"type": "boolean",
"default": true,
"scope": "machine",
"description": "Let TrueForge compact long histories. Disable this if your model template requires an original user message."
},
"agentextension.turnTimeoutSeconds": {
"type": "integer",
"default": 600,
"minimum": 30,
"maximum": 1800,
"scope": "machine",
"description": "Maximum time for a streamed TrueForge turn."
},
"agentextension.workerTimeoutSeconds": {
"type": "integer",
"default": 60,
"minimum": 30,
"maximum": 300,
"scope": "machine",
"description": "Deadline for each worker session, including one retry. Local models may need 120 to 180 seconds."
},
"agentextension.inlineSuggestions.enabled": {
"type": "boolean",
"default": false,
"scope": "language-overridable",
"description": "Experimental. Offer inline code suggestions from the selected model. Off by default; can be set per language."
},
"agentextension.inlineSuggestions.mode": {
"type": "string",
"enum": [
"manual",
"automatic"
],
"default": "manual",
"scope": "language-overridable",
"description": "Manual suggests only when you run Trigger Inline Suggestion. Automatic suggests while you type; its latency target is not yet measured."
},
"agentextension.inlineSuggestions.maxRequestsPerHour": {
"type": "number",
"default": 120,
"minimum": 1,
"scope": "window",
"description": "Most inline suggestion requests per hour in this window."
},
"agentextension.inlineSuggestions.model": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Optional TrueForge model for inline suggestions on an existing server. Empty uses the main model."
},
"agentextension.executionEnvironment": {
"type": "string",
"enum": [
"isolated",
"container"
],
"default": "isolated",
"scope": "window",
"description": "Where checks run. Isolated uses the host sandbox. Container uses Docker with dependencies from package-lock.json or requirements.txt; it never falls back to the host."
},
"agentextension.container.allowLifecycleScripts": {
"type": "boolean",
"default": false,
"scope": "machine",
"description": "Allow package install scripts (npm lifecycle scripts, Python source builds) during container dependency setup. Setup is the only step with network access."
},
"agentextension.container.checks": {
"type": "array",
"default": [],
"maxItems": 8,
"scope": "window",
"description": "Optional declared Node.js checks and local services. An exact command and argument match runs the check and its services in one private container with no network or host ports. See the managed checks guide for the declaration format.",
"items": {
"type": "object",
"required": [
"name",
"command"
],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,39}$"
},
"command": {
"type": "string",
"pattern": "^[\\w.+-]{1,60}$"
},
"args": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 500
}
},
"profile": {
"type": "string",
"enum": [
"node",
"browser"
],
"default": "node"
},
"cwd": {
"type": "string",
"default": "."
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"leaseSeconds": {
"type": "number",
"minimum": 1,
"maximum": 120,
"default": 120
},
"services": {
"type": "array",
"maxItems": 3,
"items": {
"type": "object",
"required": [
"name",
"command",
"ready"
],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,39}$"
},
"command": {
"type": "string",
"pattern": "^[\\w.+-]{1,60}$"
},
"args": {
"type": "array",
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 500
}
},
"cwd": {
"type": "string",
"default": "."
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"ready": {
"type": "object",
"required": [
"port"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"http",
"tcp"
],
"default": "http"
},
"port": {
"type": "number",
"minimum": 1,
"maximum": 65535
},
"path": {
"type": "string",
"default": "/"
},
"status": {
"type": "number",
"minimum": 200,
"maximum": 399,
"default": 200
},
"timeoutMs": {
"type": "number",
"minimum": 100,
"maximum": 20000,
"default": 10000
}
}
}
}
}
}
}
}
},
"agentextension.fallbackModel": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Optional second TrueForge model used when the primary model fails."
},
"agentextension.skillRoots": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"maxItems": 7,
"scope": "machine",
"description": "Approved local folders containing skill-name/SKILL.md directories. Each declared script needs separate approval to run."
},
"agentextension.scriptNodeExecutable": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Absolute path to the Node.js executable for isolated skill scripts and custom plugin hooks. Requires desktop macOS or Linux with bubblewrap."
},
"agentextension.readConnectors": {
"type": "array",
"default": [],
"scope": "machine",
"maxItems": 8,
"description": "Workspace MCP connections. Configure exact read targets and optional approval-only write tools. Use HTTPS or loopback HTTP and manage accounts with the Connector credential button.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"url",
"account",
"tools"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"account": {
"type": "string"
},
"oauth": {
"type": "object",
"additionalProperties": false,
"required": [
"issuer",
"clientId",
"scopes"
],
"description": "Optional OpenID Connect sign-in using a registered public desktop client and a loopback redirect.",
"properties": {
"issuer": {
"type": "string"
},
"clientId": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"writeTools": {
"type": "array",
"description": "Each write needs fresh approval for its connector, account, target and arguments.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"targetArgument",
"targets"
],
"properties": {
"name": {
"type": "string"
},
"targetArgument": {
"type": "string"
},
"targets": {
"type": "array",
"items": {
"type": "string"
}
},
"extraArguments": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"tools": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"targetArgument",
"targets"
],
"properties": {
"name": {
"type": "string"
},
"targetArgument": {
"type": "string"
},
"targets": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"agentextension.localReadConnectors": {
"type": "array",
"default": [],
"maxItems": 8,
"scope": "machine",
"description": "Isolated local MCP servers for interactive reads. Each call requires approval. Configure a Node.js executable, a standalone server file, its SHA-256, and exact read tools and targets.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"node",
"entryPoint",
"sha256",
"tools"
],
"properties": {
"id": {
"type": "string"
},
"node": {
"type": "string",
"description": "Absolute path to the installed Node.js executable."
},
"entryPoint": {
"type": "string",
"description": "Absolute path to a self-contained .cjs server file."
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"tools": {
"type": "array",
"minItems": 1,
"maxItems": 12,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"targetArgument",
"targets"
],
"properties": {
"name": {
"type": "string"
},
"targetArgument": {
"type": "string"
},
"targets": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"agentextension.pluginRoots": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"maxItems": 7,
"scope": "machine",
"description": "Approved local folders containing plugin directories with plugin.json. Review and enable a plugin's version, content digest, and capabilities under Tools \u2192 Plugins."
},
"agentextension.browserOrigins": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"maxItems": 8,
"scope": "machine",
"description": "Exact HTTPS origins or loopback HTTP origins available for explicit browser access. Select origins and interaction mode in the panel. No wildcard origins."
},
"agentextension.runBudget": {
"type": "object",
"default": {
"maxTokens": 1000000,
"maxMinutes": 30,
"maxToolCalls": 200
},
"scope": "application",
"additionalProperties": false,
"properties": {
"maxTokens": {
"type": "integer",
"minimum": 0,
"description": "Input plus output tokens across the agent and its workers. 0 means no limit."
},
"maxMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 240,
"description": "Run time in minutes. 0 means no limit."
},
"maxToolCalls": {
"type": "integer",
"minimum": 0,
"maximum": 2000,
"description": "Editor tool calls, including worker calls. 0 means no limit."
}
},
"markdownDescription": "Limits for one agent run. After a limit is reached, only `review_changes` still runs, so staged work can be reviewed. At 125% of the token or time limit the run is cancelled."
},
"agentextension.userInstructions": {
"type": "string",
"default": "",
"maxLength": 4000,
"scope": "application",
"editPresentation": "multilineText",
"markdownDescription": "Optional standing instructions sent with every agent run, for example your preferred test command or writing style. Up to 4,000 characters. Instructions cannot grant tools or change approvals. Workspace settings cannot set this value."
},
"agentextension.automaticSkills": {
"type": "boolean",
"default": true,
"description": "Match up to two approved skills at run start and let the agent request eligible skills during a run. Skills marked disable-model-invocation or allow_implicit_invocation: false require manual selection."
},
"agentextension.permissionRules": {
"type": "array",
"default": [],
"scope": "application",
"maxItems": 200,
"markdownDescription": "User permission rules for every workspace. Each rule has an `effect`, a `target` with `*` wildcards, and a `decision` of `allow`, `ask` or `deny`. Administrator rules apply first. Allow rules are limited to `command.execute`, `connector.read`, `browser.write`, `browser.navigate` and `computer.write`, and need a specific target. Workspace settings cannot set this value.",
"items": {
"type": "object",
"required": [
"effect",
"decision"
],
"additionalProperties": false,
"properties": {
"effect": {
"type": "string",
"enum": [
"*",
"command.execute",
"connector.read",
"connector.write",
"connector.account",
"connector.catalog",
"connector.*",
"browser.observe",
"browser.write",
"browser.navigate",
"browser.download",
"browser.*",
"computer.observe",
"computer.write",
"computer.*",
"worker.research",
"worker.review",
"worker.diagnose",
"worker.edit",
"worker.custom",
"worker.*",
"skill.read",
"skill.script",
"skill.*",
"hook.run",
"memory.suggest"
]
},
"target": {
"type": "string",
"default": "*",
"maxLength": 500
},
"decision": {
"type": "string",
"enum": [
"allow",
"ask",
"deny"
]
},
"note": {
"type": "string",
"maxLength": 200
}
}
}
},
"agentextension.scheduledReports": {
"type": "boolean",
"default": true,
"scope": "machine",
"description": "Enable the VS Code schedule timer and schedule controls. Separately approved background schedules are managed by the local runner."
},
"agentextension.browserExecutable": {
"type": "string",
"default": "",
"scope": "machine",
"description": "Optional absolute Chrome or Chromium executable path. Empty uses installed Google Chrome. The extension always creates its own profile."
},
"agentextension.workerConcurrency": {
"type": "integer",
"default": 2,
"minimum": 1,
"maximum": 2,
"scope": "machine",
"description": "Maximum active workers. Up to four worker calls share the run budget, including queued calls."
},
"agentextension.workerRoleModels": {
"type": "object",
"default": {},
"maxProperties": 8,
"additionalProperties": {
"type": "string",
"pattern": "^[A-Za-z0-9_./:-]{1,200}$"
},
"scope": "machine",
"description": "Optional role ID to registered model name map. Uses the current local runtime connection. Model names cannot declare endpoints or credentials."
}
}
}
},
"scripts": {
"check": "node --check src/extension.js && node --check media/panel.js && node --check src/command-authorization.js && node --check src/permissions.js && node --check src/skills.js && node --check src/prompt.js && node --check src/memory.js && node --check src/memory-sync.js && node --check src/connectors.js && node --check src/connector-oauth.js && node --check src/connector-local.js && node --check src/isolated-node.js && node --check src/script-runner.js && node --check src/skill-script.js && node --check src/plugins.js && node --check src/plugin-packages.js && node --check src/plugin-hooks.js && node --check src/worker-queue.js && node --check src/workers.js && node --check src/worker-session.js && node --check src/browser.js && node --check src/computer.js && node --check src/surface-access.js && node --check src/reports.js && node --check src/coding-controller.js && node --check src/coding-run.js && node --check src/coding-schedules.js && node --check src/schedules.js && node --check src/scheduled-run.js && node --check src/schedule-scope.js && node --check src/schedule-notifications.js && node --check src/background-runner.js && node --check src/background-cli.js && node --check src/policy.js && node --check src/instructions.js && node --check src/usage.js && node --check src/audit.js && node --check src/organization.js && node --check src/organization-service.js && node --check src/collaboration.js && node --check src/collaboration-service.js && node --check src/workspace-sync.js && node --check src/checkpoint.js && node --check src/schedule-controller.js && node --check src/run-progress.js && node --check src/task-state.js && node --check src/recovery.js && node --check src/search.js && node --check src/repository-index.js && node --check src/lexical-index.js && node --check src/relationships.js && node --check src/embedding-provider.js && node --check src/inline-completion.js && node --check src/execution-environment.js && node --check src/execution-services.js && node --check src/execution-service-runner.js && node --check src/git-handoff.js && node --check src/handoff-controller.js && node --check src/portable-skill.js && node --check src/storage-lock.js && npm run typecheck && npm run lint",
"typecheck": "tsc --project jsconfig.json --noEmit",
"lint": "eslint src",
"test": "node --test test/*.test.js test/retrieval/*.test.js",
"test:qwen": "node test/model/run.cjs",
"test:scoring": "node --test test/model-scoring.test.js",
"test:corpus": "node --test test/model-corpus.test.js",
"test:retrieval": "node test/retrieval/run.cjs",
"test:ui": "node test/ui/run.cjs",
"package:vsix": "node scripts/package-vsix.cjs",
"build:native": "node scripts/build-native.cjs",
"test:retrieval:unit": "node --test test/retrieval/*.test.js test/search.test.js test/repository-index.test.js"
},
"dependencies": {
"@modelcontextprotocol/sdk": "1.32.1",
"@truefoundry/trueforge-sdk": "0.184.1",
"diff": "8.0.4",
"jose": "6.2.16",
"playwright-core": "1.62.1",
"proper-lockfile": "4.1.2",
"yaml": "2.9.1",
"zod": "4.6.7"
},
"devDependencies": {
"@types/node": "22.20.5",
"@types/vscode": "1.101.0",
"@vscode/vsce": "4.1.0",
"esbuild": "0.28.2",
"eslint": "10.14.0",
"typescript": "5.9.3",
"typescript-eslint": "8.62.1"
}
}