@wirecat/tg-cli 0.120.0 → 0.121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/contracts/wirecat.json +25 -3
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-OJKHXGBC.js → adapter-GVSBFSBY.js} +53 -49
  4. package/dist/bundle/{all-profiles-URIWNL23.js → all-profiles-CTOGU4XR.js} +6 -6
  5. package/dist/bundle/{anthropic-YUKNB63B.js → anthropic-7472H6ES.js} +13 -4
  6. package/dist/bundle/{app-server-H5QNHGH4.js → app-server-GZWV4NPR.js} +43 -42
  7. package/dist/bundle/{bot-api-27GN4Y3D.js → bot-api-PPVAKICN.js} +47 -44
  8. package/dist/bundle/{bot-history-VVSWLVZM.js → bot-history-7YY7MCR4.js} +12 -12
  9. package/dist/bundle/{bun-PAAJX3GU.js → bun-KCN62RMD.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-TPEBWFZH.js → bun-sqlite-2BNE56MY.js} +2 -2
  11. package/dist/bundle/{chunk-FPWXG53C.js → chunk-24DWSW6H.js} +35 -120
  12. package/dist/bundle/{chunk-DDKFAUQD.js → chunk-3E35VJME.js} +1 -1
  13. package/dist/bundle/{chunk-KP26Y5OA.js → chunk-3EGVR7OF.js} +4883 -4825
  14. package/dist/bundle/{chunk-CYWV2RLN.js → chunk-3HNI6GI7.js} +4 -4
  15. package/dist/bundle/{chunk-U2TPRUWK.js → chunk-4HJCWFPN.js} +81 -81
  16. package/dist/bundle/{chunk-KW6JZGG3.js → chunk-4J34T6IQ.js} +1 -1
  17. package/dist/bundle/{chunk-MMPISXSU.js → chunk-54KFRAHF.js} +1 -1
  18. package/dist/bundle/{chunk-ZRRZTPSB.js → chunk-5P43K3GL.js} +1418 -742
  19. package/dist/bundle/{chunk-3GLLWDM6.js → chunk-6LRKWXCS.js} +16 -16
  20. package/dist/bundle/{chunk-3FPFRDG2.js → chunk-6SQAE7NM.js} +6 -6
  21. package/dist/bundle/{chunk-WLBPNLDF.js → chunk-7MXRFFIT.js} +2 -2
  22. package/dist/bundle/{chunk-KRCMKFUV.js → chunk-7UIMMQOV.js} +1 -1
  23. package/dist/bundle/{chunk-DH7VKHTZ.js → chunk-AYDLA27G.js} +3 -3
  24. package/dist/bundle/{chunk-7N4IUEX3.js → chunk-BJTJBNR7.js} +6 -6
  25. package/dist/bundle/{chunk-JJY3TQTM.js → chunk-CLMRF6XR.js} +2 -2
  26. package/dist/bundle/{chunk-JQLGS3SG.js → chunk-CMEWPXKU.js} +1 -1
  27. package/dist/bundle/{chunk-THJHYMFR.js → chunk-CPDYPZIG.js} +3599 -3595
  28. package/dist/bundle/{chunk-WQ55F4Y3.js → chunk-DAK2J3FG.js} +7 -7
  29. package/dist/bundle/{chunk-YDROJG2Y.js → chunk-DG44ORQ3.js} +4 -4
  30. package/dist/bundle/{chunk-D2WNQJUQ.js → chunk-ESLV57MC.js} +1 -1
  31. package/dist/bundle/{chunk-CLTMVPGT.js → chunk-FERGNQYA.js} +12 -12
  32. package/dist/bundle/{chunk-KTV5Y5EX.js → chunk-GB55EDOF.js} +1 -1
  33. package/dist/bundle/chunk-GNGYV5NX.js +116 -0
  34. package/dist/bundle/{chunk-4OWY7QBE.js → chunk-KKD5ZPGD.js} +5 -5
  35. package/dist/bundle/{chunk-4JATS2J5.js → chunk-KPAUPIC3.js} +2 -2
  36. package/dist/bundle/chunk-KVW7LCZK.js +109 -0
  37. package/dist/bundle/{chunk-LLCGOZ44.js → chunk-LTAHG7BO.js} +2 -2
  38. package/dist/bundle/{chunk-DE7QIEUP.js → chunk-M47CXY5J.js} +30 -49
  39. package/dist/bundle/{chunk-DQTQO6PB.js → chunk-M73VM67N.js} +1209 -851
  40. package/dist/bundle/{chunk-6XHZV7AQ.js → chunk-MAPJUOTD.js} +3 -3
  41. package/dist/bundle/{chunk-S6OC367D.js → chunk-MKAKM3V7.js} +2 -2
  42. package/dist/bundle/{chunk-LS72R7DN.js → chunk-NR7PGYPO.js} +37 -35
  43. package/dist/bundle/chunk-PLBEUSZP.js +18 -0
  44. package/dist/bundle/{chunk-B7B65ZLU.js → chunk-QMNUQTA2.js} +1 -1
  45. package/dist/bundle/{chunk-3SANNNWS.js → chunk-QNNUNGPL.js} +2 -2
  46. package/dist/bundle/{chunk-YQKEPT22.js → chunk-QQ264PXQ.js} +1 -1
  47. package/dist/bundle/{chunk-JSEIT2WO.js → chunk-R6KXHBMW.js} +1 -1
  48. package/dist/bundle/{chunk-YBOVL25O.js → chunk-RPBO5XL3.js} +16 -16
  49. package/dist/bundle/{chunk-VUUR2SRS.js → chunk-RZX7RDXY.js} +33 -16
  50. package/dist/bundle/{chunk-7VNV426X.js → chunk-S7P5X23R.js} +26 -22
  51. package/dist/bundle/{chunk-HDSKBXAF.js → chunk-SHIHW2YN.js} +2 -2
  52. package/dist/bundle/{chunk-7WS3ULOO.js → chunk-SQWTUENZ.js} +1155 -800
  53. package/dist/bundle/{chunk-34DSPJNN.js → chunk-T7ONSJAA.js} +2 -2
  54. package/dist/bundle/{chunk-HIBYYKGO.js → chunk-TEMCXODM.js} +1 -1
  55. package/dist/bundle/{chunk-MTD6WZKV.js → chunk-VAAZL6OD.js} +6 -6
  56. package/dist/bundle/{chunk-PDYTNTQI.js → chunk-VPNLTNQD.js} +5 -5
  57. package/dist/bundle/{chunk-ZON7K5QE.js → chunk-W77WC6ZK.js} +2 -2
  58. package/dist/bundle/{chunk-KLHOQ6XQ.js → chunk-Y4CSR5RP.js} +3 -1
  59. package/dist/bundle/{chunk-CGUDXNJE.js → chunk-YMJKHMHX.js} +1 -1
  60. package/dist/bundle/{chunk-CLURRDNU.js → chunk-YRY752BB.js} +4 -4
  61. package/dist/bundle/{chunk-H5XC2WYO.js → chunk-ZSW7LN7T.js} +22 -22
  62. package/dist/bundle/{command-contract-KW6FNOJO.js → command-contract-3W73W27G.js} +12 -12
  63. package/dist/bundle/command-server-entry-37PKBJ5A.js +146 -0
  64. package/dist/bundle/{decode-RVWSCZW4.js → decode-F7KC7WT4.js} +2 -2
  65. package/dist/bundle/{echarts-6VNUD3JF.js → echarts-4VYG66GX.js} +2 -2
  66. package/dist/bundle/{embed-LWLCQKIK.js → embed-ENZ6R4HF.js} +3 -3
  67. package/dist/bundle/{embedder-CXKHLRJT.js → embedder-4CBICMFO.js} +6 -6
  68. package/dist/bundle/{entry-HV4NSX3Z.js → entry-XQ562EDO.js} +7 -4
  69. package/dist/bundle/{first-run-OPI6NIWQ.js → first-run-PPXOC6ID.js} +5 -5
  70. package/dist/bundle/{first-screen-BVQLF4LN.js → first-screen-JC6BYZYD.js} +13 -13
  71. package/dist/bundle/{instructions-TK4HXL3A.js → instructions-XLCMJ5PJ.js} +1 -1
  72. package/dist/bundle/{node-WFPNBUCU.js → node-SSAC67R5.js} +2 -2
  73. package/dist/bundle/{node-sqlite-L5BRGJLK.js → node-sqlite-SUUUSYSZ.js} +3 -3
  74. package/dist/bundle/{oauth-CGVWL35B.js → oauth-2ZNHMPEX.js} +4 -4
  75. package/dist/bundle/{open-HLL55C5S.js → open-EFNT7V2Q.js} +2 -2
  76. package/dist/bundle/{openai-YFCNXIJ4.js → openai-7STFVJXA.js} +13 -13
  77. package/dist/bundle/{process-4A5JP5LO.js → process-63F4PNWH.js} +1 -1
  78. package/dist/bundle/{program-IFGQGSUF.js → program-C2E3TQNK.js} +63 -60
  79. package/dist/bundle/{prompt-B5FYE2DQ.js → prompt-QPO7EKD5.js} +2 -2
  80. package/dist/bundle/{recognize-ZHMHGIV3.js → recognize-MLXEHFYL.js} +1 -1
  81. package/dist/bundle/{remote-A3W5HE52.js → remote-DO7FLJEF.js} +4 -4
  82. package/dist/bundle/{rerank-HWJAQOZM.js → rerank-W3WSBDAM.js} +4 -4
  83. package/dist/bundle/{serve-PP326Q2F.js → serve-Z3TOTEMQ.js} +11 -11
  84. package/dist/bundle/{server-MV6CL63L.js → server-BYSOJCUA.js} +32 -32
  85. package/dist/bundle/server-IRUVLXD4.js +61 -0
  86. package/dist/bundle/{state-Y3RJ7ZXB.js → state-PKRPBCMY.js} +3 -3
  87. package/dist/bundle/{store-EVNI2MHZ.js → store-Y4G7CNJT.js} +9 -9
  88. package/dist/bundle/store-maintenance-command-PHK43OSM.js +49 -0
  89. package/dist/bundle/tg.js +4 -4
  90. package/dist/version.d.ts +1 -1
  91. package/dist/version.js +1 -1
  92. package/package.json +2 -2
  93. package/dist/bundle/server-TZGGOJ26.js +0 -60
  94. package/dist/bundle/store-maintenance-command-XPQE47RE.js +0 -49
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-3FPFRDG2.js";
32
+ } from "./chunk-6SQAE7NM.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // 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/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
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
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- OAuthError,
5
- OAuthErrorCode
6
- } from "./chunk-5D4AEUVA.js";
7
3
  import {
8
4
  ACCESS_SECONDS,
9
5
  REFRESH_SECONDS,
10
6
  readStored
11
- } from "./chunk-CYWV2RLN.js";
7
+ } from "./chunk-3HNI6GI7.js";
8
+ import {
9
+ OAuthError,
10
+ OAuthErrorCode
11
+ } from "./chunk-5D4AEUVA.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // 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/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PRAGMAS
5
- } from "./chunk-KLHOQ6XQ.js";
5
+ } from "./chunk-Y4CSR5RP.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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
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/store/sqlite-warning.js
14
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
15
15
  var quieted = /* @__PURE__ */ new WeakSet();
16
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
31
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
32
32
  }, "isSqliteWarning");
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // 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/open.js
35
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
36
36
  const database = await openFile(path);
37
37
  try {
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
44
44
  }, "openCache");
45
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
46
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
47
- const { openWithBunSqlite } = await import("./bun-sqlite-TPEBWFZH.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-2BNE56MY.js");
48
48
  return await openWithBunSqlite(path);
49
49
  }, "openUnderBun");
50
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
51
51
  quietSqliteWarning();
52
- const { openWithNodeSqlite } = await import("./node-sqlite-L5BRGJLK.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-SUUUSYSZ.js");
53
53
  return openWithNodeSqlite(path);
54
54
  }, "openUnderNode");
55
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-JQLGS3SG.js";
5
+ } from "./chunk-CMEWPXKU.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/background/lock.js
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
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");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/driver.js
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
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -20,9 +20,11 @@ var beforeTimeLimit = /* @__PURE__ */ __name((until) => {
20
20
  throw new TimeLimitReached();
21
21
  return 1;
22
22
  }, "beforeTimeLimit");
23
+ var JOURNAL_SIZE_LIMIT = 64 * 1024 * 1024;
23
24
  var PRAGMAS = `
24
25
  PRAGMA busy_timeout = 5000;
25
26
  PRAGMA journal_mode = WAL;
27
+ PRAGMA journal_size_limit = ${JOURNAL_SIZE_LIMIT};
26
28
  PRAGMA foreign_keys = ON;
27
29
  `;
28
30
  var isQueryOnly = /* @__PURE__ */ __name((database) => Number(Object.values(database.prepare("PRAGMA query_only").get() ?? {})[0]) === 1, "isQueryOnly");
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
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/store/vector-extension.js
14
14
  import { readFileSync } from "node:fs";
15
15
  var musl = /* @__PURE__ */ __name(() => {
16
16
  if (process.platform !== "linux")
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-MMPISXSU.js";
5
+ } from "./chunk-54KFRAHF.js";
6
6
  import {
7
7
  resolvePaths
8
8
  } from "./chunk-U6HEZPCR.js";
@@ -14,11 +14,11 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
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
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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
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
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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
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
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,21 +7,27 @@ import {
7
7
  capability,
8
8
  ceilingRefusal,
9
9
  chatIdIn,
10
- chatReferenceOf,
11
- ensureAccount,
12
10
  floodPathFor,
13
- foldName,
14
11
  guardFor,
15
12
  holdEnd,
16
- isId,
17
- pickPerson,
18
13
  profilesOnAccount,
19
14
  recipientsPathFor,
20
15
  refuseLacking,
21
16
  servicesFor,
22
17
  throughWrapper,
23
18
  withFileLockAsync
24
- } from "./chunk-7WS3ULOO.js";
19
+ } from "./chunk-SQWTUENZ.js";
20
+ import {
21
+ servingProfiles
22
+ } from "./chunk-W77WC6ZK.js";
23
+ import {
24
+ chatReferenceOf,
25
+ ensureAccount,
26
+ foldName,
27
+ isId,
28
+ openStore,
29
+ pickPerson
30
+ } from "./chunk-5P43K3GL.js";
25
31
  import {
26
32
  CEILING_KEY,
27
33
  WRITE_KEYS,
@@ -41,19 +47,13 @@ import {
41
47
  rememberAccount,
42
48
  rootOf2 as rootOf,
43
49
  skipFlagFor
44
- } from "./chunk-THJHYMFR.js";
50
+ } from "./chunk-CPDYPZIG.js";
45
51
  import {
46
52
  providerErrorKey
47
- } from "./chunk-3FPFRDG2.js";
48
- import {
49
- servingProfiles
50
- } from "./chunk-ZON7K5QE.js";
51
- import {
52
- openStore
53
- } from "./chunk-ZRRZTPSB.js";
53
+ } from "./chunk-6SQAE7NM.js";
54
54
  import {
55
55
  isCliFailure
56
- } from "./chunk-WLBPNLDF.js";
56
+ } from "./chunk-7MXRFFIT.js";
57
57
  import {
58
58
  resolvePaths
59
59
  } from "./chunk-U6HEZPCR.js";
@@ -64,7 +64,7 @@ import {
64
64
  __name
65
65
  } from "./chunk-ZVVMGPBJ.js";
66
66
 
67
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
67
+ // 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/messenger/ask.js
68
68
  import { openSync } from "node:fs";
69
69
  import { createInterface } from "node:readline";
70
70
  import { ReadStream } from "node:tty";
@@ -119,7 +119,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
119
119
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
120
120
  }, "terminalAsker");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/sends/pace.js
122
+ // 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/sends/pace.js
123
123
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
124
124
  import { join } from "node:path";
125
125
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -209,7 +209,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
209
209
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
210
210
  }, "waitForTurn");
211
211
 
212
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
212
+ // 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/permission-keys.js
213
213
  var pathOf = /* @__PURE__ */ __name((command) => {
214
214
  const words = [];
215
215
  for (let at = command; at?.parent; at = at.parent)
@@ -269,7 +269,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
269
269
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
270
270
  }, "refuseUnknownPermissionKeys");
271
271
 
272
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
272
+ // 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/messenger/flooded.js
273
273
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
274
274
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
275
275
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -366,7 +366,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
366
366
  });
367
367
  }, "flooded");
368
368
 
369
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
369
+ // 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/messenger/observed.js
370
370
  var observed = /* @__PURE__ */ __name((messenger, events) => {
371
371
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
372
372
  const write = currentOperation();
@@ -465,7 +465,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
465
465
  counts[part] = (counts[part] ?? 0) + items.length;
466
466
  }, "byPart");
467
467
 
468
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
468
+ // 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/messenger/stored.js
469
469
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
470
470
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
471
471
  let warned = false;
@@ -1041,7 +1041,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1041
1041
  }
1042
1042
  }, "keep");
1043
1043
 
1044
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1044
+ // 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/messenger/context.js
1045
1045
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1046
1046
  let opened;
1047
1047
  return {
@@ -6,18 +6,18 @@ import {
6
6
  commandPathOf,
7
7
  findCommand,
8
8
  outputOf
9
- } from "./chunk-LLCGOZ44.js";
10
- import "./chunk-THJHYMFR.js";
11
- import "./chunk-4JATS2J5.js";
12
- import "./chunk-3FPFRDG2.js";
13
- import "./chunk-HDSKBXAF.js";
14
- import "./chunk-DDKFAUQD.js";
15
- import "./chunk-JQLGS3SG.js";
16
- import "./chunk-KP26Y5OA.js";
17
- import "./chunk-WLBPNLDF.js";
18
- import "./chunk-CLURRDNU.js";
19
- import "./chunk-DH7VKHTZ.js";
20
- import "./chunk-MMPISXSU.js";
9
+ } from "./chunk-LTAHG7BO.js";
10
+ import "./chunk-CPDYPZIG.js";
11
+ import "./chunk-KPAUPIC3.js";
12
+ import "./chunk-CMEWPXKU.js";
13
+ import "./chunk-6SQAE7NM.js";
14
+ import "./chunk-SHIHW2YN.js";
15
+ import "./chunk-3E35VJME.js";
16
+ import "./chunk-3EGVR7OF.js";
17
+ import "./chunk-7MXRFFIT.js";
18
+ import "./chunk-YRY752BB.js";
19
+ import "./chunk-AYDLA27G.js";
20
+ import "./chunk-54KFRAHF.js";
21
21
  import "./chunk-YVNHQFLC.js";
22
22
  import "./chunk-U6HEZPCR.js";
23
23
  import "./chunk-WGGSFGNZ.js";
@@ -0,0 +1,146 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ inCommandServerRequest,
5
+ refuseInCommandServer,
6
+ serveCommands
7
+ } from "./chunk-GNGYV5NX.js";
8
+ import "./chunk-PLBEUSZP.js";
9
+ import {
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";
21
+ 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";
28
+ import "./chunk-YVNHQFLC.js";
29
+ import "./chunk-U6HEZPCR.js";
30
+ import {
31
+ catchCrashes
32
+ } from "./chunk-WGGSFGNZ.js";
33
+ import "./chunk-Y5E2WNWB.js";
34
+ import {
35
+ CliError
36
+ } from "./chunk-VUBZFMGP.js";
37
+ import {
38
+ __name
39
+ } from "./chunk-ZVVMGPBJ.js";
40
+
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
42
+ import { PassThrough } from "node:stream";
43
+ var route = /* @__PURE__ */ __name((stream, sink) => {
44
+ const original = stream.write;
45
+ stream.write = ((chunk, encoding, callback) => {
46
+ sink()(typeof chunk === "string" ? Buffer.from(chunk, typeof encoding === "string" ? encoding : "utf8") : Buffer.from(chunk));
47
+ const done = typeof encoding === "function" ? encoding : callback;
48
+ if (done)
49
+ process.nextTick(done);
50
+ return true;
51
+ });
52
+ return () => {
53
+ stream.write = original;
54
+ };
55
+ }, "route");
56
+ var closedStdin = /* @__PURE__ */ __name(() => {
57
+ const stdin = new PassThrough();
58
+ stdin.end();
59
+ return stdin;
60
+ }, "closedStdin");
61
+ var useStdin = /* @__PURE__ */ __name((stdin) => Object.defineProperty(process, "stdin", { value: stdin, configurable: true, enumerable: true, writable: true }), "useStdin");
62
+ var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
63
+ const release = catchCrashes({
64
+ cli: entry.app.command,
65
+ interactive: false,
66
+ ...entry.reasons ? { reasons: entry.reasons } : {},
67
+ target: io.signals
68
+ });
69
+ const stopper = new AbortController();
70
+ const stop = /* @__PURE__ */ __name(() => stopper.abort(new CliError("cancelled", "the command server was stopped", { retryable: false })), "stop");
71
+ const protocol = io.stdout.write.bind(io.stdout);
72
+ const ownStderr = io.stderr.write.bind(io.stderr);
73
+ const toStderr = /* @__PURE__ */ __name((chunk) => {
74
+ ownStderr(chunk);
75
+ }, "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);
79
+ const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
80
+ const requests = io.stdin;
81
+ useStdin(closedStdin());
82
+ io.signals.on("SIGINT", stop).on("SIGTERM", stop);
83
+ 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 };
93
+ const context = {
94
+ args: argv,
95
+ env: io.env,
96
+ tty: false,
97
+ signal: stopper.signal,
98
+ atStart: /* @__PURE__ */ __name(async (command) => {
99
+ refuseInCommandServer(command, entry.app.command);
100
+ await firstRunAt(entry, requestIo, () => true)(command);
101
+ }, "atStart"),
102
+ ask: /* @__PURE__ */ __name(async () => false, "ask"),
103
+ openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
104
+ outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed")
105
+ };
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") };
121
+ }, "run");
122
+ try {
123
+ if (entry.sqlite)
124
+ await ensureSqlite();
125
+ await serveCommands({
126
+ input: requests,
127
+ write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
128
+ run,
129
+ cli: entry.app.command,
130
+ version: entry.app.version,
131
+ signal: stopper.signal
132
+ });
133
+ io.setExitCode(0);
134
+ } finally {
135
+ io.signals.off("SIGINT", stop).off("SIGTERM", stop);
136
+ unrouteOut();
137
+ unrouteErr();
138
+ if (stdin)
139
+ Object.defineProperty(process, "stdin", stdin);
140
+ requests.destroy?.();
141
+ release();
142
+ }
143
+ }, "serveEntry");
144
+ export {
145
+ serveEntry
146
+ };
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-6XHZV7AQ.js";
6
+ } from "./chunk-MAPJUOTD.js";
7
7
  import "./chunk-U6HEZPCR.js";
8
8
  import "./chunk-WGGSFGNZ.js";
9
9
  import {
@@ -16,7 +16,7 @@ import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/speech/decode.js
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
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";
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
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
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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/charts/echarts.js
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
42451
42451
  use([install2, install, install6, install5, install10, install7, install11]);
42452
42452
  var echartsRenderer = {
42453
42453
  render: /* @__PURE__ */ __name(async (chart, size) => {
@@ -13,9 +13,9 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-4OWY7QBE.js";
17
- import "./chunk-DH7VKHTZ.js";
18
- import "./chunk-MMPISXSU.js";
16
+ } from "./chunk-KKD5ZPGD.js";
17
+ import "./chunk-AYDLA27G.js";
18
+ import "./chunk-54KFRAHF.js";
19
19
  import "./chunk-U6HEZPCR.js";
20
20
  import "./chunk-WGGSFGNZ.js";
21
21
  import "./chunk-Y5E2WNWB.js";
@@ -4,9 +4,9 @@ import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-4OWY7QBE.js";
8
- import "./chunk-DH7VKHTZ.js";
9
- import "./chunk-MMPISXSU.js";
7
+ } from "./chunk-KKD5ZPGD.js";
8
+ import "./chunk-AYDLA27G.js";
9
+ import "./chunk-54KFRAHF.js";
10
10
  import "./chunk-U6HEZPCR.js";
11
11
  import "./chunk-WGGSFGNZ.js";
12
12
  import {
@@ -19,11 +19,11 @@ import {
19
19
  __name
20
20
  } from "./chunk-ZVVMGPBJ.js";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
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
23
23
  import { readFileSync } from "node:fs";
24
24
  import { join } from "node:path";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
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
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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
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
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");
@@ -1,18 +1,21 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
+ firstRunAt,
4
5
  openBrowser,
5
6
  startCli
6
- } from "./chunk-FPWXG53C.js";
7
- import "./chunk-DDKFAUQD.js";
8
- import "./chunk-PDYTNTQI.js";
9
- import "./chunk-KLHOQ6XQ.js";
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";
10
12
  import "./chunk-U6HEZPCR.js";
11
13
  import "./chunk-WGGSFGNZ.js";
12
14
  import "./chunk-Y5E2WNWB.js";
13
15
  import "./chunk-VUBZFMGP.js";
14
16
  import "./chunk-ZVVMGPBJ.js";
15
17
  export {
18
+ firstRunAt,
16
19
  openBrowser,
17
20
  startCli
18
21
  };
@@ -5,15 +5,15 @@ import {
5
5
  asksAtStart,
6
6
  setupAtStart,
7
7
  systemLanguage
8
- } from "./chunk-3GLLWDM6.js";
8
+ } from "./chunk-6LRKWXCS.js";
9
9
  import "./chunk-7DPWVKYS.js";
10
10
  import "./chunk-MCPOZNWG.js";
11
- import "./chunk-HDSKBXAF.js";
12
- import "./chunk-WQ55F4Y3.js";
13
- import "./chunk-CLURRDNU.js";
14
- import "./chunk-MMPISXSU.js";
11
+ import "./chunk-DAK2J3FG.js";
15
12
  import "./chunk-RX5CJ55S.js";
16
13
  import "./chunk-D72URWJE.js";
14
+ import "./chunk-SHIHW2YN.js";
15
+ import "./chunk-YRY752BB.js";
16
+ import "./chunk-54KFRAHF.js";
17
17
  import "./chunk-U6HEZPCR.js";
18
18
  import "./chunk-WGGSFGNZ.js";
19
19
  import "./chunk-Y5E2WNWB.js";