@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.
- package/.github/workflows/changelog-guard.yml +1 -1
- package/.github/workflows/ci.yml +1 -1
- package/.github/workflows/monthly.yml +1 -1
- package/.github/workflows/release.yml +44 -10
- package/CHANGELOG.md +36 -0
- package/config/parity-groups.json +32 -1
- package/contracts/mcp-tools.json +100 -0
- package/dist/bin/clidev.js +6 -2
- package/dist/bundle/{all-profiles-MJ6XSFOO.js → all-profiles-NVB2HT2S.js} +6 -6
- package/dist/bundle/{anthropic-W5UKBZUB.js → anthropic-ICTW7CNQ.js} +4 -4
- package/dist/bundle/{app-server-EZ46JAHB.js → app-server-B6BCKXR7.js} +40 -38
- package/dist/bundle/{bun-HB6O2TTT.js → bun-ILPS6AYA.js} +2 -2
- package/dist/bundle/{bun-sqlite-KBXOW2ES.js → bun-sqlite-JE6FJFQT.js} +3 -3
- package/dist/bundle/{chunk-KJTNT4SW.js → chunk-2DAXUNTS.js} +2 -2
- package/dist/bundle/chunk-3MDNAYQA.js +34 -0
- package/dist/bundle/chunk-3WDYHOAF.js +91 -0
- package/dist/bundle/{chunk-EGRB55FF.js → chunk-45244QQ6.js} +14 -12
- package/dist/bundle/{chunk-JHO2LL2J.js → chunk-4PA6DJ7F.js} +7 -7
- package/dist/bundle/{chunk-FZZIU4B7.js → chunk-5SAF3XOL.js} +8196 -5601
- package/dist/bundle/chunk-62JRF2JA.js +35 -0
- package/dist/bundle/{chunk-TGB5F7NC.js → chunk-66VMJGV6.js} +4 -4
- package/dist/bundle/{chunk-V3ZTQ24B.js → chunk-6AW4DDK4.js} +4 -4
- package/dist/bundle/{chunk-PJOVK7PG.js → chunk-7F5VMLVK.js} +49 -24
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-7Z4HR6GO.js} +1 -1
- package/dist/bundle/{chunk-E42W72PQ.js → chunk-AS2PJNQ2.js} +7 -5
- package/dist/bundle/{chunk-SVDF6NJF.js → chunk-ASHVHS52.js} +14 -14
- package/dist/bundle/{chunk-N2Z3MCOF.js → chunk-BEBD27QT.js} +37 -35
- package/dist/bundle/{chunk-IGHEW777.js → chunk-BM5ZCDPQ.js} +5 -40
- package/dist/bundle/{chunk-AK257OMS.js → chunk-BVLPNNEL.js} +209 -78
- package/dist/bundle/{chunk-ERKR3VJ5.js → chunk-BWBZCYUN.js} +141 -46
- package/dist/bundle/{chunk-Z7MSIRSQ.js → chunk-CGFQT3LQ.js} +1 -1
- package/dist/bundle/{chunk-QKWRL4OD.js → chunk-DQIBGCF3.js} +6 -6
- package/dist/bundle/{chunk-RUKDZEID.js → chunk-DZLHY4IA.js} +3 -3
- package/dist/bundle/{chunk-TAYOKLGF.js → chunk-EMHCXXNJ.js} +7 -6
- package/dist/bundle/{chunk-IBBN7Z3A.js → chunk-F34HGYWF.js} +12 -3
- package/dist/bundle/{chunk-ERGB4NJA.js → chunk-G45R7M42.js} +1 -1
- package/dist/bundle/{chunk-ZLY6GUAS.js → chunk-G7W53MQP.js} +3 -3
- package/dist/bundle/{chunk-JAOGZMKQ.js → chunk-GUFPQZUA.js} +2 -2
- package/dist/bundle/{chunk-4LURWBVV.js → chunk-HYTHTSJP.js} +188 -22
- package/dist/bundle/{chunk-EFHLQXG6.js → chunk-IOJ2DTCY.js} +162 -55
- package/dist/bundle/{chunk-L5WWMP5M.js → chunk-IZKXJJ7V.js} +121 -31
- package/dist/bundle/{chunk-NOVLCHDV.js → chunk-LATYBJ4T.js} +2 -2
- package/dist/bundle/{chunk-QBP7OMN5.js → chunk-LFLSV353.js} +2 -2
- package/dist/bundle/{chunk-HDY5X3WQ.js → chunk-LU4A2T7Y.js} +4 -4
- package/dist/bundle/{chunk-JRK73FOW.js → chunk-NENYWEXF.js} +1 -1
- package/dist/bundle/{chunk-2B5U4Z5H.js → chunk-NH6LZ3H3.js} +8 -13
- package/dist/bundle/{chunk-OV6PHTAY.js → chunk-NVNUUHT5.js} +17130 -2232
- package/dist/bundle/chunk-PIJUGF5F.js +392 -0
- package/dist/bundle/{chunk-7IXL4UFK.js → chunk-PX2KP4QE.js} +8 -8
- package/dist/bundle/{chunk-N5GXKDBC.js → chunk-QXOSPYM3.js} +1 -1
- package/dist/bundle/{chunk-PBN4RBHS.js → chunk-R2JKPHH5.js} +8 -8
- package/dist/bundle/{chunk-PDGXMKJS.js → chunk-R5RYPD23.js} +2 -2
- package/dist/bundle/{chunk-QJ6XW4DM.js → chunk-RJ7AS7UB.js} +6210 -1207
- package/dist/bundle/{chunk-35KYY65W.js → chunk-SOYOOU2D.js} +3 -3
- package/dist/bundle/{chunk-FDBINRWA.js → chunk-TJJ2XSJP.js} +5 -5
- package/dist/bundle/{chunk-O3UXNU3S.js → chunk-U6QD3J3F.js} +3 -3
- package/dist/bundle/{chunk-YJNUDHJD.js → chunk-UT5TQ6MD.js} +139 -35
- package/dist/bundle/{chunk-VYSUKHKL.js → chunk-VOTEB3AN.js} +1 -1
- package/dist/bundle/{chunk-IN3FVRPK.js → chunk-VS5LGSTM.js} +1 -1
- package/dist/bundle/{chunk-MJRSEUKG.js → chunk-VXOR76ZL.js} +13 -89
- package/dist/bundle/{chunk-CXQXVKUY.js → chunk-YIVY2WI3.js} +1 -1
- package/dist/bundle/{chunk-VLNKTMV7.js → chunk-YOJLIVGO.js} +959 -350
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/command-contract-JMVMT5HT.js +28 -0
- package/dist/bundle/{decode-AMXUVKNY.js → decode-NXB5UKMO.js} +18 -16
- package/dist/bundle/{echarts-GJDMQ2AQ.js → echarts-DRDGGHJT.js} +2 -2
- package/dist/bundle/{embed-L4CRZ2XQ.js → embed-IKZ24BMC.js} +4 -4
- package/dist/bundle/{embedder-IBGV4M2K.js → embedder-GMQ24DOQ.js} +7 -7
- package/dist/bundle/{first-run-VTKC2IBV.js → first-run-MDD4SIUK.js} +8 -8
- package/dist/bundle/first-screen-376CXGXJ.js +26 -0
- package/dist/bundle/{instructions-YJECS4KN.js → instructions-EOQOXY6V.js} +1 -1
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-7HBLFGCW.js} +2 -2
- package/dist/bundle/mcp-KHUZOJO6.js +82 -0
- package/dist/bundle/{mcp-7XPOACO4.js → mcp-MZHWJXAE.js} +38 -37
- package/dist/bundle/{node-NQG4EVZR.js → node-52WF2326.js} +2 -2
- package/dist/bundle/{node-sqlite-BR7F3BLB.js → node-sqlite-73Z4SFOA.js} +9 -3
- package/dist/bundle/{oauth-J7UAWNIK.js → oauth-EVTPAMZP.js} +5 -5
- package/dist/bundle/{open-BR47R5UE.js → open-46WZAPJ3.js} +3 -2
- package/dist/bundle/openai-GWRDAHDU.js +248 -0
- package/dist/bundle/{process-66I7RDPJ.js → process-YIQPKLZI.js} +1 -1
- package/dist/bundle/{program-ZNXLJ3D2.js → program-B3CY3FP7.js} +11346 -9559
- package/dist/bundle/{prompt-NE5JJ7UP.js → prompt-IVEYRLS5.js} +3 -3
- package/dist/bundle/{recognize-GC3YFVIA.js → recognize-WVEKHODM.js} +4 -2
- package/dist/bundle/{remote-QELOMKQM.js → remote-4K5VPMC7.js} +5 -5
- package/dist/bundle/{rerank-BH6TZ2SP.js → rerank-V24UJZYJ.js} +5 -5
- package/dist/bundle/{serve-WWLRNDT2.js → serve-PJWSOV7F.js} +7 -7
- package/dist/bundle/server-2ZN7KZHZ.js +40 -0
- package/dist/bundle/server-5VYM7CCF.js +53 -0
- package/dist/bundle/{state-2BEGXAMO.js → state-ZPYGECVP.js} +4 -4
- package/dist/bundle/{store-AH6WZMCF.js → store-6JQCLPQF.js} +14 -9
- package/dist/bundle/store-maintenance-command-7XICIYHW.js +42 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/commands.md +37 -11
- package/docs/dev/reference-clis.md +1 -1
- package/docs/dev/skills/design-interview/SKILL.md +2 -2
- package/docs/dev/test-matrix.md +5 -1
- package/kit/dist/interview.js +1 -0
- package/kit/dist/new.js +8 -3
- package/package.json +3 -3
- package/src/program.test.ts +56 -0
- package/src/version.ts +1 -1
- package/dist/bundle/chunk-IDWW4TU2.js +0 -18
- package/dist/bundle/chunk-MUSYGFCY.js +0 -3556
- package/dist/bundle/chunk-O5EHUB2V.js +0 -2
- package/dist/bundle/command-contract-75VJ36U4.js +0 -29
- package/dist/bundle/first-screen-X5IJKBSU.js +0 -27
- package/dist/bundle/mcp-RDZGYPSY.js +0 -78
- package/dist/bundle/server-DE6NLNUF.js +0 -52
- package/dist/bundle/server-ZPSQKOAH.js +0 -39
- package/dist/bundle/store-maintenance-command-PBXX3IEV.js +0 -40
- /package/dist/bundle/{chunk-GOO67PDU.js → chunk-NL2DQPT7.js} +0 -0
package/dist/bundle/clidev.js
CHANGED
|
@@ -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-
|
|
6
|
+
} from "./chunk-QXOSPYM3.js";
|
|
7
7
|
import {
|
|
8
8
|
catchCrashes
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
6
|
+
} from "./chunk-7F5VMLVK.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
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.
|
|
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
|
|
45
|
-
|
|
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
|
-
}, "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 (
|
|
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
|
|
152
|
-
}, "
|
|
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.
|
|
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.
|
|
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-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
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-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-DQIBGCF3.js";
|
|
8
|
+
import "./chunk-45244QQ6.js";
|
|
9
|
+
import "./chunk-62JRF2JA.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
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
|
+
};
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath,
|
|
6
6
|
require_cross_spawn
|
|
7
|
-
} from "./chunk-
|
|
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.
|
|
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-
|
|
3
|
+
import "./chunk-NL2DQPT7.js";
|
|
4
4
|
import {
|
|
5
5
|
MCP_PATH,
|
|
6
6
|
serveOverHttp
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
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-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-UT5TQ6MD.js";
|
|
19
|
+
import "./chunk-HYTHTSJP.js";
|
|
20
20
|
import {
|
|
21
21
|
StdioServerTransport
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
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-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
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-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
7
|
-
import
|
|
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.
|
|
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-
|
|
6
|
+
} from "./chunk-66VMJGV6.js";
|
|
7
7
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
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-
|
|
10
|
-
import "./chunk-
|
|
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 {
|