@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
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ensureSqlite,
5
5
  isCommandServer
6
- } from "./chunk-KVW7LCZK.js";
6
+ } from "./chunk-NYRAW4M5.js";
7
7
  import {
8
8
  envName,
9
9
  readOnlyLockOf
10
- } from "./chunk-3E35VJME.js";
10
+ } from "./chunk-PZJXQMSZ.js";
11
11
  import {
12
12
  catchCrashes
13
- } from "./chunk-WGGSFGNZ.js";
13
+ } from "./chunk-SMFUKHG2.js";
14
14
  import {
15
15
  CliError
16
16
  } from "./chunk-VUBZFMGP.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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/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-5LKDRLEX.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-XPHIZMD2.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-ISQ52V3I.js"),
150
+ import("./command-contract-HWSWHMO4.js")
150
151
  ]);
151
152
  await setupAtStart({
152
153
  command: entry.app.command,
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-54KFRAHF.js";
5
+ } from "./chunk-KKMNMQMW.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-VUBZFMGP.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/models.js
13
+ // 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/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // 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/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/driver.js
7
+ // 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/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  proxyError,
5
5
  proxyLabel
6
- } from "./chunk-FATTEYZH.js";
6
+ } from "./chunk-ZOBRYIUG.js";
7
7
  import {
8
8
  CliError
9
9
  } from "./chunk-VUBZFMGP.js";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  openSqlite
5
- } from "./chunk-5P43K3GL.js";
5
+ } from "./chunk-XDL4L3OI.js";
6
6
  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/store/damage.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/store/damage.js
11
11
  var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
12
12
  var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
13
13
  var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
@@ -110,7 +110,7 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
110
110
  };
111
111
  }, "storeDamageReport");
112
112
 
113
- // 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/health.js
113
+ // 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/health.js
114
114
  import { existsSync, statSync } from "node:fs";
115
115
  var JSON_COLUMNS = {
116
116
  accounts: ["settings"],
@@ -252,7 +252,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
252
252
  }
253
253
  }, "storeHealth");
254
254
 
255
- // 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/document-transfer/snapshot.js
255
+ // 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/document-transfer/snapshot.js
256
256
  var MAX_BYTES = 16 * 1024 * 1024;
257
257
 
258
258
  export {
@@ -0,0 +1,53 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ resolvePaths
5
+ } from "./chunk-3S6KZCZ7.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-ZVVMGPBJ.js";
9
+
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/store/path.js
11
+ import { realpathSync } from "node:fs";
12
+ import { userInfo } from "node:os";
13
+ import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
14
+ var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
15
+ var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
16
+ var accountHome = /* @__PURE__ */ __name(() => {
17
+ try {
18
+ return userInfo().homedir;
19
+ } catch {
20
+ return void 0;
21
+ }
22
+ }, "accountHome");
23
+ var inOwnerFolder = /* @__PURE__ */ __name((file, home = accountHome()) => {
24
+ if (!home || file === ":memory:")
25
+ return false;
26
+ const owner = wirecatDirectory({ HOME: home, USERPROFILE: home });
27
+ const within = /* @__PURE__ */ __name((path, folder) => {
28
+ const inside = relative(folder, path);
29
+ return !(inside.startsWith("..") || isAbsolute(inside));
30
+ }, "within");
31
+ return within(resolve(file), owner) || within(settled(resolve(file)), settled(owner));
32
+ }, "inOwnerFolder");
33
+ var settled = /* @__PURE__ */ __name((path) => {
34
+ try {
35
+ return realpathSync(path);
36
+ } catch {
37
+ const parent = dirname(path);
38
+ return parent === path ? path : join(settled(parent), basename(path));
39
+ }
40
+ }, "settled");
41
+ var refuseOwnerStoreInTests = /* @__PURE__ */ __name((file, env = process.env, home = accountHome()) => {
42
+ if (!env.VITEST || !inOwnerFolder(file, home))
43
+ return;
44
+ throw new Error(`a test tried to open ${file}, in the owner's real WireCat folder; give it a MESSAGING_STORE or HOME of its own`);
45
+ }, "refuseOwnerStoreInTests");
46
+
47
+ export {
48
+ wirecatDirectory,
49
+ storePath,
50
+ accountHome,
51
+ inOwnerFolder,
52
+ refuseOwnerStoreInTests
53
+ };
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-CMEWPXKU.js";
5
+ } from "./chunk-QLB3BFSN.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-U6HEZPCR.js";
9
+ } from "./chunk-3S6KZCZ7.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // 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/background/lock.js
14
+ // 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/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-VPNLTNQD.js";
6
+ } from "./chunk-UBFDPLFQ.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // 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/sqlite-runtime.js
14
+ // 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/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -99,7 +99,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
99
99
  });
100
100
  }), "relay");
101
101
 
102
- // 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-argv.js
102
+ // 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-argv.js
103
103
  var COMMAND_SERVER_ARGV = ["commands", "--serve"];
104
104
  var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
105
105
 
@@ -0,0 +1,185 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ stdinFieldOf
5
+ } from "./chunk-QVMAZVSN.js";
6
+ import {
7
+ isCommandServer
8
+ } from "./chunk-NYRAW4M5.js";
9
+ import {
10
+ commandPathOf
11
+ } from "./chunk-ZJPXRW65.js";
12
+ import {
13
+ commandServerRequest,
14
+ metaOf
15
+ } from "./chunk-6KT5BTWL.js";
16
+ import {
17
+ errorObjectOf,
18
+ renderError
19
+ } from "./chunk-SMFUKHG2.js";
20
+ import {
21
+ CliError
22
+ } from "./chunk-VUBZFMGP.js";
23
+ import {
24
+ __name
25
+ } from "./chunk-ZVVMGPBJ.js";
26
+
27
+ // 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.js
28
+ import { createInterface } from "node:readline";
29
+ var COMMAND_SERVER_PROTOCOL = 1;
30
+ var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
31
+ var COMMAND_SERVER_CONCURRENT = 8;
32
+ var runsAlone = /* @__PURE__ */ __name((command) => commandPathOf(command)[0] === "store", "runsAlone");
33
+ var enterCommandServer = /* @__PURE__ */ __name(async (command, cli) => {
34
+ const request = commandServerRequest();
35
+ if (!request)
36
+ return;
37
+ refuseInCommandServer(command, cli);
38
+ if (runsAlone(command))
39
+ await request.alone();
40
+ }, "enterCommandServer");
41
+ var refuseInCommandServer = /* @__PURE__ */ __name((command, cli) => {
42
+ if (!commandServerRequest())
43
+ return;
44
+ const typed = [cli, ...commandPathOf(command)].join(" ");
45
+ const { lifetime } = metaOf(command);
46
+ if (lifetime)
47
+ throw new CliError("validation_error", `\`${typed}\` ${lifetime === "persistent" ? "runs until it is stopped" : "waits on a person"}; the command server runs only commands that return \u2014 start it as a process of its own`);
48
+ if (stdinFieldOf(command))
49
+ throw new CliError("validation_error", `\`${typed}\` reads its input on stdin, which the command server does not pass on \u2014 start it as a process of its own`);
50
+ }, "refuseInCommandServer");
51
+ var refusal = /* @__PURE__ */ __name((cli, message) => `${renderError(errorObjectOf(new CliError("validation_error", message)), { cli, interactive: false })}
52
+ `, "refusal");
53
+ var requestOf = /* @__PURE__ */ __name((line, cli) => {
54
+ let parsed;
55
+ try {
56
+ parsed = JSON.parse(line);
57
+ } catch {
58
+ return { id: null, error: "a request is one JSON object per line" };
59
+ }
60
+ const { id, argv } = parsed ?? {};
61
+ const known = typeof id === "number" && Number.isFinite(id) ? id : null;
62
+ if (known === null)
63
+ return { id: null, error: 'a request needs a numeric "id"' };
64
+ if (!Array.isArray(argv) || !argv.every((word) => typeof word === "string"))
65
+ return { id: known, error: '"argv" is a list of strings' };
66
+ if (isCommandServer(argv))
67
+ return { id: known, error: `\`${cli} commands --serve\` cannot run inside itself` };
68
+ return { id: known, argv };
69
+ }, "requestOf");
70
+ var serveCommands = /* @__PURE__ */ __name(async ({ input, write, run, cli, version, idleMs = COMMAND_SERVER_IDLE_MS, concurrent = COMMAND_SERVER_CONCURRENT, signal }) => {
71
+ const send = /* @__PURE__ */ __name((value) => write(`${JSON.stringify(value)}
72
+ `), "send");
73
+ await send({ ready: true, protocol: COMMAND_SERVER_PROTOCOL, version, concurrent });
74
+ const lines = createInterface({ input, crlfDelay: Number.POSITIVE_INFINITY });
75
+ return new Promise((resolve) => {
76
+ const waiting = [];
77
+ let active = 0;
78
+ let running = 0;
79
+ let gated = false;
80
+ let drained;
81
+ let turns = Promise.resolve();
82
+ let timer;
83
+ let ending = false;
84
+ let done = false;
85
+ const finish = /* @__PURE__ */ __name(() => {
86
+ if (done)
87
+ return;
88
+ done = true;
89
+ clearTimeout(timer);
90
+ lines.close();
91
+ resolve(0);
92
+ }, "finish");
93
+ const settle = /* @__PURE__ */ __name(() => {
94
+ if (running === 0 && drained) {
95
+ const go = drained;
96
+ drained = void 0;
97
+ go();
98
+ }
99
+ pump();
100
+ if (active > 0 || waiting.length > 0 || done)
101
+ return;
102
+ if (ending)
103
+ finish();
104
+ else {
105
+ clearTimeout(timer);
106
+ timer = setTimeout(finish, idleMs);
107
+ }
108
+ }, "settle");
109
+ const start = /* @__PURE__ */ __name((line) => {
110
+ active += 1;
111
+ running += 1;
112
+ let holdsPlace = true;
113
+ let ended = false;
114
+ let turn;
115
+ let release;
116
+ const alone = /* @__PURE__ */ __name(() => {
117
+ if (turn)
118
+ return turn;
119
+ holdsPlace = false;
120
+ running -= 1;
121
+ turn = turns.then(() => new Promise((go) => {
122
+ if (ended)
123
+ return go();
124
+ gated = true;
125
+ drained = /* @__PURE__ */ __name(() => {
126
+ if (ended)
127
+ gated = false;
128
+ else {
129
+ holdsPlace = true;
130
+ running += 1;
131
+ }
132
+ go();
133
+ }, "drained");
134
+ settle();
135
+ }));
136
+ turns = turn.then(() => ended && !holdsPlace ? void 0 : new Promise((free) => release = free));
137
+ return turn;
138
+ }, "alone");
139
+ const answer = /* @__PURE__ */ __name(async () => {
140
+ const request = requestOf(line, cli);
141
+ if ("error" in request)
142
+ return send({ id: request.id, code: 2, stdout: "", stderr: refusal(cli, request.error) });
143
+ const answered = await run(request.argv, alone);
144
+ return send({ id: request.id, ...answered });
145
+ }, "answer");
146
+ answer().catch(finish).finally(() => {
147
+ ended = true;
148
+ active -= 1;
149
+ if (holdsPlace)
150
+ running -= 1;
151
+ if (release) {
152
+ gated = false;
153
+ release();
154
+ }
155
+ settle();
156
+ });
157
+ }, "start");
158
+ const pump = /* @__PURE__ */ __name(() => {
159
+ while (!done && !gated && running < concurrent && waiting.length > 0)
160
+ start(waiting.shift());
161
+ }, "pump");
162
+ lines.on("line", (line) => {
163
+ if (done || ending || line.trim() === "")
164
+ return;
165
+ clearTimeout(timer);
166
+ waiting.push(line);
167
+ pump();
168
+ });
169
+ const end = /* @__PURE__ */ __name(() => {
170
+ ending = true;
171
+ settle();
172
+ }, "end");
173
+ lines.on("close", end);
174
+ if (signal?.aborted)
175
+ end();
176
+ signal?.addEventListener("abort", end, { once: true });
177
+ settle();
178
+ });
179
+ }, "serveCommands");
180
+
181
+ export {
182
+ COMMAND_SERVER_CONCURRENT,
183
+ enterCommandServer,
184
+ serveCommands
185
+ };
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/mcp/stdio-wire.js
7
+ // 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/mcp/stdio-wire.js
8
8
  import { PassThrough, Writable } from "node:stream";
9
9
  var lineReader = /* @__PURE__ */ __name((onMessage) => {
10
10
  let rest = "";
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-54KFRAHF.js";
5
+ } from "./chunk-KKMNMQMW.js";
6
6
  import {
7
7
  resolvePaths
8
- } from "./chunk-U6HEZPCR.js";
8
+ } from "./chunk-3S6KZCZ7.js";
9
9
  import {
10
10
  CliError,
11
11
  singleLine
@@ -14,11 +14,11 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/shared-config.js
17
+ // 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/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/domain/task-categories.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/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // 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/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -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/ports/app.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/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");
@@ -5,7 +5,7 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-AYDLA27G.js";
8
+ } from "./chunk-EOUUI5FI.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
@@ -16,12 +16,12 @@ 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/embeddings/embed.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/embeddings/embed.js
20
20
  import { readFileSync as readFileSync2 } from "node:fs";
21
21
  import { availableParallelism } from "node:os";
22
22
  import { basename, join as join2 } from "node:path";
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/embeddings/onnx-runtime.js
24
+ // 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/embeddings/onnx-runtime.js
25
25
  import { createHash } from "node:crypto";
26
26
  import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
27
27
  import { join } from "node:path";
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
678
678
  return Unzip2;
679
679
  })();
680
680
 
681
- // 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/embeddings/onnx-runtime.js
681
+ // 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/embeddings/onnx-runtime.js
682
682
  var ONNX_RUNTIME_VERSION = "1.30.0";
683
683
  var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
684
684
  name,
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
858
858
  return { ort, session: await ort.InferenceSession.create(bytes, options) };
859
859
  }, "openSession");
860
860
 
861
- // 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/embeddings/embed.js
861
+ // 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/embeddings/embed.js
862
862
  var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
863
863
  var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
864
864
  var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/shared-55XJMTPA.js
7
+ // 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/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/background/processes.js
7
+ // 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/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {