@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.
- package/dist/317.js +1 -0
- package/dist/354.js +1 -1
- package/dist/839.js +1 -0
- package/dist/95.js +1 -1
- package/dist/cli-adapter/index.js +1 -1
- package/dist/runtime/102.js +1 -0
- package/dist/runtime/adapter-express.js +3 -3
- package/dist/runtime/adapter-nextjs.js +5 -5
- package/dist/runtime/audit.d.ts +1 -1
- package/dist/runtime/debug.d.ts +1 -1
- package/dist/runtime/debug.js +3 -2
- package/dist/runtime/delegation-hooks.d.ts +1 -1
- package/dist/runtime/http.js +3 -3
- package/dist/runtime/identity.d.ts +4 -4
- package/dist/runtime/identity.js +4 -4
- package/dist/runtime/index.d.ts +6 -2
- package/dist/runtime/index.js +10 -2
- package/dist/runtime/mcpi-runtime.d.ts +9 -1
- package/dist/runtime/mcpi-runtime.js +20 -3
- package/dist/runtime/outbound-delegation.d.ts +5 -3
- package/dist/runtime/outbound-delegation.js +14 -8
- package/dist/runtime/outbound-identity-bridge.d.ts +40 -0
- package/dist/runtime/outbound-identity-bridge.js +114 -0
- package/dist/runtime/proof-batch-queue.d.ts +1 -1
- package/dist/runtime/request-context.d.ts +10 -0
- package/dist/runtime/request-context.js +4 -0
- package/dist/runtime/resume-token-store-kv.d.ts +44 -0
- package/dist/runtime/resume-token-store-kv.js +93 -0
- package/dist/runtime/resume-token-store.d.ts +30 -0
- package/dist/runtime/resume-token-store.js +46 -0
- package/dist/runtime/session.js +6 -0
- package/dist/runtime/stdio.js +3 -3
- package/dist/runtime/utils/tools.d.ts +1 -1
- package/dist/runtime/utils/tools.js +29 -7
- package/dist/runtime/well-known.d.ts +12 -1
- package/dist/runtime/well-known.js +13 -2
- package/package.json +4 -2
- package/dist/225.js +0 -1
- package/dist/runtime/verifier-middleware.d.ts +0 -99
- package/dist/runtime/verifier-middleware.js +0 -416
package/dist/runtime/audit.d.ts
CHANGED
|
@@ -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/
|
|
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
|
/**
|
package/dist/runtime/debug.d.ts
CHANGED
|
@@ -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/
|
|
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
|
package/dist/runtime/debug.js
CHANGED
|
@@ -68,7 +68,8 @@ class DebugManager {
|
|
|
68
68
|
meta: this.lastProof.meta,
|
|
69
69
|
canonicalHashes: {
|
|
70
70
|
requestHash: this.lastProof.meta.requestHash,
|
|
71
|
-
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
|
}
|