@atbash/sdk 0.13.2-dev.0 → 0.13.3-dev.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/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -5
package/dist/index.js
CHANGED
|
@@ -43094,11 +43094,20 @@ async function rollbackMemory(toId, reason, auth, opts) {
|
|
|
43094
43094
|
);
|
|
43095
43095
|
}
|
|
43096
43096
|
|
|
43097
|
+
// src-ts/memory/_json_safe.ts
|
|
43098
|
+
function toJsonSafe(value) {
|
|
43099
|
+
try {
|
|
43100
|
+
return JSON.parse(JSON.stringify(value ?? null));
|
|
43101
|
+
} catch {
|
|
43102
|
+
return null;
|
|
43103
|
+
}
|
|
43104
|
+
}
|
|
43105
|
+
|
|
43097
43106
|
// src-ts/memory/classifier.ts
|
|
43098
43107
|
var DEFAULT_MEMORY_WRITE_TOOL_NAMES = native.defaultMemoryWriteToolNames();
|
|
43099
43108
|
var DEFAULT_MEMORY_PATH_PATTERNS = native.defaultMemoryPathPatterns();
|
|
43100
43109
|
function classifyMemoryWrite(event, ctx, opts = {}) {
|
|
43101
|
-
return native.classifyMemoryWrite(event, ctx, {
|
|
43110
|
+
return native.classifyMemoryWrite(toJsonSafe(event), toJsonSafe(ctx), {
|
|
43102
43111
|
patterns: opts.patterns ? [...opts.patterns] : void 0,
|
|
43103
43112
|
toolNames: opts.toolNames ? [...opts.toolNames] : void 0
|
|
43104
43113
|
});
|
|
@@ -43336,7 +43345,7 @@ function defaultPluginLogPath(workspaceDir = process.cwd()) {
|
|
|
43336
43345
|
// src-ts/memory/read-classifier.ts
|
|
43337
43346
|
var DEFAULT_MEMORY_READ_TOOL_NAMES = native.defaultMemoryReadToolNames();
|
|
43338
43347
|
function classifyMemoryRead(event, ctx, opts = {}) {
|
|
43339
|
-
return native.classifyMemoryRead(event, ctx, {
|
|
43348
|
+
return native.classifyMemoryRead(toJsonSafe(event), toJsonSafe(ctx), {
|
|
43340
43349
|
readToolNames: opts.readToolNames ? [...opts.readToolNames] : void 0,
|
|
43341
43350
|
patterns: opts.patterns ? [...opts.patterns] : void 0,
|
|
43342
43351
|
genericReadToolNames: opts.genericReadToolNames ? [...opts.genericReadToolNames] : void 0
|