@slashml/memory 1.0.15 → 1.0.16
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/bin/cli.js +5 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -71,13 +71,13 @@ await client.forget("Refresh tokens expire after 7 days", {
|
|
|
71
71
|
Install the `/ ml` MCP server into Cursor, Claude Code, or Windsurf:
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
|
-
npx @slashml/memory --init --skill cursor --api-key "$SLASHML_API_KEY"
|
|
74
|
+
npx -y @slashml/memory@latest --init --skill cursor --api-key "$SLASHML_API_KEY"
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
Install ambient lifecycle hooks (`UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `Stop`) into `~/.claude/settings.json`:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
npx @slashml/memory --install-hooks --api-key "$SLASHML_API_KEY"
|
|
80
|
+
npx -y @slashml/memory@latest --install-hooks --api-key "$SLASHML_API_KEY"
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
Or evaluate an agent action / prompt programmatically via `client.intervene()`:
|
package/bin/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ const readline = require("readline");
|
|
|
10
10
|
|
|
11
11
|
const DEFAULT_BASE_URL = "https://api.slashml.ai";
|
|
12
12
|
const DEFAULT_CONSOLE_URL = "https://app.slashml.ai";
|
|
13
|
-
const PACKAGE_VERSION = "1.0.
|
|
13
|
+
const PACKAGE_VERSION = "1.0.16";
|
|
14
14
|
const MAX_STOP_BLOCKS_PER_PROMPT = 3;
|
|
15
15
|
|
|
16
16
|
function printHelp() {
|
|
@@ -18,12 +18,12 @@ function printHelp() {
|
|
|
18
18
|
Publisher: SlashML (https://slashml.ai)
|
|
19
19
|
|
|
20
20
|
Usage:
|
|
21
|
-
npx -y @slashml/memory [options]
|
|
21
|
+
npx -y @slashml/memory@latest [options]
|
|
22
22
|
|
|
23
23
|
When invoked without CLI flags, starts the JSON-RPC 2.0 MCP server over stdio.
|
|
24
24
|
|
|
25
25
|
Claude Code Registration (User Scope):
|
|
26
|
-
claude mcp add --scope user ml-memory -e SLASHML_API_KEY="$SLASHML_API_KEY" -- npx -y @slashml/memory
|
|
26
|
+
claude mcp add --scope user ml-memory -e SLASHML_API_KEY="$SLASHML_API_KEY" -- npx -y @slashml/memory@latest
|
|
27
27
|
|
|
28
28
|
Options:
|
|
29
29
|
-h, --help Show this help message and exit
|
|
@@ -408,7 +408,7 @@ function nativeNodeInit(skill, apiKey, repo = null, writeEnv = false, extraEnv =
|
|
|
408
408
|
return t.toLowerCase().includes(normalizedSkill);
|
|
409
409
|
});
|
|
410
410
|
|
|
411
|
-
const args = ["-y", "@slashml/mcp"];
|
|
411
|
+
const args = ["-y", "@slashml/mcp@latest"];
|
|
412
412
|
if (repo) {
|
|
413
413
|
args.push("--workspace", repo);
|
|
414
414
|
}
|
|
@@ -1135,7 +1135,7 @@ export default SlashMLMemoryPlugin;
|
|
|
1135
1135
|
if (!quiet || !opencodeCfg.mcp["ml-memory"]) {
|
|
1136
1136
|
opencodeCfg.mcp["ml-memory"] = {
|
|
1137
1137
|
type: "local",
|
|
1138
|
-
command: ["npx", "-y", "@slashml/mcp"],
|
|
1138
|
+
command: ["npx", "-y", "@slashml/mcp@latest"],
|
|
1139
1139
|
enabled: true,
|
|
1140
1140
|
...(apiKey ? { environment: { SLASHML_API_KEY: apiKey } } : {}),
|
|
1141
1141
|
};
|
package/dist/index.js
CHANGED
|
@@ -303,7 +303,7 @@ class MemoryClient {
|
|
|
303
303
|
const headers = {
|
|
304
304
|
Accept: "application/json",
|
|
305
305
|
"Content-Type": "application/json",
|
|
306
|
-
"User-Agent": "slashml-memory-ts/1.0.
|
|
306
|
+
"User-Agent": "slashml-memory-ts/1.0.16",
|
|
307
307
|
};
|
|
308
308
|
if (this.apiKey) {
|
|
309
309
|
headers.Authorization = `Bearer ${this.apiKey}`;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -605,7 +605,7 @@ export class MemoryClient {
|
|
|
605
605
|
const headers: Record<string, string> = {
|
|
606
606
|
Accept: "application/json",
|
|
607
607
|
"Content-Type": "application/json",
|
|
608
|
-
"User-Agent": "slashml-memory-ts/1.0.
|
|
608
|
+
"User-Agent": "slashml-memory-ts/1.0.16",
|
|
609
609
|
};
|
|
610
610
|
if (this.apiKey) {
|
|
611
611
|
headers.Authorization = `Bearer ${this.apiKey}`;
|