-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpackage.json
More file actions
402 lines (402 loc) · 11.4 KB
/
package.json
File metadata and controls
402 lines (402 loc) · 11.4 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
{
"name": "agent-os-vscode",
"displayName": "Agent OS - AI Safety for Code",
"description": "Kernel-level safety for AI coding assistants. Block destructive operations, verify with multi-model review, and audit all AI suggestions.",
"version": "1.0.1",
"publisher": "agent-os",
"repository": {
"type": "git",
"url": "https://github.com/imran-siddique/agent-os"
},
"homepage": "https://github.com/imran-siddique/agent-os#readme",
"bugs": {
"url": "https://github.com/imran-siddique/agent-os/issues"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Machine Learning",
"Programming Languages",
"Linters",
"Other"
],
"keywords": [
"ai",
"safety",
"copilot",
"cursor",
"code review",
"security",
"policy",
"governance",
"enterprise",
"compliance",
"soc2",
"gdpr"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"snippets": [
{
"language": "python",
"path": "./snippets/agent-os.code-snippets"
},
{
"language": "typescript",
"path": "./snippets/agent-os.code-snippets"
},
{
"language": "javascript",
"path": "./snippets/agent-os.code-snippets"
},
{
"language": "yaml",
"path": "./snippets/agent-os.code-snippets"
}
],
"commands": [
{
"command": "agent-os.reviewCode",
"title": "Agent OS: Review Code with CMVK",
"icon": "$(shield)"
},
{
"command": "agent-os.toggleSafety",
"title": "Agent OS: Toggle Safety Mode"
},
{
"command": "agent-os.showAuditLog",
"title": "Agent OS: Show Audit Log"
},
{
"command": "agent-os.configurePolicy",
"title": "Agent OS: Configure Policies"
},
{
"command": "agent-os.exportAuditLog",
"title": "Agent OS: Export Audit Log"
},
{
"command": "agent-os.allowOnce",
"title": "Agent OS: Allow This Once"
},
{
"command": "agent-os.openPolicyEditor",
"title": "Agent OS: Open Policy Editor",
"icon": "$(edit)"
},
{
"command": "agent-os.openWorkflowDesigner",
"title": "Agent OS: Open Workflow Designer",
"icon": "$(type-hierarchy)"
},
{
"command": "agent-os.showMetrics",
"title": "Agent OS: Show Metrics Dashboard",
"icon": "$(graph)"
},
{
"command": "agent-os.showOnboarding",
"title": "Agent OS: Getting Started",
"icon": "$(rocket)"
},
{
"command": "agent-os.createFirstAgent",
"title": "Agent OS: Create First Agent"
},
{
"command": "agent-os.runSafetyTest",
"title": "Agent OS: Run Safety Test"
},
{
"command": "agent-os.openDocs",
"title": "Agent OS: Open Documentation"
},
{
"command": "agent-os.signIn",
"title": "Agent OS: Sign In (Enterprise)"
},
{
"command": "agent-os.signOut",
"title": "Agent OS: Sign Out"
},
{
"command": "agent-os.setupCICD",
"title": "Agent OS: Setup CI/CD Integration"
},
{
"command": "agent-os.installHooks",
"title": "Agent OS: Install Git Hooks"
},
{
"command": "agent-os.checkCompliance",
"title": "Agent OS: Check Compliance"
}
],
"menus": {
"editor/context": [
{
"command": "agent-os.reviewCode",
"group": "agent-os@1",
"when": "editorHasSelection"
}
],
"commandPalette": [
{
"command": "agent-os.reviewCode",
"when": "editorIsOpen"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "agent-os-sidebar",
"title": "Agent OS",
"icon": "$(shield)"
}
]
},
"views": {
"agent-os-sidebar": [
{
"id": "agent-os.kernelDebugger",
"name": "Kernel Debugger"
},
{
"id": "agent-os.memoryBrowser",
"name": "Agent Memory (VFS)"
},
{
"id": "agent-os.auditLog",
"name": "Audit Log"
},
{
"id": "agent-os.policies",
"name": "Active Policies"
},
{
"id": "agent-os.stats",
"name": "Safety Stats"
}
]
},
"configuration": {
"title": "Agent OS",
"properties": {
"agentOS.enabled": {
"type": "boolean",
"default": true,
"description": "Enable Agent OS safety checks"
},
"agentOS.mode": {
"type": "string",
"enum": [
"basic",
"enhanced",
"enterprise"
],
"default": "basic",
"description": "Safety mode: basic (local only), enhanced (+ CMVK), enterprise (custom)"
},
"agentOS.policies.blockDestructiveSQL": {
"type": "boolean",
"default": true,
"description": "Block DROP, DELETE, TRUNCATE SQL operations"
},
"agentOS.policies.blockFileDeletes": {
"type": "boolean",
"default": true,
"description": "Block rm -rf and file deletion operations"
},
"agentOS.policies.blockSecretExposure": {
"type": "boolean",
"default": true,
"description": "Block hardcoded API keys, passwords, secrets"
},
"agentOS.policies.blockPrivilegeEscalation": {
"type": "boolean",
"default": true,
"description": "Block sudo, chmod 777, and privilege escalation"
},
"agentOS.policies.blockUnsafeNetworkCalls": {
"type": "boolean",
"default": false,
"description": "Block network calls to unknown domains"
},
"agentOS.cmvk.enabled": {
"type": "boolean",
"default": false,
"description": "Enable CMVK multi-model verification"
},
"agentOS.cmvk.models": {
"type": "array",
"default": [
"gpt-4",
"claude-sonnet-4",
"gemini-pro"
],
"description": "Models to use for CMVK verification"
},
"agentOS.cmvk.consensusThreshold": {
"type": "number",
"default": 0.8,
"minimum": 0.5,
"maximum": 1,
"description": "Minimum consensus ratio required (0.5-1.0)"
},
"agentOS.cmvk.apiEndpoint": {
"type": "string",
"default": "https://api.agent-os.dev/cmvk",
"description": "CMVK API endpoint"
},
"agentOS.audit.retentionDays": {
"type": "number",
"default": 7,
"description": "Days to retain audit logs locally"
},
"agentOS.audit.logToFile": {
"type": "boolean",
"default": false,
"description": "Also log audit events to file"
},
"agentOS.notifications.showBlocked": {
"type": "boolean",
"default": true,
"description": "Show notification when code is blocked"
},
"agentOS.notifications.showWarnings": {
"type": "boolean",
"default": true,
"description": "Show notification for warnings"
},
"agentOS.enterprise.sso.enabled": {
"type": "boolean",
"default": false,
"description": "Enable enterprise SSO authentication"
},
"agentOS.enterprise.sso.provider": {
"type": "string",
"enum": [
"azure",
"okta",
"google",
"github"
],
"description": "SSO provider for enterprise authentication"
},
"agentOS.enterprise.compliance.framework": {
"type": "string",
"enum": [
"soc2",
"gdpr",
"hipaa",
"pci-dss"
],
"description": "Default compliance framework for validation"
},
"agentOS.diagnostics.enabled": {
"type": "boolean",
"default": true,
"description": "Enable real-time diagnostics for policy violations"
},
"agentOS.diagnostics.severity": {
"type": "string",
"enum": [
"error",
"warning",
"information"
],
"default": "warning",
"description": "Minimum severity level for diagnostics"
}
}
},
"walkthroughs": [
{
"id": "agent-os-getting-started",
"title": "Getting Started with Agent OS",
"description": "Learn how to protect your AI coding workflows with kernel-level safety",
"steps": [
{
"id": "understand",
"title": "Understand Agent OS",
"description": "Agent OS provides kernel-level safety for AI agents. Unlike prompt-based safety, violations are blocked at execution time.\n[Learn More](https://github.com/imran-siddique/agent-os)",
"media": {
"markdown": "Agent OS intercepts AI actions before execution and checks them against your policies."
}
},
{
"id": "configure-policies",
"title": "Configure Policies",
"description": "Set up safety policies for your project.\n[Open Policy Editor](command:agent-os.openPolicyEditor)",
"media": {
"markdown": "Policies define what actions are allowed. Start with our templates or create custom rules."
}
},
{
"id": "first-agent",
"title": "Create Your First Agent",
"description": "Build a governed agent with safety guarantees.\n[Create Agent](command:agent-os.createFirstAgent)",
"media": {
"markdown": "Your first agent will be protected by Agent OS with full policy enforcement."
}
},
{
"id": "view-metrics",
"title": "Monitor Safety",
"description": "View the metrics dashboard to monitor policy enforcement.\n[Open Dashboard](command:agent-os.showMetrics)",
"media": {
"markdown": "Track blocked operations, warnings, and compliance status in real-time."
}
}
]
}
],
"colors": [
{
"id": "agentOS.safeBackground",
"description": "Background for safe code",
"defaults": {
"dark": "#1a472a30",
"light": "#d4edda50"
}
},
{
"id": "agentOS.dangerBackground",
"description": "Background for dangerous code",
"defaults": {
"dark": "#721c2430",
"light": "#f8d7da50"
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vscode/vsce": "^2.22.0",
"eslint": "^8.0.0",
"typescript": "^5.3.0"
},
"dependencies": {
"axios": "^1.6.0"
}
}