@edihasaj/recall 1.4.15 → 1.4.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.
Files changed (75) hide show
  1. package/dist/{chunk-SWPXUPMX.js → chunk-3Z3KXVR4.js} +164 -12
  2. package/dist/chunk-3Z3KXVR4.js.map +1 -0
  3. package/dist/{chunk-RRNELZJV.js → chunk-4VM442I2.js} +7 -7
  4. package/dist/{chunk-MESKBXZZ.js → chunk-5IXZATFP.js} +5 -5
  5. package/dist/{chunk-UZ4GFLH6.js → chunk-6ILX2JCU.js} +5 -5
  6. package/dist/{chunk-UTOM43G2.js → chunk-6ITYXKTU.js} +3 -3
  7. package/dist/{chunk-GMRT5DJZ.js → chunk-6LKUTMJB.js} +3 -3
  8. package/dist/{chunk-IMCI2CLJ.js → chunk-6NGYPNRD.js} +2 -2
  9. package/dist/{chunk-VI6NOUXB.js → chunk-7KMWCSJO.js} +4 -3
  10. package/dist/chunk-7KMWCSJO.js.map +1 -0
  11. package/dist/{chunk-KF3EGZWM.js → chunk-GTTCVKF2.js} +14 -5
  12. package/dist/chunk-GTTCVKF2.js.map +1 -0
  13. package/dist/{chunk-5W3CDNJ6.js → chunk-MZOQHVVD.js} +2 -2
  14. package/dist/{chunk-5W3CDNJ6.js.map → chunk-MZOQHVVD.js.map} +1 -1
  15. package/dist/{chunk-FDIV6YFT.js → chunk-NUULY6HN.js} +3 -3
  16. package/dist/{chunk-VZ456OCO.js → chunk-RHSP4EP2.js} +9 -9
  17. package/dist/{chunk-ZECQ2LQB.js → chunk-STSOYDTJ.js} +9 -9
  18. package/dist/{chunk-LCIVSUQO.js → chunk-TAD3XLFA.js} +7 -7
  19. package/dist/{chunk-PQOGHXET.js → chunk-TNTP6ILA.js} +2 -2
  20. package/dist/{chunk-TZ4EU4SW.js → chunk-VGVC6TI4.js} +9 -9
  21. package/dist/{chunk-ADWOKDF6.js → chunk-WN7HSHQY.js} +2 -2
  22. package/dist/{chunk-2E7UCWNS.js → chunk-ZCTUZHBI.js} +2 -2
  23. package/dist/{cleanup-KXCEVJ7V.js → cleanup-Y7X3YZDW.js} +11 -11
  24. package/dist/cli.js +42 -36
  25. package/dist/cli.js.map +1 -1
  26. package/dist/{codex-trust-H7VKP4G3.js → codex-trust-HIFEHI7X.js} +4 -4
  27. package/dist/daemon.js +17 -17
  28. package/dist/dispatcher-7GGQWV4W.js +22 -0
  29. package/dist/{embeddings-GYQBZWBD.js → embeddings-FWNXO6GK.js} +5 -5
  30. package/dist/ingest-7EMEMHDG.js +20 -0
  31. package/dist/{keychain-TKPVUZCH.js → keychain-I76FJCZF.js} +3 -3
  32. package/dist/mcp.js +15 -15
  33. package/dist/{memory-value-A4UCC3DY.js → memory-value-VOWGTLBV.js} +11 -11
  34. package/dist/{provenance-M5YFD6DO.js → provenance-BGVB7HW7.js} +9 -9
  35. package/dist/quality-OFFU4MWY.js +25 -0
  36. package/dist/retrieval-4T7PADU2.js +15 -0
  37. package/dist/{store-QKP6HQ45.js → store-VEFKN5Z3.js} +4 -4
  38. package/dist/sync-server.js +2 -2
  39. package/dist/{tasks-M5HSQSWK.js → tasks-XFKW2ORZ.js} +11 -11
  40. package/dist/{usage-TQTOHPL7.js → usage-T6KFTDZW.js} +4 -4
  41. package/package.json +1 -1
  42. package/dist/chunk-KF3EGZWM.js.map +0 -1
  43. package/dist/chunk-SWPXUPMX.js.map +0 -1
  44. package/dist/chunk-VI6NOUXB.js.map +0 -1
  45. package/dist/dispatcher-GHC6RX54.js +0 -22
  46. package/dist/ingest-6GDZNYCY.js +0 -20
  47. package/dist/quality-TQ7CVPRO.js +0 -25
  48. package/dist/retrieval-7R5LKJAM.js +0 -15
  49. /package/dist/{chunk-RRNELZJV.js.map → chunk-4VM442I2.js.map} +0 -0
  50. /package/dist/{chunk-MESKBXZZ.js.map → chunk-5IXZATFP.js.map} +0 -0
  51. /package/dist/{chunk-UZ4GFLH6.js.map → chunk-6ILX2JCU.js.map} +0 -0
  52. /package/dist/{chunk-UTOM43G2.js.map → chunk-6ITYXKTU.js.map} +0 -0
  53. /package/dist/{chunk-GMRT5DJZ.js.map → chunk-6LKUTMJB.js.map} +0 -0
  54. /package/dist/{chunk-IMCI2CLJ.js.map → chunk-6NGYPNRD.js.map} +0 -0
  55. /package/dist/{chunk-FDIV6YFT.js.map → chunk-NUULY6HN.js.map} +0 -0
  56. /package/dist/{chunk-VZ456OCO.js.map → chunk-RHSP4EP2.js.map} +0 -0
  57. /package/dist/{chunk-ZECQ2LQB.js.map → chunk-STSOYDTJ.js.map} +0 -0
  58. /package/dist/{chunk-LCIVSUQO.js.map → chunk-TAD3XLFA.js.map} +0 -0
  59. /package/dist/{chunk-PQOGHXET.js.map → chunk-TNTP6ILA.js.map} +0 -0
  60. /package/dist/{chunk-TZ4EU4SW.js.map → chunk-VGVC6TI4.js.map} +0 -0
  61. /package/dist/{chunk-ADWOKDF6.js.map → chunk-WN7HSHQY.js.map} +0 -0
  62. /package/dist/{chunk-2E7UCWNS.js.map → chunk-ZCTUZHBI.js.map} +0 -0
  63. /package/dist/{cleanup-KXCEVJ7V.js.map → cleanup-Y7X3YZDW.js.map} +0 -0
  64. /package/dist/{codex-trust-H7VKP4G3.js.map → codex-trust-HIFEHI7X.js.map} +0 -0
  65. /package/dist/{dispatcher-GHC6RX54.js.map → dispatcher-7GGQWV4W.js.map} +0 -0
  66. /package/dist/{embeddings-GYQBZWBD.js.map → embeddings-FWNXO6GK.js.map} +0 -0
  67. /package/dist/{ingest-6GDZNYCY.js.map → ingest-7EMEMHDG.js.map} +0 -0
  68. /package/dist/{keychain-TKPVUZCH.js.map → keychain-I76FJCZF.js.map} +0 -0
  69. /package/dist/{memory-value-A4UCC3DY.js.map → memory-value-VOWGTLBV.js.map} +0 -0
  70. /package/dist/{provenance-M5YFD6DO.js.map → provenance-BGVB7HW7.js.map} +0 -0
  71. /package/dist/{quality-TQ7CVPRO.js.map → quality-OFFU4MWY.js.map} +0 -0
  72. /package/dist/{retrieval-7R5LKJAM.js.map → retrieval-4T7PADU2.js.map} +0 -0
  73. /package/dist/{store-QKP6HQ45.js.map → store-VEFKN5Z3.js.map} +0 -0
  74. /package/dist/{tasks-M5HSQSWK.js.map → tasks-XFKW2ORZ.js.map} +0 -0
  75. /package/dist/{usage-TQTOHPL7.js.map → usage-T6KFTDZW.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  matchTokens,
3
3
  textMatchScore
4
- } from "./chunk-PQOGHXET.js";
4
+ } from "./chunk-TNTP6ILA.js";
5
5
  import {
6
6
  appendEvidence,
7
7
  countDistinctCorrectionSessions,
@@ -22,13 +22,13 @@ import {
22
22
  rejectMemory,
23
23
  restoreAutoInject,
24
24
  updateMemoryCaptureContext
25
- } from "./chunk-LCIVSUQO.js";
25
+ } from "./chunk-TAD3XLFA.js";
26
26
  import {
27
27
  desc
28
- } from "./chunk-FDIV6YFT.js";
28
+ } from "./chunk-NUULY6HN.js";
29
29
  import {
30
30
  defineOwn
31
- } from "./chunk-ADWOKDF6.js";
31
+ } from "./chunk-WN7HSHQY.js";
32
32
  import {
33
33
  CONFIDENCE,
34
34
  LlmCredentialError,
@@ -38,11 +38,11 @@ import {
38
38
  findSimilarRejectedExemplar,
39
39
  loadEmbeddingConfigFromEnv,
40
40
  queueMemoryEmbeddingSync
41
- } from "./chunk-KF3EGZWM.js";
41
+ } from "./chunk-GTTCVKF2.js";
42
42
  import {
43
43
  hasProviderConfigured,
44
44
  init_keychain
45
- } from "./chunk-2E7UCWNS.js";
45
+ } from "./chunk-ZCTUZHBI.js";
46
46
  import {
47
47
  activityEvents,
48
48
  and,
@@ -63,10 +63,10 @@ import {
63
63
  memoryMaintenanceTasks,
64
64
  or,
65
65
  sql
66
- } from "./chunk-VI6NOUXB.js";
66
+ } from "./chunk-7KMWCSJO.js";
67
67
  import {
68
68
  init_define_RECALL_BUILD_INFO
69
- } from "./chunk-5W3CDNJ6.js";
69
+ } from "./chunk-MZOQHVVD.js";
70
70
 
71
71
  // src/maintenance/tasks.ts
72
72
  init_define_RECALL_BUILD_INFO();
@@ -4200,4 +4200,4 @@ export {
4200
4200
  processCorrection,
4201
4201
  processReviewFeedback
4202
4202
  };
4203
- //# sourceMappingURL=chunk-VZ456OCO.js.map
4203
+ //# sourceMappingURL=chunk-RHSP4EP2.js.map
@@ -9,16 +9,16 @@ import {
9
9
  processCorrection,
10
10
  redactSensitiveValue,
11
11
  seedScannedConfidence
12
- } from "./chunk-VZ456OCO.js";
12
+ } from "./chunk-RHSP4EP2.js";
13
13
  import {
14
14
  recordInjectionValueEvents,
15
15
  recordMemoryInjections,
16
16
  recordOutcomeValueEvent,
17
17
  resolveMemoryInjectionOutcome
18
- } from "./chunk-RRNELZJV.js";
18
+ } from "./chunk-4VM442I2.js";
19
19
  import {
20
20
  textMatchScore
21
- } from "./chunk-PQOGHXET.js";
21
+ } from "./chunk-TNTP6ILA.js";
22
22
  import {
23
23
  activityEventDedupeKey,
24
24
  confirmMemory,
@@ -37,11 +37,11 @@ import {
37
37
  recordFeedback,
38
38
  rejectMemory,
39
39
  statusFromConfidence
40
- } from "./chunk-LCIVSUQO.js";
40
+ } from "./chunk-TAD3XLFA.js";
41
41
  import {
42
42
  asc,
43
43
  desc
44
- } from "./chunk-FDIV6YFT.js";
44
+ } from "./chunk-NUULY6HN.js";
45
45
  import {
46
46
  BACKGROUND_INDEX_BATCH_SIZE,
47
47
  CONFIDENCE,
@@ -62,7 +62,7 @@ import {
62
62
  readUtf8FileIfExists,
63
63
  resolveProvider,
64
64
  tagActivitySource
65
- } from "./chunk-KF3EGZWM.js";
65
+ } from "./chunk-GTTCVKF2.js";
66
66
  import {
67
67
  Column,
68
68
  Columns,
@@ -126,10 +126,10 @@ import {
126
126
  policyRules,
127
127
  schema_exports,
128
128
  sql
129
- } from "./chunk-VI6NOUXB.js";
129
+ } from "./chunk-7KMWCSJO.js";
130
130
  import {
131
131
  init_define_RECALL_BUILD_INFO
132
- } from "./chunk-5W3CDNJ6.js";
132
+ } from "./chunk-MZOQHVVD.js";
133
133
 
134
134
  // src/db/client.ts
135
135
  init_define_RECALL_BUILD_INFO();
@@ -7006,4 +7006,4 @@ export {
7006
7006
  pruneMemories,
7007
7007
  formatPruneReport
7008
7008
  };
7009
- //# sourceMappingURL=chunk-ZECQ2LQB.js.map
7009
+ //# sourceMappingURL=chunk-STSOYDTJ.js.map
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  desc
3
- } from "./chunk-FDIV6YFT.js";
3
+ } from "./chunk-NUULY6HN.js";
4
4
  import {
5
5
  defineOwn
6
- } from "./chunk-ADWOKDF6.js";
6
+ } from "./chunk-WN7HSHQY.js";
7
7
  import {
8
8
  CONFIDENCE,
9
9
  PROMOTION,
10
10
  queueMemoryEmbeddingSync
11
- } from "./chunk-KF3EGZWM.js";
11
+ } from "./chunk-GTTCVKF2.js";
12
12
  import {
13
13
  isPlausibleEntityName,
14
14
  linkMemoryToEntity,
15
15
  upsertEntity,
16
16
  upsertRelation
17
- } from "./chunk-GMRT5DJZ.js";
17
+ } from "./chunk-6LKUTMJB.js";
18
18
  import {
19
19
  and,
20
20
  auditTrail,
@@ -25,10 +25,10 @@ import {
25
25
  like,
26
26
  memories,
27
27
  sql
28
- } from "./chunk-VI6NOUXB.js";
28
+ } from "./chunk-7KMWCSJO.js";
29
29
  import {
30
30
  init_define_RECALL_BUILD_INFO
31
- } from "./chunk-5W3CDNJ6.js";
31
+ } from "./chunk-MZOQHVVD.js";
32
32
 
33
33
  // src/graph/ingest.ts
34
34
  init_define_RECALL_BUILD_INFO();
@@ -996,4 +996,4 @@ export {
996
996
  getMemoryFeedbackSummaries,
997
997
  feedbackWeightedScore
998
998
  };
999
- //# sourceMappingURL=chunk-LCIVSUQO.js.map
999
+ //# sourceMappingURL=chunk-TAD3XLFA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RECALL_BUILD_INFO
3
- } from "./chunk-5W3CDNJ6.js";
3
+ } from "./chunk-MZOQHVVD.js";
4
4
 
5
5
  // src/text/match.ts
6
6
  init_define_RECALL_BUILD_INFO();
@@ -116,4 +116,4 @@ export {
116
116
  textMatchScore,
117
117
  matchTokens
118
118
  };
119
- //# sourceMappingURL=chunk-PQOGHXET.js.map
119
+ //# sourceMappingURL=chunk-TNTP6ILA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  graphQuery
3
- } from "./chunk-MESKBXZZ.js";
3
+ } from "./chunk-5IXZATFP.js";
4
4
  import {
5
5
  captureCorrectionFallback,
6
6
  compileContext,
@@ -26,7 +26,7 @@ import {
26
26
  scanAndStore,
27
27
  sessionEndFallback,
28
28
  signalOutcomeFallback
29
- } from "./chunk-ZECQ2LQB.js";
29
+ } from "./chunk-STSOYDTJ.js";
30
30
  import {
31
31
  DEFAULT_LEASE_SECONDS,
32
32
  TaskClaimConflictError,
@@ -42,10 +42,10 @@ import {
42
42
  processReviewFeedback,
43
43
  releaseTask,
44
44
  submitTask
45
- } from "./chunk-VZ456OCO.js";
45
+ } from "./chunk-RHSP4EP2.js";
46
46
  import {
47
47
  recordCompletionUseValueEventsSemantic
48
- } from "./chunk-RRNELZJV.js";
48
+ } from "./chunk-4VM442I2.js";
49
49
  import {
50
50
  confirmMemory,
51
51
  demoteGlobalMemory,
@@ -58,20 +58,20 @@ import {
58
58
  recordAudit,
59
59
  rejectMemory,
60
60
  rollbackMemory
61
- } from "./chunk-LCIVSUQO.js";
61
+ } from "./chunk-TAD3XLFA.js";
62
62
  import {
63
63
  loadEmbeddingConfigFromEnv,
64
64
  tagActivitySource
65
- } from "./chunk-KF3EGZWM.js";
65
+ } from "./chunk-GTTCVKF2.js";
66
66
  import {
67
67
  getEntity,
68
68
  listEntities,
69
69
  listMemoryIdsForEntity,
70
70
  neighborsOf
71
- } from "./chunk-GMRT5DJZ.js";
71
+ } from "./chunk-6LKUTMJB.js";
72
72
  import {
73
73
  init_define_RECALL_BUILD_INFO
74
- } from "./chunk-5W3CDNJ6.js";
74
+ } from "./chunk-MZOQHVVD.js";
75
75
 
76
76
  // src/mcp/factory.ts
77
77
  init_define_RECALL_BUILD_INFO();
@@ -1287,4 +1287,4 @@ function createRecallMcpServer(db = initDb()) {
1287
1287
  export {
1288
1288
  createRecallMcpServer
1289
1289
  };
1290
- //# sourceMappingURL=chunk-TZ4EU4SW.js.map
1290
+ //# sourceMappingURL=chunk-VGVC6TI4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RECALL_BUILD_INFO
3
- } from "./chunk-5W3CDNJ6.js";
3
+ } from "./chunk-MZOQHVVD.js";
4
4
 
5
5
  // src/security/object.ts
6
6
  init_define_RECALL_BUILD_INFO();
@@ -20,4 +20,4 @@ export {
20
20
  defineOwn,
21
21
  deleteOwn
22
22
  };
23
- //# sourceMappingURL=chunk-ADWOKDF6.js.map
23
+ //# sourceMappingURL=chunk-WN7HSHQY.js.map
@@ -2,7 +2,7 @@ import {
2
2
  __esm,
3
3
  __export,
4
4
  init_define_RECALL_BUILD_INFO
5
- } from "./chunk-5W3CDNJ6.js";
5
+ } from "./chunk-MZOQHVVD.js";
6
6
 
7
7
  // src/security/outbound-url.ts
8
8
  import { isIP } from "net";
@@ -306,4 +306,4 @@ export {
306
306
  keychain_exports,
307
307
  init_keychain
308
308
  };
309
- //# sourceMappingURL=chunk-2E7UCWNS.js.map
309
+ //# sourceMappingURL=chunk-ZCTUZHBI.js.map
@@ -13,16 +13,16 @@ import {
13
13
  qualityReasons,
14
14
  revertCleanupRun,
15
15
  runDeterministicCleanup
16
- } from "./chunk-VZ456OCO.js";
17
- import "./chunk-PQOGHXET.js";
18
- import "./chunk-LCIVSUQO.js";
19
- import "./chunk-FDIV6YFT.js";
20
- import "./chunk-ADWOKDF6.js";
21
- import "./chunk-KF3EGZWM.js";
22
- import "./chunk-2E7UCWNS.js";
23
- import "./chunk-GMRT5DJZ.js";
24
- import "./chunk-VI6NOUXB.js";
25
- import "./chunk-5W3CDNJ6.js";
16
+ } from "./chunk-RHSP4EP2.js";
17
+ import "./chunk-TNTP6ILA.js";
18
+ import "./chunk-TAD3XLFA.js";
19
+ import "./chunk-NUULY6HN.js";
20
+ import "./chunk-WN7HSHQY.js";
21
+ import "./chunk-GTTCVKF2.js";
22
+ import "./chunk-ZCTUZHBI.js";
23
+ import "./chunk-6LKUTMJB.js";
24
+ import "./chunk-7KMWCSJO.js";
25
+ import "./chunk-MZOQHVVD.js";
26
26
  export {
27
27
  formatCleanupReport,
28
28
  isWorkspaceRootAlias,
@@ -39,4 +39,4 @@ export {
39
39
  revertCleanupRun,
40
40
  runDeterministicCleanup
41
41
  };
42
- //# sourceMappingURL=cleanup-KXCEVJ7V.js.map
42
+ //# sourceMappingURL=cleanup-Y7X3YZDW.js.map
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  resolveCodexHookTargets,
8
8
  resolveUserHomeDir,
9
9
  uninstallCodexHooks
10
- } from "./chunk-UTOM43G2.js";
10
+ } from "./chunk-6ITYXKTU.js";
11
11
  import {
12
12
  dispatchCodexNotify,
13
13
  ensureDailyBackup,
@@ -37,7 +37,7 @@ import {
37
37
  readCodexToolInputFromStdin,
38
38
  restoreBackup,
39
39
  verifyBackupIntegrity
40
- } from "./chunk-SWPXUPMX.js";
40
+ } from "./chunk-3Z3KXVR4.js";
41
41
  import {
42
42
  RECALL_DB_USER_VERSION,
43
43
  closeDb,
@@ -84,7 +84,7 @@ import {
84
84
  summarizeValueRetrievalEval,
85
85
  togglePolicy,
86
86
  writeRepoContextArtifact
87
- } from "./chunk-ZECQ2LQB.js";
87
+ } from "./chunk-STSOYDTJ.js";
88
88
  import {
89
89
  autoResolveContradictions,
90
90
  computeAllHealthScores,
@@ -97,10 +97,10 @@ import {
97
97
  processCorrection,
98
98
  processReviewFeedback,
99
99
  resolveContradiction
100
- } from "./chunk-VZ456OCO.js";
101
- import "./chunk-RRNELZJV.js";
102
- import "./chunk-PQOGHXET.js";
103
- import "./chunk-IMCI2CLJ.js";
100
+ } from "./chunk-RHSP4EP2.js";
101
+ import "./chunk-4VM442I2.js";
102
+ import "./chunk-TNTP6ILA.js";
103
+ import "./chunk-6NGYPNRD.js";
104
104
  import {
105
105
  confirmMemory,
106
106
  createMemory,
@@ -114,12 +114,12 @@ import {
114
114
  recordAudit,
115
115
  rejectMemory,
116
116
  rollbackMemory
117
- } from "./chunk-LCIVSUQO.js";
118
- import "./chunk-FDIV6YFT.js";
117
+ } from "./chunk-TAD3XLFA.js";
118
+ import "./chunk-NUULY6HN.js";
119
119
  import {
120
120
  defineOwn,
121
121
  deleteOwn
122
- } from "./chunk-ADWOKDF6.js";
122
+ } from "./chunk-WN7HSHQY.js";
123
123
  import {
124
124
  atomicWriteUtf8File,
125
125
  bootstrapEmbeddings,
@@ -134,7 +134,7 @@ import {
134
134
  searchMemoryFtsIndex,
135
135
  semanticSearch,
136
136
  verifyEmbeddings
137
- } from "./chunk-KF3EGZWM.js";
137
+ } from "./chunk-GTTCVKF2.js";
138
138
  import {
139
139
  deleteApiKey,
140
140
  hasKeychainApiKey,
@@ -142,8 +142,8 @@ import {
142
142
  init_outbound_url,
143
143
  keychain_exports,
144
144
  normalizeSyncRemoteUrl
145
- } from "./chunk-2E7UCWNS.js";
146
- import "./chunk-GMRT5DJZ.js";
145
+ } from "./chunk-ZCTUZHBI.js";
146
+ import "./chunk-6LKUTMJB.js";
147
147
  import {
148
148
  activityEvents,
149
149
  and,
@@ -154,11 +154,11 @@ import {
154
154
  memoryInjections,
155
155
  memoryValueEvents,
156
156
  syncState
157
- } from "./chunk-VI6NOUXB.js";
157
+ } from "./chunk-7KMWCSJO.js";
158
158
  import {
159
159
  __toCommonJS,
160
160
  init_define_RECALL_BUILD_INFO
161
- } from "./chunk-5W3CDNJ6.js";
161
+ } from "./chunk-MZOQHVVD.js";
162
162
 
163
163
  // src/cli.ts
164
164
  init_define_RECALL_BUILD_INFO();
@@ -1025,6 +1025,12 @@ function buildManagedGroups(options) {
1025
1025
  hooks: [commandHook(`${commandPrefix} hook tool --agent claude-code --claude-code-stdin`, "tool")]
1026
1026
  }
1027
1027
  ];
1028
+ groups.PostToolUseFailure = [
1029
+ {
1030
+ matcher: "Bash",
1031
+ hooks: [commandHook(`${commandPrefix} hook tool --agent claude-code --claude-code-stdin`, "tool")]
1032
+ }
1033
+ ];
1028
1034
  }
1029
1035
  if (installedEvents.size === 0 || installedEvents.has("session_ended")) {
1030
1036
  groups.SessionEnd = [
@@ -3583,7 +3589,7 @@ program.command("doctor").description("Show local Recall runtime, DB, embedding,
3583
3589
  const finalReport = opts.fix ? getDoctorReport() : report;
3584
3590
  const codexEntry = finalReport.agents.find((agent) => agent.agent === "codex" && agent.detected);
3585
3591
  if (codexEntry) {
3586
- const { inspectCodexTrust } = await import("./codex-trust-H7VKP4G3.js");
3592
+ const { inspectCodexTrust } = await import("./codex-trust-HIFEHI7X.js");
3587
3593
  codexEntry.hook_trust = await inspectCodexTrust();
3588
3594
  }
3589
3595
  if (opts.json) {
@@ -4310,7 +4316,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
4310
4316
  });
4311
4317
  let snapshot = null;
4312
4318
  if (opts.snapshot) {
4313
- const { computeQualityReport, recordQualitySnapshot } = await import("./quality-TQ7CVPRO.js");
4319
+ const { computeQualityReport, recordQualitySnapshot } = await import("./quality-OFFU4MWY.js");
4314
4320
  const qualityReport = computeQualityReport(db, { sinceIso: report.since });
4315
4321
  snapshot = recordQualitySnapshot(
4316
4322
  db,
@@ -4819,15 +4825,15 @@ uiCmd.command("status").description("Show WebUI status").option("--daemon-port <
4819
4825
  var graphCmd = program.command("graph").description("Inspect and rebuild the knowledge graph (entities + relations)");
4820
4826
  graphCmd.command("stats").description("Show entity/relation counts").action(async () => {
4821
4827
  const db = initDb();
4822
- const { countEntities, countRelations } = await import("./store-QKP6HQ45.js");
4828
+ const { countEntities, countRelations } = await import("./store-VEFKN5Z3.js");
4823
4829
  console.log(`entities: ${countEntities(db)}`);
4824
4830
  console.log(`relations: ${countRelations(db)}`);
4825
4831
  });
4826
4832
  graphCmd.command("backfill").description("Run the heuristic extractor over every active memory (idempotent)").option("--repo <repo>", "Limit to a single repo").option("--limit <n>", "Cap rows processed", "10000").option("--rebuild", "Clear all existing entities/relations first, then re-extract").action(async (opts) => {
4827
4833
  const db = initDb();
4828
- const { ingestMemoryHeuristic } = await import("./ingest-6GDZNYCY.js");
4834
+ const { ingestMemoryHeuristic } = await import("./ingest-7EMEMHDG.js");
4829
4835
  if (opts.rebuild) {
4830
- const { clearGraph } = await import("./store-QKP6HQ45.js");
4836
+ const { clearGraph } = await import("./store-VEFKN5Z3.js");
4831
4837
  clearGraph(db);
4832
4838
  console.log("Cleared existing graph entities and relations.");
4833
4839
  }
@@ -4849,7 +4855,7 @@ graphCmd.command("backfill").description("Run the heuristic extractor over every
4849
4855
  });
4850
4856
  graphCmd.command("entities").description("List entities").option("--repo <repo>", "Filter by repo").option("--kind <kind>", "Filter by entity kind").option("--search <q>", "Substring filter on name").option("--limit <n>", "Max rows", "50").action(async (opts) => {
4851
4857
  const db = initDb();
4852
- const { listEntities } = await import("./store-QKP6HQ45.js");
4858
+ const { listEntities } = await import("./store-VEFKN5Z3.js");
4853
4859
  const rows = listEntities(db, {
4854
4860
  repo: opts.repo,
4855
4861
  kind: opts.kind,
@@ -4868,8 +4874,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
4868
4874
  });
4869
4875
  graphCmd.command("query <query...>").description("Run graph-aware retrieval for a query").option("--repo <repo>", "Restrict to repo").option("--hops <n>", "Graph hops", "2").option("--limit <n>", "Max hits", "10").action(async (queryTokens, opts) => {
4870
4876
  const db = initDb();
4871
- const { graphQuery } = await import("./retrieval-7R5LKJAM.js");
4872
- const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-GYQBZWBD.js");
4877
+ const { graphQuery } = await import("./retrieval-4T7PADU2.js");
4878
+ const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-FWNXO6GK.js");
4873
4879
  const embeddingConfig = loadEmbeddingConfigFromEnv2();
4874
4880
  const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
4875
4881
  repo: opts.repo,
@@ -4885,7 +4891,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
4885
4891
  });
4886
4892
  var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
4887
4893
  maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
4888
- const { getTaskStats } = await import("./tasks-M5HSQSWK.js");
4894
+ const { getTaskStats } = await import("./tasks-XFKW2ORZ.js");
4889
4895
  const db = initDb();
4890
4896
  const stats = getTaskStats(db);
4891
4897
  console.log(`Total tasks: ${stats.total}`);
@@ -4911,7 +4917,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
4911
4917
  }
4912
4918
  });
4913
4919
  maintenanceCmd.command("list").description("List tasks (default: pending)").option("-s, --status <status>", "pending|claimed|completed|abandoned", "pending").option("-k, --kind <kind>", "Filter by kind").option("-r, --repo <repo>", "Filter by repo").option("-n, --limit <n>", "Max entries", "20").action(async (opts) => {
4914
- const { listTasks } = await import("./tasks-M5HSQSWK.js");
4920
+ const { listTasks } = await import("./tasks-XFKW2ORZ.js");
4915
4921
  const db = initDb();
4916
4922
  const tasks = listTasks(db, {
4917
4923
  status: opts.status,
@@ -4933,7 +4939,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
4933
4939
  }
4934
4940
  });
4935
4941
  maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
4936
- const { deleteTask, listTasks } = await import("./tasks-M5HSQSWK.js");
4942
+ const { deleteTask, listTasks } = await import("./tasks-XFKW2ORZ.js");
4937
4943
  const db = initDb();
4938
4944
  const all = listTasks(db, { limit: 1e4 });
4939
4945
  const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
@@ -4952,7 +4958,7 @@ maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)")
4952
4958
  });
4953
4959
  var credentialsCmd = maintenanceCmd.command("credentials").description("Manage LLM provider API keys in macOS Keychain (env fallback on other platforms)");
4954
4960
  credentialsCmd.command("list", { isDefault: true }).description("Show which providers have credentials available").action(async () => {
4955
- const { listCredentials } = await import("./keychain-TKPVUZCH.js");
4961
+ const { listCredentials } = await import("./keychain-I76FJCZF.js");
4956
4962
  const creds = listCredentials();
4957
4963
  if (creds.length === 0) {
4958
4964
  console.log("No API keys configured. Set one with:");
@@ -4966,7 +4972,7 @@ credentialsCmd.command("list", { isDefault: true }).description("Show which prov
4966
4972
  }
4967
4973
  });
4968
4974
  credentialsCmd.command("set").description("Store credentials for an LLM provider in the macOS Keychain").argument("<provider>", "openai|anthropic|azure").argument("[key]", "API key (prompts via stdin if omitted; required for openai/anthropic and for azure unless --stdin-json is used)").option("--endpoint <url>", "Azure OpenAI resource endpoint (e.g. https://myresource.openai.azure.com)").option("--deployment <name>", "Azure OpenAI deployment name").option("--api-version <version>", "Azure OpenAI api-version (e.g. 2024-10-21)").option("--stdin-json", "Read the azure config (endpoint/deployment/api_version/key) as a JSON object from stdin").action(async (providerArg, keyArg, opts) => {
4969
- const { setApiKey, setAzureConfig } = await import("./keychain-TKPVUZCH.js");
4975
+ const { setApiKey, setAzureConfig } = await import("./keychain-I76FJCZF.js");
4970
4976
  const provider = providerArg === "azure" ? "azure-openai" : providerArg;
4971
4977
  if (provider === "openai" || provider === "anthropic") {
4972
4978
  const key = keyArg ?? await readStdinKey();
@@ -5028,7 +5034,7 @@ credentialsCmd.command("set").description("Store credentials for an LLM provider
5028
5034
  process.exit(1);
5029
5035
  });
5030
5036
  credentialsCmd.command("clear").description("Remove provider credentials from the macOS Keychain").argument("<provider>", "openai|anthropic|azure").action(async (providerArg) => {
5031
- const { deleteApiKey: deleteApiKey2 } = await import("./keychain-TKPVUZCH.js");
5037
+ const { deleteApiKey: deleteApiKey2 } = await import("./keychain-I76FJCZF.js");
5032
5038
  const provider = providerArg === "azure" ? "azure-openai" : providerArg;
5033
5039
  if (provider !== "openai" && provider !== "anthropic" && provider !== "azure-openai") {
5034
5040
  console.error(`Provider must be "openai", "anthropic", or "azure", got "${providerArg}".`);
@@ -5039,8 +5045,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
5039
5045
  else console.log(`No ${provider} credentials found in Keychain.`);
5040
5046
  });
5041
5047
  maintenanceCmd.command("dispatch").description("Run the daemon-owned dispatcher once against pending maintenance tasks (requires a configured LLM provider)").option("--provider <provider>", "openai|anthropic|azure-openai (defaults to whichever is configured)").option("--model <model>", "Model override").option("--kind <kind>", "Restrict to a single task kind (repeatable)", (value, acc = []) => [...acc, value], []).option("--repo <repo>", "Restrict to a single repo").option("--max <n>", "Max tasks to run this round", "5").option("--dry-run", "Show which tasks would be dispatched; do not call the LLM").option("--preview", "Show the actual prompts that would be sent (no provider needed; no LLM call)").option("--json", "Emit the raw JSON report").action(async (opts) => {
5042
- const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-GHC6RX54.js");
5043
- const { listTasks } = await import("./tasks-M5HSQSWK.js");
5048
+ const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-7GGQWV4W.js");
5049
+ const { listTasks } = await import("./tasks-XFKW2ORZ.js");
5044
5050
  const db = initDb();
5045
5051
  if (opts.preview) {
5046
5052
  const pending = listTasks(db, {
@@ -5097,12 +5103,12 @@ ${p.prompt.max_output_tokens}
5097
5103
  console.log(formatDispatchReport(report));
5098
5104
  });
5099
5105
  maintenanceCmd.command("quarantine-generated").description("Preview memories supported only by generated messages; preserve them outside injection").option("--apply", "Quarantine matching memories with reversible audit snapshots").action(async (opts) => {
5100
- const { quarantineGeneratedMemories } = await import("./provenance-M5YFD6DO.js");
5106
+ const { quarantineGeneratedMemories } = await import("./provenance-BGVB7HW7.js");
5101
5107
  const ids = quarantineGeneratedMemories(initDb(), Boolean(opts.apply));
5102
5108
  console.log(JSON.stringify({ applied: Boolean(opts.apply), count: ids.length, memory_ids: ids }, null, 2));
5103
5109
  });
5104
5110
  maintenanceCmd.command("cleanup").description("Run deterministic, LLM-free cleanup for duplicate, low-quality, stale, and mis-scoped memories").option("--apply", "Persist changes (default is dry-run)").option("--only <action>", "Restrict to one action: dedupe_exact_merge|reject_fragment_candidate|promote_repeat_correction|suppress_unproductive_command|globalize_cross_repo|reject_test_fixture_repo|reject_invalid_scope|reject_generic_scanned_tooling").option("--revert <run-id>", "Revert a previous cleanup run (id or 8-char prefix)").option("--list", "List recent cleanup runs").option("--json", "Emit the raw JSON report").action(async (opts) => {
5105
- const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-KXCEVJ7V.js");
5111
+ const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-Y7X3YZDW.js");
5106
5112
  const db = initDb();
5107
5113
  if (opts.list) {
5108
5114
  const runs = listCleanupRuns(db);
@@ -5156,7 +5162,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
5156
5162
  recordQualitySnapshot,
5157
5163
  listQualitySnapshots,
5158
5164
  diffQualitySnapshots
5159
- } = await import("./quality-TQ7CVPRO.js");
5165
+ } = await import("./quality-OFFU4MWY.js");
5160
5166
  const db = initDb();
5161
5167
  if (opts.history) {
5162
5168
  const snaps = listQualitySnapshots(db);
@@ -5217,7 +5223,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
5217
5223
  const {
5218
5224
  backfillMemoryValueEvents,
5219
5225
  formatMemoryValueBackfillReport
5220
- } = await import("./memory-value-A4UCC3DY.js");
5226
+ } = await import("./memory-value-VOWGTLBV.js");
5221
5227
  const db = initDb();
5222
5228
  const report = backfillMemoryValueEvents(db, {
5223
5229
  sinceIso: opts.since,
@@ -5230,7 +5236,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
5230
5236
  console.log(formatMemoryValueBackfillReport(report));
5231
5237
  });
5232
5238
  maintenanceCmd.command("usage").description("Summarize LLM API usage (tokens, cost) across recent maintenance runs").option("--since <iso>", "Window start (default: last 30 days)").option("--limit <n>", "Recent-call rows to show", "10").option("--json", "Emit raw JSON summary").action(async (opts) => {
5233
- const { summarizeUsage, formatUsageReport } = await import("./usage-TQTOHPL7.js");
5239
+ const { summarizeUsage, formatUsageReport } = await import("./usage-T6KFTDZW.js");
5234
5240
  const db = initDb();
5235
5241
  const summary = summarizeUsage(db, {
5236
5242
  sinceIso: opts.since,