@wirecat/tg-cli 0.108.0 → 0.109.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 (101) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-YFWRJWL5.js → adapter-6JLFYFL5.js} +45 -44
  3. package/dist/bundle/{all-profiles-GQIZSF4W.js → all-profiles-X7Y3T5S4.js} +8 -8
  4. package/dist/bundle/{anthropic-BKWEDKPU.js → anthropic-LGVXAADT.js} +5 -5
  5. package/dist/bundle/{app-server-RJV7ICLH.js → app-server-UI3AFSJX.js} +40 -39
  6. package/dist/bundle/{bot-api-2PAH2JZ3.js → bot-api-TQYRNYJQ.js} +46 -45
  7. package/dist/bundle/{bot-history-DPPZ43F4.js → bot-history-DDNTNMNB.js} +15 -15
  8. package/dist/bundle/{bun-Q7COX3Z5.js → bun-WXGS6HML.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-YI4AYZXO.js → bun-sqlite-M6JEXKRT.js} +4 -4
  10. package/dist/bundle/{chunk-PQHYM2XC.js → chunk-25VC6U3A.js} +1 -1
  11. package/dist/bundle/{chunk-DNOJKQXQ.js → chunk-2ILQYCBY.js} +377 -286
  12. package/dist/bundle/{chunk-EWL3ZFOI.js → chunk-3PEZWXKO.js} +6 -6
  13. package/dist/bundle/{chunk-LY2LFJMU.js → chunk-4R4AH6FM.js} +117 -94
  14. package/dist/bundle/{chunk-CVWF3BFK.js → chunk-5SUFMBU5.js} +44 -44
  15. package/dist/bundle/chunk-76C5SSMR.js +379 -0
  16. package/dist/bundle/{chunk-5HPXENE5.js → chunk-7AJ2IESO.js} +1 -1
  17. package/dist/bundle/{chunk-PCMW3PW6.js → chunk-7T7ILNCU.js} +2 -2
  18. package/dist/bundle/{chunk-ZYBDAZFO.js → chunk-AD3QPYI3.js} +2 -2
  19. package/dist/bundle/{chunk-ON67U6WV.js → chunk-AGVKIJB7.js} +6 -6
  20. package/dist/bundle/{chunk-YJ6GFFEE.js → chunk-BESIMQ5U.js} +1 -1
  21. package/dist/bundle/{chunk-76OSISA3.js → chunk-BHPCZCX7.js} +2 -2
  22. package/dist/bundle/{chunk-3GXKJKIC.js → chunk-BZIZLEJN.js} +4 -4
  23. package/dist/bundle/{chunk-BOSMBW4I.js → chunk-C3RX3UOE.js} +11 -11
  24. package/dist/bundle/{chunk-KQFR7ZAA.js → chunk-CH2ESVV5.js} +22 -22
  25. package/dist/bundle/{chunk-WUF64WOG.js → chunk-CHI6D4D6.js} +4 -4
  26. package/dist/bundle/{chunk-DUWTG2GE.js → chunk-CVLDXFRP.js} +8 -8
  27. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-DLAFGSTN.js} +1 -1
  28. package/dist/bundle/{chunk-XZXOGHU5.js → chunk-DO33KAMM.js} +71 -60
  29. package/dist/bundle/{chunk-77OOX2OE.js → chunk-DZVYGBZB.js} +79 -56
  30. package/dist/bundle/{chunk-WAGDZB62.js → chunk-GUFM5RLW.js} +2 -2
  31. package/dist/bundle/{chunk-REI5TPS3.js → chunk-IGIPIO4J.js} +11 -11
  32. package/dist/bundle/{chunk-LYLGLFWY.js → chunk-INYO2QFW.js} +3 -3
  33. package/dist/bundle/{chunk-3HYDKCXB.js → chunk-IULYECPC.js} +12 -12
  34. package/dist/bundle/{chunk-6MZ2ZBX4.js → chunk-IV2QWSPG.js} +2 -2
  35. package/dist/bundle/{chunk-6QTUYMGX.js → chunk-KHKC236O.js} +2 -2
  36. package/dist/bundle/{chunk-QVIT6SQ5.js → chunk-M62LF3QE.js} +613 -381
  37. package/dist/bundle/{chunk-KZPZFPGB.js → chunk-MF6NKU3Z.js} +81 -30
  38. package/dist/bundle/{chunk-WEDWIXIC.js → chunk-N56WXUCW.js} +2 -2
  39. package/dist/bundle/{chunk-T4SDOYPY.js → chunk-N5FSRC6H.js} +117 -70
  40. package/dist/bundle/{chunk-FG2QTYEF.js → chunk-NAVNCM5K.js} +1 -1
  41. package/dist/bundle/{chunk-F67VPIJL.js → chunk-OHLMHBDI.js} +28 -28
  42. package/dist/bundle/{chunk-SONKULUF.js → chunk-P55L4S6N.js} +3 -3
  43. package/dist/bundle/{chunk-OB5PPPXH.js → chunk-P57R2P75.js} +7 -7
  44. package/dist/bundle/{chunk-5P27JGGA.js → chunk-P5ILJ7MN.js} +5 -5
  45. package/dist/bundle/{chunk-AS2BVZU3.js → chunk-QQF7RDLR.js} +49 -24
  46. package/dist/bundle/{chunk-WKSLGPZQ.js → chunk-RD2NLJSU.js} +16 -4
  47. package/dist/bundle/{chunk-NCXCBVHO.js → chunk-S7B6MTXX.js} +6 -6
  48. package/dist/bundle/{chunk-CZANI3DM.js → chunk-SH63Q4QR.js} +22 -22
  49. package/dist/bundle/{chunk-BT6PWDM6.js → chunk-TMXNMO66.js} +3 -3
  50. package/dist/bundle/{chunk-4RDMNNVO.js → chunk-UIPBAT2T.js} +26 -14
  51. package/dist/bundle/{chunk-EBB7RFCW.js → chunk-UUQ3BH2Z.js} +2 -2
  52. package/dist/bundle/{chunk-VMU4SGCE.js → chunk-VFVMB3NV.js} +8 -6
  53. package/dist/bundle/{chunk-B7TFWNKJ.js → chunk-VYR2IIWW.js} +1 -1
  54. package/dist/bundle/{chunk-AOUB2QFP.js → chunk-WHYS6OSG.js} +2 -2
  55. package/dist/bundle/{chunk-ZHHVNTBJ.js → chunk-WNTXIQMB.js} +2 -2
  56. package/dist/bundle/{chunk-26PWIQPP.js → chunk-XJVGCCQE.js} +666 -782
  57. package/dist/bundle/{chunk-67SRVSPU.js → chunk-XMMWKHNY.js} +26 -9
  58. package/dist/bundle/{chunk-BL72ZIBV.js → chunk-YXCQ4DLZ.js} +1 -1
  59. package/dist/bundle/{chunk-3562DVQ7.js → chunk-YYOIULA2.js} +8 -8
  60. package/dist/bundle/{chunk-TVA3NXXO.js → chunk-ZFMS5G4H.js} +2 -2
  61. package/dist/bundle/{chunk-D6DBVPES.js → chunk-ZHP44EML.js} +3 -3
  62. package/dist/bundle/{chunk-VK2YLSK7.js → chunk-ZMZKZL3Y.js} +1 -1
  63. package/dist/bundle/{chunk-R5YOKYTE.js → chunk-ZUOS7QUB.js} +11 -11
  64. package/dist/bundle/command-contract-E2MWR3T3.js +32 -0
  65. package/dist/bundle/{decode-ZFAFVFWX.js → decode-RKPOGPBE.js} +19 -17
  66. package/dist/bundle/{echarts-SVXNTKGV.js → echarts-H5QQRBHI.js} +2 -2
  67. package/dist/bundle/{embed-V755YE7O.js → embed-7TVAPNP7.js} +5 -5
  68. package/dist/bundle/{embedder-MQAPNQBH.js → embedder-YOOHWWN6.js} +8 -8
  69. package/dist/bundle/{entry-ULQ3VOMQ.js → entry-SAKW5HEZ.js} +5 -5
  70. package/dist/bundle/{first-run-64BTWXDR.js → first-run-C744N572.js} +9 -9
  71. package/dist/bundle/first-screen-7GKUEIWS.js +30 -0
  72. package/dist/bundle/{identity-PW45VBUU.js → identity-NRWTZIQ4.js} +3 -3
  73. package/dist/bundle/{instructions-G3ZUIRRH.js → instructions-6LWRAW47.js} +1 -1
  74. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-WSGVVZWI.js} +2 -2
  75. package/dist/bundle/{node-IDJXLZSX.js → node-XN4PIVWW.js} +2 -2
  76. package/dist/bundle/{node-sqlite-W22J37MG.js → node-sqlite-PCBGROGQ.js} +4 -4
  77. package/dist/bundle/{oauth-Q52LBXDE.js → oauth-PX6NGHUV.js} +6 -6
  78. package/dist/bundle/{open-YLD7VHEC.js → open-BKJGJ6GX.js} +3 -3
  79. package/dist/bundle/openai-MJP7CZXP.js +250 -0
  80. package/dist/bundle/{process-OBESF2XG.js → process-4PRR3MLT.js} +1 -1
  81. package/dist/bundle/{program-EBMWHOKQ.js → program-7YZUO42B.js} +48 -47
  82. package/dist/bundle/{prompt-FHHQF3MG.js → prompt-CILSZC2R.js} +4 -4
  83. package/dist/bundle/{proxy-transport-YSBYG26I.js → proxy-transport-FWGKTYBL.js} +4 -4
  84. package/dist/bundle/{recognize-QNHKHGKM.js → recognize-AVFDJAIL.js} +5 -3
  85. package/dist/bundle/{remote-RVZWRCCT.js → remote-2VYXGOM4.js} +6 -6
  86. package/dist/bundle/{rerank-KG2USEME.js → rerank-6FU2JPCD.js} +6 -6
  87. package/dist/bundle/{serve-I4MJKEQ4.js → serve-3YQOHBR6.js} +8 -8
  88. package/dist/bundle/server-S2K4YDDG.js +56 -0
  89. package/dist/bundle/{server-GV7SV3L6.js → server-TPK3LNEX.js} +32 -31
  90. package/dist/bundle/{state-AJKHWFBU.js → state-LLUNBLZE.js} +5 -5
  91. package/dist/bundle/{store-L3HFSSGJ.js → store-27FQ743G.js} +10 -10
  92. package/dist/bundle/store-maintenance-command-AFJMKEBK.js +45 -0
  93. package/dist/bundle/tg.js +4 -4
  94. package/dist/version.d.ts +1 -1
  95. package/dist/version.js +1 -1
  96. package/package.json +3 -3
  97. package/dist/bundle/command-contract-5GJV6EHG.js +0 -32
  98. package/dist/bundle/first-screen-YZCH4TEV.js +0 -30
  99. package/dist/bundle/server-AXMWFPNT.js +0 -55
  100. package/dist/bundle/store-maintenance-command-Y22ARSDR.js +0 -44
  101. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-62EDJKGP.js} +0 -0
@@ -7,20 +7,20 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-4RDMNNVO.js";
10
+ } from "./chunk-UIPBAT2T.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-6MZ2ZBX4.js";
13
+ } from "./chunk-IV2QWSPG.js";
14
14
  import {
15
15
  lentConnection,
16
16
  onlineDeps,
17
17
  refuseLacking,
18
18
  servicesFor,
19
19
  storeModeDeps
20
- } from "./chunk-26PWIQPP.js";
20
+ } from "./chunk-XJVGCCQE.js";
21
21
  import {
22
22
  ENTITIES
23
- } from "./chunk-LY2LFJMU.js";
23
+ } from "./chunk-4R4AH6FM.js";
24
24
  import {
25
25
  DEFAULT_OUTPUT_BYTES,
26
26
  LOCAL_WRITE,
@@ -43,21 +43,21 @@ import {
43
43
  sealed,
44
44
  startRecording,
45
45
  traceOf
46
- } from "./chunk-77OOX2OE.js";
46
+ } from "./chunk-DZVYGBZB.js";
47
47
  import {
48
48
  currentCaller,
49
49
  keepsSuccess,
50
50
  runContextOf,
51
51
  withCaller
52
- } from "./chunk-DUWTG2GE.js";
52
+ } from "./chunk-CVLDXFRP.js";
53
53
  import {
54
54
  MAX_BUFFERED_INPUT
55
- } from "./chunk-AOUB2QFP.js";
55
+ } from "./chunk-WHYS6OSG.js";
56
56
  import {
57
57
  captureStreams,
58
58
  errorObjectOf,
59
59
  mcpErrorResult
60
- } from "./chunk-T4SDOYPY.js";
60
+ } from "./chunk-N5FSRC6H.js";
61
61
  import {
62
62
  CliError,
63
63
  SNAKE_CASE,
@@ -96,15 +96,15 @@ import {
96
96
  unknown,
97
97
  word,
98
98
  writes
99
- } from "./chunk-67SRVSPU.js";
99
+ } from "./chunk-XMMWKHNY.js";
100
100
  import {
101
101
  __name
102
102
  } from "./chunk-ZVVMGPBJ.js";
103
103
 
104
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/agent.js
104
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
105
105
  import { Readable } from "node:stream";
106
106
 
107
- // node_modules/.pnpm/@wirecat+cli-base@0.65.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
107
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.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
108
108
  var LINT_SEVERITIES = ["high", "medium", "low"];
109
109
  var lintRuleSchema = strictObject({
110
110
  id: word,
@@ -231,7 +231,7 @@ var overridesSchema = array(strictObject({
231
231
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
232
232
  }));
233
233
 
234
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
234
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
235
235
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
236
236
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
237
237
  var AUDIT_RULES = defineAuditRules([
@@ -289,7 +289,7 @@ var PARITY_GROUPS = defineParityGroups([
289
289
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
290
290
  {
291
291
  name: "all",
292
- members: ["tg", "max", "memo", "drive", "zm", "wa"],
292
+ members: ["tg", "max", "memo", "drive", "zm", "wa", "mail"],
293
293
  covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
294
294
  differences: []
295
295
  },
@@ -313,7 +313,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
313
313
  { path: ["upgrade"], meaning: "updates the CLI" }
314
314
  ]);
315
315
 
316
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
316
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
317
317
  var fieldRuleSchema = strictObject({ id: word, rule: text });
318
318
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
319
319
  var FIELD_RULES = defineFieldRules([
@@ -329,7 +329,7 @@ var FIELD_RULES = defineFieldRules([
329
329
  }
330
330
  ]);
331
331
 
332
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
332
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
333
333
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
334
334
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
335
335
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -351,7 +351,7 @@ var IDENTIFIERS = defineIdentifiers([
351
351
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
352
352
  ]);
353
353
 
354
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
354
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
355
355
  var CALENDAR_FLAGS = [
356
356
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
357
357
  {
@@ -425,7 +425,7 @@ var CALENDAR_FLAGS = [
425
425
  }
426
426
  ];
427
427
 
428
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
428
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
429
429
  var HOW_FLAGS = [
430
430
  {
431
431
  name: "--limit",
@@ -1405,7 +1405,7 @@ var HOW_FLAGS = [
1405
1405
  }
1406
1406
  ];
1407
1407
 
1408
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1408
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1409
1409
  var WHAT_FLAGS = [
1410
1410
  {
1411
1411
  name: "--analysis-provider",
@@ -2395,7 +2395,7 @@ var WHAT_FLAGS = [
2395
2395
  }
2396
2396
  ];
2397
2397
 
2398
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2398
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2399
2399
  var FLAG_TYPES = [
2400
2400
  "switch",
2401
2401
  "count",
@@ -2749,7 +2749,7 @@ var VOCABULARY = defineVocabulary({
2749
2749
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2750
2750
  });
2751
2751
 
2752
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2752
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2753
2753
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2754
2754
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2755
2755
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2970,7 +2970,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2970
2970
  }
2971
2971
  }, "runCommandForAgent");
2972
2972
 
2973
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2973
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/tool.js
2974
2974
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2975
2975
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2976
2976
  var message = pipe(
@@ -3229,7 +3229,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3229
3229
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3230
3230
  }, "failed");
3231
3231
 
3232
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3232
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3233
3233
  import { randomUUID } from "node:crypto";
3234
3234
  var MATCHES = 8;
3235
3235
  var ANSWER = answerSchema();
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-BT6PWDM6.js";
8
+ } from "./chunk-TMXNMO66.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -3,19 +3,19 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  errorCodes,
5
5
  isContentKey
6
- } from "./chunk-67SRVSPU.js";
6
+ } from "./chunk-XMMWKHNY.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/runs/run-context.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/runs/run-context.js
12
12
  import { AsyncLocalStorage } from "node:async_hooks";
13
13
  import { createHash } from "node:crypto";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
16
16
  import { homedir } from "node:os";
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/errors/failures.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/errors/failures.js
19
19
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
20
20
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
21
21
  const { code, exitCode } = value ?? {};
@@ -23,7 +23,7 @@ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
23
23
  }, "isCommanderFailure");
24
24
  var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/runs/events.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/runs/events.js
27
27
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
28
28
  var renderEvent = /* @__PURE__ */ __name((event) => {
29
29
  if (event.event === "warning") {
@@ -71,7 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
71
71
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
72
72
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
73
73
 
74
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/runs/secrets.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/runs/secrets.js
75
75
  var SECRET_WORDS = /* @__PURE__ */ new Set([
76
76
  "authorization",
77
77
  "cookie",
@@ -152,7 +152,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
152
152
  var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
153
153
  var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
154
154
 
155
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
155
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
156
156
  var MESSAGE_AT_MOST = 500;
157
157
  var CAUSES_AT_MOST = 5;
158
158
  var FRAMES_AT_MOST = 15;
@@ -260,7 +260,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
260
260
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
261
261
  }, "redactText");
262
262
 
263
- // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/runs/run-context.js
263
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/runs/run-context.js
264
264
  var REDACTED = "[redacted]";
265
265
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
266
266
  if (!record)
@@ -527,7 +527,7 @@ var require_cross_spawn = __commonJS({
527
527
  }
528
528
  });
529
529
 
530
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
530
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
531
531
  import { existsSync } from "node:fs";
532
532
  import { win32 } from "node:path";
533
533
  var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");