@wirecat/cli-memo 0.131.50 → 0.131.52

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 (144) hide show
  1. package/dist/author.d.ts +6 -3
  2. package/dist/author.d.ts.map +1 -1
  3. package/dist/author.js +9 -4
  4. package/dist/author.js.map +1 -1
  5. package/dist/bin/memo.js +2 -2
  6. package/dist/bundle/{all-profiles-3HADTQZA.js → all-profiles-ZFVBLT2D.js} +9 -9
  7. package/dist/bundle/{anthropic-RI4DWC3G.js → anthropic-UG2YHOT7.js} +6 -6
  8. package/dist/bundle/{app-server-6EKWAYJI.js → app-server-AQYA4TB6.js} +42 -42
  9. package/dist/bundle/auto-2AY6K6DI.js +86 -0
  10. package/dist/bundle/{bun-HUHQD76Z.js → bun-QJUFWKEZ.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-RPSKGB4O.js → bun-sqlite-GWVRHYF4.js} +5 -5
  12. package/dist/bundle/{chunk-N6IHOYMT.js → chunk-2CBOPOC7.js} +165 -37
  13. package/dist/bundle/{chunk-6N6BVPVX.js → chunk-2GEV2TXW.js} +4 -4
  14. package/dist/bundle/{chunk-2OIGV355.js → chunk-3O46NA2H.js} +105 -63
  15. package/dist/bundle/{chunk-UDJTRFRV.js → chunk-4ISZPK6D.js} +1 -1
  16. package/dist/bundle/{chunk-BXTDAGM4.js → chunk-4ZW6ZJ2V.js} +2 -2
  17. package/dist/bundle/{chunk-ZDHNEYKO.js → chunk-55GFDV24.js} +8 -8
  18. package/dist/bundle/{chunk-NJDGZRF5.js → chunk-5WT6SEXS.js} +30 -14
  19. package/dist/bundle/{chunk-EBNNONF5.js → chunk-64JCY7XJ.js} +8 -8
  20. package/dist/bundle/{chunk-LZWXGO3G.js → chunk-65576OCE.js} +2 -2
  21. package/dist/bundle/{chunk-57LMWEDK.js → chunk-6BVWU2UM.js} +3 -3
  22. package/dist/bundle/{chunk-VW6BF6M7.js → chunk-6G53ZFUT.js} +1 -1
  23. package/dist/bundle/{chunk-DVA6MQWK.js → chunk-6GF4TIVM.js} +1 -1
  24. package/dist/bundle/{chunk-LUPJB7ZD.js → chunk-6PQIXQFD.js} +9 -9
  25. package/dist/bundle/{chunk-S7F4ZDFU.js → chunk-6ZQK3L35.js} +3 -3
  26. package/dist/bundle/{chunk-SSPSNSC5.js → chunk-7SVHEGRO.js} +1 -1
  27. package/dist/bundle/{chunk-PUTGTW6W.js → chunk-A36ASW3I.js} +1 -1
  28. package/dist/bundle/{chunk-5TWUUDKP.js → chunk-A7DXLOMS.js} +2 -2
  29. package/dist/bundle/{chunk-UAR6UMFL.js → chunk-AGOUP5AH.js} +5 -5
  30. package/dist/bundle/{chunk-P2LMXIHL.js → chunk-AU5GAMGM.js} +415 -359
  31. package/dist/bundle/{chunk-QOGYHU3Q.js → chunk-EBDX6DNB.js} +61 -21
  32. package/dist/bundle/{chunk-ND6D4A6H.js → chunk-EEEZGK2J.js} +3 -3
  33. package/dist/bundle/{chunk-XZZFHQGM.js → chunk-EKQNL6VJ.js} +25 -23
  34. package/dist/bundle/{chunk-7ZLOZGIC.js → chunk-EQUPZVV6.js} +6 -6
  35. package/dist/bundle/{chunk-RKFKRCOH.js → chunk-ERZBEQAY.js} +276 -268
  36. package/dist/bundle/{chunk-D5KGXYG6.js → chunk-ETYAJPIT.js} +22 -22
  37. package/dist/bundle/{chunk-PYRHU35W.js → chunk-FWCFEJWD.js} +179 -159
  38. package/dist/bundle/{chunk-IXXBPSXO.js → chunk-G4Z4WSIG.js} +2 -2
  39. package/dist/bundle/{chunk-OT23U5LT.js → chunk-G52Y3KOO.js} +2 -2
  40. package/dist/bundle/{chunk-KVOHC4ZM.js → chunk-G7K4J3NS.js} +4 -4
  41. package/dist/bundle/{chunk-UJLYVXP6.js → chunk-GJWNHWG7.js} +34 -34
  42. package/dist/bundle/{chunk-2HPYP3ZT.js → chunk-I4LXP4HQ.js} +4 -4
  43. package/dist/bundle/{chunk-PEYCLVIO.js → chunk-IALGFO44.js} +2 -2
  44. package/dist/bundle/{chunk-P3ASN72F.js → chunk-IK6KH3RE.js} +1 -1
  45. package/dist/bundle/{chunk-FOM7WE2C.js → chunk-IKG2OPHU.js} +8 -16
  46. package/dist/bundle/{chunk-HCMXUHHF.js → chunk-KGPD3OCD.js} +180 -67
  47. package/dist/bundle/{chunk-2MFBZ2UM.js → chunk-LUHMRW3P.js} +9 -6
  48. package/dist/bundle/{chunk-SLIF5EMS.js → chunk-LX65W7IK.js} +7 -7
  49. package/dist/bundle/{chunk-DJRBSOWH.js → chunk-M64NVDB4.js} +4 -4
  50. package/dist/bundle/{chunk-QCPUC3HW.js → chunk-MICF3K6S.js} +13 -13
  51. package/dist/bundle/{chunk-7RNHFNHX.js → chunk-MZMJALJT.js} +4 -4
  52. package/dist/bundle/{chunk-PJMGQJAX.js → chunk-N5J6GT7C.js} +7 -7
  53. package/dist/bundle/{chunk-Y6VH7IRN.js → chunk-NIUWQP7F.js} +32 -30
  54. package/dist/bundle/{chunk-355PHJYX.js → chunk-NNUP36UQ.js} +1 -1
  55. package/dist/bundle/{chunk-GV6XJMUW.js → chunk-NOEXRGYH.js} +12 -12
  56. package/dist/bundle/{chunk-RYMYE5PF.js → chunk-NUQ3N3V3.js} +8 -8
  57. package/dist/bundle/{chunk-O3KOW7RG.js → chunk-NZKDNBYE.js} +8 -8
  58. package/dist/bundle/{chunk-AKD62EUH.js → chunk-OIPJYDLZ.js} +2 -2
  59. package/dist/bundle/{chunk-ZA7FKGB7.js → chunk-OWS67HTV.js} +2 -2
  60. package/dist/bundle/{chunk-GIDZGGAD.js → chunk-PBM5GH7S.js} +4 -4
  61. package/dist/bundle/{chunk-EJDV5IIF.js → chunk-PKVXZZTM.js} +58 -1
  62. package/dist/bundle/{chunk-5JVA43HX.js → chunk-RYY4YRKQ.js} +6 -6
  63. package/dist/bundle/{chunk-W6JQNNJ5.js → chunk-S7X5ZMQN.js} +3 -3
  64. package/dist/bundle/{chunk-P2TISY3R.js → chunk-TM6R3Z45.js} +1 -1
  65. package/dist/bundle/{chunk-4VQPPX47.js → chunk-TQS6ZKC3.js} +487 -406
  66. package/dist/bundle/{chunk-TSUNLSIN.js → chunk-U4ZD5SYO.js} +2 -2
  67. package/dist/bundle/{chunk-XXGBXCBQ.js → chunk-U6E3BGHO.js} +11 -11
  68. package/dist/bundle/{chunk-HXOAPH47.js → chunk-VOWEZBOJ.js} +1 -1
  69. package/dist/bundle/{chunk-O3ZOYXH3.js → chunk-WLKDS65F.js} +20 -20
  70. package/dist/bundle/{chunk-NTQUBSIJ.js → chunk-X6XIW76O.js} +6 -6
  71. package/dist/bundle/{chunk-5RVL7GYA.js → chunk-XIHQOSCT.js} +2 -2
  72. package/dist/bundle/{chunk-XH6K2B5L.js → chunk-ZKXIZD4C.js} +4 -4
  73. package/dist/bundle/{chunk-V2DMJ6ES.js → chunk-ZVJAZXME.js} +6 -6
  74. package/dist/bundle/{chunk-3BG5VYMV.js → chunk-ZVR6S4XB.js} +10 -10
  75. package/dist/bundle/{chunk-QCRJNWJZ.js → chunk-ZYQEWB6P.js} +3 -3
  76. package/dist/bundle/command-contract-7AADJ3UC.js +32 -0
  77. package/dist/bundle/{decode-IYWZ3X7X.js → decode-XMIBTI5O.js} +5 -5
  78. package/dist/bundle/{dispatch-HCRXCPCF.js → dispatch-W4ZVXTJT.js} +10 -10
  79. package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-W7DPDJA5.js} +2 -2
  80. package/dist/bundle/{embed-EGY2R4FN.js → embed-EP3KKO6Y.js} +6 -6
  81. package/dist/bundle/{embedder-K2BGPWNX.js → embedder-ENGCALJ7.js} +9 -9
  82. package/dist/bundle/{entry-NMAZNDNU.js → entry-BGSKREOS.js} +7 -7
  83. package/dist/bundle/{failure-G4DCTWFD.js → failure-GQHAQVGH.js} +2 -2
  84. package/dist/bundle/failure-ZKQVXWAB.js +66 -0
  85. package/dist/bundle/{first-run-QDCSWX3N.js → first-run-4EBMV2EM.js} +11 -11
  86. package/dist/bundle/first-screen-2TM3BF2Y.js +30 -0
  87. package/dist/bundle/{instructions-P72XX4AK.js → instructions-A42XETMK.js} +1 -1
  88. package/dist/bundle/mcp-5LAWRSJK.js +90 -0
  89. package/dist/bundle/{mcp-M4QN2E7R.js → mcp-RKJG22KM.js} +2 -2
  90. package/dist/bundle/memo.js +41 -17
  91. package/dist/bundle/{node-ZB4RNICS.js → node-IRL66JK2.js} +2 -2
  92. package/dist/bundle/{node-sqlite-7XJ4J4E5.js → node-sqlite-SOGTH72B.js} +6 -6
  93. package/dist/bundle/{oauth-FMH3JIPT.js → oauth-RB5W3AC7.js} +7 -7
  94. package/dist/bundle/{open-PRCTOHHL.js → open-552EJ4JC.js} +5 -5
  95. package/dist/bundle/{openai-VW4W6SIO.js → openai-ZLOHEEDH.js} +10 -10
  96. package/dist/bundle/{process-XNN4WG6N.js → process-46SUXGWW.js} +1 -1
  97. package/dist/bundle/{program-TVT22XUQ.js → program-ZLWKMT65.js} +72 -65
  98. package/dist/bundle/{prompt-RT55UZGB.js → prompt-2NHJSYKX.js} +5 -5
  99. package/dist/bundle/{recognize-AQ2UXUC2.js → recognize-2LDM6KHL.js} +4 -4
  100. package/dist/bundle/{remote-T3P5OWRR.js → remote-DBYHHENF.js} +7 -7
  101. package/dist/bundle/{rerank-743T3675.js → rerank-N5T2TIIY.js} +7 -7
  102. package/dist/bundle/{serve-BSKOU4FJ.js → serve-S6B54R2F.js} +9 -9
  103. package/dist/bundle/server-KZZHFPTZ.js +61 -0
  104. package/dist/bundle/{server-ECOTCYJ3.js → server-QH6AKPRV.js} +58 -58
  105. package/dist/bundle/server-WAIPBBM7.js +48 -0
  106. package/dist/bundle/{state-MDMI3I2Z.js → state-ZXZGIIJW.js} +6 -6
  107. package/dist/bundle/{store-I3DIZALN.js → store-PNJNDMQ4.js} +13 -13
  108. package/dist/bundle/store-maintenance-command-2ZVV3DGA.js +48 -0
  109. package/dist/bundle/update-6HXLLGTQ.js +69 -0
  110. package/dist/doctor/command.d.ts +30 -0
  111. package/dist/doctor/command.d.ts.map +1 -1
  112. package/dist/doctor/command.js +1 -1
  113. package/dist/doctor/command.js.map +1 -1
  114. package/dist/failure.js +2 -2
  115. package/dist/failure.js.map +1 -1
  116. package/dist/knowledge/relationships-scan.d.ts.map +1 -1
  117. package/dist/knowledge/relationships-scan.js +4 -3
  118. package/dist/knowledge/relationships-scan.js.map +1 -1
  119. package/dist/mcp/catalogue.js +1 -1
  120. package/dist/mcp/catalogue.js.map +1 -1
  121. package/dist/people/command.d.ts.map +1 -1
  122. package/dist/people/command.js +3 -1
  123. package/dist/people/command.js.map +1 -1
  124. package/dist/run/import.d.ts.map +1 -1
  125. package/dist/run/import.js +3 -2
  126. package/dist/run/import.js.map +1 -1
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +4 -4
  130. package/skills/cli-memo/SKILL.md +1 -1
  131. package/skills/cli-memo/topics/proposals.md +2 -2
  132. package/skills/mail-triage/SKILL.md +1 -1
  133. package/skills/morning-digest/SKILL.md +1 -1
  134. package/dist/bundle/auto-C7G3WVRU.js +0 -86
  135. package/dist/bundle/command-contract-MRLLZQ4M.js +0 -32
  136. package/dist/bundle/failure-FW4NJI7G.js +0 -66
  137. package/dist/bundle/first-screen-YABO6OZ7.js +0 -30
  138. package/dist/bundle/mcp-QRZ2HSON.js +0 -90
  139. package/dist/bundle/server-VMWVYGK7.js +0 -48
  140. package/dist/bundle/server-ZFHSK6TT.js +0 -61
  141. package/dist/bundle/store-maintenance-command-HZPQPOK7.js +0 -48
  142. package/dist/bundle/update-ZIZAU5RE.js +0 -69
  143. /package/dist/bundle/{chunk-CDFNOKPG.js → chunk-DPRGC5YX.js} +0 -0
  144. /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-SW6C6WH5.js} +0 -0
@@ -6,17 +6,17 @@ import {
6
6
  autoState,
7
7
  lastAutoRun,
8
8
  recordAutoRun
9
- } from "./chunk-SLIF5EMS.js";
9
+ } from "./chunk-LX65W7IK.js";
10
10
  import {
11
11
  installer,
12
12
  latest,
13
13
  upgradeCommand
14
- } from "./chunk-ZDHNEYKO.js";
14
+ } from "./chunk-55GFDV24.js";
15
15
  import {
16
16
  mcpOwnerAllowed,
17
17
  readOnlyAvailability,
18
18
  refuseWritesUnderLock
19
- } from "./chunk-7ZLOZGIC.js";
19
+ } from "./chunk-EQUPZVV6.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-PJMGQJAX.js";
29
+ } from "./chunk-N5J6GT7C.js";
30
30
  import {
31
31
  ATTACHMENT_CHARS,
32
32
  DIALECTS,
@@ -56,15 +56,15 @@ import {
56
56
  showMail,
57
57
  unsetConfigKey,
58
58
  updateConfig
59
- } from "./chunk-UJLYVXP6.js";
59
+ } from "./chunk-GJWNHWG7.js";
60
60
  import "./chunk-QP3KNC5D.js";
61
- import "./chunk-57LMWEDK.js";
62
- import "./chunk-3BG5VYMV.js";
63
- import "./chunk-6N6BVPVX.js";
61
+ import "./chunk-6BVWU2UM.js";
62
+ import "./chunk-ZVR6S4XB.js";
63
+ import "./chunk-2GEV2TXW.js";
64
64
  import {
65
65
  errorObject,
66
66
  recognisable
67
- } from "./chunk-2MFBZ2UM.js";
67
+ } from "./chunk-LUHMRW3P.js";
68
68
  import {
69
69
  DISCOVERY_DESCRIPTIONS,
70
70
  DOCTOR_DEEP_OPTION,
@@ -101,23 +101,23 @@ import {
101
101
  tasksCommand,
102
102
  tasksStatsCommand,
103
103
  withSqliteSidecars
104
- } from "./chunk-RKFKRCOH.js";
105
- import "./chunk-355PHJYX.js";
106
- import "./chunk-SSPSNSC5.js";
104
+ } from "./chunk-ERZBEQAY.js";
105
+ import "./chunk-NNUP36UQ.js";
106
+ import "./chunk-7SVHEGRO.js";
107
107
  import {
108
108
  allHitItem,
109
109
  coverageGaps,
110
110
  messageHitItem,
111
111
  noteHitItem,
112
112
  shownOf
113
- } from "./chunk-D5KGXYG6.js";
114
- import "./chunk-IXXBPSXO.js";
113
+ } from "./chunk-ETYAJPIT.js";
114
+ import "./chunk-G4Z4WSIG.js";
115
115
  import {
116
116
  SKILL_TARGETS,
117
117
  skillCommand,
118
118
  skillPath,
119
119
  skillVersion
120
- } from "./chunk-NJDGZRF5.js";
120
+ } from "./chunk-5WT6SEXS.js";
121
121
  import {
122
122
  modelGateway,
123
123
  recoveryNotes,
@@ -125,8 +125,8 @@ import {
125
125
  storeRecoveryCheck,
126
126
  storeRecoveryRun,
127
127
  storeSummary
128
- } from "./chunk-2OIGV355.js";
129
- import "./chunk-XZZFHQGM.js";
128
+ } from "./chunk-3O46NA2H.js";
129
+ import "./chunk-EKQNL6VJ.js";
130
130
  import {
131
131
  LIST_QUERY_GUIDE,
132
132
  STATUS_SIGNALS,
@@ -178,18 +178,18 @@ import {
178
178
  termField,
179
179
  typedQuery,
180
180
  withQuery
181
- } from "./chunk-4VQPPX47.js";
181
+ } from "./chunk-TQS6ZKC3.js";
182
182
  import {
183
183
  readBoundedUtf8File,
184
184
  writeFileAtomic
185
- } from "./chunk-QCPUC3HW.js";
185
+ } from "./chunk-MICF3K6S.js";
186
186
  import {
187
187
  commandsText,
188
188
  inSection,
189
189
  installHelp
190
- } from "./chunk-O3KOW7RG.js";
190
+ } from "./chunk-NZKDNBYE.js";
191
191
  import "./chunk-HTQTIKWP.js";
192
- import "./chunk-GIDZGGAD.js";
192
+ import "./chunk-PBM5GH7S.js";
193
193
  import {
194
194
  Command,
195
195
  FETCH,
@@ -220,22 +220,22 @@ import {
220
220
  settingRows,
221
221
  settingsFor,
222
222
  snakeKeys
223
- } from "./chunk-PYRHU35W.js";
224
- import "./chunk-FOM7WE2C.js";
225
- import "./chunk-GV6XJMUW.js";
223
+ } from "./chunk-FWCFEJWD.js";
224
+ import "./chunk-IKG2OPHU.js";
225
+ import "./chunk-NOEXRGYH.js";
226
226
  import {
227
227
  isNewer
228
- } from "./chunk-7RNHFNHX.js";
229
- import "./chunk-VW6BF6M7.js";
230
- import "./chunk-DJRBSOWH.js";
231
- import "./chunk-XXGBXCBQ.js";
232
- import "./chunk-OT23U5LT.js";
233
- import "./chunk-2HPYP3ZT.js";
228
+ } from "./chunk-MZMJALJT.js";
229
+ import "./chunk-6G53ZFUT.js";
230
+ import "./chunk-M64NVDB4.js";
231
+ import "./chunk-U6E3BGHO.js";
232
+ import "./chunk-G52Y3KOO.js";
233
+ import "./chunk-I4LXP4HQ.js";
234
234
  import {
235
235
  releaseLock,
236
236
  takeLock
237
- } from "./chunk-S7F4ZDFU.js";
238
- import "./chunk-DVA6MQWK.js";
237
+ } from "./chunk-6ZQK3L35.js";
238
+ import "./chunk-6GF4TIVM.js";
239
239
  import {
240
240
  DEAL_KINDS,
241
241
  DEAL_ROLES,
@@ -274,7 +274,7 @@ import {
274
274
  plainQuery,
275
275
  providerNamed,
276
276
  refLabel
277
- } from "./chunk-P2LMXIHL.js";
277
+ } from "./chunk-AU5GAMGM.js";
278
278
  import {
279
279
  FACT_STATUSES,
280
280
  FACT_TYPES,
@@ -295,6 +295,7 @@ import {
295
295
  createUpcomingMeetingReader,
296
296
  formatMeetingReference,
297
297
  isClosedState,
298
+ markStoreDamaged,
298
299
  meetingHitsList,
299
300
  minorUnits,
300
301
  moneyOf,
@@ -308,22 +309,22 @@ import {
308
309
  timezoneOf,
309
310
  validateQuery,
310
311
  walkQuery
311
- } from "./chunk-HCMXUHHF.js";
312
- import "./chunk-EJDV5IIF.js";
313
- import "./chunk-RYMYE5PF.js";
314
- import "./chunk-V2DMJ6ES.js";
315
- import "./chunk-W6JQNNJ5.js";
316
- import "./chunk-AKD62EUH.js";
317
- import "./chunk-ND6D4A6H.js";
318
- import "./chunk-5RVL7GYA.js";
319
- import "./chunk-QCRJNWJZ.js";
320
- import "./chunk-5JVA43HX.js";
312
+ } from "./chunk-KGPD3OCD.js";
313
+ import "./chunk-PKVXZZTM.js";
314
+ import "./chunk-NUQ3N3V3.js";
315
+ import "./chunk-ZVJAZXME.js";
316
+ import "./chunk-S7X5ZMQN.js";
317
+ import "./chunk-OIPJYDLZ.js";
318
+ import "./chunk-EEEZGK2J.js";
319
+ import "./chunk-XIHQOSCT.js";
320
+ import "./chunk-ZYQEWB6P.js";
321
+ import "./chunk-RYY4YRKQ.js";
321
322
  import {
322
323
  sharedModelsDirectory
323
- } from "./chunk-KVOHC4ZM.js";
324
+ } from "./chunk-G7K4J3NS.js";
324
325
  import {
325
326
  storePath
326
- } from "./chunk-LZWXGO3G.js";
327
+ } from "./chunk-65576OCE.js";
327
328
  import {
328
329
  provideTerminal,
329
330
  terminalOf
@@ -333,12 +334,12 @@ import {
333
334
  REASONS,
334
335
  STORE_CLIENT,
335
336
  VERSION
336
- } from "./chunk-5TWUUDKP.js";
337
- import "./chunk-P3ASN72F.js";
338
- import "./chunk-VOXIGICJ.js";
337
+ } from "./chunk-A7DXLOMS.js";
338
+ import "./chunk-IK6KH3RE.js";
339
+ import "./chunk-SW6C6WH5.js";
339
340
  import "./chunk-D72URWJE.js";
340
- import "./chunk-NTQUBSIJ.js";
341
- import "./chunk-PUTGTW6W.js";
341
+ import "./chunk-X6XIW76O.js";
342
+ import "./chunk-A36ASW3I.js";
342
343
  import {
343
344
  createDeadline,
344
345
  createRenderer,
@@ -348,7 +349,7 @@ import {
348
349
  projectFields,
349
350
  readBatchInput,
350
351
  resolvePaths
351
- } from "./chunk-O3ZOYXH3.js";
352
+ } from "./chunk-WLKDS65F.js";
352
353
  import {
353
354
  MAX_NEXT_STEPS,
354
355
  array,
@@ -370,14 +371,14 @@ import {
370
371
  trim,
371
372
  union,
372
373
  unknown
373
- } from "./chunk-EBNNONF5.js";
374
+ } from "./chunk-64JCY7XJ.js";
374
375
  import "./chunk-Y5E2WNWB.js";
375
376
  import {
376
377
  CliError,
377
378
  errorCodes,
378
379
  isCliError
379
- } from "./chunk-BXTDAGM4.js";
380
- import "./chunk-P2TISY3R.js";
380
+ } from "./chunk-4ZW6ZJ2V.js";
381
+ import "./chunk-TM6R3Z45.js";
381
382
  import {
382
383
  __name
383
384
  } from "./chunk-ZVVMGPBJ.js";
@@ -438,6 +439,8 @@ var whoRuns = /* @__PURE__ */ __name(async (command, env, { asOwner = false, que
438
439
  throw new CliError("permission_error", "an agent cannot act as the owner; the owner runs this command");
439
440
  return { bot: agentIn(env) ?? "memo-mcp" };
440
441
  }
442
+ if (command.opts().fromApp)
443
+ return "owner";
441
444
  const agent = agentIn(env);
442
445
  if (agent === void 0 && terminalOf(command).present)
443
446
  return "owner";
@@ -459,7 +462,8 @@ var deciderOf = /* @__PURE__ */ __name(async (command, env, { asOwner, reason, q
459
462
  });
460
463
  return { bot: who.bot, reason: reason.trim() };
461
464
  }, "deciderOf");
462
- var byOption = /* @__PURE__ */ __name((command) => command.option("--as-owner", "act as you although an agent's terminal runs memo (AI_AGENT or CLAUDECODE set); asks y/N at the terminal"), "byOption");
465
+ var fromAppOption = /* @__PURE__ */ __name((command) => command.option("--from-app", "you did this in WireCat Desktop: record it as yours, with no terminal question"), "fromAppOption");
466
+ var byOption = /* @__PURE__ */ __name((command) => fromAppOption(command.option("--as-owner", "act as you although an agent's terminal runs memo (AI_AGENT or CLAUDECODE set); asks y/N at the terminal")), "byOption");
463
467
  var reasonOption = /* @__PURE__ */ __name((command) => command.option("--reason <text>", "why, in a few words; required when an agent decides for you"), "reasonOption");
464
468
 
465
469
  // dist/store/source-list.js
@@ -659,7 +663,7 @@ var collect = /* @__PURE__ */ __name((value, previous = []) => [...previous, val
659
663
  var readScope = /* @__PURE__ */ __name((command, help = ONE_ACCOUNT_HELP) => sourceOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "readScope");
660
664
  var writeScope = /* @__PURE__ */ __name((command, help) => writeOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "writeScope");
661
665
 
662
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
666
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
663
667
  var SCORED = "mail_sender_scores";
664
668
  var DAY = 864e5;
665
669
  var RECENT = 2 * 365 * DAY;
@@ -675,7 +679,7 @@ var demotedSenders = /* @__PURE__ */ __name(async (store) => {
675
679
  return senders;
676
680
  }, "demotedSenders");
677
681
 
678
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mail/sync.js
682
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/mail/sync.js
679
683
  var DAY2 = 864e5;
680
684
  var EDGE = 2 * DAY2;
681
685
 
@@ -1914,7 +1918,7 @@ import { createHash } from "node:crypto";
1914
1918
  import { existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
1915
1919
  import { basename, extname, relative, sep } from "node:path";
1916
1920
 
1917
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1921
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1918
1922
  var Proposal = object({
1919
1923
  kind: picklist(["summary", "digest", "fact", "preference"]),
1920
1924
  body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
@@ -1922,10 +1926,10 @@ var Proposal = object({
1922
1926
  });
1923
1927
  var Proposals = object({ items: pipe(array(Proposal), maxLength(20)) });
1924
1928
 
1925
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1929
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1926
1930
  var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
1927
1931
 
1928
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1932
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1929
1933
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
1930
1934
 
1931
1935
  // dist/notes/dates.js
@@ -4113,7 +4117,7 @@ var diagnose = /* @__PURE__ */ __name(async (env, program, { deep = false } = {}
4113
4117
  // A folder the owner chose with MESSAGING_STORE may rightly be shared, like the home folder itself.
4114
4118
  dirs: [dirname(configReport.path), ...env.MESSAGING_STORE ? [] : [dirname(storePath(env))], runsDirFor(APP, env)]
4115
4119
  });
4116
- const store = await storeSummary(env, { deep, command: "memo" });
4120
+ const store = await storeSummary(env, { deep, command: "memo", version: APP.version });
4117
4121
  if ("damage" in store && store.damage)
4118
4122
  problems.push({ what: store.damage.what, fix: "memo store recover" });
4119
4123
  else if ("error" in store && store.error)
@@ -5982,7 +5986,7 @@ var scanText = /* @__PURE__ */ __name(({ written: written2, scans }) => [
5982
5986
  ...proposals.map((one2) => ` ${one2.score.toFixed(2)} ${one2.title}${one2.id === null ? "" : ` ${one2.id}`} ${one2.state}`)
5983
5987
  ])
5984
5988
  ].join("\n"), "scanText");
5985
- var relationshipsScanCommand = /* @__PURE__ */ __name((relations, print, env, warn) => annotate(relations.command("scan"), { effects: LOCAL_WRITE }).description("chats, mail threads and people that look like a project's, scored from the store: its name and aliases in titles and messages, its confirmed members' chats and threads. With no project, people who share a company mail domain. Lists them and writes nothing; --yes writes them as proposals by memo-scan for you to decide in memo review. Never confirms, and never proposes again what you rejected").summary("propose chats and people for a project; nothing is written without --yes").argument("[project]", "a project's id, key, exact name or alias, or all; left out, people by mail domain").option("--source <accounts>", `where to look, or all: ${ACCOUNTS_HELP}`).option("--since-time <time>", "how far back messages count: days (90d, at most 730d) or a date", "90d").option("--limit <n>", "new proposals per project at most, up to 50", positive, 20).option("--yes", "write the proposals; without it nothing is written").option("--json", "print JSON; --json=id,title keeps only those fields").action(async (project, options) => {
5989
+ var relationshipsScanCommand = /* @__PURE__ */ __name((relations, print, env, warn) => annotate(relations.command("scan"), { effects: LOCAL_WRITE }).description("chats, mail threads and people that look like a project's, scored from the store: its name and aliases in titles and messages, the chats and threads of its members in every messenger, spreading from what it finds. With no project, people who share a company mail domain. Lists them and writes nothing; --yes writes them as proposals by memo-scan for you to decide in memo review. Never confirms, and never proposes again what you rejected").summary("propose chats and people for a project; nothing is written without --yes").argument("[project]", "a project's id, key, exact name or alias, or all; left out, people by mail domain").option("--source <accounts>", `where to look, or all: ${ACCOUNTS_HELP}`).option("--since-time <time>", "how far back messages count: days (90d, at most 730d) or a date", "90d").option("--limit <n>", "new proposals per project at most, up to 50", positive, 20).option("--yes", "write the proposals; without it nothing is written").option("--json", "print JSON; --json=id,title keeps only those fields").action(async (project, options) => {
5986
5990
  if (options.limit > 50)
5987
5991
  throw new CliError("validation_error", "--limit is at most 50", { param: "limit" });
5988
5992
  const window = projectWindowOf(options.sinceTime);
@@ -6902,10 +6906,10 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6902
6906
  }).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) => {
6903
6907
  if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
6904
6908
  throw new CliError("validation_error", "--port and --public-url require --http");
6905
- const { createMemoServer } = await import("./server-ECOTCYJ3.js");
6909
+ const { createMemoServer } = await import("./server-QH6AKPRV.js");
6906
6910
  const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
6907
6911
  if (options.http) {
6908
- const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-QRZ2HSON.js");
6912
+ const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-5LAWRSJK.js");
6909
6913
  const publicUrl = publicUrlOf(options.publicUrl, {
6910
6914
  missing: "--http",
6911
6915
  reaches: "the browser apps reach memo",
@@ -6957,7 +6961,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6957
6961
  });
6958
6962
  });
6959
6963
  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() {
6960
- const { revokeAll } = await import("./mcp-QRZ2HSON.js");
6964
+ const { revokeAll } = await import("./mcp-5LAWRSJK.js");
6961
6965
  revokeAll(httpTokenFile(env));
6962
6966
  out.print(this.opts().json, itemAnswer({ revoked: true }));
6963
6967
  });
@@ -7731,6 +7735,8 @@ var noteCommand = /* @__PURE__ */ __name((program, streams, env) => {
7731
7735
  }[operation]).argument("<identity>", "<messenger>:<name or id> of an identity of the person").option("--json", "print the standard JSON answer");
7732
7736
  if (operation === "add")
7733
7737
  command.argument("<path>", "the imported note file in a configured folder");
7738
+ if (operation !== "show")
7739
+ fromAppOption(command);
7734
7740
  command.action(async (identity, value) => {
7735
7741
  const by = await deciderOf(command, env, { question: `change ${identity}'s note files as you, the owner?` });
7736
7742
  const result = await withStore(env, async (store) => {
@@ -8591,6 +8597,7 @@ var syncCommand = /* @__PURE__ */ __name((program, streams, env, signal) => {
8591
8597
  await work2();
8592
8598
  } catch (error) {
8593
8599
  halt();
8600
+ markStoreDamaged(error, { store: storePath(env), command: "memo sync", version: APP.version });
8594
8601
  const { error: failure } = await errorObject(error);
8595
8602
  const reason = failureReason(error, failure, debug);
8596
8603
  run.failed.push({ source, code: failure.code, reasonId: failure.reason, reason });
@@ -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-W6JQNNJ5.js";
6
- import "./chunk-AKD62EUH.js";
7
- import "./chunk-O3ZOYXH3.js";
8
- import "./chunk-EBNNONF5.js";
5
+ } from "./chunk-S7X5ZMQN.js";
6
+ import "./chunk-OIPJYDLZ.js";
7
+ import "./chunk-WLKDS65F.js";
8
+ import "./chunk-64JCY7XJ.js";
9
9
  import "./chunk-Y5E2WNWB.js";
10
- import "./chunk-BXTDAGM4.js";
10
+ import "./chunk-4ZW6ZJ2V.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-6N6BVPVX.js";
12
- import "./chunk-O3ZOYXH3.js";
13
- import "./chunk-EBNNONF5.js";
11
+ } from "./chunk-2GEV2TXW.js";
12
+ import "./chunk-WLKDS65F.js";
13
+ import "./chunk-64JCY7XJ.js";
14
14
  import "./chunk-Y5E2WNWB.js";
15
- import "./chunk-BXTDAGM4.js";
15
+ import "./chunk-4ZW6ZJ2V.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-QCRJNWJZ.js";
12
- import "./chunk-5JVA43HX.js";
13
- import "./chunk-KVOHC4ZM.js";
14
- import "./chunk-LZWXGO3G.js";
15
- import "./chunk-O3ZOYXH3.js";
16
- import "./chunk-EBNNONF5.js";
11
+ } from "./chunk-ZYQEWB6P.js";
12
+ import "./chunk-RYY4YRKQ.js";
13
+ import "./chunk-G7K4J3NS.js";
14
+ import "./chunk-65576OCE.js";
15
+ import "./chunk-WLKDS65F.js";
16
+ import "./chunk-64JCY7XJ.js";
17
17
  import "./chunk-Y5E2WNWB.js";
18
- import "./chunk-BXTDAGM4.js";
18
+ import "./chunk-4ZW6ZJ2V.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-5JVA43HX.js";
8
- import "./chunk-KVOHC4ZM.js";
9
- import "./chunk-LZWXGO3G.js";
10
- import "./chunk-O3ZOYXH3.js";
11
- import "./chunk-EBNNONF5.js";
7
+ } from "./chunk-RYY4YRKQ.js";
8
+ import "./chunk-G7K4J3NS.js";
9
+ import "./chunk-65576OCE.js";
10
+ import "./chunk-WLKDS65F.js";
11
+ import "./chunk-64JCY7XJ.js";
12
12
  import "./chunk-Y5E2WNWB.js";
13
- import "./chunk-BXTDAGM4.js";
13
+ import "./chunk-4ZW6ZJ2V.js";
14
14
  import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.605.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_eae6fabbffc2c6fec7070a9f7231a4be/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-UAR6UMFL.js";
7
- import "./chunk-SSPSNSC5.js";
8
- import "./chunk-ZA7FKGB7.js";
6
+ } from "./chunk-AGOUP5AH.js";
7
+ import "./chunk-7SVHEGRO.js";
8
+ import "./chunk-OWS67HTV.js";
9
9
  import "./chunk-3X4JM3ZR.js";
10
10
  import "./chunk-H3ZN4YLB.js";
11
- import "./chunk-2HPYP3ZT.js";
12
- import "./chunk-S7F4ZDFU.js";
13
- import "./chunk-DVA6MQWK.js";
14
- import "./chunk-O3ZOYXH3.js";
15
- import "./chunk-EBNNONF5.js";
11
+ import "./chunk-I4LXP4HQ.js";
12
+ import "./chunk-6ZQK3L35.js";
13
+ import "./chunk-6GF4TIVM.js";
14
+ import "./chunk-WLKDS65F.js";
15
+ import "./chunk-64JCY7XJ.js";
16
16
  import "./chunk-Y5E2WNWB.js";
17
- import "./chunk-BXTDAGM4.js";
17
+ import "./chunk-4ZW6ZJ2V.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-NIUWQP7F.js";
10
+ import "./chunk-2CBOPOC7.js";
11
+ import "./chunk-ETYAJPIT.js";
12
+ import "./chunk-G4Z4WSIG.js";
13
+ import "./chunk-5WT6SEXS.js";
14
+ import "./chunk-4ISZPK6D.js";
15
+ import "./chunk-VOWEZBOJ.js";
16
+ import "./chunk-IALGFO44.js";
17
+ import "./chunk-MM5NVP7F.js";
18
+ import "./chunk-3X4JM3ZR.js";
19
+ import "./chunk-H3ZN4YLB.js";
20
+ import "./chunk-EKQNL6VJ.js";
21
+ import "./chunk-TQS6ZKC3.js";
22
+ import "./chunk-MICF3K6S.js";
23
+ import "./chunk-PBM5GH7S.js";
24
+ import "./chunk-FWCFEJWD.js";
25
+ import "./chunk-IKG2OPHU.js";
26
+ import "./chunk-MZMJALJT.js";
27
+ import "./chunk-6G53ZFUT.js";
28
+ import "./chunk-M64NVDB4.js";
29
+ import "./chunk-G52Y3KOO.js";
30
+ import "./chunk-I4LXP4HQ.js";
31
+ import "./chunk-6ZQK3L35.js";
32
+ import "./chunk-6GF4TIVM.js";
33
+ import "./chunk-AU5GAMGM.js";
34
+ import "./chunk-KGPD3OCD.js";
35
+ import "./chunk-PKVXZZTM.js";
36
+ import "./chunk-NUQ3N3V3.js";
37
+ import "./chunk-ZVJAZXME.js";
38
+ import "./chunk-OIPJYDLZ.js";
39
+ import "./chunk-XIHQOSCT.js";
40
+ import "./chunk-ZYQEWB6P.js";
41
+ import "./chunk-RYY4YRKQ.js";
42
+ import "./chunk-G7K4J3NS.js";
43
+ import "./chunk-65576OCE.js";
44
+ import "./chunk-IK6KH3RE.js";
45
+ import "./chunk-SW6C6WH5.js";
46
+ import "./chunk-D72URWJE.js";
47
+ import "./chunk-X6XIW76O.js";
48
+ import "./chunk-A36ASW3I.js";
49
+ import "./chunk-WLKDS65F.js";
50
+ import "./chunk-64JCY7XJ.js";
51
+ import "./chunk-Y5E2WNWB.js";
52
+ import "./chunk-4ZW6ZJ2V.js";
53
+ import "./chunk-TM6R3Z45.js";
54
+ import "./chunk-ZVVMGPBJ.js";
55
+ export {
56
+ PER_RUN,
57
+ createServer,
58
+ envelope,
59
+ serveOverHttpUntilStopped,
60
+ serveOverStdio
61
+ };