@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.
- package/dist/317.js +1 -0
- package/dist/342.js +1 -0
- package/dist/354.js +1 -1
- package/dist/95.js +1 -1
- package/dist/auth/oauth/router.js +2 -2
- package/dist/cli-adapter/index.js +1 -1
- package/dist/providers/node-providers.d.ts +1 -1
- package/dist/providers/node-providers.js +9 -9
- package/dist/runtime/337.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/auth-handshake.d.ts +1 -1
- package/dist/runtime/auth-handshake.js +4 -4
- 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/delegation-verifier-agentshield.js +1 -0
- 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-wrapper.d.ts +1 -1
- package/dist/runtime/mcpi-runtime-wrapper.js +4 -4
- package/dist/runtime/mcpi-runtime.d.ts +9 -1
- package/dist/runtime/mcpi-runtime.js +21 -3
- package/dist/runtime/outbound-delegation.d.ts +5 -3
- package/dist/runtime/outbound-delegation.js +15 -8
- package/dist/runtime/outbound-identity-bridge.d.ts +40 -0
- package/dist/runtime/outbound-identity-bridge.js +119 -0
- package/dist/runtime/proof-batch-queue.d.ts +1 -1
- package/dist/runtime/proof.d.ts +2 -2
- package/dist/runtime/proof.js +3 -3
- 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.d.ts +2 -2
- package/dist/runtime/session.js +12 -6
- package/dist/runtime/stdio.js +3 -3
- package/dist/runtime/utils/tools.d.ts +2 -2
- package/dist/runtime/utils/tools.js +33 -10
- package/dist/runtime/well-known.d.ts +12 -1
- package/dist/runtime/well-known.js +13 -2
- package/package.json +6 -4
- 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
|
/**
|
|
@@ -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-
|
|
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
|
|
11
|
-
Object.defineProperty(exports, "verifyOrHints", { enumerable: true, get: function () { return
|
|
12
|
-
Object.defineProperty(exports, "hasSensitiveScopes", { enumerable: true, get: function () { return
|
|
13
|
-
Object.defineProperty(exports, "MemoryResumeTokenStore", { enumerable: true, get: function () { return
|
|
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; } });
|
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
|
}
|
|
@@ -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
|
/**
|