@kya-os/mcp-i 1.10.0 → 1.11.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.
Files changed (51) hide show
  1. package/dist/317.js +1 -0
  2. package/dist/342.js +1 -0
  3. package/dist/354.js +1 -1
  4. package/dist/95.js +1 -1
  5. package/dist/auth/oauth/router.js +2 -2
  6. package/dist/cli-adapter/index.js +1 -1
  7. package/dist/providers/node-providers.d.ts +1 -1
  8. package/dist/providers/node-providers.js +9 -9
  9. package/dist/runtime/337.js +1 -0
  10. package/dist/runtime/adapter-express.js +3 -3
  11. package/dist/runtime/adapter-nextjs.js +5 -5
  12. package/dist/runtime/audit.d.ts +1 -1
  13. package/dist/runtime/auth-handshake.d.ts +1 -1
  14. package/dist/runtime/auth-handshake.js +4 -4
  15. package/dist/runtime/debug.d.ts +1 -1
  16. package/dist/runtime/debug.js +3 -2
  17. package/dist/runtime/delegation-hooks.d.ts +1 -1
  18. package/dist/runtime/delegation-verifier-agentshield.js +1 -0
  19. package/dist/runtime/http.js +3 -3
  20. package/dist/runtime/identity.d.ts +4 -4
  21. package/dist/runtime/identity.js +4 -4
  22. package/dist/runtime/index.d.ts +6 -2
  23. package/dist/runtime/index.js +10 -2
  24. package/dist/runtime/mcpi-runtime-wrapper.d.ts +1 -1
  25. package/dist/runtime/mcpi-runtime-wrapper.js +4 -4
  26. package/dist/runtime/mcpi-runtime.d.ts +9 -1
  27. package/dist/runtime/mcpi-runtime.js +21 -3
  28. package/dist/runtime/outbound-delegation.d.ts +5 -3
  29. package/dist/runtime/outbound-delegation.js +15 -8
  30. package/dist/runtime/outbound-identity-bridge.d.ts +40 -0
  31. package/dist/runtime/outbound-identity-bridge.js +119 -0
  32. package/dist/runtime/proof-batch-queue.d.ts +1 -1
  33. package/dist/runtime/proof.d.ts +2 -2
  34. package/dist/runtime/proof.js +3 -3
  35. package/dist/runtime/request-context.d.ts +10 -0
  36. package/dist/runtime/request-context.js +4 -0
  37. package/dist/runtime/resume-token-store-kv.d.ts +44 -0
  38. package/dist/runtime/resume-token-store-kv.js +93 -0
  39. package/dist/runtime/resume-token-store.d.ts +30 -0
  40. package/dist/runtime/resume-token-store.js +46 -0
  41. package/dist/runtime/session.d.ts +2 -2
  42. package/dist/runtime/session.js +12 -6
  43. package/dist/runtime/stdio.js +3 -3
  44. package/dist/runtime/utils/tools.d.ts +2 -2
  45. package/dist/runtime/utils/tools.js +33 -10
  46. package/dist/runtime/well-known.d.ts +12 -1
  47. package/dist/runtime/well-known.js +13 -2
  48. package/package.json +6 -4
  49. package/dist/225.js +0 -1
  50. package/dist/runtime/verifier-middleware.d.ts +0 -99
  51. package/dist/runtime/verifier-middleware.js +0 -416
@@ -44,7 +44,7 @@
44
44
  * @module audit
45
45
  * @see {@link https://github.com/kya-os/xmcp-i/docs/concepts/audit-logging.md | Audit Logging Documentation}
46
46
  */
47
- import { AuditRecord } from "@kya-os/contracts/proof";
47
+ import type { AuditRecord } from "@kya-os/mcp/types" with { "resolution-mode": "import" };
48
48
  import { SessionContext } from "@kya-os/contracts/handshake";
49
49
  import { AgentIdentity } from "./identity";
50
50
  /**
@@ -4,4 +4,4 @@
4
4
  * Re-exports the platform-agnostic auth handshake from @kya-os/mcp-i-core.
5
5
  * All existing public exports are maintained for backward compatibility.
6
6
  */
7
- export { verifyOrHints, hasSensitiveScopes, MemoryResumeTokenStore, type AuthHandshakeConfig, type VerifyOrHintsResult, type AgentReputation, type ResumeTokenStore, type DelegationVerifier, type VerifyDelegationResult, } from "@kya-os/mcp-i-core";
7
+ export { verifyOrHints, hasSensitiveScopes, MemoryResumeTokenStore, type AuthHandshakeConfig, type VerifyOrHintsResult, type AgentReputation, type ResumeTokenStore, type DelegationVerifier, type VerifyDelegationResult, } from "@kya-os/mcp-i-runtime";
@@ -7,7 +7,7 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.MemoryResumeTokenStore = exports.hasSensitiveScopes = exports.verifyOrHints = void 0;
10
- var mcp_i_core_1 = require("@kya-os/mcp-i-core");
11
- Object.defineProperty(exports, "verifyOrHints", { enumerable: true, get: function () { return mcp_i_core_1.verifyOrHints; } });
12
- Object.defineProperty(exports, "hasSensitiveScopes", { enumerable: true, get: function () { return mcp_i_core_1.hasSensitiveScopes; } });
13
- Object.defineProperty(exports, "MemoryResumeTokenStore", { enumerable: true, get: function () { return mcp_i_core_1.MemoryResumeTokenStore; } });
10
+ var mcp_i_runtime_1 = require("@kya-os/mcp-i-runtime");
11
+ Object.defineProperty(exports, "verifyOrHints", { enumerable: true, get: function () { return mcp_i_runtime_1.verifyOrHints; } });
12
+ Object.defineProperty(exports, "hasSensitiveScopes", { enumerable: true, get: function () { return mcp_i_runtime_1.hasSensitiveScopes; } });
13
+ Object.defineProperty(exports, "MemoryResumeTokenStore", { enumerable: true, get: function () { return mcp_i_runtime_1.MemoryResumeTokenStore; } });
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { AgentIdentity } from "./identity";
8
8
  import { SessionContext } from "@kya-os/contracts/handshake";
9
- import { DetachedProof, ProofMeta } from "@kya-os/contracts/proof";
9
+ import type { DetachedProof, ProofMeta } from "@kya-os/mcp/types" with { "resolution-mode": "import" };
10
10
  import { DIDDocument, AgentDocument } from "./well-known";
11
11
  /**
12
12
  * Debug verification result
@@ -68,7 +68,8 @@ class DebugManager {
68
68
  meta: this.lastProof.meta,
69
69
  canonicalHashes: {
70
70
  requestHash: this.lastProof.meta.requestHash,
71
- responseHash: this.lastProof.meta.responseHash,
71
+ // DIF @kya-os/mcp ProofMeta types responseHash as optional; coalesce for debug display.
72
+ responseHash: this.lastProof.meta.responseHash ?? "",
72
73
  },
73
74
  };
74
75
  // Perform local verification
@@ -148,7 +149,7 @@ class DebugManager {
148
149
  }
149
150
  // Validate hash format
150
151
  result.proof.hashes.requestValid = /^sha256:[a-f0-9]{64}$/.test(proof.meta.requestHash);
151
- result.proof.hashes.responseValid = /^sha256:[a-f0-9]{64}$/.test(proof.meta.responseHash);
152
+ result.proof.hashes.responseValid = /^sha256:[a-f0-9]{64}$/.test(proof.meta.responseHash ?? "");
152
153
  if (!result.proof.hashes.requestValid) {
153
154
  result.errors?.push("Invalid request hash format");
154
155
  }
@@ -1,4 +1,4 @@
1
- import { ProofMeta } from "@kya-os/contracts/proof";
1
+ import type { ProofMeta } from "@kya-os/mcp/types" with { "resolution-mode": "import" };
2
2
  import { DelegationManager } from "../storage/delegation";
3
3
  /**
4
4
  * Runtime hooks for delegation support
@@ -26,6 +26,7 @@ exports.AgentShieldAPIDelegationVerifier = void 0;
26
26
  const delegation_1 = require("@kya-os/contracts/delegation");
27
27
  const agentshield_api_1 = require("@kya-os/contracts/agentshield-api");
28
28
  const delegation_verifier_1 = require("./delegation-verifier");
29
+ // 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.
29
30
  const mcp_i_core_1 = require("@kya-os/mcp-i-core");
30
31
  const node_providers_1 = require("../providers/node-providers");
31
32
  /**