@wirecat/tg-cli 0.121.0 → 0.122.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 (94) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-GVSBFSBY.js → adapter-ZI57T2L5.js} +41 -41
  3. package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-7VXJF42C.js} +6 -6
  4. package/dist/bundle/{anthropic-7472H6ES.js → anthropic-DKRXIWVV.js} +2 -2
  5. package/dist/bundle/{app-server-GZWV4NPR.js → app-server-F5MKHZ7S.js} +37 -37
  6. package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-F24NWJT3.js} +42 -42
  7. package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-U3WM3A7S.js} +12 -12
  8. package/dist/bundle/{bun-KCN62RMD.js → bun-OMTJAXGK.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-HSYLO46A.js} +2 -2
  10. package/dist/bundle/{chunk-7MXRFFIT.js → chunk-27SVHRHV.js} +2 -2
  11. package/dist/bundle/{chunk-6SQAE7NM.js → chunk-2FXA32RJ.js} +6 -6
  12. package/dist/bundle/{chunk-KPAUPIC3.js → chunk-2UHANFLM.js} +2 -2
  13. package/dist/bundle/{chunk-24DWSW6H.js → chunk-33ELXJRR.js} +11 -10
  14. package/dist/bundle/{chunk-3EGVR7OF.js → chunk-4MFMUBHH.js} +95 -79
  15. package/dist/bundle/{chunk-SHIHW2YN.js → chunk-4N2WJYLE.js} +2 -2
  16. package/dist/bundle/{chunk-SQWTUENZ.js → chunk-6DLRATDC.js} +242 -239
  17. package/dist/bundle/{chunk-QQ264PXQ.js → chunk-6LMEIELG.js} +1 -1
  18. package/dist/bundle/{chunk-AYDLA27G.js → chunk-7FWU4RON.js} +3 -3
  19. package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-7GCVON7M.js} +5 -5
  20. package/dist/bundle/{chunk-TEMCXODM.js → chunk-7X6YLKTK.js} +1 -1
  21. package/dist/bundle/{chunk-ESLV57MC.js → chunk-ALW7ROTM.js} +1 -1
  22. package/dist/bundle/{chunk-MAPJUOTD.js → chunk-ARKB3M5X.js} +3 -3
  23. package/dist/bundle/{chunk-GB55EDOF.js → chunk-C5CB6RIX.js} +1 -1
  24. package/dist/bundle/{chunk-S7P5X23R.js → chunk-CB6AHU6H.js} +27 -9
  25. package/dist/bundle/{chunk-YMJKHMHX.js → chunk-CW3C7FSO.js} +1 -1
  26. package/dist/bundle/{chunk-QNNUNGPL.js → chunk-D3ODL4P7.js} +2 -2
  27. package/dist/bundle/{chunk-T7ONSJAA.js → chunk-DCGGZUNJ.js} +2 -2
  28. package/dist/bundle/{chunk-3HNI6GI7.js → chunk-DDSAJKPO.js} +4 -4
  29. package/dist/bundle/{chunk-7UIMMQOV.js → chunk-DTTONQW7.js} +1 -1
  30. package/dist/bundle/{chunk-VPNLTNQD.js → chunk-E3MFMMVY.js} +5 -5
  31. package/dist/bundle/{chunk-W77WC6ZK.js → chunk-FHWUOFWX.js} +2 -2
  32. package/dist/bundle/{chunk-5P43K3GL.js → chunk-FYHFAOPM.js} +1505 -1014
  33. package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-FZKHFTKH.js} +13 -13
  34. package/dist/bundle/{chunk-CPDYPZIG.js → chunk-GJBGZQHN.js} +177 -151
  35. package/dist/bundle/{chunk-3E35VJME.js → chunk-GJFICFQB.js} +1 -1
  36. package/dist/bundle/{chunk-YRY752BB.js → chunk-HAR76KJG.js} +4 -4
  37. package/dist/bundle/{chunk-CLMRF6XR.js → chunk-LQRZUNYF.js} +2 -2
  38. package/dist/bundle/{chunk-LTAHG7BO.js → chunk-MFWWZ6XL.js} +2 -2
  39. package/dist/bundle/{chunk-NR7PGYPO.js → chunk-N7WDVH2O.js} +28 -28
  40. package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NE3EGYPD.js} +3 -3
  41. package/dist/bundle/{chunk-RPBO5XL3.js → chunk-NU4RMUMQ.js} +10 -10
  42. package/dist/bundle/{chunk-CMEWPXKU.js → chunk-O5A4IS2D.js} +1 -1
  43. package/dist/bundle/{chunk-M47CXY5J.js → chunk-PG3V225O.js} +21 -21
  44. package/dist/bundle/{chunk-DAK2J3FG.js → chunk-QROAXWDU.js} +7 -7
  45. package/dist/bundle/{chunk-4HJCWFPN.js → chunk-R2IW6JBV.js} +46 -46
  46. package/dist/bundle/{chunk-FERGNQYA.js → chunk-RFFU6KQ5.js} +12 -12
  47. package/dist/bundle/{chunk-M73VM67N.js → chunk-SODUFMDW.js} +727 -382
  48. package/dist/bundle/{chunk-4J34T6IQ.js → chunk-TKJZENAZ.js} +1 -1
  49. package/dist/bundle/{chunk-QMNUQTA2.js → chunk-UGEYQWEO.js} +1 -1
  50. package/dist/bundle/chunk-V4BPS7MH.js +185 -0
  51. package/dist/bundle/{chunk-6LRKWXCS.js → chunk-VC6J7X76.js} +10 -10
  52. package/dist/bundle/{chunk-MKAKM3V7.js → chunk-VDFEWSCS.js} +2 -2
  53. package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-VQL4RVXZ.js} +1 -1
  54. package/dist/bundle/{chunk-R6KXHBMW.js → chunk-W34QQMBK.js} +1 -1
  55. package/dist/bundle/{chunk-54KFRAHF.js → chunk-Y52T5EMB.js} +1 -1
  56. package/dist/bundle/{chunk-VAAZL6OD.js → chunk-Y74WJL3M.js} +2 -2
  57. package/dist/bundle/{chunk-PLBEUSZP.js → chunk-YDMKP7PO.js} +1 -1
  58. package/dist/bundle/{chunk-RZX7RDXY.js → chunk-YFEH7OWG.js} +12 -12
  59. package/dist/bundle/{chunk-DG44ORQ3.js → chunk-ZKHXWSKD.js} +4 -4
  60. package/dist/bundle/{chunk-BJTJBNR7.js → chunk-ZNPRTCUO.js} +6 -6
  61. package/dist/bundle/{command-contract-3W73W27G.js → command-contract-247AKZTE.js} +12 -12
  62. package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-N32NX4QW.js} +67 -51
  63. package/dist/bundle/{decode-F7KC7WT4.js → decode-ZKJWSFXF.js} +2 -2
  64. package/dist/bundle/{echarts-4VYG66GX.js → echarts-QLVLIP73.js} +2 -2
  65. package/dist/bundle/{embed-ENZ6R4HF.js → embed-LC6K7P3S.js} +3 -3
  66. package/dist/bundle/{embedder-4CBICMFO.js → embedder-6C3OQBOV.js} +6 -6
  67. package/dist/bundle/{entry-XQ562EDO.js → entry-5H6LB3MP.js} +5 -5
  68. package/dist/bundle/{first-run-PPXOC6ID.js → first-run-IOYQ4XQK.js} +5 -5
  69. package/dist/bundle/{first-screen-JC6BYZYD.js → first-screen-NVK7PFX4.js} +13 -13
  70. package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-SZUMEDY3.js} +1 -1
  71. package/dist/bundle/{node-SSAC67R5.js → node-V76RRFIA.js} +2 -2
  72. package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-2DTVOT7L.js} +3 -3
  73. package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-CT7EBDRY.js} +4 -4
  74. package/dist/bundle/{open-EFNT7V2Q.js → open-G3VHOOMV.js} +2 -2
  75. package/dist/bundle/{openai-7STFVJXA.js → openai-F4K7MVTZ.js} +10 -10
  76. package/dist/bundle/{process-63F4PNWH.js → process-XH3KEHSF.js} +1 -1
  77. package/dist/bundle/{program-C2E3TQNK.js → program-FLGIHTHM.js} +44 -44
  78. package/dist/bundle/{prompt-QPO7EKD5.js → prompt-JWQ6UQ6R.js} +2 -2
  79. package/dist/bundle/{recognize-MLXEHFYL.js → recognize-Z26T3SYD.js} +1 -1
  80. package/dist/bundle/{remote-DO7FLJEF.js → remote-7KHT6V3O.js} +4 -4
  81. package/dist/bundle/{rerank-W3WSBDAM.js → rerank-6QVI74QY.js} +4 -4
  82. package/dist/bundle/{serve-Z3TOTEMQ.js → serve-WYDZTONY.js} +6 -6
  83. package/dist/bundle/server-UXQT7LZT.js +61 -0
  84. package/dist/bundle/{server-BYSOJCUA.js → server-Y4J2NCFA.js} +28 -28
  85. package/dist/bundle/{state-PKRPBCMY.js → state-YCXBKOD2.js} +3 -3
  86. package/dist/bundle/{store-Y4G7CNJT.js → store-QECSDJRP.js} +9 -9
  87. package/dist/bundle/store-maintenance-command-5YW6TRJA.js +49 -0
  88. package/dist/bundle/tg.js +3 -3
  89. package/dist/version.d.ts +1 -1
  90. package/dist/version.js +1 -1
  91. package/package.json +2 -2
  92. package/dist/bundle/chunk-GNGYV5NX.js +0 -116
  93. package/dist/bundle/server-IRUVLXD4.js +0 -61
  94. package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ensureSqlite,
5
5
  isCommandServer
6
- } from "./chunk-KVW7LCZK.js";
6
+ } from "./chunk-NE3EGYPD.js";
7
7
  import {
8
8
  envName,
9
9
  readOnlyLockOf
10
- } from "./chunk-3E35VJME.js";
10
+ } from "./chunk-GJFICFQB.js";
11
11
  import {
12
12
  catchCrashes
13
13
  } from "./chunk-WGGSFGNZ.js";
@@ -18,10 +18,10 @@ import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/entry.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/entry.js
22
22
  import { spawn } from "node:child_process";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
25
25
  import { appendFileSync } from "node:fs";
26
26
  var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
27
27
  const words = [];
@@ -45,7 +45,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
45
45
  `);
46
46
  }, "logVersion");
47
47
 
48
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/entry.js
48
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/entry.js
49
49
  var processIo = /* @__PURE__ */ __name(() => ({
50
50
  argv: process.argv,
51
51
  env: process.env,
@@ -65,7 +65,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
65
65
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
66
66
  return printVersion(entry.app, io);
67
67
  if (isCommandServer(args)) {
68
- const { serveEntry } = await import("./command-server-entry-37PKBJ5A.js");
68
+ const { serveEntry } = await import("./command-server-entry-N32NX4QW.js");
69
69
  return serveEntry(entry, io, { firstRunAt, commanderExit });
70
70
  }
71
71
  const tty = io.stdout.isTTY === true;
@@ -103,7 +103,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
103
103
  ask: /* @__PURE__ */ __name(async (question, command) => {
104
104
  if (headless(command) || io.stdin.isTTY !== true)
105
105
  return false;
106
- const { readSecret } = await import("./prompt-QPO7EKD5.js");
106
+ const { readSecret } = await import("./prompt-JWQ6UQ6R.js");
107
107
  const answer = await readSecret(`${question} [y/N] `, {
108
108
  input: io.stdin,
109
109
  output: io.stderr,
@@ -116,7 +116,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
116
116
  if (!headless(command))
117
117
  await openBrowser(url, browser, io);
118
118
  }, "openBrowser"),
119
- outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
119
+ outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed"),
120
+ setExitCode: io.setExitCode
120
121
  };
121
122
  let code;
122
123
  try {
@@ -145,8 +146,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
145
146
  if (command.optsWithGlobals().dryRun === true)
146
147
  return;
147
148
  const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
148
- import("./first-run-PPXOC6ID.js"),
149
- import("./command-contract-3W73W27G.js")
149
+ import("./first-run-IOYQ4XQK.js"),
150
+ import("./command-contract-247AKZTE.js")
150
151
  ]);
151
152
  await setupAtStart({
152
153
  command: entry.app.command,