multicorn-shield 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +10 -0
- package/dist/multicorn-proxy.js +1593 -164
- package/dist/multicorn-shield.js +1614 -197
- package/dist/proxy.cjs +2 -0
- package/dist/proxy.d.cts +3 -0
- package/dist/proxy.d.ts +3 -0
- package/dist/proxy.js +2 -0
- package/dist/shield-extension.js +3 -1
- package/package.json +8 -3
package/dist/proxy.cjs
CHANGED
|
@@ -224,6 +224,7 @@ async function fetchGrantedScopes(agentId, apiKey, baseUrl) {
|
|
|
224
224
|
if (perm.revoked_at !== null) continue;
|
|
225
225
|
if (perm.read) scopes.push({ service: perm.service, permissionLevel: "read" });
|
|
226
226
|
if (perm.write) scopes.push({ service: perm.service, permissionLevel: "write" });
|
|
227
|
+
if (perm.delete === true) scopes.push({ service: perm.service, permissionLevel: "delete" });
|
|
227
228
|
if (perm.execute) scopes.push({ service: perm.service, permissionLevel: "execute" });
|
|
228
229
|
}
|
|
229
230
|
return scopes;
|
|
@@ -289,6 +290,7 @@ function isValidLogLevel(value) {
|
|
|
289
290
|
var PERMISSION_LEVELS = {
|
|
290
291
|
Read: "read",
|
|
291
292
|
Write: "write",
|
|
293
|
+
Delete: "delete",
|
|
292
294
|
Execute: "execute",
|
|
293
295
|
Publish: "publish",
|
|
294
296
|
Create: "create"
|
package/dist/proxy.d.cts
CHANGED
|
@@ -56,6 +56,8 @@ declare function extractActionFromToolName(toolName: string): string;
|
|
|
56
56
|
*
|
|
57
57
|
* - `read`: observe data without modification
|
|
58
58
|
* - `write`: create or modify data
|
|
59
|
+
* - `delete`: destroy data (kept distinct from `write` so saving a file never
|
|
60
|
+
* implies the right to delete one; used by the hosted workspace filesystem)
|
|
59
61
|
* - `execute`: trigger side-effects (e.g. send an email, make a payment)
|
|
60
62
|
* - `publish`: make existing content publicly accessible (e.g. deploy, publish, make live)
|
|
61
63
|
* - `create`: create new content that is immediately public (e.g. tweet, public commit, forum post)
|
|
@@ -63,6 +65,7 @@ declare function extractActionFromToolName(toolName: string): string;
|
|
|
63
65
|
declare const PERMISSION_LEVELS: {
|
|
64
66
|
readonly Read: "read";
|
|
65
67
|
readonly Write: "write";
|
|
68
|
+
readonly Delete: "delete";
|
|
66
69
|
readonly Execute: "execute";
|
|
67
70
|
readonly Publish: "publish";
|
|
68
71
|
readonly Create: "create";
|
package/dist/proxy.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ declare function extractActionFromToolName(toolName: string): string;
|
|
|
56
56
|
*
|
|
57
57
|
* - `read`: observe data without modification
|
|
58
58
|
* - `write`: create or modify data
|
|
59
|
+
* - `delete`: destroy data (kept distinct from `write` so saving a file never
|
|
60
|
+
* implies the right to delete one; used by the hosted workspace filesystem)
|
|
59
61
|
* - `execute`: trigger side-effects (e.g. send an email, make a payment)
|
|
60
62
|
* - `publish`: make existing content publicly accessible (e.g. deploy, publish, make live)
|
|
61
63
|
* - `create`: create new content that is immediately public (e.g. tweet, public commit, forum post)
|
|
@@ -63,6 +65,7 @@ declare function extractActionFromToolName(toolName: string): string;
|
|
|
63
65
|
declare const PERMISSION_LEVELS: {
|
|
64
66
|
readonly Read: "read";
|
|
65
67
|
readonly Write: "write";
|
|
68
|
+
readonly Delete: "delete";
|
|
66
69
|
readonly Execute: "execute";
|
|
67
70
|
readonly Publish: "publish";
|
|
68
71
|
readonly Create: "create";
|
package/dist/proxy.js
CHANGED
|
@@ -222,6 +222,7 @@ async function fetchGrantedScopes(agentId, apiKey, baseUrl) {
|
|
|
222
222
|
if (perm.revoked_at !== null) continue;
|
|
223
223
|
if (perm.read) scopes.push({ service: perm.service, permissionLevel: "read" });
|
|
224
224
|
if (perm.write) scopes.push({ service: perm.service, permissionLevel: "write" });
|
|
225
|
+
if (perm.delete === true) scopes.push({ service: perm.service, permissionLevel: "delete" });
|
|
225
226
|
if (perm.execute) scopes.push({ service: perm.service, permissionLevel: "execute" });
|
|
226
227
|
}
|
|
227
228
|
return scopes;
|
|
@@ -287,6 +288,7 @@ function isValidLogLevel(value) {
|
|
|
287
288
|
var PERMISSION_LEVELS = {
|
|
288
289
|
Read: "read",
|
|
289
290
|
Write: "write",
|
|
291
|
+
Delete: "delete",
|
|
290
292
|
Execute: "execute",
|
|
291
293
|
Publish: "publish",
|
|
292
294
|
Create: "create"
|
package/dist/shield-extension.js
CHANGED
|
@@ -22214,6 +22214,7 @@ async function fetchGrantedScopes(agentId, apiKey, baseUrl) {
|
|
|
22214
22214
|
if (perm.revoked_at !== null) continue;
|
|
22215
22215
|
if (perm.read) scopes.push({ service: perm.service, permissionLevel: "read" });
|
|
22216
22216
|
if (perm.write) scopes.push({ service: perm.service, permissionLevel: "write" });
|
|
22217
|
+
if (perm.delete === true) scopes.push({ service: perm.service, permissionLevel: "delete" });
|
|
22217
22218
|
if (perm.execute) scopes.push({ service: perm.service, permissionLevel: "execute" });
|
|
22218
22219
|
}
|
|
22219
22220
|
return scopes;
|
|
@@ -22517,7 +22518,7 @@ async function writeExtensionBackup(claudeDesktopConfigPath, mcpServers) {
|
|
|
22517
22518
|
|
|
22518
22519
|
// package.json
|
|
22519
22520
|
var package_default = {
|
|
22520
|
-
version: "1.
|
|
22521
|
+
version: "1.11.0"};
|
|
22521
22522
|
|
|
22522
22523
|
// src/package-meta.ts
|
|
22523
22524
|
var PACKAGE_VERSION = package_default.version;
|
|
@@ -23087,6 +23088,7 @@ function resultSuggestsConsentNeeded(result) {
|
|
|
23087
23088
|
var PERMISSION_LEVELS = {
|
|
23088
23089
|
Read: "read",
|
|
23089
23090
|
Write: "write",
|
|
23091
|
+
Delete: "delete",
|
|
23090
23092
|
Execute: "execute",
|
|
23091
23093
|
Publish: "publish",
|
|
23092
23094
|
Create: "create"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multicorn-shield",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "The control layer for AI agents: permissions, consent, spending limits, and audit logging.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Multicorn AI Pty Ltd",
|
|
@@ -91,9 +91,11 @@
|
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
95
94
|
"@lit/reactive-element": "^2.0.0",
|
|
95
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
96
|
+
"@modelcontextprotocol/server-filesystem": "^2026.1.14",
|
|
96
97
|
"lit": "^3.2.0",
|
|
98
|
+
"supergateway": "^3.4.3",
|
|
97
99
|
"yaml": "^2.8.2",
|
|
98
100
|
"zod": "^4.3.6"
|
|
99
101
|
},
|
|
@@ -168,8 +170,11 @@
|
|
|
168
170
|
"rollup": ">=4.59.0",
|
|
169
171
|
"picomatch": ">=4.0.4",
|
|
170
172
|
"path-to-regexp": ">=8.4.0",
|
|
173
|
+
"express>path-to-regexp": ">=0.1.13",
|
|
171
174
|
"node-forge": ">=1.4.0",
|
|
172
|
-
"fast-uri": ">=3.1.2"
|
|
175
|
+
"fast-uri": ">=3.1.2",
|
|
176
|
+
"hono": ">=4.12.25",
|
|
177
|
+
"ws": ">=8.21.0"
|
|
173
178
|
}
|
|
174
179
|
}
|
|
175
180
|
}
|