@wirecat/cli-memo 0.131.32 → 0.131.33

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 (136) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-PFCNICOF.js → all-profiles-I67AQBML.js} +5 -5
  3. package/dist/bundle/{anthropic-QLGMYWVZ.js → anthropic-TAN7BXEI.js} +3 -3
  4. package/dist/bundle/{app-server-QD67I7V2.js → app-server-BB6D3T5A.js} +35 -35
  5. package/dist/bundle/auto-6555QOPH.js +86 -0
  6. package/dist/bundle/{bun-JRTUGKIJ.js → bun-UQEFISW2.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-HCZP2CNO.js → bun-sqlite-2QF3TO47.js} +2 -2
  8. package/dist/bundle/{chunk-HLJ6IUVF.js → chunk-2S5YZCD4.js} +2 -2
  9. package/dist/bundle/{chunk-3G44GDIZ.js → chunk-2Y2UWMJX.js} +5 -5
  10. package/dist/bundle/{chunk-GNY5YLNY.js → chunk-3CVPUL6V.js} +2 -2
  11. package/dist/bundle/{chunk-X3GQJTTF.js → chunk-3DDGDOTM.js} +5 -5
  12. package/dist/bundle/{chunk-XWIRWBB5.js → chunk-3TEBUFO4.js} +1 -1
  13. package/dist/bundle/{chunk-5OYZNBE7.js → chunk-4BDZUM4Z.js} +7 -1
  14. package/dist/bundle/{chunk-NG26I3JV.js → chunk-536BN5HJ.js} +1 -1
  15. package/dist/bundle/{chunk-7AMJFTJM.js → chunk-5DEHFWR4.js} +1 -1
  16. package/dist/bundle/{chunk-X6HXGL5E.js → chunk-5JAYP233.js} +7 -7
  17. package/dist/bundle/{chunk-63JF4E76.js → chunk-5M4CW3PM.js} +330 -247
  18. package/dist/bundle/{chunk-4D6BG353.js → chunk-62H5HS77.js} +6 -6
  19. package/dist/bundle/{chunk-ARVXP2UJ.js → chunk-6MDFXQ3P.js} +258 -258
  20. package/dist/bundle/{chunk-W4GV42D5.js → chunk-7OSMWDV3.js} +2 -2
  21. package/dist/bundle/{chunk-ZHDOELM7.js → chunk-ABORNS53.js} +7 -7
  22. package/dist/bundle/{chunk-CGI5EIIA.js → chunk-AFCZMG3T.js} +20 -20
  23. package/dist/bundle/{chunk-S3FQQRUM.js → chunk-AP3AG2BB.js} +4 -4
  24. package/dist/bundle/{chunk-FGJKBQCP.js → chunk-BFLYYQZ7.js} +3 -3
  25. package/dist/bundle/{chunk-CV5EXF7J.js → chunk-BSPNSDJR.js} +4 -4
  26. package/dist/bundle/{chunk-GKZ65EOY.js → chunk-BT6ZZUXC.js} +54 -54
  27. package/dist/bundle/{chunk-NDJUEFV2.js → chunk-BUYST3RY.js} +1 -1
  28. package/dist/bundle/{chunk-L34KLQIU.js → chunk-DUQGOBGY.js} +9 -9
  29. package/dist/bundle/{chunk-Q2ZIIXA2.js → chunk-EN3D3M3X.js} +2 -2
  30. package/dist/bundle/{chunk-JTSYAO5V.js → chunk-FQ23ENBP.js} +350 -280
  31. package/dist/bundle/{chunk-WGX6AEUP.js → chunk-FZXOHGOA.js} +3 -3
  32. package/dist/bundle/{chunk-RTFU72GD.js → chunk-GUCICZ5E.js} +4 -4
  33. package/dist/bundle/{chunk-RO4YPDGF.js → chunk-HU2UNNN5.js} +1 -1
  34. package/dist/bundle/{chunk-RRDXT63A.js → chunk-IT5OORGL.js} +1 -1
  35. package/dist/bundle/{chunk-K6ZWFP2X.js → chunk-JCFO4LQL.js} +1 -1
  36. package/dist/bundle/{chunk-AZGQ7ABE.js → chunk-JOUN3RQQ.js} +165 -151
  37. package/dist/bundle/{chunk-42I4XE3O.js → chunk-KBSN3KOJ.js} +20 -20
  38. package/dist/bundle/{chunk-A56GDMFH.js → chunk-KJBKP66D.js} +3 -3
  39. package/dist/bundle/{chunk-PG4KORTB.js → chunk-KTGIARY4.js} +1 -1
  40. package/dist/bundle/{chunk-XUMYVRBZ.js → chunk-L5XW7SRP.js} +1 -1
  41. package/dist/bundle/{chunk-H24AL555.js → chunk-LDEPGWLS.js} +27 -27
  42. package/dist/bundle/{chunk-FE2SLKUO.js → chunk-LJZAVL4S.js} +2 -2
  43. package/dist/bundle/{chunk-5JTW3LNF.js → chunk-LUX5CPKS.js} +1 -1
  44. package/dist/bundle/{chunk-2N74ZVI6.js → chunk-MF2IXW4D.js} +1 -1
  45. package/dist/bundle/{chunk-CWHGN6HC.js → chunk-MI6OKBKQ.js} +4 -4
  46. package/dist/bundle/{chunk-7JWW4YEK.js → chunk-MZMKZ3FS.js} +8 -8
  47. package/dist/bundle/{chunk-2XBDA3XF.js → chunk-N75EWKKC.js} +1 -1
  48. package/dist/bundle/{chunk-TFEXCHMC.js → chunk-NAKJLG6G.js} +5 -5
  49. package/dist/bundle/{chunk-REUXOW2O.js → chunk-NOBWIWEE.js} +2 -2
  50. package/dist/bundle/{chunk-7MKROF5R.js → chunk-OGOMIZVL.js} +1 -1
  51. package/dist/bundle/{chunk-5BVGJBZX.js → chunk-P7AWDFQW.js} +1 -1
  52. package/dist/bundle/{chunk-MG2JNBUV.js → chunk-PI5XHH3B.js} +6 -5
  53. package/dist/bundle/{chunk-QWA3MTHH.js → chunk-PVKETTTH.js} +7 -7
  54. package/dist/bundle/{chunk-Q3ZB4JGL.js → chunk-QMK5MB3I.js} +2 -2
  55. package/dist/bundle/{chunk-USMKR34T.js → chunk-R37MXUSP.js} +11 -11
  56. package/dist/bundle/{chunk-HGXTDMKN.js → chunk-RRLIMG4U.js} +85 -32
  57. package/dist/bundle/{chunk-K3CJHSLS.js → chunk-S6HHL43A.js} +1 -1
  58. package/dist/bundle/{chunk-UXA37BVT.js → chunk-SLY3522P.js} +4 -4
  59. package/dist/bundle/{chunk-QUQOKNAX.js → chunk-SN3VTCKM.js} +12 -12
  60. package/dist/bundle/{chunk-CUT72KGN.js → chunk-UMWPJXNA.js} +3 -3
  61. package/dist/bundle/{chunk-K3TUIQZ4.js → chunk-WSSMVWI6.js} +43 -43
  62. package/dist/bundle/{chunk-54DA525P.js → chunk-X5WJDJ7B.js} +14 -9
  63. package/dist/bundle/{chunk-URPBRYVA.js → chunk-YBSILL43.js} +4 -4
  64. package/dist/bundle/{chunk-WP3J2FNH.js → chunk-YGKZOBRU.js} +10 -10
  65. package/dist/bundle/{command-contract-DFXPO5Q7.js → command-contract-LRGVHRDS.js} +11 -11
  66. package/dist/bundle/{decode-7NGILAKQ.js → decode-AC2QFP22.js} +2 -2
  67. package/dist/bundle/{echarts-JERQI2HW.js → echarts-2LGYCSJM.js} +2 -2
  68. package/dist/bundle/{embed-3AO7KZXC.js → embed-5G5NJRTM.js} +3 -3
  69. package/dist/bundle/{embedder-WRQ7TDDB.js → embedder-AWGIIEIK.js} +6 -6
  70. package/dist/bundle/{entry-IBRPU7NO.js → entry-J2G7NST5.js} +4 -4
  71. package/dist/bundle/failure-7SDDOWOC.js +66 -0
  72. package/dist/bundle/{first-run-IJOREEQM.js → first-run-CIE4REGV.js} +5 -5
  73. package/dist/bundle/{first-screen-KYNY6ELY.js → first-screen-PLNL6V5J.js} +12 -12
  74. package/dist/bundle/{instructions-BET2PLGV.js → instructions-5236MVDG.js} +1 -1
  75. package/dist/bundle/{mcp-NUBFFPGF.js → mcp-IRYWZZMF.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-NCSG7QX5.js → node-7746MVI2.js} +2 -2
  78. package/dist/bundle/{node-sqlite-QL4M5RIK.js → node-sqlite-2JD5RF5A.js} +3 -3
  79. package/dist/bundle/{oauth-BGMMED35.js → oauth-BUMW77DB.js} +4 -4
  80. package/dist/bundle/{open-YN3KJMMQ.js → open-CXUGW7QC.js} +2 -2
  81. package/dist/bundle/{openai-CTZUSKUS.js → openai-ORFEPFYD.js} +7 -7
  82. package/dist/bundle/{process-DW237TK4.js → process-JXXYNYHP.js} +1 -1
  83. package/dist/bundle/{program-RAUHPTRG.js → program-4RYVZYD2.js} +89 -67
  84. package/dist/bundle/{prompt-EZCCUYCS.js → prompt-EHLY4L77.js} +2 -2
  85. package/dist/bundle/{recognize-XP3LHQD6.js → recognize-ES7MH57V.js} +1 -1
  86. package/dist/bundle/{remote-RLR5ZKKT.js → remote-EZ76X2VI.js} +4 -4
  87. package/dist/bundle/{rerank-P7LE52AC.js → rerank-CDIZ6AA6.js} +4 -4
  88. package/dist/bundle/{serve-UA7RQDNK.js → serve-YRSGBTJY.js} +6 -6
  89. package/dist/bundle/server-EUYRPM4X.js +48 -0
  90. package/dist/bundle/{server-XM4LNODP.js → server-MW5247KA.js} +50 -50
  91. package/dist/bundle/server-OHIH2CMF.js +61 -0
  92. package/dist/bundle/{state-72Y55LBR.js → state-S6A5VAWR.js} +3 -3
  93. package/dist/bundle/{store-PED4JCBB.js → store-O5CDNS3U.js} +9 -9
  94. package/dist/bundle/store-maintenance-command-3OFVJT4R.js +48 -0
  95. package/dist/bundle/update-RC5CLYFY.js +69 -0
  96. package/dist/examples.d.ts.map +1 -1
  97. package/dist/examples.js +6 -0
  98. package/dist/examples.js.map +1 -1
  99. package/dist/findings-input.d.ts.map +1 -1
  100. package/dist/findings-input.js +13 -3
  101. package/dist/findings-input.js.map +1 -1
  102. package/dist/knowledge/project-actions.d.ts +2 -0
  103. package/dist/knowledge/project-actions.d.ts.map +1 -1
  104. package/dist/mail/review-command.d.ts +4 -3
  105. package/dist/mail/review-command.d.ts.map +1 -1
  106. package/dist/mail/review-command.js +9 -5
  107. package/dist/mail/review-command.js.map +1 -1
  108. package/dist/mcp/permissions.d.ts +1 -1
  109. package/dist/mcp/permissions.d.ts.map +1 -1
  110. package/dist/mcp/permissions.js +1 -0
  111. package/dist/mcp/permissions.js.map +1 -1
  112. package/dist/reasons.d.ts.map +1 -1
  113. package/dist/reasons.js +6 -0
  114. package/dist/reasons.js.map +1 -1
  115. package/dist/tasks/command.d.ts.map +1 -1
  116. package/dist/tasks/command.js +2 -0
  117. package/dist/tasks/command.js.map +1 -1
  118. package/dist/tasks/list.d.ts.map +1 -1
  119. package/dist/tasks/list.js +2 -0
  120. package/dist/tasks/list.js.map +1 -1
  121. package/dist/tasks/tasks.d.ts +4 -0
  122. package/dist/tasks/tasks.d.ts.map +1 -1
  123. package/dist/tasks/tasks.js +2 -0
  124. package/dist/tasks/tasks.js.map +1 -1
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +3 -3
  128. package/skills/cli-memo/topics/mail.md +2 -1
  129. package/skills/mail-triage/SKILL.md +24 -3
  130. package/dist/bundle/auto-PZKJQ3FL.js +0 -86
  131. package/dist/bundle/failure-46JTICYP.js +0 -66
  132. package/dist/bundle/server-N6L3LGQO.js +0 -48
  133. package/dist/bundle/server-XU362INX.js +0 -61
  134. package/dist/bundle/store-maintenance-command-B364Q2O4.js +0 -48
  135. package/dist/bundle/update-IWJYYYRI.js +0 -69
  136. /package/dist/bundle/{chunk-QPPNLE7G.js → chunk-JB5P5WSQ.js} +0 -0
@@ -6,17 +6,17 @@ import {
6
6
  autoState,
7
7
  lastAutoRun,
8
8
  recordAutoRun
9
- } from "./chunk-RTFU72GD.js";
9
+ } from "./chunk-GUCICZ5E.js";
10
10
  import {
11
11
  installer,
12
12
  latest,
13
13
  upgradeCommand
14
- } from "./chunk-X3GQJTTF.js";
14
+ } from "./chunk-3DDGDOTM.js";
15
15
  import {
16
16
  mcpOwnerAllowed,
17
17
  readOnlyAvailability,
18
18
  refuseWritesUnderLock
19
- } from "./chunk-MG2JNBUV.js";
19
+ } from "./chunk-PI5XHH3B.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-CV5EXF7J.js";
29
+ } from "./chunk-BSPNSDJR.js";
30
30
  import {
31
31
  ATTACHMENT_CHARS,
32
32
  DIALECTS,
@@ -55,15 +55,15 @@ import {
55
55
  showMail,
56
56
  unsetConfigKey,
57
57
  updateConfig
58
- } from "./chunk-HGXTDMKN.js";
58
+ } from "./chunk-RRLIMG4U.js";
59
59
  import "./chunk-QP3KNC5D.js";
60
- import "./chunk-W4GV42D5.js";
61
- import "./chunk-QWA3MTHH.js";
62
- import "./chunk-WGX6AEUP.js";
60
+ import "./chunk-7OSMWDV3.js";
61
+ import "./chunk-PVKETTTH.js";
62
+ import "./chunk-FZXOHGOA.js";
63
63
  import {
64
64
  errorObject,
65
65
  recognisable
66
- } from "./chunk-CUT72KGN.js";
66
+ } from "./chunk-UMWPJXNA.js";
67
67
  import {
68
68
  DISCOVERY_DESCRIPTIONS,
69
69
  addContractInfo,
@@ -98,29 +98,29 @@ import {
98
98
  tasksCommand,
99
99
  tasksStatsCommand,
100
100
  withSqliteSidecars
101
- } from "./chunk-63JF4E76.js";
102
- import "./chunk-5BVGJBZX.js";
103
- import "./chunk-5JTW3LNF.js";
101
+ } from "./chunk-5M4CW3PM.js";
102
+ import "./chunk-P7AWDFQW.js";
103
+ import "./chunk-LUX5CPKS.js";
104
104
  import {
105
105
  allHitItem,
106
106
  coverageGaps,
107
107
  messageHitItem,
108
108
  noteHitItem,
109
109
  shownOf
110
- } from "./chunk-CGI5EIIA.js";
111
- import "./chunk-XUMYVRBZ.js";
110
+ } from "./chunk-AFCZMG3T.js";
111
+ import "./chunk-L5XW7SRP.js";
112
112
  import {
113
113
  SKILL_TARGETS,
114
114
  skillCommand,
115
115
  skillPath,
116
116
  skillVersion
117
- } from "./chunk-54DA525P.js";
117
+ } from "./chunk-X5WJDJ7B.js";
118
118
  import {
119
119
  modelGateway,
120
120
  storeInfo,
121
121
  storeSummary
122
- } from "./chunk-K3TUIQZ4.js";
123
- import "./chunk-42I4XE3O.js";
122
+ } from "./chunk-WSSMVWI6.js";
123
+ import "./chunk-KBSN3KOJ.js";
124
124
  import {
125
125
  LIST_QUERY_GUIDE,
126
126
  ORGANIZATIONS_QUERY,
@@ -173,18 +173,18 @@ import {
173
173
  termField,
174
174
  typedQuery,
175
175
  withQuery
176
- } from "./chunk-ARVXP2UJ.js";
176
+ } from "./chunk-6MDFXQ3P.js";
177
177
  import {
178
178
  readBoundedUtf8File,
179
179
  writeFileAtomic
180
- } from "./chunk-QUQOKNAX.js";
180
+ } from "./chunk-SN3VTCKM.js";
181
181
  import {
182
182
  commandsText,
183
183
  inSection,
184
184
  installHelp
185
- } from "./chunk-4D6BG353.js";
185
+ } from "./chunk-62H5HS77.js";
186
186
  import "./chunk-HTQTIKWP.js";
187
- import "./chunk-HLJ6IUVF.js";
187
+ import "./chunk-2S5YZCD4.js";
188
188
  import {
189
189
  Command,
190
190
  FETCH,
@@ -214,22 +214,22 @@ import {
214
214
  runsDirFor,
215
215
  settingRows,
216
216
  settingsFor
217
- } from "./chunk-AZGQ7ABE.js";
218
- import "./chunk-X6HXGL5E.js";
219
- import "./chunk-WP3J2FNH.js";
217
+ } from "./chunk-JOUN3RQQ.js";
218
+ import "./chunk-5JAYP233.js";
219
+ import "./chunk-YGKZOBRU.js";
220
220
  import {
221
221
  isNewer
222
222
  } from "./chunk-I7PL5WX2.js";
223
223
  import "./chunk-YPF6OS37.js";
224
- import "./chunk-A56GDMFH.js";
225
- import "./chunk-L34KLQIU.js";
226
- import "./chunk-NDJUEFV2.js";
227
- import "./chunk-CWHGN6HC.js";
224
+ import "./chunk-KJBKP66D.js";
225
+ import "./chunk-DUQGOBGY.js";
226
+ import "./chunk-BUYST3RY.js";
227
+ import "./chunk-MI6OKBKQ.js";
228
228
  import {
229
229
  releaseLock,
230
230
  takeLock
231
- } from "./chunk-REUXOW2O.js";
232
- import "./chunk-RO4YPDGF.js";
231
+ } from "./chunk-NOBWIWEE.js";
232
+ import "./chunk-HU2UNNN5.js";
233
233
  import {
234
234
  EVIDENCE_FINDINGS_KIND,
235
235
  MAIL_FINDINGS_KIND,
@@ -260,7 +260,7 @@ import {
260
260
  parseReference,
261
261
  providerNamed,
262
262
  refLabel
263
- } from "./chunk-JTSYAO5V.js";
263
+ } from "./chunk-FQ23ENBP.js";
264
264
  import {
265
265
  FACT_STATUSES,
266
266
  FACT_TYPES,
@@ -293,22 +293,22 @@ import {
293
293
  timezoneOf,
294
294
  validateQuery,
295
295
  walkQuery
296
- } from "./chunk-GKZ65EOY.js";
297
- import "./chunk-2XBDA3XF.js";
298
- import "./chunk-ZHDOELM7.js";
299
- import "./chunk-URPBRYVA.js";
300
- import "./chunk-Q2ZIIXA2.js";
301
- import "./chunk-K3CJHSLS.js";
302
- import "./chunk-2N74ZVI6.js";
303
- import "./chunk-7AMJFTJM.js";
304
- import "./chunk-Q3ZB4JGL.js";
305
- import "./chunk-TFEXCHMC.js";
296
+ } from "./chunk-BT6ZZUXC.js";
297
+ import "./chunk-N75EWKKC.js";
298
+ import "./chunk-ABORNS53.js";
299
+ import "./chunk-YBSILL43.js";
300
+ import "./chunk-EN3D3M3X.js";
301
+ import "./chunk-S6HHL43A.js";
302
+ import "./chunk-MF2IXW4D.js";
303
+ import "./chunk-5DEHFWR4.js";
304
+ import "./chunk-QMK5MB3I.js";
305
+ import "./chunk-NAKJLG6G.js";
306
306
  import {
307
307
  sharedModelsDirectory
308
- } from "./chunk-FGJKBQCP.js";
308
+ } from "./chunk-BFLYYQZ7.js";
309
309
  import {
310
310
  storePath
311
- } from "./chunk-RRDXT63A.js";
311
+ } from "./chunk-IT5OORGL.js";
312
312
  import {
313
313
  provideTerminal,
314
314
  terminalOf
@@ -318,12 +318,12 @@ import {
318
318
  REASONS,
319
319
  STORE_CLIENT,
320
320
  VERSION
321
- } from "./chunk-5OYZNBE7.js";
321
+ } from "./chunk-4BDZUM4Z.js";
322
322
  import "./chunk-KV4267S4.js";
323
323
  import "./chunk-LU3WKZBA.js";
324
324
  import "./chunk-D72URWJE.js";
325
- import "./chunk-3G44GDIZ.js";
326
- import "./chunk-NG26I3JV.js";
325
+ import "./chunk-2Y2UWMJX.js";
326
+ import "./chunk-536BN5HJ.js";
327
327
  import {
328
328
  createDeadline,
329
329
  createRenderer,
@@ -362,7 +362,7 @@ import {
362
362
  errorCodes,
363
363
  isCliError
364
364
  } from "./chunk-EB2IULWB.js";
365
- import "./chunk-K6ZWFP2X.js";
365
+ import "./chunk-JCFO4LQL.js";
366
366
  import {
367
367
  __name
368
368
  } from "./chunk-ZVVMGPBJ.js";
@@ -644,7 +644,7 @@ var collect = /* @__PURE__ */ __name((value, previous = []) => [...previous, val
644
644
  var readScope = /* @__PURE__ */ __name((command, help = ONE_ACCOUNT_HELP) => sourceOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "readScope");
645
645
  var writeScope = /* @__PURE__ */ __name((command, help) => writeOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "writeScope");
646
646
 
647
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
647
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
648
648
  var SCORED = "mail_sender_scores";
649
649
  var DAY = 864e5;
650
650
  var RECENT = 2 * 365 * DAY;
@@ -660,7 +660,7 @@ var demotedSenders = /* @__PURE__ */ __name(async (store) => {
660
660
  return senders;
661
661
  }, "demotedSenders");
662
662
 
663
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/mail/sync.js
663
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/mail/sync.js
664
664
  var DAY2 = 864e5;
665
665
  var EDGE = 2 * DAY2;
666
666
 
@@ -1889,7 +1889,7 @@ import { createHash } from "node:crypto";
1889
1889
  import { existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
1890
1890
  import { basename, extname, relative, sep } from "node:path";
1891
1891
 
1892
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1892
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1893
1893
  var Proposal = object({
1894
1894
  kind: picklist(["summary", "digest", "fact", "preference"]),
1895
1895
  body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
@@ -1897,10 +1897,10 @@ var Proposal = object({
1897
1897
  });
1898
1898
  var Proposals = object({ items: pipe(array(Proposal), maxLength(20)) });
1899
1899
 
1900
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1900
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1901
1901
  var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
1902
1902
 
1903
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1903
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1904
1904
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
1905
1905
 
1906
1906
  // dist/notes/links.js
@@ -4207,6 +4207,10 @@ var EXAMPLES = {
4207
4207
  "memo messages acknowledge --holder mail-triage --cursor 9123.1762090000000 --source email:me@example.com --json",
4208
4208
  "memo messages acknowledge --holder backfill --cursor 870.1762090000000 --source email:personal"
4209
4209
  ],
4210
+ "messages reset": [
4211
+ "memo messages reset --holder mail-triage --last 8 --dry-run --source email:me@example.com",
4212
+ "memo messages reset --holder mail-triage --since-time 2026-11-04T00:00:00Z --source email:work --json"
4213
+ ],
4210
4214
  "mail findings add": [
4211
4215
  "memo mail findings add findings.json --source email:work",
4212
4216
  `memo mail findings add '{"schema_version":1,"key":"mail-triage:9123","extractor":"mail-triage/1","findings":[\u2026]}' --source email:me@example.com --json`,
@@ -4254,7 +4258,8 @@ var EXAMPLES = {
4254
4258
  "tasks status": ["memo tasks status HRB-2"],
4255
4259
  "tasks add": [
4256
4260
  "memo tasks add 'msg:telegram/1/77/42' --account telegram:1 --type request",
4257
- "memo tasks add --project HRB --title 'Draft the budget' --type feature"
4261
+ "memo tasks add --project HRB --title 'Draft the budget' --type feature",
4262
+ "memo tasks add --project INBOX --title 'Reply on Avito to Ivan' --external-id avito:4512345678 --source-url https://www.avito.ru/4512345678"
4258
4263
  ],
4259
4264
  "tasks list": [
4260
4265
  "memo tasks list state:done --source telegram:1",
@@ -4998,12 +5003,22 @@ var orderCommands = /* @__PURE__ */ __name((program, streams, env) => {
4998
5003
  }, "orderCommands");
4999
5004
 
5000
5005
  // dist/findings-input.js
5001
- import { createReadStream } from "node:fs";
5006
+ import { createReadStream, statSync as statSync2 } from "node:fs";
5002
5007
  var FINDINGS_INPUT_HELP = "the findings JSON itself (starts with {), a JSON file, or - for stdin; at most 65536 UTF-8 bytes";
5003
5008
  var readFindingsInput = /* @__PURE__ */ __name((input, stdin) => {
5004
5009
  if (input.trimStart().startsWith("{"))
5005
5010
  return Promise.resolve(input);
5006
- return readBatchInput(input === "-" ? stdin : createReadStream(input));
5011
+ if (input === "-")
5012
+ return readBatchInput(stdin);
5013
+ const file = statSync2(input, { throwIfNoEntry: false });
5014
+ if (!file)
5015
+ throw new CliError("not_found", `no findings file ${input}: give the JSON itself, a file that exists, or -`, {
5016
+ reason: "findings.file-missing",
5017
+ path: input
5018
+ });
5019
+ if (!file.isFile())
5020
+ throw new CliError("validation_error", `${input} is not a file`, { path: input });
5021
+ return readBatchInput(createReadStream(input));
5007
5022
  }, "readFindingsInput");
5008
5023
 
5009
5024
  // dist/findings/command.js
@@ -5441,7 +5456,7 @@ var projectContextText = /* @__PURE__ */ __name((context) => {
5441
5456
 
5442
5457
  // dist/knowledge/messenger-sync.js
5443
5458
  import { spawn } from "node:child_process";
5444
- import { existsSync as existsSync4, readdirSync as readdirSync2, readFileSync as readFileSync5, realpathSync, statSync as statSync2 } from "node:fs";
5459
+ import { existsSync as existsSync4, readdirSync as readdirSync2, readFileSync as readFileSync5, realpathSync, statSync as statSync3 } from "node:fs";
5445
5460
  import { delimiter, join as join4 } from "node:path";
5446
5461
  var STATE = {
5447
5462
  tg: { appName: "tg-cli", envPrefix: "TG" },
@@ -5495,7 +5510,7 @@ var profileFor = /* @__PURE__ */ __name((provider, account2, env, chosen = {}) =
5495
5510
  }, "profileFor");
5496
5511
  var onPath = /* @__PURE__ */ __name((name, env) => (env.PATH ?? "").split(delimiter).filter(Boolean).map((dir) => join4(dir, name)).find((path) => {
5497
5512
  try {
5498
- return statSync2(path).isFile();
5513
+ return statSync3(path).isFile();
5499
5514
  } catch {
5500
5515
  return false;
5501
5516
  }
@@ -5549,7 +5564,7 @@ var binaryOf = /* @__PURE__ */ __name(async (provider, env, run) => {
5549
5564
  const real = realpathSync(short);
5550
5565
  if (real.includes(`/${mark}/`))
5551
5566
  return short;
5552
- return statSync2(real).size < 65536 && readFileSync5(real, "utf8").includes(mark) ? short : void 0;
5567
+ return statSync3(real).size < 65536 && readFileSync5(real, "utf8").includes(mark) ? short : void 0;
5553
5568
  }, "binaryOf");
5554
5569
  var answerOf = /* @__PURE__ */ __name((stdout) => {
5555
5570
  try {
@@ -6233,13 +6248,16 @@ var mailReviewCommands = /* @__PURE__ */ __name((mail, messages, env) => {
6233
6248
  };
6234
6249
  const shared = mailReadCommands(reads);
6235
6250
  const review = named2(shared, "review");
6236
- const acknowledge = named2(named2(shared, "messages").commands, "acknowledge");
6237
- for (const command of [review, acknowledge])
6251
+ const sharedMessages = named2(shared, "messages").commands;
6252
+ const acknowledge = named2(sharedMessages, "acknowledge");
6253
+ const reset = named2(sharedMessages, "reset");
6254
+ for (const command of [review, acknowledge, reset])
6238
6255
  overrideSharedContract(command, "memo holds several mailboxes and no profile, so --source names the one mailbox; its --json is per command.", (one2) => {
6239
6256
  one2.option("--source <accounts>", MAILBOX_HELP).option("--json", "print JSON; --json=id,title keeps only those fields");
6240
6257
  });
6241
6258
  mail.addCommand(review);
6242
6259
  messages.addCommand(acknowledge);
6260
+ messages.addCommand(reset);
6243
6261
  }, "mailReviewCommands");
6244
6262
 
6245
6263
  // dist/mail/findings-command.js
@@ -6419,10 +6437,10 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6419
6437
  }).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) => {
6420
6438
  if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
6421
6439
  throw new CliError("validation_error", "--port and --public-url require --http");
6422
- const { createMemoServer } = await import("./server-XM4LNODP.js");
6440
+ const { createMemoServer } = await import("./server-MW5247KA.js");
6423
6441
  const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
6424
6442
  if (options.http) {
6425
- const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-NUBFFPGF.js");
6443
+ const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-IRYWZZMF.js");
6426
6444
  const publicUrl = publicUrlOf(options.publicUrl, {
6427
6445
  missing: "--http",
6428
6446
  reaches: "the browser apps reach memo",
@@ -6474,7 +6492,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6474
6492
  });
6475
6493
  });
6476
6494
  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() {
6477
- const { revokeAll } = await import("./mcp-NUBFFPGF.js");
6495
+ const { revokeAll } = await import("./mcp-IRYWZZMF.js");
6478
6496
  revokeAll(httpTokenFile(env));
6479
6497
  out.print(this.opts().json, itemAnswer({ revoked: true }));
6480
6498
  });
@@ -7095,7 +7113,7 @@ var notesCommand = /* @__PURE__ */ __name((...args) => {
7095
7113
  }, "notesCommand");
7096
7114
 
7097
7115
  // dist/notes/folders-command.js
7098
- import { statSync as statSync3 } from "node:fs";
7116
+ import { statSync as statSync4 } from "node:fs";
7099
7117
  import { basename as basename2, resolve as resolve4 } from "node:path";
7100
7118
  var formatOf2 = /* @__PURE__ */ __name((value) => {
7101
7119
  if (!DIALECTS.includes(value))
@@ -7106,7 +7124,7 @@ var directory = /* @__PURE__ */ __name((path) => {
7106
7124
  const at = resolve4(path);
7107
7125
  let isDirectory = false;
7108
7126
  try {
7109
- isDirectory = statSync3(at).isDirectory();
7127
+ isDirectory = statSync4(at).isDirectory();
7110
7128
  } catch {
7111
7129
  }
7112
7130
  if (!isDirectory)
@@ -8274,6 +8292,8 @@ var taskItem = /* @__PURE__ */ __name((task, extra = {}) => {
8274
8292
  })
8275
8293
  } : {},
8276
8294
  source_message: task.source,
8295
+ external_id: task.externalId,
8296
+ source_url: task.sourceUrl,
8277
8297
  priority: task.priority,
8278
8298
  priority_label: task.priorityLabel,
8279
8299
  agent: task.agent,
@@ -8468,7 +8488,9 @@ var fieldsOf2 = /* @__PURE__ */ __name((options) => ({
8468
8488
  ...options.title === void 0 ? {} : { title: options.title },
8469
8489
  ...options.priority === void 0 ? {} : { priority: options.priority },
8470
8490
  ...options.parent === void 0 ? {} : { parent: options.parent },
8471
- ...options.description === void 0 ? {} : { description: options.description }
8491
+ ...options.description === void 0 ? {} : { description: options.description },
8492
+ ...options.externalId === void 0 ? {} : { externalId: options.externalId },
8493
+ ...options.sourceUrl === void 0 ? {} : { sourceUrl: options.sourceUrl }
8472
8494
  }), "fieldsOf");
8473
8495
  var assignAll = /* @__PURE__ */ __name(async (store, env, id, people) => {
8474
8496
  for (const person of people ?? [])
@@ -8618,7 +8640,7 @@ var tasksCommand2 = /* @__PURE__ */ __name((program, streams, env) => {
8618
8640
  taskRelationsCommand(group, streams, env);
8619
8641
  const { print } = answers(program, streams, env);
8620
8642
  const warn = /* @__PURE__ */ __name((text2) => streams.diagnostic(text2), "warn");
8621
- fieldOptions(writeScope(annotate(group.command("add"), { effects: LOCAL_WRITE }))).description("add a task from a message, note or document, or one of your own in a project").argument("[source]", "msg: source locator, note:<id> or document:<id>; leave out for a task in a project").option("--type <type>", "question, request (default), mention or promise from a source; bug, feature or chore (default) in a project", oneOf(TASK_TYPES)).option("--project <project>", "a task without a source: the project's key or project:<id>").option("--assignee <person...>", "who does it: a person's UID").option("--due <time>", "a project task: when it must be done, an ISO 8601 time or 2h, 3d from now", dateOrNone("--due")).option("--status <state>", `a project task: its state from the start, ${TASK_STATES.join(", ")}`, oneOf(TASK_STATES)).option("--agent <agent>", "a project task: the agent working on it, apart from its assignees").option("--into <id>", "link the source to this task instead of opening one that may be the same job").option("--new", "open the task even when one like it is open or was closed in the last 14 days").action(async (source, options) => {
8643
+ fieldOptions(writeScope(annotate(group.command("add"), { effects: LOCAL_WRITE }))).description("add a task from a message, note or document, or one of your own in a project").argument("[source]", "msg: source locator, note:<id> or document:<id>; leave out for a task in a project").option("--type <type>", "question, request (default), mention or promise from a source; bug, feature or chore (default) in a project", oneOf(TASK_TYPES)).option("--project <project>", "a task without a source: the project's key or project:<id>").option("--assignee <person...>", "who does it: a person's UID").option("--due <time>", "a project task: when it must be done, an ISO 8601 time or 2h, 3d from now", dateOrNone("--due")).option("--status <state>", `a project task: its state from the start, ${TASK_STATES.join(", ")}`, oneOf(TASK_STATES)).option("--agent <agent>", "a project task: the agent working on it, apart from its assignees").option("--external-id <service:id>", "its id in an outside service, such as avito:4512345678 for an Avito chat").option("--source-url <url>", "the http or https page it is about, such as the Avito ad or conversation").option("--into <id>", "link the source to this task instead of opening one that may be the same job").option("--new", "open the task even when one like it is open or was closed in the last 14 days").action(async (source, options) => {
8622
8644
  await withStore(env, async (store) => {
8623
8645
  const scope = await scopeOf(store, env, options, warn);
8624
8646
  print(options.json, itemAnswer(await addTask(store, env, source, { ...options, ...scope })));
@@ -2,8 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  readSecret
5
- } from "./chunk-Q2ZIIXA2.js";
6
- import "./chunk-K3CJHSLS.js";
5
+ } from "./chunk-EN3D3M3X.js";
6
+ import "./chunk-S6HHL43A.js";
7
7
  import "./chunk-TZ7WDQPD.js";
8
8
  import "./chunk-G2BB5WY5.js";
9
9
  import "./chunk-Y5E2WNWB.js";
@@ -8,7 +8,7 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-WGX6AEUP.js";
11
+ } from "./chunk-FZXOHGOA.js";
12
12
  import "./chunk-TZ7WDQPD.js";
13
13
  import "./chunk-G2BB5WY5.js";
14
14
  import "./chunk-Y5E2WNWB.js";
@@ -8,10 +8,10 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-Q3ZB4JGL.js";
12
- import "./chunk-TFEXCHMC.js";
13
- import "./chunk-FGJKBQCP.js";
14
- import "./chunk-RRDXT63A.js";
11
+ } from "./chunk-QMK5MB3I.js";
12
+ import "./chunk-NAKJLG6G.js";
13
+ import "./chunk-BFLYYQZ7.js";
14
+ import "./chunk-IT5OORGL.js";
15
15
  import "./chunk-TZ7WDQPD.js";
16
16
  import "./chunk-G2BB5WY5.js";
17
17
  import "./chunk-Y5E2WNWB.js";
@@ -4,9 +4,9 @@ import {
4
4
  defaultThreads,
5
5
  loadModel,
6
6
  truncated
7
- } from "./chunk-TFEXCHMC.js";
8
- import "./chunk-FGJKBQCP.js";
9
- import "./chunk-RRDXT63A.js";
7
+ } from "./chunk-NAKJLG6G.js";
8
+ import "./chunk-BFLYYQZ7.js";
9
+ import "./chunk-IT5OORGL.js";
10
10
  import "./chunk-TZ7WDQPD.js";
11
11
  import "./chunk-G2BB5WY5.js";
12
12
  import "./chunk-Y5E2WNWB.js";
@@ -15,7 +15,7 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/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,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  MCP_PATH,
5
5
  serveOverHttp
6
- } from "./chunk-S3FQQRUM.js";
7
- import "./chunk-5JTW3LNF.js";
8
- import "./chunk-GNY5YLNY.js";
6
+ } from "./chunk-AP3AG2BB.js";
7
+ import "./chunk-LUX5CPKS.js";
8
+ import "./chunk-3CVPUL6V.js";
9
9
  import "./chunk-3X4JM3ZR.js";
10
10
  import "./chunk-H3ZN4YLB.js";
11
- import "./chunk-CWHGN6HC.js";
12
- import "./chunk-REUXOW2O.js";
13
- import "./chunk-RO4YPDGF.js";
11
+ import "./chunk-MI6OKBKQ.js";
12
+ import "./chunk-NOBWIWEE.js";
13
+ import "./chunk-HU2UNNN5.js";
14
14
  import "./chunk-TZ7WDQPD.js";
15
15
  import "./chunk-G2BB5WY5.js";
16
16
  import "./chunk-Y5E2WNWB.js";
@@ -0,0 +1,48 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ createBotServer,
5
+ serveBotOverStdio
6
+ } from "./chunk-MZMKZ3FS.js";
7
+ import "./chunk-P7AWDFQW.js";
8
+ import "./chunk-R37MXUSP.js";
9
+ import "./chunk-X5WJDJ7B.js";
10
+ import "./chunk-LJZAVL4S.js";
11
+ import "./chunk-MM5NVP7F.js";
12
+ import "./chunk-3X4JM3ZR.js";
13
+ import "./chunk-H3ZN4YLB.js";
14
+ import "./chunk-6MDFXQ3P.js";
15
+ import "./chunk-SN3VTCKM.js";
16
+ import "./chunk-JOUN3RQQ.js";
17
+ import "./chunk-5JAYP233.js";
18
+ import "./chunk-I7PL5WX2.js";
19
+ import "./chunk-YPF6OS37.js";
20
+ import "./chunk-KJBKP66D.js";
21
+ import "./chunk-BUYST3RY.js";
22
+ import "./chunk-HU2UNNN5.js";
23
+ import "./chunk-FQ23ENBP.js";
24
+ import "./chunk-BT6ZZUXC.js";
25
+ import "./chunk-N75EWKKC.js";
26
+ import "./chunk-ABORNS53.js";
27
+ import "./chunk-YBSILL43.js";
28
+ import "./chunk-S6HHL43A.js";
29
+ import "./chunk-5DEHFWR4.js";
30
+ import "./chunk-QMK5MB3I.js";
31
+ import "./chunk-NAKJLG6G.js";
32
+ import "./chunk-BFLYYQZ7.js";
33
+ import "./chunk-IT5OORGL.js";
34
+ import "./chunk-KV4267S4.js";
35
+ import "./chunk-LU3WKZBA.js";
36
+ import "./chunk-D72URWJE.js";
37
+ import "./chunk-2Y2UWMJX.js";
38
+ import "./chunk-536BN5HJ.js";
39
+ import "./chunk-TZ7WDQPD.js";
40
+ import "./chunk-G2BB5WY5.js";
41
+ import "./chunk-Y5E2WNWB.js";
42
+ import "./chunk-EB2IULWB.js";
43
+ import "./chunk-JCFO4LQL.js";
44
+ import "./chunk-ZVVMGPBJ.js";
45
+ export {
46
+ createBotServer,
47
+ serveBotOverStdio
48
+ };