@wirecat/tg-cli 0.115.0 → 0.117.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 (133) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bot/transport.d.ts +11 -9
  3. package/dist/bot/transport.d.ts.map +1 -1
  4. package/dist/bot/transport.js +58 -32
  5. package/dist/bot/transport.js.map +1 -1
  6. package/dist/bundle/{adapter-ODK7R4LY.js → adapter-VNQ72MBK.js} +98 -63
  7. package/dist/bundle/{all-profiles-AQYM65BS.js → all-profiles-3W2UQTCK.js} +10 -9
  8. package/dist/bundle/{anthropic-VBDSVNIM.js → anthropic-DFUW2KTG.js} +6 -6
  9. package/dist/bundle/{app-server-YOIHLBNS.js → app-server-5XJIMLHB.js} +49 -45
  10. package/dist/bundle/{bot-api-TRYLGQKK.js → bot-api-HRRBF3W6.js} +50 -49
  11. package/dist/bundle/{bot-history-7DTJLBBJ.js → bot-history-GBH5XE4N.js} +18 -17
  12. package/dist/bundle/{bun-XIMM6EHD.js → bun-ZMOYGG6F.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-6B3BL5IV.js → bun-sqlite-6FZFMA7K.js} +5 -5
  14. package/dist/bundle/{chunk-DIABP7ZP.js → chunk-2452HCIV.js} +3 -3
  15. package/dist/bundle/{chunk-WMG4IGEB.js → chunk-2XLKZL6K.js} +77 -38
  16. package/dist/bundle/chunk-3GRX7WP6.js +35 -0
  17. package/dist/bundle/{chunk-WINKEV4F.js → chunk-3MQOLYAN.js} +4 -4
  18. package/dist/bundle/{chunk-KDOBY524.js → chunk-3RJYLN5V.js} +133 -27
  19. package/dist/bundle/{chunk-Y3AQHPAJ.js → chunk-4JDGN6OD.js} +1 -1
  20. package/dist/bundle/{chunk-JZXQZW2D.js → chunk-56Q5JV3Z.js} +2 -2
  21. package/dist/bundle/{chunk-XIYRHIBK.js → chunk-66FZBLRJ.js} +13 -13
  22. package/dist/bundle/{chunk-OUX3QMYI.js → chunk-6GFUL4OU.js} +228 -84
  23. package/dist/bundle/{chunk-O7CBGHI7.js → chunk-6HRN7BW6.js} +1 -1
  24. package/dist/bundle/{chunk-TQYMLXDS.js → chunk-7NBUT62O.js} +3 -3
  25. package/dist/bundle/{chunk-A4BQGSKI.js → chunk-7Y3RUEVY.js} +6 -6
  26. package/dist/bundle/chunk-AG6HWPQP.js +64 -0
  27. package/dist/bundle/{chunk-GCFU6WBE.js → chunk-AUBRELCM.js} +3 -3
  28. package/dist/bundle/{chunk-PEKTB3FQ.js → chunk-B2YPB5AE.js} +56 -27
  29. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-BXTDAGM4.js} +3 -2
  30. package/dist/bundle/{chunk-QK6VLKG5.js → chunk-C6TUVV7E.js} +674 -316
  31. package/dist/bundle/{chunk-XY7IGVVS.js → chunk-EA2PGDER.js} +2 -2
  32. package/dist/bundle/{chunk-KIZT2MI6.js → chunk-EL6I4WTB.js} +1 -1
  33. package/dist/bundle/{chunk-77M3IAVU.js → chunk-EPCFXKTX.js} +27 -8
  34. package/dist/bundle/{chunk-L4CMCC3V.js → chunk-EZTYJ43A.js} +4 -2
  35. package/dist/bundle/{chunk-PEJHI7QO.js → chunk-F6KBVIJP.js} +4 -4
  36. package/dist/bundle/{chunk-UY7GJRGY.js → chunk-FAHHERJ7.js} +4 -4
  37. package/dist/bundle/{chunk-WOQGUIXE.js → chunk-FEKXHILZ.js} +1 -1
  38. package/dist/bundle/chunk-G7B5UIE7.js +182 -0
  39. package/dist/bundle/{chunk-RFRI2HFT.js → chunk-GFHNQBD2.js} +1 -1
  40. package/dist/bundle/{chunk-TMATSEP5.js → chunk-HORGORHK.js} +12 -12
  41. package/dist/bundle/{chunk-2TC76TLJ.js → chunk-HWYSRB64.js} +2 -2
  42. package/dist/bundle/{chunk-GX4DMI4H.js → chunk-HZZGOLGP.js} +15 -12
  43. package/dist/bundle/{chunk-MUZ4KYGY.js → chunk-JWIUK3SK.js} +2 -2
  44. package/dist/bundle/{chunk-WDNNN3J4.js → chunk-KVTLT4V7.js} +6 -6
  45. package/dist/bundle/{chunk-UBQ3LOF6.js → chunk-L5WNE4WS.js} +2 -2
  46. package/dist/bundle/{chunk-OMP6ALBT.js → chunk-M7V5XRM6.js} +3 -3
  47. package/dist/bundle/{chunk-LUIPXRKN.js → chunk-MLHKQDUN.js} +647 -129
  48. package/dist/bundle/{chunk-VQCWVZWG.js → chunk-MP7M6FFU.js} +6 -6
  49. package/dist/bundle/{chunk-5ROWSRK7.js → chunk-NUCDEOFC.js} +2 -2
  50. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-P3ASN72F.js} +1 -1
  51. package/dist/bundle/{chunk-VVKEWWSO.js → chunk-PTIB7NEE.js} +1 -1
  52. package/dist/bundle/{chunk-D4E345BC.js → chunk-Q7O4CQDO.js} +4 -2
  53. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-QOGYHU3Q.js} +4 -4
  54. package/dist/bundle/{chunk-BEQPZA3S.js → chunk-RDH2QBUE.js} +3 -3
  55. package/dist/bundle/{chunk-AVWPMJ6E.js → chunk-RDSLSV4M.js} +2 -2
  56. package/dist/bundle/{chunk-YCUQKFGD.js → chunk-SQXB5ZUZ.js} +3 -3
  57. package/dist/bundle/{chunk-RHUNMU4Q.js → chunk-TFBHDIGY.js} +4 -4
  58. package/dist/bundle/{chunk-OSP335AJ.js → chunk-TG6ZYL4B.js} +8 -8
  59. package/dist/bundle/{chunk-IUDIRZVU.js → chunk-UGPZCNYC.js} +991 -536
  60. package/dist/bundle/{chunk-AICS3TSF.js → chunk-UYK5AXSW.js} +4 -4
  61. package/dist/bundle/{chunk-PZAEI4NM.js → chunk-V2T7NYNU.js} +55 -46
  62. package/dist/bundle/{chunk-HZKWB6WS.js → chunk-V47NPSSV.js} +28 -28
  63. package/dist/bundle/{chunk-U67TSAAO.js → chunk-VMCQGZIA.js} +1893 -840
  64. package/dist/bundle/{chunk-CNO3R4O4.js → chunk-VRDVXXXD.js} +8 -8
  65. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-VW6BF6M7.js} +1 -1
  66. package/dist/bundle/{chunk-M7B5IMH3.js → chunk-X3CD475M.js} +1336 -366
  67. package/dist/bundle/chunk-XW5C4TI7.js +91 -0
  68. package/dist/bundle/{chunk-NTW5ZE47.js → chunk-YHZFGUAP.js} +39 -33
  69. package/dist/bundle/{chunk-BIEBJLYO.js → chunk-YIXXH74F.js} +2 -2
  70. package/dist/bundle/{chunk-BPPRR7TV.js → chunk-Z4QKLHJW.js} +15587 -1637
  71. package/dist/bundle/{chunk-POKTQZOM.js → chunk-ZPILMEFY.js} +12 -89
  72. package/dist/bundle/command-contract-KMMHARMR.js +33 -0
  73. package/dist/bundle/{decode-2GATBZGH.js → decode-YMSOY2AY.js} +5 -5
  74. package/dist/bundle/{dispatch-MJMW7WDH.js → dispatch-OP27MWX5.js} +8 -8
  75. package/dist/bundle/{echarts-GKEZEAL7.js → echarts-7XS55TQY.js} +2 -2
  76. package/dist/bundle/{embed-TBQPLA4Y.js → embed-QTOE7NN3.js} +6 -6
  77. package/dist/bundle/{embedder-B5DTNCRO.js → embedder-KBBRYSNH.js} +9 -9
  78. package/dist/bundle/{entry-A6DEW2TD.js → entry-HGEUYYMX.js} +7 -7
  79. package/dist/bundle/{failure-TLF3SISS.js → failure-4JUQFXJT.js} +2 -2
  80. package/dist/bundle/{first-run-3N5AABEY.js → first-run-CSGMEJXY.js} +11 -11
  81. package/dist/bundle/first-screen-K2PBNJNE.js +31 -0
  82. package/dist/bundle/{instructions-P5E34PQR.js → instructions-S6ZXCTFH.js} +1 -1
  83. package/dist/bundle/{mcp-MNI62HHE.js → mcp-M4QN2E7R.js} +2 -2
  84. package/dist/bundle/{node-GKPRXS5Y.js → node-LCIUWXXG.js} +2 -2
  85. package/dist/bundle/{node-sqlite-GIDPALK3.js → node-sqlite-HL4WY4N2.js} +6 -6
  86. package/dist/bundle/{oauth-C57W4IMD.js → oauth-U4KIMDKG.js} +7 -7
  87. package/dist/bundle/{open-E6Q4WRPU.js → open-EH7OS7M7.js} +5 -5
  88. package/dist/bundle/{openai-5WMXY2KP.js → openai-W5TB3NA5.js} +14 -14
  89. package/dist/bundle/{process-U2P5Z6UF.js → process-3CVLTCTA.js} +1 -1
  90. package/dist/bundle/{program-FEUDU6GF.js → program-LOIZTK2P.js} +58 -50
  91. package/dist/bundle/{prompt-4NGAZGHE.js → prompt-IDNH7N3W.js} +5 -5
  92. package/dist/bundle/{proxy-transport-MGCJ7JAW.js → proxy-transport-4DPZB2W2.js} +5 -5
  93. package/dist/bundle/{recognize-EUHRBA7V.js → recognize-G5EWYXIF.js} +4 -4
  94. package/dist/bundle/{remote-3JHLB2FV.js → remote-4XTBZVZD.js} +7 -7
  95. package/dist/bundle/{rerank-ZZ45SZPC.js → rerank-OWSTDLZN.js} +7 -7
  96. package/dist/bundle/{serve-XOGX5FC5.js → serve-YCPSEWP3.js} +9 -9
  97. package/dist/bundle/server-KELKX6S3.js +60 -0
  98. package/dist/bundle/{server-I6O72XP5.js → server-ODG4A2KK.js} +35 -34
  99. package/dist/bundle/{state-BIUYTGH6.js → state-OL2235G5.js} +6 -6
  100. package/dist/bundle/{store-FOJFYOMR.js → store-5AACYNDM.js} +17 -12
  101. package/dist/bundle/store-maintenance-command-3J7WZYVN.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/account.d.ts.map +1 -1
  107. package/dist/telegram/account.js +4 -1
  108. package/dist/telegram/account.js.map +1 -1
  109. package/dist/telegram/errors.d.ts.map +1 -1
  110. package/dist/telegram/errors.js +2 -1
  111. package/dist/telegram/errors.js.map +1 -1
  112. package/dist/telegram/feature.d.ts +4 -1
  113. package/dist/telegram/feature.d.ts.map +1 -1
  114. package/dist/telegram/feature.js +5 -2
  115. package/dist/telegram/feature.js.map +1 -1
  116. package/dist/telegram/login.d.ts +2 -0
  117. package/dist/telegram/login.d.ts.map +1 -1
  118. package/dist/telegram/login.js +31 -2
  119. package/dist/telegram/login.js.map +1 -1
  120. package/dist/telegram/sending.d.ts.map +1 -1
  121. package/dist/telegram/sending.js +24 -10
  122. package/dist/telegram/sending.js.map +1 -1
  123. package/dist/version.d.ts +1 -1
  124. package/dist/version.js +1 -1
  125. package/package.json +3 -3
  126. package/dist/bundle/chunk-63YKD7YA.js +0 -18
  127. package/dist/bundle/chunk-GWDMKEDY.js +0 -48
  128. package/dist/bundle/chunk-WMRFAK5B.js +0 -132
  129. package/dist/bundle/command-contract-YF4KGFXC.js +0 -32
  130. package/dist/bundle/first-screen-HANARM67.js +0 -30
  131. package/dist/bundle/server-DRE5MJ76.js +0 -59
  132. package/dist/bundle/store-maintenance-command-YKV2C34N.js +0 -49
  133. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-VOXIGICJ.js} +0 -0
@@ -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.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/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
+ };
@@ -7,6 +7,7 @@ import {
7
7
  errorObjectOf,
8
8
  getDotPath,
9
9
  isoTime,
10
+ object,
10
11
  optional,
11
12
  parseRegistry,
12
13
  picklist,
@@ -18,11 +19,11 @@ import {
18
19
  string,
19
20
  text,
20
21
  unknown
21
- } from "./chunk-77M3IAVU.js";
22
+ } from "./chunk-EPCFXKTX.js";
22
23
  import {
23
24
  CliError,
24
25
  visibleControls
25
- } from "./chunk-CCHHEMPM.js";
26
+ } from "./chunk-BXTDAGM4.js";
26
27
  import {
27
28
  __commonJS,
28
29
  __name,
@@ -1895,7 +1896,7 @@ var require_cli_table3 = __commonJS({
1895
1896
  }
1896
1897
  });
1897
1898
 
1898
- // 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/drain.js
1899
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
1899
1900
  var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
1900
1901
  if (signal?.aborted)
1901
1902
  return Promise.reject(signal.reason);
@@ -1923,7 +1924,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
1923
1924
  });
1924
1925
  }, "waitForDrain");
1925
1926
 
1926
- // 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/streams.js
1927
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
1927
1928
  var processStreams = {
1928
1929
  drain: /* @__PURE__ */ __name(async (signal) => {
1929
1930
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
@@ -1952,7 +1953,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
1952
1953
  };
1953
1954
  }, "captureStreams");
1954
1955
 
1955
- // 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/retry.js
1956
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
1956
1957
  var DEFAULT_RETRY = {
1957
1958
  retries: 1,
1958
1959
  baseDelayMs: 250,
@@ -1964,7 +1965,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
1964
1965
  return Math.round(random() * ceiling);
1965
1966
  }, "backoffMs");
1966
1967
 
1967
- // 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/result-fields.js
1968
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
1968
1969
  var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
1969
1970
  var validate = /* @__PURE__ */ __name((paths) => {
1970
1971
  if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
@@ -1975,14 +1976,14 @@ var fieldsOf = /* @__PURE__ */ __name((value) => {
1975
1976
  validate(paths);
1976
1977
  return [...new Set(paths)];
1977
1978
  }, "fieldsOf");
1978
- var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
1979
+ var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
1979
1980
  var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
1980
1981
  var itemPaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("items.") ? path.slice(6) : path), "itemPaths");
1981
1982
  var onePaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("item.") ? path.slice(5) : path), "onePaths");
1982
1983
  var select = /* @__PURE__ */ __name((value, paths) => {
1983
1984
  if (Array.isArray(value))
1984
1985
  return value.map((item) => select(item, paths));
1985
- if (!object(value))
1986
+ if (!object2(value))
1986
1987
  return value;
1987
1988
  const result = {};
1988
1989
  const groups = /* @__PURE__ */ new Map();
@@ -2000,9 +2001,9 @@ var select = /* @__PURE__ */ __name((value, paths) => {
2000
2001
  const found = value[key];
2001
2002
  if (children.includes(""))
2002
2003
  result[key] = found;
2003
- else if (object(found) || Array.isArray(found)) {
2004
+ else if (object2(found) || Array.isArray(found)) {
2004
2005
  const selected = select(found, children);
2005
- if (Array.isArray(selected) || object(selected) && Object.keys(selected).length > 0)
2006
+ if (Array.isArray(selected) || object2(selected) && Object.keys(selected).length > 0)
2006
2007
  result[key] = selected;
2007
2008
  }
2008
2009
  }
@@ -2014,22 +2015,22 @@ var select = /* @__PURE__ */ __name((value, paths) => {
2014
2015
  var project = /* @__PURE__ */ __name((value, fields) => {
2015
2016
  if (Array.isArray(value))
2016
2017
  return value.map((item) => select(item, itemPaths(fields)));
2017
- if (object(value) && Object.hasOwn(value, "type") && value.type === "item" && Object.hasOwn(value, "data") && Object.keys(value).every((key) => ["type", "data"].includes(key)))
2018
+ if (object2(value) && Object.hasOwn(value, "type") && value.type === "item" && Object.hasOwn(value, "data") && Object.keys(value).every((key) => ["type", "data"].includes(key)))
2018
2019
  return { ...value, data: project(value.data, fields) };
2019
- if (object(value) && Object.hasOwn(value, "type") && value.type === "end" && Object.hasOwn(value, "complete") && typeof value.complete === "boolean")
2020
+ if (object2(value) && Object.hasOwn(value, "type") && value.type === "end" && Object.hasOwn(value, "complete") && typeof value.complete === "boolean")
2020
2021
  return value;
2021
- if (object(value) && Object.hasOwn(value, "item") && (Object.hasOwn(value, "meta") || Object.keys(value).every((key) => ["item", "next", "missing"].includes(key))))
2022
+ if (object2(value) && Object.hasOwn(value, "item") && (Object.hasOwn(value, "meta") || Object.keys(value).every((key) => ["item", "next", "missing"].includes(key))))
2022
2023
  return { ...value, item: project(value.item, onePaths(fields)) };
2023
- if (object(value) && Array.isArray(value.items))
2024
+ if (object2(value) && Array.isArray(value.items))
2024
2025
  return { ...value, items: value.items.map((item) => select(item, itemPaths(fields))) };
2025
- return select(value, object(value) && !Object.hasOwn(value, "items") ? itemPaths(fields) : fields);
2026
+ return select(value, object2(value) && !Object.hasOwn(value, "items") ? itemPaths(fields) : fields);
2026
2027
  }, "project");
2027
2028
  var projectFields = /* @__PURE__ */ __name((value, fields) => {
2028
2029
  validate(fields);
2029
2030
  return project(value, fields);
2030
2031
  }, "projectFields");
2031
2032
 
2032
- // 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/batch.js
2033
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
2033
2034
  var BATCH_LIMITS = Object.freeze({
2034
2035
  requests: 32,
2035
2036
  input_bytes: 262144,
@@ -2087,10 +2088,10 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2087
2088
  if (maxOutputBytes < 8192 + requests.length * 2048)
2088
2089
  invalid("batch output budget cannot hold its result framing");
2089
2090
  const errorOf = /* @__PURE__ */ __name((error) => {
2090
- const object2 = errorObjectOf(error, options.failureContext).error;
2091
+ const object3 = errorObjectOf(error, options.failureContext).error;
2091
2092
  try {
2092
- if (Buffer.byteLength(JSON.stringify(object2), "utf8") <= 512)
2093
- return object2;
2093
+ if (Buffer.byteLength(JSON.stringify(object3), "utf8") <= 512)
2094
+ return object3;
2094
2095
  } catch {
2095
2096
  }
2096
2097
  const fallback = errorObjectOf(error).error;
@@ -2135,11 +2136,11 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2135
2136
  }
2136
2137
  } catch (error) {
2137
2138
  options.signal?.throwIfAborted();
2138
- const object2 = errorOf(error);
2139
+ const object3 = errorOf(error);
2139
2140
  result = {
2140
2141
  ...framing,
2141
- status: object2.reason === "batch.read-budget" ? "not_run" : "error",
2142
- error: object2,
2142
+ status: object3.reason === "batch.read-budget" ? "not_run" : "error",
2143
+ error: object3,
2143
2144
  complete: false
2144
2145
  };
2145
2146
  }
@@ -2156,7 +2157,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
2156
2157
  };
2157
2158
  }, "runBatch");
2158
2159
 
2159
- // 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/config.js
2160
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
2160
2161
  import { randomBytes } from "node:crypto";
2161
2162
  import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
2162
2163
  import { dirname, join } from "node:path";
@@ -2200,11 +2201,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
2200
2201
  `, 384);
2201
2202
  }, "saveConfigFile");
2202
2203
 
2203
- // 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/credentials.js
2204
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
2205
+ var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
2206
+ var baseConstantsSchema = object({});
2207
+ var LayerSchema = record(string(), unknown());
2208
+
2209
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2204
2210
  import { readFileSync as readFileSync2 } from "node:fs";
2205
2211
  import { join as join3, resolve } from "node:path";
2206
2212
 
2207
- // 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/keyring.js
2213
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
2208
2214
  import { createRequire } from "node:module";
2209
2215
  var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
2210
2216
  var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
@@ -2224,7 +2230,7 @@ var systemKeyring = {
2224
2230
  delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
2225
2231
  };
2226
2232
 
2227
- // 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/paths.js
2233
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
2228
2234
  import { homedir, userInfo } from "node:os";
2229
2235
  import { join as join2, posix, win32 } from "node:path";
2230
2236
  var PATH_KINDS = ["config", "state", "cache"];
@@ -2276,7 +2282,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
2276
2282
  var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
2277
2283
  var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
2278
2284
 
2279
- // 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/credentials.js
2285
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
2280
2286
  var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
2281
2287
  var warnedRuns = /* @__PURE__ */ new WeakSet();
2282
2288
  var Credentials = class {
@@ -2411,7 +2417,7 @@ var Credentials = class {
2411
2417
  }
2412
2418
  };
2413
2419
 
2414
- // 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/time.js
2420
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
2415
2421
  var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
2416
2422
  var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
2417
2423
  if (signal?.aborted) {
@@ -2425,10 +2431,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
2425
2431
  }, { once: true });
2426
2432
  }), "realSleep");
2427
2433
 
2428
- // 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/logging.js
2434
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2429
2435
  import { appendFileSync } from "node:fs";
2430
2436
 
2431
- // 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/log.js
2437
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2432
2438
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
2433
2439
  var logRecordSchema = strictObject({
2434
2440
  time: isoTime,
@@ -2506,7 +2512,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
2506
2512
  return traceId;
2507
2513
  }, "traceIdOf");
2508
2514
 
2509
- // 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/logging.js
2515
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2510
2516
  var REDACTED_FIELDS = [
2511
2517
  "authorization",
2512
2518
  "Authorization",
@@ -2600,7 +2606,7 @@ var silent = {
2600
2606
  }, "error")
2601
2607
  };
2602
2608
 
2603
- // 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/pretty.js
2609
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
2604
2610
  var import_cli_table3 = __toESM(require_cli_table3(), 1);
2605
2611
  import { styleText } from "node:util";
2606
2612
  var renderPretty = /* @__PURE__ */ __name((value, options) => {
@@ -2675,7 +2681,7 @@ var BORDERLESS = {
2675
2681
  middle: ""
2676
2682
  };
2677
2683
 
2678
- // 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/renderer.js
2684
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
2679
2685
  var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
2680
2686
  const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
2681
2687
  const say = /* @__PURE__ */ __name((symbol) => (message) => {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  defineReasons
5
- } from "./chunk-77M3IAVU.js";
5
+ } from "./chunk-EPCFXKTX.js";
6
6
 
7
7
  // dist/reasons.js
8
8
  var REASONS = defineReasons([
@@ -26,7 +26,7 @@ var REASONS = defineReasons([
26
26
  ].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
27
27
 
28
28
  // dist/version.js
29
- var VERSION = "0.115.0";
29
+ var VERSION = "0.117.0";
30
30
 
31
31
  // dist/identity.js
32
32
  var TG = {