@wirecat/drive-cli 0.45.0 → 0.46.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 +2 -2
- package/dist/bundle/{all-profiles-LTHNCWQW.js → all-profiles-O7CNQ7FO.js} +8 -8
- package/dist/bundle/{anthropic-NOJEF3V2.js → anthropic-6T67J2CE.js} +5 -5
- package/dist/bundle/app-server-BVBZT3UY.js +237 -0
- package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-GNXLBF2A.js → bun-sqlite-54W7JUY3.js} +4 -4
- package/dist/bundle/{chunk-IGB5CJCA.js → chunk-2DLAJGRN.js} +1 -1
- package/dist/bundle/{chunk-NQ6LLDDC.js → chunk-3HRDEJJW.js} +4 -4
- package/dist/bundle/{chunk-XPEWOPJR.js → chunk-3Z7WSD2A.js} +10 -8
- package/dist/bundle/{chunk-WPGCDWPU.js → chunk-44FV5JAS.js} +21 -21
- package/dist/bundle/{chunk-GX4WEMAG.js → chunk-4DW6QGEV.js} +11 -11
- package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
- package/dist/bundle/{chunk-LNB7BIZL.js → chunk-5MGIL5LW.js} +19 -17
- package/dist/bundle/{chunk-66N2DGGC.js → chunk-5MYFPQDA.js} +21 -14
- package/dist/bundle/{chunk-MWUITL6N.js → chunk-5TC3NCAF.js} +2 -2
- package/dist/bundle/{chunk-4UE7AVHZ.js → chunk-A3FU4RR6.js} +4 -4
- package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
- package/dist/bundle/{chunk-WZUJKUBK.js → chunk-AOOD3RMK.js} +7 -7
- package/dist/bundle/{chunk-Z4O6C7WR.js → chunk-AUS6TKP5.js} +35 -33
- package/dist/bundle/{chunk-OECPFZLP.js → chunk-BEXHAGXH.js} +96 -95
- package/dist/bundle/{chunk-3V6NPZY7.js → chunk-BHE7ZY2N.js} +45 -45
- package/dist/bundle/{chunk-GKHM6I64.js → chunk-BJ3JRO34.js} +7 -7
- package/dist/bundle/{chunk-2FTZBZOB.js → chunk-BQUPOB5H.js} +8 -8
- package/dist/bundle/{chunk-CDI67JSB.js → chunk-CFZWPIVC.js} +20 -20
- package/dist/bundle/{chunk-EVWXODYV.js → chunk-CKR3DVUK.js} +11 -11
- package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
- package/dist/bundle/{chunk-7XWUOCGW.js → chunk-D67JGWSC.js} +2 -2
- package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
- package/dist/bundle/{chunk-C6SMAEED.js → chunk-DL7D6Y3B.js} +199 -199
- package/dist/bundle/{chunk-PDH2QQQV.js → chunk-DORXXBFC.js} +7 -7
- package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
- package/dist/bundle/{chunk-ZQNXKWUY.js → chunk-FEULDMWM.js} +258 -244
- package/dist/bundle/{chunk-TDC6JGDA.js → chunk-G3FAOS52.js} +2 -2
- package/dist/bundle/{chunk-HOIUIKWS.js → chunk-GHOWRW7E.js} +4 -3
- package/dist/bundle/{chunk-C4XP5T73.js → chunk-GNFHZZ55.js} +5 -5
- package/dist/bundle/{chunk-K4N2DKE5.js → chunk-GOR3Z2FR.js} +2 -2
- package/dist/bundle/{chunk-WQMVSQPP.js → chunk-GQW4GRYR.js} +6 -6
- package/dist/bundle/{chunk-Y5EJSZXV.js → chunk-GWPKIRNQ.js} +5 -5
- package/dist/bundle/{chunk-HA3WCVGY.js → chunk-HEPIOCHN.js} +51 -49
- package/dist/bundle/{chunk-DC4T3FNP.js → chunk-IAW5A7OR.js} +27 -27
- package/dist/bundle/{chunk-4TQSNQVV.js → chunk-IGMRWQP3.js} +25 -25
- package/dist/bundle/{chunk-65GGKAQ7.js → chunk-IKNU5A5Y.js} +3 -3
- package/dist/bundle/{chunk-ZPMLLONT.js → chunk-JVTVAZ5X.js} +19 -19
- package/dist/bundle/{chunk-A6ZKTNTZ.js → chunk-K74PQVQZ.js} +7 -7
- package/dist/bundle/{server-2UQDEWTS.js → chunk-K7FRUB33.js} +40 -63
- package/dist/bundle/{chunk-ZS635F4O.js → chunk-KADPV4YA.js} +2 -2
- package/dist/bundle/{chunk-ZIHLE7LG.js → chunk-KJMBV574.js} +3252 -3019
- package/dist/bundle/{chunk-ICKNJIGE.js → chunk-LHIL46I3.js} +2 -2
- package/dist/bundle/{chunk-LWT55XC5.js → chunk-LJARCTGL.js} +4 -4
- package/dist/bundle/{chunk-64WJYT2F.js → chunk-LOTQ2HMT.js} +9 -9
- package/dist/bundle/{chunk-MJR2OTO4.js → chunk-LZ5OTVWH.js} +6 -6
- package/dist/bundle/{chunk-V7GN5BI7.js → chunk-MAXN7COO.js} +1 -1
- package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
- package/dist/bundle/{chunk-YJX4X564.js → chunk-NB2N6L3R.js} +6 -6
- package/dist/bundle/{chunk-GTYY6BIE.js → chunk-NDNTLUPS.js} +2 -2
- package/dist/bundle/{chunk-TOYPN2XX.js → chunk-NLEB26GA.js} +2 -2
- package/dist/bundle/{chunk-4TIC23D2.js → chunk-NM26XAS2.js} +1 -1
- package/dist/bundle/{chunk-7PVNJAQ2.js → chunk-NP3XLLN3.js} +3 -3
- package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
- package/dist/bundle/{chunk-NZIHPYY5.js → chunk-OWXTPXIQ.js} +11 -11
- package/dist/bundle/{chunk-BPBIBVFH.js → chunk-PDBBBUY7.js} +10 -10
- package/dist/bundle/{chunk-ZU732VCC.js → chunk-PH74B2VZ.js} +3 -3
- package/dist/bundle/{chunk-PJDO7AFZ.js → chunk-PJ7IQVOM.js} +2 -2
- package/dist/bundle/{chunk-CFT7UHF6.js → chunk-QTJUH3LS.js} +3 -3
- package/dist/bundle/{chunk-YE3J6DLY.js → chunk-QW36EOAM.js} +2 -2
- package/dist/bundle/{chunk-HLONHTSG.js → chunk-QWSRPXCJ.js} +4 -4
- package/dist/bundle/{chunk-LVDHWNJF.js → chunk-R2A3K7ZF.js} +5 -5
- package/dist/bundle/{chunk-SGOPYPVW.js → chunk-R2QRP7EJ.js} +9 -9
- package/dist/bundle/{chunk-35GRI4DI.js → chunk-RCS2SCX5.js} +5 -5
- package/dist/bundle/{chunk-CEO5HPRL.js → chunk-RJ633GFA.js} +2 -2
- package/dist/bundle/{chunk-N47CYWEM.js → chunk-SMHQA5J6.js} +13 -8
- package/dist/bundle/{chunk-YFLKH3NZ.js → chunk-SWMMR3FR.js} +2 -2
- package/dist/bundle/{chunk-P5KGFT7U.js → chunk-TRMIV3OA.js} +2 -2
- package/dist/bundle/{chunk-7NCG2SHR.js → chunk-VAGF723Z.js} +1 -1
- package/dist/bundle/{chunk-PWKXHDBQ.js → chunk-VCYFEWPD.js} +26 -26
- package/dist/bundle/{chunk-NKZ6V4JW.js → chunk-VHQNVG3J.js} +5 -5
- package/dist/bundle/{chunk-6KFA6HOM.js → chunk-VHT2WI4I.js} +19 -19
- package/dist/bundle/{chunk-QLZGLPJL.js → chunk-VYBOYBLX.js} +6 -6
- package/dist/bundle/{chunk-YJZBJ2TM.js → chunk-WUFCYDKB.js} +2 -2
- package/dist/bundle/{chunk-2YU3CXFD.js → chunk-XAZQTJXR.js} +40 -29
- package/dist/bundle/{chunk-I5EJHKNC.js → chunk-XEBFFKXO.js} +3 -3
- package/dist/bundle/{chunk-AH3SNVCV.js → chunk-XF5MFUEB.js} +15 -15
- package/dist/bundle/{chunk-VO4KOLQZ.js → chunk-ZBM4GEV2.js} +5 -4
- package/dist/bundle/{chunk-5ZVLM6YR.js → chunk-ZKXDI45R.js} +1 -1
- package/dist/bundle/command-contract-MXCBV3GJ.js +38 -0
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
- package/dist/bundle/{embed-5NAGJUMD.js → embed-FJKIIM43.js} +5 -5
- package/dist/bundle/{embedder-EWXLIGBY.js → embedder-NNQ5ZC25.js} +8 -8
- package/dist/bundle/{entry-YCPJ6H6U.js → entry-ZYSNPDSD.js} +6 -6
- package/dist/bundle/failure-M5HSCCJJ.js +37 -0
- package/dist/bundle/{first-run-LNAZDBB4.js → first-run-KA2UPZAU.js} +9 -9
- package/dist/bundle/first-screen-VQ3RXDMF.js +36 -0
- package/dist/bundle/{google-5FFKRHHC.js → google-ZYDFTHLN.js} +9 -9
- package/dist/bundle/google-api-2GT5PAW2.js +82 -0
- package/dist/bundle/{identity-53ZMPL2O.js → identity-R5OKB5O5.js} +2 -2
- package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
- package/dist/bundle/{login-VXXZZR6G.js → login-JU6NKW5P.js} +64 -64
- package/dist/bundle/mcp-JOQMFGBC.js +95 -0
- package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
- package/dist/bundle/{mcp-F4XZO76F.js → mcp-Z362OMZG.js} +77 -83
- package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
- package/dist/bundle/{node-sqlite-QJQ5S7KS.js → node-sqlite-TXPSRROT.js} +4 -4
- package/dist/bundle/{oauth-TZFDPAFE.js → oauth-NAIBKERJ.js} +6 -6
- package/dist/bundle/{open-IYM25QTL.js → open-3P5EPXPV.js} +3 -3
- package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
- package/dist/bundle/{program-YX7DZMPR.js → program-PA2J6OFM.js} +129 -151
- package/dist/bundle/{prompt-TGWTVIEK.js → prompt-3TX2SWOY.js} +4 -4
- package/dist/bundle/{reasons-Q5LOQESQ.js → reasons-GF2TYGX6.js} +3 -3
- package/dist/bundle/{recognize-AGPMWKIY.js → recognize-IFXOJHEA.js} +5 -5
- package/dist/bundle/{remote-QV7QSLAK.js → remote-663M42Y5.js} +6 -6
- package/dist/bundle/{rerank-HZKJJCS4.js → rerank-OT2F2DBV.js} +6 -6
- package/dist/bundle/{serve-NRJQOVT4.js → serve-PDNNI6O6.js} +8 -8
- package/dist/bundle/server-BFOEPMR7.js +56 -0
- package/dist/bundle/server-K566PJ7H.js +69 -0
- package/dist/bundle/{services-NZQWVMOE.js → services-5MCTECBU.js} +28 -28
- package/dist/bundle/{sqlite-runtime-6MXHTYYU.js → sqlite-runtime-BF3KDM7W.js} +4 -4
- package/dist/bundle/{state-IF2FLTSY.js → state-SZX65E74.js} +5 -5
- package/dist/bundle/{store-HVIBXOXS.js → store-TCWNLA3V.js} +14 -14
- package/dist/bundle/{store-HBD54IRL.js → store-UKPGGAPW.js} +16 -16
- package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +57 -0
- package/dist/bundle/tokens-DFCFRF7I.js +103 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +5 -9
- package/dist/commands/mcp.js.map +1 -1
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +13 -32
- package/dist/contract-overrides.js.map +1 -1
- package/dist/mcp.d.ts +1 -8
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +1 -8
- package/dist/mcp.js.map +1 -1
- package/dist/state.d.ts +8 -0
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +7 -0
- package/dist/state.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/command-contract-HX35D7KV.js +0 -38
- package/dist/bundle/failure-XBWHHBEW.js +0 -37
- package/dist/bundle/first-screen-P5NNFJD7.js +0 -36
- package/dist/bundle/google-api-TJCFOOAP.js +0 -82
- package/dist/bundle/mcp-2CJCJXSW.js +0 -95
- package/dist/bundle/server-R4JUHFSW.js +0 -56
- package/dist/bundle/store-maintenance-command-U3F4RGJB.js +0 -57
- package/dist/bundle/tokens-5D5YUA2Q.js +0 -103
- /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
- /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
DOC,
|
|
5
|
+
DOCUMENT_LIST_FIELDS,
|
|
6
|
+
FOLDER,
|
|
7
|
+
MAX_ENTRIES,
|
|
8
|
+
metadataJson,
|
|
9
|
+
supported,
|
|
10
|
+
tooManyEntries
|
|
11
|
+
} from "./chunk-VAGF723Z.js";
|
|
3
12
|
import {
|
|
4
13
|
ACCOUNT_FREE_COMMANDS,
|
|
5
14
|
ANY_PROFILE_COMMANDS,
|
|
@@ -20,6 +29,7 @@ import {
|
|
|
20
29
|
permissionNames,
|
|
21
30
|
policySettings,
|
|
22
31
|
profileDir,
|
|
32
|
+
profileSetLabel,
|
|
23
33
|
profileSetTokenFile,
|
|
24
34
|
readSnapshot,
|
|
25
35
|
readState,
|
|
@@ -30,7 +40,7 @@ import {
|
|
|
30
40
|
saveSnapshot,
|
|
31
41
|
saveState,
|
|
32
42
|
saveWalk
|
|
33
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-5MYFPQDA.js";
|
|
34
44
|
import {
|
|
35
45
|
apiMethod,
|
|
36
46
|
apiMethods,
|
|
@@ -40,7 +50,7 @@ import {
|
|
|
40
50
|
schemas,
|
|
41
51
|
validateApiParams,
|
|
42
52
|
validateRequest
|
|
43
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QTJUH3LS.js";
|
|
44
54
|
import {
|
|
45
55
|
DEFAULTS_ONLY,
|
|
46
56
|
SETTING_NAMES,
|
|
@@ -61,7 +71,26 @@ import {
|
|
|
61
71
|
textLimit,
|
|
62
72
|
unknownProfile,
|
|
63
73
|
writeConfig
|
|
64
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-GWPKIRNQ.js";
|
|
75
|
+
import {
|
|
76
|
+
blockKey,
|
|
77
|
+
blocksMarkdown,
|
|
78
|
+
catalogFiles,
|
|
79
|
+
diffBlocks,
|
|
80
|
+
documentIngestion,
|
|
81
|
+
documentKnowledge,
|
|
82
|
+
extractDocumentMemories,
|
|
83
|
+
fileMirrorState,
|
|
84
|
+
markdownBlocks,
|
|
85
|
+
mergeBlocks,
|
|
86
|
+
mirrorId,
|
|
87
|
+
mirrorStatus,
|
|
88
|
+
normalizeInlines,
|
|
89
|
+
spliceMarkdown,
|
|
90
|
+
syncDocuments,
|
|
91
|
+
syncMirrors,
|
|
92
|
+
watchMirrors
|
|
93
|
+
} from "./chunk-44FV5JAS.js";
|
|
65
94
|
import {
|
|
66
95
|
DISCOVERY_DESCRIPTIONS,
|
|
67
96
|
MEMO_SCENARIOS,
|
|
@@ -89,64 +118,36 @@ import {
|
|
|
89
118
|
skillCommand as skillCommand2,
|
|
90
119
|
suggest,
|
|
91
120
|
upgradeCommand
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import {
|
|
94
|
-
DOC,
|
|
95
|
-
DOCUMENT_LIST_FIELDS,
|
|
96
|
-
FOLDER,
|
|
97
|
-
MAX_ENTRIES,
|
|
98
|
-
metadataJson,
|
|
99
|
-
supported,
|
|
100
|
-
tooManyEntries
|
|
101
|
-
} from "./chunk-7NCG2SHR.js";
|
|
102
|
-
import {
|
|
103
|
-
blockKey,
|
|
104
|
-
blocksMarkdown,
|
|
105
|
-
catalogFiles,
|
|
106
|
-
diffBlocks,
|
|
107
|
-
documentIngestion,
|
|
108
|
-
documentKnowledge,
|
|
109
|
-
extractDocumentMemories,
|
|
110
|
-
fileMirrorState,
|
|
111
|
-
markdownBlocks,
|
|
112
|
-
mergeBlocks,
|
|
113
|
-
mirrorId,
|
|
114
|
-
mirrorStatus,
|
|
115
|
-
normalizeInlines,
|
|
116
|
-
spliceMarkdown,
|
|
117
|
-
syncDocuments,
|
|
118
|
-
syncMirrors,
|
|
119
|
-
watchMirrors
|
|
120
|
-
} from "./chunk-WPGCDWPU.js";
|
|
121
|
+
} from "./chunk-KJMBV574.js";
|
|
121
122
|
import {
|
|
122
123
|
googleError
|
|
123
|
-
} from "./chunk-
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
124
|
+
} from "./chunk-2DLAJGRN.js";
|
|
125
|
+
import "./chunk-DDYR6DYL.js";
|
|
126
|
+
import "./chunk-IGMRWQP3.js";
|
|
127
|
+
import "./chunk-SWMMR3FR.js";
|
|
128
|
+
import "./chunk-4NGLRHWO.js";
|
|
128
129
|
import {
|
|
129
130
|
skillCommand
|
|
130
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-XF5MFUEB.js";
|
|
131
132
|
import "./chunk-SBZB7HMU.js";
|
|
132
133
|
import {
|
|
133
134
|
DRIVE_APP
|
|
134
|
-
} from "./chunk-
|
|
135
|
-
import "./chunk-
|
|
136
|
-
import "./chunk-
|
|
135
|
+
} from "./chunk-ZKXDI45R.js";
|
|
136
|
+
import "./chunk-LZ5OTVWH.js";
|
|
137
|
+
import "./chunk-GHOWRW7E.js";
|
|
137
138
|
import {
|
|
138
139
|
VERSION
|
|
139
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-NM26XAS2.js";
|
|
140
141
|
import {
|
|
141
142
|
REASONS
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-MAXN7COO.js";
|
|
143
144
|
import "./chunk-GNI7INK6.js";
|
|
144
|
-
import "./chunk-
|
|
145
|
+
import "./chunk-3HRDEJJW.js";
|
|
145
146
|
import {
|
|
146
147
|
modelGateway,
|
|
147
148
|
storeInfo
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-
|
|
149
|
+
} from "./chunk-HEPIOCHN.js";
|
|
150
|
+
import "./chunk-IAW5A7OR.js";
|
|
150
151
|
import {
|
|
151
152
|
LIST_QUERY_GUIDE,
|
|
152
153
|
listQuery,
|
|
@@ -157,31 +158,31 @@ import {
|
|
|
157
158
|
typedQuery,
|
|
158
159
|
unfilteredQuery,
|
|
159
160
|
withQuery
|
|
160
|
-
} from "./chunk-
|
|
161
|
-
import "./chunk-
|
|
162
|
-
import "./chunk-
|
|
161
|
+
} from "./chunk-JVTVAZ5X.js";
|
|
162
|
+
import "./chunk-D67JGWSC.js";
|
|
163
|
+
import "./chunk-NP3XLLN3.js";
|
|
163
164
|
import {
|
|
164
165
|
newOperationId
|
|
165
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-DL7D6Y3B.js";
|
|
166
167
|
import {
|
|
167
168
|
columnName,
|
|
168
169
|
readSpreadsheet
|
|
169
|
-
} from "./chunk-
|
|
170
|
-
import "./chunk-
|
|
170
|
+
} from "./chunk-VCYFEWPD.js";
|
|
171
|
+
import "./chunk-DORXXBFC.js";
|
|
171
172
|
import {
|
|
172
173
|
applyDocumentTransfer,
|
|
173
174
|
previewDocumentTransfer
|
|
174
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-5MGIL5LW.js";
|
|
175
176
|
import {
|
|
176
177
|
commandsText,
|
|
177
178
|
inSection,
|
|
178
179
|
installHelp
|
|
179
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-SMHQA5J6.js";
|
|
180
181
|
import "./chunk-HTQTIKWP.js";
|
|
181
182
|
import {
|
|
182
183
|
answerEntity
|
|
183
|
-
} from "./chunk-
|
|
184
|
-
import "./chunk-
|
|
184
|
+
} from "./chunk-K74PQVQZ.js";
|
|
185
|
+
import "./chunk-BEXHAGXH.js";
|
|
185
186
|
import {
|
|
186
187
|
FETCH,
|
|
187
188
|
LOCAL_READ,
|
|
@@ -203,8 +204,8 @@ import {
|
|
|
203
204
|
resolveAISettings,
|
|
204
205
|
snakeKeys,
|
|
205
206
|
takesProfile
|
|
206
|
-
} from "./chunk-
|
|
207
|
-
import "./chunk-
|
|
207
|
+
} from "./chunk-AUS6TKP5.js";
|
|
208
|
+
import "./chunk-3Z7WSD2A.js";
|
|
208
209
|
import {
|
|
209
210
|
Command,
|
|
210
211
|
Help,
|
|
@@ -218,55 +219,55 @@ import {
|
|
|
218
219
|
hasSharedContract,
|
|
219
220
|
metaOf,
|
|
220
221
|
overrideSharedContract
|
|
221
|
-
} from "./chunk-
|
|
222
|
-
import "./chunk-
|
|
222
|
+
} from "./chunk-LOTQ2HMT.js";
|
|
223
|
+
import "./chunk-AIXLOMH4.js";
|
|
223
224
|
import {
|
|
224
225
|
parseDuration
|
|
225
|
-
} from "./chunk-
|
|
226
|
-
import "./chunk-
|
|
226
|
+
} from "./chunk-CFZWPIVC.js";
|
|
227
|
+
import "./chunk-GOR3Z2FR.js";
|
|
227
228
|
import {
|
|
228
229
|
levelFor
|
|
229
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-PJ7IQVOM.js";
|
|
230
231
|
import {
|
|
231
232
|
note
|
|
232
|
-
} from "./chunk-
|
|
233
|
-
import "./chunk-
|
|
233
|
+
} from "./chunk-ZBM4GEV2.js";
|
|
234
|
+
import "./chunk-OWXTPXIQ.js";
|
|
234
235
|
import {
|
|
235
236
|
installerOf,
|
|
236
237
|
latestVersion,
|
|
237
238
|
runUpdate,
|
|
238
239
|
updateNotice
|
|
239
|
-
} from "./chunk-
|
|
240
|
-
import "./chunk-
|
|
241
|
-
import "./chunk-
|
|
242
|
-
import "./chunk-
|
|
240
|
+
} from "./chunk-A3FU4RR6.js";
|
|
241
|
+
import "./chunk-MFS52LTZ.js";
|
|
242
|
+
import "./chunk-LJARCTGL.js";
|
|
243
|
+
import "./chunk-PDBBBUY7.js";
|
|
243
244
|
import {
|
|
244
245
|
readOnlyRefusal
|
|
245
|
-
} from "./chunk-
|
|
246
|
-
import "./chunk-
|
|
247
|
-
import "./chunk-
|
|
248
|
-
import "./chunk-
|
|
249
|
-
import "./chunk-
|
|
250
|
-
import "./chunk-
|
|
251
|
-
import "./chunk-
|
|
246
|
+
} from "./chunk-RJ633GFA.js";
|
|
247
|
+
import "./chunk-IKNU5A5Y.js";
|
|
248
|
+
import "./chunk-WUFCYDKB.js";
|
|
249
|
+
import "./chunk-LHIL46I3.js";
|
|
250
|
+
import "./chunk-KADPV4YA.js";
|
|
251
|
+
import "./chunk-PH74B2VZ.js";
|
|
252
|
+
import "./chunk-RCS2SCX5.js";
|
|
252
253
|
import "./chunk-5DPV7X27.js";
|
|
253
|
-
import "./chunk-
|
|
254
|
-
import "./chunk-
|
|
254
|
+
import "./chunk-GNFHZZ55.js";
|
|
255
|
+
import "./chunk-QW36EOAM.js";
|
|
255
256
|
import {
|
|
256
257
|
CATALOG_QUERY,
|
|
257
258
|
IMPORTED_DOCUMENT_QUERY,
|
|
258
259
|
openStore
|
|
259
|
-
} from "./chunk-
|
|
260
|
-
import "./chunk-
|
|
261
|
-
import "./chunk-
|
|
260
|
+
} from "./chunk-FEULDMWM.js";
|
|
261
|
+
import "./chunk-5TC3NCAF.js";
|
|
262
|
+
import "./chunk-AOOD3RMK.js";
|
|
262
263
|
import {
|
|
263
264
|
FACT_STATUSES,
|
|
264
265
|
FACT_TYPES,
|
|
265
266
|
MEMORY_KINDS,
|
|
266
267
|
MEMORY_SCOPES,
|
|
267
268
|
MEMORY_STATUSES
|
|
268
|
-
} from "./chunk-
|
|
269
|
-
import "./chunk-
|
|
269
|
+
} from "./chunk-NB2N6L3R.js";
|
|
270
|
+
import "./chunk-BHE7ZY2N.js";
|
|
270
271
|
import {
|
|
271
272
|
dateRange,
|
|
272
273
|
defineQuery,
|
|
@@ -276,14 +277,14 @@ import {
|
|
|
276
277
|
timezoneOf,
|
|
277
278
|
validateQuery,
|
|
278
279
|
zonedMoment
|
|
279
|
-
} from "./chunk-
|
|
280
|
-
import "./chunk-
|
|
281
|
-
import "./chunk-
|
|
282
|
-
import "./chunk-
|
|
280
|
+
} from "./chunk-R2QRP7EJ.js";
|
|
281
|
+
import "./chunk-O5EHUB2V.js";
|
|
282
|
+
import "./chunk-BQUPOB5H.js";
|
|
283
|
+
import "./chunk-GQW4GRYR.js";
|
|
283
284
|
import {
|
|
284
285
|
storePath
|
|
285
|
-
} from "./chunk-
|
|
286
|
-
import "./chunk-
|
|
286
|
+
} from "./chunk-TRMIV3OA.js";
|
|
287
|
+
import "./chunk-VYBOYBLX.js";
|
|
287
288
|
import {
|
|
288
289
|
createDeadline,
|
|
289
290
|
createOutputBuffer,
|
|
@@ -292,7 +293,7 @@ import {
|
|
|
292
293
|
processStreams,
|
|
293
294
|
projectFields,
|
|
294
295
|
saveConfigFile
|
|
295
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-VHT2WI4I.js";
|
|
296
297
|
import {
|
|
297
298
|
CliError,
|
|
298
299
|
boolean,
|
|
@@ -308,9 +309,9 @@ import {
|
|
|
308
309
|
string,
|
|
309
310
|
unknown,
|
|
310
311
|
writes
|
|
311
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-BJ3JRO34.js";
|
|
312
313
|
import "./chunk-Y5E2WNWB.js";
|
|
313
|
-
import "./chunk-
|
|
314
|
+
import "./chunk-NW7IMGRR.js";
|
|
314
315
|
import {
|
|
315
316
|
__commonJS,
|
|
316
317
|
__name,
|
|
@@ -2476,7 +2477,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
|
|
|
2476
2477
|
throw new CliError("permission_error", "downloading a model needs the network; --offline was requested", {
|
|
2477
2478
|
reason: "offline.refused"
|
|
2478
2479
|
});
|
|
2479
|
-
const { downloadImageModel, downloadTextModel } = await import("./services-
|
|
2480
|
+
const { downloadImageModel, downloadTextModel } = await import("./services-5MCTECBU.js");
|
|
2480
2481
|
const progress = /* @__PURE__ */ __name((line) => {
|
|
2481
2482
|
if (!program.opts().quiet)
|
|
2482
2483
|
streams.diagnostic(line);
|
|
@@ -2531,6 +2532,12 @@ var PROFILES_OPTION = {
|
|
|
2531
2532
|
takes_value: true,
|
|
2532
2533
|
mandatory: false
|
|
2533
2534
|
};
|
|
2535
|
+
var SERVER_PROFILES_OPTION = {
|
|
2536
|
+
flags: "--profiles <names|all>",
|
|
2537
|
+
description: "the server of several profiles that `mcp serve --profiles` serves: names, comma-separated, or all",
|
|
2538
|
+
takes_value: true,
|
|
2539
|
+
mandatory: false
|
|
2540
|
+
};
|
|
2534
2541
|
var SHELL_OVERRIDES = {
|
|
2535
2542
|
skill: [
|
|
2536
2543
|
{
|
|
@@ -2630,18 +2637,12 @@ var SHELL_OVERRIDES = {
|
|
|
2630
2637
|
after: ["serve", "revoke", "server"],
|
|
2631
2638
|
reason: MCP_REASON
|
|
2632
2639
|
},
|
|
2633
|
-
{
|
|
2634
|
-
command: ["mcp", "serve"],
|
|
2635
|
-
field: "description",
|
|
2636
|
-
before: "serve this profile to an agent over MCP, on stdin and stdout \u2014 `claude mcp add drive -- drive <profile> mcp serve`; with no profile, `drive mcp serve` serves every profile and each tool asks which",
|
|
2637
|
-
after: "serve this profile to an agent over MCP, on stdin and stdout \u2014 `claude mcp add drive -- drive <profile> mcp serve`; `drive mcp serve --profiles a,b` or `--profiles all` serves those profiles from one server and each tool asks which",
|
|
2638
|
-
reason: MCP_REASON
|
|
2639
|
-
},
|
|
2640
2640
|
{
|
|
2641
2641
|
command: ["mcp", "serve"],
|
|
2642
2642
|
field: "examples",
|
|
2643
2643
|
before: [
|
|
2644
2644
|
"drive personal mcp serve",
|
|
2645
|
+
"drive mcp serve --profiles work,personal",
|
|
2645
2646
|
"drive personal mcp serve --http --public-url https://laptop.example.ts.net"
|
|
2646
2647
|
],
|
|
2647
2648
|
after: [
|
|
@@ -2661,6 +2662,7 @@ var SHELL_OVERRIDES = {
|
|
|
2661
2662
|
takes_value: true,
|
|
2662
2663
|
mandatory: false
|
|
2663
2664
|
},
|
|
2665
|
+
PROFILES_OPTION,
|
|
2664
2666
|
{
|
|
2665
2667
|
flags: "--http",
|
|
2666
2668
|
description: "serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide",
|
|
@@ -2711,16 +2713,9 @@ var SHELL_OVERRIDES = {
|
|
|
2711
2713
|
},
|
|
2712
2714
|
{
|
|
2713
2715
|
command: ["mcp", "revoke"],
|
|
2714
|
-
field: "
|
|
2715
|
-
before: "
|
|
2716
|
-
after: "
|
|
2717
|
-
reason: MCP_REASON
|
|
2718
|
-
},
|
|
2719
|
-
{
|
|
2720
|
-
command: ["mcp", "revoke"],
|
|
2721
|
-
field: "options",
|
|
2722
|
-
before: [],
|
|
2723
|
-
after: [PROFILES_OPTION],
|
|
2716
|
+
field: "examples",
|
|
2717
|
+
before: ["drive personal mcp revoke", "drive mcp revoke --profiles all"],
|
|
2718
|
+
after: ["drive personal mcp revoke"],
|
|
2724
2719
|
reason: MCP_REASON
|
|
2725
2720
|
},
|
|
2726
2721
|
{
|
|
@@ -2744,7 +2739,8 @@ var SHELL_OVERRIDES = {
|
|
|
2744
2739
|
description: "make a permission stricter for this server only; repeat for more keys",
|
|
2745
2740
|
takes_value: true,
|
|
2746
2741
|
mandatory: false
|
|
2747
|
-
}
|
|
2742
|
+
},
|
|
2743
|
+
SERVER_PROFILES_OPTION
|
|
2748
2744
|
],
|
|
2749
2745
|
after: [
|
|
2750
2746
|
{
|
|
@@ -2759,23 +2755,9 @@ var SHELL_OVERRIDES = {
|
|
|
2759
2755
|
takes_value: true,
|
|
2760
2756
|
mandatory: false
|
|
2761
2757
|
},
|
|
2762
|
-
|
|
2758
|
+
SERVER_PROFILES_OPTION
|
|
2763
2759
|
],
|
|
2764
2760
|
reason: MCP_REASON
|
|
2765
|
-
},
|
|
2766
|
-
{
|
|
2767
|
-
command: ["mcp", "server", "stop"],
|
|
2768
|
-
field: "options",
|
|
2769
|
-
before: [],
|
|
2770
|
-
after: [PROFILES_OPTION],
|
|
2771
|
-
reason: MCP_REASON
|
|
2772
|
-
},
|
|
2773
|
-
{
|
|
2774
|
-
command: ["mcp", "server", "status"],
|
|
2775
|
-
field: "options",
|
|
2776
|
-
before: [],
|
|
2777
|
-
after: [PROFILES_OPTION],
|
|
2778
|
-
reason: MCP_REASON
|
|
2779
2761
|
}
|
|
2780
2762
|
],
|
|
2781
2763
|
notes: [
|
|
@@ -3971,8 +3953,8 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
3971
3953
|
"drive personal mcp serve --http --public-url https://laptop.example.ts.net"
|
|
3972
3954
|
]).option("--tools", "list the commands the server offers instead of starting it").option("--http", "serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide").option("--port <port>", `the local port for --http (default ${DEFAULT_PORT})`).option("--public-url <url>", "the tunnel's https address the browser apps use, e.g. https://<name>.ts.net or https://<name>.ts.net/drive");
|
|
3973
3955
|
withProfiles(serve).action(async (args) => {
|
|
3974
|
-
const { mcpTools, serveMcp, serveMcpOverHttp, serveProfiles } = await import("./mcp-
|
|
3975
|
-
const { portOf, publicUrlOf } = await import("./mcp-
|
|
3956
|
+
const { mcpTools, serveMcp, serveMcpOverHttp, serveProfiles } = await import("./mcp-Z362OMZG.js");
|
|
3957
|
+
const { portOf, publicUrlOf } = await import("./mcp-JOQMFGBC.js");
|
|
3976
3958
|
const tunnel = /* @__PURE__ */ __name(() => publicUrlOf(args.publicUrl, { missing: "--http", reaches: "the browser apps reach drive", path: true }), "tunnel");
|
|
3977
3959
|
const one = served(args.profiles, "mcp serve");
|
|
3978
3960
|
if ("set" in one) {
|
|
@@ -4011,7 +3993,7 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
4011
3993
|
refuseUnderReadOnly(env, "forget the browser logins");
|
|
4012
3994
|
if (policyFlags().readOnly)
|
|
4013
3995
|
throw readOnlyRefusal("--read-only", "forget the browser logins");
|
|
4014
|
-
const { revokeAll } = await import("./mcp-
|
|
3996
|
+
const { revokeAll } = await import("./mcp-JOQMFGBC.js");
|
|
4015
3997
|
const one = served(args.profiles, "mcp revoke");
|
|
4016
3998
|
if ("set" in one) {
|
|
4017
3999
|
revokeAll(profileSetTokenFile(env, one.set.option));
|
|
@@ -4023,11 +4005,14 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
4023
4005
|
});
|
|
4024
4006
|
const server = mcpServerCommand({
|
|
4025
4007
|
example: "drive personal",
|
|
4008
|
+
profiles: true,
|
|
4026
4009
|
target: /* @__PURE__ */ __name((self) => {
|
|
4027
4010
|
const one = served(self.opts().profiles, `mcp server ${self.name()}`);
|
|
4028
4011
|
if ("set" in one)
|
|
4029
4012
|
return {
|
|
4030
4013
|
invocation: "drive",
|
|
4014
|
+
// drive 0.45 marked every set's server "default"; a new key would leave those servers unstoppable.
|
|
4015
|
+
profiles: { option: one.set.option, key: "default", label: profileSetLabel(one.set) },
|
|
4031
4016
|
envPrefix: DRIVE_APP.envPrefix,
|
|
4032
4017
|
env,
|
|
4033
4018
|
tokenFile: profileSetTokenFile(env, one.set.option),
|
|
@@ -4044,15 +4029,8 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
4044
4029
|
version: DRIVE_APP.version
|
|
4045
4030
|
};
|
|
4046
4031
|
}, "target"),
|
|
4047
|
-
|
|
4048
|
-
answer: /* @__PURE__ */ __name((self, item) => {
|
|
4049
|
-
const given = self.opts().profiles;
|
|
4050
|
-
const one = given === void 0 ? void 0 : served(given, `mcp server ${self.name()}`);
|
|
4051
|
-
output(itemOf(one && "set" in one ? { ...item, profiles: one.set.option } : item));
|
|
4052
|
-
}, "answer")
|
|
4032
|
+
answer: /* @__PURE__ */ __name((_self, item) => output(itemOf(item)), "answer")
|
|
4053
4033
|
});
|
|
4054
|
-
for (const leaf of server.commands)
|
|
4055
|
-
withProfiles(leaf);
|
|
4056
4034
|
group.addCommand(server);
|
|
4057
4035
|
}, "installMcpCommandDefinition");
|
|
4058
4036
|
var installMcpCommand = /* @__PURE__ */ __name((...args) => customizeSharedCommand(sharedCommandTemplate(DRIVE_APP, "mcp"), "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.", () => {
|
|
@@ -22668,7 +22646,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22668
22646
|
json: json === true || jsonl === true || !process.stdout.isTTY,
|
|
22669
22647
|
answers: false
|
|
22670
22648
|
});
|
|
22671
|
-
const { login } = await import("./login-
|
|
22649
|
+
const { login } = await import("./login-JU6NKW5P.js");
|
|
22672
22650
|
output(itemOf(await login({
|
|
22673
22651
|
env,
|
|
22674
22652
|
profile: selected(),
|
|
@@ -22698,7 +22676,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22698
22676
|
const name = selected();
|
|
22699
22677
|
const config = readConfig(env);
|
|
22700
22678
|
const profile = activeProfile(env, name);
|
|
22701
|
-
const { credentials } = await import("./tokens-
|
|
22679
|
+
const { credentials } = await import("./tokens-DFCFRF7I.js");
|
|
22702
22680
|
credentials(env, profile.storage, options.keyring).remove(name);
|
|
22703
22681
|
writeConfig(env, config);
|
|
22704
22682
|
output(itemOf({ profile: name, signed_out: true, cached_data: "retained" }));
|
|
@@ -22766,7 +22744,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
|
|
|
22766
22744
|
return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
|
|
22767
22745
|
}, "selection");
|
|
22768
22746
|
var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
|
|
22769
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
22747
|
+
const { ensureSqlite } = await import("./sqlite-runtime-BF3KDM7W.js");
|
|
22770
22748
|
await ensureSqlite();
|
|
22771
22749
|
const { state, options } = selection(env, name, source);
|
|
22772
22750
|
const preview = await previewDocumentTransfer({ ...options, bindings });
|
|
@@ -22940,7 +22918,7 @@ var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22940
22918
|
// dist/commands/upgrade.js
|
|
22941
22919
|
import { join as join5 } from "node:path";
|
|
22942
22920
|
|
|
22943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
22944
22922
|
import { realpathSync } from "node:fs";
|
|
22945
22923
|
import { fileURLToPath } from "node:url";
|
|
22946
22924
|
var QUIET_WORDS = [
|
|
@@ -23348,9 +23326,9 @@ var prepareStore = /* @__PURE__ */ __name(async (index, env, name, rescan = fals
|
|
|
23348
23326
|
var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
|
|
23349
23327
|
if (name)
|
|
23350
23328
|
activeProfile(env, name);
|
|
23351
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
23329
|
+
const { ensureSqlite } = await import("./sqlite-runtime-BF3KDM7W.js");
|
|
23352
23330
|
await ensureSqlite();
|
|
23353
|
-
const { openStore: openStore2, storePath: storePath2 } = await import("./store-
|
|
23331
|
+
const { openStore: openStore2, storePath: storePath2 } = await import("./store-UKPGGAPW.js");
|
|
23354
23332
|
if (env.DRIVE_STORE)
|
|
23355
23333
|
throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
|
|
23356
23334
|
const store = await openStore2({ path: storePath2(env), env, command: "drive", version: VERSION });
|
|
@@ -23394,7 +23372,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23394
23372
|
linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
|
|
23395
23373
|
knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
|
|
23396
23374
|
openPictures: /* @__PURE__ */ __name(async () => {
|
|
23397
|
-
const { openPictureEmbedderFor, savePicture } = await import("./services-
|
|
23375
|
+
const { openPictureEmbedderFor, savePicture } = await import("./services-5MCTECBU.js");
|
|
23398
23376
|
const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
|
|
23399
23377
|
return {
|
|
23400
23378
|
save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
|
|
@@ -23412,7 +23390,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23412
23390
|
has_more: false,
|
|
23413
23391
|
meaning_skipped: "this Google account has no imported sources"
|
|
23414
23392
|
};
|
|
23415
|
-
const { searchNotes } = await import("./services-
|
|
23393
|
+
const { searchNotes } = await import("./services-5MCTECBU.js");
|
|
23416
23394
|
const result = await searchNotes(store, query, {
|
|
23417
23395
|
...options,
|
|
23418
23396
|
folderIds: selected ? [selected.id] : [],
|
|
@@ -23443,7 +23421,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23443
23421
|
};
|
|
23444
23422
|
}, "search"),
|
|
23445
23423
|
embed: /* @__PURE__ */ __name(async (max) => {
|
|
23446
|
-
const { embedNotes } = await import("./services-
|
|
23424
|
+
const { embedNotes } = await import("./services-5MCTECBU.js");
|
|
23447
23425
|
return embedNotes(store, { maxChunks: max, env, command: "drive" });
|
|
23448
23426
|
}, "embed"),
|
|
23449
23427
|
close: /* @__PURE__ */ __name(() => store.close(), "close")
|
|
@@ -23723,7 +23701,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23723
23701
|
});
|
|
23724
23702
|
}, "output");
|
|
23725
23703
|
const signedIn = /* @__PURE__ */ __name(async (name, scope) => {
|
|
23726
|
-
const { authorizedClient, checkAuthorization } = await import("./tokens-
|
|
23704
|
+
const { authorizedClient, checkAuthorization } = await import("./tokens-DFCFRF7I.js");
|
|
23727
23705
|
const client = authorizedClient(env, name, options.keyring, activeSignal);
|
|
23728
23706
|
await checkAuthorization(client, scope);
|
|
23729
23707
|
return client;
|
|
@@ -23732,7 +23710,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23732
23710
|
const name = selected();
|
|
23733
23711
|
if (options.source)
|
|
23734
23712
|
return options.source(name);
|
|
23735
|
-
const [{ googleSource }, client] = await Promise.all([import("./google-
|
|
23713
|
+
const [{ googleSource }, client] = await Promise.all([import("./google-ZYDFTHLN.js"), signedIn(name)]);
|
|
23736
23714
|
return googleSource(client);
|
|
23737
23715
|
}, "source");
|
|
23738
23716
|
const withIndex = /* @__PURE__ */ __name(async (fn) => {
|
|
@@ -23827,7 +23805,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23827
23805
|
if (options.api)
|
|
23828
23806
|
return await options.api.call(method, params, body);
|
|
23829
23807
|
const [{ googleApi }, client] = await Promise.all([
|
|
23830
|
-
import("./google-api-
|
|
23808
|
+
import("./google-api-2GT5PAW2.js"),
|
|
23831
23809
|
signedIn(selected(), descriptor.scope)
|
|
23832
23810
|
]);
|
|
23833
23811
|
return await googleApi(client).call(method, params, body);
|
|
@@ -23852,7 +23830,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23852
23830
|
if (options.download)
|
|
23853
23831
|
return options.download(id, mime);
|
|
23854
23832
|
const [{ googleDownload }, client] = await Promise.all([
|
|
23855
|
-
import("./google-api-
|
|
23833
|
+
import("./google-api-2GT5PAW2.js"),
|
|
23856
23834
|
signedIn(selected(), apiMethod(method).scope)
|
|
23857
23835
|
]);
|
|
23858
23836
|
return googleDownload(client)(id, mime);
|
|
@@ -23870,7 +23848,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23870
23848
|
let request = options.uploadRequest;
|
|
23871
23849
|
if (!request) {
|
|
23872
23850
|
const [{ googleUploadRequest }, client] = await Promise.all([
|
|
23873
|
-
import("./google-api-
|
|
23851
|
+
import("./google-api-2GT5PAW2.js"),
|
|
23874
23852
|
signedIn(selected(), apiMethod(method).scope)
|
|
23875
23853
|
]);
|
|
23876
23854
|
request = googleUploadRequest(client);
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-IKNU5A5Y.js";
|
|
6
|
+
import "./chunk-WUFCYDKB.js";
|
|
7
|
+
import "./chunk-VHT2WI4I.js";
|
|
8
|
+
import "./chunk-BJ3JRO34.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
10
10
|
import "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
export {
|
|
@@ -2,9 +2,9 @@ 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-MAXN7COO.js";
|
|
6
|
+
import "./chunk-O5EHUB2V.js";
|
|
7
|
+
import "./chunk-BJ3JRO34.js";
|
|
8
8
|
import "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
export {
|
|
10
10
|
REASONS
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-VHT2WI4I.js";
|
|
4
4
|
import {
|
|
5
5
|
CliError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BJ3JRO34.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
15
15
|
import { createRequire } from "node:module";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
18
18
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
19
19
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
20
20
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -71,7 +71,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
71
71
|
throw invalid();
|
|
72
72
|
}, "checkOggDuration");
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
75
75
|
var SAMPLE_RATE = 16e3;
|
|
76
76
|
var LEAD = SAMPLE_RATE / 2;
|
|
77
77
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|