@wirecat/tg-cli 0.114.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 (123) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bin/tg.js.map +1 -1
  3. package/dist/bot/transport.d.ts +10 -8
  4. package/dist/bot/transport.d.ts.map +1 -1
  5. package/dist/bot/transport.js +16 -2
  6. package/dist/bot/transport.js.map +1 -1
  7. package/dist/bundle/{adapter-YAEHX3QB.js → adapter-6CLMTQOV.js} +85 -56
  8. package/dist/bundle/{all-profiles-R5CW42HQ.js → all-profiles-R2UZMH24.js} +10 -8
  9. package/dist/bundle/{anthropic-F25RHYV2.js → anthropic-QKIPHV2Z.js} +6 -5
  10. package/dist/bundle/{app-server-FAG6FNXR.js → app-server-AZB2MFK6.js} +47 -43
  11. package/dist/bundle/{bot-api-KOIAXTQR.js → bot-api-2IM243J4.js} +53 -48
  12. package/dist/bundle/{bot-history-PRAOZEWC.js → bot-history-G6CRVCL2.js} +19 -17
  13. package/dist/bundle/{bun-XIMM6EHD.js → bun-JDKPISPX.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-DSUCO4TR.js → bun-sqlite-X5PY5IQT.js} +5 -4
  15. package/dist/bundle/{chunk-CDCBFMEI.js → chunk-42GK3XRS.js} +2 -2
  16. package/dist/bundle/{chunk-YQ64ZNLD.js → chunk-4D5AUWAY.js} +28 -15
  17. package/dist/bundle/{chunk-IN25CJ3D.js → chunk-4IQZRW4O.js} +13 -13
  18. package/dist/bundle/{chunk-Y4LCSCSH.js → chunk-577MFPCP.js} +3 -3
  19. package/dist/bundle/{chunk-O7CBGHI7.js → chunk-5FCONCJO.js} +1 -1
  20. package/dist/bundle/{chunk-CS5DQ6KM.js → chunk-5VFPUOJO.js} +17 -14
  21. package/dist/bundle/{chunk-ZFMOPKPT.js → chunk-5ZIBAYIZ.js} +2 -2
  22. package/dist/bundle/{chunk-EARO464A.js → chunk-76CX2YPT.js} +210 -129
  23. package/dist/bundle/{chunk-E2IRSRTB.js → chunk-B4UOCWM4.js} +4 -2
  24. package/dist/bundle/{chunk-Y3AQHPAJ.js → chunk-BGMV66FC.js} +1 -1
  25. package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
  26. package/dist/bundle/{chunk-WOQGUIXE.js → chunk-DP5LRU7K.js} +1 -1
  27. package/dist/bundle/chunk-EB2IULWB.js +72 -0
  28. package/dist/bundle/{chunk-4JOKO4IW.js → chunk-FDI4GOIP.js} +912 -493
  29. package/dist/bundle/{chunk-P4YBABUC.js → chunk-GV7ZJ33M.js} +6 -4
  30. package/dist/bundle/{chunk-C7K7AP6G.js → chunk-H72UEHNG.js} +69 -36
  31. package/dist/bundle/{chunk-2PAKHXIV.js → chunk-HBUJNNZD.js} +35 -35
  32. package/dist/bundle/{chunk-NTF34HJP.js → chunk-HK6SIIGG.js} +3 -3
  33. package/dist/bundle/{chunk-NUVBC3LJ.js → chunk-HLNYJPAB.js} +2 -2
  34. package/dist/bundle/{chunk-WIRDTH3J.js → chunk-HUOXUI2M.js} +22 -22
  35. package/dist/bundle/{chunk-RBC7JQ4Y.js → chunk-I6JF43YP.js} +5 -3
  36. package/dist/bundle/{chunk-OFDMD3YF.js → chunk-IR4S7POE.js} +8 -8
  37. package/dist/bundle/{chunk-3R43O3GG.js → chunk-JFTCOV37.js} +80 -24
  38. package/dist/bundle/{chunk-YPABTT7A.js → chunk-JJMQA272.js} +14 -89
  39. package/dist/bundle/{chunk-DQQEN3X4.js → chunk-K2RYCCTP.js} +4 -4
  40. package/dist/bundle/{chunk-OWHF6BON.js → chunk-K62YATVD.js} +6 -6
  41. package/dist/bundle/{chunk-6SPLZI5P.js → chunk-KA6EGOJY.js} +4 -4
  42. package/dist/bundle/chunk-KV4267S4.js +23 -0
  43. package/dist/bundle/{chunk-AL36NHO6.js → chunk-LFKEKSI5.js} +1043 -307
  44. package/dist/bundle/{chunk-7FOT4XD2.js → chunk-LSKGCJWD.js} +3426 -1298
  45. package/dist/bundle/{chunk-M3IWROIF.js → chunk-LXH3SKY3.js} +10 -8
  46. package/dist/bundle/{chunk-QCXYJKPF.js → chunk-MQ7MCVZV.js} +2 -2
  47. package/dist/bundle/{chunk-EQJG44KE.js → chunk-N42VUNTO.js} +2 -2
  48. package/dist/bundle/{chunk-KIZT2MI6.js → chunk-N6TIFJHW.js} +1 -1
  49. package/dist/bundle/{chunk-MQTTVQ3V.js → chunk-NL3PAFAE.js} +8 -8
  50. package/dist/bundle/{chunk-ULFTCR5W.js → chunk-NUYRMU56.js} +2 -2
  51. package/dist/bundle/{chunk-34USFPBF.js → chunk-OX6EWGSG.js} +185 -291
  52. package/dist/bundle/{chunk-KZQXOZFC.js → chunk-PPLFOIYX.js} +7 -20
  53. package/dist/bundle/{chunk-TTTDZOBW.js → chunk-PPSUA3IZ.js} +3 -3
  54. package/dist/bundle/{chunk-ALHKUQDZ.js → chunk-PXMHBTK3.js} +4 -4
  55. package/dist/bundle/{chunk-VVKEWWSO.js → chunk-QAKL3GXB.js} +1 -1
  56. package/dist/bundle/{chunk-I6BKSGZQ.js → chunk-QGL2UGML.js} +306 -190
  57. package/dist/bundle/{chunk-J5U2HKGZ.js → chunk-QHBVGKC3.js} +51 -30
  58. package/dist/bundle/{chunk-NJ2I4KFZ.js → chunk-R52RMHWF.js} +2 -2
  59. package/dist/bundle/chunk-RSDIPQXP.js +35 -0
  60. package/dist/bundle/{chunk-XDOPONC3.js → chunk-RSNGMNU5.js} +6 -6
  61. package/dist/bundle/{chunk-NKP3RUM4.js → chunk-SD5PUYKF.js} +14 -12
  62. package/dist/bundle/chunk-SKZ2E3WC.js +91 -0
  63. package/dist/bundle/{chunk-HA35XN2Z.js → chunk-T7CDLV33.js} +4 -4
  64. package/dist/bundle/{chunk-C34IDOA5.js → chunk-TZVL4U7U.js} +2 -2
  65. package/dist/bundle/{chunk-3EZ43DAF.js → chunk-UCSFO5GW.js} +3 -3
  66. package/dist/bundle/{chunk-NMVFFWF2.js → chunk-VQPLHOVQ.js} +9 -9
  67. package/dist/bundle/chunk-XBIPSSKI.js +166 -0
  68. package/dist/bundle/{chunk-VHO66SMY.js → chunk-XQUTJITP.js} +59 -57
  69. package/dist/bundle/{chunk-L4CMCC3V.js → chunk-Y6VWGJ4Q.js} +1 -1
  70. package/dist/bundle/{chunk-RFRI2HFT.js → chunk-YLRTLZF6.js} +1 -1
  71. package/dist/bundle/chunk-YPF6OS37.js +46 -0
  72. package/dist/bundle/{chunk-TKNCJMYN.js → chunk-YYKJN6H5.js} +946 -589
  73. package/dist/bundle/{chunk-5HKMEXVQ.js → chunk-ZDIAPICE.js} +4 -4
  74. package/dist/bundle/command-contract-DPXM4SZT.js +33 -0
  75. package/dist/bundle/{decode-7U4SXPAN.js → decode-W6YPTGJA.js} +7 -6
  76. package/dist/bundle/dispatch-H7EFNBEH.js +411 -0
  77. package/dist/bundle/{echarts-GKEZEAL7.js → echarts-YAWDIC5D.js} +2 -2
  78. package/dist/bundle/{embed-IDZDQMSW.js → embed-EN4UTLV5.js} +6 -5
  79. package/dist/bundle/{embedder-RY5R2PGO.js → embedder-HEKHRL7E.js} +11 -10
  80. package/dist/bundle/{entry-P6YZ3ZV6.js → entry-2KB6MTCG.js} +7 -6
  81. package/dist/bundle/failure-3DU3HLBQ.js +24 -0
  82. package/dist/bundle/first-run-LBG26WWO.js +27 -0
  83. package/dist/bundle/first-screen-TGTSLUI6.js +31 -0
  84. package/dist/bundle/{instructions-P5E34PQR.js → instructions-HA62QNPR.js} +1 -1
  85. package/dist/bundle/{mcp-FUSDPAOL.js → mcp-PPVOM4SE.js} +5 -3
  86. package/dist/bundle/{node-GKPRXS5Y.js → node-MZ2VWSQQ.js} +2 -2
  87. package/dist/bundle/{node-sqlite-VUXFVPJ6.js → node-sqlite-KNNS6DCM.js} +6 -5
  88. package/dist/bundle/{oauth-7SQIPMOY.js → oauth-KWUABBSQ.js} +7 -6
  89. package/dist/bundle/{open-W3BN2SIO.js → open-JXMCYCIV.js} +5 -4
  90. package/dist/bundle/{openai-LQTK3ZMC.js → openai-HL3IR4VT.js} +15 -14
  91. package/dist/bundle/{process-U2P5Z6UF.js → process-K2FICLWY.js} +1 -1
  92. package/dist/bundle/{program-DIPSLR6O.js → program-IFOMT4JS.js} +70 -57
  93. package/dist/bundle/{prompt-GESHKSM5.js → prompt-HVD3Q77P.js} +5 -4
  94. package/dist/bundle/{proxy-transport-C2EUUT32.js → proxy-transport-PA5SGMRY.js} +5 -4
  95. package/dist/bundle/{recognize-FEQTIJET.js → recognize-HHLVETKI.js} +4 -3
  96. package/dist/bundle/{remote-UXOPBPKS.js → remote-HUAKXJCS.js} +7 -6
  97. package/dist/bundle/{rerank-L4JM4REK.js → rerank-NWFIV7OF.js} +7 -6
  98. package/dist/bundle/{serve-DDWW44DB.js → serve-ANUKAJJN.js} +10 -9
  99. package/dist/bundle/{server-UTWBIZHB.js → server-7Q7WAOHO.js} +37 -34
  100. package/dist/bundle/server-HCQS4YDQ.js +60 -0
  101. package/dist/bundle/{state-EV7FGEK4.js → state-Y2AJ5XTP.js} +6 -5
  102. package/dist/bundle/{store-EXBUF4OG.js → store-S3IG5KWL.js} +15 -11
  103. package/dist/bundle/store-maintenance-command-V2WC4G6J.js +50 -0
  104. package/dist/bundle/tg.js +159 -14
  105. package/dist/commands/session.d.ts.map +1 -1
  106. package/dist/commands/session.js +7 -0
  107. package/dist/commands/session.js.map +1 -1
  108. package/dist/telegram/login.d.ts +2 -0
  109. package/dist/telegram/login.d.ts.map +1 -1
  110. package/dist/telegram/login.js +31 -2
  111. package/dist/telegram/login.js.map +1 -1
  112. package/dist/version.d.ts +1 -1
  113. package/dist/version.js +1 -1
  114. package/package.json +5 -4
  115. package/skills/tg-cli/SKILL.md +2 -0
  116. package/dist/bundle/chunk-TRRRRGMI.js +0 -18
  117. package/dist/bundle/command-contract-SOTDPG22.js +0 -31
  118. package/dist/bundle/first-run-66KTCVQK.js +0 -24
  119. package/dist/bundle/first-screen-NY46X6QU.js +0 -29
  120. package/dist/bundle/identity-GXVKGCNU.js +0 -11
  121. package/dist/bundle/server-ZI7WDAW6.js +0 -56
  122. package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +0 -46
  123. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-3R43O3GG.js";
10
+ } from "./chunk-JFTCOV37.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-CDCBFMEI.js";
13
+ } from "./chunk-42GK3XRS.js";
14
14
  import {
15
15
  QUERY_ARGUMENT,
16
16
  lentConnection,
@@ -18,7 +18,7 @@ import {
18
18
  refuseLacking,
19
19
  servicesFor,
20
20
  storeModeDeps
21
- } from "./chunk-4JOKO4IW.js";
21
+ } from "./chunk-FDI4GOIP.js";
22
22
  import {
23
23
  DEFAULT_OUTPUT_BYTES,
24
24
  ENTITIES,
@@ -42,33 +42,31 @@ import {
42
42
  sealed,
43
43
  startRecording,
44
44
  traceOf
45
- } from "./chunk-AL36NHO6.js";
45
+ } from "./chunk-LFKEKSI5.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-YPABTT7A.js";
51
+ } from "./chunk-JJMQA272.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-I6BKSGZQ.js";
54
+ } from "./chunk-QGL2UGML.js";
55
55
  import {
56
56
  MAX_BUFFERED_INPUT
57
- } from "./chunk-ULFTCR5W.js";
57
+ } from "./chunk-NUYRMU56.js";
58
58
  import {
59
59
  captureStreams,
60
- errorObjectOf,
61
- mcpErrorResult
62
- } from "./chunk-34USFPBF.js";
60
+ traceIdOf
61
+ } from "./chunk-OX6EWGSG.js";
63
62
  import {
64
63
  COMPACT_FLAG,
65
- CliError,
66
64
  SNAKE_CASE,
67
65
  array,
68
66
  boolean,
69
67
  description,
70
68
  duplicates,
71
- errorCodes,
69
+ errorObjectOf,
72
70
  integer,
73
71
  isoDate,
74
72
  itemEnvelopeSchema,
@@ -77,6 +75,7 @@ import {
77
75
  looseObject,
78
76
  maxLength,
79
77
  maxValue,
78
+ mcpErrorResult,
80
79
  minLength,
81
80
  minValue,
82
81
  number,
@@ -94,20 +93,23 @@ import {
94
93
  text,
95
94
  toJsonSchema,
96
95
  toStandardJsonSchema,
97
- traceIdOf,
98
96
  union,
99
97
  unknown,
100
98
  word,
101
99
  writes
102
- } from "./chunk-EARO464A.js";
100
+ } from "./chunk-76CX2YPT.js";
101
+ import {
102
+ CliError,
103
+ errorCodes
104
+ } from "./chunk-EB2IULWB.js";
103
105
  import {
104
106
  __name
105
107
  } from "./chunk-ZVVMGPBJ.js";
106
108
 
107
- // 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/agent.js
109
+ // 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/agent.js
108
110
  import { Readable } from "node:stream";
109
111
 
110
- // 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/lint.js
112
+ // 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/lint.js
111
113
  var LINT_SEVERITIES = ["high", "medium", "low"];
112
114
  var lintRuleSchema = strictObject({
113
115
  id: word,
@@ -225,16 +227,17 @@ var LINT_RULES = defineLintRules([
225
227
  }
226
228
  ]);
227
229
  var baselineSchema = array(text);
228
- var overridesSchema = array(strictObject({
230
+ var overrideSchema = strictObject({
229
231
  rule: word,
230
232
  target: text,
231
233
  reason: pipe(text, minLength(10, "say why, in a sentence")),
232
234
  /** A GitHub handle or a team, `@octocat`. */
233
235
  owner: pipe(string(), regex(/^@[\w.-]+(\/[\w.-]+)?$/, "a GitHub handle or team, such as @octocat")),
234
236
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
235
- }));
237
+ });
238
+ var overridesSchema = array(overrideSchema);
236
239
 
237
- // 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/audit.js
240
+ // 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/audit.js
238
241
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
239
242
  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");
240
243
  var AUDIT_RULES = defineAuditRules([
@@ -343,7 +346,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
343
346
  { path: ["upgrade"], meaning: "updates the CLI" }
344
347
  ]);
345
348
 
346
- // 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/fields.js
349
+ // 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/fields.js
347
350
  var fieldRuleSchema = strictObject({ id: word, rule: text });
348
351
  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");
349
352
  var FIELD_RULES = defineFieldRules([
@@ -359,7 +362,7 @@ var FIELD_RULES = defineFieldRules([
359
362
  }
360
363
  ]);
361
364
 
362
- // 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/identifiers.js
365
+ // 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/identifiers.js
363
366
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
364
367
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
365
368
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -381,7 +384,7 @@ var IDENTIFIERS = defineIdentifiers([
381
384
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
382
385
  ]);
383
386
 
384
- // 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/flags-calendar.js
387
+ // 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/flags-calendar.js
385
388
  var CALENDAR_FLAGS = [
386
389
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
387
390
  {
@@ -455,7 +458,7 @@ var CALENDAR_FLAGS = [
455
458
  }
456
459
  ];
457
460
 
458
- // 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/flags-how.js
461
+ // 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/flags-how.js
459
462
  var HOW_FLAGS = [
460
463
  {
461
464
  name: "--limit",
@@ -1449,7 +1452,7 @@ var HOW_FLAGS = [
1449
1452
  }
1450
1453
  ];
1451
1454
 
1452
- // 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/flags-mail.js
1455
+ // 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/flags-mail.js
1453
1456
  var MAIL_FLAGS = [
1454
1457
  {
1455
1458
  name: "--cc",
@@ -1470,10 +1473,16 @@ var MAIL_FLAGS = [
1470
1473
  role: "value",
1471
1474
  type: "switch",
1472
1475
  meaning: "with --reply-to, an e-mail reply also goes to everyone the message went to"
1476
+ },
1477
+ {
1478
+ name: "--trimmed",
1479
+ role: "output",
1480
+ type: "switch",
1481
+ meaning: "each e-mail's own text, without the quoted earlier mail and the signature; refused with --full"
1473
1482
  }
1474
1483
  ];
1475
1484
 
1476
- // 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/flags-what.js
1485
+ // 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/flags-what.js
1477
1486
  var WHAT_FLAGS = [
1478
1487
  {
1479
1488
  name: "--analysis-provider",
@@ -2471,7 +2480,7 @@ var WHAT_FLAGS = [
2471
2480
  }
2472
2481
  ];
2473
2482
 
2474
- // 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/vocabulary.js
2483
+ // 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/vocabulary.js
2475
2484
  var FLAG_TYPES = [
2476
2485
  "switch",
2477
2486
  "count",
@@ -2655,6 +2664,10 @@ var verbs = [
2655
2664
  ["move", "move a thing to another place in the source: a file to a folder, an event to a calendar"],
2656
2665
  ["copy", "copy a file in the source"],
2657
2666
  ["run", "run a saved job once, now, as its timer would"],
2667
+ ["exec", "what a timer itself starts: one saved schedule, from its file; a person uses run"],
2668
+ // schedule's creators are named for what the timer starts; the owner kept these names over `create --kind`.
2669
+ ["agent", "save a timer that starts an agent with a prompt, read-only; a verb under schedule, never a resource"],
2670
+ ["command", "save a timer that runs one of this tool's own commands; a verb under schedule"],
2658
2671
  ["claim", "take a thing for a while so no other agent works it at once; the claim lapses by itself"],
2659
2672
  ["release", "give back what claim took, before it lapses"],
2660
2673
  ["merge", "fold a duplicate into the thing that stays; nothing is deleted"],
@@ -2725,6 +2738,10 @@ var collections = [
2725
2738
  ["recordings", "the files a provider recorded of a meeting"],
2726
2739
  ["jobs", "work this tool runs in the background or on a timer"],
2727
2740
  ["actions", "what an agent proposes to do; the owner confirms or rejects each"],
2741
+ [
2742
+ "findings",
2743
+ "what an agent read in stored mail, staged in batches with citations; nothing is recorded until the owner confirms. What it proposes to do is actions"
2744
+ ],
2728
2745
  ["agents", "the agents whose actions are recorded in the shared store"],
2729
2746
  ["reminders", "scheduled notices about stored work, claimed and acknowledged with delivery receipts"],
2730
2747
  ["key-documents", "selected source documents that a project keeps as its starting references"],
@@ -2766,7 +2783,11 @@ var singulars = [
2766
2783
  ["api", "the source's own API, one command per operation"],
2767
2784
  ["privacy", "who may find, see, call or add the account"],
2768
2785
  ["metadata", "a profile's cached source attributes"],
2769
- ["auth", "the credentials a bot profile uses: its token and the secrets beside it"]
2786
+ ["auth", "the credentials a bot profile uses: its token and the secrets beside it"],
2787
+ [
2788
+ "schedule",
2789
+ "a profile's timers the owner saved, each running a command of this tool or an agent; the tool's own background work is jobs"
2790
+ ]
2770
2791
  ];
2771
2792
  var views = [
2772
2793
  ["tree", "the parent and child hierarchy of stored sources"],
@@ -2832,7 +2853,7 @@ var VOCABULARY = defineVocabulary({
2832
2853
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2833
2854
  });
2834
2855
 
2835
- // 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/agent.js
2856
+ // 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/agent.js
2836
2857
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2837
2858
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2838
2859
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3055,7 +3076,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3055
3076
  }
3056
3077
  }, "runCommandForAgent");
3057
3078
 
3058
- // 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/tool.js
3079
+ // 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/tool.js
3059
3080
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3060
3081
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3061
3082
  var message = pipe(
@@ -3314,7 +3335,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3314
3335
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3315
3336
  }, "failed");
3316
3337
 
3317
- // 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/surface.js
3338
+ // 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/surface.js
3318
3339
  import { randomUUID } from "node:crypto";
3319
3340
  var MATCHES = 8;
3320
3341
  var ANSWER = answerSchema();
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openCache
5
- } from "./chunk-XDOPONC3.js";
5
+ } from "./chunk-RSNGMNU5.js";
6
6
  import {
7
7
  CliError,
8
8
  isCliError
9
- } from "./chunk-EARO464A.js";
9
+ } from "./chunk-EB2IULWB.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
@@ -0,0 +1,35 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ resolvePaths
5
+ } from "./chunk-OX6EWGSG.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-ZVVMGPBJ.js";
9
+
10
+ // 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/store/path.js
11
+ import { userInfo } from "node:os";
12
+ import { isAbsolute, join, relative, resolve } from "node:path";
13
+ var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
14
+ var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
15
+ var accountHome = /* @__PURE__ */ __name(() => {
16
+ try {
17
+ return userInfo().homedir;
18
+ } catch {
19
+ return void 0;
20
+ }
21
+ }, "accountHome");
22
+ var refuseOwnerStoreInTests = /* @__PURE__ */ __name((file, env = process.env, home = accountHome()) => {
23
+ if (!env.VITEST || !home || file === ":memory:")
24
+ return;
25
+ const inside = relative(wirecatDirectory({ HOME: home, USERPROFILE: home }), resolve(file));
26
+ if (inside.startsWith("..") || isAbsolute(inside))
27
+ return;
28
+ throw new Error(`a test tried to open ${file}, in the owner's real WireCat folder; give it a MESSAGING_STORE or HOME of its own`);
29
+ }, "refuseOwnerStoreInTests");
30
+
31
+ export {
32
+ wirecatDirectory,
33
+ storePath,
34
+ refuseOwnerStoreInTests
35
+ };
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-L4CMCC3V.js";
5
+ } from "./chunk-Y6VWGJ4Q.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-EARO464A.js";
8
+ } from "./chunk-EB2IULWB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/store/sqlite-warning.js
13
+ // 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/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.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // 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/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-DSUCO4TR.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-X5PY5IQT.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-VUXFVPJ6.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-KNNS6DCM.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -1,30 +1,32 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- installerOf,
5
4
  updateCommand
6
- } from "./chunk-KZQXOZFC.js";
5
+ } from "./chunk-PPLFOIYX.js";
7
6
  import {
8
7
  QUESTIONS,
9
8
  readSetupAnswers,
10
9
  unanswered,
11
10
  writeSetupAnswers
12
- } from "./chunk-TTTDZOBW.js";
11
+ } from "./chunk-PPSUA3IZ.js";
13
12
  import {
14
13
  DEFAULT_STEMMERS,
15
14
  LANGUAGES
16
- } from "./chunk-OFDMD3YF.js";
15
+ } from "./chunk-IR4S7POE.js";
17
16
  import {
18
17
  sharedConfigPath
19
- } from "./chunk-NMVFFWF2.js";
18
+ } from "./chunk-VQPLHOVQ.js";
20
19
  import {
21
20
  storePath
22
- } from "./chunk-TRRRRGMI.js";
21
+ } from "./chunk-RSDIPQXP.js";
22
+ import {
23
+ installerOf
24
+ } from "./chunk-KV4267S4.js";
23
25
  import {
24
26
  __name
25
27
  } from "./chunk-ZVVMGPBJ.js";
26
28
 
27
- // 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/cli/first-run.js
29
+ // 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/cli/first-run.js
28
30
  import { spawnSync } from "node:child_process";
29
31
  import { accessSync, constants, realpathSync } from "node:fs";
30
32
  import { delimiter, join } from "node:path";
@@ -82,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
82
84
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
83
85
  }, "suggested");
84
86
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
85
- const { openStore } = await import("./store-EXBUF4OG.js");
87
+ const { openStore } = await import("./store-S3IG5KWL.js");
86
88
  const store = await openStore({ env });
87
89
  let rebuild = false;
88
90
  try {
@@ -111,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
111
113
  if (!rebuild)
112
114
  return;
113
115
  const [{ openCache }, { buildStems }] = await Promise.all([
114
- import("./open-W3BN2SIO.js"),
115
- import("./store-maintenance-command-UBZE2Z6T.js")
116
+ import("./open-JXMCYCIV.js"),
117
+ import("./store-maintenance-command-V2WC4G6J.js")
116
118
  ]);
117
119
  const database = await openCache(storePath(env));
118
120
  try {
@@ -124,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
124
126
  var askTools = /* @__PURE__ */ __name(async (run) => {
125
127
  const { command, env, io } = run;
126
128
  const installed = run.installed ?? ((name) => onPath(name, env));
127
- const { WIRECAT_TOOLS } = await import("./first-screen-NY46X6QU.js");
129
+ const { WIRECAT_TOOLS } = await import("./first-screen-TGTSLUI6.js");
128
130
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
129
131
  const missing = others.filter((tool) => !installed(tool.command));
130
132
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -197,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
197
199
  contentLanguages: start.contentLanguages,
198
200
  all: start.path[0] === "setup",
199
201
  io: {
200
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-GESHKSM5.js")).readSecret(prompt, { input, echo: true }), "ask"),
202
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-HVD3Q77P.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
204
  `), "say")
203
205
  }
@@ -0,0 +1,91 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
6
+
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/runs/secrets.js
8
+ var SECRET_WORDS = /* @__PURE__ */ new Set([
9
+ "authorization",
10
+ "cookie",
11
+ "credential",
12
+ "credentials",
13
+ "passphrase",
14
+ "password",
15
+ "passwd",
16
+ "pwd",
17
+ "pass",
18
+ "passcode",
19
+ "pin",
20
+ "otp",
21
+ "2fa",
22
+ "secret",
23
+ "token",
24
+ "contrase\xF1a",
25
+ "contrasena",
26
+ "clave",
27
+ "\u043F\u0430\u0440\u043E\u043B\u044C",
28
+ "\u043F\u0438\u043D",
29
+ "\u043A\u043E\u0434",
30
+ ...["api", "auth", "service", "account", "db", "database", "priv", "private", "client"].map((word) => `${word}key`),
31
+ ...["db", "database", "key"].map((word) => `${word}pass`)
32
+ ]);
33
+ var secretNamed = /* @__PURE__ */ __name((name) => {
34
+ const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).map((word) => word.toLowerCase());
35
+ return words.some((word, at) => SECRET_WORDS.has(word) || SECRET_WORDS.has(word + (words[at + 1] ?? "")));
36
+ }, "secretNamed");
37
+ var START = "(?<![A-Za-z0-9_-])";
38
+ var END = "(?![A-Za-z0-9_-])";
39
+ var KNOWN_TOKENS = new RegExp(`${[
40
+ "gh[pousr]_[A-Za-z0-9]{36,}",
41
+ "github_pat_[A-Za-z0-9_]{22,}",
42
+ "sk-[A-Za-z0-9_-]{20,}",
43
+ "xox[abprs]-[A-Za-z0-9-]{10,}",
44
+ "(?:AKIA|ASIA)[A-Z0-9]{16}",
45
+ "AIza[A-Za-z0-9_-]{35}",
46
+ "(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}",
47
+ "npm_[A-Za-z0-9]{36}",
48
+ "eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
49
+ ].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
50
+ var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
51
+ var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
52
+ var NAMED_PAIR = /(?<![\p{L}\p{N}])([\p{L}\p{N}_.-]*(?:token|pass|pwd|pin|otp|2fa|secret|credential|cookie|authorization|key|contrase|clave|пароль|пин|код)[\p{L}\p{N}_.-]*)(["']?\s*(?:=>|[:=])\s*["']?|\s+(?![\p{L}]+(?![\p{L}\p{N}])))((?:Bearer\s+|Basic\s+)?)([^\s"'&,;]+)/giu;
53
+ var looksRandom = /* @__PURE__ */ __name((run) => {
54
+ if (run.length < 20)
55
+ return false;
56
+ const classes = [/[a-z]/, /[A-Z]/, /\d/, /[^A-Za-z0-9]/].filter((kind) => kind.test(run)).length;
57
+ if (classes < 3)
58
+ return false;
59
+ let switches = 0;
60
+ for (let at = 1; at < run.length; at++) {
61
+ const [before, after] = [run[at - 1], run[at]];
62
+ if (/[a-z]/.test(before) && /[A-Z]/.test(after) || /[A-Z]/.test(before) && /[a-z]/.test(after))
63
+ switches += 1;
64
+ }
65
+ if (switches / run.length < 0.15)
66
+ return false;
67
+ const pieces = run.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g) ?? [];
68
+ if (pieces.join("").length / Math.max(pieces.length, 1) >= 2.75)
69
+ return false;
70
+ return entropy(run) >= 3.5;
71
+ }, "looksRandom");
72
+ var entropy = /* @__PURE__ */ __name((text) => {
73
+ const counts = /* @__PURE__ */ new Map();
74
+ for (const char of text)
75
+ counts.set(char, (counts.get(char) ?? 0) + 1);
76
+ let bits = 0;
77
+ for (const count of counts.values())
78
+ bits -= count / text.length * Math.log2(count / text.length);
79
+ return bits;
80
+ }, "entropy");
81
+ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
82
+ // A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
83
+ token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
84
+ )), "withoutSecrets");
85
+ var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
86
+ var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
87
+
88
+ export {
89
+ secretNamed,
90
+ withoutSecrets
91
+ };
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-TRRRRGMI.js";
5
+ } from "./chunk-RSDIPQXP.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-EARO464A.js";
8
+ } from "./chunk-EB2IULWB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/speech/models.js
13
+ // 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/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // 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/speech/install.js
140
+ // 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/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-EARO464A.js";
5
+ } from "./chunk-EB2IULWB.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/ports/app.js
10
+ // 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/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");
@@ -4,15 +4,15 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-ULFTCR5W.js";
7
+ } from "./chunk-NUYRMU56.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-EARO464A.js";
10
+ } from "./chunk-EB2IULWB.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // 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/terminal/prompt.js
15
+ // 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/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 } = {}) => {
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-TRRRRGMI.js";
5
+ } from "./chunk-RSDIPQXP.js";
6
6
  import {
7
- resolvePaths,
8
- singleLine
9
- } from "./chunk-34USFPBF.js";
7
+ resolvePaths
8
+ } from "./chunk-OX6EWGSG.js";
10
9
  import {
11
- CliError
12
- } from "./chunk-EARO464A.js";
10
+ CliError,
11
+ singleLine
12
+ } from "./chunk-EB2IULWB.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/store/shared-config.js
17
+ // 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/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // 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/domain/task-categories.js
21
+ // 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/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // 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/store/shared-config.js
776
+ // 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/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });