memorizz 0.5.0 → 0.5.2
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 +4 -3
- package/bin/memorizz.js +3 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +10 -5
package/README.md
CHANGED
|
@@ -6,7 +6,8 @@ developers. On `npm install -g memorizz` it:
|
|
|
6
6
|
|
|
7
7
|
1. finds or installs [`uv`](https://docs.astral.sh/uv/) (a standalone binary that
|
|
8
8
|
manages its own Python — you do **not** need Python pre-installed), then
|
|
9
|
-
2. runs `uv tool install memorizz
|
|
9
|
+
2. runs `uv tool install "memorizz[mcp]"` so the full CLI, including MCP
|
|
10
|
+
client/server commands, is available.
|
|
10
11
|
|
|
11
12
|
The `memorizz` command then execs the uv-installed CLI.
|
|
12
13
|
|
|
@@ -15,8 +16,8 @@ The `memorizz` command then execs the uv-installed CLI.
|
|
|
15
16
|
If you already use Python tooling, prefer these:
|
|
16
17
|
|
|
17
18
|
```bash
|
|
18
|
-
uv tool install memorizz # recommended
|
|
19
|
-
pipx install memorizz
|
|
19
|
+
uv tool install "memorizz[mcp]" # recommended for the complete CLI
|
|
20
|
+
pipx install "memorizz[mcp]"
|
|
20
21
|
```
|
|
21
22
|
|
|
22
23
|
## Uninstall
|
package/bin/memorizz.js
CHANGED
|
@@ -10,6 +10,8 @@ const { spawnSync } = require("child_process");
|
|
|
10
10
|
const os = require("os");
|
|
11
11
|
const path = require("path");
|
|
12
12
|
const fs = require("fs");
|
|
13
|
+
const VERSION = require("../package.json").version;
|
|
14
|
+
const PACKAGE_SPEC = `memorizz[mcp]==${VERSION}`;
|
|
13
15
|
|
|
14
16
|
function findExe(name) {
|
|
15
17
|
const finder = process.platform === "win32" ? "where" : "which";
|
|
@@ -42,7 +44,7 @@ if (exe) {
|
|
|
42
44
|
);
|
|
43
45
|
process.exit(127);
|
|
44
46
|
}
|
|
45
|
-
res = spawnSync(uv, ["tool", "run", "memorizz", ...args], { stdio: "inherit" });
|
|
47
|
+
res = spawnSync(uv, ["tool", "run", "--from", PACKAGE_SPEC, "memorizz", ...args], { stdio: "inherit" });
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
process.exit(res.status == null ? 1 : res.status);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memorizz",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "npm bootstrapper for the memorizz Python CLI — installs the real tool via uv.",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"homepage": "https://github.com/RichmondAlake/memorizz",
|
package/scripts/postinstall.js
CHANGED
|
@@ -15,6 +15,10 @@ const path = require("path");
|
|
|
15
15
|
const fs = require("fs");
|
|
16
16
|
|
|
17
17
|
const VERSION = require("../package.json").version;
|
|
18
|
+
// The npm bridge represents the complete command-line product, including MCP
|
|
19
|
+
// client/server commands whose Python dependencies are optional for library-only
|
|
20
|
+
// installs.
|
|
21
|
+
const PACKAGE_SPEC = `memorizz[mcp]==${VERSION}`;
|
|
18
22
|
|
|
19
23
|
const log = (m) => process.stdout.write(`[memorizz] ${m}\n`);
|
|
20
24
|
const warn = (m) => process.stderr.write(`[memorizz] ${m}\n`);
|
|
@@ -68,8 +72,8 @@ function main() {
|
|
|
68
72
|
|
|
69
73
|
let uv = findUv() || installUv();
|
|
70
74
|
if (uv) {
|
|
71
|
-
log(`Installing
|
|
72
|
-
const r = spawnSync(uv, ["tool", "install", "--force",
|
|
75
|
+
log(`Installing ${PACKAGE_SPEC} via uv…`);
|
|
76
|
+
const r = spawnSync(uv, ["tool", "install", "--force", PACKAGE_SPEC], { stdio: "inherit" });
|
|
73
77
|
if (r.status === 0) {
|
|
74
78
|
log("Done. Run: memorizz");
|
|
75
79
|
return;
|
|
@@ -79,7 +83,7 @@ function main() {
|
|
|
79
83
|
|
|
80
84
|
const pipx = which("pipx");
|
|
81
85
|
if (pipx) {
|
|
82
|
-
const r = spawnSync(pipx, ["install", "--force",
|
|
86
|
+
const r = spawnSync(pipx, ["install", "--force", PACKAGE_SPEC], { stdio: "inherit" });
|
|
83
87
|
if (r.status === 0) {
|
|
84
88
|
log("Done (via pipx). Run: memorizz");
|
|
85
89
|
return;
|
|
@@ -90,8 +94,9 @@ function main() {
|
|
|
90
94
|
[
|
|
91
95
|
"Could not bootstrap memorizz automatically.",
|
|
92
96
|
"Install it manually with either:",
|
|
93
|
-
" curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
94
|
-
|
|
97
|
+
" curl -LsSf https://astral.sh/uv/install.sh | sh",
|
|
98
|
+
` uv tool install '${PACKAGE_SPEC}'`,
|
|
99
|
+
` pipx install '${PACKAGE_SPEC}'`,
|
|
95
100
|
"The `memorizz` launcher will also retry via `uv tool run` on first use.",
|
|
96
101
|
].join("\n")
|
|
97
102
|
);
|