@wirecat/cli-memo 0.131.61 → 0.131.62

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 (149) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-WPBMSWJF.js → all-profiles-L6EBORCV.js} +5 -5
  3. package/dist/bundle/{anthropic-FZRVISSX.js → anthropic-42PADP4V.js} +2 -2
  4. package/dist/bundle/{app-server-QGIZPU4R.js → app-server-QBJG7OGQ.js} +35 -35
  5. package/dist/bundle/auto-Z4MEU5OY.js +85 -0
  6. package/dist/bundle/{bun-AO76624P.js → bun-NYSNYHAD.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-HYBE66QU.js → bun-sqlite-B46U7KI7.js} +2 -2
  8. package/dist/bundle/{chunk-233N77WN.js → chunk-2UCLF4AO.js} +273 -272
  9. package/dist/bundle/{chunk-CTRVHHBK.js → chunk-2VDRVJCR.js} +5 -5
  10. package/dist/bundle/{chunk-YRHLPKTG.js → chunk-2XVXF4RW.js} +2 -2
  11. package/dist/bundle/{chunk-IZZU4NS6.js → chunk-347UBASY.js} +3 -3
  12. package/dist/bundle/{chunk-RRHSJ7CR.js → chunk-37E74SKW.js} +62 -62
  13. package/dist/bundle/{chunk-7DPHHUSZ.js → chunk-3ZXWLFUG.js} +21 -21
  14. package/dist/bundle/{chunk-WFDGEREJ.js → chunk-4GTZSCUE.js} +2 -2
  15. package/dist/bundle/{chunk-OFERGS4J.js → chunk-4SUROBD4.js} +2 -2
  16. package/dist/bundle/{chunk-5ZVWDMDT.js → chunk-5D7BPC33.js} +1 -1
  17. package/dist/bundle/{chunk-RRPUM4RS.js → chunk-6OZ2WI7Y.js} +2 -2
  18. package/dist/bundle/{chunk-B4VCZOLF.js → chunk-724DPWN6.js} +1 -1
  19. package/dist/bundle/{chunk-4WKZ3UIZ.js → chunk-A524HPDV.js} +1 -1
  20. package/dist/bundle/{chunk-2Q55K5HY.js → chunk-ACG5QN77.js} +2 -2
  21. package/dist/bundle/{chunk-WMRR2SNG.js → chunk-B3SERZMP.js} +1 -1
  22. package/dist/bundle/{chunk-SSX6S3EG.js → chunk-DKO7WEXJ.js} +1 -1
  23. package/dist/bundle/{chunk-YVCNJKDA.js → chunk-E5JQFEIQ.js} +42 -42
  24. package/dist/bundle/{chunk-LIW42UCX.js → chunk-EGI6JHIA.js} +9 -9
  25. package/dist/bundle/{chunk-2UXFM5GE.js → chunk-FC5PK6M6.js} +12 -12
  26. package/dist/bundle/{chunk-6YK3RZZJ.js → chunk-FD3OQYFL.js} +4 -4
  27. package/dist/bundle/{chunk-HLTGPK6P.js → chunk-FG4Q6T72.js} +4 -4
  28. package/dist/bundle/{chunk-ETYD55QD.js → chunk-FH4P5UQA.js} +3 -3
  29. package/dist/bundle/{chunk-7CKXTTZG.js → chunk-FWRBJAQZ.js} +2 -2
  30. package/dist/bundle/{chunk-F6E7DSJO.js → chunk-H3COKFXP.js} +98 -32
  31. package/dist/bundle/{chunk-6NHJ4TTJ.js → chunk-HGNWJJDT.js} +336 -335
  32. package/dist/bundle/{chunk-OQSOQYSQ.js → chunk-HKC7GDJD.js} +4 -4
  33. package/dist/bundle/{chunk-3FDJSMLJ.js → chunk-HMJ3D7XE.js} +5 -4
  34. package/dist/bundle/{chunk-XYFYZP2N.js → chunk-I5L7MLZ6.js} +1 -1
  35. package/dist/bundle/{chunk-3FPF5DBU.js → chunk-K5VF47E2.js} +5 -5
  36. package/dist/bundle/{chunk-KZRBIHQL.js → chunk-KREN56SX.js} +5 -5
  37. package/dist/bundle/{chunk-K6FQVROA.js → chunk-LK6D26RK.js} +21 -21
  38. package/dist/bundle/{chunk-6AEQACVV.js → chunk-MWAXS4BX.js} +7 -7
  39. package/dist/bundle/{chunk-D4PK5OXW.js → chunk-NZJUMLTD.js} +1 -1
  40. package/dist/bundle/{chunk-UTUUXAPS.js → chunk-O2NQCWRM.js} +28 -28
  41. package/dist/bundle/{chunk-35OBIX5A.js → chunk-OXBETHGN.js} +8 -8
  42. package/dist/bundle/{chunk-OIHKFGHK.js → chunk-PKUBC2ME.js} +3 -3
  43. package/dist/bundle/{chunk-7ETYPYIN.js → chunk-Q3VEUHC7.js} +12 -12
  44. package/dist/bundle/{chunk-RT476OFI.js → chunk-RGZUDHAQ.js} +7 -7
  45. package/dist/bundle/{chunk-UTSMQ7KI.js → chunk-RLX5SC2X.js} +1 -1
  46. package/dist/bundle/{chunk-PSYZ33UQ.js → chunk-RP6VV35S.js} +1 -1
  47. package/dist/bundle/{chunk-37ILRM2G.js → chunk-RTLQHLHG.js} +4 -4
  48. package/dist/bundle/{chunk-4HLYKLGJ.js → chunk-SIBQ34LX.js} +1 -1
  49. package/dist/bundle/{chunk-JAJSTFBB.js → chunk-SIJA2UYC.js} +6 -6
  50. package/dist/bundle/{chunk-XT7EJLA4.js → chunk-SJ36WSEI.js} +4 -4
  51. package/dist/bundle/{chunk-MQCBJGXA.js → chunk-SJ55SMBE.js} +9 -9
  52. package/dist/bundle/{chunk-I6LNI45S.js → chunk-SOQGV3ZM.js} +5 -5
  53. package/dist/bundle/{chunk-5SD4CV2D.js → chunk-TBSWOVM3.js} +571 -293
  54. package/dist/bundle/{chunk-STXMSLU6.js → chunk-TKPIS4G2.js} +1 -1
  55. package/dist/bundle/{chunk-XU7UER3B.js → chunk-TSKGEK2S.js} +10 -10
  56. package/dist/bundle/{chunk-2VMZLQ5K.js → chunk-V7TJSYFK.js} +2 -2
  57. package/dist/bundle/{chunk-KGZM5WYK.js → chunk-VTKLHYCZ.js} +4 -4
  58. package/dist/bundle/{chunk-7E46JN6V.js → chunk-VX4HNQLN.js} +2 -2
  59. package/dist/bundle/{chunk-OEPBIWHI.js → chunk-WDWKG7FJ.js} +150 -150
  60. package/dist/bundle/{chunk-OWVHNTY6.js → chunk-WDZOEBTE.js} +6 -6
  61. package/dist/bundle/{chunk-7NKBX7FC.js → chunk-XVREIQ2N.js} +2 -2
  62. package/dist/bundle/{chunk-R7ZD7TNI.js → chunk-XX37LSNV.js} +1 -1
  63. package/dist/bundle/{chunk-Y264FW55.js → chunk-ZUQXDJ7A.js} +1 -1
  64. package/dist/bundle/{command-contract-4TGN6GSP.js → command-contract-SIXWLKAS.js} +11 -11
  65. package/dist/bundle/{decode-S3PPQHID.js → decode-2Z4GCIGA.js} +2 -2
  66. package/dist/bundle/{echarts-AH6U7X2S.js → echarts-JADCSUD7.js} +2 -2
  67. package/dist/bundle/{embed-4NSZECMB.js → embed-ZLEPINEK.js} +3 -3
  68. package/dist/bundle/{embedder-EGRA7YEY.js → embedder-E3DHPZCK.js} +6 -6
  69. package/dist/bundle/{entry-O3V72WZP.js → entry-SFLEGFSN.js} +4 -4
  70. package/dist/bundle/failure-B33C3BFU.js +65 -0
  71. package/dist/bundle/{first-run-S7RRDIGX.js → first-run-ZKDGFY6P.js} +5 -5
  72. package/dist/bundle/{first-screen-YKJAQUVE.js → first-screen-IQEU7XF2.js} +12 -12
  73. package/dist/bundle/{instructions-ETUUZKBM.js → instructions-ECXOBMWS.js} +1 -1
  74. package/dist/bundle/{mcp-J3K7RC5W.js → mcp-Y4XMDC5Q.js} +35 -35
  75. package/dist/bundle/memo.js +6 -6
  76. package/dist/bundle/{node-O4XVOEGO.js → node-A6363DJ4.js} +2 -2
  77. package/dist/bundle/{node-sqlite-PC3K43U7.js → node-sqlite-FA2P77PW.js} +3 -3
  78. package/dist/bundle/{oauth-MBJUEG2Z.js → oauth-DBGARGR7.js} +4 -4
  79. package/dist/bundle/{open-5FAYV6JM.js → open-5YYG2VWH.js} +2 -2
  80. package/dist/bundle/{openai-57CRSGLH.js → openai-BPVP7TZ7.js} +7 -7
  81. package/dist/bundle/{process-NAW4COYH.js → process-DGPZRHQA.js} +1 -1
  82. package/dist/bundle/{program-CFJAGFYD.js → program-DSQWICNB.js} +584 -281
  83. package/dist/bundle/{prompt-FT2MMVS7.js → prompt-NTAZWPWA.js} +2 -2
  84. package/dist/bundle/{recognize-PEYPOI3Q.js → recognize-OGEP5VD3.js} +1 -1
  85. package/dist/bundle/{remote-FQAXACFW.js → remote-DER2PFH6.js} +4 -4
  86. package/dist/bundle/{rerank-4KEB4X6T.js → rerank-PB5ACFHS.js} +4 -4
  87. package/dist/bundle/{serve-LCTIHO37.js → serve-KNEY4BXK.js} +6 -6
  88. package/dist/bundle/server-IQILK5YP.js +61 -0
  89. package/dist/bundle/server-NKI7SVK5.js +48 -0
  90. package/dist/bundle/{server-XQLRMM73.js → server-ZHFC3PIP.js} +55 -52
  91. package/dist/bundle/{state-YF4M4RHC.js → state-JMCWHHZM.js} +3 -3
  92. package/dist/bundle/{store-EQEMYMCC.js → store-6H4FPFTX.js} +9 -9
  93. package/dist/bundle/store-maintenance-command-IFVWSQMJ.js +47 -0
  94. package/dist/bundle/update-LR5BVLBD.js +68 -0
  95. package/dist/config-issues.d.ts +4 -1
  96. package/dist/config-issues.d.ts.map +1 -1
  97. package/dist/config-issues.js +6 -2
  98. package/dist/config-issues.js.map +1 -1
  99. package/dist/digest/command.d.ts.map +1 -1
  100. package/dist/digest/command.js +11 -7
  101. package/dist/digest/command.js.map +1 -1
  102. package/dist/digest/digest.d.ts +29 -4
  103. package/dist/digest/digest.d.ts.map +1 -1
  104. package/dist/digest/digest.js +124 -39
  105. package/dist/digest/digest.js.map +1 -1
  106. package/dist/digest/sync-health.d.ts +51 -0
  107. package/dist/digest/sync-health.d.ts.map +1 -0
  108. package/dist/digest/sync-health.js +116 -0
  109. package/dist/digest/sync-health.js.map +1 -0
  110. package/dist/digest/tasks.d.ts +38 -0
  111. package/dist/digest/tasks.d.ts.map +1 -0
  112. package/dist/digest/tasks.js +108 -0
  113. package/dist/digest/tasks.js.map +1 -0
  114. package/dist/digest/text.d.ts.map +1 -1
  115. package/dist/digest/text.js +9 -2
  116. package/dist/digest/text.js.map +1 -1
  117. package/dist/knowledge/messenger-sync.d.ts +5 -0
  118. package/dist/knowledge/messenger-sync.d.ts.map +1 -1
  119. package/dist/knowledge/messenger-sync.js +12 -9
  120. package/dist/knowledge/messenger-sync.js.map +1 -1
  121. package/dist/mcp/catalogue.d.ts.map +1 -1
  122. package/dist/mcp/catalogue.js +5 -3
  123. package/dist/mcp/catalogue.js.map +1 -1
  124. package/dist/mcp/granted.d.ts +13 -0
  125. package/dist/mcp/granted.d.ts.map +1 -0
  126. package/dist/mcp/granted.js +19 -0
  127. package/dist/mcp/granted.js.map +1 -0
  128. package/dist/search/command.d.ts.map +1 -1
  129. package/dist/search/command.js +10 -3
  130. package/dist/search/command.js.map +1 -1
  131. package/dist/search/lane-gates.d.ts +30 -0
  132. package/dist/search/lane-gates.d.ts.map +1 -0
  133. package/dist/search/lane-gates.js +59 -0
  134. package/dist/search/lane-gates.js.map +1 -0
  135. package/dist/search/search.d.ts +3 -2
  136. package/dist/search/search.d.ts.map +1 -1
  137. package/dist/search/search.js +23 -2
  138. package/dist/search/search.js.map +1 -1
  139. package/dist/version.d.ts +1 -1
  140. package/dist/version.js +1 -1
  141. package/package.json +2 -2
  142. package/skills/morning-digest/SKILL.md +24 -10
  143. package/dist/bundle/auto-5VPCO4DD.js +0 -85
  144. package/dist/bundle/failure-CFGWWTV5.js +0 -65
  145. package/dist/bundle/server-AQTWRRAJ.js +0 -61
  146. package/dist/bundle/server-JIFODLCU.js +0 -48
  147. package/dist/bundle/store-maintenance-command-7IC3LTYY.js +0 -47
  148. package/dist/bundle/update-T237KLFA.js +0 -68
  149. /package/dist/bundle/{chunk-GFNWVGLD.js → chunk-C3XNJQD7.js} +0 -0
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  envName,
5
5
  readOnlyLockOf
6
- } from "./chunk-PSYZ33UQ.js";
6
+ } from "./chunk-RP6VV35S.js";
7
7
  import {
8
8
  CAPABILITY_STATEMENTS,
9
9
  storeCapable
10
- } from "./chunk-I6LNI45S.js";
10
+ } from "./chunk-SOQGV3ZM.js";
11
11
  import {
12
12
  catchCrashes
13
13
  } from "./chunk-RCGFSWZE.js";
@@ -21,10 +21,10 @@ import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/entry.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/entry.js
25
25
  import { spawn as spawn2 } from "node:child_process";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
28
28
  import { spawn, spawnSync } from "node:child_process";
29
29
  import { readFileSync } from "node:fs";
30
30
  import { dirname } from "node:path";
@@ -112,14 +112,14 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
112
112
  });
113
113
  }), "relay");
114
114
 
115
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
115
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
116
116
  import { appendFileSync } from "node:fs";
117
117
  var logVersion = /* @__PURE__ */ __name((file) => {
118
118
  appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
119
119
  `);
120
120
  }, "logVersion");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/entry.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/entry.js
123
123
  var processIo = /* @__PURE__ */ __name(() => ({
124
124
  argv: process.argv,
125
125
  env: process.env,
@@ -173,8 +173,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
173
173
  if (command.optsWithGlobals().dryRun === true)
174
174
  return;
175
175
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
176
- import("./first-run-S7RRDIGX.js"),
177
- import("./command-contract-4TGN6GSP.js")
176
+ import("./first-run-ZKDGFY6P.js"),
177
+ import("./command-contract-SIXWLKAS.js")
178
178
  ]);
179
179
  await setupAtStart({
180
180
  command: entry.app.command,
@@ -189,7 +189,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
189
189
  ask: /* @__PURE__ */ __name(async (question, command) => {
190
190
  if (headless(command) || io.stdin.isTTY !== true)
191
191
  return false;
192
- const { readSecret } = await import("./prompt-FT2MMVS7.js");
192
+ const { readSecret } = await import("./prompt-NTAZWPWA.js");
193
193
  const answer = await readSecret(`${question} [y/N] `, {
194
194
  input: io.stdin,
195
195
  output: io.stderr,
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -3,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answers,
5
5
  itemAnswer
6
- } from "./chunk-3FDJSMLJ.js";
6
+ } from "./chunk-HMJ3D7XE.js";
7
7
  import {
8
8
  loadConfig,
9
9
  updateConfig
10
- } from "./chunk-F6E7DSJO.js";
10
+ } from "./chunk-H3COKFXP.js";
11
11
  import {
12
12
  failingNotice,
13
13
  recordRun
14
- } from "./chunk-5SD4CV2D.js";
14
+ } from "./chunk-TBSWOVM3.js";
15
15
  import {
16
16
  InvalidArgumentError,
17
17
  LOCAL_READ,
18
18
  LOCAL_WRITE,
19
19
  annotate
20
- } from "./chunk-OEPBIWHI.js";
20
+ } from "./chunk-WDWKG7FJ.js";
21
21
  import {
22
22
  installerOf
23
23
  } from "./chunk-IK6KH3RE.js";
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  listen
5
- } from "./chunk-4HLYKLGJ.js";
5
+ } from "./chunk-SIBQ34LX.js";
6
6
  import {
7
7
  ownerLogin
8
- } from "./chunk-2VMZLQ5K.js";
8
+ } from "./chunk-V7TJSYFK.js";
9
9
  import {
10
10
  WebStandardStreamableHTTPServerTransport,
11
11
  createMcpHandler,
@@ -22,7 +22,7 @@ import {
22
22
  calledTools,
23
23
  httpActivityFile,
24
24
  httpLock
25
- } from "./chunk-37ILRM2G.js";
25
+ } from "./chunk-RTLQHLHG.js";
26
26
  import {
27
27
  CliError
28
28
  } from "./chunk-4ZW6ZJ2V.js";
@@ -30,7 +30,7 @@ import {
30
30
  __name
31
31
  } from "./chunk-ZVVMGPBJ.js";
32
32
 
33
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
33
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
34
34
  import { randomUUID } from "node:crypto";
35
35
  var MCP_PATH = "/mcp";
36
36
  var AS_METADATA = "/.well-known/oauth-authorization-server";
@@ -4,10 +4,10 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-OQSOQYSQ.js";
7
+ } from "./chunk-HKC7GDJD.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-D4PK5OXW.js";
10
+ } from "./chunk-NZJUMLTD.js";
11
11
  import {
12
12
  CliError
13
13
  } from "./chunk-4ZW6ZJ2V.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.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-OIHKFGHK.js";
6
+ } from "./chunk-PKUBC2ME.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -14,7 +14,7 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/speech/decode.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/speech/decode.js
18
18
  import { spawn } from "node:child_process";
19
19
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
20
20
  import { createRequire } from "node:module";
@@ -27,22 +27,23 @@ import {
27
27
  serverSearchOptions,
28
28
  summaryOf,
29
29
  unansweredHours
30
- } from "./chunk-5SD4CV2D.js";
30
+ } from "./chunk-TBSWOVM3.js";
31
31
  import {
32
32
  MAIL_HIT_UNTRUSTED,
33
33
  messagesAnswer,
34
34
  offsetOf,
35
35
  shownOf
36
- } from "./chunk-K6FQVROA.js";
36
+ } from "./chunk-LK6D26RK.js";
37
37
  import {
38
38
  messageItem
39
- } from "./chunk-YVCNJKDA.js";
39
+ } from "./chunk-E5JQFEIQ.js";
40
40
  import {
41
41
  knownPermissionKeys
42
- } from "./chunk-7DPHHUSZ.js";
42
+ } from "./chunk-3ZXWLFUG.js";
43
43
  import {
44
44
  AGENDA_DEFAULTS,
45
45
  DEFAULT_BACKEND,
46
+ RESOURCES_SEARCHED,
46
47
  REVIEW_DAYS,
47
48
  SERVER_BOUNDS,
48
49
  SERVER_SEARCH_KEY,
@@ -62,7 +63,7 @@ import {
62
63
  sourceKey,
63
64
  typedQuery,
64
65
  withQuery
65
- } from "./chunk-233N77WN.js";
66
+ } from "./chunk-2UCLF4AO.js";
66
67
  import {
67
68
  Command,
68
69
  FETCH,
@@ -89,16 +90,17 @@ import {
89
90
  readConfigFile,
90
91
  readConfigText,
91
92
  renderAnswer,
93
+ rootOf,
92
94
  settingPathOf,
93
95
  sharedCommand,
94
96
  snakeKeys,
95
97
  withSettingDefaults,
96
98
  withoutSetting
97
- } from "./chunk-OEPBIWHI.js";
99
+ } from "./chunk-WDWKG7FJ.js";
98
100
  import {
99
101
  mailHolderVariable,
100
102
  readOnlyLockOf
101
- } from "./chunk-PSYZ33UQ.js";
103
+ } from "./chunk-RP6VV35S.js";
102
104
  import {
103
105
  DEFAULT_DECISION_POLICY,
104
106
  MESSAGE_PARSING,
@@ -111,7 +113,7 @@ import {
111
113
  registrableOf,
112
114
  scoreGroup,
113
115
  validateFields
114
- } from "./chunk-6NHJ4TTJ.js";
116
+ } from "./chunk-HGNWJJDT.js";
115
117
  import {
116
118
  count,
117
119
  dateRange,
@@ -122,7 +124,7 @@ import {
122
124
  time,
123
125
  timezoneOf,
124
126
  untrusted
125
- } from "./chunk-RRHSJ7CR.js";
127
+ } from "./chunk-37E74SKW.js";
126
128
  import {
127
129
  configFilePath,
128
130
  resolvePaths,
@@ -159,7 +161,7 @@ import {
159
161
  __toESM
160
162
  } from "./chunk-ZVVMGPBJ.js";
161
163
 
162
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/attachments.js
164
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/attachments.js
163
165
  var MAX_ATTACHMENT_CHARS = 2e5;
164
166
  var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
165
167
  var POLICY_SKIPS = ["not-read", "too-large"];
@@ -198,7 +200,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
198
200
  return files;
199
201
  }, "readAttachments");
200
202
 
201
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/read.js
203
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/read.js
202
204
  var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
203
205
  ...items.filter((item) => !suspicious(item)),
204
206
  ...items.filter(suspicious)
@@ -285,11 +287,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
285
287
  ${file.text.replace(/\n/g, "\n ")}`;
286
288
  }).join("\n"), "attachmentsText");
287
289
 
288
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/bulk.js
290
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/bulk.js
289
291
  var BULK = "bulk";
290
292
  var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
291
293
 
292
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/email-input.js
294
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/email-input.js
293
295
  var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
294
296
  const sent = date === null ? Number.NaN : Date.parse(date);
295
297
  return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
@@ -309,7 +311,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
309
311
  outgoing: mail.from === null ? null : mail.from.email === address
310
312
  }), "parsedEmail");
311
313
 
312
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/presets.js
314
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/presets.js
313
315
  var PRESETS = {
314
316
  social: {
315
317
  about: "notifications from social networks",
@@ -401,7 +403,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
401
403
  return false;
402
404
  }, "presetMatches");
403
405
 
404
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/probe.js
406
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/probe.js
405
407
  var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
406
408
  var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
407
409
  var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
@@ -469,7 +471,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
469
471
  };
470
472
  }, "probeMail");
471
473
 
472
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/facts.js
474
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/facts.js
473
475
  var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
474
476
  const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
475
477
  if (!grouped)
@@ -5740,7 +5742,7 @@ var PostalMime = class _PostalMime {
5740
5742
  }
5741
5743
  };
5742
5744
 
5743
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/headers.js
5745
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/headers.js
5744
5746
  var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
5745
5747
  var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
5746
5748
  var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
@@ -5787,7 +5789,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
5787
5789
  };
5788
5790
  }, "mailHeadersOf");
5789
5791
 
5790
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/parse.js
5792
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/parse.js
5791
5793
  var MAX_BODY_CHARS = 1e6;
5792
5794
  var MAX_ATTACHMENTS = 50;
5793
5795
  var BRACKETED_ID = /<[^<>\s]+>/g;
@@ -5852,13 +5854,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
5852
5854
  };
5853
5855
  }, "parseMail");
5854
5856
 
5855
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/partial.js
5857
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/partial.js
5856
5858
  var PARTIAL = "partial";
5857
5859
 
5858
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/account-key.js
5860
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/account-key.js
5859
5861
  var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
5860
5862
 
5861
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
5863
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
5862
5864
  var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
5863
5865
  var KINDS = {
5864
5866
  from: "string",
@@ -5927,7 +5929,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
5927
5929
  }, "storedMailRuleSet");
5928
5930
  var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
5929
5931
 
5930
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/rules.js
5932
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/rules.js
5931
5933
  var DAY_MS = 24 * 60 * 60 * 1e3;
5932
5934
  var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
5933
5935
  var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
@@ -5999,7 +6001,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
5999
6001
  }, "tagsOf");
6000
6002
  var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
6001
6003
 
6002
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
6004
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
6003
6005
  var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
6004
6006
  var LOWER = ["from", "domain", "list_id", "subject"];
6005
6007
  var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
@@ -6029,7 +6031,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
6029
6031
  decidedAt: decidedAtOf(rule.decided_at)
6030
6032
  }), "ruleInput");
6031
6033
 
6032
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
6034
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
6033
6035
  var reuseOf = /* @__PURE__ */ __name((error) => {
6034
6036
  const { details } = error;
6035
6037
  return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
@@ -6090,7 +6092,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
6090
6092
  }
6091
6093
  }, "settleRuleTags");
6092
6094
 
6093
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/server-query.js
6095
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/server-query.js
6094
6096
  var DAY = 864e5;
6095
6097
  var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
6096
6098
  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");
@@ -6163,7 +6165,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
6163
6165
  };
6164
6166
  }, "mailCriteriaOf");
6165
6167
 
6166
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/server-search.js
6168
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/server-search.js
6167
6169
  var refusal = {
6168
6170
  unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
6169
6171
  offline: "--backend server needs the network \u2014 not with --offline",
@@ -6378,7 +6380,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
6378
6380
  return { report, sources };
6379
6381
  }, "searchMailServer");
6380
6382
 
6381
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
6383
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
6382
6384
  var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
6383
6385
  var mailMark = strictObject({
6384
6386
  holder: string(),
@@ -6476,7 +6478,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
6476
6478
  });
6477
6479
  }), "resetMarkCommand");
6478
6480
 
6479
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/review.js
6481
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/review.js
6480
6482
  var REVIEW_THREADS = 50;
6481
6483
  var REVIEW_PER_THREAD = 50;
6482
6484
  var OWED_DAYS = 30;
@@ -6574,7 +6576,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
6574
6576
  };
6575
6577
  }, "reviewMail");
6576
6578
 
6577
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
6579
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
6578
6580
  var DAY2 = 864e5;
6579
6581
  var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
6580
6582
  var MAIL_REVIEW_QUERY = defineQuery({
@@ -6856,7 +6858,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
6856
6858
  saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
6857
6859
  }), "mailReviewCommand");
6858
6860
 
6859
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
6861
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
6860
6862
  var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
6861
6863
  var MAIL_BULK_SETTINGS = [
6862
6864
  {
@@ -6912,7 +6914,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
6912
6914
  };
6913
6915
  }, "bulkTriageOf");
6914
6916
 
6915
- // node_modules/.pnpm/@wirecat+cli-core@0.612.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_2b92b8a5a9536cd50d24d35c3ce22b6a/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
6917
+ // node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
6916
6918
  var absentAccount = /* @__PURE__ */ __name((error) => {
6917
6919
  if (error instanceof CliError && error.code === "not_found")
6918
6920
  return void 0;
@@ -7196,6 +7198,68 @@ var mailReadCommands = sharedCommand((mail) => [
7196
7198
  conversationsCommand(mail)
7197
7199
  ]);
7198
7200
 
7201
+ // dist/mcp/granted.js
7202
+ var granted = /* @__PURE__ */ new WeakMap();
7203
+ var grantLevels = /* @__PURE__ */ __name((program, levels) => {
7204
+ granted.set(program, levels);
7205
+ }, "grantLevels");
7206
+ var grantedLevel = /* @__PURE__ */ __name((command, key) => {
7207
+ const levels = granted.get(rootOf(command));
7208
+ return levels === void 0 ? void 0 : levelFor(levels, key).level;
7209
+ }, "grantedLevel");
7210
+
7211
+ // dist/search/lane-gates.js
7212
+ var LANE_GATES = [
7213
+ {
7214
+ lane: "business",
7215
+ key: "business.list",
7216
+ // contracts, subscriptions, products and wallets have no memo command yet; their keys guard them once they do.
7217
+ kinds: {
7218
+ invoice: "invoices.list",
7219
+ payment: "payments.list",
7220
+ order: "orders.list",
7221
+ contract: "contracts.list",
7222
+ subscription: "subscriptions.list",
7223
+ product: "products.list",
7224
+ wallet: "wallets.list"
7225
+ }
7226
+ }
7227
+ ];
7228
+ var LANE_KEYS = LANE_GATES.map(({ key }) => key);
7229
+ var leftOut = /* @__PURE__ */ __name((lane, what, key) => ({
7230
+ code: "permission_error",
7231
+ resource: lane,
7232
+ reason: `${what} left out: memo's MCP server denies ${key}`
7233
+ }), "leftOut");
7234
+ var lanesFor = /* @__PURE__ */ __name((command, asked) => {
7235
+ const lanes = asked ?? [...RESOURCES_SEARCHED];
7236
+ const denied = /* @__PURE__ */ __name((key) => grantedLevel(command, key) === "deny", "denied");
7237
+ const skipped = [];
7238
+ const hidden = /* @__PURE__ */ new Set();
7239
+ const off = /* @__PURE__ */ new Set();
7240
+ for (const gate of LANE_GATES) {
7241
+ if (!lanes.includes(gate.lane))
7242
+ continue;
7243
+ if (denied(gate.key)) {
7244
+ off.add(gate.lane);
7245
+ skipped.push(leftOut(gate.lane, gate.lane, gate.key));
7246
+ continue;
7247
+ }
7248
+ for (const [kind, key] of Object.entries(gate.kinds))
7249
+ if (denied(key)) {
7250
+ hidden.add(kind);
7251
+ skipped.push(leftOut(gate.lane, kind, key));
7252
+ }
7253
+ }
7254
+ const shows = hidden.size ? { shows: /* @__PURE__ */ __name((item) => !hidden.has(item.kind), "shows") } : {};
7255
+ if (!off.size)
7256
+ return { only: asked, skipped, ...shows };
7257
+ const only = lanes.filter((lane) => !off.has(lane));
7258
+ if (!only.length)
7259
+ throw new CliError("permission_error", `search all has nothing it may read: ${skipped.map(({ reason }) => reason).join("; ")}`, { reason: "search.all-denied" });
7260
+ return { only, skipped, ...shows };
7261
+ }, "lanesFor");
7262
+
7199
7263
  // dist/config-issues.js
7200
7264
  var pathOf = /* @__PURE__ */ __name((command) => {
7201
7265
  const words2 = [];
@@ -7204,7 +7268,7 @@ var pathOf = /* @__PURE__ */ __name((command) => {
7204
7268
  return words2;
7205
7269
  }, "pathOf");
7206
7270
  var permissionKeyOf = /* @__PURE__ */ __name((command) => pathOf(command).join(".") || null, "permissionKeyOf");
7207
- var memoPermissionKeys = /* @__PURE__ */ __name((program) => knownPermissionKeys(program, permissionKeyOf, ["mcp.authority"]), "memoPermissionKeys");
7271
+ var memoPermissionKeys = /* @__PURE__ */ __name((program) => knownPermissionKeys(program, permissionKeyOf, ["mcp.authority", ...LANE_KEYS]), "memoPermissionKeys");
7208
7272
 
7209
7273
  // dist/notes/files.js
7210
7274
  import { closeSync, openSync, readdirSync, readSync } from "node:fs";
@@ -7597,6 +7661,8 @@ export {
7597
7661
  markItem,
7598
7662
  OWED_DAYS,
7599
7663
  mailReadCommands,
7664
+ grantLevels,
7665
+ lanesFor,
7600
7666
  memoPermissionKeys,
7601
7667
  NOTE_EXTENSIONS,
7602
7668
  readMemoId,