@kya-os/mcp-i 1.6.2-canary.0 → 1.6.2-canary.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.
@@ -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
  *
@@ -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('hex')
194
+ nonce: (0, crypto_1.randomBytes)(16).toString("hex"),
191
195
  });
192
- return (0, crypto_1.createHash)('sha256').update(content).digest('hex');
196
+ return (0, crypto_1.createHash)("sha256").update(content).digest("hex");
193
197
  }
194
198
  /**
195
199
  * Format audit record as frozen audit line