@kya-os/mcp-i 1.13.0 → 1.13.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.
@@ -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
- // The former subpath on purpose: it is in every contracts release mcp-i's range
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 = agentshield_api_1.verifyDelegationRequestSchema.parse({
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 agentshield_api_1.AgentShieldAPIError) {
112
+ if (error instanceof checkpoint_api_1.CheckpointAPIError) {
117
113
  return {
118
114
  valid: false,
119
115
  reason: error.message,