@agentmemory/agentmemory 0.9.17 → 0.9.18
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/.env.example +6 -0
- package/README.md +15 -1
- package/dist/.env.example +6 -0
- package/dist/cli.mjs +12 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +186 -28
- package/dist/index.mjs.map +1 -1
- package/dist/{src-TiNuQ3Ub.mjs → src-C7vygXCj.mjs} +186 -28
- package/dist/src-C7vygXCj.mjs.map +1 -0
- package/dist/{standalone-BIXq6S80.mjs → standalone-kg2TedgD.mjs} +16 -7
- package/dist/standalone-kg2TedgD.mjs.map +1 -0
- package/dist/standalone.mjs +16 -7
- package/dist/standalone.mjs.map +1 -1
- package/dist/viewer/favicon.svg +1 -0
- package/dist/viewer/index.html +190 -60
- package/package.json +2 -2
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/dist/src-TiNuQ3Ub.mjs.map +0 -1
- package/dist/standalone-BIXq6S80.mjs.map +0 -1
package/.env.example
CHANGED
|
@@ -45,6 +45,12 @@
|
|
|
45
45
|
|
|
46
46
|
# MAX_TOKENS=4096 # Cap LLM completion tokens for compression / summarise calls
|
|
47
47
|
|
|
48
|
+
# Outbound LLM / embedding timeout — shared across every raw-fetch provider
|
|
49
|
+
# (Gemini, OpenRouter, MiniMax, OpenAI LLM, and OpenAI/Cohere/Voyage/OpenRouter
|
|
50
|
+
# embedding). The OpenAI LLM path also honours the OpenAI-scoped
|
|
51
|
+
# OPENAI_TIMEOUT_MS alias for back-compat with v0.9.17 (precedence).
|
|
52
|
+
# AGENTMEMORY_LLM_TIMEOUT_MS=60000 # Default: 60 000 ms (60 s)
|
|
53
|
+
|
|
48
54
|
# Opt-in Claude-subscription fallback (spawns @anthropic-ai/claude-agent-sdk
|
|
49
55
|
# child sessions). Off by default — the agent-sdk fallback can trigger
|
|
50
56
|
# Stop-hook recursion (#149 follow-up) when invoked from inside Claude Code.
|
package/README.md
CHANGED
|
@@ -1058,7 +1058,10 @@ Create `~/.agentmemory/.env`:
|
|
|
1058
1058
|
# # api-key header + api-version query param.
|
|
1059
1059
|
# OPENAI_API_VERSION=2024-08-01-preview # Optional: Azure api-version query param
|
|
1060
1060
|
# OPENAI_MODEL=gpt-4o-mini # Optional: default model
|
|
1061
|
-
# OPENAI_TIMEOUT_MS=60000 # Optional:
|
|
1061
|
+
# OPENAI_TIMEOUT_MS=60000 # Optional: OpenAI-scoped alias for the outbound fetch
|
|
1062
|
+
# # timeout. Takes precedence over AGENTMEMORY_LLM_TIMEOUT_MS
|
|
1063
|
+
# # for back-compat with v0.9.17. New configs should
|
|
1064
|
+
# # prefer the global AGENTMEMORY_LLM_TIMEOUT_MS below.
|
|
1062
1065
|
# OPENAI_REASONING_EFFORT=none # Optional: "low" | "medium" | "high" | "none"
|
|
1063
1066
|
# # Honored only by OpenAI's reasoning models (o1, o3,
|
|
1064
1067
|
# # gpt-*-reasoning) and providers that mirror that
|
|
@@ -1080,6 +1083,17 @@ Create `~/.agentmemory/.env`:
|
|
|
1080
1083
|
# OPENAI_EMBEDDING_MODEL=text-embedding-3-small
|
|
1081
1084
|
# OPENAI_EMBEDDING_DIMENSIONS=1536 # Required when the model is not in the known-models table
|
|
1082
1085
|
|
|
1086
|
+
# Outbound LLM / embedding timeout
|
|
1087
|
+
# AGENTMEMORY_LLM_TIMEOUT_MS=60000 # Default: 60 000 ms (60 s). Applies to every
|
|
1088
|
+
# raw-fetch provider (Gemini, OpenRouter, MiniMax,
|
|
1089
|
+
# OpenAI LLM, OpenAI/Cohere/Voyage/OpenRouter
|
|
1090
|
+
# embedding). For the OpenAI LLM path, the
|
|
1091
|
+
# OpenAI-scoped OPENAI_TIMEOUT_MS alias (above)
|
|
1092
|
+
# takes precedence when set, for back-compat
|
|
1093
|
+
# with v0.9.17.
|
|
1094
|
+
# Increase for slow networks or large batch calls;
|
|
1095
|
+
# decrease to fail-fast on rate-limit holds.
|
|
1096
|
+
|
|
1083
1097
|
# Search tuning
|
|
1084
1098
|
# BM25_WEIGHT=0.4
|
|
1085
1099
|
# VECTOR_WEIGHT=0.6
|
package/dist/.env.example
CHANGED
|
@@ -45,6 +45,12 @@
|
|
|
45
45
|
|
|
46
46
|
# MAX_TOKENS=4096 # Cap LLM completion tokens for compression / summarise calls
|
|
47
47
|
|
|
48
|
+
# Outbound LLM / embedding timeout — shared across every raw-fetch provider
|
|
49
|
+
# (Gemini, OpenRouter, MiniMax, OpenAI LLM, and OpenAI/Cohere/Voyage/OpenRouter
|
|
50
|
+
# embedding). The OpenAI LLM path also honours the OpenAI-scoped
|
|
51
|
+
# OPENAI_TIMEOUT_MS alias for back-compat with v0.9.17 (precedence).
|
|
52
|
+
# AGENTMEMORY_LLM_TIMEOUT_MS=60000 # Default: 60 000 ms (60 s)
|
|
53
|
+
|
|
48
54
|
# Opt-in Claude-subscription fallback (spawns @anthropic-ai/claude-agent-sdk
|
|
49
55
|
# child sessions). Off by default — the agent-sdk fallback can trigger
|
|
50
56
|
# Stop-hook recursion (#149 follow-up) when invoked from inside Claude Code.
|
package/dist/cli.mjs
CHANGED
|
@@ -1433,7 +1433,7 @@ function bootLog(msg) {
|
|
|
1433
1433
|
|
|
1434
1434
|
//#endregion
|
|
1435
1435
|
//#region src/version.ts
|
|
1436
|
-
const VERSION = "0.9.
|
|
1436
|
+
const VERSION = "0.9.18";
|
|
1437
1437
|
|
|
1438
1438
|
//#endregion
|
|
1439
1439
|
//#region src/cli.ts
|
|
@@ -2088,7 +2088,7 @@ async function main() {
|
|
|
2088
2088
|
if (firstRun || IS_RESET) await runOnboarding();
|
|
2089
2089
|
if (skipEngine) {
|
|
2090
2090
|
if (IS_VERBOSE) p.log.info("Skipping engine check (--no-engine)");
|
|
2091
|
-
await import("./src-
|
|
2091
|
+
await import("./src-C7vygXCj.mjs");
|
|
2092
2092
|
if (await waitForAgentmemoryReady(15e3)) {
|
|
2093
2093
|
const consoleState = await ensureIiiConsole();
|
|
2094
2094
|
await maybeOfferGlobalInstall();
|
|
@@ -2100,7 +2100,7 @@ async function main() {
|
|
|
2100
2100
|
if (IS_VERBOSE) p.log.success("iii-engine is running");
|
|
2101
2101
|
warnIfEngineVersionMismatch(whichBinary("iii") ?? fallbackIiiPaths().find((p) => existsSync(p)) ?? null);
|
|
2102
2102
|
adoptRunningEngine();
|
|
2103
|
-
await import("./src-
|
|
2103
|
+
await import("./src-C7vygXCj.mjs");
|
|
2104
2104
|
if (await waitForAgentmemoryReady(15e3)) {
|
|
2105
2105
|
const consoleState = await ensureIiiConsole();
|
|
2106
2106
|
await maybeOfferGlobalInstall();
|
|
@@ -2149,7 +2149,7 @@ async function main() {
|
|
|
2149
2149
|
process.exit(1);
|
|
2150
2150
|
}
|
|
2151
2151
|
s.stop("iii-engine is ready");
|
|
2152
|
-
await import("./src-
|
|
2152
|
+
await import("./src-C7vygXCj.mjs");
|
|
2153
2153
|
if (await waitForAgentmemoryReady(15e3)) {
|
|
2154
2154
|
const consoleState = await ensureIiiConsole();
|
|
2155
2155
|
await maybeOfferGlobalInstall();
|
|
@@ -2159,7 +2159,13 @@ async function main() {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
async function apiFetch(base, path, timeoutMs = 5e3) {
|
|
2161
2161
|
try {
|
|
2162
|
-
|
|
2162
|
+
const headers = {};
|
|
2163
|
+
const secret = process.env["AGENTMEMORY_SECRET"];
|
|
2164
|
+
if (secret) headers["Authorization"] = `Bearer ${secret}`;
|
|
2165
|
+
return await (await fetch(`${base}/agentmemory/${path}`, {
|
|
2166
|
+
signal: AbortSignal.timeout(timeoutMs),
|
|
2167
|
+
headers
|
|
2168
|
+
})).json();
|
|
2163
2169
|
} catch {
|
|
2164
2170
|
return null;
|
|
2165
2171
|
}
|
|
@@ -3034,7 +3040,7 @@ async function runStop() {
|
|
|
3034
3040
|
p.outro("Stopped. Memories persisted to disk; restart anytime with: npx @agentmemory/agentmemory");
|
|
3035
3041
|
}
|
|
3036
3042
|
async function runMcp() {
|
|
3037
|
-
await import("./standalone-
|
|
3043
|
+
await import("./standalone-kg2TedgD.mjs");
|
|
3038
3044
|
}
|
|
3039
3045
|
async function runConnectCmd() {
|
|
3040
3046
|
const { runConnect } = await Promise.resolve().then(() => connect_exports);
|