@kya-os/mcp-i-cloudflare 1.19.0 → 1.19.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admission-refusal.d.ts","sourceRoot":"","sources":["../../src/security/admission-refusal.ts"],"names":[],"mappings":"AAeA,gDAAgD;AAChD,eAAO,MAAM,uBAAuB,6OAY1B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;CACrC;
|
|
1
|
+
{"version":3,"file":"admission-refusal.d.ts","sourceRoot":"","sources":["../../src/security/admission-refusal.ts"],"names":[],"mappings":"AAeA,gDAAgD;AAChD,eAAO,MAAM,uBAAuB,6OAY1B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;CACrC;AAsDD,wEAAwE;AACxE,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,oBAAoB,CAE/B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,GAC1B,oBAAoB,CAUtB"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The wire result stays the gate code (`proof_invalid` for every recompute
|
|
5
5
|
* failure) so a caller learns nothing extra. The recompute reasons that
|
|
6
|
-
* `@kya-os/mcp` 1.
|
|
6
|
+
* `@kya-os/mcp` 1.26.0's `requireProof` returns are what tells a tampered,
|
|
7
7
|
* replayed or stale call apart, so they are classified here before they are
|
|
8
8
|
* dropped.
|
|
9
9
|
*
|
|
@@ -31,14 +31,22 @@ const REFUSAL_CODES = new Set(ADMISSION_REFUSAL_CODES);
|
|
|
31
31
|
/**
|
|
32
32
|
* S2 item 10's priority: who signed, then what was signed, then where it was
|
|
33
33
|
* sent, then single use, then freshness. The reason strings are the ones the
|
|
34
|
-
* installed `@kya-os/mcp` 1.
|
|
34
|
+
* installed `@kya-os/mcp` 1.26.0 card verifier emits: `proof/verify.js`
|
|
35
35
|
* pushes all but two, returns `malformed_proof` directly, and
|
|
36
36
|
* `middleware.js` returns `proof_verifier_threw`.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* 1.26.0 decides what a proof's own claims decide (whose key it names, its
|
|
39
|
+
* audience, the request it signs and its window) before it reads a key, and
|
|
40
|
+
* answers a proof those refuse with their reasons alone, so a stale or
|
|
41
|
+
* misaddressed proof never also reads `invalid_signature`.
|
|
42
|
+
*
|
|
43
|
+
* Replay is decided last: 1.26.0 consumes the nonce only when every other
|
|
39
44
|
* check passed, so a stale proof reads `expired` alone and never burns a
|
|
40
45
|
* nonce. `nonce_replayed` and `expired` therefore no longer arrive together,
|
|
41
46
|
* and their relative order below only matters for a reason set built by hand.
|
|
47
|
+
*
|
|
48
|
+
* `delegation_statement_malformed`, new in 1.26.0, is not an item 10 reason,
|
|
49
|
+
* so it reads `proof_invalid`.
|
|
42
50
|
*/
|
|
43
51
|
const REASON_PRIORITY = [
|
|
44
52
|
["malformed_proof", "malformed_proof"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admission-refusal.js","sourceRoot":"","sources":["../../src/security/admission-refusal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,gDAAgD;AAChD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,iBAAiB;IACjB,mBAAmB;IACnB,yBAAyB;IACzB,uBAAuB;IACvB,mBAAmB;IACnB,gBAAgB;IAChB,SAAS;IACT,mBAAmB;IACnB,2BAA2B;IAC3B,eAAe;IACf,eAAe;CACP,CAAC;AASX,6EAA6E;AAC7E,MAAM,aAAa,GAAyB,IAAI,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAE7E
|
|
1
|
+
{"version":3,"file":"admission-refusal.js","sourceRoot":"","sources":["../../src/security/admission-refusal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,gDAAgD;AAChD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,iBAAiB;IACjB,mBAAmB;IACnB,yBAAyB;IACzB,uBAAuB;IACvB,mBAAmB;IACnB,gBAAgB;IAChB,SAAS;IACT,mBAAmB;IACnB,2BAA2B;IAC3B,eAAe;IACf,eAAe;CACP,CAAC;AASX,6EAA6E;AAC7E,MAAM,aAAa,GAAyB,IAAI,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,eAAe,GAEjB;IACF,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACtC,uEAAuE;IACvE,sEAAsE;IACtE,4DAA4D;IAC5D,CAAC,sBAAsB,EAAE,2BAA2B,CAAC;IACrD,CAAC,oBAAoB,EAAE,2BAA2B,CAAC;IACnD,CAAC,yBAAyB,EAAE,2BAA2B,CAAC;IACxD,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC1C,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;IACtD,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAClD,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC1C,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,SAAS,EAAE,SAAS,CAAC;IACtB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;CAC3C,CAAC;AAEF,0EAA0E;AAC1E,wEAAwE;AACxE,MAAM,sBAAsB,GAAyB,IAAI,GAAG,CAAC;IAC3D,iBAAiB;IACjB,oBAAoB;IACpB,yBAAyB;IACzB,2BAA2B;IAC3B,yBAAyB;CAC1B,CAAC,CAAC;AAEH,wEAAwE;AACxE,MAAM,UAAU,sBAAsB,CACpC,KAAc;IAEd,OAAO,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,wBAAwB,CACtC,QAAgB,EAChB,OAA2B;IAE3B,0EAA0E;IAC1E,MAAM,OAAO,GAAyB,IAAI,GAAG,CAC3C,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CACtC,CAAC;IACF,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACvE,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7B,IAAI,QAAQ,KAAK,eAAe;QAAE,OAAO,eAAe,CAAC;IACzD,IAAI,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO,2BAA2B,CAAC;IAC7E,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/mcp-i-cloudflare",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.2",
|
|
4
4
|
"description": "Cloudflare Workers adapter for MCP-I framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@kya-os/consent": "^0.2
|
|
34
|
-
"@kya-os/contracts": "^1.15.
|
|
35
|
-
"@kya-os/mcp": "1.
|
|
36
|
-
"@kya-os/mcp-i-core": "^1.9.
|
|
37
|
-
"@kya-os/mcp-i-runtime": "^1.3.
|
|
33
|
+
"@kya-os/consent": "^0.4.2",
|
|
34
|
+
"@kya-os/contracts": "^1.15.1",
|
|
35
|
+
"@kya-os/mcp": "1.26.0",
|
|
36
|
+
"@kya-os/mcp-i-core": "^1.9.6",
|
|
37
|
+
"@kya-os/mcp-i-runtime": "^1.3.4",
|
|
38
38
|
"@kya-os/provider-registry": "^0.1.7",
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
40
40
|
"agents": "^0.4.1",
|