@wirecat/cli-memo 0.131.43 → 0.131.45

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 (170) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-NL4TH4VM.js → all-profiles-ZBASDAVU.js} +5 -5
  3. package/dist/bundle/{anthropic-JTVP4FKR.js → anthropic-3ZS3RCUH.js} +3 -3
  4. package/dist/bundle/{app-server-FF6PISNB.js → app-server-PQF22PMD.js} +35 -35
  5. package/dist/bundle/auto-NW7IP4ST.js +86 -0
  6. package/dist/bundle/{bun-OTDLXIRE.js → bun-3CGVV3V2.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-HXOV4SGX.js → bun-sqlite-D6T3ESTG.js} +2 -2
  8. package/dist/bundle/{chunk-GPT5MFYG.js → chunk-25MS26SH.js} +14 -9
  9. package/dist/bundle/{chunk-TVWO7K4U.js → chunk-2OYB4PWV.js} +5 -5
  10. package/dist/bundle/{chunk-NYJHYLKS.js → chunk-5IYS3BWO.js} +56 -56
  11. package/dist/bundle/{chunk-U3VDEHXY.js → chunk-5ZHM6SZW.js} +1 -1
  12. package/dist/bundle/{chunk-AH7TKAUY.js → chunk-65MK55RS.js} +53 -44
  13. package/dist/bundle/{chunk-VJ34VFZ5.js → chunk-6NQTGFAL.js} +2 -2
  14. package/dist/bundle/{chunk-CIN7A3OM.js → chunk-75EEQB2R.js} +11 -11
  15. package/dist/bundle/{chunk-MYOXBUSI.js → chunk-75RJJQ2Q.js} +10 -10
  16. package/dist/bundle/{chunk-LDQYIKJH.js → chunk-7EA6M6RA.js} +4 -4
  17. package/dist/bundle/{chunk-WCFGYCVN.js → chunk-7G63XPDR.js} +7 -7
  18. package/dist/bundle/{chunk-DTODXX7Y.js → chunk-7G7N3IUO.js} +1 -1
  19. package/dist/bundle/{chunk-LUHQEQA4.js → chunk-7WJEQ36E.js} +2 -2
  20. package/dist/bundle/{chunk-BGNGOAG6.js → chunk-AOSSO4YI.js} +6 -6
  21. package/dist/bundle/{chunk-MLVYZIXB.js → chunk-B4PZQYGP.js} +8 -8
  22. package/dist/bundle/{chunk-WBNWH2D5.js → chunk-C6GSSMDG.js} +1 -1
  23. package/dist/bundle/{chunk-Q52KLN53.js → chunk-CAPDRDQU.js} +5 -5
  24. package/dist/bundle/{chunk-6WDOIKM6.js → chunk-CGJFYMVZ.js} +7 -7
  25. package/dist/bundle/{chunk-U7MRZIBF.js → chunk-CH37NCAP.js} +3 -3
  26. package/dist/bundle/{chunk-K44PG5V3.js → chunk-CRLYBXV5.js} +31 -31
  27. package/dist/bundle/{chunk-USAH53BQ.js → chunk-CXRCADXS.js} +9 -9
  28. package/dist/bundle/{chunk-C67763MQ.js → chunk-EJ2PEYQU.js} +1 -1
  29. package/dist/bundle/{chunk-LUTZSIA6.js → chunk-EJ4X6XH2.js} +1 -1
  30. package/dist/bundle/{chunk-RCCKUVQP.js → chunk-F2VTAFIT.js} +1 -1
  31. package/dist/bundle/{chunk-2A42QHPZ.js → chunk-FMMIPFTU.js} +4 -4
  32. package/dist/bundle/{chunk-TYIENI7Z.js → chunk-FRT7URL7.js} +624 -445
  33. package/dist/bundle/{chunk-LGQZNRNK.js → chunk-G3FRUKAD.js} +258 -159
  34. package/dist/bundle/{chunk-WVZIP7Z5.js → chunk-G6TRTDHB.js} +2 -2
  35. package/dist/bundle/{chunk-5MP7XPIP.js → chunk-GBRK3WXY.js} +2 -2
  36. package/dist/bundle/{chunk-YXPAEW6N.js → chunk-GOJZ3FQY.js} +20 -20
  37. package/dist/bundle/{chunk-IJC57CPU.js → chunk-GTPWWGQI.js} +7 -7
  38. package/dist/bundle/{chunk-LSGFFIMA.js → chunk-HAPE26JK.js} +12 -12
  39. package/dist/bundle/{chunk-XCFGMQBF.js → chunk-HXCSD2XV.js} +1 -1
  40. package/dist/bundle/{chunk-ELAZVPZT.js → chunk-IAPKZSC5.js} +1 -1
  41. package/dist/bundle/{chunk-PIQUCN4T.js → chunk-IJBJ47GI.js} +2 -2
  42. package/dist/bundle/{chunk-TBHX7VF5.js → chunk-IQ2MW47B.js} +27 -27
  43. package/dist/bundle/{chunk-LAMKU426.js → chunk-IYJGFBNN.js} +5 -5
  44. package/dist/bundle/{chunk-MISLCCYA.js → chunk-KE3CYUON.js} +1 -1
  45. package/dist/bundle/{chunk-O5FX3Q4U.js → chunk-L45FSDH3.js} +1 -1
  46. package/dist/bundle/{chunk-BIVHDUAX.js → chunk-LL3Z6KA3.js} +5 -5
  47. package/dist/bundle/{chunk-L5NN6UER.js → chunk-MKVUBQEG.js} +1 -1
  48. package/dist/bundle/{chunk-SKV7GYNB.js → chunk-NB267XRJ.js} +4 -4
  49. package/dist/bundle/{chunk-RJM4D644.js → chunk-NBA3GJBR.js} +1011 -726
  50. package/dist/bundle/{chunk-VQPUADFF.js → chunk-NTFEJ52I.js} +1 -1
  51. package/dist/bundle/{chunk-2LHLMF3R.js → chunk-OMBFF6Z6.js} +7 -1
  52. package/dist/bundle/{chunk-J3V25QFZ.js → chunk-OT4CLMVF.js} +3 -3
  53. package/dist/bundle/{chunk-DYX5ATS5.js → chunk-OTOKJAYR.js} +3 -3
  54. package/dist/bundle/{chunk-RENUU3BQ.js → chunk-PMUAUR5S.js} +4 -4
  55. package/dist/bundle/{chunk-5HCWKNSM.js → chunk-PXSGUVZP.js} +43 -43
  56. package/dist/bundle/{chunk-FJVQDWVV.js → chunk-SK3TPK5Y.js} +4 -4
  57. package/dist/bundle/{chunk-PFWAQGHE.js → chunk-TKFG75MJ.js} +2 -2
  58. package/dist/bundle/{chunk-G7QBCTF6.js → chunk-TVZEELSS.js} +339 -351
  59. package/dist/bundle/{chunk-XFSE3ZGY.js → chunk-U4J7TAOW.js} +1 -1
  60. package/dist/bundle/{chunk-3Z4BMSVX.js → chunk-UP2K5XUA.js} +3 -3
  61. package/dist/bundle/{chunk-N5K6NZ2F.js → chunk-WGX73SAA.js} +2 -2
  62. package/dist/bundle/{chunk-GCTZK5QV.js → chunk-YDNM5KYV.js} +4 -4
  63. package/dist/bundle/{chunk-YHQ2XNNJ.js → chunk-YWTWDX4F.js} +1 -1
  64. package/dist/bundle/{chunk-IRHRNK2E.js → chunk-ZJXAYYLF.js} +1 -1
  65. package/dist/bundle/{command-contract-7LYHZI4Y.js → command-contract-K3GJRRXT.js} +11 -11
  66. package/dist/bundle/{decode-7PFJ3AKS.js → decode-TTMBMSGQ.js} +2 -2
  67. package/dist/bundle/{echarts-YDLD5JI2.js → echarts-7XN2RLJT.js} +2 -2
  68. package/dist/bundle/{embed-YDR7WSPK.js → embed-UKTHDQH5.js} +3 -3
  69. package/dist/bundle/{embedder-KQYPQKZA.js → embedder-SCKLAVKW.js} +6 -6
  70. package/dist/bundle/{entry-FD4B2GID.js → entry-VQRYB2HE.js} +4 -4
  71. package/dist/bundle/failure-JHW2U2OF.js +66 -0
  72. package/dist/bundle/{first-run-C6HSAXYV.js → first-run-RL6ZRY3Y.js} +5 -5
  73. package/dist/bundle/{first-screen-ZM3LZRP4.js → first-screen-CRURWNKP.js} +12 -12
  74. package/dist/bundle/{instructions-O7YN5F6D.js → instructions-KGU67SPR.js} +1 -1
  75. package/dist/bundle/{mcp-X5XYKVTY.js → mcp-CSN7BDNG.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-YP265UUP.js → node-S5LQLVMO.js} +2 -2
  78. package/dist/bundle/{node-sqlite-K3PWKXTB.js → node-sqlite-PFCIEDPX.js} +3 -3
  79. package/dist/bundle/{oauth-CUIDTJ5Z.js → oauth-KJOGYDPV.js} +4 -4
  80. package/dist/bundle/{open-SHUV2BPO.js → open-TPBENKAD.js} +2 -2
  81. package/dist/bundle/{openai-LSBA5CCQ.js → openai-UOYTHO32.js} +7 -7
  82. package/dist/bundle/{process-POGO7VDZ.js → process-JWKE7GPV.js} +1 -1
  83. package/dist/bundle/{program-DZ4TM3PS.js → program-RJ6X4DXE.js} +945 -425
  84. package/dist/bundle/{prompt-V7SEBV7G.js → prompt-5HQ3Z7ZS.js} +2 -2
  85. package/dist/bundle/{recognize-DK3N2GVZ.js → recognize-5ILXEPII.js} +1 -1
  86. package/dist/bundle/{remote-XYFCKYIQ.js → remote-WIN3HJII.js} +4 -4
  87. package/dist/bundle/{rerank-COKJGAIB.js → rerank-JKHDSEBI.js} +4 -4
  88. package/dist/bundle/{serve-KW3AGGTZ.js → serve-VMHFRDYH.js} +6 -6
  89. package/dist/bundle/server-IBJ23GCB.js +48 -0
  90. package/dist/bundle/server-SNWCFMJN.js +61 -0
  91. package/dist/bundle/{server-72N5XGA6.js → server-TKWVP4OJ.js} +50 -50
  92. package/dist/bundle/{state-KHK3S4AC.js → state-OWOLD7JI.js} +3 -3
  93. package/dist/bundle/{store-GGUL63V7.js → store-6GFFSNRY.js} +9 -9
  94. package/dist/bundle/store-maintenance-command-7DMPWFT4.js +48 -0
  95. package/dist/bundle/update-KSB7VYAW.js +69 -0
  96. package/dist/context/command.d.ts +4 -0
  97. package/dist/context/command.d.ts.map +1 -1
  98. package/dist/context/command.js +7 -5
  99. package/dist/context/command.js.map +1 -1
  100. package/dist/context/context.d.ts.map +1 -1
  101. package/dist/context/context.js +4 -3
  102. package/dist/context/context.js.map +1 -1
  103. package/dist/contract-overrides/skill.js +1 -1
  104. package/dist/contract-overrides/skill.js.map +1 -1
  105. package/dist/digest/command.d.ts +9 -0
  106. package/dist/digest/command.d.ts.map +1 -0
  107. package/dist/digest/command.js +59 -0
  108. package/dist/digest/command.js.map +1 -0
  109. package/dist/digest/digest.d.ts +62 -0
  110. package/dist/digest/digest.d.ts.map +1 -0
  111. package/dist/digest/digest.js +347 -0
  112. package/dist/digest/digest.js.map +1 -0
  113. package/dist/digest/known.d.ts +7 -0
  114. package/dist/digest/known.d.ts.map +1 -0
  115. package/dist/digest/known.js +28 -0
  116. package/dist/digest/known.js.map +1 -0
  117. package/dist/digest/text.d.ts +8 -0
  118. package/dist/digest/text.d.ts.map +1 -0
  119. package/dist/digest/text.js +47 -0
  120. package/dist/digest/text.js.map +1 -0
  121. package/dist/doctor/command.d.ts +1 -1
  122. package/dist/examples.d.ts.map +1 -1
  123. package/dist/examples.js +3 -2
  124. package/dist/examples.js.map +1 -1
  125. package/dist/knowledge/command.d.ts.map +1 -1
  126. package/dist/knowledge/command.js +17 -33
  127. package/dist/knowledge/command.js.map +1 -1
  128. package/dist/knowledge/project-context.d.ts +1 -0
  129. package/dist/knowledge/project-context.d.ts.map +1 -1
  130. package/dist/knowledge/project-context.js +6 -3
  131. package/dist/knowledge/project-context.js.map +1 -1
  132. package/dist/mail/findings-command.d.ts.map +1 -1
  133. package/dist/mail/findings-command.js +20 -3
  134. package/dist/mail/findings-command.js.map +1 -1
  135. package/dist/mail/findings-duplicates.d.ts +19 -0
  136. package/dist/mail/findings-duplicates.d.ts.map +1 -0
  137. package/dist/mail/findings-duplicates.js +159 -0
  138. package/dist/mail/findings-duplicates.js.map +1 -0
  139. package/dist/program.d.ts.map +1 -1
  140. package/dist/program.js +1 -63
  141. package/dist/program.js.map +1 -1
  142. package/dist/reasons.d.ts.map +1 -1
  143. package/dist/reasons.js +6 -0
  144. package/dist/reasons.js.map +1 -1
  145. package/dist/review/command.d.ts.map +1 -1
  146. package/dist/review/command.js +4 -8
  147. package/dist/review/command.js.map +1 -1
  148. package/dist/review/status.d.ts +9 -0
  149. package/dist/review/status.d.ts.map +1 -1
  150. package/dist/review/status.js +11 -6
  151. package/dist/review/status.js.map +1 -1
  152. package/dist/search/command.d.ts.map +1 -1
  153. package/dist/search/command.js +3 -1
  154. package/dist/search/command.js.map +1 -1
  155. package/dist/search/search.d.ts.map +1 -1
  156. package/dist/search/search.js +10 -2
  157. package/dist/search/search.js.map +1 -1
  158. package/dist/version.d.ts +1 -1
  159. package/dist/version.js +1 -1
  160. package/package.json +3 -3
  161. package/skills/cli-memo/SKILL.md +3 -1
  162. package/skills/cli-memo/topics/projects.md +2 -1
  163. package/skills/morning-digest/SKILL.md +50 -0
  164. package/dist/bundle/auto-KUNM4M5S.js +0 -86
  165. package/dist/bundle/failure-FOZGSUOL.js +0 -66
  166. package/dist/bundle/server-QZPRR4H3.js +0 -48
  167. package/dist/bundle/server-VPEPJSQM.js +0 -61
  168. package/dist/bundle/store-maintenance-command-3KI6LYZB.js +0 -48
  169. package/dist/bundle/update-OLU3IRV6.js +0 -69
  170. /package/dist/bundle/{chunk-SWSCSMAU.js → chunk-DL5LDAOS.js} +0 -0
@@ -13,7 +13,7 @@ import {
13
13
  refuseLacking,
14
14
  servicesFor,
15
15
  throughWrapper
16
- } from "./chunk-G7QBCTF6.js";
16
+ } from "./chunk-TVZEELSS.js";
17
17
  import {
18
18
  CEILING_KEY,
19
19
  LOG_ATTRIBUTES,
@@ -38,21 +38,21 @@ import {
38
38
  rememberAccount,
39
39
  rootOf2 as rootOf,
40
40
  skipFlagFor
41
- } from "./chunk-LGQZNRNK.js";
41
+ } from "./chunk-G3FRUKAD.js";
42
42
  import {
43
43
  isCliFailure,
44
44
  providerErrorKey
45
- } from "./chunk-WCFGYCVN.js";
45
+ } from "./chunk-7G63XPDR.js";
46
46
  import {
47
47
  MESSENGER_CHANGE_REFUSAL,
48
48
  readOnlyRefusal
49
- } from "./chunk-RCCKUVQP.js";
49
+ } from "./chunk-F2VTAFIT.js";
50
50
  import {
51
51
  servingProfiles
52
- } from "./chunk-PFWAQGHE.js";
52
+ } from "./chunk-TKFG75MJ.js";
53
53
  import {
54
54
  openStore
55
- } from "./chunk-RJM4D644.js";
55
+ } from "./chunk-NBA3GJBR.js";
56
56
  import {
57
57
  logRecordOf,
58
58
  realSleep,
@@ -66,7 +66,7 @@ import {
66
66
  __name
67
67
  } from "./chunk-ZVVMGPBJ.js";
68
68
 
69
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
69
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
70
70
  import { openSync } from "node:fs";
71
71
  import { createInterface } from "node:readline";
72
72
  import { ReadStream } from "node:tty";
@@ -121,10 +121,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
121
121
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
122
122
  }, "terminalAsker");
123
123
 
124
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/guard.js
124
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/guard.js
125
125
  import { randomUUID } from "node:crypto";
126
126
 
127
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/flood.js
127
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/flood.js
128
128
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
129
129
  import { dirname, join } from "node:path";
130
130
  var MOST_DEADLINES = 50;
@@ -208,11 +208,11 @@ var FloodMemory = class {
208
208
  }
209
209
  };
210
210
 
211
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/journal.js
211
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/journal.js
212
212
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
213
213
  import { dirname as dirname3, join as join2 } from "node:path";
214
214
 
215
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
215
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
216
216
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
217
217
  import { dirname as dirname2 } from "node:path";
218
218
  var LOCK_WAIT_MS = 5e3;
@@ -279,7 +279,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
279
279
  }
280
280
  }, "lockTime");
281
281
 
282
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/journal.js
282
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/journal.js
283
283
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
284
284
  var SendJournal = class {
285
285
  static {
@@ -356,7 +356,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
356
356
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
357
357
  }, "withSendId");
358
358
 
359
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/recipients.js
359
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/recipients.js
360
360
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
361
361
  import { join as join3 } from "node:path";
362
362
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -468,7 +468,7 @@ var RecipientList = class {
468
468
  }
469
469
  };
470
470
 
471
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/guard.js
471
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/guard.js
472
472
  var HOUR_MS = 60 * 60 * 1e3;
473
473
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
474
474
  "attachments.extract",
@@ -661,7 +661,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
661
661
  }), "guardFor");
662
662
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
663
663
 
664
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/sends/pace.js
664
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/sends/pace.js
665
665
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
666
666
  import { join as join4 } from "node:path";
667
667
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -719,8 +719,39 @@ var Pacer = class {
719
719
  renameSync2(temporary, this.path);
720
720
  }
721
721
  };
722
+ var ANNOUNCE_WAIT_MS = 5e3;
723
+ var LONGEST_PACE_WAIT_MS = 5 * 6e4;
724
+ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
725
+ const { name, operation, warn } = options;
726
+ const now = options.now ?? Date.now;
727
+ let at = now();
728
+ try {
729
+ at = await pacer.reserve();
730
+ } catch (error) {
731
+ warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
732
+ event: "warning",
733
+ code: "wait_not_remembered",
734
+ operation
735
+ });
736
+ }
737
+ const waitMs = at - now();
738
+ if (waitMs <= 0)
739
+ return;
740
+ if (waitMs > LONGEST_PACE_WAIT_MS)
741
+ throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
742
+ if (waitMs >= ANNOUNCE_WAIT_MS) {
743
+ const seconds = Math.ceil(waitMs / 1e3);
744
+ warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
745
+ event: "warning",
746
+ code: "pace_wait",
747
+ operation,
748
+ counts: { seconds }
749
+ });
750
+ }
751
+ await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
752
+ }, "waitForTurn");
722
753
 
723
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
754
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
724
755
  var pathOf = /* @__PURE__ */ __name((command) => {
725
756
  const words = [];
726
757
  for (let at = command; at?.parent; at = at.parent)
@@ -780,12 +811,10 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
780
811
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
781
812
  }, "refuseUnknownPermissionKeys");
782
813
 
783
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
814
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
784
815
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
785
816
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
786
817
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
787
- var ANNOUNCE_WAIT_MS = 5e3;
788
- var LONGEST_PACE_WAIT_MS = 5 * 6e4;
789
818
  var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
790
819
  var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
791
820
  const kept = /* @__PURE__ */ __name(async (operation, what2) => {
@@ -841,28 +870,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
841
870
  await kept(operation, () => pacer.holdFor(waitMs));
842
871
  }, "noted");
843
872
  const turn = /* @__PURE__ */ __name(async (operation) => {
844
- if (!pacer)
845
- return;
846
- let at = Date.now();
847
- await kept(operation, async () => {
848
- at = await pacer.reserve();
849
- });
850
- const waitMs = at - Date.now();
851
- if (waitMs <= 0)
852
- return;
853
- if (waitMs > LONGEST_PACE_WAIT_MS) {
854
- throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
855
- }
856
- if (waitMs >= ANNOUNCE_WAIT_MS) {
857
- const seconds = Math.ceil(waitMs / 1e3);
858
- warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
859
- event: "warning",
860
- code: "pace_wait",
861
- operation,
862
- counts: { seconds }
863
- });
864
- }
865
- await new Promise((resolve) => setTimeout(resolve, waitMs));
873
+ if (pacer)
874
+ await waitForTurn(pacer, { name, operation, warn });
866
875
  }, "turn");
867
876
  return throughWrapper(messenger, {}, (operation, call) => {
868
877
  if (LONG_LIVED.has(operation))
@@ -899,7 +908,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
899
908
  });
900
909
  }, "flooded");
901
910
 
902
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
911
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
903
912
  var observed = /* @__PURE__ */ __name((messenger, events) => {
904
913
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
905
914
  const write = currentOperation();
@@ -998,7 +1007,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
998
1007
  counts[part] = (counts[part] ?? 0) + items.length;
999
1008
  }, "byPart");
1000
1009
 
1001
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1010
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1002
1011
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1003
1012
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
1004
1013
  let warned = false;
@@ -1574,7 +1583,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1574
1583
  }
1575
1584
  }, "keep");
1576
1585
 
1577
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1586
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1578
1587
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1579
1588
  let opened;
1580
1589
  return {
@@ -4,7 +4,7 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-YHQ2XNNJ.js";
7
+ } from "./chunk-YWTWDX4F.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./chunk-RZ54DSVU.js";
@@ -12,7 +12,7 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-GPT5MFYG.js";
10
+ } from "./chunk-25MS26SH.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-N5K6NZ2F.js";
13
+ } from "./chunk-WGX73SAA.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
@@ -18,7 +18,7 @@ import {
18
18
  refuseLacking,
19
19
  servicesFor,
20
20
  storeModeDeps
21
- } from "./chunk-G7QBCTF6.js";
21
+ } from "./chunk-TVZEELSS.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -42,19 +42,19 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-LGQZNRNK.js";
45
+ } from "./chunk-G3FRUKAD.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-WCFGYCVN.js";
51
+ } from "./chunk-7G63XPDR.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-NYJHYLKS.js";
54
+ } from "./chunk-5IYS3BWO.js";
55
55
  import {
56
56
  MAX_BUFFERED_INPUT
57
- } from "./chunk-YHQ2XNNJ.js";
57
+ } from "./chunk-YWTWDX4F.js";
58
58
  import {
59
59
  captureStreams,
60
60
  traceIdOf
@@ -106,7 +106,7 @@ import {
106
106
  __name
107
107
  } from "./chunk-ZVVMGPBJ.js";
108
108
 
109
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
109
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/agent.js
110
110
  import { Readable } from "node:stream";
111
111
 
112
112
  // node_modules/.pnpm/@wirecat+cli-base@0.78.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
@@ -2861,7 +2861,7 @@ var VOCABULARY = defineVocabulary({
2861
2861
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2862
2862
  });
2863
2863
 
2864
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2864
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2865
2865
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2866
2866
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2867
2867
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3084,7 +3084,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3084
3084
  }
3085
3085
  }, "runCommandForAgent");
3086
3086
 
3087
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3087
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3088
3088
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3089
3089
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3090
3090
  var message = pipe(
@@ -3343,7 +3343,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3343
3343
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3344
3344
  }, "failed");
3345
3345
 
3346
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3346
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3347
3347
  import { randomUUID } from "node:crypto";
3348
3348
  var MATCHES = 8;
3349
3349
  var ANSWER = answerSchema();
@@ -8,17 +8,17 @@ import {
8
8
  readSetupAnswers,
9
9
  unanswered,
10
10
  writeSetupAnswers
11
- } from "./chunk-3Z4BMSVX.js";
11
+ } from "./chunk-UP2K5XUA.js";
12
12
  import {
13
13
  DEFAULT_STEMMERS,
14
14
  LANGUAGES
15
- } from "./chunk-6WDOIKM6.js";
15
+ } from "./chunk-CGJFYMVZ.js";
16
16
  import {
17
17
  sharedConfigPath
18
- } from "./chunk-GCTZK5QV.js";
18
+ } from "./chunk-YDNM5KYV.js";
19
19
  import {
20
20
  storePath
21
- } from "./chunk-XFSE3ZGY.js";
21
+ } from "./chunk-U4J7TAOW.js";
22
22
  import {
23
23
  installerOf
24
24
  } from "./chunk-CID4MNRQ.js";
@@ -26,7 +26,7 @@ import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/first-run.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/first-run.js
30
30
  import { spawnSync } from "node:child_process";
31
31
  import { accessSync, constants, realpathSync } from "node:fs";
32
32
  import { delimiter, join } from "node:path";
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
84
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
85
85
  }, "suggested");
86
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
87
- const { openStore } = await import("./store-GGUL63V7.js");
87
+ const { openStore } = await import("./store-6GFFSNRY.js");
88
88
  const store = await openStore({ env });
89
89
  let rebuild = false;
90
90
  try {
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
113
113
  if (!rebuild)
114
114
  return;
115
115
  const [{ openCache }, { buildStems }] = await Promise.all([
116
- import("./open-SHUV2BPO.js"),
117
- import("./store-maintenance-command-3KI6LYZB.js")
116
+ import("./open-TPBENKAD.js"),
117
+ import("./store-maintenance-command-7DMPWFT4.js")
118
118
  ]);
119
119
  const database = await openCache(storePath(env));
120
120
  try {
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
126
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
127
127
  const { command, env, io } = run;
128
128
  const installed = run.installed ?? ((name) => onPath(name, env));
129
- const { WIRECAT_TOOLS } = await import("./first-screen-ZM3LZRP4.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-CRURWNKP.js");
130
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
131
131
  const missing = others.filter((tool) => !installed(tool.command));
132
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
199
199
  contentLanguages: start.contentLanguages,
200
200
  all: start.path[0] === "setup",
201
201
  io: {
202
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-V7SEBV7G.js")).readSecret(prompt, { input, echo: true }), "ask"),
202
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-5HQ3Z7ZS.js")).readSecret(prompt, { input, echo: true }), "ask"),
203
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
204
204
  `), "say")
205
205
  }
@@ -3,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answers,
5
5
  itemAnswer
6
- } from "./chunk-RENUU3BQ.js";
6
+ } from "./chunk-PMUAUR5S.js";
7
7
  import {
8
8
  loadConfig,
9
9
  updateConfig
10
- } from "./chunk-K44PG5V3.js";
10
+ } from "./chunk-CRLYBXV5.js";
11
11
  import {
12
12
  failingNotice,
13
13
  recordRun
14
- } from "./chunk-TYIENI7Z.js";
14
+ } from "./chunk-FRT7URL7.js";
15
15
  import {
16
16
  InvalidArgumentError,
17
17
  LOCAL_READ,
18
18
  LOCAL_WRITE,
19
19
  annotate
20
- } from "./chunk-LGQZNRNK.js";
20
+ } from "./chunk-G3FRUKAD.js";
21
21
  import {
22
22
  installerOf
23
23
  } from "./chunk-CID4MNRQ.js";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  secretNamed,
5
5
  withoutSecrets
6
- } from "./chunk-LUTZSIA6.js";
6
+ } from "./chunk-EJ4X6XH2.js";
7
7
  import {
8
8
  isContentKey
9
9
  } from "./chunk-2R2Z2VWL.js";
@@ -14,18 +14,18 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/runs/run-context.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/run-context.js
18
18
  import { AsyncLocalStorage } from "node:async_hooks";
19
19
  import { createHash } from "node:crypto";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
22
22
  import { homedir } from "node:os";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/errors/failures.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/errors/failures.js
25
25
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
26
26
  var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
27
27
 
28
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/runs/events.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/events.js
29
29
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
30
30
  var renderEvent = /* @__PURE__ */ __name((event) => {
31
31
  if (event.event === "warning") {
@@ -73,7 +73,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
73
73
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
74
74
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
77
77
  var MESSAGE_AT_MOST = 500;
78
78
  var CAUSES_AT_MOST = 5;
79
79
  var FRAMES_AT_MOST = 15;
@@ -182,7 +182,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
182
182
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
183
183
  }, "redactText");
184
184
 
185
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/runs/run-context.js
185
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/runs/run-context.js
186
186
  var REDACTED = "[redacted]";
187
187
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
188
188
  if (!record)
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -7,7 +7,7 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-LGQZNRNK.js";
10
+ } from "./chunk-G3FRUKAD.js";
11
11
  import {
12
12
  jsonSchemaOf
13
13
  } from "./chunk-SN63VOE6.js";
@@ -18,7 +18,7 @@ import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-LUHQEQA4.js";
10
+ } from "./chunk-7WJEQ36E.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,7 +18,7 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-LGQZNRNK.js";
21
+ } from "./chunk-G3FRUKAD.js";
22
22
  import {
23
23
  writes
24
24
  } from "./chunk-SN63VOE6.js";
@@ -29,7 +29,7 @@ import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
94
94
  upgrade: "setup"
95
95
  };
96
96
 
97
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
97
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
98
98
  var DESCRIPTION = 90;
99
99
  var COLUMN = 52;
100
100
  var short = /* @__PURE__ */ __name((text) => {
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
133
133
  `;
134
134
  }, "commandsText");
135
135
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
137
137
  var ARGUMENT_KINDS = {
138
138
  chat: "chat",
139
139
  chats: "chat",
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
325
325
  command.addHelpText("after", () => commandHelpText(command));
326
326
  }, "installCommandHelp");
327
327
 
328
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
329
329
  var WIRECAT_TOOLS = [
330
330
  {
331
331
  command: "tg",
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  botInstructions
5
- } from "./chunk-XCFGMQBF.js";
5
+ } from "./chunk-HXCSD2XV.js";
6
6
  import {
7
7
  answered,
8
8
  normal,
9
9
  registerCommands,
10
10
  runCommandForAgent,
11
11
  toolsFromCommands
12
- } from "./chunk-CIN7A3OM.js";
12
+ } from "./chunk-75EEQB2R.js";
13
13
  import {
14
14
  agentJson,
15
15
  skillResource
16
- } from "./chunk-GPT5MFYG.js";
16
+ } from "./chunk-25MS26SH.js";
17
17
  import {
18
18
  callerOf
19
- } from "./chunk-N5K6NZ2F.js";
19
+ } from "./chunk-WGX73SAA.js";
20
20
  import {
21
21
  serveStdio
22
22
  } from "./chunk-MM5NVP7F.js";
@@ -25,17 +25,17 @@ import {
25
25
  } from "./chunk-H3ZN4YLB.js";
26
26
  import {
27
27
  wholeList
28
- } from "./chunk-G7QBCTF6.js";
28
+ } from "./chunk-TVZEELSS.js";
29
29
  import {
30
30
  changesMessenger,
31
31
  flatten,
32
32
  itemOf
33
- } from "./chunk-LGQZNRNK.js";
33
+ } from "./chunk-G3FRUKAD.js";
34
34
  import {
35
35
  MESSENGER_CHANGE_REFUSAL,
36
36
  readOnlyLockOf,
37
37
  readOnlyRefusal
38
- } from "./chunk-RCCKUVQP.js";
38
+ } from "./chunk-F2VTAFIT.js";
39
39
  import {
40
40
  mcpErrorResult,
41
41
  object
@@ -44,7 +44,7 @@ import {
44
44
  __name
45
45
  } from "./chunk-ZVVMGPBJ.js";
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
48
48
  import { randomUUID } from "node:crypto";
49
49
  var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
50
50
  var createBotServer = /* @__PURE__ */ __name((options) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.593.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_a38dc1e51ab7f561f21ddbf6a1611494/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {