@wirecat/cli-memo 0.131.23 → 0.131.24

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 (107) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-VIPS6NHI.js → all-profiles-ZCJTYGOL.js} +5 -5
  3. package/dist/bundle/{anthropic-2QZHSXBA.js → anthropic-7WVLAKTX.js} +3 -3
  4. package/dist/bundle/{app-server-NTSADYGW.js → app-server-6G3SXEHO.js} +35 -35
  5. package/dist/bundle/auto-JWPM5654.js +86 -0
  6. package/dist/bundle/{bun-KF5QK2YN.js → bun-JVBDJKBB.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-XUCC2PWC.js → bun-sqlite-P4I7NVMQ.js} +2 -2
  8. package/dist/bundle/{chunk-L6FKTS3L.js → chunk-2IRCJT4O.js} +7 -7
  9. package/dist/bundle/{chunk-IJI62T4U.js → chunk-3KNXQZMO.js} +27 -27
  10. package/dist/bundle/{chunk-R4V63U6A.js → chunk-3MER7NE6.js} +2 -2
  11. package/dist/bundle/{chunk-QZXHMQCM.js → chunk-3U7OUQV2.js} +1 -1
  12. package/dist/bundle/{chunk-UJEO3VWA.js → chunk-5YCNCXL5.js} +1 -1
  13. package/dist/bundle/{chunk-DIP3ENSY.js → chunk-AIGMYGEL.js} +1 -1
  14. package/dist/bundle/{chunk-AHFMQAJT.js → chunk-AIVUS6WA.js} +9 -9
  15. package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-ALGIPJ6L.js} +1 -1
  16. package/dist/bundle/{chunk-5WCEWK2F.js → chunk-AWGV4VOA.js} +10 -10
  17. package/dist/bundle/{chunk-GDGY2KIX.js → chunk-BTQSFPIM.js} +4 -4
  18. package/dist/bundle/{chunk-AETJWLHX.js → chunk-CM2H7NRC.js} +3 -3
  19. package/dist/bundle/{chunk-QFO6K6CW.js → chunk-CPJEQK4V.js} +43 -43
  20. package/dist/bundle/{chunk-JRJIFGU2.js → chunk-DIMX5AEE.js} +3 -3
  21. package/dist/bundle/{chunk-32FPXLNY.js → chunk-DMQ3342A.js} +39 -37
  22. package/dist/bundle/{chunk-MJWFSOJN.js → chunk-EACY2ULS.js} +214 -173
  23. package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-EB7LKK4K.js} +1 -1
  24. package/dist/bundle/{chunk-YKZNFSQE.js → chunk-EGG3PGCM.js} +1 -1
  25. package/dist/bundle/{chunk-N5L6YYYW.js → chunk-EKTZEF3Q.js} +1 -1
  26. package/dist/bundle/{chunk-UMWR5PKA.js → chunk-ELKYINWL.js} +12 -12
  27. package/dist/bundle/{chunk-BSR4QZW5.js → chunk-F2ED6KG6.js} +2 -2
  28. package/dist/bundle/{chunk-Z7XHH2Q5.js → chunk-FXHN2UZW.js} +14 -9
  29. package/dist/bundle/{chunk-24P36RXS.js → chunk-GQOXFZBX.js} +481 -308
  30. package/dist/bundle/{chunk-6PXE6QSQ.js → chunk-GRXVN2X7.js} +1 -1
  31. package/dist/bundle/{chunk-46WO42ZW.js → chunk-GSEDSGJF.js} +291 -260
  32. package/dist/bundle/{chunk-V7Y5FOYJ.js → chunk-IC2TL7RW.js} +2 -2
  33. package/dist/bundle/{chunk-XTARXRP6.js → chunk-IJC6MFLP.js} +7 -7
  34. package/dist/bundle/{chunk-NY4IKP35.js → chunk-INTF3YPV.js} +2 -2
  35. package/dist/bundle/{chunk-QSN5NUVL.js → chunk-ITQBXFMC.js} +2 -2
  36. package/dist/bundle/{chunk-W53TRO7J.js → chunk-J6D34BFP.js} +646 -324
  37. package/dist/bundle/{chunk-37NN65PB.js → chunk-JDDVGGUV.js} +4 -4
  38. package/dist/bundle/{chunk-5M4KSMYN.js → chunk-KQSHIQSV.js} +133 -58
  39. package/dist/bundle/{chunk-4QY7XOVI.js → chunk-LNXFM4FD.js} +11 -11
  40. package/dist/bundle/{chunk-PDQFWOR5.js → chunk-LWIMGWKB.js} +2 -2
  41. package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M43DAAZ7.js} +1 -1
  42. package/dist/bundle/{chunk-UQA5UFJ2.js → chunk-MLMSQK76.js} +1 -1
  43. package/dist/bundle/{chunk-CTT5VK66.js → chunk-MPVW7BQZ.js} +5 -5
  44. package/dist/bundle/{chunk-4DKMYDLT.js → chunk-MROFZXAB.js} +41 -28
  45. package/dist/bundle/{chunk-6I7XGWGH.js → chunk-N5H6I7WQ.js} +5 -5
  46. package/dist/bundle/{chunk-ZCPUKUST.js → chunk-NAH473ZR.js} +1 -1
  47. package/dist/bundle/{chunk-7PQOYNMA.js → chunk-ND3GBFEY.js} +1 -1
  48. package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-OQK2IKPB.js} +1 -1
  49. package/dist/bundle/{chunk-G4GEARGN.js → chunk-Q6MFBH6Q.js} +8 -8
  50. package/dist/bundle/{chunk-RE5SEGSR.js → chunk-R2LJDDZP.js} +3 -3
  51. package/dist/bundle/{chunk-2IKXEL4V.js → chunk-R3LNQ3I4.js} +1 -1
  52. package/dist/bundle/{chunk-STZMKXK5.js → chunk-RTESJ5O2.js} +3 -3
  53. package/dist/bundle/{chunk-H76MIWB2.js → chunk-SKTGBVYC.js} +4 -4
  54. package/dist/bundle/{chunk-JDNA36EX.js → chunk-UA2C4BCH.js} +7 -7
  55. package/dist/bundle/{chunk-CKLCJ6O7.js → chunk-UPXUE27A.js} +4 -4
  56. package/dist/bundle/{chunk-GQOFHKUX.js → chunk-UVR6U55E.js} +5 -5
  57. package/dist/bundle/{chunk-DIELPPLF.js → chunk-UXCDBNAY.js} +1 -1
  58. package/dist/bundle/{chunk-XRJIQC6P.js → chunk-UY2VH3QK.js} +1 -1
  59. package/dist/bundle/{chunk-BIYSJBQR.js → chunk-VLPMB3UU.js} +4 -4
  60. package/dist/bundle/{chunk-Z6YD3YK4.js → chunk-VVEFQEWP.js} +20 -20
  61. package/dist/bundle/{chunk-FXF34MI2.js → chunk-XF3LZ32F.js} +2 -2
  62. package/dist/bundle/{chunk-HBXZ7WIV.js → chunk-XSI5NYGB.js} +6 -6
  63. package/dist/bundle/{chunk-44NQLD5C.js → chunk-ZDOVR4PA.js} +4 -4
  64. package/dist/bundle/{chunk-O7OI5V7W.js → chunk-ZLZE5P6M.js} +5 -5
  65. package/dist/bundle/{chunk-BSDOH7DN.js → chunk-ZOYGY2PN.js} +1 -1
  66. package/dist/bundle/{command-contract-XBYNZVP5.js → command-contract-543RRFNU.js} +11 -11
  67. package/dist/bundle/{decode-LFASKQPE.js → decode-YHX3DQG2.js} +2 -2
  68. package/dist/bundle/{echarts-5AB3LFVD.js → echarts-FBVAP7BR.js} +2 -2
  69. package/dist/bundle/{embed-6KQN523T.js → embed-CQJ42S5C.js} +3 -3
  70. package/dist/bundle/{embedder-7SGPMINO.js → embedder-EDXLEJ27.js} +6 -6
  71. package/dist/bundle/{entry-CNZGHHZB.js → entry-HZEA7QFK.js} +4 -4
  72. package/dist/bundle/failure-62G7QSPX.js +66 -0
  73. package/dist/bundle/{first-run-UI6UT4OR.js → first-run-JZQN7R6M.js} +5 -5
  74. package/dist/bundle/{first-screen-3WDPZZXV.js → first-screen-56V3UOQE.js} +12 -12
  75. package/dist/bundle/{instructions-52W6ZQTU.js → instructions-NYVYNWVU.js} +1 -1
  76. package/dist/bundle/{mcp-JIOYIKWO.js → mcp-Y6IPYDS2.js} +35 -35
  77. package/dist/bundle/memo.js +6 -6
  78. package/dist/bundle/{node-TL2PBNKO.js → node-2QE6UPGS.js} +2 -2
  79. package/dist/bundle/{node-sqlite-64QIEQ37.js → node-sqlite-SDHZJNY7.js} +3 -3
  80. package/dist/bundle/{oauth-GH7GLGEJ.js → oauth-FFUJREKS.js} +4 -4
  81. package/dist/bundle/{open-PCKU5XOH.js → open-NT2GYX6N.js} +2 -2
  82. package/dist/bundle/{openai-P5QVLTF6.js → openai-IQA2XR6Z.js} +7 -7
  83. package/dist/bundle/{process-PWAGP6YY.js → process-HIEJXYW6.js} +1 -1
  84. package/dist/bundle/{program-D7OTNHGU.js → program-DEMRKCZY.js} +90 -65
  85. package/dist/bundle/{prompt-FNBKJZLM.js → prompt-IOZAME2R.js} +2 -2
  86. package/dist/bundle/{recognize-5TKRMMA2.js → recognize-2XOAZJ5N.js} +1 -1
  87. package/dist/bundle/{remote-XZJ7ZAKJ.js → remote-2LE7OTDA.js} +4 -4
  88. package/dist/bundle/{rerank-JUH3QHX7.js → rerank-UKOVVZM6.js} +4 -4
  89. package/dist/bundle/{serve-JP6U3PUO.js → serve-S2UHPEBP.js} +6 -6
  90. package/dist/bundle/server-3YNOEPWU.js +61 -0
  91. package/dist/bundle/{server-VXI43PF5.js → server-BG4WWQHY.js} +50 -50
  92. package/dist/bundle/server-EZWQ5KP4.js +48 -0
  93. package/dist/bundle/{setup-YLI4S4TW.js → setup-2X7ADKFH.js} +39 -39
  94. package/dist/bundle/{state-G4NEN2OZ.js → state-F5KT3CBD.js} +3 -3
  95. package/dist/bundle/{store-NHFLFHD5.js → store-WBUUS7FO.js} +9 -9
  96. package/dist/bundle/store-maintenance-command-KLST56XF.js +48 -0
  97. package/dist/bundle/update-WH4CGJGP.js +69 -0
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/package.json +3 -3
  101. package/dist/bundle/auto-MJWSDIMF.js +0 -86
  102. package/dist/bundle/failure-LJAYEPTS.js +0 -66
  103. package/dist/bundle/server-5M4YI3V4.js +0 -48
  104. package/dist/bundle/server-XAHF22CQ.js +0 -61
  105. package/dist/bundle/store-maintenance-command-6UEORZWI.js +0 -48
  106. package/dist/bundle/update-6SD2JZUC.js +0 -69
  107. /package/dist/bundle/{chunk-WX2WLEEF.js → chunk-CWOKGEL3.js} +0 -0
@@ -6,22 +6,22 @@ import {
6
6
  autoState,
7
7
  lastAutoRun,
8
8
  recordAutoRun
9
- } from "./chunk-37NN65PB.js";
9
+ } from "./chunk-JDDVGGUV.js";
10
10
  import {
11
11
  installer,
12
12
  latest,
13
13
  upgradeCommand
14
- } from "./chunk-O7OI5V7W.js";
14
+ } from "./chunk-ZLZE5P6M.js";
15
15
  import {
16
16
  himalaya,
17
17
  isThrottled,
18
18
  throttledError
19
- } from "./chunk-UQA5UFJ2.js";
19
+ } from "./chunk-MLMSQK76.js";
20
20
  import {
21
21
  mcpOwnerAllowed,
22
22
  readOnlyAvailability,
23
23
  refuseWritesUnderLock
24
- } from "./chunk-6I7XGWGH.js";
24
+ } from "./chunk-N5H6I7WQ.js";
25
25
  import {
26
26
  answers,
27
27
  atDetail as atDetail2,
@@ -31,7 +31,7 @@ import {
31
31
  trackAnswers,
32
32
  wholeList,
33
33
  withStore
34
- } from "./chunk-44NQLD5C.js";
34
+ } from "./chunk-ZDOVR4PA.js";
35
35
  import {
36
36
  ATTACHMENT_CHARS,
37
37
  DIALECTS,
@@ -42,6 +42,7 @@ import {
42
42
  MEMO_SETTINGS,
43
43
  NOTE_EXTENSIONS,
44
44
  OWED_DAYS,
45
+ POLICY_SKIPS,
45
46
  REVIEW_THREADS,
46
47
  SCORE_RULE,
47
48
  SUGGEST_RULE,
@@ -82,17 +83,18 @@ import {
82
83
  unsetConfigKey,
83
84
  updateConfig,
84
85
  withAttachmentText
85
- } from "./chunk-32FPXLNY.js";
86
+ } from "./chunk-DMQ3342A.js";
86
87
  import "./chunk-QP3KNC5D.js";
87
- import "./chunk-BSR4QZW5.js";
88
- import "./chunk-XTARXRP6.js";
89
- import "./chunk-RE5SEGSR.js";
88
+ import "./chunk-F2ED6KG6.js";
89
+ import "./chunk-IJC6MFLP.js";
90
+ import "./chunk-R2LJDDZP.js";
90
91
  import {
91
92
  errorObject,
92
93
  recognisable
93
- } from "./chunk-JRJIFGU2.js";
94
+ } from "./chunk-DIMX5AEE.js";
94
95
  import {
95
96
  DISCOVERY_DESCRIPTIONS,
97
+ SUMMARY_UNTRUSTED,
96
98
  acknowledgeMark,
97
99
  addContractInfo,
98
100
  addMeetingPreparationCommand,
@@ -135,10 +137,11 @@ import {
135
137
  tasksStatsCommand,
136
138
  unansweredHours,
137
139
  withSqliteSidecars
138
- } from "./chunk-46WO42ZW.js";
139
- import "./chunk-V5ZID7KC.js";
140
- import "./chunk-QZXHMQCM.js";
140
+ } from "./chunk-GSEDSGJF.js";
141
+ import "./chunk-M43DAAZ7.js";
142
+ import "./chunk-3U7OUQV2.js";
141
143
  import {
144
+ MAIL_HIT_UNTRUSTED,
142
145
  allHitItem,
143
146
  coverageGaps,
144
147
  messageHitItem,
@@ -146,21 +149,21 @@ import {
146
149
  noteHitItem,
147
150
  offsetOf,
148
151
  shownOf
149
- } from "./chunk-4DKMYDLT.js";
150
- import "./chunk-YKZNFSQE.js";
152
+ } from "./chunk-MROFZXAB.js";
153
+ import "./chunk-EGG3PGCM.js";
151
154
  import {
152
155
  SKILL_TARGETS,
153
156
  skillCommand,
154
157
  skillPath,
155
158
  skillVersion
156
- } from "./chunk-Z7XHH2Q5.js";
159
+ } from "./chunk-FXHN2UZW.js";
157
160
  import {
158
161
  messageItem,
159
162
  modelGateway,
160
163
  storeInfo,
161
164
  storeSummary
162
- } from "./chunk-QFO6K6CW.js";
163
- import "./chunk-Z6YD3YK4.js";
165
+ } from "./chunk-CPJEQK4V.js";
166
+ import "./chunk-VVEFQEWP.js";
164
167
  import {
165
168
  AGENDA_DEFAULTS,
166
169
  FACT_SUMMARIES,
@@ -224,18 +227,18 @@ import {
224
227
  termField,
225
228
  typedQuery,
226
229
  withQuery
227
- } from "./chunk-W53TRO7J.js";
230
+ } from "./chunk-J6D34BFP.js";
228
231
  import {
229
232
  readBoundedUtf8File,
230
233
  writeFileAtomic
231
- } from "./chunk-UMWR5PKA.js";
234
+ } from "./chunk-ELKYINWL.js";
232
235
  import {
233
236
  commandsText,
234
237
  inSection,
235
238
  installHelp
236
- } from "./chunk-HBXZ7WIV.js";
239
+ } from "./chunk-XSI5NYGB.js";
237
240
  import "./chunk-HTQTIKWP.js";
238
- import "./chunk-R4V63U6A.js";
241
+ import "./chunk-3MER7NE6.js";
239
242
  import {
240
243
  Command,
241
244
  FETCH,
@@ -274,22 +277,22 @@ import {
274
277
  text,
275
278
  time,
276
279
  untrusted
277
- } from "./chunk-MJWFSOJN.js";
278
- import "./chunk-JDNA36EX.js";
279
- import "./chunk-5WCEWK2F.js";
280
+ } from "./chunk-EACY2ULS.js";
281
+ import "./chunk-UA2C4BCH.js";
282
+ import "./chunk-AWGV4VOA.js";
280
283
  import {
281
284
  isNewer
282
285
  } from "./chunk-JCCL7RGH.js";
283
286
  import "./chunk-PQLBPYJR.js";
284
- import "./chunk-AETJWLHX.js";
285
- import "./chunk-AHFMQAJT.js";
286
- import "./chunk-2IKXEL4V.js";
287
- import "./chunk-BIYSJBQR.js";
287
+ import "./chunk-CM2H7NRC.js";
288
+ import "./chunk-AIVUS6WA.js";
289
+ import "./chunk-R3LNQ3I4.js";
290
+ import "./chunk-VLPMB3UU.js";
288
291
  import {
289
292
  releaseLock,
290
293
  takeLock
291
- } from "./chunk-PDQFWOR5.js";
292
- import "./chunk-UJEO3VWA.js";
294
+ } from "./chunk-LWIMGWKB.js";
295
+ import "./chunk-5YCNCXL5.js";
293
296
  import {
294
297
  EVIDENCE_FINDINGS_KIND,
295
298
  FINANCE_REVIEWS,
@@ -318,6 +321,7 @@ import {
318
321
  formatReference,
319
322
  isFolderProvider,
320
323
  looksLikeReference,
324
+ mailOwnText,
321
325
  minorUnits,
322
326
  moneyOf,
323
327
  openOf,
@@ -328,7 +332,7 @@ import {
328
332
  providerNamed,
329
333
  queryFilter,
330
334
  refLabel
331
- } from "./chunk-24P36RXS.js";
335
+ } from "./chunk-GQOXFZBX.js";
332
336
  import {
333
337
  FACT_STATUSES,
334
338
  FACT_TYPES,
@@ -354,22 +358,22 @@ import {
354
358
  timezoneOf,
355
359
  validateQuery,
356
360
  walkQuery
357
- } from "./chunk-5M4KSMYN.js";
358
- import "./chunk-6PXE6QSQ.js";
359
- import "./chunk-L6FKTS3L.js";
360
- import "./chunk-CKLCJ6O7.js";
361
- import "./chunk-FXF34MI2.js";
362
- import "./chunk-7PQOYNMA.js";
363
- import "./chunk-BSDOH7DN.js";
364
- import "./chunk-6EZ7XGRG.js";
365
- import "./chunk-QSN5NUVL.js";
366
- import "./chunk-CTT5VK66.js";
361
+ } from "./chunk-KQSHIQSV.js";
362
+ import "./chunk-GRXVN2X7.js";
363
+ import "./chunk-2IRCJT4O.js";
364
+ import "./chunk-UPXUE27A.js";
365
+ import "./chunk-XF3LZ32F.js";
366
+ import "./chunk-ND3GBFEY.js";
367
+ import "./chunk-ZOYGY2PN.js";
368
+ import "./chunk-ALGIPJ6L.js";
369
+ import "./chunk-ITQBXFMC.js";
370
+ import "./chunk-MPVW7BQZ.js";
367
371
  import {
368
372
  sharedModelsDirectory
369
- } from "./chunk-STZMKXK5.js";
373
+ } from "./chunk-RTESJ5O2.js";
370
374
  import {
371
375
  storePath
372
- } from "./chunk-DIELPPLF.js";
376
+ } from "./chunk-UXCDBNAY.js";
373
377
  import {
374
378
  provideTerminal,
375
379
  terminalOf
@@ -379,12 +383,12 @@ import {
379
383
  REASONS,
380
384
  STORE_CLIENT,
381
385
  VERSION
382
- } from "./chunk-N5L6YYYW.js";
386
+ } from "./chunk-EKTZEF3Q.js";
383
387
  import "./chunk-ILHTNOIV.js";
384
388
  import "./chunk-NUN6OGOV.js";
385
389
  import "./chunk-D72URWJE.js";
386
- import "./chunk-GQOFHKUX.js";
387
- import "./chunk-DIP3ENSY.js";
390
+ import "./chunk-UVR6U55E.js";
391
+ import "./chunk-AIGMYGEL.js";
388
392
  import {
389
393
  createDeadline,
390
394
  createRenderer,
@@ -425,7 +429,7 @@ import {
425
429
  errorCodes,
426
430
  isCliError
427
431
  } from "./chunk-CCHHEMPM.js";
428
- import "./chunk-QWRBAQZ7.js";
432
+ import "./chunk-OQK2IKPB.js";
429
433
  import {
430
434
  __name
431
435
  } from "./chunk-ZVVMGPBJ.js";
@@ -2227,7 +2231,7 @@ import { createHash } from "node:crypto";
2227
2231
  import { existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
2228
2232
  import { basename, extname, relative, sep } from "node:path";
2229
2233
 
2230
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
2234
+ // node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
2231
2235
  var Proposal = object({
2232
2236
  kind: picklist(["summary", "digest", "fact", "preference"]),
2233
2237
  body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
@@ -2235,10 +2239,10 @@ var Proposal = object({
2235
2239
  });
2236
2240
  var Proposals = object({ items: pipe(array(Proposal), maxLength(20)) });
2237
2241
 
2238
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
2242
+ // node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
2239
2243
  var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
2240
2244
 
2241
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
2245
+ // node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
2242
2246
  var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
2243
2247
 
2244
2248
  // dist/notes/links.js
@@ -2544,7 +2548,7 @@ var importNotesMap = /* @__PURE__ */ __name(async (store, env, folders) => {
2544
2548
  return linked2;
2545
2549
  }, "importNotesMap");
2546
2550
 
2547
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
2551
+ // node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
2548
2552
  var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
2549
2553
  var mailMark = strictObject({
2550
2554
  holder: string(),
@@ -2583,8 +2587,9 @@ var acknowledgeCommand = /* @__PURE__ */ __name((mail) => answerEntity(proposesO
2583
2587
  renderAnswer(this, outputFor(this), itemOf(markItem(mark)), () => markText(mark));
2584
2588
  }), "acknowledgeCommand");
2585
2589
 
2586
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
2590
+ // node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
2587
2591
  var DAY = 864e5;
2592
+ var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
2588
2593
  var MAIL_REVIEW_QUERY = defineQuery({
2589
2594
  entity: "message",
2590
2595
  backend: "native",
@@ -2679,7 +2684,8 @@ var reviewAnswer = /* @__PURE__ */ __name((found, mailbox, fresh, step) => {
2679
2684
  new_sender: message.marks.newSender,
2680
2685
  sender_identities: message.marks.senderIdentities
2681
2686
  } : {}
2682
- }
2687
+ },
2688
+ untrusted: REVIEW_UNTRUSTED
2683
2689
  })),
2684
2690
  limit: Math.max(1, read.length),
2685
2691
  has_more: false,
@@ -2698,8 +2704,9 @@ var holderReview = /* @__PURE__ */ __name(async (command, mail, holder, query) =
2698
2704
  const marks2 = account2 ? await store.mail.emailMarks(account2.id, read2.emails.map((one2) => one2.id)) : /* @__PURE__ */ new Map();
2699
2705
  return { read: read2, mailbox: mailbox2, marks: marks2 };
2700
2706
  });
2707
+ const emails = read.emails.map((email) => ({ ...email, text: mailOwnText(email.text) }));
2701
2708
  const chats = /* @__PURE__ */ new Map();
2702
- for (const email of read.emails) {
2709
+ for (const email of emails) {
2703
2710
  const chat = chats.get(email.chatId) ?? {
2704
2711
  id: email.chatId,
2705
2712
  title: email.chatTitle,
@@ -2733,7 +2740,7 @@ var holderReview = /* @__PURE__ */ __name(async (command, mail, holder, query) =
2733
2740
  const output = outputFor(command);
2734
2741
  renderAnswer(command, output, answer, () => {
2735
2742
  output.renderer.note(read.mark ? `${holder}: past ${read.mark.throughId}; acknowledge with --cursor ${read.cursor}${read.more ? "; more after these" : ""}` : `${holder} has no mark yet: it starts from now \u2014 acknowledge with --cursor ${read.cursor}`);
2736
- return read.emails.map((hit) => `${hitText(hit)}${markText2(marks.get(hit.id))}
2743
+ return emails.map((hit) => `${hitText(hit)}${markText2(marks.get(hit.id))}
2737
2744
  `).join("");
2738
2745
  });
2739
2746
  }, "holderReview");
@@ -2747,7 +2754,7 @@ var mailReviewCommand = /* @__PURE__ */ __name((mail) => annotate(new Command("r
2747
2754
  partial: true,
2748
2755
  output: { entity: "message", view: "summary" },
2749
2756
  query: MAIL_REVIEW_QUERY
2750
- }).summary("threads with new mail, mail you owe an answer, mail waiting for one").description("every stored email, yours too, in threads that changed since a point \u2014 for reviewing who owes what. It reads what sync stored, so it asks the mail server nothing").addHelpText("after", queryHelp(MAIL_REVIEW_QUERY)).argument("[query...]", `where the last review ended: date>2h; ${REVIEW_DAYS} days ago if no date`).option("--unanswered [duration]", "only threads whose newest email came to you, in To or Cc, with no answer for this long \u2014 4h, 1d; 24h if not given").option("--waiting [duration]", "only threads where you wrote last and nobody answered for this long \u2014 3d; 7d if not given").option("--holder <name>", "read for this holder \u2014 an agent or a pipeline \u2014 what is stored past its processing mark, by store order; bulk, envelopes, drafts, suspicious senders and partial mail left out; `messages acknowledge` moves the mark").option("--new", "what changed since the last `review --new` of this mailbox, a point per thread \u2014 for scheduled runs").addHelpText("after", `
2757
+ }).summary("threads with new mail, mail you owe an answer, mail waiting for one").description("every stored email, yours too, in threads that changed since a point \u2014 for reviewing who owes what. It reads what sync stored, so it asks the mail server nothing").addHelpText("after", queryHelp(MAIL_REVIEW_QUERY)).argument("[query...]", `where the last review ended: date>2h; ${REVIEW_DAYS} days ago if no date`).option("--unanswered [duration]", "only threads whose newest email came to you, in To or Cc, with no answer for this long \u2014 4h, 1d; 24h if not given").option("--waiting [duration]", "only threads where you wrote last and nobody answered for this long \u2014 3d; 7d if not given").option("--holder <name>", "read for this holder \u2014 an agent or a pipeline \u2014 what is stored past its processing mark, by store order; bulk, envelopes, drafts, suspicious senders and partial mail left out; each text without quoted earlier mail or the signature; `messages acknowledge` moves the mark").option("--new", "what changed since the last `review --new` of this mailbox, a point per thread \u2014 for scheduled runs").addHelpText("after", `
2751
2758
  Without a date, --unanswered and --waiting look at threads active in the last ${OWED_DAYS} days.
2752
2759
  Every email is shown, mail sent to many too; each item's email says bulk, list_id and rule_id, and its sender_score,
2753
2760
  the fingerprint a finding cites it by, new_sender (no earlier email from the address) and sender_identities.
@@ -2809,12 +2816,17 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
2809
2816
  saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
2810
2817
  }), "mailReviewCommand");
2811
2818
 
2812
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
2819
+ // node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
2813
2820
  var absentAccount = /* @__PURE__ */ __name((error) => {
2814
2821
  if (error instanceof CliError && error.code === "not_found")
2815
2822
  return void 0;
2816
2823
  throw error;
2817
2824
  }, "absentAccount");
2825
+ var policySkipped = /* @__PURE__ */ __name((emails) => {
2826
+ const shown = emails.find((email) => email.anchor) ?? emails[0];
2827
+ const skips = POLICY_SKIPS;
2828
+ return shown?.attachments?.some((file) => skips.includes(String(file.extraction))) ? shown : void 0;
2829
+ }, "policySkipped");
2818
2830
  var DEFAULT_LIMIT = 20;
2819
2831
  var MAX_LIMIT = 100;
2820
2832
  var limitOf = /* @__PURE__ */ __name((value) => {
@@ -2965,7 +2977,7 @@ var shownText = /* @__PURE__ */ __name((emails) => `${emails.map((email) => [hit
2965
2977
  var messagesCommand = /* @__PURE__ */ __name((mail) => {
2966
2978
  const messages = new Command("messages").summary("read stored emails").description("read the emails sync stored");
2967
2979
  annotate(messages.command("show"), {
2968
- effects: LOCAL_READ,
2980
+ effects: mail.whole ? FETCH : LOCAL_READ,
2969
2981
  examples: [
2970
2982
  `${mail.app.command} personal messages show 'msg:email/me%40example.com/thread-1/%3Cid%40example.com%3E'`,
2971
2983
  `${mail.app.command} personal messages show 'msg:email/me%40example.com/thread-1/%3Cid%40example.com%3E' --before-n 2`
@@ -2973,13 +2985,26 @@ var messagesCommand = /* @__PURE__ */ __name((mail) => {
2973
2985
  }).summary("one stored email whole, with the text of its attachments").description("one stored email: its people, folders, whole text and the first 4000 characters of each attachment's text; --full gives all of it and the HTML body. The store keeps text, not the original message source").argument("<message>", "the msg:email/\u2026 reference a search gives").option("--before-n <n>", "also this many earlier emails of its thread", wholeCount, 0).option("--after-n <n>", "also this many later emails of its thread", wholeCount, 0).action(async function(reference3) {
2974
2986
  const { beforeN, afterN } = this.opts();
2975
2987
  const full = detailOf(this) === "full";
2988
+ let unread;
2976
2989
  const emails = await mail.read(this, async (store, mailbox) => {
2977
2990
  threadOf(mailbox, reference3);
2991
+ const shown2 = await showMail(store, reference3, { before: beforeN, after: afterN, full });
2992
+ const skipped = mail.whole ? policySkipped(shown2) : void 0;
2993
+ if (!skipped || !mail.whole)
2994
+ return shown2;
2995
+ try {
2996
+ await mail.whole(this, store, mailbox, skipped.id);
2997
+ } catch (error) {
2998
+ if (!(error instanceof CliError))
2999
+ throw error;
3000
+ unread = { code: error.code, reason: "mail.attachments-unread", source: "server" };
3001
+ return shown2;
3002
+ }
2978
3003
  return showMail(store, reference3, { before: beforeN, after: afterN, full });
2979
3004
  });
2980
3005
  const output = outputFor(this);
2981
3006
  const shown = emails.map((email) => snakeKeys(atDetail(email)));
2982
- renderAnswer(this, output, beforeN || afterN ? listOf("messages show", { items: shown, limit: Math.max(1, shown.length), has_more: false }) : itemOf(shown.find((_, at) => emails[at]?.anchor) ?? shown[0]), () => shownText(emails));
3007
+ renderAnswer(this, output, beforeN || afterN ? listOf("messages show", { items: shown, limit: Math.max(1, shown.length), has_more: false }) : itemOf(shown.find((_, at) => emails[at]?.anchor) ?? shown[0], unread ? { meta: { complete: false, issues: [unread] } } : void 0), () => shownText(emails));
2983
3008
  });
2984
3009
  messages.addCommand(acknowledgeCommand(mail));
2985
3010
  return messages;
@@ -7888,7 +7913,7 @@ var mailSetupCommand = /* @__PURE__ */ __name((mail, streams, env) => {
7888
7913
  effects: LOCAL_WRITE,
7889
7914
  examples: ["memo mail add work you@example.test --kind imap"]
7890
7915
  })).description("add an explicit account after matching its Himalaya email").argument("[account]", "one Himalaya account name; omission lists choices and changes nothing").argument("[address]", "must match the email configured for this Himalaya account").option("--kind <kind>", "gmail or imap", oneOf(["gmail", "imap"]), "gmail").option("--folder <folder>", "mail folder to import; repeat for several", collect).option("--json", "print the added account as JSON").action(async (account2, address, given) => {
7891
- const { addMailAccount } = await import("./setup-YLI4S4TW.js");
7916
+ const { addMailAccount } = await import("./setup-2X7ADKFH.js");
7892
7917
  print(given.json, itemAnswer(await addMailAccount(env, {
7893
7918
  ...account2 ? { name: account2 } : {},
7894
7919
  ...address ? { address } : {},
@@ -7901,7 +7926,7 @@ var mailSetupCommand = /* @__PURE__ */ __name((mail, streams, env) => {
7901
7926
  const saved = accounts.find((one2) => one2.name === account2);
7902
7927
  if (!saved)
7903
7928
  throw new CliError("validation_error", `name one Memo account explicitly; choices: ${accounts.map((one2) => one2.name).join(", ") || "none"}`);
7904
- const { checkMailAccount } = await import("./setup-YLI4S4TW.js");
7929
+ const { checkMailAccount } = await import("./setup-2X7ADKFH.js");
7905
7930
  print(given.json, itemAnswer(await checkMailAccount(env, { name: saved.name, address: saved.address })));
7906
7931
  });
7907
7932
  }, "mailSetupCommand");
@@ -8040,10 +8065,10 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
8040
8065
  }).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) => {
8041
8066
  if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
8042
8067
  throw new CliError("validation_error", "--port and --public-url require --http");
8043
- const { createMemoServer } = await import("./server-VXI43PF5.js");
8068
+ const { createMemoServer } = await import("./server-BG4WWQHY.js");
8044
8069
  const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
8045
8070
  if (options.http) {
8046
- const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-JIOYIKWO.js");
8071
+ const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-Y6IPYDS2.js");
8047
8072
  const publicUrl = publicUrlOf(options.publicUrl, {
8048
8073
  missing: "--http",
8049
8074
  reaches: "the browser apps reach memo",
@@ -8095,7 +8120,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
8095
8120
  });
8096
8121
  });
8097
8122
  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() {
8098
- const { revokeAll } = await import("./mcp-JIOYIKWO.js");
8123
+ const { revokeAll } = await import("./mcp-Y6IPYDS2.js");
8099
8124
  revokeAll(httpTokenFile(env));
8100
8125
  out.print(this.opts().json, itemAnswer({ revoked: true }));
8101
8126
  });
@@ -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-FXF34MI2.js";
6
- import "./chunk-7PQOYNMA.js";
5
+ } from "./chunk-XF3LZ32F.js";
6
+ import "./chunk-ND3GBFEY.js";
7
7
  import "./chunk-T4LW6UYQ.js";
8
8
  import "./chunk-JY4LVWGZ.js";
9
9
  import "./chunk-Y5E2WNWB.js";
@@ -8,7 +8,7 @@ import {
8
8
  openRecognizer,
9
9
  openSpeechCutter,
10
10
  toModelRate
11
- } from "./chunk-RE5SEGSR.js";
11
+ } from "./chunk-R2LJDDZP.js";
12
12
  import "./chunk-T4LW6UYQ.js";
13
13
  import "./chunk-JY4LVWGZ.js";
14
14
  import "./chunk-Y5E2WNWB.js";
@@ -8,10 +8,10 @@ import {
8
8
  openRemote,
9
9
  remoteKey,
10
10
  remoteModel
11
- } from "./chunk-QSN5NUVL.js";
12
- import "./chunk-CTT5VK66.js";
13
- import "./chunk-STZMKXK5.js";
14
- import "./chunk-DIELPPLF.js";
11
+ } from "./chunk-ITQBXFMC.js";
12
+ import "./chunk-MPVW7BQZ.js";
13
+ import "./chunk-RTESJ5O2.js";
14
+ import "./chunk-UXCDBNAY.js";
15
15
  import "./chunk-T4LW6UYQ.js";
16
16
  import "./chunk-JY4LVWGZ.js";
17
17
  import "./chunk-Y5E2WNWB.js";
@@ -4,9 +4,9 @@ import {
4
4
  defaultThreads,
5
5
  loadModel,
6
6
  truncated
7
- } from "./chunk-CTT5VK66.js";
8
- import "./chunk-STZMKXK5.js";
9
- import "./chunk-DIELPPLF.js";
7
+ } from "./chunk-MPVW7BQZ.js";
8
+ import "./chunk-RTESJ5O2.js";
9
+ import "./chunk-UXCDBNAY.js";
10
10
  import "./chunk-T4LW6UYQ.js";
11
11
  import "./chunk-JY4LVWGZ.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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/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-GDGY2KIX.js";
7
- import "./chunk-QZXHMQCM.js";
8
- import "./chunk-V7Y5FOYJ.js";
6
+ } from "./chunk-BTQSFPIM.js";
7
+ import "./chunk-3U7OUQV2.js";
8
+ import "./chunk-IC2TL7RW.js";
9
9
  import "./chunk-3X4JM3ZR.js";
10
10
  import "./chunk-H3ZN4YLB.js";
11
- import "./chunk-BIYSJBQR.js";
12
- import "./chunk-PDQFWOR5.js";
13
- import "./chunk-UJEO3VWA.js";
11
+ import "./chunk-VLPMB3UU.js";
12
+ import "./chunk-LWIMGWKB.js";
13
+ import "./chunk-5YCNCXL5.js";
14
14
  import "./chunk-T4LW6UYQ.js";
15
15
  import "./chunk-JY4LVWGZ.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-3KNXQZMO.js";
10
+ import "./chunk-LNXFM4FD.js";
11
+ import "./chunk-MROFZXAB.js";
12
+ import "./chunk-EGG3PGCM.js";
13
+ import "./chunk-FXHN2UZW.js";
14
+ import "./chunk-NAH473ZR.js";
15
+ import "./chunk-EB7LKK4K.js";
16
+ import "./chunk-INTF3YPV.js";
17
+ import "./chunk-MM5NVP7F.js";
18
+ import "./chunk-3X4JM3ZR.js";
19
+ import "./chunk-H3ZN4YLB.js";
20
+ import "./chunk-VVEFQEWP.js";
21
+ import "./chunk-J6D34BFP.js";
22
+ import "./chunk-ELKYINWL.js";
23
+ import "./chunk-3MER7NE6.js";
24
+ import "./chunk-EACY2ULS.js";
25
+ import "./chunk-UA2C4BCH.js";
26
+ import "./chunk-JCCL7RGH.js";
27
+ import "./chunk-PQLBPYJR.js";
28
+ import "./chunk-CM2H7NRC.js";
29
+ import "./chunk-R3LNQ3I4.js";
30
+ import "./chunk-VLPMB3UU.js";
31
+ import "./chunk-LWIMGWKB.js";
32
+ import "./chunk-5YCNCXL5.js";
33
+ import "./chunk-GQOXFZBX.js";
34
+ import "./chunk-KQSHIQSV.js";
35
+ import "./chunk-GRXVN2X7.js";
36
+ import "./chunk-2IRCJT4O.js";
37
+ import "./chunk-UPXUE27A.js";
38
+ import "./chunk-ND3GBFEY.js";
39
+ import "./chunk-ALGIPJ6L.js";
40
+ import "./chunk-ITQBXFMC.js";
41
+ import "./chunk-MPVW7BQZ.js";
42
+ import "./chunk-RTESJ5O2.js";
43
+ import "./chunk-UXCDBNAY.js";
44
+ import "./chunk-ILHTNOIV.js";
45
+ import "./chunk-NUN6OGOV.js";
46
+ import "./chunk-D72URWJE.js";
47
+ import "./chunk-UVR6U55E.js";
48
+ import "./chunk-AIGMYGEL.js";
49
+ import "./chunk-T4LW6UYQ.js";
50
+ import "./chunk-JY4LVWGZ.js";
51
+ import "./chunk-Y5E2WNWB.js";
52
+ import "./chunk-CCHHEMPM.js";
53
+ import "./chunk-OQK2IKPB.js";
54
+ import "./chunk-ZVVMGPBJ.js";
55
+ export {
56
+ PER_RUN,
57
+ createServer,
58
+ envelope,
59
+ serveOverHttpUntilStopped,
60
+ serveOverStdio
61
+ };