@kya-os/mcp-i 1.6.2-canary.0 → 1.6.3-canary.clientinfo.20251126124133
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/295.js +1 -1
- package/dist/cli-adapter/index.d.ts +2 -0
- package/dist/cli-adapter/index.js +9 -5
- package/dist/cli-adapter/kta-registration.d.ts +9 -0
- package/dist/cli-adapter/kta-registration.js +75 -0
- package/dist/compiler/get-webpack-config/index.js +11 -2
- package/dist/compiler/index.js +12 -2
- package/dist/compiler/parse-xmcp-config.js +5 -0
- package/dist/index.js.LICENSE.txt +0 -6
- package/dist/runtime/adapter-express.js +1 -1
- package/dist/runtime/adapter-nextjs.js +1 -1
- package/dist/runtime/audit.d.ts +4 -0
- package/dist/runtime/audit.js +6 -2
- package/dist/runtime/http.js +1 -1
- package/dist/runtime/identity.d.ts +12 -0
- package/dist/runtime/identity.js +15 -1
- package/dist/runtime/mcpi-runtime-wrapper.d.ts +2 -3
- package/dist/runtime/mcpi-runtime-wrapper.js +20 -17
- package/dist/runtime/mcpi-runtime.js +7 -1
- package/dist/runtime/session.d.ts +13 -0
- package/dist/runtime/session.js +43 -0
- package/dist/runtime/stdio.js +1 -1
- package/dist/runtime/utils/tools.js +196 -23
- package/package.json +19 -20
package/dist/runtime/audit.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Audit Logging System for MCP-I Runtime
|
|
3
3
|
*
|
|
4
|
+
* TODO: Update AuditLogger to implement IAuditLogger from @kya-os/mcp-i-core/runtime/audit-logger.
|
|
5
|
+
* Currently using Node.js-specific implementation. This will allow the interface to be used
|
|
6
|
+
* across all platform implementations while maintaining platform-specific crypto implementations.
|
|
7
|
+
*
|
|
4
8
|
* Handles audit record generation and logging with frozen format
|
|
5
9
|
* according to requirements 5.4, 5.5, and 6.7 (configurable retention).
|
|
6
10
|
*
|
package/dist/runtime/audit.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Audit Logging System for MCP-I Runtime
|
|
4
4
|
*
|
|
5
|
+
* TODO: Update AuditLogger to implement IAuditLogger from @kya-os/mcp-i-core/runtime/audit-logger.
|
|
6
|
+
* Currently using Node.js-specific implementation. This will allow the interface to be used
|
|
7
|
+
* across all platform implementations while maintaining platform-specific crypto implementations.
|
|
8
|
+
*
|
|
5
9
|
* Handles audit record generation and logging with frozen format
|
|
6
10
|
* according to requirements 5.4, 5.5, and 6.7 (configurable retention).
|
|
7
11
|
*
|
|
@@ -187,9 +191,9 @@ class AuditLogger {
|
|
|
187
191
|
type,
|
|
188
192
|
data,
|
|
189
193
|
ts: Date.now(),
|
|
190
|
-
nonce: (0, crypto_1.randomBytes)(16).toString(
|
|
194
|
+
nonce: (0, crypto_1.randomBytes)(16).toString("hex"),
|
|
191
195
|
});
|
|
192
|
-
return (0, crypto_1.createHash)(
|
|
196
|
+
return (0, crypto_1.createHash)("sha256").update(content).digest("hex");
|
|
193
197
|
}
|
|
194
198
|
/**
|
|
195
199
|
* Format audit record as frozen audit line
|