@wirecat/drive-cli 0.57.0 → 0.59.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/dist/bin/drive.js +6 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{all-profiles-7LSZ3CC3.js → all-profiles-CVISDGMF.js} +14 -9
- package/dist/bundle/{anthropic-3QRM4QXB.js → anthropic-WLNQC23G.js} +11 -7
- package/dist/bundle/{app-server-WWNMUHID.js → app-server-P2VOONXF.js} +61 -53
- package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
- package/dist/bundle/{bun-sqlite-GSLSN3OT.js → bun-sqlite-MNZICITP.js} +8 -4
- package/dist/bundle/chunk-2AXA5SKP.js +23 -0
- package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
- package/dist/bundle/{chunk-Q3TMNETS.js → chunk-3KJTJDDT.js} +52 -39
- package/dist/bundle/{chunk-4F2VRJZE.js → chunk-3KNZADHJ.js} +5080 -626
- package/dist/bundle/{chunk-GIQFBXQN.js → chunk-3U22QTU6.js} +12 -125
- package/dist/bundle/chunk-3VSUT6BD.js +35 -0
- package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
- package/dist/bundle/{chunk-6CFSDU56.js → chunk-6C6255U6.js} +16 -14
- package/dist/bundle/{chunk-EE7R457T.js → chunk-6CQO2FIN.js} +1569 -739
- package/dist/bundle/{chunk-KHNDZNQA.js → chunk-7QTVIZII.js} +5410 -3002
- package/dist/bundle/{chunk-HNUSPNUQ.js → chunk-A6EG7ZDS.js} +13 -13
- package/dist/bundle/{chunk-WBYCUBYM.js → chunk-A6SLYOP2.js} +49 -42
- package/dist/bundle/{chunk-TR5656OS.js → chunk-AD62XJKO.js} +162 -106
- package/dist/bundle/{chunk-TKVSJV5P.js → chunk-B5GBJ35N.js} +6 -4
- package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
- package/dist/bundle/{chunk-XGNADVIA.js → chunk-CBM2XAEZ.js} +28 -229
- package/dist/bundle/{chunk-OYNSFQ7K.js → chunk-D72URWJE.js} +1 -39
- package/dist/bundle/{chunk-L4BBK7UX.js → chunk-DI5Z4SH5.js} +5 -3
- package/dist/bundle/chunk-EBLA7GXY.js +45 -0
- package/dist/bundle/{chunk-4UQLL6RJ.js → chunk-EHEZSV6I.js} +11 -88
- package/dist/bundle/{chunk-6ZA4NR5H.js → chunk-EORMZCVF.js} +3 -3
- package/dist/bundle/{chunk-W5FOPSJZ.js → chunk-EVETU3TF.js} +10 -8
- package/dist/bundle/{chunk-TZHCS5MG.js → chunk-F3FOL42A.js} +2 -2
- package/dist/bundle/{chunk-2QLLKDE5.js → chunk-FICVPYE4.js} +206 -73
- package/dist/bundle/{chunk-AKPFH3KC.js → chunk-FVQCM7IQ.js} +1 -1
- package/dist/bundle/{chunk-ADLS6FVG.js → chunk-FXBHOCJK.js} +1 -1
- package/dist/bundle/{chunk-WAVJWGUC.js → chunk-GI5JBGXH.js} +4611 -1530
- package/dist/bundle/{chunk-SRNXTXJN.js → chunk-GJ4ZCIOP.js} +3 -3
- package/dist/bundle/{chunk-GKHUHRSL.js → chunk-GT5KTGCN.js} +4 -4
- package/dist/bundle/{chunk-WJOKTIOJ.js → chunk-H2BKXPBL.js} +2 -2
- package/dist/bundle/chunk-HIOJRPCT.js +93 -0
- package/dist/bundle/chunk-HIP43OGZ.js +34 -0
- package/dist/bundle/{chunk-2ULJW5BA.js → chunk-HMZAMHKN.js} +2 -2
- package/dist/bundle/{chunk-64E6QXXQ.js → chunk-HWLLVLAB.js} +10 -10
- package/dist/bundle/{chunk-373WJIHE.js → chunk-IADOBOKB.js} +2 -2
- package/dist/bundle/{chunk-B3TPS7BW.js → chunk-IBZ3IBO4.js} +9 -7
- package/dist/bundle/{chunk-QAT6UXZZ.js → chunk-IGF6EXBR.js} +53 -48
- package/dist/bundle/{chunk-KYNTSA6K.js → chunk-II7LST64.js} +5 -5
- package/dist/bundle/{chunk-JLKNUFL2.js → chunk-IIP43FQJ.js} +2 -2
- package/dist/bundle/{chunk-ELIYJXIY.js → chunk-JSDVK3JA.js} +2 -2
- package/dist/bundle/{chunk-UKMFPBAO.js → chunk-JW2CVCUH.js} +4 -4
- package/dist/bundle/{chunk-O5KDIVGE.js → chunk-K4LXGZTE.js} +23 -21
- package/dist/bundle/{chunk-RB674T6L.js → chunk-KFZUODXB.js} +76 -20
- package/dist/bundle/chunk-KPRGTTJH.js +34 -0
- package/dist/bundle/{chunk-XJVK7ETL.js → chunk-L5SE2XZP.js} +23 -15
- package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
- package/dist/bundle/{chunk-VTJF2L5E.js → chunk-LPHMAQJQ.js} +16 -16
- package/dist/bundle/{chunk-566W4Q6L.js → chunk-M6I2SQN7.js} +4 -4
- package/dist/bundle/{chunk-NLLWLCUZ.js → chunk-MEAPA4EZ.js} +2 -2
- package/dist/bundle/{chunk-J2HGHSLX.js → chunk-MKCNUI72.js} +4 -4
- package/dist/bundle/{chunk-CD736BG3.js → chunk-MUUHUHWC.js} +2 -1
- package/dist/bundle/{chunk-AHBUTDS7.js → chunk-OKXSTWKW.js} +8 -8
- package/dist/bundle/{chunk-W6FYYQ2J.js → chunk-OMMEQJOB.js} +3 -3
- package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
- package/dist/bundle/{chunk-KM4Y55ZE.js → chunk-P3ZTW2ZM.js} +7 -7
- package/dist/bundle/{chunk-5KNIVHP6.js → chunk-P7WPYKSB.js} +7 -20
- package/dist/bundle/{chunk-RAEKC6TV.js → chunk-PAEVBAM3.js} +9 -42
- package/dist/bundle/{chunk-LBFFI6FE.js → chunk-PGKIOSN3.js} +9 -7
- package/dist/bundle/{chunk-WJPVGXKA.js → chunk-QTM7USFA.js} +8 -13
- package/dist/bundle/{chunk-EN7OZ5JH.js → chunk-TFH5X46A.js} +37 -22
- package/dist/bundle/{chunk-OZJMZSFB.js → chunk-TI55J3BA.js} +6 -4
- package/dist/bundle/{chunk-R5GJZPRF.js → chunk-TJXPJ3A5.js} +572 -366
- package/dist/bundle/chunk-UQPKAY6I.js +106 -0
- package/dist/bundle/{chunk-JUKVJ7M2.js → chunk-UWVNRPT7.js} +56 -40
- package/dist/bundle/chunk-V36RIXFA.js +201 -0
- package/dist/bundle/{chunk-JIGMCW4C.js → chunk-V42KAPU3.js} +6 -6
- package/dist/bundle/{chunk-7SNS443B.js → chunk-VT6GZAF4.js} +35 -35
- package/dist/bundle/{chunk-ISK4K7UE.js → chunk-VVCZS42A.js} +1 -1
- package/dist/bundle/chunk-W62CON5K.js +166 -0
- package/dist/bundle/{chunk-YZ6SYLDC.js → chunk-XCOCPXCM.js} +2 -2
- package/dist/bundle/{chunk-G34Y5RAC.js → chunk-YADXWQHV.js} +29 -29
- package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
- package/dist/bundle/{chunk-IJ2S53WJ.js → chunk-YV4ABH6J.js} +7 -7
- package/dist/bundle/{chunk-B64EY2SC.js → chunk-ZSMCJKGP.js} +42 -41
- package/dist/bundle/chunk-ZYCLPJ7U.js +46 -0
- package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
- package/dist/bundle/{decode-5MHMPYKE.js → decode-XTOMXMGN.js} +10 -6
- package/dist/bundle/dispatch-T6TW2JJB.js +412 -0
- package/dist/bundle/drive.js +40 -22
- package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
- package/dist/bundle/{embed-TF66ODAR.js → embed-STHKKA6G.js} +9 -5
- package/dist/bundle/{embedder-EDWOIAC2.js → embedder-3XZEWHRO.js} +14 -10
- package/dist/bundle/entry-CNOYSSSD.js +22 -0
- package/dist/bundle/failure-DNQYXP2T.js +26 -0
- package/dist/bundle/first-run-F2SI24PK.js +30 -0
- package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
- package/dist/bundle/{google-A4F2WFO4.js → google-BYNSAIQI.js} +13 -9
- package/dist/bundle/{google-api-ZXGQOJUI.js → google-api-4VTZH7OP.js} +59 -52
- package/dist/bundle/grants-EUQXSICG.js +105 -0
- package/dist/bundle/{identity-4IO7WGG4.js → identity-ARDPFYV5.js} +6 -4
- package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
- package/dist/bundle/{login-A4QHJ5DA.js → login-4VQEC7VI.js} +65 -58
- package/dist/bundle/{mcp-VVMPUDSL.js → mcp-WBHKX5E3.js} +5 -3
- package/dist/bundle/{node-P4E63KXA.js → node-KM3CUABH.js} +9 -9
- package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
- package/dist/bundle/{node-sqlite-AFQTE4XZ.js → node-sqlite-3C6PSBIW.js} +14 -4
- package/dist/bundle/oauth-D6NJFPYU.js +22 -0
- package/dist/bundle/{open-WJCRBIP7.js → open-M2V2VYXO.js} +8 -3
- package/dist/bundle/{openai-3TIBDWZA.js → openai-ST2IWNUX.js} +18 -14
- package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
- package/dist/bundle/{program-AHZH65IT.js → program-Q4VWV2MR.js} +193 -147
- package/dist/bundle/prompt-MFIOJMAF.js +17 -0
- package/dist/bundle/{reasons-VHCVYH54.js → reasons-LOQ5J73F.js} +5 -3
- package/dist/bundle/{recognize-4EAKIMON.js → recognize-FBLMWXNE.js} +7 -3
- package/dist/bundle/{remote-HX3JP4EH.js → remote-XC3OXE4T.js} +10 -6
- package/dist/bundle/{rerank-BW3A4PUU.js → rerank-2XMKKF4S.js} +10 -6
- package/dist/bundle/{serve-YYOOLIBS.js → serve-Q2BQHNZB.js} +15 -10
- package/dist/bundle/{server-G6XTEEFI.js → server-42HPV3AH.js} +46 -39
- package/dist/bundle/server-EWZYN323.js +70 -0
- package/dist/bundle/{services-OAPILZOW.js → services-WU22S2MU.js} +100 -26
- package/dist/bundle/{sqlite-runtime-GTXDK4PE.js → sqlite-runtime-CSO6K6B2.js} +9 -4
- package/dist/bundle/start-TZWKM4AH.js +138 -0
- package/dist/bundle/{state-XG335LGZ.js → state-FLUT7U7R.js} +9 -5
- package/dist/bundle/{store-N53SJOPS.js → store-HDWMJ44E.js} +42 -17
- package/dist/bundle/{store-7KOXJNQP.js → store-TG6622NG.js} +20 -12
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
- package/dist/bundle/tokens-TXYURU4S.js +103 -0
- package/dist/commands/documents.d.ts +1 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +14 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +8 -7
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/contract-overrides.js +5 -5
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge-query.d.ts +2 -0
- package/dist/knowledge-query.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts +2 -0
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +13 -0
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts +2 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +9 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/drive-cli/SKILL.md +2 -1
- package/dist/bundle/chunk-3BXSLNWW.js +0 -3607
- package/dist/bundle/chunk-CGCQNYB3.js +0 -18
- package/dist/bundle/command-contract-XIACCAZL.js +0 -35
- package/dist/bundle/entry-CWYCQ53A.js +0 -17
- package/dist/bundle/first-run-YIH7EHJI.js +0 -24
- package/dist/bundle/first-screen-THH3XD5Y.js +0 -33
- package/dist/bundle/grants-3Z7DG3W3.js +0 -98
- package/dist/bundle/oauth-46XBJBML.js +0 -18
- package/dist/bundle/prompt-FFGBIT4A.js +0 -13
- package/dist/bundle/server-YKYEUIJT.js +0 -63
- package/dist/bundle/store-maintenance-command-W3TI52X2.js +0 -52
- package/dist/bundle/tokens-P7TEHKDD.js +0 -96
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
readSecret
|
|
5
|
+
} from "./chunk-OMMEQJOB.js";
|
|
6
|
+
import "./chunk-F3FOL42A.js";
|
|
7
|
+
import "./chunk-CBM2XAEZ.js";
|
|
8
|
+
import "./chunk-V36RIXFA.js";
|
|
9
|
+
import "./chunk-Y5E2WNWB.js";
|
|
10
|
+
import "./chunk-HIP43OGZ.js";
|
|
11
|
+
import "./chunk-UQPKAY6I.js";
|
|
12
|
+
import "./chunk-3U22QTU6.js";
|
|
13
|
+
import "./chunk-EBLA7GXY.js";
|
|
14
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
15
|
+
export {
|
|
16
|
+
readSecret
|
|
17
|
+
};
|
|
@@ -2,9 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
REASONS
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MUUHUHWC.js";
|
|
6
|
+
import "./chunk-LK2E2ELG.js";
|
|
7
|
+
import "./chunk-UQPKAY6I.js";
|
|
8
|
+
import "./chunk-3U22QTU6.js";
|
|
9
|
+
import "./chunk-EBLA7GXY.js";
|
|
8
10
|
import "./chunk-ZVVMGPBJ.js";
|
|
9
11
|
export {
|
|
10
12
|
REASONS
|
|
@@ -8,10 +8,14 @@ import {
|
|
|
8
8
|
openRecognizer,
|
|
9
9
|
openSpeechCutter,
|
|
10
10
|
toModelRate
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-V42KAPU3.js";
|
|
12
|
+
import "./chunk-CBM2XAEZ.js";
|
|
13
|
+
import "./chunk-V36RIXFA.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
+
import "./chunk-HIP43OGZ.js";
|
|
16
|
+
import "./chunk-UQPKAY6I.js";
|
|
17
|
+
import "./chunk-3U22QTU6.js";
|
|
18
|
+
import "./chunk-EBLA7GXY.js";
|
|
15
19
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
20
|
export {
|
|
17
21
|
SAMPLE_RATE,
|
|
@@ -8,14 +8,18 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-EORMZCVF.js";
|
|
12
|
+
import "./chunk-P3ZTW2ZM.js";
|
|
13
13
|
import "./chunk-5DPV7X27.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-TI55J3BA.js";
|
|
15
|
+
import "./chunk-3VSUT6BD.js";
|
|
16
|
+
import "./chunk-CBM2XAEZ.js";
|
|
17
|
+
import "./chunk-V36RIXFA.js";
|
|
18
18
|
import "./chunk-Y5E2WNWB.js";
|
|
19
|
+
import "./chunk-HIP43OGZ.js";
|
|
20
|
+
import "./chunk-UQPKAY6I.js";
|
|
21
|
+
import "./chunk-3U22QTU6.js";
|
|
22
|
+
import "./chunk-EBLA7GXY.js";
|
|
19
23
|
import "./chunk-ZVVMGPBJ.js";
|
|
20
24
|
export {
|
|
21
25
|
DEFAULT_OPENAI_MODEL,
|
|
@@ -4,18 +4,22 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P3ZTW2ZM.js";
|
|
8
8
|
import "./chunk-5DPV7X27.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-TI55J3BA.js";
|
|
10
|
+
import "./chunk-3VSUT6BD.js";
|
|
11
|
+
import "./chunk-CBM2XAEZ.js";
|
|
12
|
+
import "./chunk-V36RIXFA.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
+
import "./chunk-HIP43OGZ.js";
|
|
15
|
+
import "./chunk-UQPKAY6I.js";
|
|
16
|
+
import "./chunk-3U22QTU6.js";
|
|
17
|
+
import "./chunk-EBLA7GXY.js";
|
|
14
18
|
import {
|
|
15
19
|
__name
|
|
16
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
21
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
|
|
19
23
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
20
24
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
21
25
|
const typeIds = session.inputNames.includes("token_type_ids");
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YU3PTU3D.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M6I2SQN7.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -20,19 +20,23 @@ import {
|
|
|
20
20
|
calledTools,
|
|
21
21
|
httpActivityFile,
|
|
22
22
|
httpLock
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-GT5KTGCN.js";
|
|
24
|
+
import "./chunk-GJ4ZCIOP.js";
|
|
25
|
+
import "./chunk-5C7K6XIT.js";
|
|
26
|
+
import "./chunk-CBM2XAEZ.js";
|
|
27
|
+
import "./chunk-V36RIXFA.js";
|
|
28
|
+
import "./chunk-Y5E2WNWB.js";
|
|
29
|
+
import "./chunk-HIP43OGZ.js";
|
|
30
|
+
import "./chunk-UQPKAY6I.js";
|
|
31
|
+
import "./chunk-3U22QTU6.js";
|
|
27
32
|
import {
|
|
28
33
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-Y5E2WNWB.js";
|
|
34
|
+
} from "./chunk-EBLA7GXY.js";
|
|
31
35
|
import {
|
|
32
36
|
__name
|
|
33
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
34
38
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
36
40
|
import { randomUUID } from "node:crypto";
|
|
37
41
|
var MCP_PATH = "/mcp";
|
|
38
42
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -105,7 +109,7 @@ var toolsIn = /* @__PURE__ */ __name(async (request) => {
|
|
|
105
109
|
}
|
|
106
110
|
}, "toolsIn");
|
|
107
111
|
var serveOverHttp = /* @__PURE__ */ __name(async (build, options) => {
|
|
108
|
-
const { publicUrl, port, tokenFile, appName, onCode, onError, now, lockFile, version } = options;
|
|
112
|
+
const { publicUrl, port, tokenFile, appName, reaches, onCode, onError, now, lockFile, version } = options;
|
|
109
113
|
const lock = lockFile ? httpLock(lockFile, {
|
|
110
114
|
pid: process.pid,
|
|
111
115
|
startedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -125,6 +129,7 @@ var serveOverHttp = /* @__PURE__ */ __name(async (build, options) => {
|
|
|
125
129
|
resource,
|
|
126
130
|
file: tokenFile,
|
|
127
131
|
appName,
|
|
132
|
+
...reaches ? { reaches } : {},
|
|
128
133
|
onCode: /* @__PURE__ */ __name((code, expires) => {
|
|
129
134
|
lock?.update({ loginCode: code, loginCodeExpiresAt: expires.toISOString() });
|
|
130
135
|
onCode(code, expires);
|
|
@@ -2,79 +2,86 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LJ7E4HLQ.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3KJTJDDT.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KFZUODXB.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf,
|
|
19
19
|
serveStdio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XCOCPXCM.js";
|
|
21
21
|
import {
|
|
22
22
|
McpServer
|
|
23
23
|
} from "./chunk-5D4AEUVA.js";
|
|
24
24
|
import {
|
|
25
25
|
wholeList
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-KHNDZNQA.js";
|
|
28
|
-
import "./chunk-HNUSPNUQ.js";
|
|
29
|
-
import "./chunk-G34Y5RAC.js";
|
|
30
|
-
import "./chunk-VTJF2L5E.js";
|
|
31
|
-
import "./chunk-3BXSLNWW.js";
|
|
26
|
+
} from "./chunk-TFH5X46A.js";
|
|
32
27
|
import {
|
|
33
28
|
changesMessenger,
|
|
34
29
|
flatten,
|
|
35
30
|
itemOf
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-TR5656OS.js";
|
|
40
|
-
import "./chunk-2ULJW5BA.js";
|
|
41
|
-
import "./chunk-7SNS443B.js";
|
|
42
|
-
import "./chunk-5KNIVHP6.js";
|
|
43
|
-
import "./chunk-OYNSFQ7K.js";
|
|
44
|
-
import "./chunk-UKMFPBAO.js";
|
|
31
|
+
} from "./chunk-3KNZADHJ.js";
|
|
32
|
+
import "./chunk-EHEZSV6I.js";
|
|
33
|
+
import "./chunk-JW2CVCUH.js";
|
|
45
34
|
import {
|
|
46
35
|
MESSENGER_CHANGE_REFUSAL,
|
|
47
36
|
readOnlyLockOf,
|
|
48
37
|
readOnlyRefusal
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-IIP43FQJ.js";
|
|
39
|
+
import "./chunk-5C7K6XIT.js";
|
|
40
|
+
import "./chunk-7QTVIZII.js";
|
|
41
|
+
import "./chunk-YADXWQHV.js";
|
|
42
|
+
import "./chunk-A6EG7ZDS.js";
|
|
43
|
+
import "./chunk-AD62XJKO.js";
|
|
44
|
+
import "./chunk-HMZAMHKN.js";
|
|
45
|
+
import "./chunk-P7WPYKSB.js";
|
|
46
|
+
import "./chunk-ZYCLPJ7U.js";
|
|
47
|
+
import "./chunk-JSDVK3JA.js";
|
|
48
|
+
import "./chunk-EORMZCVF.js";
|
|
49
|
+
import "./chunk-P3ZTW2ZM.js";
|
|
54
50
|
import "./chunk-5DPV7X27.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-TI55J3BA.js";
|
|
52
|
+
import "./chunk-LPHMAQJQ.js";
|
|
53
|
+
import "./chunk-VT6GZAF4.js";
|
|
54
|
+
import "./chunk-GI5JBGXH.js";
|
|
55
|
+
import "./chunk-IADOBOKB.js";
|
|
56
|
+
import "./chunk-TJXPJ3A5.js";
|
|
57
|
+
import "./chunk-L5SE2XZP.js";
|
|
58
|
+
import "./chunk-HIOJRPCT.js";
|
|
59
|
+
import "./chunk-OKXSTWKW.js";
|
|
60
|
+
import "./chunk-IBZ3IBO4.js";
|
|
61
|
+
import "./chunk-3VSUT6BD.js";
|
|
62
|
+
import "./chunk-QTM7USFA.js";
|
|
63
|
+
import "./chunk-BSGOM3BD.js";
|
|
64
|
+
import "./chunk-F3FOL42A.js";
|
|
65
|
+
import "./chunk-D72URWJE.js";
|
|
66
|
+
import "./chunk-2AXA5SKP.js";
|
|
67
|
+
import "./chunk-LK2E2ELG.js";
|
|
68
|
+
import "./chunk-KPRGTTJH.js";
|
|
69
|
+
import "./chunk-CBM2XAEZ.js";
|
|
65
70
|
import {
|
|
66
71
|
mcpErrorResult
|
|
67
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-V36RIXFA.js";
|
|
73
|
+
import "./chunk-Y5E2WNWB.js";
|
|
74
|
+
import "./chunk-HIP43OGZ.js";
|
|
75
|
+
import "./chunk-UQPKAY6I.js";
|
|
68
76
|
import {
|
|
69
77
|
object
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-LSSIVBQI.js";
|
|
78
|
+
} from "./chunk-3U22QTU6.js";
|
|
79
|
+
import "./chunk-EBLA7GXY.js";
|
|
73
80
|
import {
|
|
74
81
|
__name
|
|
75
82
|
} from "./chunk-ZVVMGPBJ.js";
|
|
76
83
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
84
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
78
85
|
import { randomUUID } from "node:crypto";
|
|
79
86
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
80
87
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PER_RUN,
|
|
5
|
+
createServer,
|
|
6
|
+
envelope,
|
|
7
|
+
serveOverHttpUntilStopped,
|
|
8
|
+
serveOverStdio
|
|
9
|
+
} from "./chunk-IGF6EXBR.js";
|
|
10
|
+
import "./chunk-A6SLYOP2.js";
|
|
11
|
+
import "./chunk-3KJTJDDT.js";
|
|
12
|
+
import "./chunk-KFZUODXB.js";
|
|
13
|
+
import "./chunk-OZH4ALTI.js";
|
|
14
|
+
import "./chunk-XCOCPXCM.js";
|
|
15
|
+
import "./chunk-5D4AEUVA.js";
|
|
16
|
+
import "./chunk-ZSMCJKGP.js";
|
|
17
|
+
import "./chunk-TFH5X46A.js";
|
|
18
|
+
import "./chunk-PAEVBAM3.js";
|
|
19
|
+
import "./chunk-3KNZADHJ.js";
|
|
20
|
+
import "./chunk-EHEZSV6I.js";
|
|
21
|
+
import "./chunk-JW2CVCUH.js";
|
|
22
|
+
import "./chunk-IIP43FQJ.js";
|
|
23
|
+
import "./chunk-GT5KTGCN.js";
|
|
24
|
+
import "./chunk-GJ4ZCIOP.js";
|
|
25
|
+
import "./chunk-5C7K6XIT.js";
|
|
26
|
+
import "./chunk-36B7AIGP.js";
|
|
27
|
+
import "./chunk-7QTVIZII.js";
|
|
28
|
+
import "./chunk-YADXWQHV.js";
|
|
29
|
+
import "./chunk-A6EG7ZDS.js";
|
|
30
|
+
import "./chunk-AD62XJKO.js";
|
|
31
|
+
import "./chunk-HMZAMHKN.js";
|
|
32
|
+
import "./chunk-P7WPYKSB.js";
|
|
33
|
+
import "./chunk-ZYCLPJ7U.js";
|
|
34
|
+
import "./chunk-JSDVK3JA.js";
|
|
35
|
+
import "./chunk-EORMZCVF.js";
|
|
36
|
+
import "./chunk-P3ZTW2ZM.js";
|
|
37
|
+
import "./chunk-5DPV7X27.js";
|
|
38
|
+
import "./chunk-TI55J3BA.js";
|
|
39
|
+
import "./chunk-LPHMAQJQ.js";
|
|
40
|
+
import "./chunk-VT6GZAF4.js";
|
|
41
|
+
import "./chunk-GI5JBGXH.js";
|
|
42
|
+
import "./chunk-IADOBOKB.js";
|
|
43
|
+
import "./chunk-TJXPJ3A5.js";
|
|
44
|
+
import "./chunk-L5SE2XZP.js";
|
|
45
|
+
import "./chunk-HIOJRPCT.js";
|
|
46
|
+
import "./chunk-OKXSTWKW.js";
|
|
47
|
+
import "./chunk-IBZ3IBO4.js";
|
|
48
|
+
import "./chunk-3VSUT6BD.js";
|
|
49
|
+
import "./chunk-QTM7USFA.js";
|
|
50
|
+
import "./chunk-BSGOM3BD.js";
|
|
51
|
+
import "./chunk-F3FOL42A.js";
|
|
52
|
+
import "./chunk-D72URWJE.js";
|
|
53
|
+
import "./chunk-2AXA5SKP.js";
|
|
54
|
+
import "./chunk-LK2E2ELG.js";
|
|
55
|
+
import "./chunk-KPRGTTJH.js";
|
|
56
|
+
import "./chunk-CBM2XAEZ.js";
|
|
57
|
+
import "./chunk-V36RIXFA.js";
|
|
58
|
+
import "./chunk-Y5E2WNWB.js";
|
|
59
|
+
import "./chunk-HIP43OGZ.js";
|
|
60
|
+
import "./chunk-UQPKAY6I.js";
|
|
61
|
+
import "./chunk-3U22QTU6.js";
|
|
62
|
+
import "./chunk-EBLA7GXY.js";
|
|
63
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
64
|
+
export {
|
|
65
|
+
PER_RUN,
|
|
66
|
+
createServer,
|
|
67
|
+
envelope,
|
|
68
|
+
serveOverHttpUntilStopped,
|
|
69
|
+
serveOverStdio
|
|
70
|
+
};
|