@kya-os/mcp-i 1.10.0 → 1.11.0

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 (40) hide show
  1. package/dist/317.js +1 -0
  2. package/dist/354.js +1 -1
  3. package/dist/839.js +1 -0
  4. package/dist/95.js +1 -1
  5. package/dist/cli-adapter/index.js +1 -1
  6. package/dist/runtime/102.js +1 -0
  7. package/dist/runtime/adapter-express.js +3 -3
  8. package/dist/runtime/adapter-nextjs.js +5 -5
  9. package/dist/runtime/audit.d.ts +1 -1
  10. package/dist/runtime/debug.d.ts +1 -1
  11. package/dist/runtime/debug.js +3 -2
  12. package/dist/runtime/delegation-hooks.d.ts +1 -1
  13. package/dist/runtime/http.js +3 -3
  14. package/dist/runtime/identity.d.ts +4 -4
  15. package/dist/runtime/identity.js +4 -4
  16. package/dist/runtime/index.d.ts +6 -2
  17. package/dist/runtime/index.js +10 -2
  18. package/dist/runtime/mcpi-runtime.d.ts +9 -1
  19. package/dist/runtime/mcpi-runtime.js +20 -3
  20. package/dist/runtime/outbound-delegation.d.ts +5 -3
  21. package/dist/runtime/outbound-delegation.js +14 -8
  22. package/dist/runtime/outbound-identity-bridge.d.ts +40 -0
  23. package/dist/runtime/outbound-identity-bridge.js +114 -0
  24. package/dist/runtime/proof-batch-queue.d.ts +1 -1
  25. package/dist/runtime/request-context.d.ts +10 -0
  26. package/dist/runtime/request-context.js +4 -0
  27. package/dist/runtime/resume-token-store-kv.d.ts +44 -0
  28. package/dist/runtime/resume-token-store-kv.js +93 -0
  29. package/dist/runtime/resume-token-store.d.ts +30 -0
  30. package/dist/runtime/resume-token-store.js +46 -0
  31. package/dist/runtime/session.js +6 -0
  32. package/dist/runtime/stdio.js +3 -3
  33. package/dist/runtime/utils/tools.d.ts +1 -1
  34. package/dist/runtime/utils/tools.js +29 -7
  35. package/dist/runtime/well-known.d.ts +12 -1
  36. package/dist/runtime/well-known.js +13 -2
  37. package/package.json +4 -2
  38. package/dist/225.js +0 -1
  39. package/dist/runtime/verifier-middleware.d.ts +0 -99
  40. 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
  /**
@@ -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