@clauderecallhq/cli 0.61.6 → 0.64.0
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 -0
- package/dist/cli.js +269 -246
- package/package.json +1 -1
- package/scripts/postinstall.mjs +52 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clauderecallhq/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.0",
|
|
4
4
|
"description": "Never lose a Claude Code session again. Local, fast, searchable memory over every session you've ever run.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://clauderecall.com",
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -13,30 +13,61 @@ if (!existsSync(cliPath)) {
|
|
|
13
13
|
process.exit(0);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
process.exit(0);
|
|
20
|
-
}
|
|
16
|
+
runModelDownload();
|
|
17
|
+
printPostInstallBanner();
|
|
18
|
+
process.exit(0);
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
function runModelDownload() {
|
|
21
|
+
if (process.env.RECALL_SKIP_MODEL_DOWNLOAD === '1') {
|
|
22
|
+
console.log('[recall] RECALL_SKIP_MODEL_DOWNLOAD=1 — skipping embedder model download');
|
|
23
|
+
console.log('[recall] Run `recall semantic install` later to enable vector search');
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
console.log('[recall]
|
|
27
|
+
if (process.env.CI === 'true' && process.env.RECALL_FORCE_MODEL_DOWNLOAD !== '1') {
|
|
28
|
+
console.log('[recall] CI environment detected — skipping embedder model download');
|
|
29
|
+
console.log('[recall] Run `recall semantic install` to enable vector search later');
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
env: process.env,
|
|
34
|
-
});
|
|
33
|
+
console.log('[recall] Installing embedder model bge-base-en-v1.5 (~110MB) so vector search works out of the box…');
|
|
34
|
+
console.log('[recall] set RECALL_SKIP_MODEL_DOWNLOAD=1 to skip; install later with `recall semantic install`');
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
const result = spawnSync(process.execPath, [cliPath, 'semantic', 'install'], {
|
|
37
|
+
stdio: 'inherit',
|
|
38
|
+
env: process.env,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
if (result.status !== 0) {
|
|
42
|
+
console.warn('[recall] Embedder model download skipped or failed (exit code ' + result.status + ')');
|
|
43
|
+
console.warn('[recall] CLI is installed and working. Run `recall semantic install` later to enable vector search.');
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
function printPostInstallBanner() {
|
|
48
|
+
// Skip in CI / build pipelines to keep their logs quiet.
|
|
49
|
+
// Note: we deliberately do NOT gate on process.stdout.isTTY — npm captures
|
|
50
|
+
// postinstall stdout through its own pipe, so TTY-detection is always false
|
|
51
|
+
// and would suppress the banner on every real install.
|
|
52
|
+
if (process.env.CI === 'true') return;
|
|
53
|
+
if (process.env.RECALL_QUIET_INSTALL === '1') return;
|
|
54
|
+
if (process.env.npm_config_loglevel === 'silent') return;
|
|
55
|
+
|
|
56
|
+
const lines = [
|
|
57
|
+
'',
|
|
58
|
+
' ───────────────────────────────────────────────',
|
|
59
|
+
' Claude Recall is installed.',
|
|
60
|
+
'',
|
|
61
|
+
' recall open the dashboard',
|
|
62
|
+
' recall index build the searchable database',
|
|
63
|
+
' recall trial start a 7-day Pro trial (no card)',
|
|
64
|
+
' recall telemetry opt-in / opt-out of anonymous install pings',
|
|
65
|
+
'',
|
|
66
|
+
' Free tier is fully usable. Trial unlocks Pro features',
|
|
67
|
+
' for 7 days. Founder pricing ($29.69 lifetime) ends May 31.',
|
|
68
|
+
' Privacy: clauderecall.com/telemetry',
|
|
69
|
+
' ───────────────────────────────────────────────',
|
|
70
|
+
'',
|
|
71
|
+
];
|
|
72
|
+
for (const line of lines) console.log(line);
|
|
73
|
+
}
|