@wirecat/cli-memo 0.131.72 → 0.131.74

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 (162) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-G6S5HOBT.js → all-profiles-LUGN5BHP.js} +9 -9
  3. package/dist/bundle/{anthropic-LA6PXTPQ.js → anthropic-W7JXDZPL.js} +16 -7
  4. package/dist/bundle/{app-server-SESNZIAV.js → app-server-2LQJZC7Z.js} +50 -49
  5. package/dist/bundle/auto-OCCPDCFY.js +89 -0
  6. package/dist/bundle/{bun-PZNVNH4G.js → bun-S3JZIN4S.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-VICDK5FS.js → bun-sqlite-X3WQN3CV.js} +5 -5
  8. package/dist/bundle/{chunk-ZTONSM5X.js → chunk-2EZFUIL4.js} +2 -2
  9. package/dist/bundle/{chunk-FXZ7PQKG.js → chunk-3BEJUJEL.js} +8 -8
  10. package/dist/bundle/{chunk-IRBYZUI7.js → chunk-3OVYPDT6.js} +31 -50
  11. package/dist/bundle/{chunk-IXZWUHSG.js → chunk-4KDORB7C.js} +12 -37
  12. package/dist/bundle/{chunk-V3JOIUVB.js → chunk-4O2MYFYC.js} +4 -4
  13. package/dist/bundle/{chunk-SVVSGUMU.js → chunk-4QGUBKN5.js} +6 -6
  14. package/dist/bundle/{chunk-3LS76TFB.js → chunk-6AOPUQTC.js} +1 -1
  15. package/dist/bundle/chunk-6FTZ53TT.js +18 -0
  16. package/dist/bundle/{chunk-FPWF2XLH.js → chunk-6I4DOBSD.js} +13 -13
  17. package/dist/bundle/{chunk-FENNNSCI.js → chunk-6Q3JHCU7.js} +12 -12
  18. package/dist/bundle/{chunk-XXEHPPNS.js → chunk-AHAW3TOS.js} +1266 -952
  19. package/dist/bundle/{chunk-6B3GQMR6.js → chunk-BDVM5652.js} +1 -1
  20. package/dist/bundle/{chunk-2VETW2QK.js → chunk-BNJ2XK7D.js} +1192 -838
  21. package/dist/bundle/{chunk-II2SXJEO.js → chunk-BR4DCOA5.js} +47 -45
  22. package/dist/bundle/{chunk-FVJSDDSV.js → chunk-C6MWOBEL.js} +26 -22
  23. package/dist/bundle/{chunk-RGIS2DRA.js → chunk-CWWUZK2U.js} +9 -9
  24. package/dist/bundle/{chunk-LIF2HXIQ.js → chunk-E2PSOSTN.js} +2 -2
  25. package/dist/bundle/{chunk-MKOQDN3I.js → chunk-E74VWHZ2.js} +1 -1
  26. package/dist/bundle/{chunk-5XRCF57Z.js → chunk-EML43XLJ.js} +2 -2
  27. package/dist/bundle/{chunk-ASDOPGKC.js → chunk-G45BLLDR.js} +4 -4
  28. package/dist/bundle/{chunk-B7LGXY3S.js → chunk-GPXHGG67.js} +12 -12
  29. package/dist/bundle/chunk-GWNLLQBD.js +177 -0
  30. package/dist/bundle/{chunk-FOPDWCRG.js → chunk-HEYIBJ5I.js} +12 -12
  31. package/dist/bundle/{chunk-PHL53ERQ.js → chunk-IQIM4UC7.js} +10 -10
  32. package/dist/bundle/{chunk-INQAQ55X.js → chunk-JINEHQ2T.js} +4911 -4900
  33. package/dist/bundle/chunk-KA5MDFLU.js +138 -0
  34. package/dist/bundle/{chunk-QUPPO7DB.js → chunk-KDBAY5JZ.js} +1 -1
  35. package/dist/bundle/{chunk-LJCT7YG6.js → chunk-KEBL3PY4.js} +4 -4
  36. package/dist/bundle/{chunk-HIHZNBR7.js → chunk-KUFOM3SB.js} +2 -2
  37. package/dist/bundle/{chunk-PGOMGFXA.js → chunk-KYJBGCTC.js} +2 -2
  38. package/dist/bundle/{chunk-U3P5F57B.js → chunk-LPGE6ACC.js} +2 -2
  39. package/dist/bundle/{chunk-I4HWKPQR.js → chunk-LX3OSTBD.js} +4 -4
  40. package/dist/bundle/{chunk-G3FQTKHT.js → chunk-MPZBV5RL.js} +8 -8
  41. package/dist/bundle/{chunk-K55WZ67L.js → chunk-NR633L2N.js} +4 -4
  42. package/dist/bundle/{chunk-DSU6UR2X.js → chunk-NT5IOEEK.js} +1 -1
  43. package/dist/bundle/{chunk-NRLXWY4Q.js → chunk-OOKMABOJ.js} +1528 -852
  44. package/dist/bundle/{chunk-L62FWN3Y.js → chunk-OYKQX4H3.js} +1 -1
  45. package/dist/bundle/{chunk-A4UQKFGY.js → chunk-P6FPRA3P.js} +59 -35
  46. package/dist/bundle/{chunk-BD7AGXJJ.js → chunk-QCR5WJ7R.js} +53 -48
  47. package/dist/bundle/{chunk-RF6KPQWV.js → chunk-QKWM4VK4.js} +6 -6
  48. package/dist/bundle/chunk-QYJJBE56.js +109 -0
  49. package/dist/bundle/{chunk-MSTWHRLN.js → chunk-SCYHDYLI.js} +3 -1
  50. package/dist/bundle/{chunk-CLQXHFKG.js → chunk-SIOPF2UG.js} +6 -6
  51. package/dist/bundle/{chunk-G7XOBQB5.js → chunk-SIQDO5DN.js} +4 -4
  52. package/dist/bundle/{chunk-ESYCZ575.js → chunk-SJD4KTK2.js} +4 -4
  53. package/dist/bundle/{chunk-KH43CUE2.js → chunk-UIAGASGP.js} +6 -6
  54. package/dist/bundle/{chunk-3ZSPTUG3.js → chunk-UU3OAPGO.js} +7 -7
  55. package/dist/bundle/{chunk-H3LAORYX.js → chunk-V7BDQIZS.js} +2 -2
  56. package/dist/bundle/{chunk-M2DAITNE.js → chunk-VB4OLJHK.js} +3 -3
  57. package/dist/bundle/{chunk-YBL4QKLV.js → chunk-VRL5WRRQ.js} +83 -83
  58. package/dist/bundle/{chunk-HE2F4JII.js → chunk-VYCLOFPC.js} +24 -9
  59. package/dist/bundle/{chunk-UUBV5ATQ.js → chunk-W46O6RJ5.js} +20 -20
  60. package/dist/bundle/{chunk-WT2P44YD.js → chunk-WBCY7WHV.js} +17 -17
  61. package/dist/bundle/{chunk-FDSM2TU6.js → chunk-WFXRR2JT.js} +11 -11
  62. package/dist/bundle/{chunk-2RNNWFU7.js → chunk-WM7MVKGU.js} +24 -24
  63. package/dist/bundle/{chunk-XNX3U6GD.js → chunk-WZHCQ4VZ.js} +8 -8
  64. package/dist/bundle/{chunk-MAGAWAPG.js → chunk-XMHWGHID.js} +4252 -4248
  65. package/dist/bundle/chunk-XPCTY6XV.js +116 -0
  66. package/dist/bundle/{chunk-UCRR7R6Q.js → chunk-XPSXVUZG.js} +3 -3
  67. package/dist/bundle/{chunk-CPUQC7UF.js → chunk-XQ3RZU3J.js} +1 -1
  68. package/dist/bundle/{chunk-6Z62U7NY.js → chunk-XQHOMQNZ.js} +4 -4
  69. package/dist/bundle/{chunk-SL2LXOCN.js → chunk-YB4KGUXY.js} +3 -3
  70. package/dist/bundle/{chunk-STJWETNW.js → chunk-YDTGYYOR.js} +4 -4
  71. package/dist/bundle/{chunk-FHIGY5K6.js → chunk-YLYZNPAZ.js} +2 -2
  72. package/dist/bundle/{chunk-ZM6J47GY.js → chunk-ZL63GL3Y.js} +3 -3
  73. package/dist/bundle/{chunk-SR7C53CS.js → chunk-ZTZLAGZA.js} +3 -3
  74. package/dist/bundle/{chunk-UX52EWLQ.js → chunk-ZXW5FPH2.js} +1 -1
  75. package/dist/bundle/command-contract-QQG343ZQ.js +32 -0
  76. package/dist/bundle/command-server-entry-XVUPTSSH.js +145 -0
  77. package/dist/bundle/{decode-WRWXOJML.js → decode-METZOSMG.js} +5 -5
  78. package/dist/bundle/{dispatch-VJSUBAUM.js → dispatch-PHB2Y6ZL.js} +8 -8
  79. package/dist/bundle/{echarts-MTCNTCST.js → echarts-EBSP4VCK.js} +2 -2
  80. package/dist/bundle/{embed-PPPCHSTE.js → embed-GVVU7N7W.js} +6 -6
  81. package/dist/bundle/{embedder-UJBIX6A2.js → embedder-6BZOYAXV.js} +9 -9
  82. package/dist/bundle/entry-7EYT2OA3.js +21 -0
  83. package/dist/bundle/{failure-GLF7OMMM.js → failure-OBT7CUVW.js} +2 -2
  84. package/dist/bundle/failure-YQJ43YFG.js +69 -0
  85. package/dist/bundle/{first-run-7HAWGQ3B.js → first-run-C7L7IACA.js} +11 -11
  86. package/dist/bundle/first-screen-6T65PQ37.js +30 -0
  87. package/dist/bundle/{instructions-JKIO4JF7.js → instructions-VDKK3Y5Z.js} +1 -1
  88. package/dist/bundle/{mcp-H2WYFBNW.js → mcp-5275YLID.js} +2 -2
  89. package/dist/bundle/mcp-UCDMODSA.js +90 -0
  90. package/dist/bundle/memo.js +16 -16
  91. package/dist/bundle/{node-3AIXDDDR.js → node-HWGZYNUX.js} +2 -2
  92. package/dist/bundle/{node-sqlite-NX722DXD.js → node-sqlite-PSYENWGS.js} +6 -6
  93. package/dist/bundle/{oauth-2NPSI7Q3.js → oauth-TQGMUJK2.js} +7 -7
  94. package/dist/bundle/{open-AFRN6Q36.js → open-KDDJDKCE.js} +5 -5
  95. package/dist/bundle/openai-QPGCUM4T.js +24 -0
  96. package/dist/bundle/{process-J2IBN6X7.js → process-APNTXJJE.js} +1 -1
  97. package/dist/bundle/{program-MRG4ZQQI.js → program-RHPSSKFA.js} +262 -153
  98. package/dist/bundle/{prompt-6XNKR4VQ.js → prompt-BMBZCLGF.js} +5 -5
  99. package/dist/bundle/{recognize-G3GI32QS.js → recognize-3SEY2MAR.js} +4 -4
  100. package/dist/bundle/{remote-DJO255PT.js → remote-ODH54UXO.js} +7 -7
  101. package/dist/bundle/{rerank-5SBZRIHF.js → rerank-JQHBNTUK.js} +7 -7
  102. package/dist/bundle/{serve-BZVBKGU3.js → serve-C22ZONSM.js} +9 -9
  103. package/dist/bundle/server-3TQJ47Q6.js +62 -0
  104. package/dist/bundle/{server-D5BJDKTJ.js → server-FX7RKPL4.js} +71 -67
  105. package/dist/bundle/server-SHHKLBS2.js +48 -0
  106. package/dist/bundle/{state-A57F7T5D.js → state-M3VGXSV4.js} +6 -6
  107. package/dist/bundle/{store-JXD7SGIK.js → store-K45RFKGF.js} +13 -13
  108. package/dist/bundle/store-maintenance-command-EOTKQ3E5.js +47 -0
  109. package/dist/bundle/update-PW77Y4DM.js +72 -0
  110. package/dist/context/context.d.ts.map +1 -1
  111. package/dist/context/context.js +4 -2
  112. package/dist/context/context.js.map +1 -1
  113. package/dist/contract-overrides/search.d.ts.map +1 -1
  114. package/dist/contract-overrides/search.js +15 -3
  115. package/dist/contract-overrides/search.js.map +1 -1
  116. package/dist/digest/backfill.d.ts.map +1 -1
  117. package/dist/digest/backfill.js +7 -7
  118. package/dist/digest/backfill.js.map +1 -1
  119. package/dist/examples.d.ts.map +1 -1
  120. package/dist/examples.js +11 -3
  121. package/dist/examples.js.map +1 -1
  122. package/dist/mcp/server.js +1 -1
  123. package/dist/mcp/server.js.map +1 -1
  124. package/dist/search/answers.d.ts +15 -3
  125. package/dist/search/answers.d.ts.map +1 -1
  126. package/dist/search/answers.js +76 -6
  127. package/dist/search/answers.js.map +1 -1
  128. package/dist/search/command.d.ts.map +1 -1
  129. package/dist/search/command.js +50 -8
  130. package/dist/search/command.js.map +1 -1
  131. package/dist/search/lane-gates.d.ts +4 -3
  132. package/dist/search/lane-gates.d.ts.map +1 -1
  133. package/dist/search/lane-gates.js +13 -7
  134. package/dist/search/lane-gates.js.map +1 -1
  135. package/dist/search/search.d.ts +10 -2
  136. package/dist/search/search.d.ts.map +1 -1
  137. package/dist/search/search.js +18 -5
  138. package/dist/search/search.js.map +1 -1
  139. package/dist/store/group.d.ts +1 -1
  140. package/dist/store/group.d.ts.map +1 -1
  141. package/dist/store/group.js +2 -1
  142. package/dist/store/group.js.map +1 -1
  143. package/dist/version.d.ts +1 -1
  144. package/dist/version.js +1 -1
  145. package/package.json +3 -3
  146. package/skills/cli-memo/SKILL.md +3 -3
  147. package/skills/cli-memo/topics/meetings.md +2 -1
  148. package/skills/cli-memo/topics/search.md +1 -0
  149. package/dist/bundle/auto-WU47LYXJ.js +0 -85
  150. package/dist/bundle/chunk-THPGFRPZ.js +0 -262
  151. package/dist/bundle/command-contract-7QECBB6M.js +0 -32
  152. package/dist/bundle/entry-W6SHKRBE.js +0 -18
  153. package/dist/bundle/failure-NRJ3EPBO.js +0 -65
  154. package/dist/bundle/first-screen-FRRTKWFB.js +0 -30
  155. package/dist/bundle/mcp-OL6ZYF2T.js +0 -90
  156. package/dist/bundle/openai-U5CQFLRU.js +0 -23
  157. package/dist/bundle/server-AEZPZ3ZD.js +0 -48
  158. package/dist/bundle/server-CIT5B2SV.js +0 -61
  159. package/dist/bundle/store-maintenance-command-5DG4SEQA.js +0 -47
  160. package/dist/bundle/update-NI24ED4V.js +0 -68
  161. /package/dist/bundle/{chunk-SYWHHQMC.js → chunk-G5GW3FFJ.js} +0 -0
  162. /package/dist/bundle/{chunk-YSYFOIW7.js → chunk-IXSUVHW6.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
8
8
  import { existsSync } from "node:fs";
9
9
  import { win32 } from "node:path";
10
10
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
@@ -1,5 +1,8 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ callerOf
5
+ } from "./chunk-V7BDQIZS.js";
3
6
  import {
4
7
  UNTRUSTED,
5
8
  UNTRUSTED_NEUTRAL,
@@ -7,10 +10,7 @@ import {
7
10
  agentJson,
8
11
  commandAvailability,
9
12
  failureContext
10
- } from "./chunk-FVJSDDSV.js";
11
- import {
12
- callerOf
13
- } from "./chunk-H3LAORYX.js";
13
+ } from "./chunk-C6MWOBEL.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
@@ -18,7 +18,10 @@ import {
18
18
  refuseLacking,
19
19
  servicesFor,
20
20
  storeModeDeps
21
- } from "./chunk-XXEHPPNS.js";
21
+ } from "./chunk-AHAW3TOS.js";
22
+ import {
23
+ MAX_BUFFERED_INPUT
24
+ } from "./chunk-E2PSOSTN.js";
22
25
  import {
23
26
  DEFAULT_OUTPUT_BYTES,
24
27
  ENTITIES,
@@ -38,30 +41,27 @@ import {
38
41
  refuseStoreChange,
39
42
  sealed,
40
43
  startRecording
41
- } from "./chunk-MAGAWAPG.js";
44
+ } from "./chunk-XMHWGHID.js";
42
45
  import {
43
46
  currentCaller,
44
47
  keepsSuccess,
45
48
  runContextOf,
46
49
  withCaller
47
- } from "./chunk-3ZSPTUG3.js";
50
+ } from "./chunk-UU3OAPGO.js";
48
51
  import {
49
52
  enclosingTraceId,
50
53
  inRun,
51
54
  newRunId,
52
55
  queryDescription,
53
56
  traceOf
54
- } from "./chunk-INQAQ55X.js";
57
+ } from "./chunk-JINEHQ2T.js";
55
58
  import {
56
59
  storeDamaged
57
- } from "./chunk-M2DAITNE.js";
58
- import {
59
- MAX_BUFFERED_INPUT
60
- } from "./chunk-LIF2HXIQ.js";
60
+ } from "./chunk-VB4OLJHK.js";
61
61
  import {
62
62
  captureStreams,
63
63
  traceIdOf
64
- } from "./chunk-UUBV5ATQ.js";
64
+ } from "./chunk-W46O6RJ5.js";
65
65
  import {
66
66
  COMPACT_FLAG,
67
67
  SNAKE_CASE,
@@ -100,19 +100,19 @@ import {
100
100
  unknown,
101
101
  word,
102
102
  writes
103
- } from "./chunk-HE2F4JII.js";
103
+ } from "./chunk-VYCLOFPC.js";
104
104
  import {
105
105
  CliError,
106
106
  errorCodes
107
- } from "./chunk-ZTONSM5X.js";
107
+ } from "./chunk-2EZFUIL4.js";
108
108
  import {
109
109
  __name
110
110
  } from "./chunk-ZVVMGPBJ.js";
111
111
 
112
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
112
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
113
  import { Readable } from "node:stream";
114
114
 
115
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
115
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
116
116
  var LINT_SEVERITIES = ["high", "medium", "low"];
117
117
  var lintRuleSchema = strictObject({
118
118
  id: word,
@@ -252,7 +252,7 @@ var overrideSchema = strictObject({
252
252
  });
253
253
  var overridesSchema = array(overrideSchema);
254
254
 
255
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
255
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
256
256
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
257
257
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
258
258
  var AUDIT_RULES = defineAuditRules([
@@ -378,7 +378,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
378
378
  { path: ["upgrade"], meaning: "updates the CLI" }
379
379
  ]);
380
380
 
381
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
381
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
382
382
  var fieldRuleSchema = strictObject({ id: word, rule: text });
383
383
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
384
384
  var FIELD_RULES = defineFieldRules([
@@ -394,7 +394,7 @@ var FIELD_RULES = defineFieldRules([
394
394
  }
395
395
  ]);
396
396
 
397
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
397
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
398
398
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
399
399
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
400
400
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -416,7 +416,7 @@ var IDENTIFIERS = defineIdentifiers([
416
416
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
417
417
  ]);
418
418
 
419
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
419
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
420
420
  var CALENDAR_FLAGS = [
421
421
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
422
422
  {
@@ -490,7 +490,7 @@ var CALENDAR_FLAGS = [
490
490
  }
491
491
  ];
492
492
 
493
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
493
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
494
494
  var CRM_FLAGS = [
495
495
  {
496
496
  name: "--pipeline",
@@ -640,7 +640,7 @@ var CRM_FLAGS = [
640
640
  }
641
641
  ];
642
642
 
643
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
643
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
644
644
  var HOW_FLAGS = [
645
645
  {
646
646
  name: "--limit",
@@ -867,7 +867,6 @@ var HOW_FLAGS = [
867
867
  meaning: "expose meeting preparation tools, including their remote schedule reads"
868
868
  },
869
869
  { name: "--dry-run", role: "mode", type: "switch", meaning: "judge and plan; do nothing", replaces: ["--estimate"] },
870
- { name: "--accept-terms", role: "mode", type: "switch", meaning: "accept the model's licence terms" },
871
870
  {
872
871
  name: "--as-owner",
873
872
  role: "mode",
@@ -926,6 +925,7 @@ var HOW_FLAGS = [
926
925
  replaces: ["--expected"]
927
926
  },
928
927
  { name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
928
+ { name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
929
929
  {
930
930
  name: "--for-everyone",
931
931
  role: "mode",
@@ -1637,8 +1637,14 @@ var HOW_FLAGS = [
1637
1637
  }
1638
1638
  ];
1639
1639
 
1640
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
1640
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
1641
1641
  var KNOWLEDGE_FLAGS = [
1642
+ {
1643
+ name: "--accept-terms",
1644
+ role: "mode",
1645
+ type: "switch",
1646
+ meaning: "no longer needed; kept so older scripts still run"
1647
+ },
1642
1648
  {
1643
1649
  name: "--quote",
1644
1650
  value: "<ref=words...>",
@@ -1669,7 +1675,7 @@ var KNOWLEDGE_FLAGS = [
1669
1675
  }
1670
1676
  ];
1671
1677
 
1672
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1678
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1673
1679
  var MAIL_FLAGS = [
1674
1680
  {
1675
1681
  name: "--cc",
@@ -1699,7 +1705,7 @@ var MAIL_FLAGS = [
1699
1705
  }
1700
1706
  ];
1701
1707
 
1702
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
1708
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
1703
1709
  var PRIVACY_FLAGS = [
1704
1710
  {
1705
1711
  name: "--about-text",
@@ -1760,7 +1766,7 @@ var PRIVACY_FLAGS = [
1760
1766
  { name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
1761
1767
  ];
1762
1768
 
1763
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
1769
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
1764
1770
  var SCHEDULE_FLAGS = [
1765
1771
  {
1766
1772
  name: "--locale",
@@ -1793,7 +1799,7 @@ var SCHEDULE_FLAGS = [
1793
1799
  }
1794
1800
  ];
1795
1801
 
1796
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1802
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1797
1803
  var WHAT_FLAGS = [
1798
1804
  {
1799
1805
  name: "--analysis-provider",
@@ -2783,7 +2789,7 @@ var WHAT_FLAGS = [
2783
2789
  }
2784
2790
  ];
2785
2791
 
2786
- // node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2792
+ // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2787
2793
  var FLAG_TYPES = [
2788
2794
  "switch",
2789
2795
  "count",
@@ -3143,6 +3149,7 @@ var views = [
3143
3149
  ["categories", "the categories a thing takes, with what each means"],
3144
3150
  ["domains", "the internet domains links point to, most linked first"],
3145
3151
  ["places", "the street addresses confirmed as places, most mentioned first"],
3152
+ ["mentions", "the people and organizations named in a selected thing's text"],
3146
3153
  ["comments", "replies attached to a selected source item"],
3147
3154
  ["links", "links held for a selected thing"],
3148
3155
  ["voters", "people whose recorded votes are visible for a selected poll"],
@@ -3199,7 +3206,7 @@ var VOCABULARY = defineVocabulary({
3199
3206
  ]
3200
3207
  });
3201
3208
 
3202
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3209
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3203
3210
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3204
3211
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3205
3212
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3422,7 +3429,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3422
3429
  }
3423
3430
  }, "runCommandForAgent");
3424
3431
 
3425
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3432
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3426
3433
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3427
3434
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3428
3435
  var message = pipe(
@@ -3681,10 +3688,27 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3681
3688
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3682
3689
  }, "failed");
3683
3690
 
3684
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3691
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3685
3692
  import { randomUUID } from "node:crypto";
3686
3693
  var MATCHES = 8;
3687
3694
  var ANSWER = answerSchema();
3695
+ var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
3696
+ const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
3697
+ const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
3698
+ return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
3699
+ items: optional(array(unknown())),
3700
+ item: optional(unknown()),
3701
+ page: optional(looseObject({ has_more: boolean() })),
3702
+ next,
3703
+ missing: optional(array(looseObject({ field: string(), why: string() }))),
3704
+ meta
3705
+ });
3706
+ }, "agentAnswer");
3707
+ var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
3708
+ const checked = toStandardJsonSchema(ANSWER);
3709
+ const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
3710
+ return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
3711
+ }, "listedAs");
3688
3712
  var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
3689
3713
  var haystack = /* @__PURE__ */ __name((command, one) => [command, one.title, one.description, ...Object.keys(one.input.entries)].join(" ").toLowerCase(), "haystack");
3690
3714
  var search = /* @__PURE__ */ __name((commands, query) => {
@@ -3789,7 +3813,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
3789
3813
  arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
3790
3814
  });
3791
3815
  server.registerTool(`${prefix}_read`, {
3792
- outputSchema: toStandardJsonSchema(ANSWER),
3816
+ outputSchema: listedAs(prefix, false),
3793
3817
  title: "Run a reading command",
3794
3818
  description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
3795
3819
  inputSchema: toStandardJsonSchema(call),
@@ -3797,7 +3821,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
3797
3821
  }, runner(false));
3798
3822
  if (Object.values(commands).some((one) => one.writes))
3799
3823
  server.registerTool(`${prefix}_write`, {
3800
- outputSchema: toStandardJsonSchema(ANSWER),
3824
+ outputSchema: listedAs(prefix, true),
3801
3825
  title: "Run a writing command",
3802
3826
  description: `Run one command that changes something \u2014 ${messenger ? "sends, edits, deletes, joins" : "creates, edits, deletes"} \u2014 with the arguments ${prefix}_tools_search showed. ${untrusted}`,
3803
3827
  inputSchema: toStandardJsonSchema(call),
@@ -27,19 +27,19 @@ import {
27
27
  serverSearchOptions,
28
28
  summaryOf,
29
29
  unansweredHours
30
- } from "./chunk-2VETW2QK.js";
30
+ } from "./chunk-BNJ2XK7D.js";
31
31
  import {
32
32
  MAIL_HIT_UNTRUSTED,
33
33
  messagesAnswer,
34
34
  offsetOf,
35
35
  shownOf
36
- } from "./chunk-IRBYZUI7.js";
36
+ } from "./chunk-3OVYPDT6.js";
37
37
  import {
38
38
  messageItem
39
- } from "./chunk-YBL4QKLV.js";
39
+ } from "./chunk-VRL5WRRQ.js";
40
40
  import {
41
41
  knownPermissionKeys
42
- } from "./chunk-2RNNWFU7.js";
42
+ } from "./chunk-WM7MVKGU.js";
43
43
  import {
44
44
  AGENDA_DEFAULTS,
45
45
  DEFAULT_BACKEND,
@@ -63,7 +63,17 @@ import {
63
63
  sourceKey,
64
64
  typedQuery,
65
65
  withQuery
66
- } from "./chunk-XXEHPPNS.js";
66
+ } from "./chunk-AHAW3TOS.js";
67
+ import {
68
+ DEFAULT_DECISION_POLICY,
69
+ MESSAGE_PARSING,
70
+ THREAD_COLUMNS,
71
+ mailOwnText,
72
+ queryFilter,
73
+ registrableOf,
74
+ scoreGroup,
75
+ validateFields
76
+ } from "./chunk-OOKMABOJ.js";
67
77
  import {
68
78
  Command,
69
79
  FETCH,
@@ -93,21 +103,11 @@ import {
93
103
  snakeKeys,
94
104
  withSettingDefaults,
95
105
  withoutSetting
96
- } from "./chunk-MAGAWAPG.js";
106
+ } from "./chunk-XMHWGHID.js";
97
107
  import {
98
108
  mailHolderVariable,
99
109
  readOnlyLockOf
100
- } from "./chunk-HIHZNBR7.js";
101
- import {
102
- DEFAULT_DECISION_POLICY,
103
- MESSAGE_PARSING,
104
- THREAD_COLUMNS,
105
- mailOwnText,
106
- queryFilter,
107
- registrableOf,
108
- scoreGroup,
109
- validateFields
110
- } from "./chunk-NRLXWY4Q.js";
110
+ } from "./chunk-KUFOM3SB.js";
111
111
  import {
112
112
  DEAL_KINDS,
113
113
  KEEP_RUNS_FOR_DAYS,
@@ -125,12 +125,12 @@ import {
125
125
  time,
126
126
  timezoneOf,
127
127
  untrusted
128
- } from "./chunk-INQAQ55X.js";
128
+ } from "./chunk-JINEHQ2T.js";
129
129
  import {
130
130
  configFilePath,
131
131
  resolvePaths,
132
132
  saveConfigFile
133
- } from "./chunk-UUBV5ATQ.js";
133
+ } from "./chunk-W46O6RJ5.js";
134
134
  import {
135
135
  MAX_NEXT_STEPS,
136
136
  array,
@@ -154,10 +154,10 @@ import {
154
154
  string,
155
155
  union,
156
156
  unknown
157
- } from "./chunk-HE2F4JII.js";
157
+ } from "./chunk-VYCLOFPC.js";
158
158
  import {
159
159
  CliError
160
- } from "./chunk-ZTONSM5X.js";
160
+ } from "./chunk-2EZFUIL4.js";
161
161
  import {
162
162
  __name,
163
163
  __toESM
@@ -1796,7 +1796,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
1796
1796
  }, "createDataURL");
1797
1797
  var stringToBytes = qrcode.stringToBytes;
1798
1798
 
1799
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/attachments.js
1799
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/attachments.js
1800
1800
  var MAX_ATTACHMENT_CHARS = 2e5;
1801
1801
  var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
1802
1802
  var POLICY_SKIPS = ["not-read", "too-large"];
@@ -1835,7 +1835,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
1835
1835
  return files;
1836
1836
  }, "readAttachments");
1837
1837
 
1838
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/read.js
1838
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/read.js
1839
1839
  var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
1840
1840
  ...items.filter((item) => !suspicious(item)),
1841
1841
  ...items.filter(suspicious)
@@ -1922,11 +1922,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
1922
1922
  ${file.text.replace(/\n/g, "\n ")}`;
1923
1923
  }).join("\n"), "attachmentsText");
1924
1924
 
1925
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/bulk.js
1925
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/bulk.js
1926
1926
  var BULK = "bulk";
1927
1927
  var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
1928
1928
 
1929
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/email-input.js
1929
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/email-input.js
1930
1930
  var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
1931
1931
  const sent = date === null ? Number.NaN : Date.parse(date);
1932
1932
  return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
@@ -1946,7 +1946,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
1946
1946
  outgoing: mail.from === null ? null : mail.from.email === address
1947
1947
  }), "parsedEmail");
1948
1948
 
1949
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/presets.js
1949
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/presets.js
1950
1950
  var PRESETS = {
1951
1951
  social: {
1952
1952
  about: "notifications from social networks",
@@ -2038,7 +2038,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
2038
2038
  return false;
2039
2039
  }, "presetMatches");
2040
2040
 
2041
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/probe.js
2041
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/probe.js
2042
2042
  var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
2043
2043
  var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
2044
2044
  var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
@@ -2106,7 +2106,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
2106
2106
  };
2107
2107
  }, "probeMail");
2108
2108
 
2109
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/facts.js
2109
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/facts.js
2110
2110
  var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
2111
2111
  const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
2112
2112
  if (!grouped)
@@ -7377,7 +7377,7 @@ var PostalMime = class _PostalMime {
7377
7377
  }
7378
7378
  };
7379
7379
 
7380
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/headers.js
7380
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/headers.js
7381
7381
  var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
7382
7382
  var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
7383
7383
  var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
@@ -7424,7 +7424,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
7424
7424
  };
7425
7425
  }, "mailHeadersOf");
7426
7426
 
7427
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/parse.js
7427
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/parse.js
7428
7428
  var MAX_BODY_CHARS = 1e6;
7429
7429
  var MAX_ATTACHMENTS = 50;
7430
7430
  var BRACKETED_ID = /<[^<>\s]+>/g;
@@ -7489,13 +7489,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
7489
7489
  };
7490
7490
  }, "parseMail");
7491
7491
 
7492
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/partial.js
7492
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/partial.js
7493
7493
  var PARTIAL = "partial";
7494
7494
 
7495
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/account-key.js
7495
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/account-key.js
7496
7496
  var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
7497
7497
 
7498
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
7498
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
7499
7499
  var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
7500
7500
  var KINDS2 = {
7501
7501
  from: "string",
@@ -7564,7 +7564,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
7564
7564
  }, "storedMailRuleSet");
7565
7565
  var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
7566
7566
 
7567
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/rules.js
7567
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rules.js
7568
7568
  var DAY_MS = 24 * 60 * 60 * 1e3;
7569
7569
  var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
7570
7570
  var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
@@ -7636,7 +7636,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
7636
7636
  }, "tagsOf");
7637
7637
  var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
7638
7638
 
7639
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
7639
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
7640
7640
  var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
7641
7641
  var LOWER = ["from", "domain", "list_id", "subject"];
7642
7642
  var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
@@ -7666,7 +7666,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
7666
7666
  decidedAt: decidedAtOf(rule.decided_at)
7667
7667
  }), "ruleInput");
7668
7668
 
7669
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
7669
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
7670
7670
  var reuseOf = /* @__PURE__ */ __name((error) => {
7671
7671
  const { details } = error;
7672
7672
  return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
@@ -7727,7 +7727,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
7727
7727
  }
7728
7728
  }, "settleRuleTags");
7729
7729
 
7730
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/server-query.js
7730
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/server-query.js
7731
7731
  var DAY = 864e5;
7732
7732
  var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
7733
7733
  var narrows = /* @__PURE__ */ __name((criteria) => criteria.words.length + criteria.from.length + criteria.to.length + criteria.cc.length + criteria.subject.length + criteria.body.length > 0 || criteria.since !== void 0 || criteria.before !== void 0 || criteria.seen !== void 0 || criteria.flagged !== void 0, "narrows");
@@ -7800,7 +7800,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
7800
7800
  };
7801
7801
  }, "mailCriteriaOf");
7802
7802
 
7803
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/server-search.js
7803
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/server-search.js
7804
7804
  var refusal = {
7805
7805
  unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
7806
7806
  offline: "--backend server needs the network \u2014 not with --offline",
@@ -8015,7 +8015,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
8015
8015
  return { report, sources };
8016
8016
  }, "searchMailServer");
8017
8017
 
8018
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
8018
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
8019
8019
  var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
8020
8020
  var mailMark = strictObject({
8021
8021
  holder: string(),
@@ -8113,7 +8113,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
8113
8113
  });
8114
8114
  }), "resetMarkCommand");
8115
8115
 
8116
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/review.js
8116
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/review.js
8117
8117
  var REVIEW_THREADS = 50;
8118
8118
  var REVIEW_PER_THREAD = 50;
8119
8119
  var OWED_DAYS = 30;
@@ -8211,7 +8211,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
8211
8211
  };
8212
8212
  }, "reviewMail");
8213
8213
 
8214
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
8214
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
8215
8215
  var DAY2 = 864e5;
8216
8216
  var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
8217
8217
  var MAIL_REVIEW_QUERY = defineQuery({
@@ -8493,7 +8493,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
8493
8493
  saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
8494
8494
  }), "mailReviewCommand");
8495
8495
 
8496
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
8496
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
8497
8497
  var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
8498
8498
  var MAIL_BULK_SETTINGS = [
8499
8499
  {
@@ -8549,7 +8549,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
8549
8549
  };
8550
8550
  }, "bulkTriageOf");
8551
8551
 
8552
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
8552
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
8553
8553
  var absentAccount = /* @__PURE__ */ __name((error) => {
8554
8554
  if (error instanceof CliError && error.code === "not_found")
8555
8555
  return void 0;
@@ -8867,25 +8867,30 @@ var leftOut = /* @__PURE__ */ __name((lane, what, key) => ({
8867
8867
  resource: lane,
8868
8868
  reason: `${what} left out: memo's MCP server denies ${key}`
8869
8869
  }), "leftOut");
8870
- var lanesFor = /* @__PURE__ */ __name((command, asked) => {
8870
+ var lanesFor = /* @__PURE__ */ __name((command, asked, denied = []) => {
8871
8871
  const lanes = asked ?? [...RESOURCES_SEARCHED];
8872
- const denied = /* @__PURE__ */ __name((key) => grantedLevel(command, key) === "deny", "denied");
8872
+ const granted2 = /* @__PURE__ */ __name((key) => grantedLevel(command, key) === "deny", "granted");
8873
8873
  const skipped = [];
8874
8874
  const hidden = /* @__PURE__ */ new Set();
8875
8875
  const off = /* @__PURE__ */ new Set();
8876
8876
  for (const gate of LANE_GATES) {
8877
8877
  if (!lanes.includes(gate.lane))
8878
8878
  continue;
8879
- if (denied(gate.key)) {
8879
+ if (granted2(gate.key)) {
8880
8880
  off.add(gate.lane);
8881
8881
  skipped.push(leftOut(gate.lane, gate.lane, gate.key));
8882
8882
  continue;
8883
8883
  }
8884
- for (const [kind, key] of Object.entries(gate.kinds))
8885
- if (denied(key)) {
8884
+ for (const [kind, key] of Object.entries(gate.kinds)) {
8885
+ const saved = denied.find((one) => one.kind === kind);
8886
+ if (granted2(key)) {
8886
8887
  hidden.add(kind);
8887
8888
  skipped.push(leftOut(gate.lane, kind, key));
8889
+ } else if (saved) {
8890
+ hidden.add(kind);
8891
+ skipped.push({ code: "permission_error", resource: gate.lane, reason: saved.why });
8888
8892
  }
8893
+ }
8889
8894
  if (Object.keys(gate.kinds).every((kind) => hidden.has(kind)))
8890
8895
  off.add(gate.lane);
8891
8896
  }
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- OAuthError,
5
- OAuthErrorCode
6
- } from "./chunk-H3ZN4YLB.js";
7
3
  import {
8
4
  ACCESS_SECONDS,
9
5
  REFRESH_SECONDS,
10
6
  readStored
11
- } from "./chunk-I4HWKPQR.js";
7
+ } from "./chunk-LX3OSTBD.js";
8
+ import {
9
+ OAuthError,
10
+ OAuthErrorCode
11
+ } from "./chunk-H3ZN4YLB.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";