@wirecat/mail-cli 0.18.0 → 0.20.0

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 (112) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-4CVOXA5Y.js → all-profiles-DTUWUCQQ.js} +7 -6
  4. package/dist/bundle/{anthropic-5VIKYINO.js → anthropic-YJAEQSNT.js} +3 -3
  5. package/dist/bundle/{app-server-LTSQBDPF.js → app-server-3ZXSTBA3.js} +41 -40
  6. package/dist/bundle/{bun-C7DBRUW2.js → bun-34VBM7C5.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-Y5JKT62B.js → bun-sqlite-GCT7ROCK.js} +2 -2
  8. package/dist/bundle/{chunk-A5OMARL4.js → chunk-2PPEDB67.js} +31 -29
  9. package/dist/bundle/{chunk-IANOK5SE.js → chunk-3DSYLE5N.js} +2 -2
  10. package/dist/bundle/{chunk-QPF4LTK5.js → chunk-3HDQVTND.js} +4 -4
  11. package/dist/bundle/{chunk-ZLH465EU.js → chunk-4FWJNIPH.js} +1 -1
  12. package/dist/bundle/{chunk-C4RUKMDT.js → chunk-4WIEVQ2Q.js} +8 -14
  13. package/dist/bundle/{chunk-SMS5YNPB.js → chunk-566MEXK5.js} +2 -2
  14. package/dist/bundle/{chunk-GRP67IQ4.js → chunk-72N26BQM.js} +24 -22
  15. package/dist/bundle/{chunk-6RO5RDNR.js → chunk-7XLOWYGD.js} +109 -6
  16. package/dist/bundle/{chunk-AOMSP4EI.js → chunk-AF62BPIW.js} +5 -5
  17. package/dist/bundle/{chunk-U43HUE35.js → chunk-B74SOC4R.js} +9 -20
  18. package/dist/bundle/{chunk-TVZ77ZOV.js → chunk-FTI73RLC.js} +2 -2
  19. package/dist/bundle/{chunk-EFP5NN7I.js → chunk-GAPQENMY.js} +2 -2
  20. package/dist/bundle/{chunk-N5VEJ3E7.js → chunk-HJ2CXDKJ.js} +130 -11
  21. package/dist/bundle/{chunk-P6WCG6X2.js → chunk-HN43G27G.js} +43 -27
  22. package/dist/bundle/{chunk-L3YX7A5M.js → chunk-HRRSTIGP.js} +4 -4
  23. package/dist/bundle/{chunk-NDJZQCF3.js → chunk-HSBGNVEL.js} +210 -171
  24. package/dist/bundle/{chunk-2NWOYXPJ.js → chunk-I2SDXWLR.js} +206 -56
  25. package/dist/bundle/{chunk-BMFPCW6Q.js → chunk-J2U6LUT5.js} +17 -3
  26. package/dist/bundle/{chunk-UXD5JMS5.js → chunk-J4UZXBEV.js} +1 -1
  27. package/dist/bundle/{chunk-OUGGAAXI.js → chunk-KMQAHDBM.js} +7539 -13576
  28. package/dist/bundle/{chunk-CPEN6BZZ.js → chunk-LF5XM4HE.js} +1 -1
  29. package/dist/bundle/chunk-LTXYJAJK.js +12211 -0
  30. package/dist/bundle/{chunk-7P4ICYJT.js → chunk-MD64ITYO.js} +1 -1
  31. package/dist/bundle/{chunk-WA3DQSAZ.js → chunk-MDDB7M7Z.js} +1 -1
  32. package/dist/bundle/{chunk-OLJDZTHB.js → chunk-NOVBK4SY.js} +12 -12
  33. package/dist/bundle/{chunk-MCR43SWG.js → chunk-O3M2S62X.js} +21 -13
  34. package/dist/bundle/{chunk-5S6Q3SWU.js → chunk-ODFHIXMA.js} +1 -1
  35. package/dist/bundle/{chunk-ZT2Y267T.js → chunk-OKO2Q6H6.js} +2 -2
  36. package/dist/bundle/{chunk-RQSF7X22.js → chunk-P2QJA7S5.js} +1 -1
  37. package/dist/bundle/{chunk-C5T5K7HW.js → chunk-P6FT6YYT.js} +17 -14
  38. package/dist/bundle/{chunk-RIO3TD3I.js → chunk-QE72KTS7.js} +1 -1
  39. package/dist/bundle/{chunk-JO3BIMYK.js → chunk-QPRXTLMD.js} +1 -1
  40. package/dist/bundle/{chunk-23HWKHPZ.js → chunk-QTMVGOSF.js} +352 -290
  41. package/dist/bundle/{chunk-SW2KERUB.js → chunk-R3WPMQYZ.js} +270 -153
  42. package/dist/bundle/{chunk-XGTW3GRX.js → chunk-RFB27ACZ.js} +2 -2
  43. package/dist/bundle/{chunk-HTFBXGJF.js → chunk-RPCKBXKN.js} +1 -1
  44. package/dist/bundle/{chunk-43I5XD7S.js → chunk-RT6SLZBI.js} +1 -1
  45. package/dist/bundle/{chunk-3W5H4TM7.js → chunk-RY7PBP4F.js} +71 -31
  46. package/dist/bundle/{chunk-BMGVKULS.js → chunk-SCIC2CJS.js} +4 -4
  47. package/dist/bundle/{chunk-SIYT2BBI.js → chunk-SFC46MP2.js} +250 -9
  48. package/dist/bundle/chunk-SYEICLTR.js +66 -0
  49. package/dist/bundle/{chunk-HFUS33UT.js → chunk-T2GQA2E4.js} +4 -1
  50. package/dist/bundle/{chunk-ITUC5WAV.js → chunk-T3DTYJTG.js} +1 -1
  51. package/dist/bundle/{chunk-OMKPALMX.js → chunk-TCCN5TON.js} +1 -1
  52. package/dist/bundle/{chunk-FLOOPXOT.js → chunk-V6OIIVH3.js} +10 -10
  53. package/dist/bundle/{chunk-ACLILULA.js → chunk-VDUGE6TH.js} +2 -2
  54. package/dist/bundle/{chunk-3YRE6DNM.js → chunk-VINSQR4X.js} +7 -7
  55. package/dist/bundle/{chunk-UEGABYXI.js → chunk-VQZCIDSO.js} +2 -2
  56. package/dist/bundle/{chunk-ERBEBORA.js → chunk-WBAA2X3E.js} +10 -10
  57. package/dist/bundle/{chunk-M7C4IGJ6.js → chunk-Z75WYAX6.js} +6 -6
  58. package/dist/bundle/{chunk-GLLLYACZ.js → chunk-Z7N4MGOQ.js} +5 -5
  59. package/dist/bundle/{chunk-YA2JPMYX.js → chunk-ZKLXSVIO.js} +1 -1
  60. package/dist/bundle/{chunk-DPSH46NO.js → chunk-ZZSHGCRC.js} +3 -3
  61. package/dist/bundle/{command-contract-Y3GIKCPB.js → command-contract-Y4ZQAJEC.js} +14 -13
  62. package/dist/bundle/{decode-WVIDLK4E.js → decode-BIOOL5E4.js} +2 -2
  63. package/dist/bundle/{dist-KGQWS3XL.js → dist-TJVIRLE5.js} +79 -17
  64. package/dist/bundle/{echarts-VMKACZBF.js → echarts-ECPGMKXO.js} +2 -2
  65. package/dist/bundle/{embed-EQINOOST.js → embed-F7JFSLHN.js} +3 -3
  66. package/dist/bundle/{embedder-LM52TDRN.js → embedder-U4G74HV3.js} +6 -6
  67. package/dist/bundle/{first-run-H4VXZAAF.js → first-run-JTYPUYQP.js} +5 -5
  68. package/dist/bundle/first-screen-W6RWTAU7.js +33 -0
  69. package/dist/bundle/{instructions-NLSME663.js → instructions-WNCGZ7OJ.js} +1 -1
  70. package/dist/bundle/mail.js +2 -2
  71. package/dist/bundle/{node-FGMSXLTA.js → node-UIRGGMGT.js} +2 -2
  72. package/dist/bundle/{node-sqlite-K3T3ZRBY.js → node-sqlite-4ZM7OPRF.js} +3 -3
  73. package/dist/bundle/{oauth-OJKJ6JLH.js → oauth-5RAJZPBW.js} +4 -4
  74. package/dist/bundle/{open-DCYIXHXS.js → open-7ORCHOAI.js} +2 -2
  75. package/dist/bundle/{openai-C4H4W57J.js → openai-XSJNXJA7.js} +10 -10
  76. package/dist/bundle/{process-MN4NSYGA.js → process-ZLO72UVZ.js} +1 -1
  77. package/dist/bundle/{program-ZZZOKWCX.js → program-PFVJDKM4.js} +1911 -1655
  78. package/dist/bundle/{prompt-ELEJUDAU.js → prompt-IDUPCUGM.js} +2 -2
  79. package/dist/bundle/{recognize-G2FVMI5M.js → recognize-OS3EZKIM.js} +1 -1
  80. package/dist/bundle/{remote-F4YVSEYM.js → remote-PF4LZR65.js} +4 -4
  81. package/dist/bundle/{rerank-7VM5R5N6.js → rerank-CQNZF3JI.js} +4 -4
  82. package/dist/bundle/{serve-A7NRFPRN.js → serve-Y2DDLGBT.js} +6 -6
  83. package/dist/bundle/server-I3IALQMC.js +65 -0
  84. package/dist/bundle/{server-7R2BEIRY.js → server-TVRT7YEY.js} +33 -32
  85. package/dist/bundle/{sqlite-runtime-4SKUB4EN.js → sqlite-runtime-5343C3OE.js} +3 -3
  86. package/dist/bundle/{state-S2FKK2XB.js → state-4GBTMPIV.js} +3 -3
  87. package/dist/bundle/{store-4HAARQVR.js → store-OLBLTQPT.js} +56 -13
  88. package/dist/bundle/{store-FLHO3UMA.js → store-QA6QJ5BB.js} +20 -11
  89. package/dist/bundle/store-maintenance-command-LB6CMGP4.js +55 -0
  90. package/dist/commands/login.d.ts.map +1 -1
  91. package/dist/commands/login.js +19 -4
  92. package/dist/commands/login.js.map +1 -1
  93. package/dist/commands/session-start.d.ts.map +1 -1
  94. package/dist/commands/session-start.js +86 -11
  95. package/dist/commands/session-start.js.map +1 -1
  96. package/dist/mail/imap/errors.d.ts.map +1 -1
  97. package/dist/mail/imap/errors.js +14 -1
  98. package/dist/mail/imap/errors.js.map +1 -1
  99. package/dist/providers.d.ts +7 -0
  100. package/dist/providers.d.ts.map +1 -1
  101. package/dist/providers.js +5 -0
  102. package/dist/providers.js.map +1 -1
  103. package/dist/reasons.d.ts.map +1 -1
  104. package/dist/reasons.js +3 -0
  105. package/dist/reasons.js.map +1 -1
  106. package/dist/version.d.ts +1 -1
  107. package/dist/version.js +1 -1
  108. package/package.json +3 -3
  109. package/dist/bundle/chunk-KVSC657S.js +0 -656
  110. package/dist/bundle/first-screen-ZP74TJLK.js +0 -32
  111. package/dist/bundle/server-DFJA2HBO.js +0 -64
  112. package/dist/bundle/store-maintenance-command-BINJIQ6F.js +0 -54
@@ -8,14 +8,14 @@ import {
8
8
  refuseLacking,
9
9
  servicesFor,
10
10
  throughWrapper
11
- } from "./chunk-23HWKHPZ.js";
11
+ } from "./chunk-QTMVGOSF.js";
12
12
  import {
13
13
  chatReferenceOf,
14
14
  ensureAccount,
15
15
  foldName,
16
16
  isId,
17
17
  pickPerson
18
- } from "./chunk-SIYT2BBI.js";
18
+ } from "./chunk-SFC46MP2.js";
19
19
  import {
20
20
  LOG_ATTRIBUTES,
21
21
  MESSENGER_CHANGE_REFUSAL,
@@ -35,7 +35,7 @@ import {
35
35
  recalledAccount,
36
36
  rememberAccount,
37
37
  rootOf2 as rootOf
38
- } from "./chunk-NDJZQCF3.js";
38
+ } from "./chunk-HSBGNVEL.js";
39
39
  import {
40
40
  AUTHORITY_KEY,
41
41
  CEILING_KEY,
@@ -46,17 +46,19 @@ import {
46
46
  levelFor,
47
47
  readKeysForCommand,
48
48
  skipFlagFor
49
- } from "./chunk-L3YX7A5M.js";
49
+ } from "./chunk-HRRSTIGP.js";
50
50
  import {
51
- isCliFailure,
52
51
  providerErrorKey
53
- } from "./chunk-U43HUE35.js";
52
+ } from "./chunk-B74SOC4R.js";
54
53
  import {
55
54
  servingProfiles
56
- } from "./chunk-UEGABYXI.js";
55
+ } from "./chunk-VQZCIDSO.js";
57
56
  import {
58
57
  openStore
59
- } from "./chunk-OUGGAAXI.js";
58
+ } from "./chunk-KMQAHDBM.js";
59
+ import {
60
+ isCliFailure
61
+ } from "./chunk-SYEICLTR.js";
60
62
  import {
61
63
  logRecordOf,
62
64
  realSleep,
@@ -70,10 +72,10 @@ import {
70
72
  __name
71
73
  } from "./chunk-ZVVMGPBJ.js";
72
74
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/guard.js
75
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/guard.js
74
76
  import { randomUUID } from "node:crypto";
75
77
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/flood.js
78
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/flood.js
77
79
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
78
80
  import { dirname, join } from "node:path";
79
81
  var MOST_DEADLINES = 50;
@@ -157,11 +159,11 @@ var FloodMemory = class {
157
159
  }
158
160
  };
159
161
 
160
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/journal.js
162
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/journal.js
161
163
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
162
164
  import { dirname as dirname3, join as join2 } from "node:path";
163
165
 
164
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
166
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
165
167
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
166
168
  import { dirname as dirname2 } from "node:path";
167
169
  var LOCK_WAIT_MS = 5e3;
@@ -228,7 +230,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
228
230
  }
229
231
  }, "lockTime");
230
232
 
231
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/journal.js
233
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/journal.js
232
234
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
233
235
  var SendJournal = class {
234
236
  static {
@@ -305,7 +307,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
305
307
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
306
308
  }, "withSendId");
307
309
 
308
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/recipients.js
310
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/recipients.js
309
311
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
310
312
  import { join as join3 } from "node:path";
311
313
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -417,7 +419,7 @@ var RecipientList = class {
417
419
  }
418
420
  };
419
421
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/guard.js
422
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/guard.js
421
423
  var HOUR_MS = 60 * 60 * 1e3;
422
424
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
423
425
  "attachments.extract",
@@ -610,7 +612,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
610
612
  }), "guardFor");
611
613
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
612
614
 
613
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
615
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
614
616
  import { openSync as openSync2 } from "node:fs";
615
617
  import { createInterface } from "node:readline";
616
618
  import { ReadStream } from "node:tty";
@@ -665,7 +667,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
665
667
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
666
668
  }, "terminalAsker");
667
669
 
668
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/pace.js
670
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/pace.js
669
671
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
670
672
  import { join as join4 } from "node:path";
671
673
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -755,7 +757,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
755
757
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
756
758
  }, "waitForTurn");
757
759
 
758
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
760
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
759
761
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
760
762
  "help",
761
763
  "guide",
@@ -835,7 +837,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
835
837
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
836
838
  }, "refuseUnknownPermissionKeys");
837
839
 
838
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
840
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
839
841
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
840
842
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
841
843
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -932,7 +934,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
932
934
  });
933
935
  }, "flooded");
934
936
 
935
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
937
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
936
938
  var observed = /* @__PURE__ */ __name((messenger, events) => {
937
939
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
938
940
  const write = currentOperation();
@@ -1031,7 +1033,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1031
1033
  counts[part] = (counts[part] ?? 0) + items.length;
1032
1034
  }, "byPart");
1033
1035
 
1034
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1036
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
1035
1037
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
1036
1038
  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" }) => {
1037
1039
  let warned = false;
@@ -1607,7 +1609,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1607
1609
  }
1608
1610
  }, "keep");
1609
1611
 
1610
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1612
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1611
1613
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1612
1614
  let opened;
1613
1615
  return {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-2NWOYXPJ.js";
5
+ } from "./chunk-I2SDXWLR.js";
6
6
  import {
7
7
  defineReasons
8
8
  } from "./chunk-BHNBWFT5.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
14
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
15
  var QUERY = [
16
16
  ["query.aborted", "the search was stopped before it finished"],
@@ -29,7 +29,8 @@ var SIGN_IN = [
29
29
  ["oauth.declined", "authentication_error", "the provider's consent was declined"],
30
30
  ["oauth.timeout", "timeout", "the sign-in was not finished in time"],
31
31
  ["oauth.mismatch", "authentication_error", "the pasted sign-in result belongs to another sign-in"],
32
- ["oauth.missing", "authentication_error", "this profile is not signed in"],
32
+ ["oauth.missing", "authentication_error", "this profile is not signed in to the provider"],
33
+ ["session.missing", "authentication_error", "this profile has no API token saved"],
33
34
  ["oauth.locked", "provider_unavailable", "another process holds this sign-in's lock"],
34
35
  ["oauth.no-response", "outcome_unknown", "the token request did not finish"],
35
36
  ["oauth.unavailable", "provider_unavailable", "the provider's token endpoint is unavailable"],
@@ -71,6 +72,11 @@ var OTHERS = [
71
72
  validation("mail-findings.partial", "a cited email is not stored whole yet; cite it once it is"),
72
73
  validation("evidence-findings.dedicated-review", "review evidence findings through the dedicated findings command"),
73
74
  validation("mail-findings.dedicated-review", "review mail findings through the dedicated findings command"),
75
+ validation("source-review.dedicated-review", "decide a source review through the review of memories and facts"),
76
+ validation("source-review.reason-required", "a challenge says why in 1\u20132000 characters"),
77
+ validation("source-review.evidence-required", "a challenge cites 1\u201320 references that contradict it"),
78
+ validation("source-review.suggestion-length", "a suggestion with a challenge takes 1\u20132000 characters"),
79
+ validation("source-review.not-holding", "the memory or fact no longer holds, so there is nothing to challenge"),
74
80
  validation("mail-findings.invalid", "a checked mail findings batch would be refused; details.problems names why, finding by finding"),
75
81
  validation("mail-findings.key-used", "the findings batch key was already used for different input"),
76
82
  validation("finding.unknown-field", "a finding has a field its kind does not take"),
@@ -137,6 +143,21 @@ var OTHERS = [
137
143
  ["feed.gone", "not_found", "the feed's server has no feed at this address any more"],
138
144
  ["feed.timeout", "timeout", "the feed's server did not answer in time"],
139
145
  ["feed.unreachable", "network_error", "the feed's server could not be reached"],
146
+ validation("source.url-refused", "the link is not an http or https page on the public internet"),
147
+ ["source.url-status", "provider_error", "the page's server answered with an error status"],
148
+ ["source.url-timeout", "timeout", "the page did not arrive in time"],
149
+ ["source.url-redirects", "provider_error", "the page sent the request on too many times"],
150
+ ["source.url-unreachable", "network_error", "the page's server could not be found or reached"],
151
+ [
152
+ "source.needs-sign-in",
153
+ "authentication_error",
154
+ "the page asks for a sign-in; a private Google document is read through Drive"
155
+ ],
156
+ validation("source.too-large", "the source is larger than one read takes"),
157
+ validation("source.unsupported", "no reader takes this kind of source"),
158
+ validation("source.no-text", "the source holds no text to keep"),
159
+ validation("source.unreadable", "the reader could not read the source"),
160
+ ["source.engine-missing", "configuration_error", "reading this source needs a reader package that is not installed"],
140
161
  validation("busy.feed", "a feed calendar has no busy times to ask; read its events with events list"),
141
162
  ["calendar.unsynced", "not_found", "the calendar account has no synced calendar in the store"],
142
163
  ["calendar.sync-incomplete", "not_found", "a synced calendar's sync never finished or is mid-round"],
@@ -152,6 +173,7 @@ var OTHERS = [
152
173
  validation("search.server-options", "search --backend server takes neither --exact, --cursor nor --newest"),
153
174
  validation("search.one-backend", "search answers from one backend at a time: archive or server"),
154
175
  ["search.server-not-allowed", "permission_error", "the profile does not allow messages.server-search"],
176
+ ["search.all-denied", "permission_error", "the profile denies every kind search all would read"],
155
177
  validation("search.server-no-criteria", "the query has nothing the server can search, so only the store is read"),
156
178
  ["search.server-unsupported", "provider_error", "this source's server cannot search"],
157
179
  ["search.server-rate-limited", "rate_limited", "the server refused a search as too many requests"],
@@ -165,6 +187,17 @@ var OTHERS = [
165
187
  ],
166
188
  validation("store.refused", "the local store refused the document text"),
167
189
  ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
190
+ [
191
+ "store.damaged",
192
+ "configuration_error",
193
+ "the store file is damaged; store recover says what is lost and recovers it"
194
+ ],
195
+ validation("store.file-damaged", "the named store file is damaged or not a database"),
196
+ [
197
+ "store.unreadable",
198
+ "configuration_error",
199
+ "the store file's header or schema is damaged, so it cannot be recovered"
200
+ ],
168
201
  validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
169
202
  [
170
203
  "store.sqlite3-missing",
@@ -172,6 +205,7 @@ var OTHERS = [
172
205
  "recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
173
206
  ],
174
207
  validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
208
+ validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
175
209
  validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
176
210
  [
177
211
  "store.vector-extension-missing",
@@ -181,6 +215,8 @@ var OTHERS = [
181
215
  ["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
182
216
  validation("store.vector-invalid", "a vector to store had a non-finite value"),
183
217
  validation("catalog.scope-limit", "the selected catalog exceeds its entry limit"),
218
+ validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
219
+ validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
184
220
  validation("evidence.row-too-large", "one evidence row is over its size limit"),
185
221
  validation("index.not-ready", "the search index is still being built"),
186
222
  validation("input.closed", "the input closed before the answer"),
@@ -194,18 +230,29 @@ var OTHERS = [
194
230
  validation("finance.allocate", "the invoice or payment cannot take an allocation in its state"),
195
231
  validation("finance.currency", "the payment and the invoice are in different currencies; nothing is converted"),
196
232
  validation("finance.field", "a field of the invoice or payment is not valid"),
197
- validation("finance.line-amount", "the line's amount is not its quantity times its unit price"),
233
+ validation("finance.line-amount", "an invoice line's amount is not its quantity times its unit price"),
198
234
  validation("finance.lines", "the invoice's lines are not valid"),
199
235
  ["finance.not-allocated", "not_found", "the payment is not allocated to that invoice"],
200
236
  validation("finance.over-invoice", "the allocation would settle more than the invoice's total"),
201
237
  validation("finance.over-payment", "the allocation would use more than the payment's amount"),
202
238
  ["finance.owner-only", "permission_error", "only the owner does this with money"],
239
+ validation("finance.over-refund", "the refunds would take back more than the payment, or than it gave an invoice"),
203
240
  validation("finance.party", "a party is a person: or organization: reference"),
204
241
  validation("finance.ref", "the reference names no invoice or payment"),
242
+ validation("finance.refund", "a refund goes the other way in the same currency, of a live payment confirmed first, to an invoice it paid"),
243
+ validation("finance.refunded", "a refund of the payment still stands; reject it or take it back first"),
205
244
  validation("finance.status", "the invoice's status does not allow this"),
206
245
  validation("finance.total", "the invoice's total is not the sum of its lines"),
207
246
  validation("finance.unallocate", "a rejected or deleted payment's allocations are not taken back"),
208
- validation("record.entity", "the invoice or payment the record stands for was refused"),
247
+ validation("record.entity", "the entity or proposal the record stands for was refused"),
248
+ validation("record.provider-not-imported", "SMS and calls are imported only under an import-only provider, such as phone"),
249
+ validation("record.chat", "the chat an SMS names is not an imported one: a sync owns it"),
250
+ validation("record.moved", "an SMS stays in its thread: delete it and send it again under a new external_id"),
251
+ validation("record.phone-region", "a phone without + is read only in the envelope's phone_region; kept as data"),
252
+ validation("record.separated", "the owner told the one entity these identifiers match apart from them"),
253
+ ["store.dry-run", "conflict", "a dry run of an import holds the store; the read or write waits for it to end"],
254
+ validation("record.ambiguous", "the record's identifiers point at more than one entity; the owner says which"),
255
+ validation("record.identifier", "a free-mail domain names no organization: anyone has an address there"),
209
256
  ["record.map-owner-only", "permission_error", "only the owner says which entity a source record is"],
210
257
  validation("record.map-type", "a record maps only to an entity of its own type"),
211
258
  validation("record.mapped", "the record already stands for another entity"),
@@ -215,6 +262,7 @@ var OTHERS = [
215
262
  validation("record.reference-not-found", "a reference in the record's fields is not in the store"),
216
263
  validation("record.relation-ambiguous", "the record names more than one target for a role that takes one"),
217
264
  validation("record.stale-revision", "the store holds a newer revision of the record"),
265
+ validation("memory.already-superseded", "the memory was already replaced by another"),
218
266
  validation("memory.evidence-required", "a memory needs its evidence"),
219
267
  validation("memory.scope-required", "a memory needs its scope"),
220
268
  validation("money.amount", "the amount is not a decimal string in the currency's scale"),
@@ -231,13 +279,45 @@ var OTHERS = [
231
279
  ["pipeline.not-found", "not_found", "no stored pipeline has that name or reference"],
232
280
  validation("crm.stage-unknown", "a CRM item stands in a stage the store does not hold; it was not kept"),
233
281
  validation("crm.item-invalid", "a CRM item has a field the store refuses, such as a currency it does not keep"),
234
- validation("crm.pipeline-required", "the CRM has more than one pipeline of the kind; the write names one"),
282
+ validation("crm.pipeline-required", "the CRM has more than one pipeline of the kind; the command names one"),
235
283
  validation("field.unknown", "no custom field of the kind has that code or label; `fields list` lists them"),
236
284
  validation("field.ambiguous", "more than one custom field has that label; name one by its code"),
237
285
  validation("field.unknown-option", "the list field has no option with that id or label"),
238
286
  validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
239
287
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
240
288
  validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
289
+ validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
290
+ validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
291
+ validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
292
+ validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
293
+ validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
294
+ validation("relationship.reference-unknown", "a reported relationship names something the store does not hold"),
295
+ validation("relationship.invalid", "a reported relationship joins ends or takes a role the registry refuses"),
296
+ validation("contract.field", "a field of the contract is not valid"),
297
+ validation("contract.ref", "the reference names no contract, or no deal for it"),
298
+ validation("order.currency", "the product is priced in another currency than the order"),
299
+ validation("order.line", "an order keeps at least one line: reject or cancel it instead"),
300
+ validation("order.line-amount", "an order line's amount is not its quantity times its unit price"),
301
+ validation("order.lines", "the order's lines are not valid"),
302
+ ["order.no-line", "not_found", "the order has no line at that position"],
303
+ ["order.owner-only", "permission_error", "only the owner changes a confirmed order's lines"],
304
+ validation("order.total", "an order with lines names its currency and totals their sum"),
305
+ validation("product.duplicate", "a product with that code is already stored for that supplier"),
306
+ validation("product.field", "a field of the product is not valid"),
307
+ validation("product.ref", "the reference names no product"),
308
+ validation("subscription.field", "a field of the subscription is not valid"),
309
+ validation("subscription.interval", "an interval is a count and a unit, such as 1-month"),
310
+ ["subscription.no-price", "not_found", "no stored subscription price has that id"],
311
+ validation("subscription.price", "a price is never changed: reject it and add a new one, after its subscription"),
312
+ validation("subscription.ref", "the reference names no subscription, product or contract for it"),
313
+ validation("transaction.field", "a field of the transaction is not valid"),
314
+ validation("transaction.payment", "the payment is not the same money: currency, direction and amount differ"),
315
+ validation("transaction.ref", "the reference names no transaction or wallet"),
316
+ ["transaction.no-split", "not_found", "the transaction has no split at that position"],
317
+ validation("transaction.split", "the splits come to more than the transaction, or name no category"),
318
+ validation("wallet.field", "a field of the wallet is not valid"),
319
+ validation("wallet.number", "a wallet keeps only the last 4 characters of a number"),
320
+ validation("wallet.ref", "the reference names no wallet"),
241
321
  validation("order.duplicate", "the shop's order with this number is already stored; change its status instead"),
242
322
  validation("order.proposed", "the shop's order with this number already waits for the owner in a findings batch"),
243
323
  validation("order.field", "a field of the order is not valid"),
@@ -247,6 +327,11 @@ var OTHERS = [
247
327
  validation("order.status", "a rejected or deleted order's status does not change"),
248
328
  ["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
249
329
  ["person.no-owner", "not_found", "no person is marked as the owner in the store"],
330
+ [
331
+ "identity.separated",
332
+ "conflict",
333
+ "the owner separated this identity from that person; only the owner links it again"
334
+ ],
250
335
  ["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
251
336
  validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
252
337
  [
@@ -263,6 +348,20 @@ var OTHERS = [
263
348
  validation("period.ambiguous", "the period can be read more than one way"),
264
349
  validation("proposal.wrong-state", "the proposal is not in a state that allows this"),
265
350
  validation("proposal.reason-required", "an agent deciding for the owner gives a reason"),
351
+ validation("decision.request-invalid", "a decision request needs its batch, message, owner and distinct known actions"),
352
+ ["decision.token-unknown", "not_found", "no button has this token"],
353
+ ["decision.token-used", "permission_error", "this button was already pressed"],
354
+ [
355
+ "decision.token-cancelled",
356
+ "permission_error",
357
+ "another button of the message was pressed, or the feature was turned off"
358
+ ],
359
+ ["decision.token-expired", "permission_error", "this button is older than 72 hours"],
360
+ [
361
+ "decision.token-mismatch",
362
+ "permission_error",
363
+ "the press came from another chat, message or user than the button was sent to"
364
+ ],
266
365
  validation("proposal.decider-required", "a decision names who decides: the owner or an agent with a reason"),
267
366
  validation("proposal.ids", "the proposal ids cannot be read"),
268
367
  ["proposal.own", "permission_error", "an agent never decides its own proposal"],
@@ -270,6 +369,10 @@ var OTHERS = [
270
369
  ["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
271
370
  ["proposal.unknown-kind", "not_found", "no registered proposal kind holds this id"],
272
371
  validation("relationship.exists", "a confirmed relationship already links them"),
372
+ validation("relationship.role-exists", "the role list holds that role already"),
373
+ validation("relationship.role-built-in", "a built-in role stays on its list"),
374
+ validation("relationship.role-in-use", "relationships still hold that role; change them first (details.count)"),
375
+ validation("relationship.role-unknown", "the role is not one the relationship takes; the message lists them"),
273
376
  validation("ranking.invalid", "the ranking is not valid"),
274
377
  validation("ref.malformed", "the reference has a known kind but not its shape"),
275
378
  validation("ref.unknown-kind", "the text names no kind of reference"),
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-5S6Q3SWU.js";
5
+ } from "./chunk-ODFHIXMA.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-DALBYUPC.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/store/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-Y5JKT62B.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-GCT7ROCK.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-K3T3ZRBY.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-4ZM7OPRF.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -1,35 +1,27 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ isCliFailure
5
+ } from "./chunk-SYEICLTR.js";
3
6
  import {
4
7
  secretNamed,
5
8
  withoutSecrets
6
- } from "./chunk-ZLH465EU.js";
9
+ } from "./chunk-4FWJNIPH.js";
7
10
  import {
8
11
  isContentKey
9
12
  } from "./chunk-BMV56JCL.js";
10
- import {
11
- errorCodes
12
- } from "./chunk-DALBYUPC.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/run-context.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/errors/failures.js
25
- var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
26
- var isCommanderFailure = /* @__PURE__ */ __name((value) => {
27
- const { code, exitCode } = value ?? {};
28
- return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
29
- }, "isCommanderFailure");
30
- var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
31
-
32
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/events.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/events.js
33
25
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
34
26
  var renderEvent = /* @__PURE__ */ __name((event) => {
35
27
  if (event.event === "warning") {
@@ -77,7 +69,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
77
69
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
78
70
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
79
71
 
80
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
72
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
81
73
  var MESSAGE_AT_MOST = 500;
82
74
  var CAUSES_AT_MOST = 5;
83
75
  var FRAMES_AT_MOST = 15;
@@ -186,7 +178,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
186
178
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
187
179
  }, "redactText");
188
180
 
189
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/runs/run-context.js
181
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/run-context.js
190
182
  var REDACTED = "[redacted]";
191
183
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
192
184
  if (!record)
@@ -349,9 +341,6 @@ var runContextOf = /* @__PURE__ */ __name(({ bin, command, program, argv, env, r
349
341
  }, "runContextOf");
350
342
 
351
343
  export {
352
- isCliFailure,
353
- isCommanderFailure,
354
- failureKey,
355
344
  providerErrorKey,
356
345
  renderEvent,
357
346
  errorDetailOf,
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-U43HUE35.js";
32
+ } from "./chunk-B74SOC4R.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -4,7 +4,7 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-WA3DQSAZ.js";
7
+ } from "./chunk-MDDB7M7Z.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./chunk-DALBYUPC.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.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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 } = {}) => {