@wirecat/drive-cli 0.46.0 → 0.49.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/README.md +1 -1
- package/dist/age.d.ts +73 -0
- package/dist/age.d.ts.map +1 -0
- package/dist/age.js +44 -0
- package/dist/age.js.map +1 -0
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-O7CNQ7FO.js → all-profiles-WK2XXGPU.js} +5 -5
- package/dist/bundle/{anthropic-6T67J2CE.js → anthropic-R354D7GT.js} +3 -3
- package/dist/bundle/{app-server-BVBZT3UY.js → app-server-3YHJ757G.js} +46 -46
- package/dist/bundle/{bun-O6RL6LRQ.js → bun-JVDJVDHL.js} +2 -2
- package/dist/bundle/{bun-sqlite-54W7JUY3.js → bun-sqlite-KZCZWSRZ.js} +2 -2
- package/dist/bundle/{chunk-LOTQ2HMT.js → chunk-22LTNYO2.js} +3 -3
- package/dist/bundle/{chunk-5MGIL5LW.js → chunk-254VYUWN.js} +18 -15
- package/dist/bundle/{chunk-NLEB26GA.js → chunk-2BADVV4A.js} +2 -2
- package/dist/bundle/{chunk-XEBFFKXO.js → chunk-2CKGGIWF.js} +1 -1
- package/dist/bundle/{chunk-D67JGWSC.js → chunk-2ZFR67KY.js} +6 -3
- package/dist/bundle/{chunk-K74PQVQZ.js → chunk-3UHJC6HH.js} +6 -6
- package/dist/bundle/{chunk-44FV5JAS.js → chunk-45TPBTR3.js} +18 -18
- package/dist/bundle/{chunk-NP3XLLN3.js → chunk-463NMG57.js} +2 -2
- package/dist/bundle/{chunk-AOOD3RMK.js → chunk-467AQO7E.js} +5 -5
- package/dist/bundle/{chunk-FEULDMWM.js → chunk-46X7Z4FD.js} +1903 -1526
- package/dist/bundle/{chunk-IKNU5A5Y.js → chunk-4ORK4UAY.js} +2 -2
- package/dist/bundle/{chunk-GOR3Z2FR.js → chunk-5ISHP4TK.js} +1 -1
- package/dist/bundle/{chunk-R2A3K7ZF.js → chunk-5KR7BKDV.js} +4 -4
- package/dist/bundle/{chunk-GWPKIRNQ.js → chunk-624B6G64.js} +3 -3
- package/dist/bundle/{chunk-TRMIV3OA.js → chunk-65AW2AEQ.js} +1 -1
- package/dist/bundle/{chunk-BQUPOB5H.js → chunk-6Z3W7LTD.js} +7 -7
- package/dist/bundle/{chunk-XF5MFUEB.js → chunk-75VCGSNB.js} +10 -10
- package/dist/bundle/{chunk-K7FRUB33.js → chunk-7BA3HL7N.js} +32 -32
- package/dist/bundle/{chunk-NDNTLUPS.js → chunk-7WEISHFA.js} +1 -1
- package/dist/bundle/{chunk-GNFHZZ55.js → chunk-ABVFH76X.js} +4 -4
- package/dist/bundle/{chunk-BEXHAGXH.js → chunk-AN7HENGZ.js} +156 -144
- package/dist/bundle/{chunk-CFZWPIVC.js → chunk-BQV3WYXW.js} +26 -18
- package/dist/bundle/{chunk-SWMMR3FR.js → chunk-CB5NGX6E.js} +1 -1
- package/dist/bundle/{chunk-DL7D6Y3B.js → chunk-CCLDCM7J.js} +3320 -3282
- package/dist/bundle/{chunk-BHE7ZY2N.js → chunk-DKJGYYCP.js} +71 -43
- package/dist/bundle/{chunk-ZBM4GEV2.js → chunk-E2Y6GJZX.js} +3 -3
- package/dist/bundle/{chunk-CVIKKIGE.js → chunk-EF2RCQ3L.js} +1 -1
- package/dist/bundle/{chunk-DORXXBFC.js → chunk-EOZPMJJP.js} +5 -5
- package/dist/bundle/{chunk-GQW4GRYR.js → chunk-FB7I5JWC.js} +4 -4
- package/dist/bundle/{chunk-PDBBBUY7.js → chunk-FUJZ5S2Q.js} +8 -8
- package/dist/bundle/{chunk-OWXTPXIQ.js → chunk-FZQSGLHU.js} +10 -10
- package/dist/bundle/{chunk-4NGLRHWO.js → chunk-HBYE4EP2.js} +1 -1
- package/dist/bundle/{chunk-NB2N6L3R.js → chunk-HD3TFIT4.js} +5 -5
- package/dist/bundle/{chunk-HEPIOCHN.js → chunk-HF2T7E67.js} +55 -48
- package/dist/bundle/{chunk-NW7IMGRR.js → chunk-HIAO4MPA.js} +1 -1
- package/dist/bundle/{chunk-4DW6QGEV.js → chunk-HQ2PGEOK.js} +9 -9
- package/dist/bundle/{chunk-PH74B2VZ.js → chunk-HVM5LS5Z.js} +2 -2
- package/dist/bundle/{chunk-CKR3DVUK.js → chunk-IEAZAPC3.js} +20 -17
- package/dist/bundle/{chunk-GHOWRW7E.js → chunk-IRDGH7DV.js} +8 -1
- package/dist/bundle/{chunk-XAZQTJXR.js → chunk-IRNX4CO5.js} +16 -16
- package/dist/bundle/{chunk-LHIL46I3.js → chunk-ITZI7T2X.js} +1 -1
- package/dist/bundle/{chunk-NM26XAS2.js → chunk-JMOX454R.js} +1 -1
- package/dist/bundle/{chunk-AUS6TKP5.js → chunk-JMRHDZMV.js} +30 -30
- package/dist/bundle/{chunk-VHQNVG3J.js → chunk-JZ3SUK2M.js} +2 -2
- package/dist/bundle/{chunk-RJ633GFA.js → chunk-KK3BA4IS.js} +1 -1
- package/dist/bundle/{chunk-WUFCYDKB.js → chunk-KKZYZ32J.js} +1 -1
- package/dist/bundle/{chunk-VYBOYBLX.js → chunk-KYJYOZYG.js} +5 -5
- package/dist/bundle/{chunk-JVTVAZ5X.js → chunk-L5RZI2M5.js} +56 -17
- package/dist/bundle/{chunk-ZKXDI45R.js → chunk-LF7ACSTK.js} +1 -1
- package/dist/bundle/{chunk-LZ5OTVWH.js → chunk-MC77UZVA.js} +3 -3
- package/dist/bundle/{chunk-QWSRPXCJ.js → chunk-MP2UCK3Z.js} +4 -4
- package/dist/bundle/{chunk-LJARCTGL.js → chunk-NFU3OBCC.js} +3 -3
- package/dist/bundle/{chunk-3HRDEJJW.js → chunk-NVHB2MHX.js} +4 -4
- package/dist/bundle/{chunk-VCYFEWPD.js → chunk-NXFEZQDL.js} +25 -25
- package/dist/bundle/{chunk-G3FAOS52.js → chunk-P4NOTS3U.js} +2 -2
- package/dist/bundle/{chunk-5MYFPQDA.js → chunk-P4OU3OVF.js} +12 -12
- package/dist/bundle/{chunk-RCS2SCX5.js → chunk-P7INAZIT.js} +4 -4
- package/dist/bundle/{chunk-3Z7WSD2A.js → chunk-PPXNEHYX.js} +7 -7
- package/dist/bundle/{chunk-SMHQA5J6.js → chunk-QEM3MOSB.js} +14 -7
- package/dist/bundle/{chunk-KADPV4YA.js → chunk-R235IRSJ.js} +1 -1
- package/dist/bundle/{chunk-QTJUH3LS.js → chunk-RAAI3JLI.js} +1 -1
- package/dist/bundle/{chunk-KJMBV574.js → chunk-SSD2V4HR.js} +356 -304
- package/dist/bundle/{chunk-5TC3NCAF.js → chunk-U77RLMOK.js} +1 -1
- package/dist/bundle/{chunk-AIXLOMH4.js → chunk-W5EUHV3J.js} +1 -1
- package/dist/bundle/{chunk-IAW5A7OR.js → chunk-W5IDHD6C.js} +30 -26
- package/dist/bundle/{chunk-DXKVEOSS.js → chunk-XLJV3ZOH.js} +1 -1
- package/dist/bundle/{recognize-IFXOJHEA.js → chunk-XVXXWNAA.js} +6 -6
- package/dist/bundle/{chunk-IGMRWQP3.js → chunk-Y2AUB4TJ.js} +29 -25
- package/dist/bundle/{chunk-QW36EOAM.js → chunk-YOF5BC4G.js} +2 -2
- package/dist/bundle/{chunk-PJ7IQVOM.js → chunk-YYMHFXHK.js} +1 -1
- package/dist/bundle/{chunk-DDYR6DYL.js → chunk-ZK7Y5K63.js} +1 -1
- package/dist/bundle/command-contract-AEA45IX7.js +38 -0
- package/dist/bundle/decode-BE3VDYTJ.js +159 -0
- package/dist/bundle/drive.js +4 -4
- package/dist/bundle/{echarts-LD3AI55P.js → echarts-4OQHS575.js} +2 -2
- package/dist/bundle/{embed-FJKIIM43.js → embed-QR76SJDI.js} +3 -3
- package/dist/bundle/{embedder-NNQ5ZC25.js → embedder-EMIDKBYV.js} +6 -6
- package/dist/bundle/{entry-ZYSNPDSD.js → entry-FE4REJDO.js} +4 -4
- package/dist/bundle/{failure-M5HSCCJJ.js → failure-GYOTW6NN.js} +11 -11
- package/dist/bundle/{first-run-KA2UPZAU.js → first-run-ALPI62PX.js} +5 -5
- package/dist/bundle/first-screen-JLS57PIT.js +36 -0
- package/dist/bundle/{google-ZYDFTHLN.js → google-NV75VSCD.js} +4 -4
- package/dist/bundle/google-api-6623OUF2.js +82 -0
- package/dist/bundle/{identity-R5OKB5O5.js → identity-NZ7SP6OL.js} +2 -2
- package/dist/bundle/{instructions-RZMSW3OC.js → instructions-3QZBKKPF.js} +1 -1
- package/dist/bundle/{login-JU6NKW5P.js → login-KNBM6XUX.js} +54 -54
- package/dist/bundle/mcp-4NPK6BM3.js +95 -0
- package/dist/bundle/{mcp-Z362OMZG.js → mcp-XY2FGGUM.js} +68 -68
- package/dist/bundle/{node-ZRLYQL7J.js → node-R2BLYUSB.js} +2 -2
- package/dist/bundle/node-sqlite-PMRVP442.js +62 -0
- package/dist/bundle/{oauth-NAIBKERJ.js → oauth-NM2AKRRT.js} +4 -4
- package/dist/bundle/{open-3P5EPXPV.js → open-XZH5ZNDA.js} +1 -1
- package/dist/bundle/{process-LL77573L.js → process-IX5YWGDP.js} +1 -1
- package/dist/bundle/{program-PA2J6OFM.js → program-MDWQHGBY.js} +166 -96
- package/dist/bundle/{prompt-3TX2SWOY.js → prompt-5K6XGWSK.js} +2 -2
- package/dist/bundle/recognize-U7GDD6T2.js +22 -0
- package/dist/bundle/{remote-663M42Y5.js → remote-ZWXOGNQX.js} +4 -4
- package/dist/bundle/{rerank-OT2F2DBV.js → rerank-YRQBCS63.js} +4 -4
- package/dist/bundle/{serve-PDNNI6O6.js → serve-6PQ7K5RK.js} +6 -6
- package/dist/bundle/server-O7SS6NAY.js +56 -0
- package/dist/bundle/server-WT57TF6S.js +69 -0
- package/dist/bundle/{services-5MCTECBU.js → services-QBIQX236.js} +22 -22
- package/dist/bundle/{sqlite-runtime-BF3KDM7W.js → sqlite-runtime-7Q5UD2VR.js} +2 -2
- package/dist/bundle/{state-SZX65E74.js → state-U72TC26L.js} +3 -3
- package/dist/bundle/{store-TCWNLA3V.js → store-B4RAJ63G.js} +10 -10
- package/dist/bundle/{store-UKPGGAPW.js → store-FYABCSIH.js} +12 -12
- package/dist/bundle/store-maintenance-command-DAF5NI3T.js +57 -0
- package/dist/bundle/tokens-DISQJKDM.js +103 -0
- package/dist/commands/documents.d.ts +5 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +21 -9
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +8 -4
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/remote.d.ts +8 -0
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +16 -0
- package/dist/commands/remote.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -1
- package/dist/program.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-MXCBV3GJ.js +0 -38
- package/dist/bundle/first-screen-VQ3RXDMF.js +0 -36
- package/dist/bundle/google-api-2GT5PAW2.js +0 -82
- package/dist/bundle/mcp-JOQMFGBC.js +0 -95
- package/dist/bundle/node-sqlite-TXPSRROT.js +0 -46
- package/dist/bundle/server-BFOEPMR7.js +0 -56
- package/dist/bundle/server-K566PJ7H.js +0 -69
- package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +0 -57
- package/dist/bundle/tokens-DFCFRF7I.js +0 -103
- /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-YLBNPI7H.js} +0 -0
|
@@ -1,14 +1,5 @@
|
|
|
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";
|
|
12
3
|
import {
|
|
13
4
|
ACCOUNT_FREE_COMMANDS,
|
|
14
5
|
ANY_PROFILE_COMMANDS,
|
|
@@ -40,7 +31,16 @@ import {
|
|
|
40
31
|
saveSnapshot,
|
|
41
32
|
saveState,
|
|
42
33
|
saveWalk
|
|
43
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-P4OU3OVF.js";
|
|
35
|
+
import {
|
|
36
|
+
DOC,
|
|
37
|
+
DOCUMENT_LIST_FIELDS,
|
|
38
|
+
FOLDER,
|
|
39
|
+
MAX_ENTRIES,
|
|
40
|
+
metadataJson,
|
|
41
|
+
supported,
|
|
42
|
+
tooManyEntries
|
|
43
|
+
} from "./chunk-VAGF723Z.js";
|
|
44
44
|
import {
|
|
45
45
|
apiMethod,
|
|
46
46
|
apiMethods,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
schemas,
|
|
51
51
|
validateApiParams,
|
|
52
52
|
validateRequest
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RAAI3JLI.js";
|
|
54
54
|
import {
|
|
55
55
|
DEFAULTS_ONLY,
|
|
56
56
|
SETTING_NAMES,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
textLimit,
|
|
72
72
|
unknownProfile,
|
|
73
73
|
writeConfig
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-624B6G64.js";
|
|
75
75
|
import {
|
|
76
76
|
blockKey,
|
|
77
77
|
blocksMarkdown,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
syncDocuments,
|
|
91
91
|
syncMirrors,
|
|
92
92
|
watchMirrors
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-45TPBTR3.js";
|
|
94
94
|
import {
|
|
95
95
|
DISCOVERY_DESCRIPTIONS,
|
|
96
96
|
MEMO_SCENARIOS,
|
|
@@ -118,36 +118,36 @@ import {
|
|
|
118
118
|
skillCommand as skillCommand2,
|
|
119
119
|
suggest,
|
|
120
120
|
upgradeCommand
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-SSD2V4HR.js";
|
|
122
122
|
import {
|
|
123
123
|
googleError
|
|
124
124
|
} from "./chunk-2DLAJGRN.js";
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
125
|
+
import "./chunk-ZK7Y5K63.js";
|
|
126
|
+
import "./chunk-Y2AUB4TJ.js";
|
|
127
|
+
import "./chunk-CB5NGX6E.js";
|
|
128
|
+
import "./chunk-HBYE4EP2.js";
|
|
129
129
|
import {
|
|
130
130
|
skillCommand
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-75VCGSNB.js";
|
|
132
132
|
import "./chunk-SBZB7HMU.js";
|
|
133
133
|
import {
|
|
134
134
|
DRIVE_APP
|
|
135
|
-
} from "./chunk-
|
|
136
|
-
import "./chunk-
|
|
137
|
-
import "./chunk-
|
|
135
|
+
} from "./chunk-LF7ACSTK.js";
|
|
136
|
+
import "./chunk-MC77UZVA.js";
|
|
137
|
+
import "./chunk-IRDGH7DV.js";
|
|
138
138
|
import {
|
|
139
139
|
VERSION
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-JMOX454R.js";
|
|
141
141
|
import {
|
|
142
142
|
REASONS
|
|
143
143
|
} from "./chunk-MAXN7COO.js";
|
|
144
144
|
import "./chunk-GNI7INK6.js";
|
|
145
|
-
import "./chunk-
|
|
145
|
+
import "./chunk-NVHB2MHX.js";
|
|
146
146
|
import {
|
|
147
147
|
modelGateway,
|
|
148
148
|
storeInfo
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import "./chunk-
|
|
149
|
+
} from "./chunk-HF2T7E67.js";
|
|
150
|
+
import "./chunk-W5IDHD6C.js";
|
|
151
151
|
import {
|
|
152
152
|
LIST_QUERY_GUIDE,
|
|
153
153
|
listQuery,
|
|
@@ -158,31 +158,31 @@ import {
|
|
|
158
158
|
typedQuery,
|
|
159
159
|
unfilteredQuery,
|
|
160
160
|
withQuery
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
161
|
+
} from "./chunk-L5RZI2M5.js";
|
|
162
|
+
import "./chunk-2ZFR67KY.js";
|
|
163
|
+
import "./chunk-463NMG57.js";
|
|
164
164
|
import {
|
|
165
165
|
newOperationId
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-CCLDCM7J.js";
|
|
167
167
|
import {
|
|
168
168
|
columnName,
|
|
169
169
|
readSpreadsheet
|
|
170
|
-
} from "./chunk-
|
|
171
|
-
import "./chunk-
|
|
170
|
+
} from "./chunk-NXFEZQDL.js";
|
|
171
|
+
import "./chunk-EOZPMJJP.js";
|
|
172
172
|
import {
|
|
173
173
|
applyDocumentTransfer,
|
|
174
174
|
previewDocumentTransfer
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-254VYUWN.js";
|
|
176
176
|
import {
|
|
177
177
|
commandsText,
|
|
178
178
|
inSection,
|
|
179
179
|
installHelp
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-QEM3MOSB.js";
|
|
181
181
|
import "./chunk-HTQTIKWP.js";
|
|
182
182
|
import {
|
|
183
183
|
answerEntity
|
|
184
|
-
} from "./chunk-
|
|
185
|
-
import "./chunk-
|
|
184
|
+
} from "./chunk-3UHJC6HH.js";
|
|
185
|
+
import "./chunk-AN7HENGZ.js";
|
|
186
186
|
import {
|
|
187
187
|
FETCH,
|
|
188
188
|
LOCAL_READ,
|
|
@@ -204,8 +204,8 @@ import {
|
|
|
204
204
|
resolveAISettings,
|
|
205
205
|
snakeKeys,
|
|
206
206
|
takesProfile
|
|
207
|
-
} from "./chunk-
|
|
208
|
-
import "./chunk-
|
|
207
|
+
} from "./chunk-JMRHDZMV.js";
|
|
208
|
+
import "./chunk-PPXNEHYX.js";
|
|
209
209
|
import {
|
|
210
210
|
Command,
|
|
211
211
|
Help,
|
|
@@ -219,19 +219,19 @@ import {
|
|
|
219
219
|
hasSharedContract,
|
|
220
220
|
metaOf,
|
|
221
221
|
overrideSharedContract
|
|
222
|
-
} from "./chunk-
|
|
223
|
-
import "./chunk-
|
|
222
|
+
} from "./chunk-22LTNYO2.js";
|
|
223
|
+
import "./chunk-W5EUHV3J.js";
|
|
224
224
|
import {
|
|
225
225
|
parseDuration
|
|
226
|
-
} from "./chunk-
|
|
227
|
-
import "./chunk-
|
|
226
|
+
} from "./chunk-BQV3WYXW.js";
|
|
227
|
+
import "./chunk-5ISHP4TK.js";
|
|
228
228
|
import {
|
|
229
229
|
levelFor
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-YYMHFXHK.js";
|
|
231
231
|
import {
|
|
232
232
|
note
|
|
233
|
-
} from "./chunk-
|
|
234
|
-
import "./chunk-
|
|
233
|
+
} from "./chunk-E2Y6GJZX.js";
|
|
234
|
+
import "./chunk-FZQSGLHU.js";
|
|
235
235
|
import {
|
|
236
236
|
installerOf,
|
|
237
237
|
latestVersion,
|
|
@@ -239,35 +239,35 @@ import {
|
|
|
239
239
|
updateNotice
|
|
240
240
|
} from "./chunk-A3FU4RR6.js";
|
|
241
241
|
import "./chunk-MFS52LTZ.js";
|
|
242
|
-
import "./chunk-
|
|
243
|
-
import "./chunk-
|
|
242
|
+
import "./chunk-NFU3OBCC.js";
|
|
243
|
+
import "./chunk-FUJZ5S2Q.js";
|
|
244
244
|
import {
|
|
245
245
|
readOnlyRefusal
|
|
246
|
-
} from "./chunk-
|
|
247
|
-
import "./chunk-
|
|
248
|
-
import "./chunk-
|
|
249
|
-
import "./chunk-
|
|
250
|
-
import "./chunk-
|
|
251
|
-
import "./chunk-
|
|
252
|
-
import "./chunk-
|
|
246
|
+
} from "./chunk-KK3BA4IS.js";
|
|
247
|
+
import "./chunk-4ORK4UAY.js";
|
|
248
|
+
import "./chunk-KKZYZ32J.js";
|
|
249
|
+
import "./chunk-ITZI7T2X.js";
|
|
250
|
+
import "./chunk-R235IRSJ.js";
|
|
251
|
+
import "./chunk-HVM5LS5Z.js";
|
|
252
|
+
import "./chunk-P7INAZIT.js";
|
|
253
253
|
import "./chunk-5DPV7X27.js";
|
|
254
|
-
import "./chunk-
|
|
255
|
-
import "./chunk-
|
|
254
|
+
import "./chunk-ABVFH76X.js";
|
|
255
|
+
import "./chunk-YOF5BC4G.js";
|
|
256
256
|
import {
|
|
257
257
|
CATALOG_QUERY,
|
|
258
258
|
IMPORTED_DOCUMENT_QUERY,
|
|
259
259
|
openStore
|
|
260
|
-
} from "./chunk-
|
|
261
|
-
import "./chunk-
|
|
262
|
-
import "./chunk-
|
|
260
|
+
} from "./chunk-46X7Z4FD.js";
|
|
261
|
+
import "./chunk-U77RLMOK.js";
|
|
262
|
+
import "./chunk-467AQO7E.js";
|
|
263
263
|
import {
|
|
264
264
|
FACT_STATUSES,
|
|
265
265
|
FACT_TYPES,
|
|
266
266
|
MEMORY_KINDS,
|
|
267
267
|
MEMORY_SCOPES,
|
|
268
268
|
MEMORY_STATUSES
|
|
269
|
-
} from "./chunk-
|
|
270
|
-
import "./chunk-
|
|
269
|
+
} from "./chunk-HD3TFIT4.js";
|
|
270
|
+
import "./chunk-DKJGYYCP.js";
|
|
271
271
|
import {
|
|
272
272
|
dateRange,
|
|
273
273
|
defineQuery,
|
|
@@ -279,12 +279,12 @@ import {
|
|
|
279
279
|
zonedMoment
|
|
280
280
|
} from "./chunk-R2QRP7EJ.js";
|
|
281
281
|
import "./chunk-O5EHUB2V.js";
|
|
282
|
-
import "./chunk-
|
|
283
|
-
import "./chunk-
|
|
282
|
+
import "./chunk-6Z3W7LTD.js";
|
|
283
|
+
import "./chunk-FB7I5JWC.js";
|
|
284
284
|
import {
|
|
285
285
|
storePath
|
|
286
|
-
} from "./chunk-
|
|
287
|
-
import "./chunk-
|
|
286
|
+
} from "./chunk-65AW2AEQ.js";
|
|
287
|
+
import "./chunk-KYJYOZYG.js";
|
|
288
288
|
import {
|
|
289
289
|
createDeadline,
|
|
290
290
|
createOutputBuffer,
|
|
@@ -297,6 +297,7 @@ import {
|
|
|
297
297
|
import {
|
|
298
298
|
CliError,
|
|
299
299
|
boolean,
|
|
300
|
+
defineSteps,
|
|
300
301
|
isCliError,
|
|
301
302
|
isoTime,
|
|
302
303
|
looseObject,
|
|
@@ -305,13 +306,14 @@ import {
|
|
|
305
306
|
optional,
|
|
306
307
|
picklist,
|
|
307
308
|
record,
|
|
309
|
+
stepOf,
|
|
308
310
|
strictObject,
|
|
309
311
|
string,
|
|
310
312
|
unknown,
|
|
311
313
|
writes
|
|
312
314
|
} from "./chunk-BJ3JRO34.js";
|
|
313
315
|
import "./chunk-Y5E2WNWB.js";
|
|
314
|
-
import "./chunk-
|
|
316
|
+
import "./chunk-HIAO4MPA.js";
|
|
315
317
|
import {
|
|
316
318
|
__commonJS,
|
|
317
319
|
__name,
|
|
@@ -2477,7 +2479,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
|
|
|
2477
2479
|
throw new CliError("permission_error", "downloading a model needs the network; --offline was requested", {
|
|
2478
2480
|
reason: "offline.refused"
|
|
2479
2481
|
});
|
|
2480
|
-
const { downloadImageModel, downloadTextModel } = await import("./services-
|
|
2482
|
+
const { downloadImageModel, downloadTextModel } = await import("./services-QBIQX236.js");
|
|
2481
2483
|
const progress = /* @__PURE__ */ __name((line) => {
|
|
2482
2484
|
if (!program.opts().quiet)
|
|
2483
2485
|
streams.diagnostic(line);
|
|
@@ -3568,16 +3570,61 @@ var installDoctorCommand = /* @__PURE__ */ __name((...args) => {
|
|
|
3568
3570
|
// dist/commands/documents.js
|
|
3569
3571
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
3570
3572
|
import { dirname } from "node:path";
|
|
3571
|
-
|
|
3573
|
+
|
|
3574
|
+
// dist/age.js
|
|
3575
|
+
var DAY = 24 * 60 * 60 * 1e3;
|
|
3576
|
+
var SYNC = defineSteps([
|
|
3577
|
+
{ id: "sync.run", command: "sync", args: [], why: "copy the changes Google has made into the local store" }
|
|
3578
|
+
])[0];
|
|
3579
|
+
var ageOf = /* @__PURE__ */ __name((state, now = Date.now()) => {
|
|
3580
|
+
const at = state.lastSync ? Date.parse(state.lastSync) : Number.NaN;
|
|
3581
|
+
return Number.isNaN(at) ? { synced_at: null, age_days: null } : { synced_at: state.lastSync ?? null, age_days: Math.max(0, Math.floor((now - at) / DAY)) };
|
|
3582
|
+
}, "ageOf");
|
|
3583
|
+
var staleCopy = /* @__PURE__ */ __name((state, now = Date.now()) => {
|
|
3584
|
+
const { synced_at, age_days } = ageOf(state, now);
|
|
3585
|
+
const old = synced_at === null || now - Date.parse(synced_at) > DAY;
|
|
3586
|
+
if (!old)
|
|
3587
|
+
return {};
|
|
3588
|
+
const why = age_days === null ? "the local copy has no sync time; Google may have changed the document since it was copied" : `the local copy was synced ${age_days} day${age_days === 1 ? "" : "s"} ago; Google may have changed the document since`;
|
|
3589
|
+
return {
|
|
3590
|
+
missing: [{ field: "synced_at", why, step: SYNC.id }],
|
|
3591
|
+
next: [stepOf(SYNC)],
|
|
3592
|
+
meta: { complete: false }
|
|
3593
|
+
};
|
|
3594
|
+
}, "staleCopy");
|
|
3595
|
+
var freshness = /* @__PURE__ */ __name((remote, local2) => ({
|
|
3596
|
+
changed: local2 === void 0 || Date.parse(remote) !== Date.parse(local2),
|
|
3597
|
+
remote_modified_at: remote,
|
|
3598
|
+
local_modified_at: local2 ?? null
|
|
3599
|
+
}), "freshness");
|
|
3600
|
+
var changedCopy = /* @__PURE__ */ __name(({ changed, local_modified_at }) => {
|
|
3601
|
+
if (!changed)
|
|
3602
|
+
return {};
|
|
3603
|
+
const why = local_modified_at === null ? "the local copy has no modified time, so it cannot be compared with Google" : `Google changed the document after the local copy was made (${local_modified_at})`;
|
|
3604
|
+
return {
|
|
3605
|
+
missing: [{ field: "modified_at", why, step: SYNC.id }],
|
|
3606
|
+
next: [stepOf(SYNC)],
|
|
3607
|
+
meta: { complete: false }
|
|
3608
|
+
};
|
|
3609
|
+
}, "changedCopy");
|
|
3610
|
+
|
|
3611
|
+
// dist/commands/documents.js
|
|
3612
|
+
var storedDocument = /* @__PURE__ */ __name(({ env, selected }) => (input) => {
|
|
3572
3613
|
const id = fileId(input);
|
|
3573
3614
|
const profile = activeProfile(env, selected());
|
|
3574
|
-
const
|
|
3575
|
-
if (!
|
|
3615
|
+
const doc = readState(env, selected(), profile.principal).documents[id];
|
|
3616
|
+
if (!doc)
|
|
3576
3617
|
throw new CliError("not_found", "this source is not imported in the selected profile", {
|
|
3577
3618
|
reason: "document.not-imported"
|
|
3578
3619
|
});
|
|
3579
|
-
|
|
3580
|
-
|
|
3620
|
+
return { id, doc };
|
|
3621
|
+
}, "storedDocument");
|
|
3622
|
+
var importedDocument = /* @__PURE__ */ __name((context) => {
|
|
3623
|
+
const stored = storedDocument(context);
|
|
3624
|
+
return (input) => {
|
|
3625
|
+
const { id, doc } = stored(input);
|
|
3626
|
+
return { id, ref: doc.reference, hash: doc.hash, snapshot: readSnapshot(context.env, context.selected(), id) };
|
|
3627
|
+
};
|
|
3581
3628
|
}, "importedDocument");
|
|
3582
3629
|
var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
3583
3630
|
const { env, selected, output, withIndex } = context;
|
|
@@ -3598,11 +3645,13 @@ var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3598
3645
|
return index.knowledge.documents(profile.principal, ast, { limit, offset: (page - 1) * limit });
|
|
3599
3646
|
});
|
|
3600
3647
|
const state = readState(env, selected(), profile.principal);
|
|
3648
|
+
const age = ageOf(state);
|
|
3601
3649
|
output(listOf("documents list", {
|
|
3650
|
+
...staleCopy(state),
|
|
3602
3651
|
items: found.items.map((note2) => {
|
|
3603
3652
|
const id = (note2.path ?? "").replace(/\.md$/, "");
|
|
3604
3653
|
const doc = state.documents[id];
|
|
3605
|
-
return doc ? { ...metadataJson(doc.metadata), reference: doc.reference, tabs: doc.tabs } : { id, name: note2.title, reference: note2.ref, tabs: 0 };
|
|
3654
|
+
return doc ? { ...metadataJson(doc.metadata), reference: doc.reference, tabs: doc.tabs, ...age } : { id, name: note2.title, reference: note2.ref, tabs: 0, ...age };
|
|
3606
3655
|
}),
|
|
3607
3656
|
limit,
|
|
3608
3657
|
has_more: found.hasMore,
|
|
@@ -3612,12 +3661,14 @@ var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3612
3661
|
});
|
|
3613
3662
|
examples(annotate(documents.command("show"), { effects: LOCAL_READ }).argument("<document>", documentArgument).description("show an imported document's text, tabs and metadata"), ["drive personal documents show DOC_ID"]).action((input) => {
|
|
3614
3663
|
const { snapshot } = imported(input);
|
|
3664
|
+
const state = readState(env, selected(), activeProfile(env, selected()).principal);
|
|
3615
3665
|
output(itemOf({
|
|
3616
3666
|
metadata: metadataJson(snapshot.metadata),
|
|
3667
|
+
...ageOf(state),
|
|
3617
3668
|
text: snapshot.text,
|
|
3618
3669
|
tabs: snapshot.tabs,
|
|
3619
3670
|
...snapshot.notRead ? { not_read: snapshot.notRead } : {}
|
|
3620
|
-
}));
|
|
3671
|
+
}, staleCopy(state)));
|
|
3621
3672
|
});
|
|
3622
3673
|
examples(annotate(documents.command("export"), { effects: LOCAL_WRITE }).argument("<document>", documentArgument).description("write an imported document to a new Markdown file"), ["drive personal documents export DOC_ID --output notes.md"]).requiredOption("--output <file>", "path of the Markdown file to write; an existing file is refused").action((input, args) => {
|
|
3623
3674
|
const { id, snapshot } = imported(input);
|
|
@@ -3633,7 +3684,8 @@ var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3633
3684
|
});
|
|
3634
3685
|
throw error;
|
|
3635
3686
|
}
|
|
3636
|
-
|
|
3687
|
+
const state = readState(env, selected(), activeProfile(env, selected()).principal);
|
|
3688
|
+
output(itemOf({ id, path: args.output, format: "markdown", ...ageOf(state) }, staleCopy(state)));
|
|
3637
3689
|
});
|
|
3638
3690
|
}, "installDocumentCommands");
|
|
3639
3691
|
|
|
@@ -3916,9 +3968,13 @@ var installKnowledgeCommands = /* @__PURE__ */ __name((...args) => {
|
|
|
3916
3968
|
|
|
3917
3969
|
// dist/commands/mcp.js
|
|
3918
3970
|
var DEFAULT_PORT = 8765;
|
|
3971
|
+
var SERVER_PURPOSE = {
|
|
3972
|
+
stop: "whose server to stop",
|
|
3973
|
+
status: "whose server to check"
|
|
3974
|
+
};
|
|
3919
3975
|
var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, streams, options, selected, output, policyFlags, signal, profileWord }, createProgram2) => {
|
|
3920
3976
|
const profiles = /* @__PURE__ */ __name(() => Object.keys(readConfig(env, permissionNames(policyFlags().permissionKeys ?? /* @__PURE__ */ new Set())).profiles).sort(), "profiles");
|
|
3921
|
-
const served = /* @__PURE__ */ __name((given, words) => {
|
|
3977
|
+
const served = /* @__PURE__ */ __name((given, words, purpose = "to serve") => {
|
|
3922
3978
|
const word = profileWord();
|
|
3923
3979
|
const listed = /* @__PURE__ */ __name(() => `profiles here: ${profiles().join(", ") || "none"}`, "listed");
|
|
3924
3980
|
if (given === void 0 && (word ?? env.DRIVE_PROFILE ?? env.DRIVE_PROFILE_LOCK))
|
|
@@ -3928,7 +3984,7 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
3928
3984
|
if (given === void 0) {
|
|
3929
3985
|
if (profiles().length === 0)
|
|
3930
3986
|
throw new CliError("configuration_error", "no drive profile here yet; create one with drive personal session start (any name in place of personal)");
|
|
3931
|
-
throw new CliError("validation_error", `name the profiles
|
|
3987
|
+
throw new CliError("validation_error", `name the profiles ${purpose}: \`drive <profile> ${words}\`, or \`drive ${words} --profiles <a,b>\` or \`--profiles all\` \u2014 ${listed()}`, { profiles: profiles() });
|
|
3932
3988
|
}
|
|
3933
3989
|
const names = [...new Set(given.split(",").map((one) => one.trim()))].filter(Boolean).sort();
|
|
3934
3990
|
const lock = env.DRIVE_PROFILE_LOCK?.trim();
|
|
@@ -3953,8 +4009,8 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
3953
4009
|
"drive personal mcp serve --http --public-url https://laptop.example.ts.net"
|
|
3954
4010
|
]).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");
|
|
3955
4011
|
withProfiles(serve).action(async (args) => {
|
|
3956
|
-
const { mcpTools, serveMcp, serveMcpOverHttp, serveProfiles } = await import("./mcp-
|
|
3957
|
-
const { portOf, publicUrlOf } = await import("./mcp-
|
|
4012
|
+
const { mcpTools, serveMcp, serveMcpOverHttp, serveProfiles } = await import("./mcp-XY2FGGUM.js");
|
|
4013
|
+
const { portOf, publicUrlOf } = await import("./mcp-4NPK6BM3.js");
|
|
3958
4014
|
const tunnel = /* @__PURE__ */ __name(() => publicUrlOf(args.publicUrl, { missing: "--http", reaches: "the browser apps reach drive", path: true }), "tunnel");
|
|
3959
4015
|
const one = served(args.profiles, "mcp serve");
|
|
3960
4016
|
if ("set" in one) {
|
|
@@ -3993,8 +4049,8 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
3993
4049
|
refuseUnderReadOnly(env, "forget the browser logins");
|
|
3994
4050
|
if (policyFlags().readOnly)
|
|
3995
4051
|
throw readOnlyRefusal("--read-only", "forget the browser logins");
|
|
3996
|
-
const { revokeAll } = await import("./mcp-
|
|
3997
|
-
const one = served(args.profiles, "mcp revoke");
|
|
4052
|
+
const { revokeAll } = await import("./mcp-4NPK6BM3.js");
|
|
4053
|
+
const one = served(args.profiles, "mcp revoke", "whose browser logins to forget");
|
|
3998
4054
|
if ("set" in one) {
|
|
3999
4055
|
revokeAll(profileSetTokenFile(env, one.set.option));
|
|
4000
4056
|
output(itemOf({ revoked: true, profile: null, profiles: one.set.option }));
|
|
@@ -4007,7 +4063,7 @@ var installMcpCommandDefinition = /* @__PURE__ */ __name((program, { env, stream
|
|
|
4007
4063
|
example: "drive personal",
|
|
4008
4064
|
profiles: true,
|
|
4009
4065
|
target: /* @__PURE__ */ __name((self) => {
|
|
4010
|
-
const one = served(self.opts().profiles, `mcp server ${self.name()}
|
|
4066
|
+
const one = served(self.opts().profiles, `mcp server ${self.name()}`, SERVER_PURPOSE[self.name()]);
|
|
4011
4067
|
if ("set" in one)
|
|
4012
4068
|
return {
|
|
4013
4069
|
invocation: "drive",
|
|
@@ -22536,6 +22592,18 @@ var installRemoteCommands = /* @__PURE__ */ __name((program, helpers) => {
|
|
|
22536
22592
|
const documents = program.commands.find((command) => command.name() === "documents");
|
|
22537
22593
|
const documentArgument = "document id or Google Docs URL";
|
|
22538
22594
|
examples(annotate(documents.command("get"), { effects: GOOGLE_READ }).argument("<document>", documentArgument).description("read a document live from Google Docs, as JSON with every tab"), ["drive personal documents get DOC_ID --json"]).action(async (id) => output(itemOf(await call("docs.documents.get", { documentId: fileId(id), includeTabsContent: true }))));
|
|
22595
|
+
examples(annotate(documents.command("check"), { effects: GOOGLE_READ }).argument("<document>", documentArgument).description("ask Google whether an imported document changed since its local copy was made"), ["drive personal documents check DOC_ID"]).action(async (input) => {
|
|
22596
|
+
const { id, doc } = helpers.stored(input);
|
|
22597
|
+
const live = await call("drive.files.get", {
|
|
22598
|
+
fileId: id,
|
|
22599
|
+
fields: "modifiedTime",
|
|
22600
|
+
supportsAllDrives: true
|
|
22601
|
+
});
|
|
22602
|
+
if (!live.modifiedTime)
|
|
22603
|
+
throw new CliError("provider_error", "Google returned no modified time for this document");
|
|
22604
|
+
const found = freshness(live.modifiedTime, doc.metadata.modifiedAt);
|
|
22605
|
+
output(itemOf({ id, ...found }, changedCopy(found)));
|
|
22606
|
+
});
|
|
22539
22607
|
examples(annotate(documents.command("create"), { effects: GOOGLE_WRITE }).description("create an empty Google Doc"), [
|
|
22540
22608
|
`drive personal documents create --title "Meeting notes"`
|
|
22541
22609
|
]).requiredOption("--title <title>", "title of the new document").action(async (args) => output(itemOf(await call("docs.documents.create", {}, { title: args.title }))));
|
|
@@ -22646,7 +22714,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22646
22714
|
json: json === true || jsonl === true || !process.stdout.isTTY,
|
|
22647
22715
|
answers: false
|
|
22648
22716
|
});
|
|
22649
|
-
const { login } = await import("./login-
|
|
22717
|
+
const { login } = await import("./login-KNBM6XUX.js");
|
|
22650
22718
|
output(itemOf(await login({
|
|
22651
22719
|
env,
|
|
22652
22720
|
profile: selected(),
|
|
@@ -22676,7 +22744,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22676
22744
|
const name = selected();
|
|
22677
22745
|
const config = readConfig(env);
|
|
22678
22746
|
const profile = activeProfile(env, name);
|
|
22679
|
-
const { credentials } = await import("./tokens-
|
|
22747
|
+
const { credentials } = await import("./tokens-DISQJKDM.js");
|
|
22680
22748
|
credentials(env, profile.storage, options.keyring).remove(name);
|
|
22681
22749
|
writeConfig(env, config);
|
|
22682
22750
|
output(itemOf({ profile: name, signed_out: true, cached_data: "retained" }));
|
|
@@ -22744,7 +22812,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
|
|
|
22744
22812
|
return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
|
|
22745
22813
|
}, "selection");
|
|
22746
22814
|
var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
|
|
22747
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
22815
|
+
const { ensureSqlite } = await import("./sqlite-runtime-7Q5UD2VR.js");
|
|
22748
22816
|
await ensureSqlite();
|
|
22749
22817
|
const { state, options } = selection(env, name, source);
|
|
22750
22818
|
const preview = await previewDocumentTransfer({ ...options, bindings });
|
|
@@ -22918,7 +22986,7 @@ var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22918
22986
|
// dist/commands/upgrade.js
|
|
22919
22987
|
import { join as join5 } from "node:path";
|
|
22920
22988
|
|
|
22921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
22922
22990
|
import { realpathSync } from "node:fs";
|
|
22923
22991
|
import { fileURLToPath } from "node:url";
|
|
22924
22992
|
var QUIET_WORDS = [
|
|
@@ -23326,9 +23394,9 @@ var prepareStore = /* @__PURE__ */ __name(async (index, env, name, rescan = fals
|
|
|
23326
23394
|
var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
|
|
23327
23395
|
if (name)
|
|
23328
23396
|
activeProfile(env, name);
|
|
23329
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
23397
|
+
const { ensureSqlite } = await import("./sqlite-runtime-7Q5UD2VR.js");
|
|
23330
23398
|
await ensureSqlite();
|
|
23331
|
-
const { openStore: openStore2, storePath: storePath2 } = await import("./store-
|
|
23399
|
+
const { openStore: openStore2, storePath: storePath2 } = await import("./store-FYABCSIH.js");
|
|
23332
23400
|
if (env.DRIVE_STORE)
|
|
23333
23401
|
throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
|
|
23334
23402
|
const store = await openStore2({ path: storePath2(env), env, command: "drive", version: VERSION });
|
|
@@ -23372,7 +23440,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23372
23440
|
linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
|
|
23373
23441
|
knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
|
|
23374
23442
|
openPictures: /* @__PURE__ */ __name(async () => {
|
|
23375
|
-
const { openPictureEmbedderFor, savePicture } = await import("./services-
|
|
23443
|
+
const { openPictureEmbedderFor, savePicture } = await import("./services-QBIQX236.js");
|
|
23376
23444
|
const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
|
|
23377
23445
|
return {
|
|
23378
23446
|
save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
|
|
@@ -23390,7 +23458,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23390
23458
|
has_more: false,
|
|
23391
23459
|
meaning_skipped: "this Google account has no imported sources"
|
|
23392
23460
|
};
|
|
23393
|
-
const { searchNotes } = await import("./services-
|
|
23461
|
+
const { searchNotes } = await import("./services-QBIQX236.js");
|
|
23394
23462
|
const result = await searchNotes(store, query, {
|
|
23395
23463
|
...options,
|
|
23396
23464
|
folderIds: selected ? [selected.id] : [],
|
|
@@ -23421,7 +23489,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23421
23489
|
};
|
|
23422
23490
|
}, "search"),
|
|
23423
23491
|
embed: /* @__PURE__ */ __name(async (max) => {
|
|
23424
|
-
const { embedNotes } = await import("./services-
|
|
23492
|
+
const { embedNotes } = await import("./services-QBIQX236.js");
|
|
23425
23493
|
return embedNotes(store, { maxChunks: max, env, command: "drive" });
|
|
23426
23494
|
}, "embed"),
|
|
23427
23495
|
close: /* @__PURE__ */ __name(() => store.close(), "close")
|
|
@@ -23701,7 +23769,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23701
23769
|
});
|
|
23702
23770
|
}, "output");
|
|
23703
23771
|
const signedIn = /* @__PURE__ */ __name(async (name, scope) => {
|
|
23704
|
-
const { authorizedClient, checkAuthorization } = await import("./tokens-
|
|
23772
|
+
const { authorizedClient, checkAuthorization } = await import("./tokens-DISQJKDM.js");
|
|
23705
23773
|
const client = authorizedClient(env, name, options.keyring, activeSignal);
|
|
23706
23774
|
await checkAuthorization(client, scope);
|
|
23707
23775
|
return client;
|
|
@@ -23710,7 +23778,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23710
23778
|
const name = selected();
|
|
23711
23779
|
if (options.source)
|
|
23712
23780
|
return options.source(name);
|
|
23713
|
-
const [{ googleSource }, client] = await Promise.all([import("./google-
|
|
23781
|
+
const [{ googleSource }, client] = await Promise.all([import("./google-NV75VSCD.js"), signedIn(name)]);
|
|
23714
23782
|
return googleSource(client);
|
|
23715
23783
|
}, "source");
|
|
23716
23784
|
const withIndex = /* @__PURE__ */ __name(async (fn) => {
|
|
@@ -23769,6 +23837,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23769
23837
|
});
|
|
23770
23838
|
const remote = {
|
|
23771
23839
|
mcp: options.mcp,
|
|
23840
|
+
stored: storedDocument(context),
|
|
23772
23841
|
output,
|
|
23773
23842
|
positive,
|
|
23774
23843
|
readBody: options.readBody ?? ((path) => {
|
|
@@ -23805,7 +23874,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23805
23874
|
if (options.api)
|
|
23806
23875
|
return await options.api.call(method, params, body);
|
|
23807
23876
|
const [{ googleApi }, client] = await Promise.all([
|
|
23808
|
-
import("./google-api-
|
|
23877
|
+
import("./google-api-6623OUF2.js"),
|
|
23809
23878
|
signedIn(selected(), descriptor.scope)
|
|
23810
23879
|
]);
|
|
23811
23880
|
return await googleApi(client).call(method, params, body);
|
|
@@ -23830,7 +23899,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23830
23899
|
if (options.download)
|
|
23831
23900
|
return options.download(id, mime);
|
|
23832
23901
|
const [{ googleDownload }, client] = await Promise.all([
|
|
23833
|
-
import("./google-api-
|
|
23902
|
+
import("./google-api-6623OUF2.js"),
|
|
23834
23903
|
signedIn(selected(), apiMethod(method).scope)
|
|
23835
23904
|
]);
|
|
23836
23905
|
return googleDownload(client)(id, mime);
|
|
@@ -23848,7 +23917,7 @@ var createProgram = /* @__PURE__ */ __name((options = {}) => {
|
|
|
23848
23917
|
let request = options.uploadRequest;
|
|
23849
23918
|
if (!request) {
|
|
23850
23919
|
const [{ googleUploadRequest }, client] = await Promise.all([
|
|
23851
|
-
import("./google-api-
|
|
23920
|
+
import("./google-api-6623OUF2.js"),
|
|
23852
23921
|
signedIn(selected(), apiMethod(method).scope)
|
|
23853
23922
|
]);
|
|
23854
23923
|
request = googleUploadRequest(client);
|
|
@@ -24017,6 +24086,7 @@ Availability: unavailable \u2014 ${availability.reason}
|
|
|
24017
24086
|
if (flags.some((arg) => arg === "--profile" || arg.startsWith("--profile=")))
|
|
24018
24087
|
throw new CliError("validation_error", "the profile is the first word: drive <profile> <command>; there is no --profile");
|
|
24019
24088
|
profileWord = lifted.profile ? profileName(lifted.profile) : void 0;
|
|
24089
|
+
program.setOptionValue("profile", profileWord);
|
|
24020
24090
|
const rest = lifted.rest;
|
|
24021
24091
|
try {
|
|
24022
24092
|
const running = parse([...prefix, ...rest], settings);
|
|
@@ -2,8 +2,8 @@ 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-
|
|
5
|
+
} from "./chunk-4ORK4UAY.js";
|
|
6
|
+
import "./chunk-KKZYZ32J.js";
|
|
7
7
|
import "./chunk-VHT2WI4I.js";
|
|
8
8
|
import "./chunk-BJ3JRO34.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SAMPLE_RATE,
|
|
5
|
+
decodeOgg,
|
|
6
|
+
detector,
|
|
7
|
+
loadSherpa,
|
|
8
|
+
openRecognizer,
|
|
9
|
+
toModelRate
|
|
10
|
+
} from "./chunk-XVXXWNAA.js";
|
|
11
|
+
import "./chunk-VHT2WI4I.js";
|
|
12
|
+
import "./chunk-BJ3JRO34.js";
|
|
13
|
+
import "./chunk-Y5E2WNWB.js";
|
|
14
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
15
|
+
export {
|
|
16
|
+
SAMPLE_RATE,
|
|
17
|
+
decodeOgg,
|
|
18
|
+
detector,
|
|
19
|
+
loadSherpa,
|
|
20
|
+
openRecognizer,
|
|
21
|
+
toModelRate
|
|
22
|
+
};
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-HVM5LS5Z.js";
|
|
12
|
+
import "./chunk-P7INAZIT.js";
|
|
13
13
|
import "./chunk-5DPV7X27.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ABVFH76X.js";
|
|
15
|
+
import "./chunk-65AW2AEQ.js";
|
|
16
16
|
import "./chunk-VHT2WI4I.js";
|
|
17
17
|
import "./chunk-BJ3JRO34.js";
|
|
18
18
|
import "./chunk-Y5E2WNWB.js";
|