@wirecat/tg-cli 0.115.0 → 0.116.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 (118) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bot/transport.d.ts +10 -8
  3. package/dist/bot/transport.d.ts.map +1 -1
  4. package/dist/bot/transport.js +16 -2
  5. package/dist/bot/transport.js.map +1 -1
  6. package/dist/bundle/{adapter-ODK7R4LY.js → adapter-6CLMTQOV.js} +76 -50
  7. package/dist/bundle/{all-profiles-AQYM65BS.js → all-profiles-R2UZMH24.js} +10 -9
  8. package/dist/bundle/{anthropic-VBDSVNIM.js → anthropic-QKIPHV2Z.js} +6 -6
  9. package/dist/bundle/{app-server-YOIHLBNS.js → app-server-AZB2MFK6.js} +43 -42
  10. package/dist/bundle/{bot-api-TRYLGQKK.js → bot-api-2IM243J4.js} +50 -49
  11. package/dist/bundle/{bot-history-7DTJLBBJ.js → bot-history-G6CRVCL2.js} +18 -17
  12. package/dist/bundle/{bun-XIMM6EHD.js → bun-JDKPISPX.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-6B3BL5IV.js → bun-sqlite-X5PY5IQT.js} +5 -5
  14. package/dist/bundle/{chunk-XY7IGVVS.js → chunk-42GK3XRS.js} +2 -2
  15. package/dist/bundle/{chunk-PEKTB3FQ.js → chunk-4D5AUWAY.js} +25 -14
  16. package/dist/bundle/{chunk-XIYRHIBK.js → chunk-4IQZRW4O.js} +13 -13
  17. package/dist/bundle/{chunk-DIABP7ZP.js → chunk-577MFPCP.js} +3 -3
  18. package/dist/bundle/{chunk-O7CBGHI7.js → chunk-5FCONCJO.js} +1 -1
  19. package/dist/bundle/{chunk-GX4DMI4H.js → chunk-5VFPUOJO.js} +15 -12
  20. package/dist/bundle/{chunk-5ROWSRK7.js → chunk-5ZIBAYIZ.js} +2 -2
  21. package/dist/bundle/{chunk-77M3IAVU.js → chunk-76CX2YPT.js} +27 -8
  22. package/dist/bundle/{chunk-MUZ4KYGY.js → chunk-B4UOCWM4.js} +2 -2
  23. package/dist/bundle/{chunk-Y3AQHPAJ.js → chunk-BGMV66FC.js} +1 -1
  24. package/dist/bundle/{chunk-WOQGUIXE.js → chunk-DP5LRU7K.js} +1 -1
  25. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
  26. package/dist/bundle/{chunk-IUDIRZVU.js → chunk-FDI4GOIP.js} +890 -473
  27. package/dist/bundle/{chunk-AICS3TSF.js → chunk-GV7ZJ33M.js} +4 -4
  28. package/dist/bundle/{chunk-WMG4IGEB.js → chunk-H72UEHNG.js} +66 -33
  29. package/dist/bundle/{chunk-HZKWB6WS.js → chunk-HBUJNNZD.js} +28 -28
  30. package/dist/bundle/{chunk-GCFU6WBE.js → chunk-HK6SIIGG.js} +3 -3
  31. package/dist/bundle/{chunk-BIEBJLYO.js → chunk-HLNYJPAB.js} +2 -2
  32. package/dist/bundle/{chunk-PZAEI4NM.js → chunk-HUOXUI2M.js} +22 -22
  33. package/dist/bundle/{chunk-TQYMLXDS.js → chunk-I6JF43YP.js} +3 -3
  34. package/dist/bundle/{chunk-OSP335AJ.js → chunk-IR4S7POE.js} +8 -8
  35. package/dist/bundle/{chunk-KDOBY524.js → chunk-JFTCOV37.js} +74 -20
  36. package/dist/bundle/{chunk-POKTQZOM.js → chunk-JJMQA272.js} +12 -89
  37. package/dist/bundle/{chunk-GWDMKEDY.js → chunk-K2RYCCTP.js} +4 -4
  38. package/dist/bundle/{chunk-RHUNMU4Q.js → chunk-K62YATVD.js} +4 -4
  39. package/dist/bundle/{chunk-UBQ3LOF6.js → chunk-KA6EGOJY.js} +2 -2
  40. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  41. package/dist/bundle/{chunk-M7B5IMH3.js → chunk-LFKEKSI5.js} +1032 -298
  42. package/dist/bundle/{chunk-BPPRR7TV.js → chunk-LSKGCJWD.js} +3403 -1275
  43. package/dist/bundle/{chunk-CNO3R4O4.js → chunk-LXH3SKY3.js} +8 -8
  44. package/dist/bundle/{chunk-JZXQZW2D.js → chunk-MQ7MCVZV.js} +2 -2
  45. package/dist/bundle/{chunk-2TC76TLJ.js → chunk-N42VUNTO.js} +2 -2
  46. package/dist/bundle/{chunk-KIZT2MI6.js → chunk-N6TIFJHW.js} +1 -1
  47. package/dist/bundle/{chunk-WDNNN3J4.js → chunk-NL3PAFAE.js} +6 -6
  48. package/dist/bundle/{chunk-AVWPMJ6E.js → chunk-NUYRMU56.js} +2 -2
  49. package/dist/bundle/{chunk-NTW5ZE47.js → chunk-OX6EWGSG.js} +39 -33
  50. package/dist/bundle/{chunk-WINKEV4F.js → chunk-PPLFOIYX.js} +4 -4
  51. package/dist/bundle/{chunk-OMP6ALBT.js → chunk-PPSUA3IZ.js} +3 -3
  52. package/dist/bundle/{chunk-UY7GJRGY.js → chunk-PXMHBTK3.js} +4 -4
  53. package/dist/bundle/{chunk-VVKEWWSO.js → chunk-QAKL3GXB.js} +1 -1
  54. package/dist/bundle/{chunk-QK6VLKG5.js → chunk-QGL2UGML.js} +301 -185
  55. package/dist/bundle/{chunk-OUX3QMYI.js → chunk-QHBVGKC3.js} +45 -26
  56. package/dist/bundle/{chunk-BEQPZA3S.js → chunk-R52RMHWF.js} +2 -2
  57. package/dist/bundle/chunk-RSDIPQXP.js +35 -0
  58. package/dist/bundle/{chunk-VQCWVZWG.js → chunk-RSNGMNU5.js} +6 -6
  59. package/dist/bundle/{chunk-TMATSEP5.js → chunk-SD5PUYKF.js} +12 -12
  60. package/dist/bundle/chunk-SKZ2E3WC.js +91 -0
  61. package/dist/bundle/{chunk-PEJHI7QO.js → chunk-T7CDLV33.js} +4 -4
  62. package/dist/bundle/{chunk-D4E345BC.js → chunk-TZVL4U7U.js} +2 -2
  63. package/dist/bundle/{chunk-YCUQKFGD.js → chunk-UCSFO5GW.js} +3 -3
  64. package/dist/bundle/{chunk-A4BQGSKI.js → chunk-VQPLHOVQ.js} +6 -6
  65. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
  66. package/dist/bundle/{chunk-LUIPXRKN.js → chunk-XQUTJITP.js} +46 -46
  67. package/dist/bundle/{chunk-L4CMCC3V.js → chunk-Y6VWGJ4Q.js} +1 -1
  68. package/dist/bundle/{chunk-RFRI2HFT.js → chunk-YLRTLZF6.js} +1 -1
  69. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  70. package/dist/bundle/{chunk-U67TSAAO.js → chunk-YYKJN6H5.js} +908 -555
  71. package/dist/bundle/{chunk-WMRFAK5B.js → chunk-ZDIAPICE.js} +4 -4
  72. package/dist/bundle/command-contract-DPXM4SZT.js +33 -0
  73. package/dist/bundle/{decode-2GATBZGH.js → decode-W6YPTGJA.js} +5 -5
  74. package/dist/bundle/{dispatch-MJMW7WDH.js → dispatch-H7EFNBEH.js} +8 -8
  75. package/dist/bundle/{echarts-GKEZEAL7.js → echarts-YAWDIC5D.js} +2 -2
  76. package/dist/bundle/{embed-TBQPLA4Y.js → embed-EN4UTLV5.js} +6 -6
  77. package/dist/bundle/{embedder-B5DTNCRO.js → embedder-HEKHRL7E.js} +9 -9
  78. package/dist/bundle/{entry-A6DEW2TD.js → entry-2KB6MTCG.js} +7 -7
  79. package/dist/bundle/{failure-TLF3SISS.js → failure-3DU3HLBQ.js} +2 -2
  80. package/dist/bundle/{first-run-3N5AABEY.js → first-run-LBG26WWO.js} +11 -11
  81. package/dist/bundle/first-screen-TGTSLUI6.js +31 -0
  82. package/dist/bundle/{instructions-P5E34PQR.js → instructions-HA62QNPR.js} +1 -1
  83. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  84. package/dist/bundle/{node-GKPRXS5Y.js → node-MZ2VWSQQ.js} +2 -2
  85. package/dist/bundle/{node-sqlite-GIDPALK3.js → node-sqlite-KNNS6DCM.js} +6 -6
  86. package/dist/bundle/{oauth-C57W4IMD.js → oauth-KWUABBSQ.js} +7 -7
  87. package/dist/bundle/{open-E6Q4WRPU.js → open-JXMCYCIV.js} +5 -5
  88. package/dist/bundle/{openai-5WMXY2KP.js → openai-HL3IR4VT.js} +14 -14
  89. package/dist/bundle/{process-U2P5Z6UF.js → process-K2FICLWY.js} +1 -1
  90. package/dist/bundle/{program-FEUDU6GF.js → program-IFOMT4JS.js} +58 -50
  91. package/dist/bundle/{prompt-4NGAZGHE.js → prompt-HVD3Q77P.js} +5 -5
  92. package/dist/bundle/{proxy-transport-MGCJ7JAW.js → proxy-transport-PA5SGMRY.js} +5 -5
  93. package/dist/bundle/{recognize-EUHRBA7V.js → recognize-HHLVETKI.js} +4 -4
  94. package/dist/bundle/{remote-3JHLB2FV.js → remote-HUAKXJCS.js} +7 -7
  95. package/dist/bundle/{rerank-ZZ45SZPC.js → rerank-NWFIV7OF.js} +7 -7
  96. package/dist/bundle/{serve-XOGX5FC5.js → serve-ANUKAJJN.js} +9 -9
  97. package/dist/bundle/{server-I6O72XP5.js → server-7Q7WAOHO.js} +35 -34
  98. package/dist/bundle/server-HCQS4YDQ.js +60 -0
  99. package/dist/bundle/{state-BIUYTGH6.js → state-Y2AJ5XTP.js} +6 -6
  100. package/dist/bundle/{store-FOJFYOMR.js → store-S3IG5KWL.js} +15 -12
  101. package/dist/bundle/store-maintenance-command-V2WC4G6J.js +50 -0
  102. package/dist/bundle/tg.js +13 -13
  103. package/dist/commands/session.d.ts.map +1 -1
  104. package/dist/commands/session.js +7 -0
  105. package/dist/commands/session.js.map +1 -1
  106. package/dist/telegram/login.d.ts +2 -0
  107. package/dist/telegram/login.d.ts.map +1 -1
  108. package/dist/telegram/login.js +31 -2
  109. package/dist/telegram/login.js.map +1 -1
  110. package/dist/version.d.ts +1 -1
  111. package/dist/version.js +1 -1
  112. package/package.json +3 -3
  113. package/dist/bundle/chunk-63YKD7YA.js +0 -18
  114. package/dist/bundle/command-contract-YF4KGFXC.js +0 -32
  115. package/dist/bundle/first-screen-HANARM67.js +0 -30
  116. package/dist/bundle/server-DRE5MJ76.js +0 -59
  117. package/dist/bundle/store-maintenance-command-YKV2C34N.js +0 -49
  118. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -4,12 +4,12 @@ import {
4
4
  errorCodes,
5
5
  isCliError,
6
6
  visibleControls
7
- } from "./chunk-CCHHEMPM.js";
7
+ } from "./chunk-EB2IULWB.js";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-ZVVMGPBJ.js";
11
11
 
12
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
12
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
13
13
  var EXIT_CODES = {
14
14
  validation_error: 2,
15
15
  configuration_error: 3,
@@ -24,6 +24,7 @@ var EXIT_CODES = {
24
24
  provider_unavailable: 12,
25
25
  invalid_response: 13,
26
26
  outcome_unknown: 14,
27
+ conflict: 15,
27
28
  cancelled: 130
28
29
  };
29
30
  var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
@@ -1280,7 +1281,7 @@ function unwrap(schema) {
1280
1281
  }
1281
1282
  __name(unwrap, "unwrap");
1282
1283
 
1283
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1284
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1284
1285
  var EFFECT_LEVELS = ["none", "read", "write"];
1285
1286
  var effectsSchema = strictObject({
1286
1287
  remote: picklist(EFFECT_LEVELS),
@@ -1917,7 +1918,7 @@ function toStandardJsonSchema(schema) {
1917
1918
  }
1918
1919
  __name(toStandardJsonSchema, "toStandardJsonSchema");
1919
1920
 
1920
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1921
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1921
1922
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
1922
1923
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
1923
1924
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -1959,7 +1960,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
1959
1960
  return String(value);
1960
1961
  }), "fill");
1961
1962
 
1962
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
1963
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
1963
1964
  var MAX_NEXT_STEPS = 2;
1964
1965
  var COMPACT_FLAG = "--compact";
1965
1966
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
@@ -2035,6 +2036,17 @@ var metaSchema = strictObject({
2035
2036
  now_local: optional(localTime),
2036
2037
  window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) }))
2037
2038
  });
2039
+ var offsetOf = /* @__PURE__ */ __name((at, zone) => {
2040
+ const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" }).formatToParts(at).find((part) => part.type === "timeZoneName")?.value ?? "GMT";
2041
+ return name === "GMT" ? "+00:00" : name.slice(3);
2042
+ }, "offsetOf");
2043
+ var clockMeta = /* @__PURE__ */ __name((at, zone) => {
2044
+ const offset = offsetOf(at, zone);
2045
+ const sign = offset.startsWith("-") ? -1 : 1;
2046
+ const [hours = 0, minutes = 0] = offset.slice(1).split(":").map(Number);
2047
+ const wall = new Date(at + sign * (hours * 60 + minutes) * 6e4).toISOString().slice(0, -1);
2048
+ return { now: new Date(at).toISOString(), now_local: `${wall}${offset}`, timezone: zone };
2049
+ }, "clockMeta");
2038
2050
  var nextSteps = optional(pipe(array(nextStepSchema), maxLength(MAX_NEXT_STEPS)));
2039
2051
  var listEnvelopeSchema = /* @__PURE__ */ __name((item) => strictObject({
2040
2052
  items: array(item),
@@ -2060,7 +2072,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2060
2072
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2061
2073
  ].join("\n"), "jsonlOf");
2062
2074
 
2063
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2075
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2064
2076
  var CRASH_CODE = "internal_error";
2065
2077
  var CRASH_REASON = "command.crashed";
2066
2078
  var errorObjectSchema = strictObject({
@@ -2143,11 +2155,17 @@ var BASE_REASONS = defineReasons([
2143
2155
  details: []
2144
2156
  },
2145
2157
  { reason: "outcome.unknown", code: "outcome_unknown", message: "it is not known whether it worked", details: [] },
2158
+ {
2159
+ reason: "write.conflict",
2160
+ code: "conflict",
2161
+ message: "it changed since it was read; read it again",
2162
+ details: []
2163
+ },
2146
2164
  { reason: "command.cancelled", code: "cancelled", message: "the command was cancelled", details: [] },
2147
2165
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2148
2166
  ]);
2149
2167
 
2150
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2168
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2151
2169
  var SAME_COMMAND = "*";
2152
2170
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2153
2171
  var stepSchema = union([
@@ -2226,7 +2244,7 @@ var STEPS = defineSteps([
2226
2244
  }
2227
2245
  ]);
2228
2246
 
2229
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2247
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
2230
2248
  var recognise = /* @__PURE__ */ __name((failure) => {
2231
2249
  if (isCliError(failure))
2232
2250
  return failure;
@@ -2439,6 +2457,7 @@ export {
2439
2457
  isoTime,
2440
2458
  reference,
2441
2459
  pageSchema,
2460
+ clockMeta,
2442
2461
  listEnvelopeSchema,
2443
2462
  itemEnvelopeSchema,
2444
2463
  jsonlOf,
@@ -4,10 +4,10 @@ import {
4
4
  check,
5
5
  pipe,
6
6
  string
7
- } from "./chunk-77M3IAVU.js";
7
+ } from "./chunk-76CX2YPT.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-CCHHEMPM.js";
10
+ } from "./chunk-EB2IULWB.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
8
8
  var errorCodes = [
9
9
  "validation_error",
10
10
  "configuration_error",
@@ -19,6 +19,7 @@ var errorCodes = [
19
19
  "provider_unavailable",
20
20
  "invalid_response",
21
21
  "outcome_unknown",
22
+ "conflict",
22
23
  "cancelled"
23
24
  ];
24
25
  var BRAND = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/CliError");
@@ -38,7 +39,7 @@ var CliError = class extends Error {
38
39
  };
39
40
  var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
40
41
 
41
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
42
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
42
43
  var CONTROL = (
43
44
  // biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
44
45
  /[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu