@edihasaj/recall 1.4.17 → 1.4.19

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.
Files changed (74) hide show
  1. package/README.md +10 -1
  2. package/dist/{chunk-P52SIOOU.js → chunk-5MCSETHT.js} +9 -9
  3. package/dist/{chunk-NWCKV3VH.js → chunk-6PYIOT3M.js} +2 -2
  4. package/dist/{chunk-SKWPW5Y3.js → chunk-7O5GXU4Z.js} +9 -9
  5. package/dist/{chunk-4MIBN5ZD.js → chunk-DKDKWONT.js} +9 -9
  6. package/dist/{chunk-3VEA6O5V.js → chunk-DPHCS7SB.js} +2 -2
  7. package/dist/{chunk-3VEA6O5V.js.map → chunk-DPHCS7SB.js.map} +1 -1
  8. package/dist/{chunk-TX5SYCB5.js → chunk-FMI2D6HZ.js} +3 -3
  9. package/dist/{chunk-MXITLKTT.js → chunk-H4RSOHEI.js} +2 -2
  10. package/dist/{chunk-DQZVDXVW.js → chunk-N7FBY7OQ.js} +2 -2
  11. package/dist/{chunk-HCYJV5AR.js → chunk-NXQLNTA4.js} +7 -7
  12. package/dist/{chunk-JL3XLTJ6.js → chunk-P7QERDMA.js} +3 -3
  13. package/dist/{chunk-YK5CRLLB.js → chunk-PJP6BAVE.js} +5 -5
  14. package/dist/{chunk-T6RJROPP.js → chunk-R3OJEOHY.js} +4 -4
  15. package/dist/{chunk-WTH2XF4O.js → chunk-T74B22LT.js} +13 -13
  16. package/dist/{chunk-KSDYZOAI.js → chunk-TDV6KXLS.js} +2 -2
  17. package/dist/{chunk-PSCEQ2VZ.js → chunk-UQVFSSOQ.js} +5 -5
  18. package/dist/{chunk-PIIFE5BG.js → chunk-VT3J4GAL.js} +7 -7
  19. package/dist/{chunk-6HYJPYEN.js → chunk-W2AKSCHY.js} +3 -3
  20. package/dist/{chunk-ILONL7NF.js → chunk-YP6GE5FM.js} +2 -2
  21. package/dist/{cleanup-MY4E24ZK.js → cleanup-MF3DH5HR.js} +11 -11
  22. package/dist/cli.js +36 -36
  23. package/dist/{codex-trust-CFAOIWDP.js → codex-trust-77F77NXN.js} +4 -4
  24. package/dist/daemon.js +129 -18
  25. package/dist/daemon.js.map +1 -1
  26. package/dist/dispatcher-WSBUDCKD.js +22 -0
  27. package/dist/{embeddings-PIB5MHRQ.js → embeddings-VXCZFQKX.js} +5 -5
  28. package/dist/ingest-4PSU36W7.js +20 -0
  29. package/dist/{keychain-HLUGYITV.js → keychain-DCP5FEDE.js} +3 -3
  30. package/dist/mcp.js +15 -15
  31. package/dist/{memory-value-N32HTBZF.js → memory-value-BELZVCXE.js} +11 -11
  32. package/dist/{provenance-QJ5QO7E7.js → provenance-BXFDTOWY.js} +9 -9
  33. package/dist/quality-E7NHHPRB.js +25 -0
  34. package/dist/retrieval-TYZQOW7R.js +15 -0
  35. package/dist/{store-SNJJ37SQ.js → store-NPDHRWFE.js} +4 -4
  36. package/dist/sync-server.js +2 -2
  37. package/dist/{tasks-AZSUFKOJ.js → tasks-YDY2C7EU.js} +11 -11
  38. package/dist/{usage-DKO3ULNT.js → usage-WAXQKZ75.js} +4 -4
  39. package/package.json +2 -1
  40. package/scripts/install.ps1 +258 -0
  41. package/dist/dispatcher-O4W6KH5D.js +0 -22
  42. package/dist/ingest-TTHTPUZM.js +0 -20
  43. package/dist/quality-T4GWE3DL.js +0 -25
  44. package/dist/retrieval-AS5MU7KC.js +0 -15
  45. /package/dist/{chunk-P52SIOOU.js.map → chunk-5MCSETHT.js.map} +0 -0
  46. /package/dist/{chunk-NWCKV3VH.js.map → chunk-6PYIOT3M.js.map} +0 -0
  47. /package/dist/{chunk-SKWPW5Y3.js.map → chunk-7O5GXU4Z.js.map} +0 -0
  48. /package/dist/{chunk-4MIBN5ZD.js.map → chunk-DKDKWONT.js.map} +0 -0
  49. /package/dist/{chunk-TX5SYCB5.js.map → chunk-FMI2D6HZ.js.map} +0 -0
  50. /package/dist/{chunk-MXITLKTT.js.map → chunk-H4RSOHEI.js.map} +0 -0
  51. /package/dist/{chunk-DQZVDXVW.js.map → chunk-N7FBY7OQ.js.map} +0 -0
  52. /package/dist/{chunk-HCYJV5AR.js.map → chunk-NXQLNTA4.js.map} +0 -0
  53. /package/dist/{chunk-JL3XLTJ6.js.map → chunk-P7QERDMA.js.map} +0 -0
  54. /package/dist/{chunk-YK5CRLLB.js.map → chunk-PJP6BAVE.js.map} +0 -0
  55. /package/dist/{chunk-T6RJROPP.js.map → chunk-R3OJEOHY.js.map} +0 -0
  56. /package/dist/{chunk-WTH2XF4O.js.map → chunk-T74B22LT.js.map} +0 -0
  57. /package/dist/{chunk-KSDYZOAI.js.map → chunk-TDV6KXLS.js.map} +0 -0
  58. /package/dist/{chunk-PSCEQ2VZ.js.map → chunk-UQVFSSOQ.js.map} +0 -0
  59. /package/dist/{chunk-PIIFE5BG.js.map → chunk-VT3J4GAL.js.map} +0 -0
  60. /package/dist/{chunk-6HYJPYEN.js.map → chunk-W2AKSCHY.js.map} +0 -0
  61. /package/dist/{chunk-ILONL7NF.js.map → chunk-YP6GE5FM.js.map} +0 -0
  62. /package/dist/{cleanup-MY4E24ZK.js.map → cleanup-MF3DH5HR.js.map} +0 -0
  63. /package/dist/{codex-trust-CFAOIWDP.js.map → codex-trust-77F77NXN.js.map} +0 -0
  64. /package/dist/{dispatcher-O4W6KH5D.js.map → dispatcher-WSBUDCKD.js.map} +0 -0
  65. /package/dist/{embeddings-PIB5MHRQ.js.map → embeddings-VXCZFQKX.js.map} +0 -0
  66. /package/dist/{ingest-TTHTPUZM.js.map → ingest-4PSU36W7.js.map} +0 -0
  67. /package/dist/{keychain-HLUGYITV.js.map → keychain-DCP5FEDE.js.map} +0 -0
  68. /package/dist/{memory-value-N32HTBZF.js.map → memory-value-BELZVCXE.js.map} +0 -0
  69. /package/dist/{provenance-QJ5QO7E7.js.map → provenance-BXFDTOWY.js.map} +0 -0
  70. /package/dist/{quality-T4GWE3DL.js.map → quality-E7NHHPRB.js.map} +0 -0
  71. /package/dist/{retrieval-AS5MU7KC.js.map → retrieval-TYZQOW7R.js.map} +0 -0
  72. /package/dist/{store-SNJJ37SQ.js.map → store-NPDHRWFE.js.map} +0 -0
  73. /package/dist/{tasks-AZSUFKOJ.js.map → tasks-YDY2C7EU.js.map} +0 -0
  74. /package/dist/{usage-DKO3ULNT.js.map → usage-WAXQKZ75.js.map} +0 -0
@@ -0,0 +1,22 @@
1
+ import {
2
+ buildPrompt,
3
+ dispatchPendingTasks,
4
+ formatDispatchReport,
5
+ hasAnyLlmProvider
6
+ } from "./chunk-7O5GXU4Z.js";
7
+ import "./chunk-TDV6KXLS.js";
8
+ import "./chunk-VT3J4GAL.js";
9
+ import "./chunk-P7QERDMA.js";
10
+ import "./chunk-H4RSOHEI.js";
11
+ import "./chunk-R3OJEOHY.js";
12
+ import "./chunk-YP6GE5FM.js";
13
+ import "./chunk-W2AKSCHY.js";
14
+ import "./chunk-6PYIOT3M.js";
15
+ import "./chunk-DPHCS7SB.js";
16
+ export {
17
+ buildPrompt,
18
+ dispatchPendingTasks,
19
+ formatDispatchReport,
20
+ hasAnyLlmProvider
21
+ };
22
+ //# sourceMappingURL=dispatcher-WSBUDCKD.js.map
@@ -21,10 +21,10 @@ import {
21
21
  storeEmbedding,
22
22
  syncMemoryEmbedding,
23
23
  verifyEmbeddings
24
- } from "./chunk-T6RJROPP.js";
25
- import "./chunk-ILONL7NF.js";
26
- import "./chunk-NWCKV3VH.js";
27
- import "./chunk-3VEA6O5V.js";
24
+ } from "./chunk-R3OJEOHY.js";
25
+ import "./chunk-YP6GE5FM.js";
26
+ import "./chunk-6PYIOT3M.js";
27
+ import "./chunk-DPHCS7SB.js";
28
28
  export {
29
29
  bootstrapEmbeddings,
30
30
  cosineSimilarity,
@@ -49,4 +49,4 @@ export {
49
49
  syncMemoryEmbedding,
50
50
  verifyEmbeddings
51
51
  };
52
- //# sourceMappingURL=embeddings-PIB5MHRQ.js.map
52
+ //# sourceMappingURL=embeddings-VXCZFQKX.js.map
@@ -0,0 +1,20 @@
1
+ import {
2
+ ingestMemoryExtraction,
3
+ ingestMemoryHeuristic,
4
+ mergeAndIngest,
5
+ safeIngestMemoryById
6
+ } from "./chunk-VT3J4GAL.js";
7
+ import "./chunk-P7QERDMA.js";
8
+ import "./chunk-H4RSOHEI.js";
9
+ import "./chunk-R3OJEOHY.js";
10
+ import "./chunk-YP6GE5FM.js";
11
+ import "./chunk-W2AKSCHY.js";
12
+ import "./chunk-6PYIOT3M.js";
13
+ import "./chunk-DPHCS7SB.js";
14
+ export {
15
+ ingestMemoryExtraction,
16
+ ingestMemoryHeuristic,
17
+ mergeAndIngest,
18
+ safeIngestMemoryById
19
+ };
20
+ //# sourceMappingURL=ingest-4PSU36W7.js.map
@@ -8,8 +8,8 @@ import {
8
8
  listCredentials,
9
9
  setApiKey,
10
10
  setAzureConfig
11
- } from "./chunk-ILONL7NF.js";
12
- import "./chunk-3VEA6O5V.js";
11
+ } from "./chunk-YP6GE5FM.js";
12
+ import "./chunk-DPHCS7SB.js";
13
13
  init_keychain();
14
14
  export {
15
15
  deleteApiKey,
@@ -21,4 +21,4 @@ export {
21
21
  setApiKey,
22
22
  setAzureConfig
23
23
  };
24
- //# sourceMappingURL=keychain-HLUGYITV.js.map
24
+ //# sourceMappingURL=keychain-DCP5FEDE.js.map
package/dist/mcp.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  createRecallMcpServer
3
- } from "./chunk-4MIBN5ZD.js";
4
- import "./chunk-PSCEQ2VZ.js";
5
- import "./chunk-P52SIOOU.js";
6
- import "./chunk-SKWPW5Y3.js";
7
- import "./chunk-HCYJV5AR.js";
8
- import "./chunk-KSDYZOAI.js";
9
- import "./chunk-DQZVDXVW.js";
10
- import "./chunk-PIIFE5BG.js";
11
- import "./chunk-JL3XLTJ6.js";
12
- import "./chunk-MXITLKTT.js";
13
- import "./chunk-T6RJROPP.js";
14
- import "./chunk-ILONL7NF.js";
15
- import "./chunk-6HYJPYEN.js";
16
- import "./chunk-NWCKV3VH.js";
3
+ } from "./chunk-DKDKWONT.js";
4
+ import "./chunk-UQVFSSOQ.js";
5
+ import "./chunk-5MCSETHT.js";
6
+ import "./chunk-7O5GXU4Z.js";
7
+ import "./chunk-NXQLNTA4.js";
8
+ import "./chunk-TDV6KXLS.js";
9
+ import "./chunk-N7FBY7OQ.js";
10
+ import "./chunk-VT3J4GAL.js";
11
+ import "./chunk-P7QERDMA.js";
12
+ import "./chunk-H4RSOHEI.js";
13
+ import "./chunk-R3OJEOHY.js";
14
+ import "./chunk-YP6GE5FM.js";
15
+ import "./chunk-W2AKSCHY.js";
16
+ import "./chunk-6PYIOT3M.js";
17
17
  import {
18
18
  init_define_RECALL_BUILD_INFO
19
- } from "./chunk-3VEA6O5V.js";
19
+ } from "./chunk-DPHCS7SB.js";
20
20
 
21
21
  // src/mcp/server.ts
22
22
  init_define_RECALL_BUILD_INFO();
@@ -10,16 +10,16 @@ import {
10
10
  recordInjectionValueEvents,
11
11
  recordMemoryValueEvent,
12
12
  recordOutcomeValueEvent
13
- } from "./chunk-HCYJV5AR.js";
14
- import "./chunk-KSDYZOAI.js";
15
- import "./chunk-PIIFE5BG.js";
16
- import "./chunk-JL3XLTJ6.js";
17
- import "./chunk-MXITLKTT.js";
18
- import "./chunk-T6RJROPP.js";
19
- import "./chunk-ILONL7NF.js";
20
- import "./chunk-6HYJPYEN.js";
21
- import "./chunk-NWCKV3VH.js";
22
- import "./chunk-3VEA6O5V.js";
13
+ } from "./chunk-NXQLNTA4.js";
14
+ import "./chunk-TDV6KXLS.js";
15
+ import "./chunk-VT3J4GAL.js";
16
+ import "./chunk-P7QERDMA.js";
17
+ import "./chunk-H4RSOHEI.js";
18
+ import "./chunk-R3OJEOHY.js";
19
+ import "./chunk-YP6GE5FM.js";
20
+ import "./chunk-W2AKSCHY.js";
21
+ import "./chunk-6PYIOT3M.js";
22
+ import "./chunk-DPHCS7SB.js";
23
23
  export {
24
24
  backfillMemoryValueEvents,
25
25
  computeMemoryValueReport,
@@ -33,4 +33,4 @@ export {
33
33
  recordMemoryValueEvent,
34
34
  recordOutcomeValueEvent
35
35
  };
36
- //# sourceMappingURL=memory-value-N32HTBZF.js.map
36
+ //# sourceMappingURL=memory-value-BELZVCXE.js.map
@@ -3,21 +3,21 @@ import {
3
3
  hasNonDurableProvenance,
4
4
  queryMemories,
5
5
  recordAuditWithSnapshot
6
- } from "./chunk-PIIFE5BG.js";
7
- import "./chunk-JL3XLTJ6.js";
8
- import "./chunk-MXITLKTT.js";
6
+ } from "./chunk-VT3J4GAL.js";
7
+ import "./chunk-P7QERDMA.js";
8
+ import "./chunk-H4RSOHEI.js";
9
9
  import {
10
10
  queueMemoryEmbeddingSync
11
- } from "./chunk-T6RJROPP.js";
12
- import "./chunk-ILONL7NF.js";
13
- import "./chunk-6HYJPYEN.js";
11
+ } from "./chunk-R3OJEOHY.js";
12
+ import "./chunk-YP6GE5FM.js";
13
+ import "./chunk-W2AKSCHY.js";
14
14
  import {
15
15
  eq,
16
16
  memories
17
- } from "./chunk-NWCKV3VH.js";
17
+ } from "./chunk-6PYIOT3M.js";
18
18
  import {
19
19
  init_define_RECALL_BUILD_INFO
20
- } from "./chunk-3VEA6O5V.js";
20
+ } from "./chunk-DPHCS7SB.js";
21
21
 
22
22
  // src/maintenance/provenance.ts
23
23
  init_define_RECALL_BUILD_INFO();
@@ -47,4 +47,4 @@ function quarantineGeneratedMemories(db, apply = false) {
47
47
  export {
48
48
  quarantineGeneratedMemories
49
49
  };
50
- //# sourceMappingURL=provenance-QJ5QO7E7.js.map
50
+ //# sourceMappingURL=provenance-BXFDTOWY.js.map
@@ -0,0 +1,25 @@
1
+ import {
2
+ computeQualityReport,
3
+ diffQualitySnapshots,
4
+ formatQualityReport,
5
+ listQualitySnapshots,
6
+ recordQualitySnapshot
7
+ } from "./chunk-PJP6BAVE.js";
8
+ import "./chunk-NXQLNTA4.js";
9
+ import "./chunk-TDV6KXLS.js";
10
+ import "./chunk-VT3J4GAL.js";
11
+ import "./chunk-P7QERDMA.js";
12
+ import "./chunk-H4RSOHEI.js";
13
+ import "./chunk-R3OJEOHY.js";
14
+ import "./chunk-YP6GE5FM.js";
15
+ import "./chunk-W2AKSCHY.js";
16
+ import "./chunk-6PYIOT3M.js";
17
+ import "./chunk-DPHCS7SB.js";
18
+ export {
19
+ computeQualityReport,
20
+ diffQualitySnapshots,
21
+ formatQualityReport,
22
+ listQualitySnapshots,
23
+ recordQualitySnapshot
24
+ };
25
+ //# sourceMappingURL=quality-E7NHHPRB.js.map
@@ -0,0 +1,15 @@
1
+ import {
2
+ graphQuery
3
+ } from "./chunk-UQVFSSOQ.js";
4
+ import "./chunk-VT3J4GAL.js";
5
+ import "./chunk-P7QERDMA.js";
6
+ import "./chunk-H4RSOHEI.js";
7
+ import "./chunk-R3OJEOHY.js";
8
+ import "./chunk-YP6GE5FM.js";
9
+ import "./chunk-W2AKSCHY.js";
10
+ import "./chunk-6PYIOT3M.js";
11
+ import "./chunk-DPHCS7SB.js";
12
+ export {
13
+ graphQuery
14
+ };
15
+ //# sourceMappingURL=retrieval-TYZQOW7R.js.map
@@ -12,9 +12,9 @@ import {
12
12
  neighborsOf,
13
13
  upsertEntity,
14
14
  upsertRelation
15
- } from "./chunk-6HYJPYEN.js";
16
- import "./chunk-NWCKV3VH.js";
17
- import "./chunk-3VEA6O5V.js";
15
+ } from "./chunk-W2AKSCHY.js";
16
+ import "./chunk-6PYIOT3M.js";
17
+ import "./chunk-DPHCS7SB.js";
18
18
  export {
19
19
  clearGraph,
20
20
  countEntities,
@@ -30,4 +30,4 @@ export {
30
30
  upsertEntity,
31
31
  upsertRelation
32
32
  };
33
- //# sourceMappingURL=store-SNJJ37SQ.js.map
33
+ //# sourceMappingURL=store-NPDHRWFE.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Sentry
3
- } from "./chunk-DQZVDXVW.js";
3
+ } from "./chunk-N7FBY7OQ.js";
4
4
  import {
5
5
  init_define_RECALL_BUILD_INFO
6
- } from "./chunk-3VEA6O5V.js";
6
+ } from "./chunk-DPHCS7SB.js";
7
7
 
8
8
  // src/sync/server.ts
9
9
  init_define_RECALL_BUILD_INFO();
@@ -30,16 +30,16 @@ import {
30
30
  submitTask,
31
31
  sweepExpiredLeases,
32
32
  targetKey
33
- } from "./chunk-SKWPW5Y3.js";
34
- import "./chunk-KSDYZOAI.js";
35
- import "./chunk-PIIFE5BG.js";
36
- import "./chunk-JL3XLTJ6.js";
37
- import "./chunk-MXITLKTT.js";
38
- import "./chunk-T6RJROPP.js";
39
- import "./chunk-ILONL7NF.js";
40
- import "./chunk-6HYJPYEN.js";
41
- import "./chunk-NWCKV3VH.js";
42
- import "./chunk-3VEA6O5V.js";
33
+ } from "./chunk-7O5GXU4Z.js";
34
+ import "./chunk-TDV6KXLS.js";
35
+ import "./chunk-VT3J4GAL.js";
36
+ import "./chunk-P7QERDMA.js";
37
+ import "./chunk-H4RSOHEI.js";
38
+ import "./chunk-R3OJEOHY.js";
39
+ import "./chunk-YP6GE5FM.js";
40
+ import "./chunk-W2AKSCHY.js";
41
+ import "./chunk-6PYIOT3M.js";
42
+ import "./chunk-DPHCS7SB.js";
43
43
  export {
44
44
  DEFAULT_ENQUEUE_CONFIG,
45
45
  DEFAULT_LEASE_SECONDS,
@@ -73,4 +73,4 @@ export {
73
73
  sweepExpiredLeases,
74
74
  targetKey
75
75
  };
76
- //# sourceMappingURL=tasks-AZSUFKOJ.js.map
76
+ //# sourceMappingURL=tasks-YDY2C7EU.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  desc
3
- } from "./chunk-JL3XLTJ6.js";
3
+ } from "./chunk-P7QERDMA.js";
4
4
  import {
5
5
  gte,
6
6
  llmUsage,
7
7
  sql
8
- } from "./chunk-NWCKV3VH.js";
8
+ } from "./chunk-6PYIOT3M.js";
9
9
  import {
10
10
  init_define_RECALL_BUILD_INFO
11
- } from "./chunk-3VEA6O5V.js";
11
+ } from "./chunk-DPHCS7SB.js";
12
12
 
13
13
  // src/llm/usage.ts
14
14
  init_define_RECALL_BUILD_INFO();
@@ -105,4 +105,4 @@ export {
105
105
  formatUsageReport,
106
106
  summarizeUsage
107
107
  };
108
- //# sourceMappingURL=usage-DKO3ULNT.js.map
108
+ //# sourceMappingURL=usage-WAXQKZ75.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edihasaj/recall",
3
- "version": "1.4.17",
3
+ "version": "1.4.19",
4
4
  "description": "Cross-tool coding memory and instruction compiler",
5
5
  "license": "MIT",
6
6
  "homepage": "https://recallmemory.dev/",
@@ -24,6 +24,7 @@
24
24
  "scripts/recall-claude",
25
25
  "scripts/recall-codex",
26
26
  "scripts/recall-session",
27
+ "scripts/install.ps1",
27
28
  "README.md",
28
29
  "LICENSE"
29
30
  ],
@@ -0,0 +1,258 @@
1
+ # Recall — Windows installer (PowerShell)
2
+ #
3
+ # Usage:
4
+ # irm https://recallmemory.dev/install.ps1 | iex
5
+ #
6
+ # What it does:
7
+ # 1. Verifies Node.js >=22 is on PATH (offers a winget hint if not).
8
+ # 2. Installs the checksummed GitHub release package globally via npm
9
+ # (provides the daemon.js the tray supervises).
10
+ # 3. Downloads recall-tray-<arch>.exe into %LOCALAPPDATA%\Programs\Recall.
11
+ # 4. Registers the per-user Run-key entry so the tray launches at login.
12
+ # 5. Launches the tray right away.
13
+ #
14
+ # An existing installation is backed up and stopped before files are replaced.
15
+ # The tray can pass -Version X.Y.Z -WaitForPid <pid> to hand off an update.
16
+ #
17
+ # The tray supervises the daemon child (node dist/daemon.js) and exposes
18
+ # health + the local web dashboard.
19
+
20
+ param(
21
+ [ValidatePattern('^\d+\.\d+\.\d+$')][string]$Version,
22
+ [int]$WaitForPid = 0
23
+ )
24
+
25
+ $ErrorActionPreference = 'Stop'
26
+ Set-StrictMode -Version Latest
27
+
28
+ $RecallRepo = 'edihasaj/recall'
29
+ $InstallDir = Join-Path $env:LOCALAPPDATA 'Programs\Recall'
30
+ $TrayExeName = 'recall-tray.exe'
31
+ $RunKeyPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run'
32
+ $RunKeyValue = 'Recall'
33
+
34
+ function Write-Step($msg) { Write-Host "==> $msg" -ForegroundColor Cyan }
35
+ function Write-Ok($msg) { Write-Host " $msg" -ForegroundColor Green }
36
+ function Write-Warn2($msg){ Write-Host " $msg" -ForegroundColor Yellow }
37
+ function Fail($msg) { Write-Host "!!! $msg" -ForegroundColor Red; throw $msg }
38
+
39
+ function Get-Arch {
40
+ switch ($env:PROCESSOR_ARCHITECTURE) {
41
+ 'AMD64' { return 'amd64' }
42
+ 'ARM64' { return 'arm64' }
43
+ default { Fail "Unsupported architecture: $($env:PROCESSOR_ARCHITECTURE). Recall ships arm64 and amd64." }
44
+ }
45
+ }
46
+
47
+ function Test-Node {
48
+ $node = Get-Command node -ErrorAction SilentlyContinue
49
+ if (-not $node) {
50
+ Write-Warn2 'Node.js not found on PATH.'
51
+ Write-Host ' Install it with: winget install OpenJS.NodeJS.LTS'
52
+ Fail 'Re-run this installer after Node is installed.'
53
+ }
54
+ $ver = (& node --version) -replace '^v',''
55
+ $major = [int]($ver.Split('.')[0])
56
+ if ($major -lt 22) { Fail "Node.js $ver is too old; need >= 22 (matches package.json engines)." }
57
+ Write-Ok "Node $ver detected"
58
+ }
59
+
60
+ function Backup-Install($version, $work) {
61
+ $dataDir = if ($env:RECALL_DATA_DIR) { $env:RECALL_DATA_DIR } else { Join-Path $env:USERPROFILE '.recall' }
62
+ $dbPath = Join-Path $dataDir 'recall.db'
63
+ $backup = Join-Path $dataDir ('backups\published-' + $version + '-' + (Get-Date -Format yyyyMMddTHHmmss))
64
+ New-Item -ItemType Directory -Force -Path $backup | Out-Null
65
+ if (-not (Test-Path $dbPath)) { return $backup }
66
+
67
+ $globalRoot = (& npm root -g).Trim()
68
+ if ($LASTEXITCODE -ne 0) { Fail 'Could not find the existing npm package for backup.' }
69
+ $native = Join-Path $globalRoot '@edihasaj\recall\node_modules\better-sqlite3'
70
+ if (-not (Test-Path $native)) { Fail 'Could not find SQLite support for a safe database backup.' }
71
+ $helper = Join-Path $work 'backup.cjs'
72
+ @'
73
+ const Database = require(process.argv[2]);
74
+ const db = new Database(process.argv[3]);
75
+ db.backup(process.argv[4]).then(() => db.close()).catch((error) => {
76
+ console.error(error.message);
77
+ process.exitCode = 1;
78
+ });
79
+ '@ | Set-Content -Path $helper
80
+ & node $helper $native $dbPath (Join-Path $backup 'recall.db')
81
+ if ($LASTEXITCODE -ne 0) { Fail 'Database backup failed; no files were updated.' }
82
+ Write-Ok "Database backed up to $backup"
83
+ return $backup
84
+ }
85
+
86
+ function Stop-RunningRecall($trayPath, $waitForPid) {
87
+ if ($waitForPid -gt 0) {
88
+ for ($i = 0; $i -lt 150 -and (Get-Process -Id $waitForPid -ErrorAction SilentlyContinue); $i++) {
89
+ Start-Sleep -Milliseconds 200
90
+ }
91
+ if (Get-Process -Id $waitForPid -ErrorAction SilentlyContinue) {
92
+ Fail 'The running tray did not exit; no files were updated.'
93
+ }
94
+ }
95
+ Get-CimInstance Win32_Process -Filter "Name='recall-tray.exe'" |
96
+ Where-Object { $_.ExecutablePath -eq $trayPath } |
97
+ ForEach-Object { Stop-Process -Id $_.ProcessId -ErrorAction Stop }
98
+
99
+ $globalRoot = (& npm root -g).Trim()
100
+ if ($LASTEXITCODE -ne 0) { Fail 'Could not locate the npm installation.' }
101
+ $daemonScript = Join-Path $globalRoot '@edihasaj\recall\dist\daemon.js'
102
+ Get-CimInstance Win32_Process -Filter "Name='node.exe'" |
103
+ Where-Object { $_.CommandLine -like "*$daemonScript*" } |
104
+ ForEach-Object { Stop-Process -Id $_.ProcessId -ErrorAction Stop }
105
+ Start-Sleep -Milliseconds 400
106
+ }
107
+
108
+ function Install-Cli($releaseTag) {
109
+ Write-Step 'Installing @edihasaj/recall CLI (provides the daemon)'
110
+ # Point prebuild-install at edihasaj/recall-prebuilds, where native-prebuilds.yml
111
+ # publishes our better-sqlite3 binaries. Without this, win32-arm64 falls through
112
+ # to node-gyp + needs Python + MSVC Build Tools that users don't have.
113
+ # prebuild-install appends "/v<bsq3-version>/<filename>" to this host.
114
+ $env:npm_config_better_sqlite3_binary_host_mirror = 'https://github.com/edihasaj/recall-prebuilds/releases/download'
115
+ $env:ONNXRUNTIME_NODE_INSTALL = 'skip'
116
+ $version = $releaseTag -replace '^v',''
117
+ $work = Join-Path ([IO.Path]::GetTempPath()) ('recall-install-' + [guid]::NewGuid().ToString('N'))
118
+ New-Item -ItemType Directory -Path $work | Out-Null
119
+ $archive = Join-Path $work "edihasaj-recall-$version.tgz"
120
+ $url = "https://github.com/$RecallRepo/releases/download/$releaseTag/edihasaj-recall-$version.tgz"
121
+ try {
122
+ Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $archive
123
+ Invoke-WebRequest -UseBasicParsing -Uri "$url.sha256" -OutFile "$archive.sha256"
124
+ $expected = ((Get-Content "$archive.sha256" -Raw).Trim() -split '\s+')[0]
125
+ if ($expected -notmatch '^[a-fA-F0-9]{64}$' -or (Get-FileHash $archive -Algorithm SHA256).Hash -ne $expected) {
126
+ throw 'CLI package checksum mismatch.'
127
+ }
128
+ # Windows PowerShell can turn npm's stderr warnings into terminating
129
+ # errors under Stop. The native process exit code decides success here.
130
+ $priorErrorAction = $ErrorActionPreference
131
+ $ErrorActionPreference = 'Continue'
132
+ try {
133
+ & npm.cmd install -g $archive
134
+ $npmExitCode = $LASTEXITCODE
135
+ } finally {
136
+ $ErrorActionPreference = $priorErrorAction
137
+ }
138
+ if ($npmExitCode -ne 0) { throw 'npm install failed' }
139
+ } finally {
140
+ Remove-Item -Recurse -Force $work
141
+ }
142
+ Write-Ok 'CLI installed'
143
+ }
144
+
145
+ function Download-Tray($arch, $releaseTag, $release, $work, $backup) {
146
+ Write-Step "Downloading recall-tray-$arch.exe"
147
+ $assetName = "recall-tray-$arch.exe"
148
+ $asset = $release.assets | Where-Object { $_.name -eq $assetName -and $_.state -eq 'uploaded' } | Select-Object -First 1
149
+ if (-not $asset -or $asset.digest -notmatch '^sha256:[a-fA-F0-9]{64}$') {
150
+ Fail "The $assetName release asset is not ready or has no checksum."
151
+ }
152
+ $expected = $asset.digest.Substring(7)
153
+ $url = "https://github.com/$RecallRepo/releases/download/$releaseTag/recall-tray-$arch.exe"
154
+ New-Item -ItemType Directory -Force -Path $InstallDir | Out-Null
155
+ $dest = Join-Path $InstallDir $TrayExeName
156
+ $staged = Join-Path $work $assetName
157
+ try {
158
+ Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $staged
159
+ } catch {
160
+ Fail "Could not download $url`: $($_.Exception.Message)"
161
+ }
162
+ if ((Get-FileHash $staged -Algorithm SHA256).Hash -ne $expected) {
163
+ Fail 'Tray checksum mismatch; the installed tray was preserved.'
164
+ }
165
+ if (Test-Path $dest) {
166
+ Move-Item -Path $dest -Destination (Join-Path $backup $TrayExeName) -Force
167
+ }
168
+ Move-Item -Path $staged -Destination $dest
169
+ Write-Ok "Installed $dest"
170
+ return $dest
171
+ }
172
+
173
+ function Register-Autostart($exePath) {
174
+ Write-Step 'Registering autostart (per-user Run key)'
175
+ New-Item -Path $RunKeyPath -Force | Out-Null
176
+ Set-ItemProperty -Path $RunKeyPath -Name $RunKeyValue -Value ('"' + $exePath + '"')
177
+ Write-Ok "$RunKeyPath\$RunKeyValue set"
178
+ }
179
+
180
+ function Launch-Tray($exePath) {
181
+ Write-Step 'Launching Recall tray'
182
+ # A developer tray may have pointed at a temporary daemon. The published
183
+ # installation must start from the package that was just installed.
184
+ Remove-Item Env:RECALL_DAEMON_SCRIPT -ErrorAction SilentlyContinue
185
+ Remove-Item Env:RECALL_NODE_PATH -ErrorAction SilentlyContinue
186
+ Start-Process -FilePath $exePath -WindowStyle Hidden
187
+ Write-Ok 'Tray running — look for the Recall icon in the system tray'
188
+ }
189
+
190
+ function Wait-ForHealth($version) {
191
+ Write-Step "Waiting for Recall v$version to become healthy"
192
+ for ($i = 0; $i -lt 20; $i++) {
193
+ try {
194
+ $health = Invoke-RestMethod -Uri 'http://127.0.0.1:7890/health' -TimeoutSec 10 -ErrorAction SilentlyContinue
195
+ if ($null -ne $health -and $health.status -eq 'ok' -and $health.version -eq $version) { return }
196
+ } catch {}
197
+ Start-Sleep -Seconds 2
198
+ }
199
+ Fail "The updated daemon did not report version $version. See the tray log."
200
+ }
201
+
202
+ Write-Host ''
203
+ Write-Host 'Recall installer' -ForegroundColor Magenta
204
+ Write-Host '----------------' -ForegroundColor Magenta
205
+
206
+ $arch = Get-Arch
207
+ Write-Ok "Architecture: win32-$arch"
208
+ Test-Node
209
+ $releaseUrl = if ($Version) {
210
+ "https://api.github.com/repos/$RecallRepo/releases/tags/v$Version"
211
+ } else {
212
+ "https://api.github.com/repos/$RecallRepo/releases/latest"
213
+ }
214
+ $release = Invoke-RestMethod -Uri $releaseUrl
215
+ $releaseTag = $release.tag_name
216
+ if ($releaseTag -notmatch '^v\d+\.\d+\.\d+$') { Fail 'Latest release has an invalid version tag.' }
217
+ $releaseVersion = $releaseTag.Substring(1)
218
+ if ($Version -and $Version -ne $releaseVersion) { Fail 'The requested release version did not match the release tag.' }
219
+ $work = Join-Path ([IO.Path]::GetTempPath()) ('recall-install-' + [guid]::NewGuid().ToString('N'))
220
+ New-Item -ItemType Directory -Path $work | Out-Null
221
+ $tray = Join-Path $InstallDir $TrayExeName
222
+ $backup = $null
223
+ $stopped = $false
224
+ try {
225
+ $backup = Backup-Install $releaseVersion $work
226
+ Stop-RunningRecall $tray $WaitForPid
227
+ $stopped = $true
228
+ $globalRoot = (& npm root -g).Trim()
229
+ if ($LASTEXITCODE -ne 0) { Fail 'Could not locate the npm installation.' }
230
+ Install-Cli $releaseTag
231
+ $installedCli = Join-Path $globalRoot '@edihasaj\recall\dist\cli.js'
232
+ $installedVersion = & node $installedCli --version
233
+ if ($LASTEXITCODE -ne 0 -or $installedVersion -ne $releaseVersion) {
234
+ Fail 'The installed CLI version does not match the tray release.'
235
+ }
236
+ $tray = Download-Tray $arch $releaseTag $release $work $backup
237
+ Register-Autostart $tray
238
+ Launch-Tray $tray
239
+ Wait-ForHealth $releaseVersion
240
+ } catch {
241
+ if ($stopped) {
242
+ Get-CimInstance Win32_Process -Filter "Name='recall-tray.exe'" |
243
+ Where-Object { $_.ExecutablePath -eq $tray } |
244
+ ForEach-Object { Stop-Process -Id $_.ProcessId -ErrorAction SilentlyContinue }
245
+ if ($backup -and (Test-Path (Join-Path $backup $TrayExeName))) {
246
+ if (Test-Path $tray) { Move-Item $tray (Join-Path $work 'failed-tray.exe') -Force }
247
+ Copy-Item (Join-Path $backup $TrayExeName) $tray
248
+ }
249
+ if (Test-Path $tray) { Start-Process -FilePath $tray -WindowStyle Hidden }
250
+ }
251
+ throw
252
+ } finally {
253
+ Remove-Item -Recurse -Force $work
254
+ }
255
+
256
+ Write-Host ''
257
+ Write-Host "Done. Recall v$releaseVersion is running in the system tray." -ForegroundColor Green
258
+ Write-Host "Logs: $env:LOCALAPPDATA\Recall\tray.log (tray), $env:LOCALAPPDATA\Recall\daemon.log (daemon)"
@@ -1,22 +0,0 @@
1
- import {
2
- buildPrompt,
3
- dispatchPendingTasks,
4
- formatDispatchReport,
5
- hasAnyLlmProvider
6
- } from "./chunk-SKWPW5Y3.js";
7
- import "./chunk-KSDYZOAI.js";
8
- import "./chunk-PIIFE5BG.js";
9
- import "./chunk-JL3XLTJ6.js";
10
- import "./chunk-MXITLKTT.js";
11
- import "./chunk-T6RJROPP.js";
12
- import "./chunk-ILONL7NF.js";
13
- import "./chunk-6HYJPYEN.js";
14
- import "./chunk-NWCKV3VH.js";
15
- import "./chunk-3VEA6O5V.js";
16
- export {
17
- buildPrompt,
18
- dispatchPendingTasks,
19
- formatDispatchReport,
20
- hasAnyLlmProvider
21
- };
22
- //# sourceMappingURL=dispatcher-O4W6KH5D.js.map
@@ -1,20 +0,0 @@
1
- import {
2
- ingestMemoryExtraction,
3
- ingestMemoryHeuristic,
4
- mergeAndIngest,
5
- safeIngestMemoryById
6
- } from "./chunk-PIIFE5BG.js";
7
- import "./chunk-JL3XLTJ6.js";
8
- import "./chunk-MXITLKTT.js";
9
- import "./chunk-T6RJROPP.js";
10
- import "./chunk-ILONL7NF.js";
11
- import "./chunk-6HYJPYEN.js";
12
- import "./chunk-NWCKV3VH.js";
13
- import "./chunk-3VEA6O5V.js";
14
- export {
15
- ingestMemoryExtraction,
16
- ingestMemoryHeuristic,
17
- mergeAndIngest,
18
- safeIngestMemoryById
19
- };
20
- //# sourceMappingURL=ingest-TTHTPUZM.js.map
@@ -1,25 +0,0 @@
1
- import {
2
- computeQualityReport,
3
- diffQualitySnapshots,
4
- formatQualityReport,
5
- listQualitySnapshots,
6
- recordQualitySnapshot
7
- } from "./chunk-YK5CRLLB.js";
8
- import "./chunk-HCYJV5AR.js";
9
- import "./chunk-KSDYZOAI.js";
10
- import "./chunk-PIIFE5BG.js";
11
- import "./chunk-JL3XLTJ6.js";
12
- import "./chunk-MXITLKTT.js";
13
- import "./chunk-T6RJROPP.js";
14
- import "./chunk-ILONL7NF.js";
15
- import "./chunk-6HYJPYEN.js";
16
- import "./chunk-NWCKV3VH.js";
17
- import "./chunk-3VEA6O5V.js";
18
- export {
19
- computeQualityReport,
20
- diffQualitySnapshots,
21
- formatQualityReport,
22
- listQualitySnapshots,
23
- recordQualitySnapshot
24
- };
25
- //# sourceMappingURL=quality-T4GWE3DL.js.map