myagentmemory 0.5.2 → 0.5.3
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 +5 -2
- package/dist/cli-spec.d.ts +1 -1
- package/dist/cli-spec.js +15 -3
- package/dist/cli.js +436 -42
- package/dist/completions.d.ts +12 -0
- package/dist/completions.js +51 -0
- package/dist/core.js +11 -0
- package/dist/hooks.d.ts +15 -1
- package/dist/hooks.js +190 -5
- package/dist/plugin-service.js +0 -6
- package/dist/upgrade.d.ts +51 -6
- package/dist/upgrade.js +110 -10
- package/docs/official-plugin-bootstrap.md +1 -1
- package/package.json +1 -1
- package/scripts/install-skills.sh +4 -1
- package/skills/agent/SKILL.md +1 -1
- package/skills/claude-code/SKILL.md +1 -1
- package/skills/codex/SKILL.md +1 -1
- package/skills/cursor/SKILL.md +1 -1
- package/skills/qoder/SKILL.md +164 -0
- package/src/cli-spec.ts +18 -3
- package/src/completions.ts +73 -0
- package/src/core.ts +11 -0
- package/src/hooks.ts +199 -6
package/README.md
CHANGED
|
@@ -11,6 +11,8 @@ agent-memory setup # one-shot: memory dir, skills, hooks, MCP, local Pro pre
|
|
|
11
11
|
|
|
12
12
|
Then open your agent and ask *"what do you remember about me?"* — that's the wow.
|
|
13
13
|
|
|
14
|
+
Prefer to have an agent drive the whole thing — install, configure, verify, then show you what to do next? Feed [this onboarding doc](https://jayzeng.github.io/agentmemory/onboarding.md) to your coding agent or chat LLM and let it run the setup for you.
|
|
15
|
+
|
|
14
16
|
[](https://www.npmjs.com/package/myagentmemory)
|
|
15
17
|
[](https://www.npmjs.com/package/myagentmemory)
|
|
16
18
|
[](LICENSE)
|
|
@@ -88,9 +90,9 @@ The npm package installs a platform-neutral Node.js executable. The optional Hom
|
|
|
88
90
|
- `%USERPROFILE%\.cursor\skills\agent-memory\SKILL.md` — Cursor skill (Windows)
|
|
89
91
|
- `%USERPROFILE%\.agents\skills\agent-memory\SKILL.md` — Agent CLI skill (Windows)
|
|
90
92
|
|
|
91
|
-
### Pi
|
|
93
|
+
### Pi
|
|
92
94
|
|
|
93
|
-
|
|
95
|
+
Pi doesn't use SKILL.md or a JSON hook config — its extensibility model is a registered native extension. So instead of writing a skill file, `agent-memory setup`/`install-hooks` detects `pi` on your `PATH` and installs [`pi-memory`](https://github.com/jayzeng/pi-memory) for you, via `pi install npm:pi-memory` — same author, same memory-file conventions, native pi tools (`memory_write`, `memory_read`, `scratchpad`, `memory_search`). It's prompted for like any other detected agent and auto-applied under `--yes`; run `agent-memory install-hooks --only pi` to target just pi, or check `agent-memory doctor` for its status.
|
|
94
96
|
|
|
95
97
|
### Optional: Enable search with qmd
|
|
96
98
|
|
|
@@ -171,6 +173,7 @@ Run `agent-memory help` for the full generated list, or `agent-memory <command>
|
|
|
171
173
|
| `agent-memory completion [bash\|zsh\|fish\|powershell] [--stdout]` | Install or print shell completion |
|
|
172
174
|
| `agent-memory install-hooks [--yes] [--all] [--only <agents>] [--mode stable\|per-turn]` | Install managed context and memory-write reminder hooks |
|
|
173
175
|
| `agent-memory uninstall-hooks [--only <agents>]` | Remove only hooks managed by AgentMemory |
|
|
176
|
+
| `agent-memory uninstall [--data] [--yes]` | Remove hooks, skills, MCP registrations, completions, and the Pro plugin; `--data` also deletes MEMORY.md, daily logs, scratchpad, and topics |
|
|
174
177
|
| `agent-memory init [--yes] [--skip-skills] [--skip-hooks]` | Legacy interactive wizard; `setup` runs this as its first step |
|
|
175
178
|
| `agent-memory status [--probe]` | Show config, qmd status, file counts, embedding health |
|
|
176
179
|
| `agent-memory doctor` | One-shot health check across memory, qmd, skills, hooks, and Pro |
|
package/dist/cli-spec.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface CliOptionSpec {
|
|
|
6
6
|
kind: CliValueKind;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export declare const COMMANDS: readonly ["context", "save", "note", "write", "read", "scratchpad", "search", "distil", "sync", "setup", "status", "doctor", "tutorial", "install-skills", "uninstall-skills", "install-hooks", "uninstall-hooks", "completion", "pro", "recall", "learn", "dashboard", "plugin", "serve", "upgrade", "version", "help"];
|
|
9
|
+
export declare const COMMANDS: readonly ["context", "save", "note", "write", "read", "scratchpad", "search", "distil", "sync", "setup", "status", "doctor", "tutorial", "install-skills", "uninstall-skills", "install-hooks", "uninstall-hooks", "uninstall", "completion", "pro", "recall", "learn", "dashboard", "plugin", "serve", "upgrade", "version", "help"];
|
|
10
10
|
export declare const PLUGIN_COMMANDS: readonly ["list", "status", "install", "update", "uninstall", "manage"];
|
|
11
11
|
export declare const WORKER_ACTIONS: readonly [];
|
|
12
12
|
export declare const SCRATCHPAD_ACTIONS: readonly ["add", "done", "undo", "clear_done", "list"];
|
package/dist/cli-spec.js
CHANGED
|
@@ -16,6 +16,7 @@ export const COMMANDS = [
|
|
|
16
16
|
"uninstall-skills",
|
|
17
17
|
"install-hooks",
|
|
18
18
|
"uninstall-hooks",
|
|
19
|
+
"uninstall",
|
|
19
20
|
"completion",
|
|
20
21
|
"pro",
|
|
21
22
|
"recall",
|
|
@@ -48,6 +49,7 @@ export const COMMAND_DESCRIPTIONS = {
|
|
|
48
49
|
"uninstall-skills": "remove core instructions from detected agents",
|
|
49
50
|
"install-hooks": "install managed context and memory-write reminder hooks",
|
|
50
51
|
"uninstall-hooks": "remove only hooks managed by agent-memory",
|
|
52
|
+
uninstall: "remove hooks, skills, MCP registrations, completions, and the Pro plugin; add --data to also delete memory data",
|
|
51
53
|
completion: "install or print Bash, Zsh, Fish, or PowerShell completion",
|
|
52
54
|
pro: "install, inspect, or upgrade AgentMemory Pro",
|
|
53
55
|
recall: "recall decisions and context from prior coding sessions with Pro",
|
|
@@ -55,7 +57,7 @@ export const COMMAND_DESCRIPTIONS = {
|
|
|
55
57
|
dashboard: "open the private local Memory Dashboard",
|
|
56
58
|
plugin: "discover, install, update, or remove optional official plugins",
|
|
57
59
|
serve: "run as a Model Context Protocol (MCP) server over stdio",
|
|
58
|
-
upgrade: "check for and install newer agent-memory CLI and Pro plugin releases",
|
|
60
|
+
upgrade: "check for, and auto-install by default, newer agent-memory CLI and Pro plugin releases",
|
|
59
61
|
version: "print the installed agent-memory version",
|
|
60
62
|
help: "show this command overview",
|
|
61
63
|
};
|
|
@@ -95,6 +97,7 @@ export const COMMAND_OPTIONS = {
|
|
|
95
97
|
"uninstall-skills": [],
|
|
96
98
|
"install-hooks": ["--yes", "--all", "--only", "--mode"],
|
|
97
99
|
"uninstall-hooks": ["--only"],
|
|
100
|
+
uninstall: ["--data", "--yes"],
|
|
98
101
|
completion: ["--stdout"],
|
|
99
102
|
pro: [],
|
|
100
103
|
recall: [
|
|
@@ -111,7 +114,7 @@ export const COMMAND_OPTIONS = {
|
|
|
111
114
|
learn: ["--preview"],
|
|
112
115
|
dashboard: ["--no-browser"],
|
|
113
116
|
serve: ["--mcp", "--register", "--only"],
|
|
114
|
-
upgrade: ["--check", "--refresh", "--yes", "--quiet", "--cli", "--plugin"],
|
|
117
|
+
upgrade: ["--check", "--refresh", "--yes", "--quiet", "--cli", "--plugin", "--background"],
|
|
115
118
|
version: [],
|
|
116
119
|
help: [],
|
|
117
120
|
};
|
|
@@ -272,6 +275,7 @@ export const OPTION_SPECS = {
|
|
|
272
275
|
"--agent": { description: "internal SessionStart host key", value: { label: "agent", kind: "value" } },
|
|
273
276
|
"--token": { description: "internal session-worker lease token", value: { label: "token", kind: "value" } },
|
|
274
277
|
"--uninstall": { description: "use install-skills compatibility uninstall mode" },
|
|
278
|
+
"--data": { description: "uninstall: also permanently delete the memory directory and plugin state" },
|
|
275
279
|
"--mcp": { description: "serve as an MCP server over stdio (used by Claude Code)" },
|
|
276
280
|
"--register": { description: "register the MCP server in detected supported agents and exit" },
|
|
277
281
|
"--check": { description: "upgrade: report available updates without installing" },
|
|
@@ -279,6 +283,9 @@ export const OPTION_SPECS = {
|
|
|
279
283
|
"--quiet": { description: "upgrade: suppress non-error output (used by the passive session-start refresh)" },
|
|
280
284
|
"--cli": { description: "upgrade: limit action to the CLI binary" },
|
|
281
285
|
"--plugin": { description: "upgrade: limit action to the Pro plugin bundle" },
|
|
286
|
+
"--background": {
|
|
287
|
+
description: "upgrade: non-interactive; installs only targets whose policy is 'auto' (see: agent-memory upgrade policy)",
|
|
288
|
+
},
|
|
282
289
|
};
|
|
283
290
|
export const SHELL_DESCRIPTIONS = {
|
|
284
291
|
bash: "generate or install Bash completion",
|
|
@@ -312,13 +319,14 @@ const COMMAND_USAGE = {
|
|
|
312
319
|
"uninstall-skills": "agent-memory uninstall-skills [--json]",
|
|
313
320
|
"install-hooks": "agent-memory install-hooks [--yes] [--all] [--only claude,codex,cursor] [--mode stable|per-turn] [--json]",
|
|
314
321
|
"uninstall-hooks": "agent-memory uninstall-hooks [--only claude,codex,cursor] [--json]",
|
|
322
|
+
uninstall: "agent-memory uninstall [--data] [--yes] [--json]",
|
|
315
323
|
completion: "agent-memory completion [bash|zsh|fish|powershell] [--stdout]",
|
|
316
324
|
pro: "agent-memory pro <install|status|upgrade> [--channel stable] [--yes]",
|
|
317
325
|
recall: 'agent-memory recall "<query>" [--limit N] [--context N] [--scope current|global] [--cwd <path>] [--json]\n Multi-query: agent-memory recall --queries \'["q1","q2","q3"]\' [--sessions N] [--events N]',
|
|
318
326
|
learn: "agent-memory learn [--preview] [--json]",
|
|
319
327
|
dashboard: "agent-memory dashboard [--no-browser]",
|
|
320
328
|
plugin: "agent-memory plugin <list|status|install|update|uninstall|manage> [--channel stable] [--yes] [--no-browser]",
|
|
321
|
-
upgrade: "agent-memory upgrade [--check] [--yes] [--cli|--plugin] [--refresh] [--json]",
|
|
329
|
+
upgrade: "agent-memory upgrade [--check] [--yes] [--cli|--plugin] [--refresh] [--json]\n agent-memory upgrade policy [off|notify|auto] [--cli|--plugin] [--json] (default: auto for both)",
|
|
322
330
|
version: "agent-memory version",
|
|
323
331
|
help: "agent-memory help [<command>]",
|
|
324
332
|
};
|
|
@@ -356,6 +364,10 @@ const COMMAND_EXAMPLES = {
|
|
|
356
364
|
status: ["agent-memory status", "agent-memory status --json"],
|
|
357
365
|
init: ["agent-memory init", "agent-memory init --yes --skip-hooks"],
|
|
358
366
|
setup: ["agent-memory setup", "agent-memory setup --json"],
|
|
367
|
+
uninstall: [
|
|
368
|
+
"agent-memory uninstall --yes # removes hooks, skills, MCP registrations, completions, Pro plugin",
|
|
369
|
+
"agent-memory uninstall --data --yes # also deletes MEMORY.md, daily logs, scratchpad, topics",
|
|
370
|
+
],
|
|
359
371
|
"install-hooks": [
|
|
360
372
|
"agent-memory install-hooks",
|
|
361
373
|
"agent-memory install-hooks --yes",
|