@wirecat/cli-memo 0.131.46 → 0.131.48

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 (132) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-I2JBJDOR.js → all-profiles-5YVSKBEV.js} +9 -9
  3. package/dist/bundle/{anthropic-CARSCLDG.js → anthropic-BMK6F36V.js} +6 -6
  4. package/dist/bundle/{app-server-SAMZMY3C.js → app-server-PUBWKHUG.js} +48 -45
  5. package/dist/bundle/auto-FXCXORUF.js +86 -0
  6. package/dist/bundle/{bun-T6E2RGI5.js → bun-ZBM364I6.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-WWDLRDBW.js → bun-sqlite-YLBILWBE.js} +5 -5
  8. package/dist/bundle/{chunk-PIHAI7NF.js → chunk-2O32QNK3.js} +7 -7
  9. package/dist/bundle/{chunk-HE535VWC.js → chunk-3A3KPJHP.js} +4 -4
  10. package/dist/bundle/{chunk-XB43J5VQ.js → chunk-3LA6OE35.js} +9 -9
  11. package/dist/bundle/{chunk-IQJQLLAV.js → chunk-4FDK7LVF.js} +7 -7
  12. package/dist/bundle/{chunk-3ZLDPPI4.js → chunk-5BDWOMH6.js} +6 -6
  13. package/dist/bundle/{chunk-IFGMJXND.js → chunk-66KZBRZN.js} +3 -3
  14. package/dist/bundle/{chunk-JY34MQW4.js → chunk-7RNHFNHX.js} +4 -4
  15. package/dist/bundle/{chunk-CWBRCYDY.js → chunk-ADV7DNGM.js} +5 -5
  16. package/dist/bundle/{chunk-YFZ45S6S.js → chunk-BRLVX4V6.js} +1 -1
  17. package/dist/bundle/{chunk-RZ54DSVU.js → chunk-BXTDAGM4.js} +2 -2
  18. package/dist/bundle/{chunk-NFSFUVP2.js → chunk-C3I6L7JZ.js} +6 -6
  19. package/dist/bundle/{chunk-6B75W6XW.js → chunk-C6UTJATA.js} +38 -14
  20. package/dist/bundle/{chunk-J6EUSJ3X.js → chunk-CSPAEYKK.js} +4 -4
  21. package/dist/bundle/{chunk-AXCYTZJD.js → chunk-DGLSE6XA.js} +6 -6
  22. package/dist/bundle/{chunk-CV5MM7HG.js → chunk-DHO2JWF7.js} +3 -3
  23. package/dist/bundle/{chunk-UT2K3TAH.js → chunk-DMI3SFLF.js} +2 -2
  24. package/dist/bundle/{chunk-2K7E5YOZ.js → chunk-DNZYXNMB.js} +4 -4
  25. package/dist/bundle/{chunk-BJSZECFV.js → chunk-DPQL5JK6.js} +2 -2
  26. package/dist/bundle/{chunk-UI4MKFTZ.js → chunk-E4YCKC3F.js} +12 -12
  27. package/dist/bundle/{chunk-SN63VOE6.js → chunk-EBNNONF5.js} +8 -8
  28. package/dist/bundle/{chunk-YPD27HJI.js → chunk-EGVRMA2C.js} +198 -81
  29. package/dist/bundle/{chunk-RF3R3W2I.js → chunk-EQ237UYC.js} +22 -22
  30. package/dist/bundle/{chunk-V7QNIJOE.js → chunk-F7S25YVA.js} +9 -9
  31. package/dist/bundle/{chunk-TOSRVNCY.js → chunk-FTRFN3MU.js} +8 -8
  32. package/dist/bundle/{chunk-VUSM6XFE.js → chunk-H4726KFZ.js} +1 -1
  33. package/dist/bundle/{chunk-PZQCIEMC.js → chunk-HE56X542.js} +1 -1
  34. package/dist/bundle/{chunk-QUUYSYCG.js → chunk-IGYOKYG7.js} +4 -4
  35. package/dist/bundle/{chunk-MKA3NOUU.js → chunk-IHFK634F.js} +8 -8
  36. package/dist/bundle/{chunk-IPNORZSF.js → chunk-IWEL7QCT.js} +11 -11
  37. package/dist/bundle/{chunk-KGVDWSGM.js → chunk-J737T3RM.js} +3 -3
  38. package/dist/bundle/{chunk-JX6JZTOI.js → chunk-KNUUZW42.js} +29 -29
  39. package/dist/bundle/{chunk-36DLHVMS.js → chunk-LDHFV34C.js} +2 -2
  40. package/dist/bundle/{chunk-7UNXTC2J.js → chunk-LDXCFBIC.js} +34 -34
  41. package/dist/bundle/{chunk-TU34HVOY.js → chunk-MIMLBSUQ.js} +2 -2
  42. package/dist/bundle/{chunk-UEMY6RSB.js → chunk-MKLDUZ7N.js} +2 -2
  43. package/dist/bundle/{chunk-F7XQEYF3.js → chunk-MN3SFFTU.js} +303 -280
  44. package/dist/bundle/{chunk-WXCRRP4B.js → chunk-NWRITJ7F.js} +2 -2
  45. package/dist/bundle/{chunk-2R2Z2VWL.js → chunk-O3ZOYXH3.js} +20 -20
  46. package/dist/bundle/{chunk-CID4MNRQ.js → chunk-P3ASN72F.js} +1 -1
  47. package/dist/bundle/{chunk-LOSAAPRY.js → chunk-PUZ2G2KS.js} +8 -8
  48. package/dist/bundle/{chunk-Y5CAKD4X.js → chunk-QOGYHU3Q.js} +4 -4
  49. package/dist/bundle/{chunk-AAKU7TGI.js → chunk-QTBFV5RL.js} +3 -3
  50. package/dist/bundle/{chunk-ZGQSWRCY.js → chunk-QUQJZSRF.js} +566 -351
  51. package/dist/bundle/{chunk-IEVJMRL2.js → chunk-RCEDN42Q.js} +1 -1
  52. package/dist/bundle/{chunk-ICF3LNBX.js → chunk-RSJJGXZP.js} +1 -1
  53. package/dist/bundle/{chunk-UYITVRUC.js → chunk-SGDTAVMU.js} +2 -2
  54. package/dist/bundle/{chunk-TFWTSBON.js → chunk-T56R3TF2.js} +664 -117
  55. package/dist/bundle/{chunk-37D3IHOG.js → chunk-TW643BIA.js} +99 -74
  56. package/dist/bundle/{chunk-5FBJQHCG.js → chunk-TYOZC3BU.js} +3 -3
  57. package/dist/bundle/{chunk-2FYCJ3KB.js → chunk-TZROQCQ5.js} +18 -4
  58. package/dist/bundle/{chunk-LTZHG4BX.js → chunk-U2EFWFDN.js} +10 -10
  59. package/dist/bundle/{chunk-VZRGIWJM.js → chunk-U64G664E.js} +6 -6
  60. package/dist/bundle/{chunk-HDNMDLWC.js → chunk-UHWQ2YXW.js} +1 -1
  61. package/dist/bundle/{chunk-ADBD5GOY.js → chunk-UK2MMZFW.js} +2 -2
  62. package/dist/bundle/{chunk-QR5HJROX.js → chunk-VICARVCN.js} +1 -1
  63. package/dist/bundle/{chunk-YBBCGTZO.js → chunk-VJJCF52V.js} +655 -403
  64. package/dist/bundle/{chunk-XFT24B7A.js → chunk-VOJU5FVA.js} +179 -159
  65. package/dist/bundle/{chunk-LER7G4XY.js → chunk-VW6BF6M7.js} +1 -1
  66. package/dist/bundle/{chunk-GPBUD6WS.js → chunk-X3KMQW2Z.js} +27 -25
  67. package/dist/bundle/{chunk-5FN27OVR.js → chunk-X7UITQ66.js} +5 -5
  68. package/dist/bundle/{chunk-VOUTO3WF.js → chunk-XR4N2MYB.js} +13 -13
  69. package/dist/bundle/{chunk-2MKPY6NU.js → chunk-YBN7UF2Y.js} +1 -1
  70. package/dist/bundle/{chunk-W2EY5PSH.js → chunk-YO7AUGUT.js} +2 -2
  71. package/dist/bundle/{chunk-HFQZYHLX.js → chunk-YZEIVLAG.js} +4 -4
  72. package/dist/bundle/command-contract-BRZAKY6L.js +32 -0
  73. package/dist/bundle/{decode-E3TI4HEU.js → decode-WW5ZMB5R.js} +5 -5
  74. package/dist/bundle/{dispatch-MLRETSNQ.js → dispatch-HCRXCPCF.js} +8 -8
  75. package/dist/bundle/{echarts-B46XTHOI.js → echarts-ODD3E2RQ.js} +2 -2
  76. package/dist/bundle/{embed-BIUMRFOQ.js → embed-3ETM2WYU.js} +6 -6
  77. package/dist/bundle/{embedder-IA3CG6LB.js → embedder-6YL3WFBR.js} +9 -9
  78. package/dist/bundle/{entry-E3QEAAYL.js → entry-F2UGXKZ3.js} +7 -7
  79. package/dist/bundle/{failure-UJBGB2GP.js → failure-G4DCTWFD.js} +2 -2
  80. package/dist/bundle/failure-X7CYCJWD.js +66 -0
  81. package/dist/bundle/{first-run-6UQRVGZ4.js → first-run-OHQHOP5U.js} +11 -11
  82. package/dist/bundle/first-screen-ULF26GYG.js +30 -0
  83. package/dist/bundle/{instructions-6AISOK6M.js → instructions-RS5VERM7.js} +1 -1
  84. package/dist/bundle/{mcp-YMXA6IH6.js → mcp-M4QN2E7R.js} +2 -2
  85. package/dist/bundle/mcp-TS2UAN5I.js +90 -0
  86. package/dist/bundle/memo.js +16 -16
  87. package/dist/bundle/{node-6GP2V36M.js → node-BU6NHYHF.js} +2 -2
  88. package/dist/bundle/{node-sqlite-2CC5J5RZ.js → node-sqlite-WAF44CWS.js} +6 -6
  89. package/dist/bundle/{oauth-VOOLTPGW.js → oauth-T7RCNIYO.js} +7 -7
  90. package/dist/bundle/{open-AGFSOJG6.js → open-QLX2IVTC.js} +5 -5
  91. package/dist/bundle/{openai-KPRA5NIB.js → openai-O25HCJEY.js} +10 -10
  92. package/dist/bundle/{process-J74KA6F3.js → process-SB2X3TKY.js} +1 -1
  93. package/dist/bundle/{program-VAYJBUPU.js → program-SDLIDODQ.js} +98 -68
  94. package/dist/bundle/{prompt-PDQD5OD5.js → prompt-OHVHUNV4.js} +5 -5
  95. package/dist/bundle/{recognize-QH6FBB2L.js → recognize-SESVG7O3.js} +4 -4
  96. package/dist/bundle/{remote-BREQR2BJ.js → remote-DNGLVDYJ.js} +7 -7
  97. package/dist/bundle/{rerank-HWNJXOHL.js → rerank-SF3OUPEB.js} +7 -7
  98. package/dist/bundle/{serve-A63VR5F4.js → serve-6RK7QFZ2.js} +9 -9
  99. package/dist/bundle/server-JKWE764O.js +61 -0
  100. package/dist/bundle/{server-6UZJQQ4E.js → server-N6PCX7K7.js} +57 -57
  101. package/dist/bundle/server-RKGTOY4D.js +48 -0
  102. package/dist/bundle/{state-GMJJEIPI.js → state-J6WLL4TQ.js} +6 -6
  103. package/dist/bundle/{store-HLK3ZQ7A.js → store-R2PHK3FR.js} +13 -13
  104. package/dist/bundle/store-maintenance-command-LRZ5R3UM.js +48 -0
  105. package/dist/bundle/update-RV2WSULI.js +69 -0
  106. package/dist/contract-overrides/doctor.d.ts.map +1 -1
  107. package/dist/contract-overrides/doctor.js +6 -0
  108. package/dist/contract-overrides/doctor.js.map +1 -1
  109. package/dist/doctor/command.d.ts +25 -2
  110. package/dist/doctor/command.d.ts.map +1 -1
  111. package/dist/doctor/command.js +13 -5
  112. package/dist/doctor/command.js.map +1 -1
  113. package/dist/examples.d.ts.map +1 -1
  114. package/dist/examples.js +2 -0
  115. package/dist/examples.js.map +1 -1
  116. package/dist/store/info-command.d.ts.map +1 -1
  117. package/dist/store/info-command.js +23 -1
  118. package/dist/store/info-command.js.map +1 -1
  119. package/dist/version.d.ts +1 -1
  120. package/dist/version.js +1 -1
  121. package/package.json +4 -4
  122. package/dist/bundle/auto-KD7L4X6G.js +0 -86
  123. package/dist/bundle/command-contract-B6MBG7GI.js +0 -32
  124. package/dist/bundle/failure-UKRO32A7.js +0 -66
  125. package/dist/bundle/first-screen-W3BPVWCT.js +0 -30
  126. package/dist/bundle/mcp-RX3COQPC.js +0 -90
  127. package/dist/bundle/server-3FKLHDFN.js +0 -48
  128. package/dist/bundle/server-XKZXPS7I.js +0 -61
  129. package/dist/bundle/store-maintenance-command-2WOANSCK.js +0 -48
  130. package/dist/bundle/update-GIAB6TXY.js +0 -69
  131. /package/dist/bundle/{chunk-AT5Y62SD.js → chunk-IO44XLFM.js} +0 -0
  132. /package/dist/bundle/{chunk-B6ZCQNF4.js → chunk-VOXIGICJ.js} +0 -0
@@ -6,17 +6,17 @@ import {
6
6
  autoState,
7
7
  lastAutoRun,
8
8
  recordAutoRun
9
- } from "./chunk-PIHAI7NF.js";
9
+ } from "./chunk-2O32QNK3.js";
10
10
  import {
11
11
  installer,
12
12
  latest,
13
13
  upgradeCommand
14
- } from "./chunk-MKA3NOUU.js";
14
+ } from "./chunk-IHFK634F.js";
15
15
  import {
16
16
  mcpOwnerAllowed,
17
17
  readOnlyAvailability,
18
18
  refuseWritesUnderLock
19
- } from "./chunk-AXCYTZJD.js";
19
+ } from "./chunk-DGLSE6XA.js";
20
20
  import {
21
21
  answers,
22
22
  atDetail,
@@ -26,7 +26,7 @@ import {
26
26
  trackAnswers,
27
27
  wholeList,
28
28
  withStore
29
- } from "./chunk-IQJQLLAV.js";
29
+ } from "./chunk-4FDK7LVF.js";
30
30
  import {
31
31
  ATTACHMENT_CHARS,
32
32
  DIALECTS,
@@ -56,17 +56,18 @@ import {
56
56
  showMail,
57
57
  unsetConfigKey,
58
58
  updateConfig
59
- } from "./chunk-7UNXTC2J.js";
59
+ } from "./chunk-LDXCFBIC.js";
60
60
  import "./chunk-QP3KNC5D.js";
61
- import "./chunk-AAKU7TGI.js";
62
- import "./chunk-LTZHG4BX.js";
63
- import "./chunk-2FYCJ3KB.js";
61
+ import "./chunk-QTBFV5RL.js";
62
+ import "./chunk-U2EFWFDN.js";
63
+ import "./chunk-TZROQCQ5.js";
64
64
  import {
65
65
  errorObject,
66
66
  recognisable
67
- } from "./chunk-CWBRCYDY.js";
67
+ } from "./chunk-ADV7DNGM.js";
68
68
  import {
69
69
  DISCOVERY_DESCRIPTIONS,
70
+ DOCTOR_DEEP_OPTION,
70
71
  addContractInfo,
71
72
  addMeetingPreparationCommand,
72
73
  advancePastSkipped,
@@ -100,29 +101,32 @@ import {
100
101
  tasksCommand,
101
102
  tasksStatsCommand,
102
103
  withSqliteSidecars
103
- } from "./chunk-F7XQEYF3.js";
104
- import "./chunk-IEVJMRL2.js";
105
- import "./chunk-YFZ45S6S.js";
104
+ } from "./chunk-MN3SFFTU.js";
105
+ import "./chunk-RCEDN42Q.js";
106
+ import "./chunk-BRLVX4V6.js";
106
107
  import {
107
108
  allHitItem,
108
109
  coverageGaps,
109
110
  messageHitItem,
110
111
  noteHitItem,
111
112
  shownOf
112
- } from "./chunk-GPBUD6WS.js";
113
- import "./chunk-UEMY6RSB.js";
113
+ } from "./chunk-X3KMQW2Z.js";
114
+ import "./chunk-MKLDUZ7N.js";
114
115
  import {
115
116
  SKILL_TARGETS,
116
117
  skillCommand,
117
118
  skillPath,
118
119
  skillVersion
119
- } from "./chunk-6B75W6XW.js";
120
+ } from "./chunk-C6UTJATA.js";
120
121
  import {
121
122
  modelGateway,
123
+ recoveryNotes,
122
124
  storeInfo,
125
+ storeRecoveryCheck,
126
+ storeRecoveryRun,
123
127
  storeSummary
124
- } from "./chunk-TFWTSBON.js";
125
- import "./chunk-RF3R3W2I.js";
128
+ } from "./chunk-T56R3TF2.js";
129
+ import "./chunk-EQ237UYC.js";
126
130
  import {
127
131
  LIST_QUERY_GUIDE,
128
132
  STATUS_SIGNALS,
@@ -174,18 +178,18 @@ import {
174
178
  termField,
175
179
  typedQuery,
176
180
  withQuery
177
- } from "./chunk-ZGQSWRCY.js";
181
+ } from "./chunk-QUQJZSRF.js";
178
182
  import {
179
183
  readBoundedUtf8File,
180
184
  writeFileAtomic
181
- } from "./chunk-VOUTO3WF.js";
185
+ } from "./chunk-XR4N2MYB.js";
182
186
  import {
183
187
  commandsText,
184
188
  inSection,
185
189
  installHelp
186
- } from "./chunk-LOSAAPRY.js";
190
+ } from "./chunk-PUZ2G2KS.js";
187
191
  import "./chunk-HTQTIKWP.js";
188
- import "./chunk-QUUYSYCG.js";
192
+ import "./chunk-IGYOKYG7.js";
189
193
  import {
190
194
  Command,
191
195
  FETCH,
@@ -214,23 +218,24 @@ import {
214
218
  provide,
215
219
  runsDirFor,
216
220
  settingRows,
217
- settingsFor
218
- } from "./chunk-XFT24B7A.js";
219
- import "./chunk-V7QNIJOE.js";
220
- import "./chunk-UI4MKFTZ.js";
221
+ settingsFor,
222
+ snakeKeys
223
+ } from "./chunk-VOJU5FVA.js";
224
+ import "./chunk-F7S25YVA.js";
225
+ import "./chunk-E4YCKC3F.js";
221
226
  import {
222
227
  isNewer
223
- } from "./chunk-JY34MQW4.js";
224
- import "./chunk-LER7G4XY.js";
225
- import "./chunk-HFQZYHLX.js";
226
- import "./chunk-IPNORZSF.js";
227
- import "./chunk-UT2K3TAH.js";
228
- import "./chunk-2K7E5YOZ.js";
228
+ } from "./chunk-7RNHFNHX.js";
229
+ import "./chunk-VW6BF6M7.js";
230
+ import "./chunk-YZEIVLAG.js";
231
+ import "./chunk-IWEL7QCT.js";
232
+ import "./chunk-DMI3SFLF.js";
233
+ import "./chunk-DNZYXNMB.js";
229
234
  import {
230
235
  releaseLock,
231
236
  takeLock
232
- } from "./chunk-5FBJQHCG.js";
233
- import "./chunk-VUSM6XFE.js";
237
+ } from "./chunk-TYOZC3BU.js";
238
+ import "./chunk-H4726KFZ.js";
234
239
  import {
235
240
  DEAL_KINDS,
236
241
  DEAL_ROLES,
@@ -268,7 +273,7 @@ import {
268
273
  parseReference,
269
274
  providerNamed,
270
275
  refLabel
271
- } from "./chunk-YBBCGTZO.js";
276
+ } from "./chunk-VJJCF52V.js";
272
277
  import {
273
278
  FACT_STATUSES,
274
279
  FACT_TYPES,
@@ -302,22 +307,22 @@ import {
302
307
  timezoneOf,
303
308
  validateQuery,
304
309
  walkQuery
305
- } from "./chunk-37D3IHOG.js";
306
- import "./chunk-HDNMDLWC.js";
307
- import "./chunk-TOSRVNCY.js";
308
- import "./chunk-VZRGIWJM.js";
309
- import "./chunk-KGVDWSGM.js";
310
- import "./chunk-ADBD5GOY.js";
311
- import "./chunk-CV5MM7HG.js";
312
- import "./chunk-WXCRRP4B.js";
313
- import "./chunk-IFGMJXND.js";
314
- import "./chunk-NFSFUVP2.js";
310
+ } from "./chunk-TW643BIA.js";
311
+ import "./chunk-UHWQ2YXW.js";
312
+ import "./chunk-FTRFN3MU.js";
313
+ import "./chunk-U64G664E.js";
314
+ import "./chunk-J737T3RM.js";
315
+ import "./chunk-UK2MMZFW.js";
316
+ import "./chunk-DHO2JWF7.js";
317
+ import "./chunk-NWRITJ7F.js";
318
+ import "./chunk-66KZBRZN.js";
319
+ import "./chunk-C3I6L7JZ.js";
315
320
  import {
316
321
  sharedModelsDirectory
317
- } from "./chunk-J6EUSJ3X.js";
322
+ } from "./chunk-CSPAEYKK.js";
318
323
  import {
319
324
  storePath
320
- } from "./chunk-W2EY5PSH.js";
325
+ } from "./chunk-YO7AUGUT.js";
321
326
  import {
322
327
  provideTerminal,
323
328
  terminalOf
@@ -327,12 +332,12 @@ import {
327
332
  REASONS,
328
333
  STORE_CLIENT,
329
334
  VERSION
330
- } from "./chunk-36DLHVMS.js";
331
- import "./chunk-CID4MNRQ.js";
332
- import "./chunk-AT5Y62SD.js";
335
+ } from "./chunk-LDHFV34C.js";
336
+ import "./chunk-P3ASN72F.js";
337
+ import "./chunk-VOXIGICJ.js";
333
338
  import "./chunk-D72URWJE.js";
334
- import "./chunk-3ZLDPPI4.js";
335
- import "./chunk-PZQCIEMC.js";
339
+ import "./chunk-5BDWOMH6.js";
340
+ import "./chunk-HE56X542.js";
336
341
  import {
337
342
  createDeadline,
338
343
  createRenderer,
@@ -342,7 +347,7 @@ import {
342
347
  projectFields,
343
348
  readBatchInput,
344
349
  resolvePaths
345
- } from "./chunk-2R2Z2VWL.js";
350
+ } from "./chunk-O3ZOYXH3.js";
346
351
  import {
347
352
  MAX_NEXT_STEPS,
348
353
  array,
@@ -364,14 +369,14 @@ import {
364
369
  trim,
365
370
  union,
366
371
  unknown
367
- } from "./chunk-SN63VOE6.js";
372
+ } from "./chunk-EBNNONF5.js";
368
373
  import "./chunk-Y5E2WNWB.js";
369
374
  import {
370
375
  CliError,
371
376
  errorCodes,
372
377
  isCliError
373
- } from "./chunk-RZ54DSVU.js";
374
- import "./chunk-ICF3LNBX.js";
378
+ } from "./chunk-BXTDAGM4.js";
379
+ import "./chunk-RSJJGXZP.js";
375
380
  import {
376
381
  __name
377
382
  } from "./chunk-ZVVMGPBJ.js";
@@ -653,7 +658,7 @@ var collect = /* @__PURE__ */ __name((value, previous = []) => [...previous, val
653
658
  var readScope = /* @__PURE__ */ __name((command, help = ONE_ACCOUNT_HELP) => sourceOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "readScope");
654
659
  var writeScope = /* @__PURE__ */ __name((command, help) => writeOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "writeScope");
655
660
 
656
- // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
661
+ // node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
657
662
  var SCORED = "mail_sender_scores";
658
663
  var DAY = 864e5;
659
664
  var RECENT = 2 * 365 * DAY;
@@ -669,7 +674,7 @@ var demotedSenders = /* @__PURE__ */ __name(async (store) => {
669
674
  return senders;
670
675
  }, "demotedSenders");
671
676
 
672
- // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/mail/sync.js
677
+ // node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/sync.js
673
678
  var DAY2 = 864e5;
674
679
  var EDGE = 2 * DAY2;
675
680
 
@@ -1906,7 +1911,7 @@ import { createHash } from "node:crypto";
1906
1911
  import { existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
1907
1912
  import { basename, extname, relative, sep } from "node:path";
1908
1913
 
1909
- // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1914
+ // node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1910
1915
  var Proposal = object({
1911
1916
  kind: picklist(["summary", "digest", "fact", "preference"]),
1912
1917
  body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
@@ -1914,10 +1919,10 @@ var Proposal = object({
1914
1919
  });
1915
1920
  var Proposals = object({ items: pipe(array(Proposal), maxLength(20)) });
1916
1921
 
1917
- // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1922
+ // node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1918
1923
  var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
1919
1924
 
1920
- // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1925
+ // node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1921
1926
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
1922
1927
 
1923
1928
  // dist/notes/links.js
@@ -2603,6 +2608,12 @@ var doctor = [
2603
2608
  takes_value: false,
2604
2609
  mandatory: false
2605
2610
  },
2611
+ {
2612
+ flags: "--deep",
2613
+ description: "also read every page of the store and check every search index (about 30 s for 6 GB); without it, only the file header and schema",
2614
+ takes_value: false,
2615
+ mandatory: false
2616
+ },
2606
2617
  {
2607
2618
  flags: "--json",
2608
2619
  description: "print JSON; --json=id,title keeps only those fields",
@@ -4060,7 +4071,7 @@ var retiredMailAddresses = /* @__PURE__ */ __name((mail) => {
4060
4071
  return accounts.map((account2) => account2?.address).filter((address) => typeof address === "string");
4061
4072
  }, "retiredMailAddresses");
4062
4073
  var unitPaths = /* @__PURE__ */ __name((unit) => [...(/^ExecStart=(.*)$/m.exec(unit)?.[1] ?? "").matchAll(/"((?:[^"\\]|\\.)*)"/g)].map(([, path]) => path?.replace(/\\(["\\])/g, "$1") ?? "").filter((path) => path.startsWith("/")), "unitPaths");
4063
- var diagnose = /* @__PURE__ */ __name(async (env, program) => {
4074
+ var diagnose = /* @__PURE__ */ __name(async (env, program, { deep = false } = {}) => {
4064
4075
  const problems = [];
4065
4076
  const paths = resolvePaths({ appName: APP.appName, prefix: APP.envPrefix, env });
4066
4077
  const { config, ...configReport } = inspectConfig(env, program);
@@ -4069,8 +4080,10 @@ var diagnose = /* @__PURE__ */ __name(async (env, program) => {
4069
4080
  // A folder the owner chose with MESSAGING_STORE may rightly be shared, like the home folder itself.
4070
4081
  dirs: [dirname(configReport.path), ...env.MESSAGING_STORE ? [] : [dirname(storePath(env))], runsDirFor(APP, env)]
4071
4082
  });
4072
- const store = await storeSummary(env);
4073
- if ("error" in store && store.error)
4083
+ const store = await storeSummary(env, { deep, command: "memo" });
4084
+ if ("damage" in store && store.damage)
4085
+ problems.push({ what: store.damage.what, fix: "memo store recover" });
4086
+ else if ("error" in store && store.error)
4074
4087
  problems.push({ what: `the store cannot be read: ${store.error}`, fix: "" });
4075
4088
  if ("writable" in store && store.writable === false)
4076
4089
  problems.push({ what: "the store is from a newer version than this memo", fix: "memo upgrade" });
@@ -4144,6 +4157,9 @@ var doctorText = /* @__PURE__ */ __name((d, fixes = [], online) => [
4144
4157
  `state ${d.state}`,
4145
4158
  `cache ${d.cache}`,
4146
4159
  `store ${d.store.path}${!d.store.exists ? " (none yet; the first memo sync makes it)" : "schema" in d.store ? ` (schema ${d.store.schema}, memo speaks ${d.store.speaks})` : ""}`,
4160
+ ..."health" in d.store && d.store.health ? [
4161
+ `health ${d.store.health.ok ? "ok" : "DAMAGED"}, checked ${d.store.health.covers}${d.store.health.checked === "quick" ? " (memo doctor --deep reads every page)" : ""}`
4162
+ ] : [],
4147
4163
  ...d.notes.map((f) => `notes ${f.path} \u2014 exists ${yes(f.exists)}, folder id ${yes(f.bound)}`),
4148
4164
  `search ${d.search_model.name} ${d.search_model.present ? "present" : "not downloaded \u2014 search is by words"}`,
4149
4165
  `timer ${d.timer.enabled ? `on, every ${d.timer.every}` : "off"}`,
@@ -4170,8 +4186,8 @@ var onlineCheck = /* @__PURE__ */ __name(async () => {
4170
4186
  }, "onlineCheck");
4171
4187
  var doctorCommandDefinition = /* @__PURE__ */ __name((program, streams, env) => {
4172
4188
  const { print } = answers(program, streams, env);
4173
- annotate(program.command("doctor"), { effects: REMOTE_READ }).description(sharedDoctor.description()).option(ONLINE_FLAGS, onlineText).option("--json", "print JSON; --json=id,title keeps only those fields").addHelpText("after", "\nReads this computer only, unless --online: the config, the store, the notes folders, the search model, the timer and the agent skill, each problem with the command that fixes it. --online also asks npm whether a newer memo is published, and nothing else leaves this computer. Exits 1 when something other than the config file or a file mode needs attention; problems in the config file are listed in config.issues, and files or folders other users can read in files.problems, and neither changes the exit code.").action(async (options) => {
4174
- const { fixes, ...diagnosis } = await diagnose(env, program);
4189
+ annotate(program.command("doctor"), { effects: REMOTE_READ }).description(sharedDoctor.description()).option(ONLINE_FLAGS, onlineText).option("--deep", DOCTOR_DEEP_OPTION).option("--json", "print JSON; --json=id,title keeps only those fields").addHelpText("after", "\nReads this computer only, unless --online: the config, the store, the notes folders, the search model, the timer and the agent skill, each problem with the command that fixes it. --online also asks npm whether a newer memo is published, and nothing else leaves this computer. Exits 1 when something other than the config file or a file mode needs attention; problems in the config file are listed in config.issues, and files or folders other users can read in files.problems, and neither changes the exit code.").action(async (options) => {
4190
+ const { fixes, ...diagnosis } = await diagnose(env, program, { deep: options.deep === true });
4175
4191
  const online = options.online ? await onlineCheck() : void 0;
4176
4192
  print(options.json, itemAnswer(online ? { ...diagnosis, online } : diagnosis), doctorText(diagnosis, fixes, online));
4177
4193
  if (options.json)
@@ -4522,6 +4538,8 @@ var EXAMPLES = {
4522
4538
  "runs show": ["memo runs show 20261025T090000Z-mail-sync-a81f2c --json"],
4523
4539
  "runs path": ["memo runs path 20261025T090000Z-mail-sync-a81f2c"],
4524
4540
  "store info": ["memo store info", "memo store info --json"],
4541
+ "store recover": ["memo store recover", "memo store recover --json"],
4542
+ "store recover run": ["memo store recover run"],
4525
4543
  upgrade: ["memo upgrade --check"],
4526
4544
  commands: ["memo commands --json", "memo commands tags add --json"],
4527
4545
  "skill show": ["memo skill show"],
@@ -6849,10 +6867,10 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6849
6867
  }).summary("serve this profile's commands to an AI agent").description("serve memo commands over MCP on stdio or authenticated HTTP, limited by saved permissions").option("--permission <key=level>", "tighten one saved permission for this server; repeat for more keys", (value, previous = []) => [...previous, value]).option("--http", "serve on 127.0.0.1 behind an HTTPS tunnel with an owner access-code login").option("--port <port>", `local HTTP port (default ${DEFAULT_PORT}); requires --http`).option("--public-url <url>", "tunnel's HTTPS address without /mcp, or a path of it such as https://<name>.ts.net/memo; requires --http").action(async (options) => {
6850
6868
  if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
6851
6869
  throw new CliError("validation_error", "--port and --public-url require --http");
6852
- const { createMemoServer } = await import("./server-6UZJQQ4E.js");
6870
+ const { createMemoServer } = await import("./server-N6PCX7K7.js");
6853
6871
  const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
6854
6872
  if (options.http) {
6855
- const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-RX3COQPC.js");
6873
+ const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-TS2UAN5I.js");
6856
6874
  const publicUrl = publicUrlOf(options.publicUrl, {
6857
6875
  missing: "--http",
6858
6876
  reaches: "the browser apps reach memo",
@@ -6904,7 +6922,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6904
6922
  });
6905
6923
  });
6906
6924
  annotate(mcp2.command("revoke"), { effects: LOCAL_WRITE, mcp: false, examples: ["memo mcp revoke --json"] }).summary("forget every login given to a browser app").description("forget every login `memo mcp serve --http` gave a browser app; each app must log in again").option("--json", "print JSON").action(async function() {
6907
- const { revokeAll } = await import("./mcp-RX3COQPC.js");
6925
+ const { revokeAll } = await import("./mcp-TS2UAN5I.js");
6908
6926
  revokeAll(httpTokenFile(env));
6909
6927
  out.print(this.opts().json, itemAnswer({ revoked: true }));
6910
6928
  });
@@ -9004,6 +9022,18 @@ var storeCommand = /* @__PURE__ */ __name((program, streams, env) => {
9004
9022
  const { print } = answers(program, streams, env);
9005
9023
  const store = annotate(program.command("store"), { effects: LOCAL_READ }).description("the shared local store every WireCat tool reads");
9006
9024
  annotate(store.command("info"), { effects: LOCAL_READ, output: { entity: "store_info" } }).summary("the shared store's format and size, and whether memo can read it").description("the store file: where it is, its size, its schema against the one memo speaks, which tools used it and how many rows it holds; changes nothing").option("--json", "print JSON; --json=id,title keeps only those fields").action(async (options) => print(options.json, itemOf(await storeInfo(env))));
9025
+ const recover = annotate(store.command("recover"), { effects: LOCAL_READ }).summary("what is damaged in the store and how to recover it").description("check every page and search index of the store, say what is damaged, what it means and the commands that recover it; changes nothing").option("--json", "print JSON; --json=id,title keeps only those fields").action(async (options) => {
9026
+ const answer = await storeRecoveryCheck(env, "memo");
9027
+ print(options.json, itemOf(snakeKeys(answer)), recoveryNotes(answer).join("\n"));
9028
+ });
9029
+ annotate(recover.command("run"), { effects: LOCAL_WRITE }).summary("rebuild a damaged store from every row it can read").description("copy every readable row into a new file with the sqlite3 program, rebuild the search indexes, mentions and vector index, check it, and put it in place of the store; the damaged file is kept beside it. Refuses while a WireCat timer or process has the store").option("--json", "print JSON; --json=id,title keeps only those fields").action(async (options) => {
9030
+ const answer = await storeRecoveryRun(env, {
9031
+ command: "memo",
9032
+ version: VERSION,
9033
+ note: /* @__PURE__ */ __name((text3) => streams.diagnostic(text3), "note")
9034
+ });
9035
+ print(options.json, itemOf(snakeKeys(answer)), recoveryNotes(answer).join("\n"));
9036
+ });
9007
9037
  }, "storeCommand");
9008
9038
 
9009
9039
  // dist/store/source-target.js
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSecret
5
- } from "./chunk-KGVDWSGM.js";
6
- import "./chunk-ADBD5GOY.js";
7
- import "./chunk-2R2Z2VWL.js";
8
- import "./chunk-SN63VOE6.js";
5
+ } from "./chunk-J737T3RM.js";
6
+ import "./chunk-UK2MMZFW.js";
7
+ import "./chunk-O3ZOYXH3.js";
8
+ import "./chunk-EBNNONF5.js";
9
9
  import "./chunk-Y5E2WNWB.js";
10
- import "./chunk-RZ54DSVU.js";
10
+ import "./chunk-BXTDAGM4.js";
11
11
  import "./chunk-ZVVMGPBJ.js";
12
12
  export {
13
13
  readSecret
@@ -8,11 +8,11 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-2FYCJ3KB.js";
12
- import "./chunk-2R2Z2VWL.js";
13
- import "./chunk-SN63VOE6.js";
11
+ } from "./chunk-TZROQCQ5.js";
12
+ import "./chunk-O3ZOYXH3.js";
13
+ import "./chunk-EBNNONF5.js";
14
14
  import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-RZ54DSVU.js";
15
+ import "./chunk-BXTDAGM4.js";
16
16
  import "./chunk-ZVVMGPBJ.js";
17
17
  export {
18
18
  SAMPLE_RATE,
@@ -8,14 +8,14 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-IFGMJXND.js";
12
- import "./chunk-NFSFUVP2.js";
13
- import "./chunk-J6EUSJ3X.js";
14
- import "./chunk-W2EY5PSH.js";
15
- import "./chunk-2R2Z2VWL.js";
16
- import "./chunk-SN63VOE6.js";
11
+ } from "./chunk-66KZBRZN.js";
12
+ import "./chunk-C3I6L7JZ.js";
13
+ import "./chunk-CSPAEYKK.js";
14
+ import "./chunk-YO7AUGUT.js";
15
+ import "./chunk-O3ZOYXH3.js";
16
+ import "./chunk-EBNNONF5.js";
17
17
  import "./chunk-Y5E2WNWB.js";
18
- import "./chunk-RZ54DSVU.js";
18
+ import "./chunk-BXTDAGM4.js";
19
19
  import "./chunk-ZVVMGPBJ.js";
20
20
  export {
21
21
  DEFAULT_OPENAI_MODEL,
@@ -4,18 +4,18 @@ import {
4
4
  defaultThreads,
5
5
  loadModel,
6
6
  truncated
7
- } from "./chunk-NFSFUVP2.js";
8
- import "./chunk-J6EUSJ3X.js";
9
- import "./chunk-W2EY5PSH.js";
10
- import "./chunk-2R2Z2VWL.js";
11
- import "./chunk-SN63VOE6.js";
7
+ } from "./chunk-C3I6L7JZ.js";
8
+ import "./chunk-CSPAEYKK.js";
9
+ import "./chunk-YO7AUGUT.js";
10
+ import "./chunk-O3ZOYXH3.js";
11
+ import "./chunk-EBNNONF5.js";
12
12
  import "./chunk-Y5E2WNWB.js";
13
- import "./chunk-RZ54DSVU.js";
13
+ import "./chunk-BXTDAGM4.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.597.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_e61f089635abd97613f35385460a4858/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
19
19
  var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
20
20
  const { ort, tokenizer, session } = await loadModel(model, directory, threads);
21
21
  const typeIds = session.inputNames.includes("token_type_ids");
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  MCP_PATH,
5
5
  serveOverHttp
6
- } from "./chunk-5FN27OVR.js";
7
- import "./chunk-YFZ45S6S.js";
8
- import "./chunk-BJSZECFV.js";
6
+ } from "./chunk-X7UITQ66.js";
7
+ import "./chunk-BRLVX4V6.js";
8
+ import "./chunk-DPQL5JK6.js";
9
9
  import "./chunk-3X4JM3ZR.js";
10
10
  import "./chunk-H3ZN4YLB.js";
11
- import "./chunk-2K7E5YOZ.js";
12
- import "./chunk-5FBJQHCG.js";
13
- import "./chunk-VUSM6XFE.js";
14
- import "./chunk-2R2Z2VWL.js";
15
- import "./chunk-SN63VOE6.js";
11
+ import "./chunk-DNZYXNMB.js";
12
+ import "./chunk-TYOZC3BU.js";
13
+ import "./chunk-H4726KFZ.js";
14
+ import "./chunk-O3ZOYXH3.js";
15
+ import "./chunk-EBNNONF5.js";
16
16
  import "./chunk-Y5E2WNWB.js";
17
- import "./chunk-RZ54DSVU.js";
17
+ import "./chunk-BXTDAGM4.js";
18
18
  import "./chunk-ZVVMGPBJ.js";
19
19
  export {
20
20
  MCP_PATH,
@@ -0,0 +1,61 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ PER_RUN,
5
+ createServer,
6
+ envelope,
7
+ serveOverHttpUntilStopped,
8
+ serveOverStdio
9
+ } from "./chunk-KNUUZW42.js";
10
+ import "./chunk-EGVRMA2C.js";
11
+ import "./chunk-X3KMQW2Z.js";
12
+ import "./chunk-MKLDUZ7N.js";
13
+ import "./chunk-C6UTJATA.js";
14
+ import "./chunk-VICARVCN.js";
15
+ import "./chunk-YBN7UF2Y.js";
16
+ import "./chunk-MIMLBSUQ.js";
17
+ import "./chunk-MM5NVP7F.js";
18
+ import "./chunk-3X4JM3ZR.js";
19
+ import "./chunk-H3ZN4YLB.js";
20
+ import "./chunk-EQ237UYC.js";
21
+ import "./chunk-QUQJZSRF.js";
22
+ import "./chunk-XR4N2MYB.js";
23
+ import "./chunk-IGYOKYG7.js";
24
+ import "./chunk-VOJU5FVA.js";
25
+ import "./chunk-F7S25YVA.js";
26
+ import "./chunk-7RNHFNHX.js";
27
+ import "./chunk-VW6BF6M7.js";
28
+ import "./chunk-YZEIVLAG.js";
29
+ import "./chunk-DMI3SFLF.js";
30
+ import "./chunk-DNZYXNMB.js";
31
+ import "./chunk-TYOZC3BU.js";
32
+ import "./chunk-H4726KFZ.js";
33
+ import "./chunk-VJJCF52V.js";
34
+ import "./chunk-TW643BIA.js";
35
+ import "./chunk-UHWQ2YXW.js";
36
+ import "./chunk-FTRFN3MU.js";
37
+ import "./chunk-U64G664E.js";
38
+ import "./chunk-UK2MMZFW.js";
39
+ import "./chunk-NWRITJ7F.js";
40
+ import "./chunk-66KZBRZN.js";
41
+ import "./chunk-C3I6L7JZ.js";
42
+ import "./chunk-CSPAEYKK.js";
43
+ import "./chunk-YO7AUGUT.js";
44
+ import "./chunk-P3ASN72F.js";
45
+ import "./chunk-VOXIGICJ.js";
46
+ import "./chunk-D72URWJE.js";
47
+ import "./chunk-5BDWOMH6.js";
48
+ import "./chunk-HE56X542.js";
49
+ import "./chunk-O3ZOYXH3.js";
50
+ import "./chunk-EBNNONF5.js";
51
+ import "./chunk-Y5E2WNWB.js";
52
+ import "./chunk-BXTDAGM4.js";
53
+ import "./chunk-RSJJGXZP.js";
54
+ import "./chunk-ZVVMGPBJ.js";
55
+ export {
56
+ PER_RUN,
57
+ createServer,
58
+ envelope,
59
+ serveOverHttpUntilStopped,
60
+ serveOverStdio
61
+ };