@wirecat/tg-cli 0.129.0 → 0.131.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 (112) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-2XFPXBTA.js → adapter-TA637IRT.js} +51 -51
  3. package/dist/bundle/{all-profiles-GXFPZLYU.js → all-profiles-7M3GBCB6.js} +5 -5
  4. package/dist/bundle/{anthropic-FHS5XNK5.js → anthropic-P3THLZWO.js} +2 -2
  5. package/dist/bundle/{app-server-IZMFSFP2.js → app-server-OE5EAXIY.js} +45 -45
  6. package/dist/bundle/{bot-api-LQP75V5I.js → bot-api-WYR2C4A5.js} +52 -52
  7. package/dist/bundle/{bot-history-EJQOD4AQ.js → bot-history-PKJTHU7L.js} +16 -16
  8. package/dist/bundle/{bun-GBAZFRCV.js → bun-XMZJDDEA.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-JB4BX6X7.js → bun-sqlite-F5RWCB2N.js} +3 -3
  10. package/dist/bundle/{chunk-XXW6PFAX.js → chunk-2OXR2MRV.js} +1 -1
  11. package/dist/bundle/{chunk-HHUK3XO5.js → chunk-2TOJQQKS.js} +1 -1
  12. package/dist/bundle/{chunk-TGRB4SSZ.js → chunk-2U6XE4HI.js} +4 -4
  13. package/dist/bundle/{chunk-6M3FAHPS.js → chunk-34PRGA7E.js} +2 -2
  14. package/dist/bundle/{chunk-4BJAQNJ5.js → chunk-43KSYUZU.js} +5 -5
  15. package/dist/bundle/{chunk-66UG67CE.js → chunk-5AJ5RLJW.js} +10 -10
  16. package/dist/bundle/{chunk-7F3LOHRB.js → chunk-5N7TJ6TJ.js} +154 -151
  17. package/dist/bundle/{chunk-QJDHRBXL.js → chunk-5ZIT6JXP.js} +6 -6
  18. package/dist/bundle/{chunk-RZPMFVWM.js → chunk-6BPM3LNR.js} +5 -5
  19. package/dist/bundle/{chunk-EUL7HMUL.js → chunk-6O5AD3GA.js} +1 -1
  20. package/dist/bundle/{chunk-PWQKGFS2.js → chunk-6TJTQ4I4.js} +28 -28
  21. package/dist/bundle/{chunk-KY3JLXW2.js → chunk-76UAXRDY.js} +2 -2
  22. package/dist/bundle/{chunk-OJMDKWWL.js → chunk-AEIDEIVB.js} +355 -321
  23. package/dist/bundle/{chunk-M327UNS6.js → chunk-AJQ6JFLY.js} +5 -5
  24. package/dist/bundle/{chunk-VTJ3AOTT.js → chunk-BFERGEBI.js} +16 -16
  25. package/dist/bundle/{chunk-OOQVHMCS.js → chunk-BXW6FGLD.js} +11 -11
  26. package/dist/bundle/{chunk-MVFSWKTM.js → chunk-EXMJDHBM.js} +10 -10
  27. package/dist/bundle/{chunk-S5UTBEV3.js → chunk-EZBMLKBK.js} +35 -34
  28. package/dist/bundle/{chunk-NRCY3WBC.js → chunk-GNIROVSK.js} +1 -1
  29. package/dist/bundle/{chunk-C4ALE7CH.js → chunk-H655CMXJ.js} +1 -1
  30. package/dist/bundle/{chunk-OKTRB4ZQ.js → chunk-ITYDJIRC.js} +1 -1
  31. package/dist/bundle/{chunk-QDEP2QOA.js → chunk-IULSIKEM.js} +2 -2
  32. package/dist/bundle/{chunk-FH4YIBBH.js → chunk-J2QQZVEN.js} +2 -2
  33. package/dist/bundle/{chunk-OWVQMK7G.js → chunk-JDLNI7BU.js} +518 -382
  34. package/dist/bundle/{chunk-B5RGPZDZ.js → chunk-JF4AJNCE.js} +5 -5
  35. package/dist/bundle/{chunk-2LPODKIF.js → chunk-JSE4OBYI.js} +16 -114
  36. package/dist/bundle/{chunk-SZB5WRMI.js → chunk-L2SMUTJY.js} +1 -1
  37. package/dist/bundle/{chunk-RAFK5KXU.js → chunk-LDSTUBLY.js} +7 -7
  38. package/dist/bundle/{chunk-XHX5D5VE.js → chunk-LEPDRO3O.js} +147 -62
  39. package/dist/bundle/{chunk-IV6SIKVH.js → chunk-LJO6MMQG.js} +3 -3
  40. package/dist/bundle/{chunk-LQPZDDDP.js → chunk-LTP4BYHJ.js} +5 -5
  41. package/dist/bundle/{chunk-QBNEWEJC.js → chunk-LWSOCKOD.js} +2 -2
  42. package/dist/bundle/{chunk-F6CV4KUN.js → chunk-MYC3M4BY.js} +2 -2
  43. package/dist/bundle/{chunk-I5PILOTU.js → chunk-NOZZHEMD.js} +1 -1
  44. package/dist/bundle/{chunk-ZRQQOGAZ.js → chunk-NTORQXAS.js} +3 -3
  45. package/dist/bundle/{chunk-LPT5T6PU.js → chunk-NXNSEFGR.js} +22 -22
  46. package/dist/bundle/{chunk-3XMUP55N.js → chunk-O73DZURO.js} +9 -9
  47. package/dist/bundle/{chunk-2JZJPVBH.js → chunk-O7X6RM5R.js} +4 -4
  48. package/dist/bundle/{chunk-FIO5NMK3.js → chunk-OOSX7K7G.js} +6 -6
  49. package/dist/bundle/{chunk-IRWSZJYL.js → chunk-OPG54IFH.js} +51 -51
  50. package/dist/bundle/{chunk-O2ULG7OO.js → chunk-OX5EAUKF.js} +2 -2
  51. package/dist/bundle/{chunk-RPWYTOLI.js → chunk-P6KGEZIS.js} +1 -1
  52. package/dist/bundle/{chunk-QFVIHBLD.js → chunk-PD4RREQB.js} +1 -1
  53. package/dist/bundle/{chunk-IBSHQWIJ.js → chunk-PHGH5N4C.js} +1 -1
  54. package/dist/bundle/{chunk-EB2JE722.js → chunk-QGFUUJPL.js} +1 -1
  55. package/dist/bundle/{chunk-GYCKRIRK.js → chunk-S2IET7WM.js} +2 -2
  56. package/dist/bundle/{chunk-BMSS3PCY.js → chunk-SLT2PBFP.js} +13 -13
  57. package/dist/bundle/{chunk-CKJ73EF3.js → chunk-SQ2JLZFK.js} +1 -1
  58. package/dist/bundle/{chunk-GSHTLLCJ.js → chunk-SS5H2XAT.js} +2 -2
  59. package/dist/bundle/{chunk-VSPSHBAC.js → chunk-TT6OHNV2.js} +1 -1
  60. package/dist/bundle/{chunk-P4FZJO5F.js → chunk-UGYC2FV5.js} +1 -1
  61. package/dist/bundle/{chunk-6JBRQ6PM.js → chunk-UUNQV4YL.js} +48 -13
  62. package/dist/bundle/{chunk-X5H5NERR.js → chunk-VNJZXV7E.js} +4 -4
  63. package/dist/bundle/{chunk-MS6YEIG5.js → chunk-VVUUP5NF.js} +12 -12
  64. package/dist/bundle/{chunk-QJLCEOAP.js → chunk-WG6UZJ3E.js} +1 -1
  65. package/dist/bundle/{chunk-GGGBPWUS.js → chunk-WUIKJJ5A.js} +7 -7
  66. package/dist/bundle/{chunk-3KZG63EH.js → chunk-XC2YJDDK.js} +2 -2
  67. package/dist/bundle/{chunk-SYZXOEHY.js → chunk-YJ4BPNWI.js} +3 -3
  68. package/dist/bundle/{chunk-G2SMVYBU.js → chunk-YZTMQE62.js} +1 -1
  69. package/dist/bundle/{chunk-VXWDQDRU.js → chunk-Z2TCTTPJ.js} +497 -410
  70. package/dist/bundle/command-contract-DAQYQF6R.js +37 -0
  71. package/dist/bundle/{command-server-entry-YR6ONDWO.js → command-server-entry-6FH3RXJ2.js} +23 -23
  72. package/dist/bundle/{decode-VUKGWFSW.js → decode-UBRT2QDP.js} +2 -2
  73. package/dist/bundle/{echarts-GOV5M733.js → echarts-PG45GQLR.js} +2 -2
  74. package/dist/bundle/{embed-2IVIYNAJ.js → embed-BUQDSZ57.js} +3 -3
  75. package/dist/bundle/{embedder-2HU7JYZK.js → embedder-TXA3EV7O.js} +6 -6
  76. package/dist/bundle/{entry-CSTCXYI5.js → entry-JWIEF57D.js} +6 -6
  77. package/dist/bundle/{first-run-3IZGXZT5.js → first-run-5VTHKMK5.js} +6 -6
  78. package/dist/bundle/first-screen-PTHIZ5ZF.js +35 -0
  79. package/dist/bundle/{instructions-YSXV6FAC.js → instructions-ZMEPWTFO.js} +1 -1
  80. package/dist/bundle/{meeting-combined-X4E3LSIJ.js → meeting-combined-DU3RJR6X.js} +10 -10
  81. package/dist/bundle/{meeting-model-FQBDHGRU.js → meeting-model-5FVNZCTL.js} +8 -8
  82. package/dist/bundle/{meeting-semantic-ONNEOJX5.js → meeting-semantic-HUMYFMO7.js} +2 -2
  83. package/dist/bundle/{node-FMQWCZRS.js → node-N4DQQJKK.js} +2 -2
  84. package/dist/bundle/{node-sqlite-YN5OKOC6.js → node-sqlite-MG4KFXYY.js} +4 -4
  85. package/dist/bundle/{oauth-EW7PTZVT.js → oauth-NKDSXEH6.js} +4 -4
  86. package/dist/bundle/{open-Q2RDY344.js → open-DV2YUU2M.js} +2 -2
  87. package/dist/bundle/{openai-STON6G3O.js → openai-FEKMZOUJ.js} +12 -12
  88. package/dist/bundle/{process-OQUC2TW3.js → process-QZS3TE6A.js} +1 -1
  89. package/dist/bundle/{program-7JJHTZ25.js → program-FNDGXEVS.js} +56 -56
  90. package/dist/bundle/{prompt-WHVF7UTW.js → prompt-C7RSBNH5.js} +2 -2
  91. package/dist/bundle/{recognize-YDQWMXNI.js → recognize-5BL763FS.js} +1 -1
  92. package/dist/bundle/{remote-477LQHP6.js → remote-CXAKRC7X.js} +6 -6
  93. package/dist/bundle/{rerank-4YPB26FG.js → rerank-XAEXY5A4.js} +4 -4
  94. package/dist/bundle/{serve-FXJNUOTS.js → serve-JLZGFTZH.js} +6 -6
  95. package/dist/bundle/{server-2S6HFBGR.js → server-GF3TV2U7.js} +37 -37
  96. package/dist/bundle/server-GLPEWUYT.js +69 -0
  97. package/dist/bundle/{sqlite-runtime-RXYNJYMC.js → sqlite-runtime-3OVQ7OTM.js} +3 -3
  98. package/dist/bundle/{state-I2GGYGRL.js → state-FGJKQKC2.js} +3 -3
  99. package/dist/bundle/{store-VQXIB6KV.js → store-2J5VJZQY.js} +13 -13
  100. package/dist/bundle/{store-KX3AAQZH.js → store-WYLMNAAQ.js} +15 -15
  101. package/dist/bundle/store-maintenance-command-QN6QH6RA.js +60 -0
  102. package/dist/bundle/tg.js +3 -3
  103. package/dist/program.js +1 -1
  104. package/dist/program.js.map +1 -1
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +2 -2
  108. package/skills/tg-cli/SKILL.md +15 -6
  109. package/dist/bundle/command-contract-G752BLKA.js +0 -37
  110. package/dist/bundle/first-screen-7QSNCZIK.js +0 -35
  111. package/dist/bundle/server-UOSUTZNE.js +0 -69
  112. package/dist/bundle/store-maintenance-command-LW2MMDLY.js +0 -60
@@ -4,7 +4,7 @@ import {
4
4
  isCliFailure,
5
5
  secretNamed,
6
6
  withoutSecrets
7
- } from "./chunk-QBNEWEJC.js";
7
+ } from "./chunk-LWSOCKOD.js";
8
8
  import {
9
9
  isContentKey
10
10
  } from "./chunk-HT6OFANN.js";
@@ -12,14 +12,14 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/run-context.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/runs/run-context.js
16
16
  import { AsyncLocalStorage } from "node:async_hooks";
17
17
  import { createHash } from "node:crypto";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
20
20
  import { homedir } from "node:os";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/events.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/runs/events.js
23
23
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
24
24
  var renderEvent = /* @__PURE__ */ __name((event) => {
25
25
  if (event.event === "store")
@@ -71,7 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
71
71
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
72
72
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
73
73
 
74
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
75
75
  var MESSAGE_AT_MOST = 500;
76
76
  var CAUSES_AT_MOST = 5;
77
77
  var FRAMES_AT_MOST = 15;
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
183
183
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
184
184
  }, "redactText");
185
185
 
186
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/run-context.js
186
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/runs/run-context.js
187
187
  var REDACTED = "[redacted]";
188
188
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
189
189
  if (!record)
@@ -5,7 +5,7 @@ import {
5
5
  installFiles,
6
6
  megabytes,
7
7
  sharedModelsDirectory
8
- } from "./chunk-IV6SIKVH.js";
8
+ } from "./chunk-LJO6MMQG.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.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/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.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/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.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
681
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/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.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
861
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/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");
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/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")
@@ -12,7 +12,7 @@ import {
12
12
  refuseWriteBeforeConnecting,
13
13
  registerPrompts,
14
14
  syncsFirst
15
- } from "./chunk-LPT5T6PU.js";
15
+ } from "./chunk-NXNSEFGR.js";
16
16
  import {
17
17
  BinaryResource,
18
18
  Picture,
@@ -33,25 +33,25 @@ import {
33
33
  tool,
34
34
  toolKey,
35
35
  toolsFromCommands
36
- } from "./chunk-BMSS3PCY.js";
36
+ } from "./chunk-SLT2PBFP.js";
37
37
  import {
38
38
  agentJson,
39
39
  skillResource
40
- } from "./chunk-6JBRQ6PM.js";
40
+ } from "./chunk-UUNQV4YL.js";
41
41
  import {
42
42
  StdioServerTransport,
43
43
  answeredWire,
44
44
  callerOf,
45
45
  callingAgent,
46
46
  serveStdio
47
- } from "./chunk-SYZXOEHY.js";
47
+ } from "./chunk-YJ4BPNWI.js";
48
48
  import {
49
49
  McpServer,
50
50
  ResourceTemplate
51
51
  } from "./chunk-5D4AEUVA.js";
52
52
  import {
53
53
  connectedFor
54
- } from "./chunk-2LPODKIF.js";
54
+ } from "./chunk-JSE4OBYI.js";
55
55
  import {
56
56
  capability,
57
57
  dateWindow,
@@ -61,26 +61,26 @@ import {
61
61
  servicesFor,
62
62
  storedDeps,
63
63
  wholeList
64
- } from "./chunk-OWVQMK7G.js";
64
+ } from "./chunk-JDLNI7BU.js";
65
65
  import {
66
66
  mcpHttpMarker
67
- } from "./chunk-TGRB4SSZ.js";
67
+ } from "./chunk-2U6XE4HI.js";
68
68
  import {
69
69
  instructions
70
- } from "./chunk-QJLCEOAP.js";
70
+ } from "./chunk-WG6UZJ3E.js";
71
71
  import {
72
72
  warmEmbedders
73
- } from "./chunk-RZPMFVWM.js";
73
+ } from "./chunk-6BPM3LNR.js";
74
74
  import {
75
75
  stdinFieldOf
76
- } from "./chunk-I5PILOTU.js";
76
+ } from "./chunk-NOZZHEMD.js";
77
77
  import {
78
78
  openStore,
79
79
  pdfPreviewLimits
80
- } from "./chunk-VXWDQDRU.js";
80
+ } from "./chunk-Z2TCTTPJ.js";
81
81
  import {
82
82
  findCommand
83
- } from "./chunk-KY3JLXW2.js";
83
+ } from "./chunk-76UAXRDY.js";
84
84
  import {
85
85
  DEFAULT_OUTPUT_BYTES,
86
86
  changesAuthorityAt,
@@ -97,22 +97,22 @@ import {
97
97
  rootOf2 as rootOf,
98
98
  sealed,
99
99
  snakeKeys
100
- } from "./chunk-7F3LOHRB.js";
100
+ } from "./chunk-5N7TJ6TJ.js";
101
101
  import {
102
102
  withCaller
103
- } from "./chunk-QJDHRBXL.js";
103
+ } from "./chunk-5ZIT6JXP.js";
104
104
  import {
105
105
  readOnlyLockOf
106
- } from "./chunk-NRCY3WBC.js";
106
+ } from "./chunk-GNIROVSK.js";
107
107
  import {
108
108
  typedCommand
109
- } from "./chunk-S5UTBEV3.js";
109
+ } from "./chunk-EZBMLKBK.js";
110
110
  import {
111
111
  isCliFailure
112
- } from "./chunk-QBNEWEJC.js";
112
+ } from "./chunk-LWSOCKOD.js";
113
113
  import {
114
114
  timezoneOf
115
- } from "./chunk-XHX5D5VE.js";
115
+ } from "./chunk-LEPDRO3O.js";
116
116
  import {
117
117
  description,
118
118
  errorObjectOf,
@@ -138,10 +138,10 @@ import {
138
138
  __name
139
139
  } from "./chunk-ZVVMGPBJ.js";
140
140
 
141
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/server.js
141
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/server.js
142
142
  import { randomUUID } from "node:crypto";
143
143
 
144
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
144
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
145
145
  var agentLog = /* @__PURE__ */ __name((open) => {
146
146
  let held;
147
147
  return {
@@ -160,7 +160,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
160
160
  };
161
161
  }, "agentLog");
162
162
 
163
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/resources.js
163
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/resources.js
164
164
  var LISTED = 100;
165
165
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
166
166
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -198,7 +198,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
198
198
  });
199
199
  }, "registerResources");
200
200
 
201
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/session.js
201
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/session.js
202
202
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
203
203
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
204
204
  var MessengerSession = class {
@@ -273,7 +273,7 @@ var MessengerSession = class {
273
273
  }
274
274
  };
275
275
 
276
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
276
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
277
277
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
278
278
  const _command = messenger.app.command;
279
279
  return {
@@ -327,7 +327,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
327
327
  };
328
328
  }, "attachmentsTools");
329
329
 
330
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
330
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
331
331
  var PHOTO_LIMIT = 512 * 1024;
332
332
  var IMAGE_TYPES = [
333
333
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -383,7 +383,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
383
383
  return new Uint8Array(Buffer.concat(chunks));
384
384
  }, "readUpTo");
385
385
 
386
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
386
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
387
387
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
388
388
  stats_charts: tool({
389
389
  title: "A chart from a chat's statistics",
@@ -420,14 +420,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
420
420
  })
421
421
  }), "statsTools");
422
422
 
423
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/tools.js
423
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/tools.js
424
424
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
425
425
  ...messagesPhotoTools(messenger),
426
426
  ...attachmentsTools(messenger),
427
427
  ...statsTools(messenger)
428
428
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
429
429
 
430
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/server.js
430
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/mcp/server.js
431
431
  var PER_RUN = /* @__PURE__ */ new Set([
432
432
  "streams",
433
433
  "stdin",
@@ -744,7 +744,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
744
744
  }, "serveOverStdio");
745
745
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
746
746
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
747
- const { serveOverHttp } = await import("./serve-FXJNUOTS.js");
747
+ const { serveOverHttp } = await import("./serve-JLZGFTZH.js");
748
748
  const appName = messenger.app.command;
749
749
  const appEnvPrefix = messenger.app.envPrefix;
750
750
  const listening = await serveOverHttp(build, {
@@ -7,7 +7,7 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-7F3LOHRB.js";
10
+ } from "./chunk-5N7TJ6TJ.js";
11
11
  import {
12
12
  jsonSchemaOf
13
13
  } from "./chunk-AUNNJDVD.js";
@@ -18,7 +18,7 @@ import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);