@kya-os/mcp-i 1.13.0 → 1.13.1
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.
|
@@ -25,11 +25,7 @@
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.CheckpointAPIDelegationVerifier = void 0;
|
|
27
27
|
const delegation_1 = require("@kya-os/contracts/delegation");
|
|
28
|
-
|
|
29
|
-
// allows (^1.12.4), while "@kya-os/contracts/checkpoint-api" is only in releases
|
|
30
|
-
// from this rename on. Its AgentShieldAPIError is CheckpointAPIError there. Move
|
|
31
|
-
// to "@kya-os/contracts/checkpoint-api" once mcp-i requires such a release.
|
|
32
|
-
const agentshield_api_1 = require("@kya-os/contracts/agentshield-api");
|
|
28
|
+
const checkpoint_api_1 = require("@kya-os/contracts/checkpoint-api");
|
|
33
29
|
const delegation_verifier_1 = require("./delegation-verifier");
|
|
34
30
|
// C4 drain: stays on @kya-os/mcp-i-core - the test vi.mocks that specifier; source import + mock must drain together in L-Node-tests.
|
|
35
31
|
const mcp_i_core_1 = require("@kya-os/mcp-i-core");
|
|
@@ -88,7 +84,7 @@ class CheckpointAPIDelegationVerifier {
|
|
|
88
84
|
}
|
|
89
85
|
try {
|
|
90
86
|
// Validate request input using contracts schema
|
|
91
|
-
const requestBody =
|
|
87
|
+
const requestBody = checkpoint_api_1.verifyDelegationRequestSchema.parse({
|
|
92
88
|
agent_did: agentDid,
|
|
93
89
|
scopes,
|
|
94
90
|
});
|
|
@@ -113,7 +109,7 @@ class CheckpointAPIDelegationVerifier {
|
|
|
113
109
|
console.error("[Checkpoint] API call failed:", error);
|
|
114
110
|
// Return negative result on error (don't cache failures)
|
|
115
111
|
// Use standard error format
|
|
116
|
-
if (error instanceof
|
|
112
|
+
if (error instanceof checkpoint_api_1.CheckpointAPIError) {
|
|
117
113
|
return {
|
|
118
114
|
valid: false,
|
|
119
115
|
reason: error.message,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/mcp-i",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "The TypeScript MCP framework with identity features built-in",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"test": "vitest --run",
|
|
53
53
|
"test:coverage": "vitest --run --coverage",
|
|
54
54
|
"lint": "eslint src/**/*.ts",
|
|
55
|
-
"
|
|
55
|
+
"typecheck": "tsc --noEmit -p tsconfig.build.json",
|
|
56
56
|
"prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-dependencies.js"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"model-context-protocol"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@kya-os/contracts": "^1.13.
|
|
67
|
-
"@kya-os/mcp-i-core": "^1.9.
|
|
68
|
-
"@kya-os/mcp-i-runtime": "^1.3.
|
|
66
|
+
"@kya-os/contracts": "^1.13.1",
|
|
67
|
+
"@kya-os/mcp-i-core": "^1.9.4",
|
|
68
|
+
"@kya-os/mcp-i-runtime": "^1.3.1",
|
|
69
69
|
"@modelcontextprotocol/sdk": "^1.11.4",
|
|
70
70
|
"@swc/core": "^1.15.11",
|
|
71
71
|
"@types/express": "^5.0.6",
|