@wirecat/cli-template 0.13.1 → 0.14.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/.github/workflows/changelog-guard.yml +1 -1
  2. package/.github/workflows/ci.yml +1 -1
  3. package/.github/workflows/monthly.yml +1 -1
  4. package/.github/workflows/release.yml +44 -10
  5. package/CHANGELOG.md +36 -0
  6. package/config/parity-groups.json +32 -1
  7. package/contracts/mcp-tools.json +100 -0
  8. package/dist/bin/clidev.js +6 -2
  9. package/dist/bundle/{all-profiles-MJ6XSFOO.js → all-profiles-NVB2HT2S.js} +6 -6
  10. package/dist/bundle/{anthropic-W5UKBZUB.js → anthropic-ICTW7CNQ.js} +4 -4
  11. package/dist/bundle/{app-server-EZ46JAHB.js → app-server-B6BCKXR7.js} +40 -38
  12. package/dist/bundle/{bun-HB6O2TTT.js → bun-ILPS6AYA.js} +2 -2
  13. package/dist/bundle/{bun-sqlite-KBXOW2ES.js → bun-sqlite-JE6FJFQT.js} +3 -3
  14. package/dist/bundle/{chunk-KJTNT4SW.js → chunk-2DAXUNTS.js} +2 -2
  15. package/dist/bundle/chunk-3MDNAYQA.js +34 -0
  16. package/dist/bundle/chunk-3WDYHOAF.js +91 -0
  17. package/dist/bundle/{chunk-EGRB55FF.js → chunk-45244QQ6.js} +14 -12
  18. package/dist/bundle/{chunk-JHO2LL2J.js → chunk-4PA6DJ7F.js} +7 -7
  19. package/dist/bundle/{chunk-FZZIU4B7.js → chunk-5SAF3XOL.js} +8196 -5601
  20. package/dist/bundle/chunk-62JRF2JA.js +35 -0
  21. package/dist/bundle/{chunk-TGB5F7NC.js → chunk-66VMJGV6.js} +4 -4
  22. package/dist/bundle/{chunk-V3ZTQ24B.js → chunk-6AW4DDK4.js} +4 -4
  23. package/dist/bundle/{chunk-PJOVK7PG.js → chunk-7F5VMLVK.js} +49 -24
  24. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-7Z4HR6GO.js} +1 -1
  25. package/dist/bundle/{chunk-E42W72PQ.js → chunk-AS2PJNQ2.js} +7 -5
  26. package/dist/bundle/{chunk-SVDF6NJF.js → chunk-ASHVHS52.js} +14 -14
  27. package/dist/bundle/{chunk-N2Z3MCOF.js → chunk-BEBD27QT.js} +37 -35
  28. package/dist/bundle/{chunk-IGHEW777.js → chunk-BM5ZCDPQ.js} +5 -40
  29. package/dist/bundle/{chunk-AK257OMS.js → chunk-BVLPNNEL.js} +209 -78
  30. package/dist/bundle/{chunk-ERKR3VJ5.js → chunk-BWBZCYUN.js} +141 -46
  31. package/dist/bundle/{chunk-Z7MSIRSQ.js → chunk-CGFQT3LQ.js} +1 -1
  32. package/dist/bundle/{chunk-QKWRL4OD.js → chunk-DQIBGCF3.js} +6 -6
  33. package/dist/bundle/{chunk-RUKDZEID.js → chunk-DZLHY4IA.js} +3 -3
  34. package/dist/bundle/{chunk-TAYOKLGF.js → chunk-EMHCXXNJ.js} +7 -6
  35. package/dist/bundle/{chunk-IBBN7Z3A.js → chunk-F34HGYWF.js} +12 -3
  36. package/dist/bundle/{chunk-ERGB4NJA.js → chunk-G45R7M42.js} +1 -1
  37. package/dist/bundle/{chunk-ZLY6GUAS.js → chunk-G7W53MQP.js} +3 -3
  38. package/dist/bundle/{chunk-JAOGZMKQ.js → chunk-GUFPQZUA.js} +2 -2
  39. package/dist/bundle/{chunk-4LURWBVV.js → chunk-HYTHTSJP.js} +188 -22
  40. package/dist/bundle/{chunk-EFHLQXG6.js → chunk-IOJ2DTCY.js} +162 -55
  41. package/dist/bundle/{chunk-L5WWMP5M.js → chunk-IZKXJJ7V.js} +121 -31
  42. package/dist/bundle/{chunk-NOVLCHDV.js → chunk-LATYBJ4T.js} +2 -2
  43. package/dist/bundle/{chunk-QBP7OMN5.js → chunk-LFLSV353.js} +2 -2
  44. package/dist/bundle/{chunk-HDY5X3WQ.js → chunk-LU4A2T7Y.js} +4 -4
  45. package/dist/bundle/{chunk-JRK73FOW.js → chunk-NENYWEXF.js} +1 -1
  46. package/dist/bundle/{chunk-2B5U4Z5H.js → chunk-NH6LZ3H3.js} +8 -13
  47. package/dist/bundle/{chunk-OV6PHTAY.js → chunk-NVNUUHT5.js} +17130 -2232
  48. package/dist/bundle/chunk-PIJUGF5F.js +392 -0
  49. package/dist/bundle/{chunk-7IXL4UFK.js → chunk-PX2KP4QE.js} +8 -8
  50. package/dist/bundle/{chunk-N5GXKDBC.js → chunk-QXOSPYM3.js} +1 -1
  51. package/dist/bundle/{chunk-PBN4RBHS.js → chunk-R2JKPHH5.js} +8 -8
  52. package/dist/bundle/{chunk-PDGXMKJS.js → chunk-R5RYPD23.js} +2 -2
  53. package/dist/bundle/{chunk-QJ6XW4DM.js → chunk-RJ7AS7UB.js} +6210 -1207
  54. package/dist/bundle/{chunk-35KYY65W.js → chunk-SOYOOU2D.js} +3 -3
  55. package/dist/bundle/{chunk-FDBINRWA.js → chunk-TJJ2XSJP.js} +5 -5
  56. package/dist/bundle/{chunk-O3UXNU3S.js → chunk-U6QD3J3F.js} +3 -3
  57. package/dist/bundle/{chunk-YJNUDHJD.js → chunk-UT5TQ6MD.js} +139 -35
  58. package/dist/bundle/{chunk-VYSUKHKL.js → chunk-VOTEB3AN.js} +1 -1
  59. package/dist/bundle/{chunk-IN3FVRPK.js → chunk-VS5LGSTM.js} +1 -1
  60. package/dist/bundle/{chunk-MJRSEUKG.js → chunk-VXOR76ZL.js} +13 -89
  61. package/dist/bundle/{chunk-CXQXVKUY.js → chunk-YIVY2WI3.js} +1 -1
  62. package/dist/bundle/{chunk-VLNKTMV7.js → chunk-YOJLIVGO.js} +959 -350
  63. package/dist/bundle/clidev.js +3 -3
  64. package/dist/bundle/command-contract-JMVMT5HT.js +28 -0
  65. package/dist/bundle/{decode-AMXUVKNY.js → decode-NXB5UKMO.js} +18 -16
  66. package/dist/bundle/{echarts-GJDMQ2AQ.js → echarts-DRDGGHJT.js} +2 -2
  67. package/dist/bundle/{embed-L4CRZ2XQ.js → embed-IKZ24BMC.js} +4 -4
  68. package/dist/bundle/{embedder-IBGV4M2K.js → embedder-GMQ24DOQ.js} +7 -7
  69. package/dist/bundle/{first-run-VTKC2IBV.js → first-run-MDD4SIUK.js} +8 -8
  70. package/dist/bundle/first-screen-376CXGXJ.js +26 -0
  71. package/dist/bundle/{instructions-YJECS4KN.js → instructions-EOQOXY6V.js} +1 -1
  72. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-7HBLFGCW.js} +2 -2
  73. package/dist/bundle/mcp-KHUZOJO6.js +82 -0
  74. package/dist/bundle/{mcp-7XPOACO4.js → mcp-MZHWJXAE.js} +38 -37
  75. package/dist/bundle/{node-NQG4EVZR.js → node-52WF2326.js} +2 -2
  76. package/dist/bundle/{node-sqlite-BR7F3BLB.js → node-sqlite-73Z4SFOA.js} +9 -3
  77. package/dist/bundle/{oauth-J7UAWNIK.js → oauth-EVTPAMZP.js} +5 -5
  78. package/dist/bundle/{open-BR47R5UE.js → open-46WZAPJ3.js} +3 -2
  79. package/dist/bundle/openai-GWRDAHDU.js +248 -0
  80. package/dist/bundle/{process-66I7RDPJ.js → process-YIQPKLZI.js} +1 -1
  81. package/dist/bundle/{program-ZNXLJ3D2.js → program-B3CY3FP7.js} +11346 -9559
  82. package/dist/bundle/{prompt-NE5JJ7UP.js → prompt-IVEYRLS5.js} +3 -3
  83. package/dist/bundle/{recognize-GC3YFVIA.js → recognize-WVEKHODM.js} +4 -2
  84. package/dist/bundle/{remote-QELOMKQM.js → remote-4K5VPMC7.js} +5 -5
  85. package/dist/bundle/{rerank-BH6TZ2SP.js → rerank-V24UJZYJ.js} +5 -5
  86. package/dist/bundle/{serve-WWLRNDT2.js → serve-PJWSOV7F.js} +7 -7
  87. package/dist/bundle/server-2ZN7KZHZ.js +40 -0
  88. package/dist/bundle/server-5VYM7CCF.js +53 -0
  89. package/dist/bundle/{state-2BEGXAMO.js → state-ZPYGECVP.js} +4 -4
  90. package/dist/bundle/{store-AH6WZMCF.js → store-6JQCLPQF.js} +14 -9
  91. package/dist/bundle/store-maintenance-command-7XICIYHW.js +42 -0
  92. package/dist/version.d.ts +1 -1
  93. package/dist/version.js +1 -1
  94. package/docs/commands.md +37 -11
  95. package/docs/dev/reference-clis.md +1 -1
  96. package/docs/dev/skills/design-interview/SKILL.md +2 -2
  97. package/docs/dev/test-matrix.md +5 -1
  98. package/kit/dist/interview.js +1 -0
  99. package/kit/dist/new.js +8 -3
  100. package/package.json +3 -3
  101. package/src/program.test.ts +56 -0
  102. package/src/version.ts +1 -1
  103. package/dist/bundle/chunk-IDWW4TU2.js +0 -18
  104. package/dist/bundle/chunk-MUSYGFCY.js +0 -3556
  105. package/dist/bundle/chunk-O5EHUB2V.js +0 -2
  106. package/dist/bundle/command-contract-75VJ36U4.js +0 -29
  107. package/dist/bundle/first-screen-X5IJKBSU.js +0 -27
  108. package/dist/bundle/mcp-RDZGYPSY.js +0 -78
  109. package/dist/bundle/server-DE6NLNUF.js +0 -52
  110. package/dist/bundle/server-ZPSQKOAH.js +0 -39
  111. package/dist/bundle/store-maintenance-command-PBXX3IEV.js +0 -40
  112. /package/dist/bundle/{chunk-GOO67PDU.js → chunk-NL2DQPT7.js} +0 -0
@@ -3,10 +3,10 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  IDENTITY
6
- } from "./chunk-N5GXKDBC.js";
6
+ } from "./chunk-QXOSPYM3.js";
7
7
  import {
8
8
  catchCrashes
9
- } from "./chunk-EFHLQXG6.js";
9
+ } from "./chunk-IOJ2DTCY.js";
10
10
  import "./chunk-Y5E2WNWB.js";
11
11
  import "./chunk-ZVVMGPBJ.js";
12
12
 
@@ -14,7 +14,7 @@ import "./chunk-ZVVMGPBJ.js";
14
14
  import { enableCompileCache } from "node:module";
15
15
  enableCompileCache();
16
16
  var stopCatching = catchCrashes({ cli: IDENTITY.command, interactive: process.stdout.isTTY === true });
17
- var { run } = await import("./program-ZNXLJ3D2.js");
17
+ var { run } = await import("./program-B3CY3FP7.js");
18
18
  try {
19
19
  process.exitCode = await run(process.argv.slice(2));
20
20
  } finally {
@@ -0,0 +1,28 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ SCHEMA_DIALECT,
5
+ commandContract,
6
+ commandPathOf,
7
+ findCommand,
8
+ outputOf
9
+ } from "./chunk-BM5ZCDPQ.js";
10
+ import "./chunk-RJ7AS7UB.js";
11
+ import "./chunk-VXOR76ZL.js";
12
+ import "./chunk-U6QD3J3F.js";
13
+ import "./chunk-VOTEB3AN.js";
14
+ import "./chunk-YOJLIVGO.js";
15
+ import "./chunk-3WDYHOAF.js";
16
+ import "./chunk-TJJ2XSJP.js";
17
+ import "./chunk-45244QQ6.js";
18
+ import "./chunk-62JRF2JA.js";
19
+ import "./chunk-IOJ2DTCY.js";
20
+ import "./chunk-Y5E2WNWB.js";
21
+ import "./chunk-ZVVMGPBJ.js";
22
+ export {
23
+ SCHEMA_DIALECT,
24
+ commandContract,
25
+ commandPathOf,
26
+ findCommand,
27
+ outputOf
28
+ };
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  SAMPLE_RATE,
5
5
  decodeOgg
6
- } from "./chunk-PJOVK7PG.js";
6
+ } from "./chunk-7F5VMLVK.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-EFHLQXG6.js";
9
+ } from "./chunk-IOJ2DTCY.js";
10
10
  import {
11
11
  importFrom
12
12
  } from "./chunk-Y5E2WNWB.js";
@@ -14,7 +14,7 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/speech/decode.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/speech/decode.js
18
18
  import { spawn } from "node:child_process";
19
19
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
20
20
  import { createRequire } from "node:module";
@@ -41,19 +41,18 @@ var formatOf = /* @__PURE__ */ __name((bytes) => {
41
41
  return "mp3";
42
42
  return "other";
43
43
  }, "formatOf");
44
- var firstChannel = /* @__PURE__ */ __name((decoded) => {
45
- const samples = decoded.channelData[0];
46
- if (!samples || decoded.samplesDecoded === 0)
44
+ var everyChannel = /* @__PURE__ */ __name((decoded) => {
45
+ if (!decoded.channelData[0] || decoded.samplesDecoded === 0)
47
46
  throw new CliError("validation_error", "no audio in that file");
48
- return { samples, rate: decoded.sampleRate };
49
- }, "firstChannel");
47
+ return decoded.channelData.map((samples) => ({ samples, rate: decoded.sampleRate }));
48
+ }, "everyChannel");
50
49
  var load = /* @__PURE__ */ __name((name) => importFrom(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href, pathToFileURL(createRequire(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href).resolve(name)).href), "load");
51
50
  var decodeVorbis = /* @__PURE__ */ __name(async (bytes) => {
52
51
  const { OggVorbisDecoder } = await load("@wasm-audio-decoders/ogg-vorbis");
53
52
  const decoder = new OggVorbisDecoder();
54
53
  await decoder.ready;
55
54
  try {
56
- return firstChannel(await decoder.decodeFile(bytes));
55
+ return everyChannel(await decoder.decodeFile(bytes));
57
56
  } finally {
58
57
  decoder.free();
59
58
  }
@@ -63,7 +62,7 @@ var decodeFlac = /* @__PURE__ */ __name(async (bytes) => {
63
62
  const decoder = new FLACDecoder();
64
63
  await decoder.ready;
65
64
  try {
66
- return firstChannel(await decoder.decodeFile(bytes));
65
+ return everyChannel(await decoder.decodeFile(bytes));
67
66
  } finally {
68
67
  decoder.free();
69
68
  }
@@ -73,7 +72,7 @@ var decodeMp3 = /* @__PURE__ */ __name(async (bytes) => {
73
72
  const decoder = new MPEGDecoder();
74
73
  await decoder.ready;
75
74
  try {
76
- return firstChannel(decoder.decode(bytes));
75
+ return everyChannel(decoder.decode(bytes));
77
76
  } finally {
78
77
  decoder.free();
79
78
  }
@@ -141,18 +140,21 @@ var BUNDLED = {
141
140
  flac: decodeFlac,
142
141
  mp3: decodeMp3
143
142
  };
144
- var decodeAudio = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => {
143
+ var tooLong = /* @__PURE__ */ __name((pcm) => pcm.samples.length / pcm.rate > LONGEST_AUDIO_SECONDS, "tooLong");
144
+ var decodeChannels = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => {
145
145
  const format = formatOf(bytes);
146
- const pcm = format === "other" ? await ffmpeg(bytes) : await BUNDLED[format](bytes).catch((error) => ffmpeg(bytes).catch(() => {
146
+ const decoded = format === "other" ? { channels: [await ffmpeg(bytes)], mixed: true } : await BUNDLED[format](bytes).then((channels) => ({ channels, mixed: false }), (error) => ffmpeg(bytes).then((pcm) => ({ channels: [pcm], mixed: true }), () => {
147
147
  throw error;
148
148
  }));
149
- if (pcm.samples.length / pcm.rate > LONGEST_AUDIO_SECONDS)
149
+ if (decoded.channels.some(tooLong))
150
150
  throw new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`);
151
- return pcm;
152
- }, "decodeAudio");
151
+ return decoded;
152
+ }, "decodeChannels");
153
+ var decodeAudio = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => (await decodeChannels(bytes, ffmpeg)).channels[0], "decodeAudio");
153
154
  export {
154
155
  LONGEST_AUDIO_SECONDS,
155
156
  decodeAudio,
157
+ decodeChannels,
156
158
  formatOf,
157
159
  runFfmpeg
158
160
  };
@@ -42399,7 +42399,7 @@ function install11(registers) {
42399
42399
  }
42400
42400
  __name(install11, "install");
42401
42401
 
42402
- // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
42402
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/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.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/charts/echarts.js
42450
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/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,10 +13,10 @@ import {
13
13
  truncated,
14
14
  unit,
15
15
  warmEmbedders
16
- } from "./chunk-QKWRL4OD.js";
17
- import "./chunk-EGRB55FF.js";
18
- import "./chunk-IDWW4TU2.js";
19
- import "./chunk-EFHLQXG6.js";
16
+ } from "./chunk-DQIBGCF3.js";
17
+ import "./chunk-45244QQ6.js";
18
+ import "./chunk-62JRF2JA.js";
19
+ import "./chunk-IOJ2DTCY.js";
20
20
  import "./chunk-Y5E2WNWB.js";
21
21
  import "./chunk-ZVVMGPBJ.js";
22
22
  export {
@@ -4,12 +4,12 @@ import {
4
4
  openSession,
5
5
  truncated,
6
6
  unit
7
- } from "./chunk-QKWRL4OD.js";
8
- import "./chunk-EGRB55FF.js";
9
- import "./chunk-IDWW4TU2.js";
7
+ } from "./chunk-DQIBGCF3.js";
8
+ import "./chunk-45244QQ6.js";
9
+ import "./chunk-62JRF2JA.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-EFHLQXG6.js";
12
+ } from "./chunk-IOJ2DTCY.js";
13
13
  import {
14
14
  importFrom
15
15
  } from "./chunk-Y5E2WNWB.js";
@@ -17,11 +17,11 @@ import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
21
21
  import { readFileSync } from "node:fs";
22
22
  import { join } from "node:path";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
25
25
  var SIZE = 224;
26
26
  var MEAN = [0.48145466, 0.4578275, 0.40821073];
27
27
  var STD = [0.26862954, 0.26130258, 0.27577711];
@@ -60,7 +60,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
60
60
  return pixels;
61
61
  }, "preprocess");
62
62
 
63
- // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
63
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
64
64
  var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
65
65
  const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
66
66
  const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
@@ -5,14 +5,14 @@ import {
5
5
  asksAtStart,
6
6
  setupAtStart,
7
7
  systemLanguage
8
- } from "./chunk-SVDF6NJF.js";
9
- import "./chunk-E42W72PQ.js";
10
- import "./chunk-MFS52LTZ.js";
11
- import "./chunk-PBN4RBHS.js";
12
- import "./chunk-O3UXNU3S.js";
13
- import "./chunk-FDBINRWA.js";
14
- import "./chunk-IDWW4TU2.js";
15
- import "./chunk-EFHLQXG6.js";
8
+ } from "./chunk-ASHVHS52.js";
9
+ import "./chunk-AS2PJNQ2.js";
10
+ import "./chunk-7Z4HR6GO.js";
11
+ import "./chunk-U6QD3J3F.js";
12
+ import "./chunk-R2JKPHH5.js";
13
+ import "./chunk-TJJ2XSJP.js";
14
+ import "./chunk-62JRF2JA.js";
15
+ import "./chunk-IOJ2DTCY.js";
16
16
  import "./chunk-Y5E2WNWB.js";
17
17
  import "./chunk-ZVVMGPBJ.js";
18
18
  export {
@@ -0,0 +1,26 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ WIRECAT_TOOLS,
5
+ firstScreen,
6
+ installHelp
7
+ } from "./chunk-4PA6DJ7F.js";
8
+ import "./chunk-HTQTIKWP.js";
9
+ import "./chunk-BM5ZCDPQ.js";
10
+ import "./chunk-RJ7AS7UB.js";
11
+ import "./chunk-VXOR76ZL.js";
12
+ import "./chunk-U6QD3J3F.js";
13
+ import "./chunk-VOTEB3AN.js";
14
+ import "./chunk-YOJLIVGO.js";
15
+ import "./chunk-3WDYHOAF.js";
16
+ import "./chunk-TJJ2XSJP.js";
17
+ import "./chunk-45244QQ6.js";
18
+ import "./chunk-62JRF2JA.js";
19
+ import "./chunk-IOJ2DTCY.js";
20
+ import "./chunk-Y5E2WNWB.js";
21
+ import "./chunk-ZVVMGPBJ.js";
22
+ export {
23
+ WIRECAT_TOOLS,
24
+ firstScreen,
25
+ installHelp
26
+ };
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  appInstructions,
5
5
  instructions
6
- } from "./chunk-ERGB4NJA.js";
6
+ } from "./chunk-G45R7M42.js";
7
7
  import "./chunk-ZVVMGPBJ.js";
8
8
  export {
9
9
  appInstructions,
@@ -4,13 +4,13 @@ import {
4
4
  executableEnvironment,
5
5
  executableOnPath,
6
6
  require_cross_spawn
7
- } from "./chunk-MFS52LTZ.js";
7
+ } from "./chunk-7Z4HR6GO.js";
8
8
  import {
9
9
  __name,
10
10
  __toESM
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
13
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
14
14
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
15
15
  var realRun = /* @__PURE__ */ __name((file, args) => {
16
16
  const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
@@ -0,0 +1,82 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import "./chunk-NL2DQPT7.js";
4
+ import {
5
+ MCP_PATH,
6
+ serveOverHttp
7
+ } from "./chunk-EMHCXXNJ.js";
8
+ import "./chunk-NENYWEXF.js";
9
+ import {
10
+ allProfilesServer,
11
+ serveAllProfilesOverHttp,
12
+ serveAllProfilesOverStdio
13
+ } from "./chunk-LU4A2T7Y.js";
14
+ import {
15
+ mcpUrlOf,
16
+ portOf,
17
+ publicUrlOf
18
+ } from "./chunk-GUFPQZUA.js";
19
+ import "./chunk-VS5LGSTM.js";
20
+ import {
21
+ createBotServer
22
+ } from "./chunk-PX2KP4QE.js";
23
+ import "./chunk-YIVY2WI3.js";
24
+ import {
25
+ registerCommands,
26
+ runCommandForAgent,
27
+ toolsFromCommands
28
+ } from "./chunk-UT5TQ6MD.js";
29
+ import "./chunk-HYTHTSJP.js";
30
+ import {
31
+ callingAgent
32
+ } from "./chunk-F34HGYWF.js";
33
+ import "./chunk-5SAF3XOL.js";
34
+ import "./chunk-PIJUGF5F.js";
35
+ import "./chunk-2DAXUNTS.js";
36
+ import "./chunk-AS2PJNQ2.js";
37
+ import "./chunk-7Z4HR6GO.js";
38
+ import {
39
+ revokeAll
40
+ } from "./chunk-66VMJGV6.js";
41
+ import "./chunk-5D4AEUVA.js";
42
+ import {
43
+ httpLockFile
44
+ } from "./chunk-6AW4DDK4.js";
45
+ import "./chunk-DZLHY4IA.js";
46
+ import "./chunk-SOYOOU2D.js";
47
+ import "./chunk-LATYBJ4T.js";
48
+ import "./chunk-RJ7AS7UB.js";
49
+ import "./chunk-VXOR76ZL.js";
50
+ import "./chunk-U6QD3J3F.js";
51
+ import "./chunk-VOTEB3AN.js";
52
+ import "./chunk-NVNUUHT5.js";
53
+ import "./chunk-R2JKPHH5.js";
54
+ import "./chunk-YOJLIVGO.js";
55
+ import "./chunk-3WDYHOAF.js";
56
+ import "./chunk-TJJ2XSJP.js";
57
+ import "./chunk-NH6LZ3H3.js";
58
+ import "./chunk-3MDNAYQA.js";
59
+ import "./chunk-CGFQT3LQ.js";
60
+ import "./chunk-DQIBGCF3.js";
61
+ import "./chunk-45244QQ6.js";
62
+ import "./chunk-62JRF2JA.js";
63
+ import "./chunk-IOJ2DTCY.js";
64
+ import "./chunk-Y5E2WNWB.js";
65
+ import "./chunk-ZVVMGPBJ.js";
66
+ export {
67
+ MCP_PATH,
68
+ allProfilesServer,
69
+ callingAgent,
70
+ createBotServer,
71
+ httpLockFile,
72
+ mcpUrlOf,
73
+ portOf,
74
+ publicUrlOf,
75
+ registerCommands,
76
+ revokeAll,
77
+ runCommandForAgent,
78
+ serveAllProfilesOverHttp,
79
+ serveAllProfilesOverStdio,
80
+ serveOverHttp,
81
+ toolsFromCommands
82
+ };
@@ -1,62 +1,63 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import "./chunk-GOO67PDU.js";
3
+ import "./chunk-NL2DQPT7.js";
4
4
  import {
5
5
  MCP_PATH,
6
6
  serveOverHttp
7
- } from "./chunk-TAYOKLGF.js";
8
- import "./chunk-JRK73FOW.js";
9
- import "./chunk-HDY5X3WQ.js";
10
- import "./chunk-JAOGZMKQ.js";
11
- import "./chunk-IN3FVRPK.js";
12
- import "./chunk-7IXL4UFK.js";
13
- import "./chunk-CXQXVKUY.js";
7
+ } from "./chunk-EMHCXXNJ.js";
8
+ import "./chunk-NENYWEXF.js";
9
+ import "./chunk-LU4A2T7Y.js";
10
+ import "./chunk-GUFPQZUA.js";
11
+ import "./chunk-VS5LGSTM.js";
12
+ import "./chunk-PX2KP4QE.js";
13
+ import "./chunk-YIVY2WI3.js";
14
14
  import {
15
15
  registerCommands,
16
16
  runCommandForAgent,
17
17
  toolsFromCommands
18
- } from "./chunk-YJNUDHJD.js";
19
- import "./chunk-4LURWBVV.js";
18
+ } from "./chunk-UT5TQ6MD.js";
19
+ import "./chunk-HYTHTSJP.js";
20
20
  import {
21
21
  StdioServerTransport
22
- } from "./chunk-IBBN7Z3A.js";
23
- import "./chunk-FZZIU4B7.js";
24
- import "./chunk-KJTNT4SW.js";
25
- import "./chunk-E42W72PQ.js";
26
- import "./chunk-MFS52LTZ.js";
27
- import "./chunk-TGB5F7NC.js";
22
+ } from "./chunk-F34HGYWF.js";
23
+ import "./chunk-5SAF3XOL.js";
24
+ import "./chunk-PIJUGF5F.js";
25
+ import "./chunk-2DAXUNTS.js";
26
+ import "./chunk-AS2PJNQ2.js";
27
+ import "./chunk-7Z4HR6GO.js";
28
+ import "./chunk-66VMJGV6.js";
28
29
  import {
29
30
  McpServer
30
31
  } from "./chunk-5D4AEUVA.js";
31
32
  import {
32
33
  httpLockFile
33
- } from "./chunk-V3ZTQ24B.js";
34
- import "./chunk-RUKDZEID.js";
35
- import "./chunk-OV6PHTAY.js";
36
- import "./chunk-PBN4RBHS.js";
37
- import "./chunk-35KYY65W.js";
38
- import "./chunk-NOVLCHDV.js";
39
- import "./chunk-MUSYGFCY.js";
40
- import "./chunk-QJ6XW4DM.js";
41
- import "./chunk-MJRSEUKG.js";
42
- import "./chunk-O3UXNU3S.js";
43
- import "./chunk-VYSUKHKL.js";
44
- import "./chunk-VLNKTMV7.js";
45
- import "./chunk-O5EHUB2V.js";
46
- import "./chunk-FDBINRWA.js";
34
+ } from "./chunk-6AW4DDK4.js";
35
+ import "./chunk-DZLHY4IA.js";
36
+ import "./chunk-SOYOOU2D.js";
37
+ import "./chunk-LATYBJ4T.js";
38
+ import "./chunk-RJ7AS7UB.js";
39
+ import "./chunk-VXOR76ZL.js";
40
+ import "./chunk-U6QD3J3F.js";
41
+ import "./chunk-VOTEB3AN.js";
47
42
  import {
48
43
  IDENTITY
49
- } from "./chunk-N5GXKDBC.js";
50
- import "./chunk-QKWRL4OD.js";
51
- import "./chunk-EGRB55FF.js";
52
- import "./chunk-IDWW4TU2.js";
53
- import "./chunk-2B5U4Z5H.js";
44
+ } from "./chunk-QXOSPYM3.js";
45
+ import "./chunk-NVNUUHT5.js";
46
+ import "./chunk-R2JKPHH5.js";
47
+ import "./chunk-YOJLIVGO.js";
48
+ import "./chunk-3WDYHOAF.js";
49
+ import "./chunk-TJJ2XSJP.js";
50
+ import "./chunk-NH6LZ3H3.js";
51
+ import "./chunk-3MDNAYQA.js";
52
+ import "./chunk-CGFQT3LQ.js";
53
+ import "./chunk-DQIBGCF3.js";
54
+ import "./chunk-45244QQ6.js";
55
+ import "./chunk-62JRF2JA.js";
54
56
  import {
55
57
  CliError,
56
58
  mcpErrorResult
57
- } from "./chunk-EFHLQXG6.js";
59
+ } from "./chunk-IOJ2DTCY.js";
58
60
  import "./chunk-Y5E2WNWB.js";
59
- import "./chunk-Z7MSIRSQ.js";
60
61
  import {
61
62
  __name
62
63
  } from "./chunk-ZVVMGPBJ.js";
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-Z7MSIRSQ.js";
21
+ } from "./chunk-CGFQT3LQ.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
27
27
  import { DatabaseSync } from "node:sqlite";
28
28
  var nodeSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,14 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-QBP7OMN5.js";
7
- import "./chunk-EFHLQXG6.js";
6
+ } from "./chunk-LFLSV353.js";
7
+ import {
8
+ TIME_LIMIT_FUNCTION,
9
+ beforeTimeLimit
10
+ } from "./chunk-3MDNAYQA.js";
11
+ import "./chunk-IOJ2DTCY.js";
8
12
  import "./chunk-Y5E2WNWB.js";
9
13
  import {
10
14
  __name
11
15
  } from "./chunk-ZVVMGPBJ.js";
12
16
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
14
18
  import { DatabaseSync } from "node:sqlite";
15
19
  var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
16
20
  var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
@@ -27,6 +31,7 @@ var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
27
31
  var STATEMENT_CACHE_SIZE = 1e3;
28
32
  var cacheOverNodeSqlite = /* @__PURE__ */ __name((database, cacheSize = STATEMENT_CACHE_SIZE) => {
29
33
  const statements = /* @__PURE__ */ new Map();
34
+ database.function(TIME_LIMIT_FUNCTION, { deterministic: false, directOnly: true }, beforeTimeLimit);
30
35
  const prepare = /* @__PURE__ */ __name((sql) => {
31
36
  const statement = database.prepare(sql);
32
37
  return {
@@ -36,6 +41,7 @@ var cacheOverNodeSqlite = /* @__PURE__ */ __name((database, cacheSize = STATEMEN
36
41
  };
37
42
  }, "prepare");
38
43
  return {
44
+ timeLimit: true,
39
45
  exec: /* @__PURE__ */ __name((sql) => database.exec(sql), "exec"),
40
46
  prepare: /* @__PURE__ */ __name((sql) => {
41
47
  const cached = statements.get(sql);
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ownerLogin,
5
5
  revokeAll
6
- } from "./chunk-TGB5F7NC.js";
6
+ } from "./chunk-66VMJGV6.js";
7
7
  import "./chunk-5D4AEUVA.js";
8
- import "./chunk-V3ZTQ24B.js";
9
- import "./chunk-RUKDZEID.js";
10
- import "./chunk-VYSUKHKL.js";
11
- import "./chunk-EFHLQXG6.js";
8
+ import "./chunk-6AW4DDK4.js";
9
+ import "./chunk-DZLHY4IA.js";
10
+ import "./chunk-VOTEB3AN.js";
11
+ import "./chunk-IOJ2DTCY.js";
12
12
  import "./chunk-Y5E2WNWB.js";
13
13
  import "./chunk-ZVVMGPBJ.js";
14
14
  export {
@@ -6,8 +6,9 @@ import {
6
6
  openCache,
7
7
  openFile,
8
8
  storeCapable
9
- } from "./chunk-2B5U4Z5H.js";
10
- import "./chunk-EFHLQXG6.js";
9
+ } from "./chunk-NH6LZ3H3.js";
10
+ import "./chunk-3MDNAYQA.js";
11
+ import "./chunk-IOJ2DTCY.js";
11
12
  import "./chunk-Y5E2WNWB.js";
12
13
  import "./chunk-ZVVMGPBJ.js";
13
14
  export {