@agentmemory/agentmemory 0.9.10 → 0.9.11
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/README.md +22 -2
- package/dist/cli.mjs +4 -4
- package/dist/image-refs-D4M1sJAz.mjs +3 -0
- package/dist/{image-store-BmdmQ4tI.mjs → image-store-DR4g1FAW.mjs} +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{src-d1vwmuPU.mjs → src-IbjZ5iJi.mjs} +11 -10
- package/dist/src-IbjZ5iJi.mjs.map +1 -0
- package/dist/{standalone-DQrqCL0s.mjs → standalone-awLAlipf.mjs} +2 -2
- package/dist/{standalone-DQrqCL0s.mjs.map → standalone-awLAlipf.mjs.map} +1 -1
- package/dist/standalone.mjs +1 -1
- package/dist/standalone.mjs.map +1 -1
- package/dist/{tools-registry-C04WM1dS.mjs → tools-registry-CzSNN8Ca.mjs} +2 -2
- package/dist/{tools-registry-C04WM1dS.mjs.map → tools-registry-CzSNN8Ca.mjs.map} +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +15 -0
- package/plugin/hooks/hooks.codex.json +67 -0
- package/dist/image-refs-BIABW8uB.mjs +0 -3
- package/dist/src-d1vwmuPU.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as jaccardSimilarity, i as generateId, n as STREAM, r as fingerprintId, t as KV } from "./cli.mjs";
|
|
2
|
-
import { _ as loadSnapshotConfig, a as detectLlmProviderKind, d as isContextInjectionEnabled, f as isGraphExtractionEnabled, g as loadFallbackConfig, h as loadEmbeddingConfig, i as detectEmbeddingProvider, l as isAutoCompressEnabled, m as loadConfig, n as getVisibleTools, o as getConsolidationDecayDays, p as loadClaudeBridgeConfig, r as VERSION, s as getEnvVar, t as getAllTools, u as isConsolidationEnabled, v as loadTeamConfig } from "./tools-registry-
|
|
2
|
+
import { _ as loadSnapshotConfig, a as detectLlmProviderKind, d as isContextInjectionEnabled, f as isGraphExtractionEnabled, g as loadFallbackConfig, h as loadEmbeddingConfig, i as detectEmbeddingProvider, l as isAutoCompressEnabled, m as loadConfig, n as getVisibleTools, o as getConsolidationDecayDays, p as loadClaudeBridgeConfig, r as VERSION, s as getEnvVar, t as getAllTools, u as isConsolidationEnabled, v as loadTeamConfig } from "./tools-registry-CzSNN8Ca.mjs";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { constants, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { basename, dirname, extname, join, resolve, sep } from "node:path";
|
|
@@ -2600,10 +2600,10 @@ function registerObserveFunction(sdk, kv, dedupMap, maxObservationsPerSession) {
|
|
|
2600
2600
|
};
|
|
2601
2601
|
}
|
|
2602
2602
|
if (pendingImageData && (pendingImageData.startsWith("data:image/") || pendingImageData.startsWith("iVBORw0KGgo") || pendingImageData.startsWith("/9j/"))) {
|
|
2603
|
-
const { saveImageToDisk } = await import("./image-store-
|
|
2603
|
+
const { saveImageToDisk } = await import("./image-store-DR4g1FAW.mjs");
|
|
2604
2604
|
const { filePath, bytesWritten } = await saveImageToDisk(pendingImageData);
|
|
2605
2605
|
raw.imageData = filePath;
|
|
2606
|
-
const { incrementImageRef } = await import("./image-refs-
|
|
2606
|
+
const { incrementImageRef } = await import("./image-refs-D4M1sJAz.mjs");
|
|
2607
2607
|
await incrementImageRef(kv, filePath);
|
|
2608
2608
|
sdk.triggerVoid("mem::disk-size-delta", { deltaBytes: bytesWritten });
|
|
2609
2609
|
if (process.env["AGENTMEMORY_IMAGE_EMBEDDINGS"] === "true") sdk.triggerVoid("mem::vision-embed", {
|
|
@@ -2616,7 +2616,7 @@ function registerObserveFunction(sdk, kv, dedupMap, maxObservationsPerSession) {
|
|
|
2616
2616
|
await kv.set(KV.observations(payload.sessionId), obsId, raw);
|
|
2617
2617
|
} catch (error) {
|
|
2618
2618
|
if (raw.imageData) {
|
|
2619
|
-
const { deleteImage } = await import("./image-store-
|
|
2619
|
+
const { deleteImage } = await import("./image-store-DR4g1FAW.mjs");
|
|
2620
2620
|
const { deletedBytes } = await deleteImage(raw.imageData);
|
|
2621
2621
|
if (deletedBytes > 0) sdk.triggerVoid("mem::disk-size-delta", { deltaBytes: -deletedBytes });
|
|
2622
2622
|
}
|
|
@@ -4681,7 +4681,7 @@ function registerRememberFunction(sdk, kv) {
|
|
|
4681
4681
|
const deletedMemoryIds = [];
|
|
4682
4682
|
const deletedObservationIds = [];
|
|
4683
4683
|
let deletedSession = false;
|
|
4684
|
-
const { decrementImageRef } = await import("./image-refs-
|
|
4684
|
+
const { decrementImageRef } = await import("./image-refs-D4M1sJAz.mjs");
|
|
4685
4685
|
if (data.memoryId) {
|
|
4686
4686
|
const mem = await kv.get(KV.memories, data.memoryId);
|
|
4687
4687
|
await kv.delete(KV.memories, data.memoryId);
|
|
@@ -4740,7 +4740,7 @@ const DEFAULTS$1 = {
|
|
|
4740
4740
|
function registerEvictFunction(sdk, kv) {
|
|
4741
4741
|
sdk.registerFunction("mem::evict", async (data) => {
|
|
4742
4742
|
const dryRun = data?.dryRun ?? false;
|
|
4743
|
-
const { decrementImageRef } = await import("./image-refs-
|
|
4743
|
+
const { decrementImageRef } = await import("./image-refs-D4M1sJAz.mjs");
|
|
4744
4744
|
const configOverride = await kv.get(KV.config, "eviction").catch(() => null);
|
|
4745
4745
|
const cfg = {
|
|
4746
4746
|
...DEFAULTS$1,
|
|
@@ -5343,7 +5343,7 @@ function registerAutoForgetFunction(sdk, kv) {
|
|
|
5343
5343
|
sdk.registerFunction("mem::auto-forget", async (data) => {
|
|
5344
5344
|
const dryRun = data?.dryRun ?? false;
|
|
5345
5345
|
const now = Date.now();
|
|
5346
|
-
const { decrementImageRef } = await import("./image-refs-
|
|
5346
|
+
const { decrementImageRef } = await import("./image-refs-D4M1sJAz.mjs");
|
|
5347
5347
|
const result = {
|
|
5348
5348
|
ttlExpired: [],
|
|
5349
5349
|
contradictions: [],
|
|
@@ -5582,7 +5582,8 @@ function registerExportImportFunction(sdk, kv) {
|
|
|
5582
5582
|
"0.9.7",
|
|
5583
5583
|
"0.9.8",
|
|
5584
5584
|
"0.9.9",
|
|
5585
|
-
"0.9.10"
|
|
5585
|
+
"0.9.10",
|
|
5586
|
+
"0.9.11"
|
|
5586
5587
|
]).has(importData.version)) return {
|
|
5587
5588
|
success: false,
|
|
5588
5589
|
error: `Unsupported export version: ${importData.version}`
|
|
@@ -11939,7 +11940,7 @@ function registerRetentionFunctions(sdk, kv) {
|
|
|
11939
11940
|
const threshold = typeof data?.threshold === "number" && Number.isFinite(data.threshold) ? data.threshold : DEFAULT_DECAY.tierThresholds.cold;
|
|
11940
11941
|
const maxEvictRaw = typeof data?.maxEvict === "number" && Number.isInteger(data.maxEvict) ? data.maxEvict : 50;
|
|
11941
11942
|
const maxEvict = Math.min(1e3, Math.max(0, maxEvictRaw));
|
|
11942
|
-
const { decrementImageRef } = await import("./image-refs-
|
|
11943
|
+
const { decrementImageRef } = await import("./image-refs-D4M1sJAz.mjs");
|
|
11943
11944
|
const candidates = (await kv.list(KV.retentionScores)).filter((s) => s.score < threshold).sort((a, b) => a.score - b.score).slice(0, maxEvict);
|
|
11944
11945
|
if (data?.dryRun) return {
|
|
11945
11946
|
success: true,
|
|
@@ -18293,4 +18294,4 @@ main().catch((err) => {
|
|
|
18293
18294
|
|
|
18294
18295
|
//#endregion
|
|
18295
18296
|
export { deleteImage as a, saveImageToDisk as c, IMAGES_DIR as i, touchImage as l, getImageRefCount as n, getMaxBytes as o, incrementImageRef as r, isManagedImagePath as s, decrementImageRef as t };
|
|
18296
|
-
//# sourceMappingURL=src-
|
|
18297
|
+
//# sourceMappingURL=src-IbjZ5iJi.mjs.map
|