multicorn-shield 0.2.0 → 0.2.2
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/README.md +22 -0
- package/dist/multicorn-proxy.js +34 -17
- package/dist/multicorn-shield.js +118 -0
- package/dist/openclaw-hook/handler.js +2 -2
- package/dist/openclaw-plugin/multicorn-shield.js +2 -2
- package/dist/proxy.cjs +457 -0
- package/dist/proxy.d.cts +235 -0
- package/dist/proxy.d.ts +235 -0
- package/dist/proxy.js +438 -0
- package/dist/shield-extension.js +23117 -0
- package/package.json +51 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multicorn-shield",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The control layer for AI agents: permissions, consent, spending limits, and audit logging.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,10 +17,21 @@
|
|
|
17
17
|
"types": "./dist/index.d.cts",
|
|
18
18
|
"default": "./dist/index.cjs"
|
|
19
19
|
}
|
|
20
|
+
},
|
|
21
|
+
"./proxy": {
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/proxy.d.ts",
|
|
24
|
+
"default": "./dist/proxy.js"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./dist/proxy.d.cts",
|
|
28
|
+
"default": "./dist/proxy.cjs"
|
|
29
|
+
}
|
|
20
30
|
}
|
|
21
31
|
},
|
|
22
32
|
"bin": {
|
|
23
|
-
"multicorn-proxy": "./dist/multicorn-proxy.js"
|
|
33
|
+
"multicorn-proxy": "./dist/multicorn-proxy.js",
|
|
34
|
+
"multicorn-shield": "./dist/multicorn-shield.js"
|
|
24
35
|
},
|
|
25
36
|
"files": [
|
|
26
37
|
"dist",
|
|
@@ -31,6 +42,28 @@
|
|
|
31
42
|
"engines": {
|
|
32
43
|
"node": ">=20"
|
|
33
44
|
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsup",
|
|
47
|
+
"dev": "tsup --watch",
|
|
48
|
+
"lint": "eslint . && prettier --check .",
|
|
49
|
+
"lint:fix": "eslint --fix . && prettier --write .",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest",
|
|
52
|
+
"test:coverage": "vitest run --coverage",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"docs": "typedoc",
|
|
55
|
+
"clean": "rm -rf dist coverage docs/api extension-pack",
|
|
56
|
+
"stage-extension-pack": "rm -rf extension-pack && mkdir -p extension-pack/server && cp manifest.json extension-pack/ && cp icon.png extension-pack/ && cp dist/shield-extension.js extension-pack/server/index.js",
|
|
57
|
+
"validate:extension": "pnpm run stage-extension-pack && mcpb validate extension-pack/manifest.json",
|
|
58
|
+
"build:extension": "tsup",
|
|
59
|
+
"pack:extension": "pnpm run build && pnpm run stage-extension-pack && mcpb validate extension-pack/manifest.json && mcpb pack extension-pack dist/multicorn-shield.mcpb",
|
|
60
|
+
"size": "size-limit",
|
|
61
|
+
"prepublishOnly": "pnpm run clean && pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build",
|
|
62
|
+
"prepare": "husky",
|
|
63
|
+
"release:patch": "npm version patch && pnpm publish",
|
|
64
|
+
"release:minor": "npm version minor && pnpm publish",
|
|
65
|
+
"release:major": "npm version major && pnpm publish"
|
|
66
|
+
},
|
|
34
67
|
"lint-staged": {
|
|
35
68
|
"*.ts": [
|
|
36
69
|
"eslint --fix",
|
|
@@ -41,12 +74,16 @@
|
|
|
41
74
|
]
|
|
42
75
|
},
|
|
43
76
|
"dependencies": {
|
|
44
|
-
"
|
|
77
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
78
|
+
"lit": "^3.2.0",
|
|
79
|
+
"zod": "^4.3.6"
|
|
45
80
|
},
|
|
46
81
|
"devDependencies": {
|
|
47
|
-
"@
|
|
82
|
+
"@anthropic-ai/mcpb": "^2.1.2",
|
|
48
83
|
"@eslint/js": "^9.19.0",
|
|
49
84
|
"@open-wc/testing-helpers": "^3.0.1",
|
|
85
|
+
"@size-limit/file": "^11.1.6",
|
|
86
|
+
"@types/node": "^22.0.0",
|
|
50
87
|
"@vitest/coverage-istanbul": "^3.0.5",
|
|
51
88
|
"eslint": "^9.19.0",
|
|
52
89
|
"eslint-config-prettier": "^10.0.1",
|
|
@@ -57,7 +94,6 @@
|
|
|
57
94
|
"jsdom": "^25.0.1",
|
|
58
95
|
"lint-staged": "^16.2.7",
|
|
59
96
|
"prettier": "^3.4.2",
|
|
60
|
-
"@size-limit/file": "^11.1.6",
|
|
61
97
|
"size-limit": "^11.1.6",
|
|
62
98
|
"tsup": "^8.3.6",
|
|
63
99
|
"typedoc": "^0.28.17",
|
|
@@ -98,20 +134,14 @@
|
|
|
98
134
|
"url": "https://github.com/Multicorn-AI/multicorn-shield/issues"
|
|
99
135
|
},
|
|
100
136
|
"homepage": "https://multicorn.ai",
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"docs": "typedoc",
|
|
111
|
-
"clean": "rm -rf dist coverage docs/api",
|
|
112
|
-
"size": "size-limit",
|
|
113
|
-
"release:patch": "npm version patch && pnpm publish",
|
|
114
|
-
"release:minor": "npm version minor && pnpm publish",
|
|
115
|
-
"release:major": "npm version major && pnpm publish"
|
|
137
|
+
"pnpm": {
|
|
138
|
+
"overrides": {
|
|
139
|
+
"flatted": ">=3.4.2",
|
|
140
|
+
"minimatch": ">=10.2.3",
|
|
141
|
+
"rollup": ">=4.59.0",
|
|
142
|
+
"picomatch": ">=4.0.4",
|
|
143
|
+
"path-to-regexp": ">=8.4.0",
|
|
144
|
+
"node-forge": ">=1.4.0"
|
|
145
|
+
}
|
|
116
146
|
}
|
|
117
|
-
}
|
|
147
|
+
}
|