@wirecat/tg-cli 0.109.0 → 0.110.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 (104) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-6JLFYFL5.js → adapter-JWUCHTXU.js} +45 -45
  3. package/dist/bundle/{all-profiles-X7Y3T5S4.js → all-profiles-OMRCKP54.js} +8 -8
  4. package/dist/bundle/{anthropic-LGVXAADT.js → anthropic-WXFHH74P.js} +5 -5
  5. package/dist/bundle/{app-server-UI3AFSJX.js → app-server-ILIPNO6T.js} +40 -40
  6. package/dist/bundle/{bot-api-TQYRNYJQ.js → bot-api-KV765AZK.js} +46 -46
  7. package/dist/bundle/{bot-history-DDNTNMNB.js → bot-history-3P6EIM5L.js} +15 -15
  8. package/dist/bundle/{bun-WXGS6HML.js → bun-MJOYPPEN.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-M6JEXKRT.js → bun-sqlite-GFRVRRDZ.js} +4 -4
  10. package/dist/bundle/{chunk-C3RX3UOE.js → chunk-2YWQEG2P.js} +11 -11
  11. package/dist/bundle/{chunk-UIPBAT2T.js → chunk-32HEOKI2.js} +15 -14
  12. package/dist/bundle/{chunk-BZIZLEJN.js → chunk-3KOF5T4N.js} +4 -4
  13. package/dist/bundle/{chunk-WHYS6OSG.js → chunk-3L2JTAVD.js} +2 -2
  14. package/dist/bundle/{chunk-XJVGCCQE.js → chunk-3XTMVGTS.js} +1904 -624
  15. package/dist/bundle/{chunk-P5ILJ7MN.js → chunk-4BMXELWN.js} +5 -5
  16. package/dist/bundle/{chunk-ZMZKZL3Y.js → chunk-4GOF43MW.js} +1 -1
  17. package/dist/bundle/{chunk-7AJ2IESO.js → chunk-4I6HTOCM.js} +1 -1
  18. package/dist/bundle/{chunk-4R4AH6FM.js → chunk-4YOPRYEY.js} +94 -94
  19. package/dist/bundle/{chunk-AGVKIJB7.js → chunk-54CWOD7V.js} +6 -6
  20. package/dist/bundle/{chunk-76C5SSMR.js → chunk-5ASW5BNM.js} +12 -12
  21. package/dist/bundle/{chunk-P57R2P75.js → chunk-5CMOXHQS.js} +7 -7
  22. package/dist/bundle/{chunk-N56WXUCW.js → chunk-6KESAYMZ.js} +2 -2
  23. package/dist/bundle/{chunk-YYOIULA2.js → chunk-6WTLP2SI.js} +8 -8
  24. package/dist/bundle/{chunk-TMXNMO66.js → chunk-7ABA4EXC.js} +3 -3
  25. package/dist/bundle/{chunk-RD2NLJSU.js → chunk-7LZBMZQM.js} +4 -4
  26. package/dist/bundle/{chunk-VFVMB3NV.js → chunk-ABVHA4K6.js} +5 -5
  27. package/dist/bundle/{chunk-BESIMQ5U.js → chunk-AXNBGLO5.js} +1 -1
  28. package/dist/bundle/{chunk-INYO2QFW.js → chunk-AZYVTDAE.js} +3 -3
  29. package/dist/bundle/{chunk-N5FSRC6H.js → chunk-BWRCPMMC.js} +41 -31
  30. package/dist/bundle/{chunk-2ILQYCBY.js → chunk-BYOEVYY2.js} +553 -291
  31. package/dist/bundle/{chunk-NAVNCM5K.js → chunk-EB44Z44U.js} +1 -1
  32. package/dist/bundle/{chunk-XMMWKHNY.js → chunk-EO563SUX.js} +7 -7
  33. package/dist/bundle/{chunk-OHLMHBDI.js → chunk-F24EAGOU.js} +32 -31
  34. package/dist/bundle/{chunk-WNTXIQMB.js → chunk-F7RWNBC2.js} +2 -2
  35. package/dist/bundle/{chunk-IGIPIO4J.js → chunk-FYAHTTOB.js} +11 -11
  36. package/dist/bundle/{chunk-SH63Q4QR.js → chunk-GPIORQAD.js} +22 -22
  37. package/dist/bundle/{chunk-BHPCZCX7.js → chunk-HCAYTAJN.js} +2 -2
  38. package/dist/bundle/{chunk-P55L4S6N.js → chunk-JDOSIWPN.js} +3 -3
  39. package/dist/bundle/{chunk-MF6NKU3Z.js → chunk-KLOFBUXA.js} +22 -22
  40. package/dist/bundle/{chunk-IV2QWSPG.js → chunk-L3YDXUDK.js} +12 -3
  41. package/dist/bundle/{chunk-QQF7RDLR.js → chunk-M3XIME74.js} +4 -4
  42. package/dist/bundle/{chunk-CHI6D4D6.js → chunk-MXIBRT6W.js} +4 -4
  43. package/dist/bundle/{chunk-ZHP44EML.js → chunk-MZRD776E.js} +3 -3
  44. package/dist/bundle/{chunk-KHKC236O.js → chunk-NDT22GBK.js} +2 -2
  45. package/dist/bundle/{chunk-IULYECPC.js → chunk-NFBOZT7H.js} +4 -4
  46. package/dist/bundle/{chunk-GUFM5RLW.js → chunk-ONHHBPV3.js} +2 -2
  47. package/dist/bundle/{chunk-CVLDXFRP.js → chunk-Q35J5LCO.js} +8 -8
  48. package/dist/bundle/{chunk-DZVYGBZB.js → chunk-QRH2AWBZ.js} +55 -54
  49. package/dist/bundle/{chunk-25VC6U3A.js → chunk-RARYRHQA.js} +1 -1
  50. package/dist/bundle/{chunk-AD3QPYI3.js → chunk-RSZEEWOW.js} +2 -2
  51. package/dist/bundle/{chunk-M62LF3QE.js → chunk-RXWG7OWT.js} +348 -300
  52. package/dist/bundle/{chunk-ZUOS7QUB.js → chunk-SD5J5T7M.js} +11 -11
  53. package/dist/bundle/{chunk-S7B6MTXX.js → chunk-SLAPUEMZ.js} +6 -6
  54. package/dist/bundle/{chunk-CH2ESVV5.js → chunk-TDQVVXPF.js} +42 -24
  55. package/dist/bundle/{chunk-YXCQ4DLZ.js → chunk-TJA3BWY3.js} +1 -1
  56. package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
  57. package/dist/bundle/{chunk-UUQ3BH2Z.js → chunk-VM7I5VKX.js} +2 -2
  58. package/dist/bundle/{chunk-5SUFMBU5.js → chunk-VOBMR7E5.js} +45 -45
  59. package/dist/bundle/{chunk-VYR2IIWW.js → chunk-W3B6EEZU.js} +1 -1
  60. package/dist/bundle/{chunk-7T7ILNCU.js → chunk-XLNYDJKG.js} +2 -2
  61. package/dist/bundle/{chunk-ZFMS5G4H.js → chunk-YPEAEEHF.js} +2 -2
  62. package/dist/bundle/{chunk-DO33KAMM.js → chunk-YPLL3Q3M.js} +57 -57
  63. package/dist/bundle/{chunk-3PEZWXKO.js → chunk-YWSNUUW5.js} +6 -6
  64. package/dist/bundle/command-contract-TNSW7W6G.js +32 -0
  65. package/dist/bundle/{decode-RKPOGPBE.js → decode-3KBXZCFM.js} +4 -4
  66. package/dist/bundle/{echarts-H5QQRBHI.js → echarts-24TVPFGC.js} +2 -2
  67. package/dist/bundle/{embed-7TVAPNP7.js → embed-3BDPZ4Q7.js} +5 -5
  68. package/dist/bundle/{embedder-YOOHWWN6.js → embedder-EMVDEZFR.js} +8 -8
  69. package/dist/bundle/{entry-SAKW5HEZ.js → entry-NQD6Z2BM.js} +5 -5
  70. package/dist/bundle/{first-run-C744N572.js → first-run-ZBIO6C67.js} +9 -9
  71. package/dist/bundle/first-screen-4HRCG7OX.js +30 -0
  72. package/dist/bundle/{identity-NRWTZIQ4.js → identity-EDGOOTOM.js} +3 -3
  73. package/dist/bundle/{instructions-6LWRAW47.js → instructions-N2WVMNFZ.js} +1 -1
  74. package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
  75. package/dist/bundle/{node-XN4PIVWW.js → node-VBZAZHUS.js} +2 -2
  76. package/dist/bundle/{node-sqlite-PCBGROGQ.js → node-sqlite-C3V64OAL.js} +4 -4
  77. package/dist/bundle/{oauth-PX6NGHUV.js → oauth-NZXELYDA.js} +6 -6
  78. package/dist/bundle/{open-BKJGJ6GX.js → open-2XRUGMV7.js} +3 -3
  79. package/dist/bundle/{openai-MJP7CZXP.js → openai-OLGTN3ZB.js} +13 -13
  80. package/dist/bundle/{process-4PRR3MLT.js → process-CASPZ2DH.js} +1 -1
  81. package/dist/bundle/{program-7YZUO42B.js → program-QPQDSGYA.js} +50 -48
  82. package/dist/bundle/{prompt-CILSZC2R.js → prompt-ESZL7SGX.js} +4 -4
  83. package/dist/bundle/{proxy-transport-FWGKTYBL.js → proxy-transport-OROEVBCG.js} +4 -4
  84. package/dist/bundle/{recognize-AVFDJAIL.js → recognize-LQ7QOG4T.js} +3 -3
  85. package/dist/bundle/{remote-2VYXGOM4.js → remote-34XP4EDN.js} +6 -6
  86. package/dist/bundle/{rerank-6FU2JPCD.js → rerank-7F6NLBCW.js} +6 -6
  87. package/dist/bundle/{serve-3YQOHBR6.js → serve-M6TTKXI4.js} +8 -8
  88. package/dist/bundle/{server-TPK3LNEX.js → server-GLZ5M7PE.js} +32 -32
  89. package/dist/bundle/server-KOW7OKE2.js +56 -0
  90. package/dist/bundle/{state-LLUNBLZE.js → state-UKKPLMHS.js} +5 -5
  91. package/dist/bundle/{store-27FQ743G.js → store-J2MBIDJK.js} +10 -10
  92. package/dist/bundle/store-maintenance-command-64B57C3U.js +45 -0
  93. package/dist/bundle/tg.js +4 -4
  94. package/dist/program.d.ts.map +1 -1
  95. package/dist/program.js +2 -1
  96. package/dist/program.js.map +1 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +3 -3
  100. package/dist/bundle/command-contract-E2MWR3T3.js +0 -32
  101. package/dist/bundle/first-screen-7GKUEIWS.js +0 -30
  102. package/dist/bundle/server-S2K4YDDG.js +0 -56
  103. package/dist/bundle/store-maintenance-command-AFJMKEBK.js +0 -45
  104. /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-UUQ3BH2Z.js";
5
+ } from "./chunk-VM7I5VKX.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine
9
- } from "./chunk-N5FSRC6H.js";
9
+ } from "./chunk-BWRCPMMC.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-XMMWKHNY.js";
12
+ } from "./chunk-EO563SUX.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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 });
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-XMMWKHNY.js";
5
+ } from "./chunk-EO563SUX.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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 });
@@ -7,7 +7,7 @@ import {
7
7
  commandPathOf,
8
8
  findCommand,
9
9
  outputOf
10
- } from "./chunk-P5ILJ7MN.js";
10
+ } from "./chunk-4BMXELWN.js";
11
11
  import {
12
12
  Command,
13
13
  Help,
@@ -18,16 +18,16 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-DZVYGBZB.js";
21
+ } from "./chunk-QRH2AWBZ.js";
22
22
  import {
23
23
  CliError,
24
24
  writes
25
- } from "./chunk-XMMWKHNY.js";
25
+ } from "./chunk-EO563SUX.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
31
31
  var SECTIONS = {
32
32
  read: "Read",
33
33
  write: "Write",
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
92
92
  upgrade: "setup"
93
93
  };
94
94
 
95
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
96
96
  var DESCRIPTION = 90;
97
97
  var COLUMN = 52;
98
98
  var short = /* @__PURE__ */ __name((text) => {
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
131
131
  `;
132
132
  }, "commandsText");
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
135
135
  var ARGUMENT_KINDS = {
136
136
  chat: "chat",
137
137
  chats: "chat",
@@ -323,7 +323,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
323
323
  command.addHelpText("after", () => commandHelpText(command));
324
324
  }, "installCommandHelp");
325
325
 
326
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
326
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
327
327
  var WIRECAT_TOOLS = [
328
328
  {
329
329
  command: "tg",
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-CHI6D4D6.js";
11
+ } from "./chunk-MXIBRT6W.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-XMMWKHNY.js";
5
+ } from "./chunk-EO563SUX.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/search/languages.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/languages.js
11
11
  var LANGUAGES = [
12
12
  { name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
13
13
  { name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
@@ -15,12 +15,12 @@ var LANGUAGES = [
15
15
  ];
16
16
  var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
17
17
 
18
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/store/normalize.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/store/normalize.js
19
19
  var NORMALIZER_VERSION = 1;
20
20
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
21
21
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
24
24
  var BaseStemmer = class {
25
25
  static {
26
26
  __name(this, "BaseStemmer");
@@ -395,7 +395,7 @@ var BaseStemmer = class {
395
395
  }
396
396
  };
397
397
 
398
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
398
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
399
399
  var a_0 = [
400
400
  ["arsen", -1],
401
401
  ["commun", -1],
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
1096
1096
  stemWord = this.stem;
1097
1097
  };
1098
1098
 
1099
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1099
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
1100
1100
  var a_02 = [
1101
1101
  ["\u0432", 1],
1102
1102
  ["\u0438\u0432", 2, 1],
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
1519
1519
  stemWord = this.stem;
1520
1520
  };
1521
1521
 
1522
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1522
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
1523
1523
  var a_03 = [
1524
1524
  ["", 6],
1525
1525
  ["\xE1", 1, 1],
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
2195
2195
  stemWord = this.stem;
2196
2196
  };
2197
2197
 
2198
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/search/stem.js
2198
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/stem.js
2199
2199
  var SNOWBALL_VERSION = "3.1.1";
2200
2200
  var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
2201
2201
  var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
@@ -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-25VC6U3A.js";
5
+ } from "./chunk-RARYRHQA.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-N5FSRC6H.js";
9
+ } from "./chunk-BWRCPMMC.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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");
@@ -18,9 +18,9 @@ import {
18
18
  strictObject,
19
19
  string,
20
20
  unknown
21
- } from "./chunk-XMMWKHNY.js";
21
+ } from "./chunk-EO563SUX.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/entities/fields.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/fields.js
24
24
  var text = string();
25
25
  var id = pipe(string(), minLength(1));
26
26
  var time = isoTime;
@@ -44,7 +44,7 @@ var author = strictObject({
44
44
  name: nullable(text)
45
45
  });
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/entities/note.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/note.js
48
48
  var link = {
49
49
  target_text: nullable(text),
50
50
  kind: text,
@@ -85,7 +85,7 @@ var note = strictObject({
85
85
  backlinks: optional(array(strictObject({ from: reference, ...link })))
86
86
  });
87
87
 
88
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
88
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
89
89
  var organization = strictObject({
90
90
  id,
91
91
  ref: reference,
@@ -4,23 +4,23 @@ import {
4
4
  executableEnvironment,
5
5
  executableOnPath,
6
6
  require_cross_spawn
7
- } from "./chunk-DLAFGSTN.js";
7
+ } from "./chunk-UIPT6IAU.js";
8
8
  import {
9
9
  loadConfigFile,
10
10
  saveConfigFile
11
- } from "./chunk-N5FSRC6H.js";
11
+ } from "./chunk-BWRCPMMC.js";
12
12
  import {
13
13
  number,
14
14
  object,
15
15
  optional,
16
16
  string
17
- } from "./chunk-XMMWKHNY.js";
17
+ } from "./chunk-EO563SUX.js";
18
18
  import {
19
19
  __name,
20
20
  __toESM
21
21
  } from "./chunk-ZVVMGPBJ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
23
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
24
24
  var installerOf = /* @__PURE__ */ __name((scriptPath) => {
25
25
  const path = scriptPath.replaceAll("\\", "/");
26
26
  if (path.includes("/_npx/"))
@@ -34,7 +34,7 @@ var installerOf = /* @__PURE__ */ __name((scriptPath) => {
34
34
  return path.includes("/dist/") ? "checkout" : "unknown";
35
35
  }, "installerOf");
36
36
 
37
- // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
37
+ // node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
38
38
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
39
39
  import { existsSync } from "node:fs";
40
40
  var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-3PEZWXKO.js";
5
+ } from "./chunk-YWSNUUW5.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-XMMWKHNY.js";
8
+ } from "./chunk-EO563SUX.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.67.0_commander@15._175d7b0a70ee7b08949f50032917d93e/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {