@wirecat/tg-cli 0.114.0 → 0.115.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 (96) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bin/tg.js.map +1 -1
  3. package/dist/bundle/{adapter-YAEHX3QB.js → adapter-ODK7R4LY.js} +52 -49
  4. package/dist/bundle/{all-profiles-R5CW42HQ.js → all-profiles-AQYM65BS.js} +6 -5
  5. package/dist/bundle/{anthropic-F25RHYV2.js → anthropic-VBDSVNIM.js} +5 -4
  6. package/dist/bundle/{app-server-FAG6FNXR.js → app-server-YOIHLBNS.js} +41 -38
  7. package/dist/bundle/{bot-api-KOIAXTQR.js → bot-api-TRYLGQKK.js} +45 -41
  8. package/dist/bundle/{bot-history-PRAOZEWC.js → bot-history-7DTJLBBJ.js} +16 -15
  9. package/dist/bundle/{bun-sqlite-DSUCO4TR.js → bun-sqlite-6B3BL5IV.js} +4 -3
  10. package/dist/bundle/{chunk-EQJG44KE.js → chunk-2TC76TLJ.js} +1 -1
  11. package/dist/bundle/{chunk-ZFMOPKPT.js → chunk-5ROWSRK7.js} +2 -2
  12. package/dist/bundle/{chunk-TRRRRGMI.js → chunk-63YKD7YA.js} +1 -1
  13. package/dist/bundle/{chunk-EARO464A.js → chunk-77M3IAVU.js} +187 -125
  14. package/dist/bundle/{chunk-NMVFFWF2.js → chunk-A4BQGSKI.js} +6 -6
  15. package/dist/bundle/{chunk-P4YBABUC.js → chunk-AICS3TSF.js} +5 -3
  16. package/dist/bundle/{chunk-ULFTCR5W.js → chunk-AVWPMJ6E.js} +1 -1
  17. package/dist/bundle/{chunk-NJ2I4KFZ.js → chunk-BEQPZA3S.js} +2 -2
  18. package/dist/bundle/{chunk-NUVBC3LJ.js → chunk-BIEBJLYO.js} +2 -2
  19. package/dist/bundle/{chunk-7FOT4XD2.js → chunk-BPPRR7TV.js} +32 -32
  20. package/dist/bundle/chunk-CCHHEMPM.js +71 -0
  21. package/dist/bundle/{chunk-M3IWROIF.js → chunk-CNO3R4O4.js} +6 -4
  22. package/dist/bundle/{chunk-C34IDOA5.js → chunk-D4E345BC.js} +1 -1
  23. package/dist/bundle/{chunk-LPUFOWL3.js → chunk-D72URWJE.js} +1 -39
  24. package/dist/bundle/{chunk-Y4LCSCSH.js → chunk-DIABP7ZP.js} +2 -2
  25. package/dist/bundle/chunk-EW3XTUPB.js +166 -0
  26. package/dist/bundle/{chunk-NTF34HJP.js → chunk-GCFU6WBE.js} +1 -1
  27. package/dist/bundle/{chunk-DQQEN3X4.js → chunk-GWDMKEDY.js} +2 -2
  28. package/dist/bundle/{chunk-CS5DQ6KM.js → chunk-GX4DMI4H.js} +9 -9
  29. package/dist/bundle/{chunk-2PAKHXIV.js → chunk-HZKWB6WS.js} +25 -25
  30. package/dist/bundle/chunk-ILHTNOIV.js +23 -0
  31. package/dist/bundle/{chunk-4JOKO4IW.js → chunk-IUDIRZVU.js} +46 -44
  32. package/dist/bundle/{chunk-QCXYJKPF.js → chunk-JZXQZW2D.js} +1 -1
  33. package/dist/bundle/{chunk-3R43O3GG.js → chunk-KDOBY524.js} +12 -10
  34. package/dist/bundle/{chunk-VHO66SMY.js → chunk-LUIPXRKN.js} +30 -28
  35. package/dist/bundle/{chunk-AL36NHO6.js → chunk-M7B5IMH3.js} +22 -20
  36. package/dist/bundle/{chunk-E2IRSRTB.js → chunk-MUZ4KYGY.js} +4 -2
  37. package/dist/bundle/{chunk-34USFPBF.js → chunk-NTW5ZE47.js} +150 -262
  38. package/dist/bundle/{chunk-TTTDZOBW.js → chunk-OMP6ALBT.js} +2 -2
  39. package/dist/bundle/{chunk-OFDMD3YF.js → chunk-OSP335AJ.js} +1 -1
  40. package/dist/bundle/{chunk-J5U2HKGZ.js → chunk-OUX3QMYI.js} +16 -14
  41. package/dist/bundle/{chunk-HA35XN2Z.js → chunk-PEJHI7QO.js} +2 -2
  42. package/dist/bundle/{chunk-YQ64ZNLD.js → chunk-PEKTB3FQ.js} +15 -13
  43. package/dist/bundle/{chunk-YPABTT7A.js → chunk-POKTQZOM.js} +4 -2
  44. package/dist/bundle/chunk-PQLBPYJR.js +46 -0
  45. package/dist/bundle/{chunk-WIRDTH3J.js → chunk-PZAEI4NM.js} +8 -8
  46. package/dist/bundle/{chunk-I6BKSGZQ.js → chunk-QK6VLKG5.js} +7 -7
  47. package/dist/bundle/{chunk-OWHF6BON.js → chunk-RHUNMU4Q.js} +3 -3
  48. package/dist/bundle/{chunk-NKP3RUM4.js → chunk-TMATSEP5.js} +13 -11
  49. package/dist/bundle/{chunk-RBC7JQ4Y.js → chunk-TQYMLXDS.js} +4 -2
  50. package/dist/bundle/{chunk-TKNCJMYN.js → chunk-U67TSAAO.js} +85 -81
  51. package/dist/bundle/{chunk-6SPLZI5P.js → chunk-UBQ3LOF6.js} +3 -3
  52. package/dist/bundle/{chunk-ALHKUQDZ.js → chunk-UY7GJRGY.js} +1 -1
  53. package/dist/bundle/{chunk-XDOPONC3.js → chunk-VQCWVZWG.js} +3 -3
  54. package/dist/bundle/{chunk-MQTTVQ3V.js → chunk-WDNNN3J4.js} +4 -4
  55. package/dist/bundle/{chunk-KZQXOZFC.js → chunk-WINKEV4F.js} +6 -19
  56. package/dist/bundle/{chunk-C7K7AP6G.js → chunk-WMG4IGEB.js} +11 -11
  57. package/dist/bundle/{chunk-5HKMEXVQ.js → chunk-WMRFAK5B.js} +1 -1
  58. package/dist/bundle/{chunk-IN25CJ3D.js → chunk-XIYRHIBK.js} +1 -1
  59. package/dist/bundle/{chunk-CDCBFMEI.js → chunk-XY7IGVVS.js} +1 -1
  60. package/dist/bundle/{chunk-3EZ43DAF.js → chunk-YCUQKFGD.js} +2 -2
  61. package/dist/bundle/{command-contract-SOTDPG22.js → command-contract-YF4KGFXC.js} +13 -12
  62. package/dist/bundle/{decode-7U4SXPAN.js → decode-2GATBZGH.js} +6 -5
  63. package/dist/bundle/dispatch-MJMW7WDH.js +411 -0
  64. package/dist/bundle/{embed-IDZDQMSW.js → embed-TBQPLA4Y.js} +6 -5
  65. package/dist/bundle/{embedder-RY5R2PGO.js → embedder-B5DTNCRO.js} +8 -7
  66. package/dist/bundle/{entry-P6YZ3ZV6.js → entry-A6DEW2TD.js} +6 -5
  67. package/dist/bundle/failure-TLF3SISS.js +24 -0
  68. package/dist/bundle/first-run-3N5AABEY.js +27 -0
  69. package/dist/bundle/first-screen-HANARM67.js +30 -0
  70. package/dist/bundle/{mcp-FUSDPAOL.js → mcp-MNI62HHE.js} +4 -2
  71. package/dist/bundle/{node-sqlite-VUXFVPJ6.js → node-sqlite-GIDPALK3.js} +4 -3
  72. package/dist/bundle/{oauth-7SQIPMOY.js → oauth-C57W4IMD.js} +6 -5
  73. package/dist/bundle/{open-W3BN2SIO.js → open-E6Q4WRPU.js} +4 -3
  74. package/dist/bundle/{openai-LQTK3ZMC.js → openai-5WMXY2KP.js} +11 -10
  75. package/dist/bundle/{program-DIPSLR6O.js → program-FEUDU6GF.js} +58 -53
  76. package/dist/bundle/{prompt-GESHKSM5.js → prompt-4NGAZGHE.js} +5 -4
  77. package/dist/bundle/{proxy-transport-C2EUUT32.js → proxy-transport-MGCJ7JAW.js} +5 -4
  78. package/dist/bundle/{recognize-FEQTIJET.js → recognize-EUHRBA7V.js} +4 -3
  79. package/dist/bundle/{remote-UXOPBPKS.js → remote-3JHLB2FV.js} +7 -6
  80. package/dist/bundle/{rerank-L4JM4REK.js → rerank-ZZ45SZPC.js} +6 -5
  81. package/dist/bundle/{serve-DDWW44DB.js → serve-XOGX5FC5.js} +7 -6
  82. package/dist/bundle/server-DRE5MJ76.js +59 -0
  83. package/dist/bundle/{server-UTWBIZHB.js → server-I6O72XP5.js} +31 -29
  84. package/dist/bundle/{state-EV7FGEK4.js → state-BIUYTGH6.js} +5 -4
  85. package/dist/bundle/{store-EXBUF4OG.js → store-FOJFYOMR.js} +10 -9
  86. package/dist/bundle/store-maintenance-command-YKV2C34N.js +49 -0
  87. package/dist/bundle/tg.js +159 -14
  88. package/dist/version.d.ts +1 -1
  89. package/dist/version.js +1 -1
  90. package/package.json +3 -2
  91. package/skills/tg-cli/SKILL.md +2 -0
  92. package/dist/bundle/first-run-66KTCVQK.js +0 -24
  93. package/dist/bundle/first-screen-NY46X6QU.js +0 -29
  94. package/dist/bundle/identity-GXVKGCNU.js +0 -11
  95. package/dist/bundle/server-ZI7WDAW6.js +0 -56
  96. package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +0 -46
@@ -7,10 +7,10 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-3R43O3GG.js";
10
+ } from "./chunk-KDOBY524.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-CDCBFMEI.js";
13
+ } from "./chunk-XY7IGVVS.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-IUDIRZVU.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-M7B5IMH3.js";
46
46
  import {
47
47
  currentCaller,
48
48
  keepsSuccess,
49
49
  runContextOf,
50
50
  withCaller
51
- } from "./chunk-YPABTT7A.js";
51
+ } from "./chunk-POKTQZOM.js";
52
52
  import {
53
53
  queryDescription
54
- } from "./chunk-I6BKSGZQ.js";
54
+ } from "./chunk-QK6VLKG5.js";
55
55
  import {
56
56
  MAX_BUFFERED_INPUT
57
- } from "./chunk-ULFTCR5W.js";
57
+ } from "./chunk-AVWPMJ6E.js";
58
58
  import {
59
59
  captureStreams,
60
- errorObjectOf,
61
- mcpErrorResult
62
- } from "./chunk-34USFPBF.js";
60
+ traceIdOf
61
+ } from "./chunk-NTW5ZE47.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,12 +93,15 @@ 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-77M3IAVU.js";
101
+ import {
102
+ CliError,
103
+ errorCodes
104
+ } from "./chunk-CCHHEMPM.js";
103
105
  import {
104
106
  __name
105
107
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,10 +2,10 @@ 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-63YKD7YA.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-EARO464A.js";
8
+ } from "./chunk-CCHHEMPM.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
@@ -13,43 +13,45 @@ import {
13
13
  privateFiles,
14
14
  providerRequest,
15
15
  withSqliteSidecars
16
- } from "./chunk-TKNCJMYN.js";
16
+ } from "./chunk-U67TSAAO.js";
17
17
  import {
18
18
  parseProxy,
19
19
  proxyAddress,
20
20
  proxyError,
21
21
  proxyLabel,
22
22
  proxySetting
23
- } from "./chunk-E2IRSRTB.js";
23
+ } from "./chunk-MUZ4KYGY.js";
24
24
  import {
25
25
  messengerContext
26
- } from "./chunk-WIRDTH3J.js";
26
+ } from "./chunk-PZAEI4NM.js";
27
27
  import {
28
28
  uploadBlob
29
- } from "./chunk-4JOKO4IW.js";
29
+ } from "./chunk-IUDIRZVU.js";
30
30
  import {
31
31
  asFirstWord,
32
32
  currentAttempt,
33
33
  environmentOf,
34
34
  fromFile,
35
35
  settingsFor
36
- } from "./chunk-AL36NHO6.js";
36
+ } from "./chunk-M7B5IMH3.js";
37
37
  import {
38
38
  TG
39
- } from "./chunk-NUVBC3LJ.js";
39
+ } from "./chunk-BIEBJLYO.js";
40
40
  import {
41
41
  Credentials,
42
42
  pathsAreOverridden,
43
43
  resolvePaths
44
- } from "./chunk-34USFPBF.js";
44
+ } from "./chunk-NTW5ZE47.js";
45
45
  import {
46
- CliError,
47
- isCliError,
48
46
  optional
49
- } from "./chunk-EARO464A.js";
47
+ } from "./chunk-77M3IAVU.js";
50
48
  import {
51
49
  importFrom
52
50
  } from "./chunk-Y5E2WNWB.js";
51
+ import {
52
+ CliError,
53
+ isCliError
54
+ } from "./chunk-CCHHEMPM.js";
53
55
  import {
54
56
  __name
55
57
  } from "./chunk-ZVVMGPBJ.js";
@@ -179,7 +181,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
179
181
  throw new CliError(temporary ? "provider_unavailable" : "authentication_error", loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``, temporary ? { reason: "credentials.unreachable" } : {});
180
182
  }
181
183
  const options = { credentials: resolved, sessionPath, ...connecting };
182
- return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-YAEHX3QB.js")).TelegramAdapter.open({
184
+ return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-ODK7R4LY.js")).TelegramAdapter.open({
183
185
  ...options,
184
186
  ...proxyOption(proxy()),
185
187
  diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
@@ -865,7 +867,7 @@ var TELEGRAM_BOT = {
865
867
  const botId = token.split(":", 1)[0] ?? "";
866
868
  if (!/^\d+$/.test(botId))
867
869
  throw new CliError("authentication_error", "the bot token has no valid bot id");
868
- const reader = await (environment.botHistory ?? (await import("./bot-history-PRAOZEWC.js")).openBotHistory)({
870
+ const reader = await (environment.botHistory ?? (await import("./bot-history-7DTJLBBJ.js")).openBotHistory)({
869
871
  credentials,
870
872
  sessionPath: botSessionFile(profile, botId, env),
871
873
  token,
@@ -885,7 +887,7 @@ var TELEGRAM_BOT = {
885
887
  return void 0;
886
888
  let personal;
887
889
  try {
888
- personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-YAEHX3QB.js")).TelegramAdapter.open({
890
+ personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-ODK7R4LY.js")).TelegramAdapter.open({
889
891
  credentials,
890
892
  sessionPath: personalPath,
891
893
  checks: words,
@@ -1,9 +1,11 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- errorCodes,
5
4
  isContentKey
6
- } from "./chunk-EARO464A.js";
5
+ } from "./chunk-NTW5ZE47.js";
6
+ import {
7
+ errorCodes
8
+ } from "./chunk-CCHHEMPM.js";
7
9
  import {
8
10
  __name
9
11
  } from "./chunk-ZVVMGPBJ.js";
@@ -0,0 +1,46 @@
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-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/executable.js
8
+ import { existsSync } from "node:fs";
9
+ import { win32 } from "node:path";
10
+ var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
11
+ var executableOnPath = /* @__PURE__ */ __name((command, env, platform = process.platform, exists = existsSync) => {
12
+ if (platform !== "win32" || win32.isAbsolute(command))
13
+ return command;
14
+ if (/[\\/]/.test(command))
15
+ return command;
16
+ const extensions = win32.extname(command) ? [""] : (variable(env, "PATHEXT") ?? ".EXE;.COM;.CMD;.BAT").split(";").filter((ext) => /^\.[a-z0-9]+$/i.test(ext));
17
+ for (const entry of (variable(env, "PATH") ?? "").split(";")) {
18
+ const directory = entry.replace(/^"(.*)"$/, "$1");
19
+ for (const extension of extensions) {
20
+ const candidate = win32.join(directory, command + extension);
21
+ if (exists(candidate))
22
+ return candidate;
23
+ }
24
+ }
25
+ return command;
26
+ }, "executableOnPath");
27
+ var executableEnvironment = /* @__PURE__ */ __name((env, platform = process.platform) => {
28
+ if (platform !== "win32")
29
+ return env;
30
+ const configured = variable(env, "COMSPEC");
31
+ const system = variable(env, "SYSTEMROOT");
32
+ const shell = configured ? configured : system && win32.isAbsolute(system) ? win32.join(system, "System32", "cmd.exe") : void 0;
33
+ if (!shell)
34
+ return env;
35
+ const result = { ...env };
36
+ for (const key of Object.keys(result))
37
+ if (key.toUpperCase() === "COMSPEC")
38
+ delete result[key];
39
+ result.comspec = shell;
40
+ return result;
41
+ }, "executableEnvironment");
42
+
43
+ export {
44
+ executableOnPath,
45
+ executableEnvironment
46
+ };
@@ -13,7 +13,7 @@ import {
13
13
  refuseLacking,
14
14
  servicesFor,
15
15
  throughWrapper
16
- } from "./chunk-4JOKO4IW.js";
16
+ } from "./chunk-IUDIRZVU.js";
17
17
  import {
18
18
  CEILING_KEY,
19
19
  LOG_ATTRIBUTES,
@@ -38,30 +38,30 @@ import {
38
38
  rememberAccount,
39
39
  rootOf2 as rootOf,
40
40
  skipFlagFor
41
- } from "./chunk-AL36NHO6.js";
41
+ } from "./chunk-M7B5IMH3.js";
42
42
  import {
43
43
  isCliFailure,
44
44
  providerErrorKey
45
- } from "./chunk-YPABTT7A.js";
45
+ } from "./chunk-POKTQZOM.js";
46
46
  import {
47
47
  MESSENGER_CHANGE_REFUSAL,
48
48
  readOnlyRefusal
49
- } from "./chunk-C34IDOA5.js";
49
+ } from "./chunk-D4E345BC.js";
50
50
  import {
51
51
  servingProfiles
52
- } from "./chunk-NTF34HJP.js";
52
+ } from "./chunk-GCFU6WBE.js";
53
53
  import {
54
54
  openStore
55
- } from "./chunk-7FOT4XD2.js";
55
+ } from "./chunk-BPPRR7TV.js";
56
56
  import {
57
57
  logRecordOf,
58
58
  realSleep,
59
59
  resolvePaths,
60
60
  writeSecurely
61
- } from "./chunk-34USFPBF.js";
61
+ } from "./chunk-NTW5ZE47.js";
62
62
  import {
63
63
  CliError
64
- } from "./chunk-EARO464A.js";
64
+ } from "./chunk-CCHHEMPM.js";
65
65
  import {
66
66
  __name
67
67
  } from "./chunk-ZVVMGPBJ.js";
@@ -1,11 +1,6 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- singleLine,
5
- visibleControls
6
- } from "./chunk-34USFPBF.js";
7
- import {
8
- CliError,
9
4
  RegistryError,
10
5
  SNAKE_CASE,
11
6
  STEPS,
@@ -15,7 +10,6 @@ import {
15
10
  defineSteps,
16
11
  duplicates,
17
12
  integer,
18
- isCliError,
19
13
  isoTime,
20
14
  lazy,
21
15
  literal,
@@ -36,7 +30,13 @@ import {
36
30
  string,
37
31
  union,
38
32
  variant
39
- } from "./chunk-EARO464A.js";
33
+ } from "./chunk-77M3IAVU.js";
34
+ import {
35
+ CliError,
36
+ isCliError,
37
+ singleLine,
38
+ visibleControls
39
+ } from "./chunk-CCHHEMPM.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- CliError
5
- } from "./chunk-EARO464A.js";
6
3
  import {
7
4
  importFrom
8
5
  } from "./chunk-Y5E2WNWB.js";
6
+ import {
7
+ CliError
8
+ } from "./chunk-CCHHEMPM.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
@@ -1,25 +1,27 @@
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-WINKEV4F.js";
7
6
  import {
8
7
  QUESTIONS,
9
8
  readSetupAnswers,
10
9
  unanswered,
11
10
  writeSetupAnswers
12
- } from "./chunk-TTTDZOBW.js";
11
+ } from "./chunk-OMP6ALBT.js";
13
12
  import {
14
13
  DEFAULT_STEMMERS,
15
14
  LANGUAGES
16
- } from "./chunk-OFDMD3YF.js";
15
+ } from "./chunk-OSP335AJ.js";
17
16
  import {
18
17
  sharedConfigPath
19
- } from "./chunk-NMVFFWF2.js";
18
+ } from "./chunk-A4BQGSKI.js";
20
19
  import {
21
20
  storePath
22
- } from "./chunk-TRRRRGMI.js";
21
+ } from "./chunk-63YKD7YA.js";
22
+ import {
23
+ installerOf
24
+ } from "./chunk-ILHTNOIV.js";
23
25
  import {
24
26
  __name
25
27
  } from "./chunk-ZVVMGPBJ.js";
@@ -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-FOJFYOMR.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-E6Q4WRPU.js"),
117
+ import("./store-maintenance-command-YKV2C34N.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-HANARM67.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-4NGAZGHE.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
203
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
204
  `), "say")
203
205
  }
@@ -1,7 +1,6 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- CliError,
5
4
  finite,
6
5
  getDotPath,
7
6
  maxValue,
@@ -10,7 +9,10 @@ import {
10
9
  optional,
11
10
  pipe,
12
11
  safeParse
13
- } from "./chunk-EARO464A.js";
12
+ } from "./chunk-77M3IAVU.js";
13
+ import {
14
+ CliError
15
+ } from "./chunk-CCHHEMPM.js";
14
16
  import {
15
17
  __name
16
18
  } from "./chunk-ZVVMGPBJ.js";