@agentmemory/agentmemory 0.9.0 → 0.9.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/README.md +2 -2
- package/dist/cli.mjs +44 -21
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +53 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{src-B3pEsBSb.mjs → src-Dw_gJcCy.mjs} +54 -4
- package/dist/src-Dw_gJcCy.mjs.map +1 -0
- package/dist/{standalone-DXc-BEqr.mjs → standalone-BEWvWM5P.mjs} +2 -2
- package/dist/{standalone-DXc-BEqr.mjs.map → standalone-BEWvWM5P.mjs.map} +1 -1
- package/dist/standalone.mjs +1 -1
- package/dist/standalone.mjs.map +1 -1
- package/dist/{tools-registry-DXIK5CxQ.mjs → tools-registry-BvWNlj6u.mjs} +2 -2
- package/dist/tools-registry-BvWNlj6u.mjs.map +1 -0
- package/dist/viewer/index.html +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/src-B3pEsBSb.mjs.map +0 -1
- package/dist/tools-registry-DXIK5CxQ.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 { a as getEnvVar, c as isConsolidationEnabled, d as loadClaudeBridgeConfig, f as loadConfig, g as loadTeamConfig, h as loadSnapshotConfig, i as getConsolidationDecayDays, l as isContextInjectionEnabled, m as loadFallbackConfig, n as VERSION, p as loadEmbeddingConfig, r as detectEmbeddingProvider, s as isAutoCompressEnabled, t as getVisibleTools, u as isGraphExtractionEnabled } from "./tools-registry-
|
|
2
|
+
import { a as getEnvVar, c as isConsolidationEnabled, d as loadClaudeBridgeConfig, f as loadConfig, g as loadTeamConfig, h as loadSnapshotConfig, i as getConsolidationDecayDays, l as isContextInjectionEnabled, m as loadFallbackConfig, n as VERSION, p as loadEmbeddingConfig, r as detectEmbeddingProvider, s as isAutoCompressEnabled, t as getVisibleTools, u as isGraphExtractionEnabled } from "./tools-registry-BvWNlj6u.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";
|
|
@@ -4384,7 +4384,8 @@ function registerExportImportFunction(sdk, kv) {
|
|
|
4384
4384
|
"0.8.11",
|
|
4385
4385
|
"0.8.12",
|
|
4386
4386
|
"0.8.13",
|
|
4387
|
-
"0.9.0"
|
|
4387
|
+
"0.9.0",
|
|
4388
|
+
"0.9.1"
|
|
4388
4389
|
]).has(importData.version)) return {
|
|
4389
4390
|
success: false,
|
|
4390
4391
|
error: `Unsupported export version: ${importData.version}`
|
|
@@ -11531,6 +11532,7 @@ function buildViewerCsp(nonce) {
|
|
|
11531
11532
|
|
|
11532
11533
|
//#endregion
|
|
11533
11534
|
//#region src/viewer/document.ts
|
|
11535
|
+
const VIEWER_VERSION_PLACEHOLDER = "__AGENTMEMORY_VERSION__";
|
|
11534
11536
|
function loadViewerTemplate() {
|
|
11535
11537
|
const base = dirname(fileURLToPath(import.meta.url));
|
|
11536
11538
|
const candidates = [
|
|
@@ -11549,7 +11551,7 @@ function renderViewerDocument() {
|
|
|
11549
11551
|
const nonce = createViewerNonce();
|
|
11550
11552
|
return {
|
|
11551
11553
|
found: true,
|
|
11552
|
-
html: template.replaceAll(VIEWER_NONCE_PLACEHOLDER, nonce),
|
|
11554
|
+
html: template.replaceAll(VIEWER_NONCE_PLACEHOLDER, nonce).replaceAll(VIEWER_VERSION_PLACEHOLDER, VERSION),
|
|
11553
11555
|
csp: buildViewerCsp(nonce)
|
|
11554
11556
|
};
|
|
11555
11557
|
}
|
|
@@ -12786,6 +12788,54 @@ function registerApiTriggers(sdk, kv, secret, metricsStore, provider) {
|
|
|
12786
12788
|
http_method: "GET"
|
|
12787
12789
|
}
|
|
12788
12790
|
});
|
|
12791
|
+
sdk.registerFunction("api::semantic-list", async (req) => {
|
|
12792
|
+
const authErr = checkAuth(req, secret);
|
|
12793
|
+
if (authErr) return authErr;
|
|
12794
|
+
return {
|
|
12795
|
+
status_code: 200,
|
|
12796
|
+
body: { semantic: await kv.list(KV.semantic) }
|
|
12797
|
+
};
|
|
12798
|
+
});
|
|
12799
|
+
sdk.registerTrigger({
|
|
12800
|
+
type: "http",
|
|
12801
|
+
function_id: "api::semantic-list",
|
|
12802
|
+
config: {
|
|
12803
|
+
api_path: "/agentmemory/semantic",
|
|
12804
|
+
http_method: "GET"
|
|
12805
|
+
}
|
|
12806
|
+
});
|
|
12807
|
+
sdk.registerFunction("api::procedural-list", async (req) => {
|
|
12808
|
+
const authErr = checkAuth(req, secret);
|
|
12809
|
+
if (authErr) return authErr;
|
|
12810
|
+
return {
|
|
12811
|
+
status_code: 200,
|
|
12812
|
+
body: { procedural: await kv.list(KV.procedural) }
|
|
12813
|
+
};
|
|
12814
|
+
});
|
|
12815
|
+
sdk.registerTrigger({
|
|
12816
|
+
type: "http",
|
|
12817
|
+
function_id: "api::procedural-list",
|
|
12818
|
+
config: {
|
|
12819
|
+
api_path: "/agentmemory/procedural",
|
|
12820
|
+
http_method: "GET"
|
|
12821
|
+
}
|
|
12822
|
+
});
|
|
12823
|
+
sdk.registerFunction("api::relations-list", async (req) => {
|
|
12824
|
+
const authErr = checkAuth(req, secret);
|
|
12825
|
+
if (authErr) return authErr;
|
|
12826
|
+
return {
|
|
12827
|
+
status_code: 200,
|
|
12828
|
+
body: { relations: await kv.list(KV.relations) }
|
|
12829
|
+
};
|
|
12830
|
+
});
|
|
12831
|
+
sdk.registerTrigger({
|
|
12832
|
+
type: "http",
|
|
12833
|
+
function_id: "api::relations-list",
|
|
12834
|
+
config: {
|
|
12835
|
+
api_path: "/agentmemory/relations",
|
|
12836
|
+
http_method: "GET"
|
|
12837
|
+
}
|
|
12838
|
+
});
|
|
12789
12839
|
sdk.registerFunction("api::action-create", async (req) => {
|
|
12790
12840
|
const authErr = checkAuth(req, secret);
|
|
12791
12841
|
if (authErr) return authErr;
|
|
@@ -16238,4 +16288,4 @@ main().catch((err) => {
|
|
|
16238
16288
|
|
|
16239
16289
|
//#endregion
|
|
16240
16290
|
export { };
|
|
16241
|
-
//# sourceMappingURL=src-
|
|
16291
|
+
//# sourceMappingURL=src-Dw_gJcCy.mjs.map
|