@wirecat/drive-cli 0.66.0 → 0.67.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/contracts/wirecat.json +29 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WCQLIHUG.js → all-profiles-DVZUVAPQ.js} +14 -14
- package/dist/bundle/{anthropic-5RJMB6O7.js → anthropic-Y45C45O2.js} +8 -8
- package/dist/bundle/{app-server-3RGYXPKG.js → app-server-GTXUOUGD.js} +56 -56
- package/dist/bundle/{bun-L34VEKGG.js → bun-QVJV76QJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-H6IAXQXI.js → bun-sqlite-CC7PIAMH.js} +9 -9
- package/dist/bundle/{chunk-UAKX6DP4.js → chunk-2MEVCMBW.js} +5 -5
- package/dist/bundle/{chunk-7ZGJRVBH.js → chunk-2PIA45FC.js} +4 -4
- package/dist/bundle/{chunk-5PLINHEY.js → chunk-2Y3YBDZX.js} +151 -149
- package/dist/bundle/{chunk-BQXSE645.js → chunk-3RG6LL25.js} +12 -12
- package/dist/bundle/{chunk-3QFUDXMQ.js → chunk-4G7WQNG7.js} +3 -2
- package/dist/bundle/{chunk-5HVJK3ZJ.js → chunk-4VH7M2OD.js} +4 -4
- package/dist/bundle/{chunk-COGWKO2T.js → chunk-5DMPGTNR.js} +3 -3
- package/dist/bundle/{chunk-NYZS2LKF.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-4UHBJSMI.js → chunk-5TSILGTO.js} +508 -450
- package/dist/bundle/{chunk-WYTYHUFH.js → chunk-6ERQE4FS.js} +43 -43
- package/dist/bundle/{chunk-O53WLYX3.js → chunk-7AZCAUST.js} +2 -2
- package/dist/bundle/{chunk-P7HQFII6.js → chunk-7J2IP3WL.js} +7 -7
- package/dist/bundle/{chunk-UNTIVT47.js → chunk-7JKECODO.js} +1 -1
- package/dist/bundle/{chunk-UQPW42HF.js → chunk-AAZPDWRD.js} +1 -1
- package/dist/bundle/{chunk-2S3E2HVV.js → chunk-ABJQ6IDU.js} +17 -17
- package/dist/bundle/{chunk-GY4DAJSK.js → chunk-AJ3DFPRT.js} +35 -6
- package/dist/bundle/{chunk-JLCR24UM.js → chunk-AZKFZ7J7.js} +1 -1
- package/dist/bundle/{chunk-I5R5CMQR.js → chunk-BHSLMJF7.js} +5 -5
- package/dist/bundle/{chunk-AP4MX247.js → chunk-C72WYRXD.js} +12 -12
- package/dist/bundle/{chunk-OZOQLAWK.js → chunk-CWDC6QJM.js} +6 -6
- package/dist/bundle/{chunk-JCHF7LZT.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-M7543RUJ.js → chunk-DAFKV6DJ.js} +220 -15
- package/dist/bundle/{chunk-3SDJIMZB.js → chunk-E3XA56TS.js} +1 -1
- package/dist/bundle/{chunk-IIHZTV6V.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-FKKPVPZR.js → chunk-ETAFFY3J.js} +57 -57
- package/dist/bundle/{chunk-QJ57PV55.js → chunk-EXWOOST5.js} +102 -84
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-TYLEICTX.js → chunk-FOMQ4MG3.js} +3 -3
- package/dist/bundle/{chunk-VUUPFDRU.js → chunk-FS2PG2PE.js} +113 -39
- package/dist/bundle/{chunk-JQXK3M5M.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-VR3YKXHL.js → chunk-HJF2QGOX.js} +16 -16
- package/dist/bundle/{chunk-NK4GVFJH.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-XVZNFA2P.js → chunk-IRULPE5M.js} +293 -278
- package/dist/bundle/{chunk-QSELSDWE.js → chunk-JCNEPYQZ.js} +13 -13
- package/dist/bundle/{chunk-FA2TNA5X.js → chunk-JEMBW6IO.js} +1 -1
- package/dist/bundle/{chunk-H7XL6WTW.js → chunk-JJHDV32D.js} +2 -2
- package/dist/bundle/{chunk-LVAPSAHF.js → chunk-JLUQZZ26.js} +8 -8
- package/dist/bundle/{chunk-HPKE2GDP.js → chunk-JO7BJYAP.js} +18 -18
- package/dist/bundle/{chunk-VQKNKJYL.js → chunk-JRFKCYMW.js} +6 -6
- package/dist/bundle/{chunk-IRNDYNQX.js → chunk-JY2GZDJL.js} +4 -4
- package/dist/bundle/{chunk-YTIPTHEE.js → chunk-LSAIXPAX.js} +2 -2
- package/dist/bundle/{chunk-T3ULDA7C.js → chunk-LXRBTXCZ.js} +3 -3
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-PKM55ZRR.js → chunk-MBLB4TQI.js} +20 -20
- package/dist/bundle/{chunk-HQBLJLYH.js → chunk-MEQNAZ6R.js} +7 -7
- package/dist/bundle/{chunk-TAHISPDE.js → chunk-MEY7URZZ.js} +39 -35
- package/dist/bundle/{chunk-KRG5X5PH.js → chunk-MF46W7PQ.js} +2 -2
- package/dist/bundle/{chunk-6X3KUFRQ.js → chunk-MW46BLWH.js} +20 -20
- package/dist/bundle/{chunk-2AF77WMH.js → chunk-NFIR346J.js} +1 -1
- package/dist/bundle/{chunk-BIJW6AYA.js → chunk-NWYVOHIX.js} +3662 -3598
- package/dist/bundle/{chunk-HPSHQVJU.js → chunk-OOBSSU2G.js} +24 -19
- package/dist/bundle/{chunk-UG3GHFGY.js → chunk-P6A77LMP.js} +4 -4
- package/dist/bundle/{chunk-XLGDNI4S.js → chunk-PDHN4GHU.js} +5 -40
- package/dist/bundle/{chunk-ALE67WRR.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-SOOU5WO6.js → chunk-QOKPRFHM.js} +2 -2
- package/dist/bundle/{chunk-V2WXTILT.js → chunk-RC72RU66.js} +6 -6
- package/dist/bundle/{chunk-E2F2XIX6.js → chunk-RLH6BOEG.js} +8 -8
- package/dist/bundle/{chunk-D4MIMH2N.js → chunk-SJE7UGOW.js} +5 -5
- package/dist/bundle/{chunk-QF7VL4C3.js → chunk-SXJDCRXE.js} +1 -1
- package/dist/bundle/{chunk-5XLU4NN6.js → chunk-T2VAEDJS.js} +4 -4
- package/dist/bundle/{chunk-3NYH756U.js → chunk-U2ERT45N.js} +11 -6
- package/dist/bundle/{chunk-MZWXTJ4O.js → chunk-UFNE57VY.js} +3 -3
- package/dist/bundle/{chunk-6UJCCOZC.js → chunk-ULH3TNUP.js} +4 -4
- package/dist/bundle/{chunk-SZ6JFOL4.js → chunk-UOAHZV3K.js} +58 -37
- package/dist/bundle/{chunk-GVA3KTCD.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-D7KOAPG6.js → chunk-V7E25BUU.js} +2 -2
- package/dist/bundle/{chunk-KOY5HUBY.js → chunk-VZ5KETIX.js} +4 -4
- package/dist/bundle/{chunk-ULXEW6FT.js → chunk-WBKYZZQT.js} +1 -1
- package/dist/bundle/{chunk-7LT2G5BC.js → chunk-WKIQKGOF.js} +26 -26
- package/dist/bundle/{chunk-5VDVGDOC.js → chunk-WWW7YTFG.js} +1 -1
- package/dist/bundle/{chunk-G4TNKBDX.js → chunk-XZCF5XU7.js} +7 -7
- package/dist/bundle/{chunk-5K54RZBK.js → chunk-Y2QVNVHK.js} +1 -1
- package/dist/bundle/{chunk-7EP4AU6A.js → chunk-Y5WSRG3F.js} +3 -3
- package/dist/bundle/{chunk-FHBTQPA3.js → chunk-YI4DXASF.js} +37 -37
- package/dist/bundle/{chunk-OT7SQQJK.js → chunk-YVUAG7RF.js} +17 -17
- package/dist/bundle/{chunk-Y5U4HIZS.js → chunk-ZEPDEFVT.js} +2 -2
- package/dist/bundle/{chunk-HHRJPLFO.js → chunk-ZH4H5XTA.js} +1 -1
- package/dist/bundle/{chunk-JHMEETXI.js → chunk-ZK46UHDP.js} +2 -2
- package/dist/bundle/{chunk-PUMDOCAF.js → chunk-ZU5VQYNY.js} +1 -1
- package/dist/bundle/{cli-KW6QQVS5.js → cli-U4LSBYDV.js} +61 -61
- package/dist/bundle/command-contract-UU5T24ZZ.js +41 -0
- package/dist/bundle/{command-server-entry-OC4E4DED.js → command-server-entry-PK6FBUPO.js} +31 -31
- package/dist/bundle/{decode-AH5ZLLDK.js → decode-3ZE6NBKV.js} +8 -8
- package/dist/bundle/{dispatch-CDWZZ54Q.js → dispatch-WBEOHZDV.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-VC7MTXWY.js → echarts-6FWNCNXK.js} +2 -2
- package/dist/bundle/{embed-EPSQY6QG.js → embed-DGYBBZUW.js} +9 -9
- package/dist/bundle/{embedder-TK4U4TJR.js → embedder-O7A6VMWI.js} +12 -12
- package/dist/bundle/entry-CDJ2QSU2.js +25 -0
- package/dist/bundle/{failure-WSVZOPFE.js → failure-X6PSLVSO.js} +4 -4
- package/dist/bundle/first-run-UOQW7DN5.js +30 -0
- package/dist/bundle/first-screen-SNDV4YKF.js +39 -0
- package/dist/bundle/google-HPX52KMC.js +45 -0
- package/dist/bundle/{google-api-AV4X2JH3.js → google-api-HIMN4XL5.js} +63 -63
- package/dist/bundle/grants-RO42I6E4.js +111 -0
- package/dist/bundle/{identity-CGHHF7AK.js → identity-NFGHDPLL.js} +6 -6
- package/dist/bundle/{instructions-24PHDBBE.js → instructions-6JAQYCM6.js} +1 -1
- package/dist/bundle/{login-XHFESAFM.js → login-RZOQN63N.js} +69 -69
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-GIDULTV5.js → node-KSIX3GIH.js} +2 -2
- package/dist/bundle/{node-sqlite-LINBOAWK.js → node-sqlite-4FJ6WJXN.js} +10 -10
- package/dist/bundle/oauth-BKZAMFKK.js +22 -0
- package/dist/bundle/{open-RYFKPNCJ.js → open-4AQJGH42.js} +8 -8
- package/dist/bundle/{openai-Q7YYUHJF.js → openai-24F2OX55.js} +19 -19
- package/dist/bundle/{process-VPIZTIJR.js → process-7NOA2T7H.js} +1 -1
- package/dist/bundle/{program-IUXFRBZA.js → program-7JHMLDEX.js} +181 -225
- package/dist/bundle/{prompt-LF4KX3XL.js → prompt-NM66MAZ4.js} +8 -8
- package/dist/bundle/{reasons-JPYOU5GV.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-KEWTJXFH.js → recognize-DBKV2JYZ.js} +7 -7
- package/dist/bundle/{remote-HGGLB76S.js → remote-ABWUTBVB.js} +13 -13
- package/dist/bundle/{rerank-TDUKETFT.js → rerank-FQAU4ENY.js} +10 -10
- package/dist/bundle/{serve-XFYMKW5W.js → serve-QLJG4QZD.js} +12 -12
- package/dist/bundle/server-NUBLY5SV.js +74 -0
- package/dist/bundle/{server-PXIPSGFP.js → server-VGZNK5XD.js} +47 -47
- package/dist/bundle/{services-2BOCGMJU.js → services-5KARVUHK.js} +36 -36
- package/dist/bundle/{sqlite-runtime-R7M5XUMW.js → sqlite-runtime-ILF6EFQJ.js} +9 -9
- package/dist/bundle/{start-YRLT4MQZ.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-NZ7WRJWH.js → state-R2M56GPU.js} +9 -9
- package/dist/bundle/{store-ICDGPSEN.js → store-2OBVMUQL.js} +19 -19
- package/dist/bundle/{store-7LCVDO7G.js → store-DA4K7HWW.js} +21 -21
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +65 -0
- package/dist/bundle/tokens-VQDGSHRB.js +111 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/search.js +4 -4
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +2 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/transcripts.d.ts +4 -0
- package/dist/commands/transcripts.d.ts.map +1 -0
- package/dist/commands/transcripts.js +42 -0
- package/dist/commands/transcripts.js.map +1 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +14 -1
- package/dist/config.js.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +31 -28
- package/dist/google.js.map +1 -1
- package/dist/list-queries.d.ts +10 -0
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +12 -1
- package/dist/list-queries.js.map +1 -1
- package/dist/model.d.ts +4 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +2 -0
- package/dist/state.js.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -1
- package/dist/sync.js.map +1 -1
- package/dist/transcripts.d.ts +21 -0
- package/dist/transcripts.d.ts.map +1 -0
- package/dist/transcripts.js +48 -0
- package/dist/transcripts.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-CE543JBN.js +0 -41
- package/dist/bundle/entry-3VN23M7M.js +0 -25
- package/dist/bundle/first-run-7ZYJ7EB3.js +0 -30
- package/dist/bundle/first-screen-CZDH7QY3.js +0 -39
- package/dist/bundle/google-OBZMWA7J.js +0 -45
- package/dist/bundle/grants-WTRLN4ZI.js +0 -111
- package/dist/bundle/oauth-JHUX3KE3.js +0 -22
- package/dist/bundle/server-BDEV3CZJ.js +0 -74
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +0 -65
- package/dist/bundle/tokens-FGTBE7VW.js +0 -111
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -2,29 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
stdinFieldOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AAZPDWRD.js";
|
|
6
6
|
import {
|
|
7
7
|
isCommandServer
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NFIR346J.js";
|
|
9
9
|
import {
|
|
10
10
|
commandPathOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2MEVCMBW.js";
|
|
12
12
|
import {
|
|
13
13
|
commandServerRequest,
|
|
14
14
|
metaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2Y3YBDZX.js";
|
|
16
16
|
import {
|
|
17
17
|
errorObjectOf,
|
|
18
18
|
renderError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PV3AWPHR.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EA2OB75T.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/command-server.js
|
|
28
28
|
import { createInterface } from "node:readline";
|
|
29
29
|
var COMMAND_SERVER_PROTOCOL = 1;
|
|
30
30
|
var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
describeProgram,
|
|
7
7
|
flatten,
|
|
8
8
|
profileFree
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2Y3YBDZX.js";
|
|
10
10
|
import {
|
|
11
11
|
VERSION
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LSAIXPAX.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EA2OB75T.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UOAHZV3K.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -33,56 +33,56 @@ import {
|
|
|
33
33
|
refuseWriteBeforeConnecting,
|
|
34
34
|
registerPrompts,
|
|
35
35
|
syncsFirst
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WKIQKGOF.js";
|
|
37
37
|
import {
|
|
38
38
|
agentJson,
|
|
39
39
|
skillResource
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-OOBSSU2G.js";
|
|
41
41
|
import {
|
|
42
42
|
instructions
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-E3XA56TS.js";
|
|
44
44
|
import {
|
|
45
45
|
answeredWire
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-AZKFZ7J7.js";
|
|
47
47
|
import {
|
|
48
48
|
StdioServerTransport,
|
|
49
49
|
callerOf,
|
|
50
50
|
callingAgent,
|
|
51
51
|
serveStdio
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-V7E25BUU.js";
|
|
53
53
|
import {
|
|
54
54
|
McpServer,
|
|
55
55
|
ResourceTemplate
|
|
56
56
|
} from "./chunk-5D4AEUVA.js";
|
|
57
57
|
import {
|
|
58
58
|
connectedFor
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-YVUAG7RF.js";
|
|
60
60
|
import {
|
|
61
61
|
lackedNeed,
|
|
62
62
|
wholeList
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-JO7BJYAP.js";
|
|
64
64
|
import {
|
|
65
65
|
capability,
|
|
66
66
|
dateWindow,
|
|
67
67
|
guardFor,
|
|
68
68
|
servicesFor,
|
|
69
69
|
storedDeps
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-IRULPE5M.js";
|
|
71
71
|
import {
|
|
72
72
|
imageSize
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-6ERQE4FS.js";
|
|
74
74
|
import {
|
|
75
75
|
mcpHttpMarker
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-ULH3TNUP.js";
|
|
77
77
|
import {
|
|
78
78
|
warmEmbedders
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-BHSLMJF7.js";
|
|
80
80
|
import {
|
|
81
81
|
stdinFieldOf
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-AAZPDWRD.js";
|
|
83
83
|
import {
|
|
84
84
|
findCommand
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-2MEVCMBW.js";
|
|
86
86
|
import {
|
|
87
87
|
DEFAULT_OUTPUT_BYTES,
|
|
88
88
|
changesAuthorityAt,
|
|
@@ -95,38 +95,38 @@ import {
|
|
|
95
95
|
rootOf2 as rootOf,
|
|
96
96
|
sealed,
|
|
97
97
|
snakeKeys
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-2Y3YBDZX.js";
|
|
99
99
|
import {
|
|
100
100
|
withCaller
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-7J2IP3WL.js";
|
|
102
102
|
import {
|
|
103
103
|
levelFor,
|
|
104
104
|
readKeysForCommand
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-MBLB4TQI.js";
|
|
106
106
|
import {
|
|
107
107
|
readOnlyLockOf
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ZEPDEFVT.js";
|
|
109
109
|
import {
|
|
110
110
|
openStore
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-NWYVOHIX.js";
|
|
112
112
|
import {
|
|
113
113
|
pdfPreviewLimits
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-LXRBTXCZ.js";
|
|
115
115
|
import {
|
|
116
116
|
typedCommand
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-EXWOOST5.js";
|
|
118
118
|
import {
|
|
119
119
|
timezoneOf
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-UPCEHSIZ.js";
|
|
121
121
|
import {
|
|
122
122
|
isCliFailure
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-7AZCAUST.js";
|
|
124
124
|
import {
|
|
125
125
|
mcpErrorResult
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-PV3AWPHR.js";
|
|
127
127
|
import {
|
|
128
128
|
visibleControls
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-HCZYJMBP.js";
|
|
130
130
|
import {
|
|
131
131
|
description,
|
|
132
132
|
integer,
|
|
@@ -141,18 +141,18 @@ import {
|
|
|
141
141
|
regex,
|
|
142
142
|
strictObject,
|
|
143
143
|
string
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-JRFKCYMW.js";
|
|
145
145
|
import {
|
|
146
146
|
CliError
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-EA2OB75T.js";
|
|
148
148
|
import {
|
|
149
149
|
__name
|
|
150
150
|
} from "./chunk-ZVVMGPBJ.js";
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
153
153
|
import { randomUUID } from "node:crypto";
|
|
154
154
|
|
|
155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
156
156
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
157
157
|
let held;
|
|
158
158
|
return {
|
|
@@ -171,7 +171,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
171
171
|
};
|
|
172
172
|
}, "agentLog");
|
|
173
173
|
|
|
174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
175
175
|
var LISTED = 100;
|
|
176
176
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
177
177
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -209,7 +209,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
209
209
|
});
|
|
210
210
|
}, "registerResources");
|
|
211
211
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
213
213
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
214
214
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
215
215
|
var MessengerSession = class {
|
|
@@ -284,7 +284,7 @@ var MessengerSession = class {
|
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
288
288
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
289
289
|
const _command = messenger.app.command;
|
|
290
290
|
return {
|
|
@@ -338,7 +338,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
338
338
|
};
|
|
339
339
|
}, "attachmentsTools");
|
|
340
340
|
|
|
341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
342
342
|
var PHOTO_LIMIT = 512 * 1024;
|
|
343
343
|
var IMAGE_TYPES = [
|
|
344
344
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -392,7 +392,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
392
392
|
return new Uint8Array(Buffer.concat(chunks));
|
|
393
393
|
}, "readUpTo");
|
|
394
394
|
|
|
395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
396
396
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
397
397
|
stats_charts: tool({
|
|
398
398
|
title: "A chart from a chat's statistics",
|
|
@@ -429,14 +429,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
429
429
|
})
|
|
430
430
|
}), "statsTools");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
433
433
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
434
434
|
...messagesPhotoTools(messenger),
|
|
435
435
|
...attachmentsTools(messenger),
|
|
436
436
|
...statsTools(messenger)
|
|
437
437
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
438
438
|
|
|
439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
440
440
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
441
441
|
"streams",
|
|
442
442
|
"stdin",
|
|
@@ -760,7 +760,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
760
760
|
}, "serveOverStdio");
|
|
761
761
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
762
762
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
763
|
-
const { serveOverHttp } = await import("./serve-
|
|
763
|
+
const { serveOverHttp } = await import("./serve-QLJG4QZD.js");
|
|
764
764
|
const appName = messenger.app.command;
|
|
765
765
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
766
766
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JO7BJYAP.js";
|
|
6
6
|
import {
|
|
7
7
|
FloodMemory,
|
|
8
8
|
OFFLINE,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
servicesFor,
|
|
19
19
|
throughWrapper,
|
|
20
20
|
withFileLockAsync
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IRULPE5M.js";
|
|
22
22
|
import {
|
|
23
23
|
servingProfiles
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5DMPGTNR.js";
|
|
25
25
|
import {
|
|
26
26
|
asFirstWord,
|
|
27
27
|
baseContext,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
recalledAccount,
|
|
33
33
|
rememberAccount,
|
|
34
34
|
rootOf2 as rootOf
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2Y3YBDZX.js";
|
|
36
36
|
import {
|
|
37
37
|
providerErrorKey
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7J2IP3WL.js";
|
|
39
39
|
import {
|
|
40
40
|
AUTHORITY_KEY,
|
|
41
41
|
CEILING_KEY,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
limitBatch,
|
|
50
50
|
readKeysForCommand,
|
|
51
51
|
skipFlagFor
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-MBLB4TQI.js";
|
|
53
53
|
import {
|
|
54
54
|
chatReferenceOf,
|
|
55
55
|
ensureAccount,
|
|
@@ -57,21 +57,21 @@ import {
|
|
|
57
57
|
isId,
|
|
58
58
|
openStore,
|
|
59
59
|
pickPerson
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-NWYVOHIX.js";
|
|
61
61
|
import {
|
|
62
62
|
isCliFailure
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-7AZCAUST.js";
|
|
64
64
|
import {
|
|
65
65
|
resolvePaths
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-MW46BLWH.js";
|
|
67
67
|
import {
|
|
68
68
|
CliError
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-EA2OB75T.js";
|
|
70
70
|
import {
|
|
71
71
|
__name
|
|
72
72
|
} from "./chunk-ZVVMGPBJ.js";
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
75
75
|
import { openSync } from "node:fs";
|
|
76
76
|
import { createInterface } from "node:readline";
|
|
77
77
|
import { ReadStream } from "node:tty";
|
|
@@ -126,7 +126,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
126
126
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
127
127
|
}, "terminalAsker");
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
130
130
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
131
131
|
"help",
|
|
132
132
|
"guide",
|
|
@@ -206,7 +206,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
206
206
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
207
207
|
}, "refuseUnknownPermissionKeys");
|
|
208
208
|
|
|
209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
210
210
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
211
211
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
212
212
|
let warned = false;
|
|
@@ -782,7 +782,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
782
782
|
}
|
|
783
783
|
}, "keep");
|
|
784
784
|
|
|
785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
786
786
|
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
787
787
|
import { join } from "node:path";
|
|
788
788
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -877,7 +877,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
877
877
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
878
878
|
}, "waitForTurn");
|
|
879
879
|
|
|
880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
881
881
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
882
882
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
883
883
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -974,7 +974,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
974
974
|
});
|
|
975
975
|
}, "flooded");
|
|
976
976
|
|
|
977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
978
978
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
979
979
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
980
980
|
const write = currentOperation();
|
|
@@ -1073,7 +1073,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
1073
1073
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
1074
1074
|
}, "byPart");
|
|
1075
1075
|
|
|
1076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1077
1077
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1078
1078
|
let opened;
|
|
1079
1079
|
return {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EA2OB75T.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
13
13
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ULH3TNUP.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|