@edihasaj/recall 1.4.16 → 1.4.18
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 +15 -1
- package/dist/{chunk-STSOYDTJ.js → chunk-2KZL4BQ6.js} +9 -9
- package/dist/{chunk-VGVC6TI4.js → chunk-4UEXSOZB.js} +9 -9
- package/dist/{chunk-NUULY6HN.js → chunk-5XY62A7Z.js} +3 -3
- package/dist/chunk-7KJ43RQR.js +3668 -0
- package/dist/chunk-7KJ43RQR.js.map +1 -0
- package/dist/{chunk-6ILX2JCU.js → chunk-A725EQLN.js} +5 -5
- package/dist/{chunk-7KMWCSJO.js → chunk-DNE47UL2.js} +2 -2
- package/dist/{chunk-6ITYXKTU.js → chunk-FI237D4Y.js} +4 -4
- package/dist/{chunk-6ITYXKTU.js.map → chunk-FI237D4Y.js.map} +1 -1
- package/dist/{chunk-ZCTUZHBI.js → chunk-GW6WET36.js} +2 -2
- package/dist/{chunk-GTTCVKF2.js → chunk-IGWHOB6F.js} +4 -4
- package/dist/{chunk-6LKUTMJB.js → chunk-IOYOJRDB.js} +3 -3
- package/dist/{chunk-MZOQHVVD.js → chunk-IUBB5ATF.js} +2 -2
- package/dist/{chunk-MZOQHVVD.js.map → chunk-IUBB5ATF.js.map} +1 -1
- package/dist/{chunk-4VM442I2.js → chunk-KMBPSJ6B.js} +7 -7
- package/dist/{chunk-TAD3XLFA.js → chunk-M6CYA23R.js} +7 -7
- package/dist/{chunk-RHSP4EP2.js → chunk-NWWI2PYI.js} +9 -9
- package/dist/{chunk-WN7HSHQY.js → chunk-OD6M3DWK.js} +2 -2
- package/dist/{chunk-5IXZATFP.js → chunk-OQBMH6NG.js} +5 -5
- package/dist/{chunk-6NGYPNRD.js → chunk-QDSNL6PM.js} +2 -2
- package/dist/{chunk-TNTP6ILA.js → chunk-RU57JAJZ.js} +2 -2
- package/dist/{cleanup-Y7X3YZDW.js → cleanup-SAVG7IDQ.js} +11 -11
- package/dist/cli.js +344 -2464
- package/dist/cli.js.map +1 -1
- package/dist/{codex-trust-HIFEHI7X.js → codex-trust-PM37UGXC.js} +4 -4
- package/dist/daemon.js +136 -17
- package/dist/daemon.js.map +1 -1
- package/dist/dispatcher-XDBM2EY4.js +22 -0
- package/dist/{embeddings-FWNXO6GK.js → embeddings-KX3FG4W5.js} +5 -5
- package/dist/ingest-YSSZIIGV.js +20 -0
- package/dist/{keychain-I76FJCZF.js → keychain-675KT5UZ.js} +3 -3
- package/dist/mcp.js +15 -15
- package/dist/{memory-value-VOWGTLBV.js → memory-value-UKKTPVVF.js} +11 -11
- package/dist/{provenance-BGVB7HW7.js → provenance-HBF4LGHJ.js} +9 -9
- package/dist/quality-N4F5LTCY.js +25 -0
- package/dist/retrieval-MUGT5TBL.js +15 -0
- package/dist/{store-VEFKN5Z3.js → store-JF27SEIB.js} +4 -4
- package/dist/sync-server.js +2 -2
- package/dist/{tasks-XFKW2ORZ.js → tasks-YQVF2CV3.js} +11 -11
- package/dist/{usage-T6KFTDZW.js → usage-XBJ6RTU7.js} +4 -4
- package/package.json +2 -1
- package/scripts/install.ps1 +258 -0
- package/dist/chunk-3Z3KXVR4.js +0 -1490
- package/dist/chunk-3Z3KXVR4.js.map +0 -1
- package/dist/dispatcher-7GGQWV4W.js +0 -22
- package/dist/ingest-7EMEMHDG.js +0 -20
- package/dist/quality-OFFU4MWY.js +0 -25
- package/dist/retrieval-4T7PADU2.js +0 -15
- /package/dist/{chunk-STSOYDTJ.js.map → chunk-2KZL4BQ6.js.map} +0 -0
- /package/dist/{chunk-VGVC6TI4.js.map → chunk-4UEXSOZB.js.map} +0 -0
- /package/dist/{chunk-NUULY6HN.js.map → chunk-5XY62A7Z.js.map} +0 -0
- /package/dist/{chunk-6ILX2JCU.js.map → chunk-A725EQLN.js.map} +0 -0
- /package/dist/{chunk-7KMWCSJO.js.map → chunk-DNE47UL2.js.map} +0 -0
- /package/dist/{chunk-ZCTUZHBI.js.map → chunk-GW6WET36.js.map} +0 -0
- /package/dist/{chunk-GTTCVKF2.js.map → chunk-IGWHOB6F.js.map} +0 -0
- /package/dist/{chunk-6LKUTMJB.js.map → chunk-IOYOJRDB.js.map} +0 -0
- /package/dist/{chunk-4VM442I2.js.map → chunk-KMBPSJ6B.js.map} +0 -0
- /package/dist/{chunk-TAD3XLFA.js.map → chunk-M6CYA23R.js.map} +0 -0
- /package/dist/{chunk-RHSP4EP2.js.map → chunk-NWWI2PYI.js.map} +0 -0
- /package/dist/{chunk-WN7HSHQY.js.map → chunk-OD6M3DWK.js.map} +0 -0
- /package/dist/{chunk-5IXZATFP.js.map → chunk-OQBMH6NG.js.map} +0 -0
- /package/dist/{chunk-6NGYPNRD.js.map → chunk-QDSNL6PM.js.map} +0 -0
- /package/dist/{chunk-TNTP6ILA.js.map → chunk-RU57JAJZ.js.map} +0 -0
- /package/dist/{cleanup-Y7X3YZDW.js.map → cleanup-SAVG7IDQ.js.map} +0 -0
- /package/dist/{codex-trust-HIFEHI7X.js.map → codex-trust-PM37UGXC.js.map} +0 -0
- /package/dist/{dispatcher-7GGQWV4W.js.map → dispatcher-XDBM2EY4.js.map} +0 -0
- /package/dist/{embeddings-FWNXO6GK.js.map → embeddings-KX3FG4W5.js.map} +0 -0
- /package/dist/{ingest-7EMEMHDG.js.map → ingest-YSSZIIGV.js.map} +0 -0
- /package/dist/{keychain-I76FJCZF.js.map → keychain-675KT5UZ.js.map} +0 -0
- /package/dist/{memory-value-VOWGTLBV.js.map → memory-value-UKKTPVVF.js.map} +0 -0
- /package/dist/{provenance-BGVB7HW7.js.map → provenance-HBF4LGHJ.js.map} +0 -0
- /package/dist/{quality-OFFU4MWY.js.map → quality-N4F5LTCY.js.map} +0 -0
- /package/dist/{retrieval-4T7PADU2.js.map → retrieval-MUGT5TBL.js.map} +0 -0
- /package/dist/{store-VEFKN5Z3.js.map → store-JF27SEIB.js.map} +0 -0
- /package/dist/{tasks-XFKW2ORZ.js.map → tasks-YQVF2CV3.js.map} +0 -0
- /package/dist/{usage-T6KFTDZW.js.map → usage-XBJ6RTU7.js.map} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildPrompt,
|
|
3
|
+
dispatchPendingTasks,
|
|
4
|
+
formatDispatchReport,
|
|
5
|
+
hasAnyLlmProvider
|
|
6
|
+
} from "./chunk-NWWI2PYI.js";
|
|
7
|
+
import "./chunk-RU57JAJZ.js";
|
|
8
|
+
import "./chunk-M6CYA23R.js";
|
|
9
|
+
import "./chunk-5XY62A7Z.js";
|
|
10
|
+
import "./chunk-OD6M3DWK.js";
|
|
11
|
+
import "./chunk-IGWHOB6F.js";
|
|
12
|
+
import "./chunk-GW6WET36.js";
|
|
13
|
+
import "./chunk-IOYOJRDB.js";
|
|
14
|
+
import "./chunk-DNE47UL2.js";
|
|
15
|
+
import "./chunk-IUBB5ATF.js";
|
|
16
|
+
export {
|
|
17
|
+
buildPrompt,
|
|
18
|
+
dispatchPendingTasks,
|
|
19
|
+
formatDispatchReport,
|
|
20
|
+
hasAnyLlmProvider
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=dispatcher-XDBM2EY4.js.map
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
storeEmbedding,
|
|
22
22
|
syncMemoryEmbedding,
|
|
23
23
|
verifyEmbeddings
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-IGWHOB6F.js";
|
|
25
|
+
import "./chunk-GW6WET36.js";
|
|
26
|
+
import "./chunk-DNE47UL2.js";
|
|
27
|
+
import "./chunk-IUBB5ATF.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-
|
|
52
|
+
//# sourceMappingURL=embeddings-KX3FG4W5.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ingestMemoryExtraction,
|
|
3
|
+
ingestMemoryHeuristic,
|
|
4
|
+
mergeAndIngest,
|
|
5
|
+
safeIngestMemoryById
|
|
6
|
+
} from "./chunk-M6CYA23R.js";
|
|
7
|
+
import "./chunk-5XY62A7Z.js";
|
|
8
|
+
import "./chunk-OD6M3DWK.js";
|
|
9
|
+
import "./chunk-IGWHOB6F.js";
|
|
10
|
+
import "./chunk-GW6WET36.js";
|
|
11
|
+
import "./chunk-IOYOJRDB.js";
|
|
12
|
+
import "./chunk-DNE47UL2.js";
|
|
13
|
+
import "./chunk-IUBB5ATF.js";
|
|
14
|
+
export {
|
|
15
|
+
ingestMemoryExtraction,
|
|
16
|
+
ingestMemoryHeuristic,
|
|
17
|
+
mergeAndIngest,
|
|
18
|
+
safeIngestMemoryById
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=ingest-YSSZIIGV.js.map
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
listCredentials,
|
|
9
9
|
setApiKey,
|
|
10
10
|
setAzureConfig
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-GW6WET36.js";
|
|
12
|
+
import "./chunk-IUBB5ATF.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-
|
|
24
|
+
//# sourceMappingURL=keychain-675KT5UZ.js.map
|
package/dist/mcp.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRecallMcpServer
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4UEXSOZB.js";
|
|
4
|
+
import "./chunk-OQBMH6NG.js";
|
|
5
|
+
import "./chunk-2KZL4BQ6.js";
|
|
6
|
+
import "./chunk-NWWI2PYI.js";
|
|
7
|
+
import "./chunk-KMBPSJ6B.js";
|
|
8
|
+
import "./chunk-RU57JAJZ.js";
|
|
9
|
+
import "./chunk-QDSNL6PM.js";
|
|
10
|
+
import "./chunk-M6CYA23R.js";
|
|
11
|
+
import "./chunk-5XY62A7Z.js";
|
|
12
|
+
import "./chunk-OD6M3DWK.js";
|
|
13
|
+
import "./chunk-IGWHOB6F.js";
|
|
14
|
+
import "./chunk-GW6WET36.js";
|
|
15
|
+
import "./chunk-IOYOJRDB.js";
|
|
16
|
+
import "./chunk-DNE47UL2.js";
|
|
17
17
|
import {
|
|
18
18
|
init_define_RECALL_BUILD_INFO
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IUBB5ATF.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-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-KMBPSJ6B.js";
|
|
14
|
+
import "./chunk-RU57JAJZ.js";
|
|
15
|
+
import "./chunk-M6CYA23R.js";
|
|
16
|
+
import "./chunk-5XY62A7Z.js";
|
|
17
|
+
import "./chunk-OD6M3DWK.js";
|
|
18
|
+
import "./chunk-IGWHOB6F.js";
|
|
19
|
+
import "./chunk-GW6WET36.js";
|
|
20
|
+
import "./chunk-IOYOJRDB.js";
|
|
21
|
+
import "./chunk-DNE47UL2.js";
|
|
22
|
+
import "./chunk-IUBB5ATF.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-
|
|
36
|
+
//# sourceMappingURL=memory-value-UKKTPVVF.js.map
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
hasNonDurableProvenance,
|
|
4
4
|
queryMemories,
|
|
5
5
|
recordAuditWithSnapshot
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-M6CYA23R.js";
|
|
7
|
+
import "./chunk-5XY62A7Z.js";
|
|
8
|
+
import "./chunk-OD6M3DWK.js";
|
|
9
9
|
import {
|
|
10
10
|
queueMemoryEmbeddingSync
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-IGWHOB6F.js";
|
|
12
|
+
import "./chunk-GW6WET36.js";
|
|
13
|
+
import "./chunk-IOYOJRDB.js";
|
|
14
14
|
import {
|
|
15
15
|
eq,
|
|
16
16
|
memories
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DNE47UL2.js";
|
|
18
18
|
import {
|
|
19
19
|
init_define_RECALL_BUILD_INFO
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IUBB5ATF.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-
|
|
50
|
+
//# sourceMappingURL=provenance-HBF4LGHJ.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computeQualityReport,
|
|
3
|
+
diffQualitySnapshots,
|
|
4
|
+
formatQualityReport,
|
|
5
|
+
listQualitySnapshots,
|
|
6
|
+
recordQualitySnapshot
|
|
7
|
+
} from "./chunk-A725EQLN.js";
|
|
8
|
+
import "./chunk-KMBPSJ6B.js";
|
|
9
|
+
import "./chunk-RU57JAJZ.js";
|
|
10
|
+
import "./chunk-M6CYA23R.js";
|
|
11
|
+
import "./chunk-5XY62A7Z.js";
|
|
12
|
+
import "./chunk-OD6M3DWK.js";
|
|
13
|
+
import "./chunk-IGWHOB6F.js";
|
|
14
|
+
import "./chunk-GW6WET36.js";
|
|
15
|
+
import "./chunk-IOYOJRDB.js";
|
|
16
|
+
import "./chunk-DNE47UL2.js";
|
|
17
|
+
import "./chunk-IUBB5ATF.js";
|
|
18
|
+
export {
|
|
19
|
+
computeQualityReport,
|
|
20
|
+
diffQualitySnapshots,
|
|
21
|
+
formatQualityReport,
|
|
22
|
+
listQualitySnapshots,
|
|
23
|
+
recordQualitySnapshot
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=quality-N4F5LTCY.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
graphQuery
|
|
3
|
+
} from "./chunk-OQBMH6NG.js";
|
|
4
|
+
import "./chunk-M6CYA23R.js";
|
|
5
|
+
import "./chunk-5XY62A7Z.js";
|
|
6
|
+
import "./chunk-OD6M3DWK.js";
|
|
7
|
+
import "./chunk-IGWHOB6F.js";
|
|
8
|
+
import "./chunk-GW6WET36.js";
|
|
9
|
+
import "./chunk-IOYOJRDB.js";
|
|
10
|
+
import "./chunk-DNE47UL2.js";
|
|
11
|
+
import "./chunk-IUBB5ATF.js";
|
|
12
|
+
export {
|
|
13
|
+
graphQuery
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=retrieval-MUGT5TBL.js.map
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
neighborsOf,
|
|
13
13
|
upsertEntity,
|
|
14
14
|
upsertRelation
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-IOYOJRDB.js";
|
|
16
|
+
import "./chunk-DNE47UL2.js";
|
|
17
|
+
import "./chunk-IUBB5ATF.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-
|
|
33
|
+
//# sourceMappingURL=store-JF27SEIB.js.map
|
package/dist/sync-server.js
CHANGED
|
@@ -30,16 +30,16 @@ import {
|
|
|
30
30
|
submitTask,
|
|
31
31
|
sweepExpiredLeases,
|
|
32
32
|
targetKey
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-NWWI2PYI.js";
|
|
34
|
+
import "./chunk-RU57JAJZ.js";
|
|
35
|
+
import "./chunk-M6CYA23R.js";
|
|
36
|
+
import "./chunk-5XY62A7Z.js";
|
|
37
|
+
import "./chunk-OD6M3DWK.js";
|
|
38
|
+
import "./chunk-IGWHOB6F.js";
|
|
39
|
+
import "./chunk-GW6WET36.js";
|
|
40
|
+
import "./chunk-IOYOJRDB.js";
|
|
41
|
+
import "./chunk-DNE47UL2.js";
|
|
42
|
+
import "./chunk-IUBB5ATF.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-
|
|
76
|
+
//# sourceMappingURL=tasks-YQVF2CV3.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
desc
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5XY62A7Z.js";
|
|
4
4
|
import {
|
|
5
5
|
gte,
|
|
6
6
|
llmUsage,
|
|
7
7
|
sql
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DNE47UL2.js";
|
|
9
9
|
import {
|
|
10
10
|
init_define_RECALL_BUILD_INFO
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IUBB5ATF.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-
|
|
108
|
+
//# sourceMappingURL=usage-XBJ6RTU7.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edihasaj/recall",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
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)"
|