@wirecat/tg-cli 0.121.0 → 0.123.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 (106) hide show
  1. package/contracts/wirecat.json +15 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-GVSBFSBY.js → adapter-GAOG65O2.js} +46 -46
  4. package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-HLE6PHNI.js} +8 -8
  5. package/dist/bundle/{anthropic-7472H6ES.js → anthropic-FZC4BS7T.js} +4 -4
  6. package/dist/bundle/{app-server-GZWV4NPR.js → app-server-SHZNMV27.js} +40 -40
  7. package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-LRS2KMDE.js} +46 -46
  8. package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-IJ7ZZKW5.js} +16 -16
  9. package/dist/bundle/{bun-KCN62RMD.js → bun-FACL53HM.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-B2MD7RTL.js} +8 -4
  11. package/dist/bundle/{chunk-BJTJBNR7.js → chunk-3BUQXB7B.js} +7 -7
  12. package/dist/bundle/{chunk-T7ONSJAA.js → chunk-3JISIGLP.js} +2 -2
  13. package/dist/bundle/{chunk-MKAKM3V7.js → chunk-3P7HWXDJ.js} +3 -3
  14. package/dist/bundle/{chunk-U6HEZPCR.js → chunk-3S6KZCZ7.js} +1 -1
  15. package/dist/bundle/{chunk-MAPJUOTD.js → chunk-4DCFLHLN.js} +3 -3
  16. package/dist/bundle/{chunk-6LRKWXCS.js → chunk-5IHYZ6ED.js} +11 -11
  17. package/dist/bundle/{chunk-7DPWVKYS.js → chunk-5R5HGV2J.js} +2 -2
  18. package/dist/bundle/{chunk-7UIMMQOV.js → chunk-6FK2Z75N.js} +2 -2
  19. package/dist/bundle/{chunk-CPDYPZIG.js → chunk-6KT5BTWL.js} +192 -153
  20. package/dist/bundle/{chunk-QQ264PXQ.js → chunk-7EFJHLKW.js} +1 -1
  21. package/dist/bundle/{chunk-NR7PGYPO.js → chunk-ADI5R2MM.js} +29 -29
  22. package/dist/bundle/{chunk-RZX7RDXY.js → chunk-B6G3TNN4.js} +14 -14
  23. package/dist/bundle/{chunk-M47CXY5J.js → chunk-BAB3ALHZ.js} +27 -24
  24. package/dist/bundle/{chunk-4HJCWFPN.js → chunk-BGUYYKS3.js} +48 -48
  25. package/dist/bundle/{chunk-3EGVR7OF.js → chunk-DEMGDKCX.js} +97 -81
  26. package/dist/bundle/{chunk-VAAZL6OD.js → chunk-E2Z4C6CQ.js} +2 -2
  27. package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-EABZ2CUG.js} +15 -14
  28. package/dist/bundle/{chunk-M73VM67N.js → chunk-EISV5YWD.js} +1493 -1001
  29. package/dist/bundle/{chunk-24DWSW6H.js → chunk-ENEMZAIJ.js} +12 -11
  30. package/dist/bundle/{chunk-AYDLA27G.js → chunk-EOUUI5FI.js} +3 -3
  31. package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-FFHX7VKP.js} +1 -1
  32. package/dist/bundle/{chunk-7I6YVQHW.js → chunk-HJLTWT52.js} +1 -1
  33. package/dist/bundle/{chunk-DG44ORQ3.js → chunk-I7K4OR5Q.js} +4 -4
  34. package/dist/bundle/chunk-KKMNMQMW.js +53 -0
  35. package/dist/bundle/{chunk-W77WC6ZK.js → chunk-MFN5MSIL.js} +3 -3
  36. package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NYRAW4M5.js} +3 -3
  37. package/dist/bundle/chunk-OE5JMZSM.js +185 -0
  38. package/dist/bundle/{chunk-R6KXHBMW.js → chunk-OOWE2O5U.js} +1 -1
  39. package/dist/bundle/{chunk-YRY752BB.js → chunk-PAHSIORC.js} +5 -5
  40. package/dist/bundle/{chunk-3E35VJME.js → chunk-PZJXQMSZ.js} +1 -1
  41. package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-PZQ2MQFX.js} +5 -5
  42. package/dist/bundle/{chunk-TEMCXODM.js → chunk-Q74XVJFT.js} +1 -1
  43. package/dist/bundle/{chunk-CMEWPXKU.js → chunk-QLB3BFSN.js} +1 -1
  44. package/dist/bundle/{chunk-S7P5X23R.js → chunk-QLXKWAET.js} +38 -11
  45. package/dist/bundle/{chunk-PLBEUSZP.js → chunk-QVMAZVSN.js} +1 -1
  46. package/dist/bundle/{chunk-YMJKHMHX.js → chunk-RDKPKS2P.js} +1 -1
  47. package/dist/bundle/{chunk-ESLV57MC.js → chunk-SCGCDLI7.js} +1 -1
  48. package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-SMFUKHG2.js} +24 -0
  49. package/dist/bundle/{chunk-3HNI6GI7.js → chunk-SNEJK4SN.js} +4 -4
  50. package/dist/bundle/{chunk-SHIHW2YN.js → chunk-STPYSD6W.js} +2 -2
  51. package/dist/bundle/{chunk-RPBO5XL3.js → chunk-SWGGYBCW.js} +13 -13
  52. package/dist/bundle/{chunk-SQWTUENZ.js → chunk-T5OO7VDT.js} +306 -261
  53. package/dist/bundle/{chunk-QNNUNGPL.js → chunk-U5FILNK6.js} +2 -2
  54. package/dist/bundle/{chunk-KPAUPIC3.js → chunk-UB6J5HRW.js} +3 -3
  55. package/dist/bundle/{chunk-VPNLTNQD.js → chunk-UBFDPLFQ.js} +5 -5
  56. package/dist/bundle/{chunk-DAK2J3FG.js → chunk-V23X3W2W.js} +7 -7
  57. package/dist/bundle/{chunk-QMNUQTA2.js → chunk-V4722KYX.js} +1 -1
  58. package/dist/bundle/{chunk-GB55EDOF.js → chunk-V4JEZFW5.js} +1 -1
  59. package/dist/bundle/{chunk-6SQAE7NM.js → chunk-VVRWH5VH.js} +7 -7
  60. package/dist/bundle/{chunk-4J34T6IQ.js → chunk-WA7YED3Y.js} +1 -1
  61. package/dist/bundle/{chunk-CLMRF6XR.js → chunk-WSLTW6MI.js} +2 -2
  62. package/dist/bundle/{chunk-5P43K3GL.js → chunk-XDL4L3OI.js} +24584 -23597
  63. package/dist/bundle/{chunk-7MXRFFIT.js → chunk-Z5HHBTS5.js} +2 -2
  64. package/dist/bundle/{chunk-LTAHG7BO.js → chunk-ZJPXRW65.js} +3 -3
  65. package/dist/bundle/{chunk-FATTEYZH.js → chunk-ZOBRYIUG.js} +1 -1
  66. package/dist/bundle/{chunk-FERGNQYA.js → chunk-ZQ3WGGKK.js} +12 -12
  67. package/dist/bundle/command-contract-HWSWHMO4.js +33 -0
  68. package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-5LKDRLEX.js} +69 -53
  69. package/dist/bundle/{decode-F7KC7WT4.js → decode-L4DQDHXA.js} +4 -4
  70. package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-PQSCFHEX.js} +1 -1
  71. package/dist/bundle/{echarts-4VYG66GX.js → echarts-6LES2JIV.js} +2 -2
  72. package/dist/bundle/{embed-ENZ6R4HF.js → embed-T5MLKX75.js} +5 -5
  73. package/dist/bundle/{embedder-4CBICMFO.js → embedder-56NMRLC5.js} +8 -8
  74. package/dist/bundle/{entry-XQ562EDO.js → entry-U5GV6Y46.js} +7 -7
  75. package/dist/bundle/{failure-HJD7S5UA.js → failure-BX5HJAQE.js} +1 -1
  76. package/dist/bundle/{first-run-PPXOC6ID.js → first-run-ISQ52V3I.js} +8 -8
  77. package/dist/bundle/first-screen-7L4AMZDO.js +31 -0
  78. package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-CJEXDI7E.js} +1 -1
  79. package/dist/bundle/{node-SSAC67R5.js → node-QLWTGZW7.js} +2 -2
  80. package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-X2C3RR2Q.js} +9 -5
  81. package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-VP3KMHLX.js} +6 -6
  82. package/dist/bundle/{open-EFNT7V2Q.js → open-GLR5EUZS.js} +4 -4
  83. package/dist/bundle/{openai-7STFVJXA.js → openai-6CDCJ5LQ.js} +12 -12
  84. package/dist/bundle/{process-63F4PNWH.js → process-7FABZ3T2.js} +1 -1
  85. package/dist/bundle/{program-C2E3TQNK.js → program-KUIAHJDX.js} +49 -49
  86. package/dist/bundle/{prompt-QPO7EKD5.js → prompt-XPHIZMD2.js} +4 -4
  87. package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-IIB7ZXIS.js} +4 -4
  88. package/dist/bundle/{recognize-MLXEHFYL.js → recognize-FVFYI3XX.js} +3 -3
  89. package/dist/bundle/{remote-DO7FLJEF.js → remote-3AMCG2P4.js} +6 -6
  90. package/dist/bundle/{rerank-W3WSBDAM.js → rerank-XV4E25ML.js} +6 -6
  91. package/dist/bundle/{serve-Z3TOTEMQ.js → serve-NVSZA4UN.js} +8 -8
  92. package/dist/bundle/{server-BYSOJCUA.js → server-MBMPHRJE.js} +31 -31
  93. package/dist/bundle/server-MHVGYRQZ.js +61 -0
  94. package/dist/bundle/{state-PKRPBCMY.js → state-JBMB2QUR.js} +5 -5
  95. package/dist/bundle/{store-Y4G7CNJT.js → store-T4SCYTY2.js} +11 -11
  96. package/dist/bundle/store-maintenance-command-F7WQMTMP.js +49 -0
  97. package/dist/bundle/tg.js +6 -6
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/package.json +2 -2
  101. package/dist/bundle/chunk-54KFRAHF.js +0 -35
  102. package/dist/bundle/chunk-GNGYV5NX.js +0 -116
  103. package/dist/bundle/command-contract-3W73W27G.js +0 -33
  104. package/dist/bundle/first-screen-JC6BYZYD.js +0 -31
  105. package/dist/bundle/server-IRUVLXD4.js +0 -61
  106. package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
@@ -8,7 +8,7 @@ import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -44,7 +44,7 @@ var wrapping = /* @__PURE__ */ __name((error, original) => {
44
44
  var storeDamaged = /* @__PURE__ */ __name((error, next) => damageIn(error) ? wrapping(new CliError("configuration_error", `the store file is damaged${next ? `; \`${next}\` says what is damaged and what to do` : ""}`, { reason: "store.damaged" }), error) : error, "storeDamaged");
45
45
  var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
46
46
 
47
- // 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/runs/secrets.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/runs/secrets.js
48
48
  var SECRET_WORDS = /* @__PURE__ */ new Set([
49
49
  "authorization",
50
50
  "cookie",
@@ -7,10 +7,10 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-CPDYPZIG.js";
10
+ } from "./chunk-6KT5BTWL.js";
11
11
  import {
12
12
  jsonSchemaOf
13
- } from "./chunk-WGGSFGNZ.js";
13
+ } from "./chunk-SMFUKHG2.js";
14
14
  import {
15
15
  CliError
16
16
  } from "./chunk-VUBZFMGP.js";
@@ -18,7 +18,7 @@ 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/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);
@@ -4,7 +4,7 @@ import {
4
4
  check,
5
5
  pipe,
6
6
  string
7
- } from "./chunk-WGGSFGNZ.js";
7
+ } from "./chunk-SMFUKHG2.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./chunk-VUBZFMGP.js";
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // 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/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // 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/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // 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/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // 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/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // 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/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // 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/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // 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/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // 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/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // 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/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // 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/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // 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/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
@@ -0,0 +1,33 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ SCHEMA_DIALECT,
5
+ commandContract,
6
+ commandPathOf,
7
+ findCommand,
8
+ outputOf
9
+ } from "./chunk-ZJPXRW65.js";
10
+ import "./chunk-6KT5BTWL.js";
11
+ import "./chunk-UB6J5HRW.js";
12
+ import "./chunk-QLB3BFSN.js";
13
+ import "./chunk-VVRWH5VH.js";
14
+ import "./chunk-STPYSD6W.js";
15
+ import "./chunk-PZJXQMSZ.js";
16
+ import "./chunk-DEMGDKCX.js";
17
+ import "./chunk-Z5HHBTS5.js";
18
+ import "./chunk-PAHSIORC.js";
19
+ import "./chunk-EOUUI5FI.js";
20
+ import "./chunk-YVNHQFLC.js";
21
+ import "./chunk-KKMNMQMW.js";
22
+ import "./chunk-3S6KZCZ7.js";
23
+ import "./chunk-SMFUKHG2.js";
24
+ import "./chunk-Y5E2WNWB.js";
25
+ import "./chunk-VUBZFMGP.js";
26
+ import "./chunk-ZVVMGPBJ.js";
27
+ export {
28
+ SCHEMA_DIALECT,
29
+ commandContract,
30
+ commandPathOf,
31
+ findCommand,
32
+ outputOf
33
+ };
@@ -1,35 +1,39 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- inCommandServerRequest,
5
- refuseInCommandServer,
4
+ COMMAND_SERVER_CONCURRENT,
5
+ enterCommandServer,
6
6
  serveCommands
7
- } from "./chunk-GNGYV5NX.js";
8
- import "./chunk-PLBEUSZP.js";
7
+ } from "./chunk-OE5JMZSM.js";
8
+ import "./chunk-QVMAZVSN.js";
9
9
  import {
10
10
  ensureSqlite
11
- } from "./chunk-KVW7LCZK.js";
12
- import "./chunk-VPNLTNQD.js";
13
- import "./chunk-Y4CSR5RP.js";
14
- import "./chunk-LTAHG7BO.js";
15
- import "./chunk-CPDYPZIG.js";
16
- import "./chunk-KPAUPIC3.js";
17
- import "./chunk-CMEWPXKU.js";
18
- import "./chunk-6SQAE7NM.js";
19
- import "./chunk-SHIHW2YN.js";
20
- import "./chunk-3E35VJME.js";
11
+ } from "./chunk-NYRAW4M5.js";
12
+ import "./chunk-UBFDPLFQ.js";
13
+ import "./chunk-FFHX7VKP.js";
14
+ import "./chunk-ZJPXRW65.js";
21
15
  import {
22
- useAsProcessRun
23
- } from "./chunk-3EGVR7OF.js";
24
- import "./chunk-7MXRFFIT.js";
25
- import "./chunk-YRY752BB.js";
26
- import "./chunk-AYDLA27G.js";
27
- import "./chunk-54KFRAHF.js";
16
+ commandServerRequest,
17
+ exitCodeSet,
18
+ inCommandServerRequest
19
+ } from "./chunk-6KT5BTWL.js";
20
+ import "./chunk-UB6J5HRW.js";
21
+ import "./chunk-QLB3BFSN.js";
22
+ import "./chunk-VVRWH5VH.js";
23
+ import "./chunk-STPYSD6W.js";
24
+ import "./chunk-PZJXQMSZ.js";
25
+ import {
26
+ asOwnProcess
27
+ } from "./chunk-DEMGDKCX.js";
28
+ import "./chunk-Z5HHBTS5.js";
29
+ import "./chunk-PAHSIORC.js";
30
+ import "./chunk-EOUUI5FI.js";
28
31
  import "./chunk-YVNHQFLC.js";
29
- import "./chunk-U6HEZPCR.js";
32
+ import "./chunk-KKMNMQMW.js";
33
+ import "./chunk-3S6KZCZ7.js";
30
34
  import {
31
35
  catchCrashes
32
- } from "./chunk-WGGSFGNZ.js";
36
+ } from "./chunk-SMFUKHG2.js";
33
37
  import "./chunk-Y5E2WNWB.js";
34
38
  import {
35
39
  CliError
@@ -38,7 +42,7 @@ import {
38
42
  __name
39
43
  } from "./chunk-ZVVMGPBJ.js";
40
44
 
41
- // 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/command-server-entry.js
45
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
42
46
  import { PassThrough } from "node:stream";
43
47
  var route = /* @__PURE__ */ __name((stream, sink) => {
44
48
  const original = stream.write;
@@ -58,7 +62,21 @@ var closedStdin = /* @__PURE__ */ __name(() => {
58
62
  stdin.end();
59
63
  return stdin;
60
64
  }, "closedStdin");
61
- var useStdin = /* @__PURE__ */ __name((stdin) => Object.defineProperty(process, "stdin", { value: stdin, configurable: true, enumerable: true, writable: true }), "useStdin");
65
+ var useStdin = /* @__PURE__ */ __name((outside) => Object.defineProperty(process, "stdin", {
66
+ get: /* @__PURE__ */ __name(() => commandServerRequest()?.stdin ?? outside, "get"),
67
+ configurable: true,
68
+ enumerable: true
69
+ }), "useStdin");
70
+ var roomFor = /* @__PURE__ */ __name((runs) => {
71
+ const emitters = [process, process.stdout, process.stderr];
72
+ const before = emitters.map((emitter) => emitter.getMaxListeners());
73
+ for (const emitter of emitters)
74
+ emitter.setMaxListeners(emitter.getMaxListeners() + 2 * runs);
75
+ return () => {
76
+ for (const [at, emitter] of emitters.entries())
77
+ emitter.setMaxListeners(before[at]);
78
+ };
79
+ }, "roomFor");
62
80
  var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
63
81
  const release = catchCrashes({
64
82
  cli: entry.app.command,
@@ -73,51 +91,47 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
73
91
  const toStderr = /* @__PURE__ */ __name((chunk) => {
74
92
  ownStderr(chunk);
75
93
  }, "toStderr");
76
- let current;
77
- const unrouteOut = route(process.stdout, () => current ? (chunk) => current?.stdout.push(chunk) : toStderr);
78
- const unrouteErr = route(process.stderr, () => current ? (chunk) => current?.stderr.push(chunk) : toStderr);
94
+ const sink = /* @__PURE__ */ __name((pick) => () => {
95
+ const request = commandServerRequest();
96
+ return request ? (chunk) => pick(request).push(chunk) : toStderr;
97
+ }, "sink");
98
+ const unrouteOut = route(process.stdout, sink((request) => request.stdout));
99
+ const unrouteErr = route(process.stderr, sink((request) => request.stderr));
79
100
  const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
80
101
  const requests = io.stdin;
81
102
  useStdin(closedStdin());
103
+ const unroom = roomFor(COMMAND_SERVER_CONCURRENT);
82
104
  io.signals.on("SIGINT", stop).on("SIGTERM", stop);
83
105
  io.stdout.on("error", stop);
84
- const run = /* @__PURE__ */ __name(async (argv) => {
85
- const stdout = [];
86
- const stderr = [];
87
- current = { stdout, stderr };
88
- process.exitCode = void 0;
89
- useAsProcessRun(void 0);
90
- const input = closedStdin();
91
- useStdin(input);
92
- const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: input };
106
+ const run = /* @__PURE__ */ __name(async (argv, alone) => {
107
+ const request = { stdout: [], stderr: [], stdin: closedStdin(), alone };
108
+ const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: request.stdin };
93
109
  const context = {
94
110
  args: argv,
95
111
  env: io.env,
96
112
  tty: false,
97
113
  signal: stopper.signal,
98
114
  atStart: /* @__PURE__ */ __name(async (command) => {
99
- refuseInCommandServer(command, entry.app.command);
115
+ await enterCommandServer(command, entry.app.command);
100
116
  await firstRunAt(entry, requestIo, () => true)(command);
101
117
  }, "atStart"),
102
118
  ask: /* @__PURE__ */ __name(async () => false, "ask"),
103
119
  openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
104
- outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed")
120
+ outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed"),
121
+ setExitCode: /* @__PURE__ */ __name((code2) => {
122
+ request.exitCode = code2;
123
+ }, "setExitCode")
105
124
  };
106
- let code;
107
- try {
108
- code = await inCommandServerRequest(async () => {
109
- try {
110
- const returned = await entry.run(context);
111
- return typeof returned === "number" ? returned : Number(process.exitCode ?? 0);
112
- } catch (error) {
113
- return commanderExit(error) ?? entry.fail(error, context);
114
- }
115
- });
116
- } finally {
117
- current = void 0;
118
- process.exitCode = void 0;
119
- }
120
- return { code, stdout: Buffer.concat(stdout).toString("utf8"), stderr: Buffer.concat(stderr).toString("utf8") };
125
+ const code = await inCommandServerRequest(request, () => asOwnProcess(async () => {
126
+ try {
127
+ const returned = await entry.run(context);
128
+ return typeof returned === "number" ? returned : exitCodeSet() ?? 0;
129
+ } catch (error) {
130
+ return commanderExit(error) ?? entry.fail(error, context);
131
+ }
132
+ }));
133
+ const text = /* @__PURE__ */ __name((chunks) => Buffer.concat(chunks).toString("utf8"), "text");
134
+ return { code, stdout: text(request.stdout), stderr: text(request.stderr) };
121
135
  }, "run");
122
136
  try {
123
137
  if (entry.sqlite)
@@ -127,12 +141,14 @@ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commande
127
141
  write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
128
142
  run,
129
143
  cli: entry.app.command,
144
+ concurrent: COMMAND_SERVER_CONCURRENT,
130
145
  version: entry.app.version,
131
146
  signal: stopper.signal
132
147
  });
133
148
  io.setExitCode(0);
134
149
  } finally {
135
150
  io.signals.off("SIGINT", stop).off("SIGTERM", stop);
151
+ unroom();
136
152
  unrouteOut();
137
153
  unrouteErr();
138
154
  if (stdin)
@@ -3,9 +3,9 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-MAPJUOTD.js";
7
- import "./chunk-U6HEZPCR.js";
8
- import "./chunk-WGGSFGNZ.js";
6
+ } from "./chunk-4DCFLHLN.js";
7
+ import "./chunk-3S6KZCZ7.js";
8
+ import "./chunk-SMFUKHG2.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
@@ -16,7 +16,7 @@ import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // 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/speech/decode.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/speech/decode.js
20
20
  import { spawn } from "node:child_process";
21
21
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
22
22
  import { createRequire } from "node:module";
@@ -338,7 +338,7 @@ var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resol
338
338
  });
339
339
  }), "runTool");
340
340
  var fail = /* @__PURE__ */ __name(async (error, json, context) => {
341
- const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-HJD7S5UA.js");
341
+ const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-BX5HJAQE.js");
342
342
  const object = errorObjectOf(error);
343
343
  context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
344
344
  `);
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // 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/charts/echarts-option.js
42402
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42403
42403
  var echartsOption = /* @__PURE__ */ __name((chart) => ({
42404
42404
  animation: false,
42405
42405
  backgroundColor: "#111827",
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
42447
42447
  } : {}
42448
42448
  }), "echartsOption");
42449
42449
 
42450
- // 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/charts/echarts.js
42450
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42451
42451
  use([install2, install, install6, install5, install10, install7, install11]);
42452
42452
  var echartsRenderer = {
42453
42453
  render: /* @__PURE__ */ __name(async (chart, size) => {
@@ -13,11 +13,11 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-KKD5ZPGD.js";
17
- import "./chunk-AYDLA27G.js";
18
- import "./chunk-54KFRAHF.js";
19
- import "./chunk-U6HEZPCR.js";
20
- import "./chunk-WGGSFGNZ.js";
16
+ } from "./chunk-PZQ2MQFX.js";
17
+ import "./chunk-EOUUI5FI.js";
18
+ import "./chunk-KKMNMQMW.js";
19
+ import "./chunk-3S6KZCZ7.js";
20
+ import "./chunk-SMFUKHG2.js";
21
21
  import "./chunk-Y5E2WNWB.js";
22
22
  import "./chunk-VUBZFMGP.js";
23
23
  import "./chunk-ZVVMGPBJ.js";
@@ -4,11 +4,11 @@ import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-KKD5ZPGD.js";
8
- import "./chunk-AYDLA27G.js";
9
- import "./chunk-54KFRAHF.js";
10
- import "./chunk-U6HEZPCR.js";
11
- import "./chunk-WGGSFGNZ.js";
7
+ } from "./chunk-PZQ2MQFX.js";
8
+ import "./chunk-EOUUI5FI.js";
9
+ import "./chunk-KKMNMQMW.js";
10
+ import "./chunk-3S6KZCZ7.js";
11
+ import "./chunk-SMFUKHG2.js";
12
12
  import {
13
13
  importFrom
14
14
  } from "./chunk-Y5E2WNWB.js";
@@ -19,11 +19,11 @@ import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // 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/images/picture/embedder.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
23
23
  import { readFileSync } from "node:fs";
24
24
  import { join } from "node:path";
25
25
 
26
- // 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/images/picture/preprocess.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
27
27
  var SIZE = 224;
28
28
  var MEAN = [0.48145466, 0.4578275, 0.40821073];
29
29
  var STD = [0.26862954, 0.26130258, 0.27577711];
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
62
62
  return pixels;
63
63
  }, "preprocess");
64
64
 
65
- // 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/images/picture/embedder.js
65
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
66
66
  var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
67
67
  const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
68
68
  const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
@@ -4,13 +4,13 @@ import {
4
4
  firstRunAt,
5
5
  openBrowser,
6
6
  startCli
7
- } from "./chunk-24DWSW6H.js";
8
- import "./chunk-KVW7LCZK.js";
9
- import "./chunk-VPNLTNQD.js";
10
- import "./chunk-Y4CSR5RP.js";
11
- import "./chunk-3E35VJME.js";
12
- import "./chunk-U6HEZPCR.js";
13
- import "./chunk-WGGSFGNZ.js";
7
+ } from "./chunk-ENEMZAIJ.js";
8
+ import "./chunk-NYRAW4M5.js";
9
+ import "./chunk-UBFDPLFQ.js";
10
+ import "./chunk-FFHX7VKP.js";
11
+ import "./chunk-PZJXQMSZ.js";
12
+ import "./chunk-3S6KZCZ7.js";
13
+ import "./chunk-SMFUKHG2.js";
14
14
  import "./chunk-Y5E2WNWB.js";
15
15
  import "./chunk-VUBZFMGP.js";
16
16
  import "./chunk-ZVVMGPBJ.js";
@@ -9,7 +9,7 @@ import {
9
9
  mcpErrorResult,
10
10
  renderError,
11
11
  retryOf
12
- } from "./chunk-WGGSFGNZ.js";
12
+ } from "./chunk-SMFUKHG2.js";
13
13
  import "./chunk-VUBZFMGP.js";
14
14
  import "./chunk-ZVVMGPBJ.js";
15
15
  export {
@@ -5,17 +5,17 @@ import {
5
5
  asksAtStart,
6
6
  setupAtStart,
7
7
  systemLanguage
8
- } from "./chunk-6LRKWXCS.js";
9
- import "./chunk-7DPWVKYS.js";
8
+ } from "./chunk-5IHYZ6ED.js";
9
+ import "./chunk-5R5HGV2J.js";
10
10
  import "./chunk-MCPOZNWG.js";
11
- import "./chunk-DAK2J3FG.js";
11
+ import "./chunk-V23X3W2W.js";
12
12
  import "./chunk-RX5CJ55S.js";
13
13
  import "./chunk-D72URWJE.js";
14
- import "./chunk-SHIHW2YN.js";
15
- import "./chunk-YRY752BB.js";
16
- import "./chunk-54KFRAHF.js";
17
- import "./chunk-U6HEZPCR.js";
18
- import "./chunk-WGGSFGNZ.js";
14
+ import "./chunk-STPYSD6W.js";
15
+ import "./chunk-PAHSIORC.js";
16
+ import "./chunk-KKMNMQMW.js";
17
+ import "./chunk-3S6KZCZ7.js";
18
+ import "./chunk-SMFUKHG2.js";
19
19
  import "./chunk-Y5E2WNWB.js";
20
20
  import "./chunk-VUBZFMGP.js";
21
21
  import "./chunk-ZVVMGPBJ.js";
@@ -0,0 +1,31 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ WIRECAT_TOOLS,
5
+ firstScreen,
6
+ installHelp
7
+ } from "./chunk-3BUQXB7B.js";
8
+ import "./chunk-2ABQZVK4.js";
9
+ import "./chunk-ZJPXRW65.js";
10
+ import "./chunk-6KT5BTWL.js";
11
+ import "./chunk-UB6J5HRW.js";
12
+ import "./chunk-QLB3BFSN.js";
13
+ import "./chunk-VVRWH5VH.js";
14
+ import "./chunk-STPYSD6W.js";
15
+ import "./chunk-PZJXQMSZ.js";
16
+ import "./chunk-DEMGDKCX.js";
17
+ import "./chunk-Z5HHBTS5.js";
18
+ import "./chunk-PAHSIORC.js";
19
+ import "./chunk-EOUUI5FI.js";
20
+ import "./chunk-YVNHQFLC.js";
21
+ import "./chunk-KKMNMQMW.js";
22
+ import "./chunk-3S6KZCZ7.js";
23
+ import "./chunk-SMFUKHG2.js";
24
+ import "./chunk-Y5E2WNWB.js";
25
+ import "./chunk-VUBZFMGP.js";
26
+ import "./chunk-ZVVMGPBJ.js";
27
+ export {
28
+ WIRECAT_TOOLS,
29
+ firstScreen,
30
+ installHelp
31
+ };
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  appInstructions,
5
5
  instructions
6
- } from "./chunk-QQ264PXQ.js";
6
+ } from "./chunk-7EFJHLKW.js";
7
7
  import "./chunk-ZVVMGPBJ.js";
8
8
  export {
9
9
  appInstructions,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-TEMCXODM.js";
21
+ } from "./chunk-Q74XVJFT.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // 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/store/sqlite/drizzle/node.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
27
27
  import { DatabaseSync } from "node:sqlite";
28
28
  var nodeSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,23 +3,27 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-YMJKHMHX.js";
6
+ } from "./chunk-RDKPKS2P.js";
7
7
  import {
8
8
  TIME_LIMIT_FUNCTION,
9
9
  beforeTimeLimit
10
- } from "./chunk-Y4CSR5RP.js";
11
- import "./chunk-U6HEZPCR.js";
12
- import "./chunk-WGGSFGNZ.js";
10
+ } from "./chunk-FFHX7VKP.js";
11
+ import {
12
+ refuseOwnerStoreInTests
13
+ } from "./chunk-KKMNMQMW.js";
14
+ import "./chunk-3S6KZCZ7.js";
15
+ import "./chunk-SMFUKHG2.js";
13
16
  import "./chunk-Y5E2WNWB.js";
14
17
  import "./chunk-VUBZFMGP.js";
15
18
  import {
16
19
  __name
17
20
  } from "./chunk-ZVVMGPBJ.js";
18
21
 
19
- // 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/store/drivers/node-sqlite.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
20
23
  import { DatabaseSync } from "node:sqlite";
21
24
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
22
25
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
26
+ refuseOwnerStoreInTests(path);
23
27
  const extension = await vectorExtension();
24
28
  const client = new DatabaseSync(path, { readOnly, allowExtension: true });
25
29
  try {