@wirecat/cli-memo 0.131.35 → 0.131.37

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 (120) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-6666YYUZ.js → all-profiles-W26PFZ2J.js} +5 -5
  3. package/dist/bundle/{anthropic-23OB7KWO.js → anthropic-SY6QPTQW.js} +3 -3
  4. package/dist/bundle/{app-server-2S5OS3OH.js → app-server-WUXDTYU4.js} +35 -35
  5. package/dist/bundle/auto-U76QA2DW.js +86 -0
  6. package/dist/bundle/{bun-BNVO37ZD.js → bun-O3KE32D7.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-USZ27VKM.js → bun-sqlite-5X2NBSLA.js} +2 -2
  8. package/dist/bundle/{chunk-EIYLAELT.js → chunk-2EDP7PDR.js} +259 -259
  9. package/dist/bundle/{chunk-ME5RGIHV.js → chunk-2IST54UV.js} +9 -9
  10. package/dist/bundle/{chunk-GLFFCRRX.js → chunk-2Q4DYGNU.js} +2 -2
  11. package/dist/bundle/{chunk-BU4LJSW2.js → chunk-32WLB6I3.js} +1 -1
  12. package/dist/bundle/{chunk-NYELWBUA.js → chunk-374FSLTB.js} +5 -5
  13. package/dist/bundle/{chunk-DYMUJFDK.js → chunk-3G63U4VK.js} +13 -9
  14. package/dist/bundle/{chunk-736NNFPY.js → chunk-43CMY3YD.js} +1 -1
  15. package/dist/bundle/{chunk-DMU5PAKY.js → chunk-4AXSD77N.js} +1 -1
  16. package/dist/bundle/{chunk-WIK6SGHZ.js → chunk-4CADISNA.js} +1 -1
  17. package/dist/bundle/{chunk-3ZZ5OCUO.js → chunk-4CD37FZU.js} +5 -5
  18. package/dist/bundle/{chunk-N2Y6FTPK.js → chunk-4NJQJZRO.js} +1 -1
  19. package/dist/bundle/{chunk-XLKJSFQN.js → chunk-4OF64T67.js} +1 -1
  20. package/dist/bundle/{chunk-6D47X4KD.js → chunk-5EBYGKZB.js} +1 -1
  21. package/dist/bundle/{chunk-FYT6A3UY.js → chunk-5J5RTJUJ.js} +1 -1
  22. package/dist/bundle/chunk-5ZKNRR6O.js +7592 -0
  23. package/dist/bundle/{chunk-V5N65VRU.js → chunk-75QQ7MLH.js} +8 -8
  24. package/dist/bundle/{chunk-4OR4HFSL.js → chunk-7P3PM3OL.js} +7 -7
  25. package/dist/bundle/{chunk-26PVWAKE.js → chunk-AJ4SVCBD.js} +269 -251
  26. package/dist/bundle/{chunk-SRHG24V7.js → chunk-AOFYLQK2.js} +2 -2
  27. package/dist/bundle/{chunk-OCIE3POS.js → chunk-B4LT2DHH.js} +4 -4
  28. package/dist/bundle/{chunk-XZPE2E3O.js → chunk-CEENCS5P.js} +6 -6
  29. package/dist/bundle/{chunk-GAWGZN4F.js → chunk-CEOXSWU3.js} +2 -2
  30. package/dist/bundle/{chunk-I55VXEI2.js → chunk-CVCL77DZ.js} +4 -4
  31. package/dist/bundle/{chunk-RUZOQ7QN.js → chunk-CXWKBOKQ.js} +3 -3
  32. package/dist/bundle/{chunk-L3SMTWCF.js → chunk-DHGQTARJ.js} +4 -4
  33. package/dist/bundle/{chunk-LQHW4G6G.js → chunk-DZA5OWKD.js} +5 -5
  34. package/dist/bundle/{chunk-URQ7ZL5K.js → chunk-F4BXYTIW.js} +7 -7
  35. package/dist/bundle/{chunk-VJSWU4JX.js → chunk-FOQBIEL5.js} +1 -1
  36. package/dist/bundle/{chunk-YGW3JZVB.js → chunk-GXCXOITM.js} +20 -20
  37. package/dist/bundle/{chunk-JIWQNA2J.js → chunk-J7FP7PRV.js} +160 -151
  38. package/dist/bundle/{chunk-GNLCVNP7.js → chunk-JT36R23P.js} +7 -7
  39. package/dist/bundle/{chunk-2PFOLWD3.js → chunk-K3GMQLFM.js} +2 -2
  40. package/dist/bundle/{chunk-ICBWD2OL.js → chunk-L2M3LTQQ.js} +1 -1
  41. package/dist/bundle/{chunk-VYYPW7YP.js → chunk-LV6FBPUQ.js} +11 -11
  42. package/dist/bundle/{chunk-6H6EXCZY.js → chunk-O762IE2F.js} +1 -1
  43. package/dist/bundle/{chunk-T3AUEF46.js → chunk-QM5CNTGT.js} +20 -20
  44. package/dist/bundle/{chunk-BHDNHN55.js → chunk-QMY4EZ6B.js} +5 -5
  45. package/dist/bundle/{chunk-2Y4UU4DB.js → chunk-QP7BTVMT.js} +2 -2
  46. package/dist/bundle/{chunk-DMUIMBCE.js → chunk-QTLYWZXB.js} +3 -3
  47. package/dist/bundle/{chunk-WRUD4OYQ.js → chunk-RBCI432I.js} +3 -3
  48. package/dist/bundle/{chunk-FXG3SUIQ.js → chunk-S2K3FWLA.js} +12 -12
  49. package/dist/bundle/{chunk-DCBBLYCI.js → chunk-S5KSC4B3.js} +27 -27
  50. package/dist/bundle/{chunk-LBDMVVVW.js → chunk-SDIKN2OR.js} +10 -10
  51. package/dist/bundle/{chunk-DQ66H456.js → chunk-SSQDA7X6.js} +4 -4
  52. package/dist/bundle/{chunk-L7AB7Y4Z.js → chunk-TJNW4L7P.js} +43 -43
  53. package/dist/bundle/{chunk-C2XCIZND.js → chunk-TJXVMLK4.js} +1 -1
  54. package/dist/bundle/{chunk-SKVRUW57.js → chunk-TXJYVD5U.js} +1 -1
  55. package/dist/bundle/{chunk-SKBMXSQ3.js → chunk-UOJWRYVD.js} +7 -1
  56. package/dist/bundle/{chunk-CLHGYKYZ.js → chunk-UUD4QHAN.js} +4 -4
  57. package/dist/bundle/{chunk-MMRM6ZMM.js → chunk-UWJ3RJF4.js} +2 -2
  58. package/dist/bundle/{chunk-VMXESPNG.js → chunk-VHYJIRK7.js} +4 -4
  59. package/dist/bundle/{chunk-PYQU4GLK.js → chunk-WRZP6DJT.js} +71 -57
  60. package/dist/bundle/{chunk-AYIUZUGD.js → chunk-WVXTZWH3.js} +1 -1
  61. package/dist/bundle/{chunk-IKDHJLSH.js → chunk-XCAGVFRC.js} +10404 -375
  62. package/dist/bundle/{chunk-2DTUMEN2.js → chunk-XLUOKHFN.js} +3 -3
  63. package/dist/bundle/{chunk-SMJAJWYW.js → chunk-ZMZVRVCK.js} +2 -2
  64. package/dist/bundle/{chunk-MNKCFCI7.js → chunk-ZP7F76D3.js} +1 -1
  65. package/dist/bundle/{command-contract-TBZCPYWZ.js → command-contract-FRRW2Z4S.js} +11 -11
  66. package/dist/bundle/{decode-RMAOEVTY.js → decode-RVPTVZ3W.js} +2 -2
  67. package/dist/bundle/{echarts-R2MI4OEU.js → echarts-CW6DTALT.js} +2 -2
  68. package/dist/bundle/{embed-BG2XPLWM.js → embed-VXWYSZ7X.js} +3 -3
  69. package/dist/bundle/{embedder-65SA34CZ.js → embedder-QX3GSPBN.js} +6 -6
  70. package/dist/bundle/{entry-DX3D4TWF.js → entry-LBDVYMDG.js} +4 -4
  71. package/dist/bundle/failure-NMC4BQ2P.js +66 -0
  72. package/dist/bundle/{first-run-ZUQRYWEZ.js → first-run-VPR5YFMD.js} +5 -5
  73. package/dist/bundle/{first-screen-O5X3OT77.js → first-screen-WRKQ4GAM.js} +12 -12
  74. package/dist/bundle/{instructions-ZDWGTLMU.js → instructions-2XLUHPQH.js} +1 -1
  75. package/dist/bundle/{mcp-B5CUHAKS.js → mcp-RD54TNKO.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-43BSSPFC.js → node-AQ7O3PGH.js} +2 -2
  78. package/dist/bundle/{node-sqlite-RPWFR6H3.js → node-sqlite-RKDBK624.js} +3 -3
  79. package/dist/bundle/{oauth-AYAADVSS.js → oauth-ZQCL2HPA.js} +4 -4
  80. package/dist/bundle/{open-XEZ5CPLR.js → open-ME6M3BWL.js} +2 -2
  81. package/dist/bundle/{openai-SQS7OBEI.js → openai-PHW5QKNC.js} +7 -7
  82. package/dist/bundle/{process-HJWMNCUC.js → process-4HJLMEHS.js} +1 -1
  83. package/dist/bundle/{program-RQO3ZNVL.js → program-GVEBIXZL.js} +111 -69
  84. package/dist/bundle/{prompt-STQZGLH7.js → prompt-U5JMQJPC.js} +2 -2
  85. package/dist/bundle/{recognize-HJ6G4OWB.js → recognize-OYKFXOLL.js} +1 -1
  86. package/dist/bundle/{remote-HDTQYFBP.js → remote-IXABNXVH.js} +4 -4
  87. package/dist/bundle/{rerank-GBKN7RN4.js → rerank-6ASLHI5I.js} +4 -4
  88. package/dist/bundle/{serve-KPTYHWUY.js → serve-ZYQO2Z23.js} +6 -6
  89. package/dist/bundle/server-BMXFJO2T.js +61 -0
  90. package/dist/bundle/{server-ASCI46TB.js → server-DMU7GDV2.js} +50 -50
  91. package/dist/bundle/server-V7JU6YLA.js +48 -0
  92. package/dist/bundle/{state-22MNHAQY.js → state-5W7BQVQO.js} +3 -3
  93. package/dist/bundle/{store-R7QBCWWM.js → store-6WW7XV2O.js} +9 -9
  94. package/dist/bundle/store-maintenance-command-YPNP663U.js +48 -0
  95. package/dist/bundle/update-GLX3YE67.js +69 -0
  96. package/dist/examples.js +1 -1
  97. package/dist/examples.js.map +1 -1
  98. package/dist/mail/findings-command.d.ts +1 -1
  99. package/dist/mail/findings-command.d.ts.map +1 -1
  100. package/dist/mail/findings-command.js +58 -12
  101. package/dist/mail/findings-command.js.map +1 -1
  102. package/dist/mail/review-command.d.ts.map +1 -1
  103. package/dist/mail/review-command.js +1 -0
  104. package/dist/mail/review-command.js.map +1 -1
  105. package/dist/reasons.d.ts.map +1 -1
  106. package/dist/reasons.js +6 -0
  107. package/dist/reasons.js.map +1 -1
  108. package/dist/version.d.ts +1 -1
  109. package/dist/version.js +1 -1
  110. package/package.json +2 -2
  111. package/skills/cli-memo/topics/mail.md +2 -1
  112. package/skills/mail-triage/SKILL.md +66 -24
  113. package/dist/bundle/auto-XDBIEURD.js +0 -86
  114. package/dist/bundle/chunk-CMMKWXFG.js +0 -17421
  115. package/dist/bundle/failure-76A5ZD6Y.js +0 -66
  116. package/dist/bundle/server-DJVWUOO7.js +0 -61
  117. package/dist/bundle/server-TEOK5SHM.js +0 -48
  118. package/dist/bundle/store-maintenance-command-BZXFY2NT.js +0 -48
  119. package/dist/bundle/update-I5HTAMBY.js +0 -69
  120. /package/dist/bundle/{chunk-QMNLI4NV.js → chunk-FEJOKQPV.js} +0 -0
@@ -6,17 +6,17 @@ import {
6
6
  autoState,
7
7
  lastAutoRun,
8
8
  recordAutoRun
9
- } from "./chunk-L3SMTWCF.js";
9
+ } from "./chunk-DHGQTARJ.js";
10
10
  import {
11
11
  installer,
12
12
  latest,
13
13
  upgradeCommand
14
- } from "./chunk-BHDNHN55.js";
14
+ } from "./chunk-QMY4EZ6B.js";
15
15
  import {
16
16
  mcpOwnerAllowed,
17
17
  readOnlyAvailability,
18
18
  refuseWritesUnderLock
19
- } from "./chunk-LQHW4G6G.js";
19
+ } from "./chunk-DZA5OWKD.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-VMXESPNG.js";
29
+ } from "./chunk-VHYJIRK7.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-CMMKWXFG.js";
58
+ } from "./chunk-5ZKNRR6O.js";
59
59
  import "./chunk-QP3KNC5D.js";
60
- import "./chunk-2PFOLWD3.js";
61
- import "./chunk-URQ7ZL5K.js";
62
- import "./chunk-RUZOQ7QN.js";
60
+ import "./chunk-K3GMQLFM.js";
61
+ import "./chunk-F4BXYTIW.js";
62
+ import "./chunk-CXWKBOKQ.js";
63
63
  import {
64
64
  errorObject,
65
65
  recognisable
66
- } from "./chunk-WRUD4OYQ.js";
66
+ } from "./chunk-RBCI432I.js";
67
67
  import {
68
68
  DISCOVERY_DESCRIPTIONS,
69
69
  addContractInfo,
@@ -90,6 +90,7 @@ import {
90
90
  projectStatusSchema,
91
91
  projectStatusText,
92
92
  projectWindowOf,
93
+ readMailFindingsJson,
93
94
  recordRuns,
94
95
  runsCommand,
95
96
  scheduleCommandFor,
@@ -98,29 +99,29 @@ import {
98
99
  tasksCommand,
99
100
  tasksStatsCommand,
100
101
  withSqliteSidecars
101
- } from "./chunk-26PVWAKE.js";
102
- import "./chunk-736NNFPY.js";
103
- import "./chunk-6H6EXCZY.js";
102
+ } from "./chunk-AJ4SVCBD.js";
103
+ import "./chunk-43CMY3YD.js";
104
+ import "./chunk-O762IE2F.js";
104
105
  import {
105
106
  allHitItem,
106
107
  coverageGaps,
107
108
  messageHitItem,
108
109
  noteHitItem,
109
110
  shownOf
110
- } from "./chunk-T3AUEF46.js";
111
- import "./chunk-SKVRUW57.js";
111
+ } from "./chunk-QM5CNTGT.js";
112
+ import "./chunk-TXJYVD5U.js";
112
113
  import {
113
114
  SKILL_TARGETS,
114
115
  skillCommand,
115
116
  skillPath,
116
117
  skillVersion
117
- } from "./chunk-DYMUJFDK.js";
118
+ } from "./chunk-3G63U4VK.js";
118
119
  import {
119
120
  modelGateway,
120
121
  storeInfo,
121
122
  storeSummary
122
- } from "./chunk-L7AB7Y4Z.js";
123
- import "./chunk-YGW3JZVB.js";
123
+ } from "./chunk-TJNW4L7P.js";
124
+ import "./chunk-GXCXOITM.js";
124
125
  import {
125
126
  LIST_QUERY_GUIDE,
126
127
  ORGANIZATIONS_QUERY,
@@ -174,18 +175,18 @@ import {
174
175
  termField,
175
176
  typedQuery,
176
177
  withQuery
177
- } from "./chunk-EIYLAELT.js";
178
+ } from "./chunk-2EDP7PDR.js";
178
179
  import {
179
180
  readBoundedUtf8File,
180
181
  writeFileAtomic
181
- } from "./chunk-FXG3SUIQ.js";
182
+ } from "./chunk-S2K3FWLA.js";
182
183
  import {
183
184
  commandsText,
184
185
  inSection,
185
186
  installHelp
186
- } from "./chunk-XZPE2E3O.js";
187
+ } from "./chunk-CEENCS5P.js";
187
188
  import "./chunk-HTQTIKWP.js";
188
- import "./chunk-SRHG24V7.js";
189
+ import "./chunk-AOFYLQK2.js";
189
190
  import {
190
191
  Command,
191
192
  FETCH,
@@ -215,22 +216,22 @@ import {
215
216
  runsDirFor,
216
217
  settingRows,
217
218
  settingsFor
218
- } from "./chunk-JIWQNA2J.js";
219
- import "./chunk-GNLCVNP7.js";
220
- import "./chunk-LBDMVVVW.js";
219
+ } from "./chunk-J7FP7PRV.js";
220
+ import "./chunk-JT36R23P.js";
221
+ import "./chunk-SDIKN2OR.js";
221
222
  import {
222
223
  isNewer
223
224
  } from "./chunk-JY34MQW4.js";
224
225
  import "./chunk-LER7G4XY.js";
225
- import "./chunk-2DTUMEN2.js";
226
- import "./chunk-ME5RGIHV.js";
227
- import "./chunk-N2Y6FTPK.js";
228
- import "./chunk-DQ66H456.js";
226
+ import "./chunk-XLUOKHFN.js";
227
+ import "./chunk-2IST54UV.js";
228
+ import "./chunk-4NJQJZRO.js";
229
+ import "./chunk-SSQDA7X6.js";
229
230
  import {
230
231
  releaseLock,
231
232
  takeLock
232
- } from "./chunk-SMJAJWYW.js";
233
- import "./chunk-6D47X4KD.js";
233
+ } from "./chunk-ZMZVRVCK.js";
234
+ import "./chunk-5EBYGKZB.js";
234
235
  import {
235
236
  EVIDENCE_FINDINGS_KIND,
236
237
  MAIL_FINDINGS_KIND,
@@ -261,7 +262,7 @@ import {
261
262
  parseReference,
262
263
  providerNamed,
263
264
  refLabel
264
- } from "./chunk-IKDHJLSH.js";
265
+ } from "./chunk-XCAGVFRC.js";
265
266
  import {
266
267
  FACT_STATUSES,
267
268
  FACT_TYPES,
@@ -294,22 +295,22 @@ import {
294
295
  timezoneOf,
295
296
  validateQuery,
296
297
  walkQuery
297
- } from "./chunk-PYQU4GLK.js";
298
- import "./chunk-BU4LJSW2.js";
299
- import "./chunk-4OR4HFSL.js";
300
- import "./chunk-OCIE3POS.js";
301
- import "./chunk-2Y4UU4DB.js";
302
- import "./chunk-MNKCFCI7.js";
303
- import "./chunk-VJSWU4JX.js";
304
- import "./chunk-C2XCIZND.js";
305
- import "./chunk-GAWGZN4F.js";
306
- import "./chunk-3ZZ5OCUO.js";
298
+ } from "./chunk-WRZP6DJT.js";
299
+ import "./chunk-32WLB6I3.js";
300
+ import "./chunk-7P3PM3OL.js";
301
+ import "./chunk-B4LT2DHH.js";
302
+ import "./chunk-QP7BTVMT.js";
303
+ import "./chunk-ZP7F76D3.js";
304
+ import "./chunk-FOQBIEL5.js";
305
+ import "./chunk-TJXVMLK4.js";
306
+ import "./chunk-CEOXSWU3.js";
307
+ import "./chunk-4CD37FZU.js";
307
308
  import {
308
309
  sharedModelsDirectory
309
- } from "./chunk-DMUIMBCE.js";
310
+ } from "./chunk-QTLYWZXB.js";
310
311
  import {
311
312
  storePath
312
- } from "./chunk-WIK6SGHZ.js";
313
+ } from "./chunk-4CADISNA.js";
313
314
  import {
314
315
  provideTerminal,
315
316
  terminalOf
@@ -319,12 +320,12 @@ import {
319
320
  REASONS,
320
321
  STORE_CLIENT,
321
322
  VERSION
322
- } from "./chunk-SKBMXSQ3.js";
323
+ } from "./chunk-UOJWRYVD.js";
323
324
  import "./chunk-CID4MNRQ.js";
324
325
  import "./chunk-AT5Y62SD.js";
325
326
  import "./chunk-D72URWJE.js";
326
- import "./chunk-NYELWBUA.js";
327
- import "./chunk-ICBWD2OL.js";
327
+ import "./chunk-374FSLTB.js";
328
+ import "./chunk-L2M3LTQQ.js";
328
329
  import {
329
330
  createDeadline,
330
331
  createRenderer,
@@ -363,7 +364,7 @@ import {
363
364
  errorCodes,
364
365
  isCliError
365
366
  } from "./chunk-RZ54DSVU.js";
366
- import "./chunk-DMU5PAKY.js";
367
+ import "./chunk-4AXSD77N.js";
367
368
  import {
368
369
  __name
369
370
  } from "./chunk-ZVVMGPBJ.js";
@@ -645,7 +646,7 @@ var collect = /* @__PURE__ */ __name((value, previous = []) => [...previous, val
645
646
  var readScope = /* @__PURE__ */ __name((command, help = ONE_ACCOUNT_HELP) => sourceOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "readScope");
646
647
  var writeScope = /* @__PURE__ */ __name((command, help) => writeOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "writeScope");
647
648
 
648
- // node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
649
+ // node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
649
650
  var SCORED = "mail_sender_scores";
650
651
  var DAY = 864e5;
651
652
  var RECENT = 2 * 365 * DAY;
@@ -661,7 +662,7 @@ var demotedSenders = /* @__PURE__ */ __name(async (store) => {
661
662
  return senders;
662
663
  }, "demotedSenders");
663
664
 
664
- // node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/sync.js
665
+ // node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mail/sync.js
665
666
  var DAY2 = 864e5;
666
667
  var EDGE = 2 * DAY2;
667
668
 
@@ -1890,7 +1891,7 @@ import { createHash } from "node:crypto";
1890
1891
  import { existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
1891
1892
  import { basename, extname, relative, sep } from "node:path";
1892
1893
 
1893
- // node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1894
+ // node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
1894
1895
  var Proposal = object({
1895
1896
  kind: picklist(["summary", "digest", "fact", "preference"]),
1896
1897
  body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
@@ -1898,10 +1899,10 @@ var Proposal = object({
1898
1899
  });
1899
1900
  var Proposals = object({ items: pipe(array(Proposal), maxLength(20)) });
1900
1901
 
1901
- // node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1902
+ // node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
1902
1903
  var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
1903
1904
 
1904
- // node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1905
+ // node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
1905
1906
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
1906
1907
 
1907
1908
  // dist/notes/links.js
@@ -4214,8 +4215,8 @@ var EXAMPLES = {
4214
4215
  ],
4215
4216
  "mail findings add": [
4216
4217
  "memo mail findings add findings.json --source email:work",
4217
- `memo mail findings add '{"schema_version":1,"key":"mail-triage:9123","extractor":"mail-triage/1","findings":[\u2026]}' --source email:me@example.com --json`,
4218
- "memo mail findings add run-2026-11-02.json --source email:personal --json=id,status"
4218
+ "memo mail findings add findings.json --source email:work --key mail-triage:9123 --dry-run --json",
4219
+ `memo mail findings add '{"schema_version":1,"key":"mail-triage:9123","extractor":"mail-triage/1","findings":[\u2026]}' --source email:me@example.com --json`
4219
4220
  ],
4220
4221
  "mail findings show": [
4221
4222
  "memo mail findings show 41",
@@ -6245,6 +6246,7 @@ var mailReviewCommands = /* @__PURE__ */ __name((mail, messages, env) => {
6245
6246
  mount: {
6246
6247
  review: "mail review",
6247
6248
  acknowledge: "messages acknowledge",
6249
+ findings: "mail findings add",
6248
6250
  conversation: null,
6249
6251
  mailbox: { option: "source", value: /* @__PURE__ */ __name((mailbox) => `email:${mailbox.account}`, "value") }
6250
6252
  }
@@ -6270,34 +6272,74 @@ var FINDINGS_QUERY2 = {
6270
6272
  fields: [termField("status", "enum", "status:proposed", { values: ["proposed", "reviewed"] })]
6271
6273
  };
6272
6274
  var INPUT_HELP = `
6273
- Input: schema_version 1, key, extractor, findings. key is <holder>:<through id>, the id in the cursor
6274
- \`mail review --holder\` gave (mail-triage:9123456); the same key and input give the same batch, the same key with
6275
- another input is refused. 1\u201330 findings, at most 5 from one sender; each cites 1\u20138 msg:email/\u2026 references with the
6275
+ Input: schema_version 1, key, extractor, findings. key is the one \`mail review --holder\` gave in its
6276
+ mail-findings.add step (mail-triage:9123456, or mail-triage:9123456-r1 after the owner moved the mark back); pass it
6277
+ as --key or in the JSON. The same key and input give the same batch, the same key with another input is refused. 1\u201330 findings, at most 5 from one sender; each cites 1\u20138 msg:email/\u2026 references with the
6276
6278
  fingerprint review gave, and at least one email of this mailbox.
6277
6279
  Kinds: task (type bug|feature|chore, title, reason, commitment explicit|inferred, optional project, due_at with
6278
6280
  due_evidence, assignee with assignee_evidence; no project means the mailbox's inbox project) \xB7 task_update (task,
6279
6281
  change close|due|detail, reason; due needs due_at, detail needs detail) \xB7 fact (type, statement, subject or project)
6280
6282
  \xB7 memory (memory_kind, scope, body, subject or project) \xB7 link (from, to, reason: contact:email/<address> \u2192 person:N,
6281
6283
  person:N \u2192 organization:N, chat:email/\u2026 \u2192 project:N) \xB7 new_contact (address of a cited email's sender or recipient,
6282
- name, reason) \xB7 invoice (direction receivable|payable, counterparty person:N|organization:N, currency, lines of
6283
- description and amount, optional total, number, issue_date, due_date, project) \xB7 payment (direction in|out, amount,
6284
- currency, date, optional payer, payee, reference, allocations of stored invoices) \xB7 order (purpose
6285
- personal|business|client|other, supplier_name, optional customer, supplier, number, total with currency, status,
6286
- order_date, invoice, payment) \xB7 order_update (supplier_name and number of a stored order, status, date when delivered).
6284
+ name, reason) \xB7 invoice (direction receivable|payable, counterparty person:N|organization:N or counterparty_name with
6285
+ optional counterparty_email, currency, lines of description and amount, optional total, number, issue_date,
6286
+ due_date, project) \xB7 payment (direction in|out, amount,
6287
+ currency, date, optional payer or payer_name, payee or payee_name, reference, allocations of stored invoices) \xB7
6288
+ order (purpose personal|business|client|other, supplier_name, optional customer or customer_name, supplier, number,
6289
+ total with currency, status, order_date, invoice, payment, source_url) \xB7 order_update (supplier_name and number of
6290
+ a stored order, status, date when delivered).
6287
6291
  An invoice, payment or order is checked as memo invoices|payments|orders add checks yours; a refusal names why.
6288
6292
  A cited email that changed since review refuses the batch (mail-findings.stale), one still partial too
6289
6293
  (mail-findings.partial). Nothing is created until the owner confirms: memo review confirm <batch>/<finding>.
6294
+ A party the store does not hold yet goes by name: counterparty_name, payer_name, payee_name or customer_name in
6295
+ place of the reference, with an optional <party>_email that sent or received a cited email; the owner's accept finds
6296
+ its organization by that address, its domain or the exact name, or makes one. An order whose shop and number are
6297
+ stored (order.duplicate) or already wait in a proposed batch (order.proposed) is refused.
6298
+ --dry-run checks it all and stages nothing: valid, and problems with each refused finding's id, kind and message.
6299
+ Build the whole batch, check it, fix every problem, then stage it once: a staged key takes no other input.
6290
6300
  `;
6301
+ var keyed = /* @__PURE__ */ __name((text2, key) => {
6302
+ if (key === void 0)
6303
+ return text2;
6304
+ let raw;
6305
+ try {
6306
+ raw = JSON.parse(text2);
6307
+ } catch {
6308
+ return text2;
6309
+ }
6310
+ if (!raw || typeof raw !== "object" || Array.isArray(raw))
6311
+ return text2;
6312
+ const named4 = raw.key;
6313
+ if (named4 !== void 0 && named4 !== key)
6314
+ throw new CliError("validation_error", `the batch's key ${String(named4)} is not --key ${key}; give the key once`, {
6315
+ reason: "findings.key-mismatch",
6316
+ key: String(named4),
6317
+ given: key
6318
+ });
6319
+ return JSON.stringify({ ...raw, key });
6320
+ }, "keyed");
6291
6321
  var json4 = /* @__PURE__ */ __name((command) => command.option("--json", "print JSON; --json=id,status keeps only those fields"), "json");
6292
6322
  var mailFindingsCommand = /* @__PURE__ */ __name((program, mail, streams, env) => {
6293
6323
  const { run } = answers(program, streams, env);
6294
6324
  const findings = mail.command("findings").description("cited tasks, task updates, facts, memories, links, contacts, invoices, payments and orders an agent read in new mail").summary("what an agent read in new mail, cited, waiting for the owner");
6295
- json4(proposesOnly(annotate(findings.command("add"), { effects: LOCAL_WRITE, output: { entity: "mail_findings" } }))).description("stage one mailbox's findings for the owner; nothing is created until the owner confirms").summary("stage one mailbox's findings; the owner confirms them").argument("<file>", FINDINGS_INPUT_HELP).option("--source <accounts>", MAILBOX_HELP).addHelpText("after", INPUT_HELP).action(async (file, given) => {
6296
- const text2 = await readFindingsInput(file, environmentOf(program).stdin ?? process.stdin);
6297
- const input = parseMailFindingsJson(text2);
6325
+ json4(proposesOnly(annotate(findings.command("add"), { effects: LOCAL_WRITE, output: { entity: "mail_findings" } }))).description("stage one mailbox's findings for the owner; nothing is created until the owner confirms").summary("stage one mailbox's findings; the owner confirms them").argument("<file>", FINDINGS_INPUT_HELP).option("--source <accounts>", MAILBOX_HELP).option("--key <key>", "the findings key `mail review --holder` gave in its mail-findings.add step").option("--dry-run", "check the batch as staging would, invoices, payments and orders tried and rolled back, and stage nothing; answers valid and every finding's problem at once").addHelpText("after", INPUT_HELP).action(async (file, given) => {
6326
+ const read = await readFindingsInput(file, environmentOf(program).stdin ?? process.stdin);
6327
+ const text2 = keyed(read, given.key);
6328
+ const input = given.dryRun ? readMailFindingsJson(text2) : parseMailFindingsJson(text2);
6298
6329
  const author = await whoRuns(program, env, { question: "" });
6299
6330
  const agent = author === "owner" ? { bot: "memo-mail-findings" } : author;
6300
- await run(given.json, async (store) => itemAnswer(await store.mailFindings.stage(await oneMailboxOf(store, env, given.source), input, agent)));
6331
+ await run(given.json, async (store) => {
6332
+ const mailbox = await oneMailboxOf(store, env, given.source);
6333
+ if (!given.dryRun)
6334
+ return itemAnswer(await store.mailFindings.stage(mailbox, input, agent));
6335
+ const checked = await store.mailFindings.check(mailbox, input, agent);
6336
+ const issues = checked.problems.map((one2) => ({
6337
+ code: one2.code,
6338
+ source: one2.finding ?? "batch",
6339
+ reason: one2.details?.reason ?? one2.message
6340
+ }));
6341
+ return itemAnswer({ dryRun: true, ...checked }, issues.length ? { meta: { complete: false, issues } } : void 0);
6342
+ });
6301
6343
  });
6302
6344
  json4(annotate(findings.command("show"), { effects: LOCAL_READ, output: { entity: "mail_findings" } })).description("one findings batch: its findings with their evidence, earlier decisions and the review receipt").summary("one findings batch with its evidence and decisions").argument("<id>", "the batch id `mail findings add` or `list` gave").action((id, given) => run(given.json, async (store) => itemAnswer(await store.mailFindings.get(id))));
6303
6345
  withQuery(json4(annotate(findings.command("list"), { effects: LOCAL_READ, output: { entity: "mail_findings" } })), FINDINGS_QUERY2).description("mail findings batches, newest first; status:proposed is what waits for the owner").option("--source <accounts>", "only this mailbox's batches: email:<address>").option("--limit <n>", "batches per page, at most 50", positive, 20).option("--page <n>", "which page, from 1", positive, 1).action((words, given) => run(given.json, async (store) => {
@@ -6440,10 +6482,10 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6440
6482
  }).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) => {
6441
6483
  if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
6442
6484
  throw new CliError("validation_error", "--port and --public-url require --http");
6443
- const { createMemoServer } = await import("./server-ASCI46TB.js");
6485
+ const { createMemoServer } = await import("./server-DMU7GDV2.js");
6444
6486
  const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
6445
6487
  if (options.http) {
6446
- const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-B5CUHAKS.js");
6488
+ const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-RD54TNKO.js");
6447
6489
  const publicUrl = publicUrlOf(options.publicUrl, {
6448
6490
  missing: "--http",
6449
6491
  reaches: "the browser apps reach memo",
@@ -6495,7 +6537,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
6495
6537
  });
6496
6538
  });
6497
6539
  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() {
6498
- const { revokeAll } = await import("./mcp-B5CUHAKS.js");
6540
+ const { revokeAll } = await import("./mcp-RD54TNKO.js");
6499
6541
  revokeAll(httpTokenFile(env));
6500
6542
  out.print(this.opts().json, itemAnswer({ revoked: true }));
6501
6543
  });
@@ -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-2Y4UU4DB.js";
6
- import "./chunk-MNKCFCI7.js";
5
+ } from "./chunk-QP7BTVMT.js";
6
+ import "./chunk-ZP7F76D3.js";
7
7
  import "./chunk-2R2Z2VWL.js";
8
8
  import "./chunk-SN63VOE6.js";
9
9
  import "./chunk-Y5E2WNWB.js";
@@ -8,7 +8,7 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-RUZOQ7QN.js";
11
+ } from "./chunk-CXWKBOKQ.js";
12
12
  import "./chunk-2R2Z2VWL.js";
13
13
  import "./chunk-SN63VOE6.js";
14
14
  import "./chunk-Y5E2WNWB.js";
@@ -8,10 +8,10 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-GAWGZN4F.js";
12
- import "./chunk-3ZZ5OCUO.js";
13
- import "./chunk-DMUIMBCE.js";
14
- import "./chunk-WIK6SGHZ.js";
11
+ } from "./chunk-CEOXSWU3.js";
12
+ import "./chunk-4CD37FZU.js";
13
+ import "./chunk-QTLYWZXB.js";
14
+ import "./chunk-4CADISNA.js";
15
15
  import "./chunk-2R2Z2VWL.js";
16
16
  import "./chunk-SN63VOE6.js";
17
17
  import "./chunk-Y5E2WNWB.js";
@@ -4,9 +4,9 @@ import {
4
4
  defaultThreads,
5
5
  loadModel,
6
6
  truncated
7
- } from "./chunk-3ZZ5OCUO.js";
8
- import "./chunk-DMUIMBCE.js";
9
- import "./chunk-WIK6SGHZ.js";
7
+ } from "./chunk-4CD37FZU.js";
8
+ import "./chunk-QTLYWZXB.js";
9
+ import "./chunk-4CADISNA.js";
10
10
  import "./chunk-2R2Z2VWL.js";
11
11
  import "./chunk-SN63VOE6.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.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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-CLHGYKYZ.js";
7
- import "./chunk-6H6EXCZY.js";
8
- import "./chunk-MMRM6ZMM.js";
6
+ } from "./chunk-UUD4QHAN.js";
7
+ import "./chunk-O762IE2F.js";
8
+ import "./chunk-UWJ3RJF4.js";
9
9
  import "./chunk-3X4JM3ZR.js";
10
10
  import "./chunk-H3ZN4YLB.js";
11
- import "./chunk-DQ66H456.js";
12
- import "./chunk-SMJAJWYW.js";
13
- import "./chunk-6D47X4KD.js";
11
+ import "./chunk-SSQDA7X6.js";
12
+ import "./chunk-ZMZVRVCK.js";
13
+ import "./chunk-5EBYGKZB.js";
14
14
  import "./chunk-2R2Z2VWL.js";
15
15
  import "./chunk-SN63VOE6.js";
16
16
  import "./chunk-Y5E2WNWB.js";
@@ -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-S5KSC4B3.js";
10
+ import "./chunk-LV6FBPUQ.js";
11
+ import "./chunk-QM5CNTGT.js";
12
+ import "./chunk-TXJYVD5U.js";
13
+ import "./chunk-3G63U4VK.js";
14
+ import "./chunk-5J5RTJUJ.js";
15
+ import "./chunk-WVXTZWH3.js";
16
+ import "./chunk-2Q4DYGNU.js";
17
+ import "./chunk-MM5NVP7F.js";
18
+ import "./chunk-3X4JM3ZR.js";
19
+ import "./chunk-H3ZN4YLB.js";
20
+ import "./chunk-GXCXOITM.js";
21
+ import "./chunk-2EDP7PDR.js";
22
+ import "./chunk-S2K3FWLA.js";
23
+ import "./chunk-AOFYLQK2.js";
24
+ import "./chunk-J7FP7PRV.js";
25
+ import "./chunk-JT36R23P.js";
26
+ import "./chunk-JY34MQW4.js";
27
+ import "./chunk-LER7G4XY.js";
28
+ import "./chunk-XLUOKHFN.js";
29
+ import "./chunk-4NJQJZRO.js";
30
+ import "./chunk-SSQDA7X6.js";
31
+ import "./chunk-ZMZVRVCK.js";
32
+ import "./chunk-5EBYGKZB.js";
33
+ import "./chunk-XCAGVFRC.js";
34
+ import "./chunk-WRZP6DJT.js";
35
+ import "./chunk-32WLB6I3.js";
36
+ import "./chunk-7P3PM3OL.js";
37
+ import "./chunk-B4LT2DHH.js";
38
+ import "./chunk-ZP7F76D3.js";
39
+ import "./chunk-TJXVMLK4.js";
40
+ import "./chunk-CEOXSWU3.js";
41
+ import "./chunk-4CD37FZU.js";
42
+ import "./chunk-QTLYWZXB.js";
43
+ import "./chunk-4CADISNA.js";
44
+ import "./chunk-CID4MNRQ.js";
45
+ import "./chunk-AT5Y62SD.js";
46
+ import "./chunk-D72URWJE.js";
47
+ import "./chunk-374FSLTB.js";
48
+ import "./chunk-L2M3LTQQ.js";
49
+ import "./chunk-2R2Z2VWL.js";
50
+ import "./chunk-SN63VOE6.js";
51
+ import "./chunk-Y5E2WNWB.js";
52
+ import "./chunk-RZ54DSVU.js";
53
+ import "./chunk-4AXSD77N.js";
54
+ import "./chunk-ZVVMGPBJ.js";
55
+ export {
56
+ PER_RUN,
57
+ createServer,
58
+ envelope,
59
+ serveOverHttpUntilStopped,
60
+ serveOverStdio
61
+ };