@wirecat/drive-cli 0.61.0 → 0.62.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/browse.d.ts +20 -0
- package/dist/browse.d.ts.map +1 -0
- package/dist/browse.js +146 -0
- package/dist/browse.js.map +1 -0
- package/dist/bundle/{all-profiles-H4L3Z5UM.js → all-profiles-CKD2DWUK.js} +14 -14
- package/dist/bundle/{anthropic-PPGFISVP.js → anthropic-E3T4USLA.js} +9 -9
- package/dist/bundle/{app-server-YXVK2FUZ.js → app-server-JB2AEWWL.js} +58 -55
- package/dist/bundle/{bun-DKZAL6ML.js → bun-CC44AAND.js} +2 -2
- package/dist/bundle/{bun-sqlite-MTZY36QK.js → bun-sqlite-AUMFKYVR.js} +8 -8
- package/dist/bundle/{chunk-KV4267S4.js → chunk-27YUUGXQ.js} +1 -1
- package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-2HF2MRXI.js} +1 -1
- package/dist/bundle/{chunk-3I2D5TK2.js → chunk-2KN35F32.js} +10 -10
- package/dist/bundle/{chunk-WZ5XK74U.js → chunk-4OSSOWDM.js} +1 -1
- package/dist/bundle/{chunk-UO2IUDVK.js → chunk-4SIZEJ3M.js} +2 -2
- package/dist/bundle/{chunk-6Y2FWJZ4.js → chunk-67ZQCWBV.js} +3 -3
- package/dist/bundle/{chunk-OFFA54TW.js → chunk-6EY46GAN.js} +2 -2
- package/dist/bundle/{chunk-ECEYAQGN.js → chunk-7W5HYGVW.js} +4 -2
- package/dist/bundle/{chunk-67HS46KM.js → chunk-7ZXIWZQ6.js} +12 -12
- package/dist/bundle/{chunk-J5UDQD5S.js → chunk-AH5C3D3D.js} +5 -5
- package/dist/bundle/{chunk-BCWUDTYQ.js → chunk-AQVUEZEP.js} +2 -2
- package/dist/bundle/{chunk-K7LS3NGM.js → chunk-CJHY5YIF.js} +494 -227
- package/dist/bundle/{chunk-PY7LKNOS.js → chunk-CZ2GJHLL.js} +2 -2
- package/dist/bundle/{chunk-NIX2MWHZ.js → chunk-DJOAMGF4.js} +39 -25
- package/dist/bundle/{chunk-AWN22PJK.js → chunk-DRZZBN3V.js} +3 -3
- package/dist/bundle/{chunk-DEPMQHXQ.js → chunk-DWJHL6DV.js} +4 -4
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-E43ENLJJ.js} +1 -1
- package/dist/bundle/{chunk-NZ2EIZLX.js → chunk-EOOGWUTP.js} +10 -10
- package/dist/bundle/{chunk-5W56YMQS.js → chunk-EW7PKB4M.js} +58 -49
- package/dist/bundle/{chunk-VYXVPYA3.js → chunk-FEZF3TII.js} +6 -6
- package/dist/bundle/{chunk-I26VL4W7.js → chunk-FNWIJ6EJ.js} +2 -2
- package/dist/bundle/{chunk-OLPJRD4S.js → chunk-FUITWY7O.js} +1 -1
- package/dist/bundle/{chunk-XZBR2O63.js → chunk-HCNQT3QE.js} +1439 -770
- package/dist/bundle/{chunk-Q4XVBKX4.js → chunk-HG6CAYJH.js} +3 -3
- package/dist/bundle/{chunk-O5CUFS7T.js → chunk-IR4SQLBR.js} +2 -2
- package/dist/bundle/{chunk-VPDAH7PJ.js → chunk-JK3U25QZ.js} +1 -1
- package/dist/bundle/{chunk-UKOYQC5O.js → chunk-JN5TVEEL.js} +94 -26
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-KLFSRKHB.js} +1 -1
- package/dist/bundle/{chunk-RFRCOAWS.js → chunk-L7K2MOIC.js} +22 -22
- package/dist/bundle/{chunk-XYCCGGKN.js → chunk-LQKD257P.js} +582 -424
- package/dist/bundle/{chunk-73WSULMI.js → chunk-LWE4JGRN.js} +2 -2
- package/dist/bundle/{chunk-XGMDWIUP.js → chunk-MN4VXU3M.js} +4 -4
- package/dist/bundle/{chunk-N2RLJTIW.js → chunk-N7OZPKU7.js} +4 -4
- package/dist/bundle/{chunk-OGNOQDWB.js → chunk-O2XOX4HB.js} +34 -10
- package/dist/bundle/{chunk-3SJQNS72.js → chunk-O7ALBI2I.js} +5 -5
- package/dist/bundle/{chunk-3WZH3WV3.js → chunk-OBH5BA62.js} +3 -3
- package/dist/bundle/{chunk-DCBFNBEB.js → chunk-OD4U7GUY.js} +20 -20
- package/dist/bundle/{chunk-PJTX2MOI.js → chunk-ONP2IBHY.js} +26 -26
- package/dist/bundle/{chunk-BXR7BKM3.js → chunk-OTROVC4E.js} +1 -1
- package/dist/bundle/{chunk-JVBLXSAA.js → chunk-PEQA6LA5.js} +617 -243
- package/dist/bundle/{chunk-XLFJLZJL.js → chunk-Q2LRPOKL.js} +22 -14
- package/dist/bundle/{chunk-E5EXJ2XS.js → chunk-QCKZ3GAA.js} +4 -4
- package/dist/bundle/{chunk-BQMIDYBA.js → chunk-QCX6XZLA.js} +12 -12
- package/dist/bundle/{chunk-TKGAYKXW.js → chunk-QH7DOVO3.js} +204 -58
- package/dist/bundle/{chunk-YMBFZA3H.js → chunk-QTI6IVHZ.js} +8 -8
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-R347FPYU.js} +1 -1
- package/dist/bundle/chunk-RIDQNVZM.js +64 -0
- package/dist/bundle/{chunk-AM4RIWOZ.js → chunk-RPMKG63Z.js} +18 -4
- package/dist/bundle/{chunk-EPCJUL6M.js → chunk-RWSXVCSG.js} +3 -3
- package/dist/bundle/{chunk-36CWGEVX.js → chunk-SVPCHFKI.js} +2 -2
- package/dist/bundle/{chunk-ZHYRHERD.js → chunk-SW4I5BR7.js} +2 -2
- package/dist/bundle/{chunk-FE5JJXKA.js → chunk-T5NWWXS2.js} +2 -2
- package/dist/bundle/{chunk-E6J5YH2N.js → chunk-T7X53FCJ.js} +34 -34
- package/dist/bundle/{chunk-X2CXW4HM.js → chunk-TDX4GZFO.js} +7 -7
- package/dist/bundle/{chunk-3UPIJ7DW.js → chunk-U2BFYSQV.js} +14158 -2039
- package/dist/bundle/{chunk-HFM653T3.js → chunk-UGXN5D7U.js} +719 -128
- package/dist/bundle/{chunk-WUP2MJDN.js → chunk-UOXOLGNG.js} +2 -2
- package/dist/bundle/{chunk-J4HQVHMN.js → chunk-UQLWMGSD.js} +5 -5
- package/dist/bundle/{chunk-6DN4VPA7.js → chunk-VAYB52HF.js} +33 -31
- package/dist/bundle/{chunk-BF6TQMNB.js → chunk-VQDD64A4.js} +8 -8
- package/dist/bundle/{chunk-ZMNYK3FC.js → chunk-W4RTIL7S.js} +5 -5
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-WZKEU7WR.js} +4 -2
- package/dist/bundle/{chunk-QR5VQXQ5.js → chunk-XEW2EN6F.js} +51 -37
- package/dist/bundle/{chunk-DXPOVLQC.js → chunk-XFRRKZHQ.js} +223 -89
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-XS5POQST.js} +1 -1
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-XZUS7XRO.js} +1 -1
- package/dist/bundle/{chunk-6SUGANRJ.js → chunk-YALI4C7C.js} +6 -6
- package/dist/bundle/{chunk-WIU733D2.js → chunk-YMWENGKH.js} +1 -1
- package/dist/bundle/{chunk-CACYL36O.js → chunk-YOJDGAPT.js} +8 -8
- package/dist/bundle/{chunk-S4YK6TTG.js → chunk-YPFUYQDP.js} +13 -13
- package/dist/bundle/{chunk-3252WXOL.js → chunk-YUWPNG7B.js} +1 -1
- package/dist/bundle/{chunk-2RJA4BQB.js → chunk-YXYTY4GF.js} +39 -26
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-ZMOUUOT2.js} +1 -1
- package/dist/bundle/command-contract-OB5BRABN.js +39 -0
- package/dist/bundle/{decode-62A3HGPW.js → decode-WIIX3Y2X.js} +8 -8
- package/dist/bundle/{dispatch-IE7PBEQC.js → dispatch-GEFIXA6X.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-OYINM4C4.js} +2 -2
- package/dist/bundle/{embed-J3IBVV2V.js → embed-DWZIYMBX.js} +9 -9
- package/dist/bundle/{embedder-QFPMDRT2.js → embedder-ILWH7ZRM.js} +12 -12
- package/dist/bundle/entry-V5V3TOTY.js +22 -0
- package/dist/bundle/{failure-BKOGBMIC.js → failure-GV77W3CD.js} +4 -4
- package/dist/bundle/first-run-V3VVLQF4.js +30 -0
- package/dist/bundle/first-screen-Y3RIN7FU.js +37 -0
- package/dist/bundle/{google-RXM2XEPD.js → google-KLZSUAVY.js} +13 -13
- package/dist/bundle/{google-api-NC65BZO4.js → google-api-HZQ5R4ZO.js} +57 -57
- package/dist/bundle/grants-L7XLHLUT.js +105 -0
- package/dist/bundle/{identity-PI6F2GWA.js → identity-J2DON4IO.js} +6 -6
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-HGOJ23AJ.js} +1 -1
- package/dist/bundle/{login-HTY7GT2S.js → login-BD2TS4GY.js} +63 -63
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-GWDA3HOA.js} +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-CPKTDPH7.js} +2 -2
- package/dist/bundle/{node-sqlite-G2Y5SFJM.js → node-sqlite-IXDCRLSX.js} +9 -9
- package/dist/bundle/oauth-HOGY4YBB.js +22 -0
- package/dist/bundle/{open-WD4GFSJD.js → open-O7P3ZV3Y.js} +8 -8
- package/dist/bundle/{openai-QVM4PMY7.js → openai-RCFQKCXC.js} +17 -17
- package/dist/bundle/{process-SWPJGPQC.js → process-KXDRJO22.js} +1 -1
- package/dist/bundle/{program-WHYFAMXR.js → program-UCHFC7JQ.js} +228 -85
- package/dist/bundle/prompt-EVPPBN5W.js +17 -0
- package/dist/bundle/{reasons-Q34DQWB6.js → reasons-57J2D77K.js} +5 -5
- package/dist/bundle/{recognize-DM3YWHSE.js → recognize-MRCYGP2J.js} +7 -7
- package/dist/bundle/{remote-KXVWRK7J.js → remote-L3L4PHKF.js} +10 -10
- package/dist/bundle/{rerank-TINXM3MY.js → rerank-PSOE6XFT.js} +10 -10
- package/dist/bundle/{serve-IY2WL656.js → serve-72OGS3BF.js} +12 -12
- package/dist/bundle/server-C5TGNFXW.js +70 -0
- package/dist/bundle/{server-VPY3OWPC.js → server-SCXKYHBO.js} +44 -44
- package/dist/bundle/{services-PXNBOCOC.js → services-YAFTELBI.js} +42 -32
- package/dist/bundle/{sqlite-runtime-5ZK2CV7Y.js → sqlite-runtime-DLK4SU33.js} +9 -9
- package/dist/bundle/{start-LDVCN3DK.js → start-AFFA3LKM.js} +9 -7
- package/dist/bundle/{state-3MKTT3VS.js → state-T5VNAJSZ.js} +9 -9
- package/dist/bundle/{store-7M4MSUJV.js → store-4OFK7PKQ.js} +48 -28
- package/dist/bundle/{store-4VQOT5IJ.js → store-R6MSY2IM.js} +20 -18
- package/dist/bundle/store-maintenance-command-QDMCXGV6.js +60 -0
- package/dist/bundle/tokens-HIG36RNS.js +103 -0
- package/dist/commands/folders.d.ts +2 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +16 -3
- package/dist/commands/folders.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +15 -6
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-W767AUNR.js +0 -132
- package/dist/bundle/command-contract-T3EO5AYD.js +0 -39
- package/dist/bundle/entry-YQSYER66.js +0 -22
- package/dist/bundle/first-run-ZIFPVZAI.js +0 -30
- package/dist/bundle/first-screen-L5U26EY7.js +0 -37
- package/dist/bundle/grants-SEWUYYH3.js +0 -105
- package/dist/bundle/oauth-MWBKBI4T.js +0 -22
- package/dist/bundle/prompt-OVYCGZB7.js +0 -17
- package/dist/bundle/server-EMWVVT2C.js +0 -70
- package/dist/bundle/store-maintenance-command-NRATYBWD.js +0 -60
- package/dist/bundle/tokens-XUKLM3SL.js +0 -103
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-ZQ3GWKDQ.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
metadataJson,
|
|
9
9
|
supported,
|
|
10
10
|
tooManyEntries
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YUWPNG7B.js";
|
|
12
12
|
import {
|
|
13
13
|
ACCOUNT_FREE_COMMANDS,
|
|
14
14
|
ANY_PROFILE_COMMANDS,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
describeDriveProgram,
|
|
20
20
|
examples,
|
|
21
21
|
markProfileFree
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-67ZQCWBV.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULTS_ONLY,
|
|
25
25
|
DEFAULT_LEVELS,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
unknownProfile,
|
|
50
50
|
withDefaults,
|
|
51
51
|
writeConfig
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-QCX6XZLA.js";
|
|
53
53
|
import {
|
|
54
54
|
blockKey,
|
|
55
55
|
blocksMarkdown,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
syncDocuments,
|
|
69
69
|
syncMirrors,
|
|
70
70
|
watchMirrors
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-L7K2MOIC.js";
|
|
72
72
|
import {
|
|
73
73
|
apiMethod,
|
|
74
74
|
apiMethods,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
schemas,
|
|
78
78
|
validateApiParams,
|
|
79
79
|
validateRequest
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-N7OZPKU7.js";
|
|
81
81
|
import {
|
|
82
82
|
DISCOVERY_DESCRIPTIONS,
|
|
83
83
|
MEMO_SCENARIOS,
|
|
@@ -107,24 +107,24 @@ import {
|
|
|
107
107
|
skillCommand,
|
|
108
108
|
suggest,
|
|
109
109
|
upgradeCommand
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-HCNQT3QE.js";
|
|
111
111
|
import {
|
|
112
112
|
googleError
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-OTROVC4E.js";
|
|
114
|
+
import "./chunk-KLFSRKHB.js";
|
|
115
115
|
import "./chunk-SBZB7HMU.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-XZUS7XRO.js";
|
|
117
|
+
import "./chunk-XEW2EN6F.js";
|
|
118
|
+
import "./chunk-JN5TVEEL.js";
|
|
119
119
|
import {
|
|
120
120
|
modelGateway,
|
|
121
121
|
storeInfo
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-UGXN5D7U.js";
|
|
123
123
|
import {
|
|
124
124
|
RecipientList,
|
|
125
125
|
SendJournal,
|
|
126
126
|
sendGuard
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-EW7PKB4M.js";
|
|
128
128
|
import {
|
|
129
129
|
LIST_QUERY_GUIDE,
|
|
130
130
|
listQuery,
|
|
@@ -135,13 +135,13 @@ import {
|
|
|
135
135
|
typedQuery,
|
|
136
136
|
unfilteredQuery,
|
|
137
137
|
withQuery
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-YXYTY4GF.js";
|
|
139
139
|
import {
|
|
140
140
|
commandsText,
|
|
141
141
|
inSection
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-QTI6IVHZ.js";
|
|
143
143
|
import "./chunk-HTQTIKWP.js";
|
|
144
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-O7ALBI2I.js";
|
|
145
145
|
import {
|
|
146
146
|
FETCH,
|
|
147
147
|
InvalidArgumentError,
|
|
@@ -173,29 +173,29 @@ import {
|
|
|
173
173
|
rootOf,
|
|
174
174
|
settingRows,
|
|
175
175
|
snakeKeys
|
|
176
|
-
} from "./chunk-
|
|
177
|
-
import "./chunk-
|
|
178
|
-
import "./chunk-
|
|
176
|
+
} from "./chunk-PEQA6LA5.js";
|
|
177
|
+
import "./chunk-VQDD64A4.js";
|
|
178
|
+
import "./chunk-7ZXIWZQ6.js";
|
|
179
179
|
import {
|
|
180
180
|
setupPermissionCeiling
|
|
181
|
-
} from "./chunk-
|
|
182
|
-
import "./chunk-
|
|
181
|
+
} from "./chunk-MN4VXU3M.js";
|
|
182
|
+
import "./chunk-2KN35F32.js";
|
|
183
183
|
import {
|
|
184
184
|
readOnlyLockOf,
|
|
185
185
|
readOnlyRefusal
|
|
186
|
-
} from "./chunk-
|
|
187
|
-
import "./chunk-
|
|
188
|
-
import "./chunk-
|
|
189
|
-
import "./chunk-
|
|
190
|
-
import "./chunk-
|
|
186
|
+
} from "./chunk-7W5HYGVW.js";
|
|
187
|
+
import "./chunk-DWJHL6DV.js";
|
|
188
|
+
import "./chunk-HG6CAYJH.js";
|
|
189
|
+
import "./chunk-YMWENGKH.js";
|
|
190
|
+
import "./chunk-DRZZBN3V.js";
|
|
191
191
|
import {
|
|
192
192
|
newOperationId
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-LQKD257P.js";
|
|
194
194
|
import {
|
|
195
195
|
columnName,
|
|
196
196
|
readSpreadsheet
|
|
197
|
-
} from "./chunk-
|
|
198
|
-
import "./chunk-
|
|
197
|
+
} from "./chunk-ONP2IBHY.js";
|
|
198
|
+
import "./chunk-YPFUYQDP.js";
|
|
199
199
|
import {
|
|
200
200
|
CEILING_KEY,
|
|
201
201
|
LEVELS,
|
|
@@ -204,40 +204,40 @@ import {
|
|
|
204
204
|
layerPermissions,
|
|
205
205
|
levelFor,
|
|
206
206
|
parseDuration
|
|
207
|
-
} from "./chunk-
|
|
208
|
-
import "./chunk-
|
|
207
|
+
} from "./chunk-VAYB52HF.js";
|
|
208
|
+
import "./chunk-AQVUEZEP.js";
|
|
209
209
|
import {
|
|
210
210
|
latestVersion,
|
|
211
211
|
runUpdate,
|
|
212
212
|
updateNotice
|
|
213
|
-
} from "./chunk-
|
|
214
|
-
import "./chunk-
|
|
215
|
-
import "./chunk-
|
|
216
|
-
import "./chunk-
|
|
217
|
-
import "./chunk-
|
|
213
|
+
} from "./chunk-QCKZ3GAA.js";
|
|
214
|
+
import "./chunk-ZMOUUOT2.js";
|
|
215
|
+
import "./chunk-T5NWWXS2.js";
|
|
216
|
+
import "./chunk-OBH5BA62.js";
|
|
217
|
+
import "./chunk-AH5C3D3D.js";
|
|
218
218
|
import "./chunk-5DPV7X27.js";
|
|
219
|
-
import "./chunk-
|
|
219
|
+
import "./chunk-Q2LRPOKL.js";
|
|
220
220
|
import {
|
|
221
221
|
applyDocumentTransfer,
|
|
222
222
|
previewDocumentTransfer
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-QH7DOVO3.js";
|
|
224
224
|
import {
|
|
225
225
|
note
|
|
226
|
-
} from "./chunk-
|
|
227
|
-
import "./chunk-
|
|
226
|
+
} from "./chunk-RIDQNVZM.js";
|
|
227
|
+
import "./chunk-SVPCHFKI.js";
|
|
228
228
|
import {
|
|
229
229
|
CATALOG_QUERY,
|
|
230
230
|
IMPORTED_DOCUMENT_QUERY,
|
|
231
231
|
openStore
|
|
232
|
-
} from "./chunk-
|
|
233
|
-
import "./chunk-
|
|
232
|
+
} from "./chunk-U2BFYSQV.js";
|
|
233
|
+
import "./chunk-UOXOLGNG.js";
|
|
234
234
|
import {
|
|
235
235
|
FACT_STATUSES,
|
|
236
236
|
FACT_TYPES,
|
|
237
237
|
MEMORY_KINDS,
|
|
238
238
|
MEMORY_SCOPES,
|
|
239
239
|
MEMORY_STATUSES
|
|
240
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-CJHY5YIF.js";
|
|
241
241
|
import {
|
|
242
242
|
dateRange,
|
|
243
243
|
defineQuery,
|
|
@@ -247,40 +247,40 @@ import {
|
|
|
247
247
|
timezoneOf,
|
|
248
248
|
validateQuery,
|
|
249
249
|
zonedMoment
|
|
250
|
-
} from "./chunk-
|
|
251
|
-
import "./chunk-
|
|
252
|
-
import "./chunk-
|
|
253
|
-
import "./chunk-
|
|
250
|
+
} from "./chunk-EOOGWUTP.js";
|
|
251
|
+
import "./chunk-JK3U25QZ.js";
|
|
252
|
+
import "./chunk-YOJDGAPT.js";
|
|
253
|
+
import "./chunk-TDX4GZFO.js";
|
|
254
254
|
import {
|
|
255
255
|
storePath
|
|
256
|
-
} from "./chunk-
|
|
257
|
-
import "./chunk-
|
|
258
|
-
import "./chunk-
|
|
259
|
-
import "./chunk-
|
|
260
|
-
import "./chunk-
|
|
256
|
+
} from "./chunk-FNWIJ6EJ.js";
|
|
257
|
+
import "./chunk-YALI4C7C.js";
|
|
258
|
+
import "./chunk-XS5POQST.js";
|
|
259
|
+
import "./chunk-RWSXVCSG.js";
|
|
260
|
+
import "./chunk-IR4SQLBR.js";
|
|
261
261
|
import "./chunk-D72URWJE.js";
|
|
262
262
|
import {
|
|
263
263
|
installerOf
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-27YUUGXQ.js";
|
|
265
265
|
import {
|
|
266
266
|
DRIVE_APP,
|
|
267
267
|
PACKAGE,
|
|
268
268
|
VERSION
|
|
269
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-4SIZEJ3M.js";
|
|
270
270
|
import {
|
|
271
271
|
REASONS
|
|
272
|
-
} from "./chunk-
|
|
273
|
-
import "./chunk-
|
|
274
|
-
import "./chunk-
|
|
272
|
+
} from "./chunk-FUITWY7O.js";
|
|
273
|
+
import "./chunk-ZQ3GWKDQ.js";
|
|
274
|
+
import "./chunk-WZKEU7WR.js";
|
|
275
275
|
import {
|
|
276
276
|
processStreams,
|
|
277
277
|
saveConfigFile,
|
|
278
278
|
writeSecurely
|
|
279
|
-
} from "./chunk-
|
|
280
|
-
import "./chunk-
|
|
279
|
+
} from "./chunk-OD4U7GUY.js";
|
|
280
|
+
import "./chunk-UQLWMGSD.js";
|
|
281
281
|
import "./chunk-Y5E2WNWB.js";
|
|
282
|
-
import "./chunk-
|
|
283
|
-
import "./chunk-
|
|
282
|
+
import "./chunk-2HF2MRXI.js";
|
|
283
|
+
import "./chunk-6EY46GAN.js";
|
|
284
284
|
import {
|
|
285
285
|
array,
|
|
286
286
|
boolean,
|
|
@@ -304,11 +304,11 @@ import {
|
|
|
304
304
|
string,
|
|
305
305
|
unknown,
|
|
306
306
|
writes
|
|
307
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-FEZF3TII.js";
|
|
308
308
|
import {
|
|
309
309
|
CliError,
|
|
310
310
|
isCliError
|
|
311
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-4OSSOWDM.js";
|
|
312
312
|
import {
|
|
313
313
|
__commonJS,
|
|
314
314
|
__name,
|
|
@@ -1991,7 +1991,7 @@ var catalogInput = /* @__PURE__ */ __name((file) => ({
|
|
|
1991
1991
|
lastModifiedBy: file.lastModifiedBy ?? null
|
|
1992
1992
|
}
|
|
1993
1993
|
}), "catalogInput");
|
|
1994
|
-
var catalogTree = /* @__PURE__ */ __name((entries,
|
|
1994
|
+
var catalogTree = /* @__PURE__ */ __name((entries, roots2, depth) => {
|
|
1995
1995
|
if (!Number.isSafeInteger(depth) || depth < 0 || depth > 50)
|
|
1996
1996
|
throw new CliError("validation_error", "tree depth must be between 0 and 50", { reason: "catalog.depth-invalid" });
|
|
1997
1997
|
const byId = new Map(entries.map((entry) => [entry.externalId, entry]));
|
|
@@ -2025,7 +2025,7 @@ var catalogTree = /* @__PURE__ */ __name((entries, roots, depth) => {
|
|
|
2025
2025
|
truncated: level >= depth && found.length > 0
|
|
2026
2026
|
};
|
|
2027
2027
|
}, "node");
|
|
2028
|
-
return
|
|
2028
|
+
return roots2.map((id) => {
|
|
2029
2029
|
const entry = byId.get(id);
|
|
2030
2030
|
if (entry?.kind !== "folder")
|
|
2031
2031
|
throw new CliError("not_found", "folder is not in the active local catalog; run catalog import or sync", {
|
|
@@ -2444,8 +2444,8 @@ var installCatalogCommands = /* @__PURE__ */ __name((program, helpers) => {
|
|
|
2444
2444
|
if (!page.hasMore)
|
|
2445
2445
|
break;
|
|
2446
2446
|
}
|
|
2447
|
-
const
|
|
2448
|
-
return allOf(catalogTree(items,
|
|
2447
|
+
const roots2 = id ? [fileId(id)] : activeProfile(env, selected()).roots;
|
|
2448
|
+
return allOf(catalogTree(items, roots2.map((root) => `${root}.md`), args.depth));
|
|
2449
2449
|
})));
|
|
2450
2450
|
const tags = local(catalog.command("tags")).description("add owner tags to cached files or folders");
|
|
2451
2451
|
for (const action of ["list", "add", "remove"]) {
|
|
@@ -2732,7 +2732,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
|
|
|
2732
2732
|
throw new CliError("permission_error", "downloading a model needs the network; --offline was requested", {
|
|
2733
2733
|
reason: "offline.refused"
|
|
2734
2734
|
});
|
|
2735
|
-
const { downloadImageModel, downloadTextModel } = await import("./services-
|
|
2735
|
+
const { downloadImageModel, downloadTextModel } = await import("./services-YAFTELBI.js");
|
|
2736
2736
|
const progress = /* @__PURE__ */ __name((line) => {
|
|
2737
2737
|
if (!program.opts().quiet)
|
|
2738
2738
|
streams.diagnostic(line);
|
|
@@ -3659,8 +3659,142 @@ var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3659
3659
|
});
|
|
3660
3660
|
}, "installDocumentCommands");
|
|
3661
3661
|
|
|
3662
|
+
// dist/browse.js
|
|
3663
|
+
var SHARED_WITH_ME = "shared-with-me";
|
|
3664
|
+
var browseRow = strictObject({
|
|
3665
|
+
id: string(),
|
|
3666
|
+
name: string(),
|
|
3667
|
+
kind: picklist(["my_drive", "shared_with_me", "shared_drive", "folder"]),
|
|
3668
|
+
parent: nullable(string()),
|
|
3669
|
+
location: picklist(["my_drive", "shared_with_me", "shared_drive"]),
|
|
3670
|
+
drive_id: nullable(string()),
|
|
3671
|
+
child_folders: nullable(number()),
|
|
3672
|
+
added: boolean()
|
|
3673
|
+
});
|
|
3674
|
+
var BROWSE_HELP = `
|
|
3675
|
+
Each item, one level of the tree (--json prints them under "items"):
|
|
3676
|
+
id folder id to pass to --parent or to folders add; shared-with-me at the top level
|
|
3677
|
+
name folder name as Google shows it
|
|
3678
|
+
kind my_drive, shared_with_me or shared_drive (the top level), folder (below it)
|
|
3679
|
+
parent the --parent given, or null at the top level
|
|
3680
|
+
location where the folder lives: my_drive, shared_with_me or shared_drive
|
|
3681
|
+
drive_id the shared drive's id, or null
|
|
3682
|
+
child_folders folders directly inside it, or null when not counted (Shared with me, a level of over 1000 folders)
|
|
3683
|
+
added whether sync already imports this folder (folders add)
|
|
3684
|
+
Folders are listed by name. Only folders are listed; files inside them are not.
|
|
3685
|
+
Failures carry error.reason: oauth.missing (not signed in), oauth.expired (sign in again),
|
|
3686
|
+
provider.rate-limited (retry later), not_found code (no such folder).`;
|
|
3687
|
+
var PAGE_BOUND = 1e3;
|
|
3688
|
+
var COUNTED_LEVEL = 1e3;
|
|
3689
|
+
var COUNT_CHUNK = 50;
|
|
3690
|
+
var SAFE_ID = /^[A-Za-z0-9_-]{1,200}$/;
|
|
3691
|
+
var NOT_TRASHED_FOLDER = `mimeType = '${FOLDER}' and trashed = false`;
|
|
3692
|
+
var ACROSS_DRIVES = { supportsAllDrives: true, includeItemsFromAllDrives: true };
|
|
3693
|
+
var everyPage = /* @__PURE__ */ __name(async (call, method, params, key) => {
|
|
3694
|
+
const rows = [];
|
|
3695
|
+
const seen = /* @__PURE__ */ new Set();
|
|
3696
|
+
let incomplete = false;
|
|
3697
|
+
let pageToken;
|
|
3698
|
+
for (let page = 0; page < PAGE_BOUND; page++) {
|
|
3699
|
+
const data = await call(method, { ...params, ...pageToken ? { pageToken } : {} }) ?? {};
|
|
3700
|
+
for (const row of data[key] ?? [])
|
|
3701
|
+
rows.push(row);
|
|
3702
|
+
if (data.incompleteSearch)
|
|
3703
|
+
incomplete = true;
|
|
3704
|
+
if (rows.length > MAX_ENTRIES)
|
|
3705
|
+
throw new CliError("provider_error", `this level holds more than ${MAX_ENTRIES} folders; drive lists at most that`, {
|
|
3706
|
+
reason: "listing.too-large"
|
|
3707
|
+
});
|
|
3708
|
+
if (!data.nextPageToken)
|
|
3709
|
+
return { rows, incomplete };
|
|
3710
|
+
if (seen.has(data.nextPageToken))
|
|
3711
|
+
throw new CliError("invalid_response", "Google repeated a folder page token");
|
|
3712
|
+
seen.add(data.nextPageToken);
|
|
3713
|
+
pageToken = data.nextPageToken;
|
|
3714
|
+
}
|
|
3715
|
+
throw new CliError("provider_error", "folder pagination exceeded its bound", { reason: "listing.too-large" });
|
|
3716
|
+
}, "everyPage");
|
|
3717
|
+
var childCounts = /* @__PURE__ */ __name(async (call, ids) => {
|
|
3718
|
+
const counted = ids.filter((id) => SAFE_ID.test(id));
|
|
3719
|
+
if (counted.length > COUNTED_LEVEL)
|
|
3720
|
+
return void 0;
|
|
3721
|
+
const counts = new Map(counted.map((id) => [id, 0]));
|
|
3722
|
+
for (let start = 0; start < counted.length; start += COUNT_CHUNK) {
|
|
3723
|
+
const chunk = counted.slice(start, start + COUNT_CHUNK);
|
|
3724
|
+
const { rows, incomplete } = await everyPage(call, "drive.files.list", {
|
|
3725
|
+
q: `${NOT_TRASHED_FOLDER} and (${chunk.map((id) => `'${id}' in parents`).join(" or ")})`,
|
|
3726
|
+
fields: "nextPageToken,incompleteSearch,files(parents)",
|
|
3727
|
+
pageSize: 1e3,
|
|
3728
|
+
...ACROSS_DRIVES
|
|
3729
|
+
}, "files");
|
|
3730
|
+
if (incomplete)
|
|
3731
|
+
return void 0;
|
|
3732
|
+
for (const row of rows)
|
|
3733
|
+
for (const parent of row.parents ?? []) {
|
|
3734
|
+
const count = counts.get(parent);
|
|
3735
|
+
if (count !== void 0)
|
|
3736
|
+
counts.set(parent, count + 1);
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
return counts;
|
|
3740
|
+
}, "childCounts");
|
|
3741
|
+
var byName = /* @__PURE__ */ __name((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base", numeric: true }) || a.id.localeCompare(b.id), "byName");
|
|
3742
|
+
var listed = /* @__PURE__ */ __name((items, incomplete) => listOf("", {
|
|
3743
|
+
items,
|
|
3744
|
+
limit: Math.max(1, items.length),
|
|
3745
|
+
has_more: false,
|
|
3746
|
+
...incomplete ? { missing: [{ field: "items", why: "Google searched only some of the drives; some folders may be missing" }] } : {}
|
|
3747
|
+
}), "listed");
|
|
3748
|
+
var roots = /* @__PURE__ */ __name(async (call, added) => {
|
|
3749
|
+
const myDrive = await call("drive.files.get", { fileId: "root", fields: "id" }) ?? {};
|
|
3750
|
+
if (!myDrive.id)
|
|
3751
|
+
throw new CliError("invalid_response", "Google did not return the My Drive folder");
|
|
3752
|
+
const { rows: drives } = await everyPage(call, "drive.drives.list", { pageSize: 100, fields: "nextPageToken,drives(id,name)" }, "drives");
|
|
3753
|
+
const shared = drives.flatMap((drive) => drive.id ? [{ id: drive.id, name: drive.name ?? "" }] : []);
|
|
3754
|
+
const counts = await childCounts(call, [myDrive.id, ...shared.map((drive) => drive.id)]);
|
|
3755
|
+
const top = /* @__PURE__ */ __name((id, name, kind) => ({
|
|
3756
|
+
id,
|
|
3757
|
+
name,
|
|
3758
|
+
kind,
|
|
3759
|
+
parent: null,
|
|
3760
|
+
location: kind,
|
|
3761
|
+
drive_id: kind === "shared_drive" ? id : null,
|
|
3762
|
+
child_folders: kind === "shared_with_me" ? null : counts?.get(id) ?? null,
|
|
3763
|
+
added: added(id) || kind === "my_drive" && added("root")
|
|
3764
|
+
}), "top");
|
|
3765
|
+
return listed([
|
|
3766
|
+
top(myDrive.id, "My Drive", "my_drive"),
|
|
3767
|
+
top(SHARED_WITH_ME, "Shared with me", "shared_with_me"),
|
|
3768
|
+
...shared.map((drive) => top(drive.id, drive.name, "shared_drive")).sort(byName)
|
|
3769
|
+
], false);
|
|
3770
|
+
}, "roots");
|
|
3771
|
+
var browseFolders = /* @__PURE__ */ __name(async (call, parent, selected) => {
|
|
3772
|
+
const added = /* @__PURE__ */ __name((id) => selected.includes(id), "added");
|
|
3773
|
+
if (parent === void 0)
|
|
3774
|
+
return roots(call, added);
|
|
3775
|
+
const { rows, incomplete } = await everyPage(call, "drive.files.list", {
|
|
3776
|
+
q: parent === SHARED_WITH_ME ? `sharedWithMe = true and ${NOT_TRASHED_FOLDER}` : `'${parent}' in parents and ${NOT_TRASHED_FOLDER}`,
|
|
3777
|
+
fields: "nextPageToken,incompleteSearch,files(id,name,driveId,ownedByMe)",
|
|
3778
|
+
pageSize: 1e3,
|
|
3779
|
+
...ACROSS_DRIVES
|
|
3780
|
+
}, "files");
|
|
3781
|
+
const folders = rows.filter((row) => Boolean(row.id));
|
|
3782
|
+
const counts = await childCounts(call, folders.map((folder) => folder.id));
|
|
3783
|
+
const items = folders.map((folder) => ({
|
|
3784
|
+
id: folder.id,
|
|
3785
|
+
name: folder.name ?? "",
|
|
3786
|
+
kind: "folder",
|
|
3787
|
+
parent,
|
|
3788
|
+
location: folder.driveId ? "shared_drive" : folder.ownedByMe === false ? "shared_with_me" : "my_drive",
|
|
3789
|
+
drive_id: folder.driveId ?? null,
|
|
3790
|
+
child_folders: counts?.get(folder.id) ?? null,
|
|
3791
|
+
added: added(folder.id)
|
|
3792
|
+
}));
|
|
3793
|
+
return listed(items.sort(byName), incomplete);
|
|
3794
|
+
}, "browseFolders");
|
|
3795
|
+
|
|
3662
3796
|
// dist/commands/folders.js
|
|
3663
|
-
var installFolderCommands = /* @__PURE__ */ __name((program, context) => {
|
|
3797
|
+
var installFolderCommands = /* @__PURE__ */ __name((program, context, call) => {
|
|
3664
3798
|
const { env, selected, output, source } = context;
|
|
3665
3799
|
const folders = annotate(program.command("folders"), { effects: LOCAL_READ }).description("choose the Google Drive folders that sync imports");
|
|
3666
3800
|
const folderArgument = "folder id or Google Drive URL";
|
|
@@ -3682,6 +3816,15 @@ var installFolderCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3682
3816
|
const filter = termsOf(words, FOLDERS_QUERY, "folders list");
|
|
3683
3817
|
output(allOf(selectedFolders(env, selected(), filter)));
|
|
3684
3818
|
});
|
|
3819
|
+
examples(answerEntity(annotate(folders.command("browse"), { effects: GOOGLE_READ }).description("list Google Drive folders one level at a time, to choose one for folders add"), "drive_remote_folder", browseRow), [
|
|
3820
|
+
"drive personal folders browse",
|
|
3821
|
+
"drive personal folders browse --parent FOLDER_ID --json",
|
|
3822
|
+
`drive personal folders browse --parent ${SHARED_WITH_ME}`
|
|
3823
|
+
]).option("--parent <id>", `folder id or URL to list inside, or ${SHARED_WITH_ME}; the top level without it`).addHelpText("after", BROWSE_HELP).action(async (args) => {
|
|
3824
|
+
const parent = args.parent === void 0 || args.parent === SHARED_WITH_ME ? args.parent : fileId(args.parent);
|
|
3825
|
+
const roots2 = activeProfile(env, selected()).roots;
|
|
3826
|
+
output(await browseFolders(call, parent, roots2));
|
|
3827
|
+
});
|
|
3685
3828
|
examples(annotate(folders.command("remove"), { effects: LOCAL_WRITE }).argument("<folder>", folderArgument).description("stop importing a folder; the next sync drops its documents"), ["drive personal folders remove FOLDER_ID"]).action((input) => {
|
|
3686
3829
|
const id = fileId(input);
|
|
3687
3830
|
const config = readConfig(env);
|
|
@@ -22579,7 +22722,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22579
22722
|
const app = application(env, { file: args.clientFile, clientId: args.clientId, profile: selected() });
|
|
22580
22723
|
if (!app.clientSecret)
|
|
22581
22724
|
streams.diagnostic("your Google app has no secret here, and Google refuses a Desktop app without one: set DRIVE_GOOGLE_CLIENT_SECRET\n");
|
|
22582
|
-
const { login } = await import("./login-
|
|
22725
|
+
const { login } = await import("./login-BD2TS4GY.js");
|
|
22583
22726
|
output(itemOf(await login({
|
|
22584
22727
|
env,
|
|
22585
22728
|
profile: selected(),
|
|
@@ -22610,7 +22753,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22610
22753
|
const name = selected();
|
|
22611
22754
|
const config = readConfig(env);
|
|
22612
22755
|
const profile = activeProfile(env, name);
|
|
22613
|
-
const { credentials } = await import("./tokens-
|
|
22756
|
+
const { credentials } = await import("./tokens-HIG36RNS.js");
|
|
22614
22757
|
const store = credentials(env, profile.storage, options.keyring);
|
|
22615
22758
|
store.remove(name);
|
|
22616
22759
|
writeConfig(env, config);
|
|
@@ -22657,7 +22800,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
|
|
|
22657
22800
|
return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
|
|
22658
22801
|
}, "selection");
|
|
22659
22802
|
var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
|
|
22660
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
22803
|
+
const { ensureSqlite } = await import("./sqlite-runtime-DLK4SU33.js");
|
|
22661
22804
|
await ensureSqlite();
|
|
22662
22805
|
const { state, options } = selection(env, name, source);
|
|
22663
22806
|
const preview = await previewDocumentTransfer({ ...options, bindings });
|
|
@@ -22831,7 +22974,7 @@ var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22831
22974
|
// dist/commands/upgrade.js
|
|
22832
22975
|
import { join as join7 } from "node:path";
|
|
22833
22976
|
|
|
22834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
22835
22978
|
import { realpathSync } from "node:fs";
|
|
22836
22979
|
import { fileURLToPath } from "node:url";
|
|
22837
22980
|
var QUIET_WORDS = [
|
|
@@ -23250,9 +23393,9 @@ var DRIVE_PROVIDER = {
|
|
|
23250
23393
|
var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
|
|
23251
23394
|
if (name)
|
|
23252
23395
|
activeProfile(env, name);
|
|
23253
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
23396
|
+
const { ensureSqlite } = await import("./sqlite-runtime-DLK4SU33.js");
|
|
23254
23397
|
await ensureSqlite();
|
|
23255
|
-
const { openStore: openStore2, storePath: storePath2 } = await import("./store-
|
|
23398
|
+
const { openStore: openStore2, storePath: storePath2 } = await import("./store-4OFK7PKQ.js");
|
|
23256
23399
|
if (env.DRIVE_STORE)
|
|
23257
23400
|
throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
|
|
23258
23401
|
const store = await openStore2({ path: storePath2(env), env, command: "drive", version: VERSION });
|
|
@@ -23297,7 +23440,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23297
23440
|
linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
|
|
23298
23441
|
knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
|
|
23299
23442
|
openPictures: /* @__PURE__ */ __name(async () => {
|
|
23300
|
-
const { openPictureEmbedderFor, savePicture } = await import("./services-
|
|
23443
|
+
const { openPictureEmbedderFor, savePicture } = await import("./services-YAFTELBI.js");
|
|
23301
23444
|
const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
|
|
23302
23445
|
return {
|
|
23303
23446
|
save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
|
|
@@ -23316,7 +23459,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23316
23459
|
has_more: false,
|
|
23317
23460
|
meaning_skipped: "this Google account has no imported sources"
|
|
23318
23461
|
};
|
|
23319
|
-
const { searchNotes } = await import("./services-
|
|
23462
|
+
const { searchNotes } = await import("./services-YAFTELBI.js");
|
|
23320
23463
|
const result = await searchNotes(store, query, {
|
|
23321
23464
|
...options,
|
|
23322
23465
|
folderIds: selected ? [selected.id] : [],
|
|
@@ -23347,7 +23490,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23347
23490
|
};
|
|
23348
23491
|
}, "search"),
|
|
23349
23492
|
embed: /* @__PURE__ */ __name(async (max) => {
|
|
23350
|
-
const { embedNotes } = await import("./services-
|
|
23493
|
+
const { embedNotes } = await import("./services-YAFTELBI.js");
|
|
23351
23494
|
return embedNotes(store, { maxChunks: max, env, command: "drive" });
|
|
23352
23495
|
}, "embed"),
|
|
23353
23496
|
close: /* @__PURE__ */ __name(() => store.close(), "close")
|
|
@@ -23634,7 +23777,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23634
23777
|
}, "output");
|
|
23635
23778
|
const signal = /* @__PURE__ */ __name(() => environment().signal, "signal");
|
|
23636
23779
|
const signedIn = /* @__PURE__ */ __name(async (name, scope2) => {
|
|
23637
|
-
const { authorizedClient, checkAuthorization } = await import("./tokens-
|
|
23780
|
+
const { authorizedClient, checkAuthorization } = await import("./tokens-HIG36RNS.js");
|
|
23638
23781
|
const client = authorizedClient(env, name, environment().keyring, signal());
|
|
23639
23782
|
await checkAuthorization(client, scope2);
|
|
23640
23783
|
return client;
|
|
@@ -23644,7 +23787,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23644
23787
|
const fake = environment().source;
|
|
23645
23788
|
if (fake)
|
|
23646
23789
|
return fake(name);
|
|
23647
|
-
const [{ googleSource }, client] = await Promise.all([import("./google-
|
|
23790
|
+
const [{ googleSource }, client] = await Promise.all([import("./google-KLZSUAVY.js"), signedIn(name)]);
|
|
23648
23791
|
return googleSource(client);
|
|
23649
23792
|
}, "source");
|
|
23650
23793
|
const withIndex = /* @__PURE__ */ __name(async (fn) => {
|
|
@@ -23710,7 +23853,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23710
23853
|
runsOf.set(program, runs);
|
|
23711
23854
|
const imported = importedDocument(context);
|
|
23712
23855
|
installSessionCommands(program, context);
|
|
23713
|
-
installFolderCommands(program, context);
|
|
23856
|
+
installFolderCommands(program, context, (method, params) => remote.call(method, params));
|
|
23714
23857
|
installSyncCommands(program, context);
|
|
23715
23858
|
installStoreCommands(program, context);
|
|
23716
23859
|
installDocumentCommands(program, context);
|
|
@@ -23786,7 +23929,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23786
23929
|
if (fake)
|
|
23787
23930
|
return await fake.call(method, params, body);
|
|
23788
23931
|
const [{ googleApi }, client] = await Promise.all([
|
|
23789
|
-
import("./google-api-
|
|
23932
|
+
import("./google-api-HZQ5R4ZO.js"),
|
|
23790
23933
|
signedIn(selected(), descriptor.scope)
|
|
23791
23934
|
]);
|
|
23792
23935
|
return await googleApi(client).call(method, params, body);
|
|
@@ -23812,7 +23955,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23812
23955
|
if (fake)
|
|
23813
23956
|
return fake(id, mime);
|
|
23814
23957
|
const [{ googleDownload }, client] = await Promise.all([
|
|
23815
|
-
import("./google-api-
|
|
23958
|
+
import("./google-api-HZQ5R4ZO.js"),
|
|
23816
23959
|
signedIn(selected(), apiMethod(method).scope)
|
|
23817
23960
|
]);
|
|
23818
23961
|
return googleDownload(client)(id, mime);
|
|
@@ -23830,7 +23973,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23830
23973
|
let request = environment().uploadRequest;
|
|
23831
23974
|
if (!request) {
|
|
23832
23975
|
const [{ googleUploadRequest }, client] = await Promise.all([
|
|
23833
|
-
import("./google-api-
|
|
23976
|
+
import("./google-api-HZQ5R4ZO.js"),
|
|
23834
23977
|
signedIn(selected(), apiMethod(method).scope)
|
|
23835
23978
|
]);
|
|
23836
23979
|
request = googleUploadRequest(client);
|
|
@@ -24034,7 +24177,7 @@ var mcpCommand = /* @__PURE__ */ __name(() => {
|
|
|
24034
24177
|
const environment = environmentOf(action);
|
|
24035
24178
|
if (environment.api)
|
|
24036
24179
|
return;
|
|
24037
|
-
const { grantAvailability } = await import("./grants-
|
|
24180
|
+
const { grantAvailability } = await import("./grants-L7XLHLUT.js");
|
|
24038
24181
|
availability = grantAvailability(rootOf(root), environment.env ?? process.env, environment.keyring);
|
|
24039
24182
|
});
|
|
24040
24183
|
}, "mcpCommand");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
readSecret
|
|
5
|
+
} from "./chunk-RWSXVCSG.js";
|
|
6
|
+
import "./chunk-IR4SQLBR.js";
|
|
7
|
+
import "./chunk-OD4U7GUY.js";
|
|
8
|
+
import "./chunk-UQLWMGSD.js";
|
|
9
|
+
import "./chunk-Y5E2WNWB.js";
|
|
10
|
+
import "./chunk-2HF2MRXI.js";
|
|
11
|
+
import "./chunk-6EY46GAN.js";
|
|
12
|
+
import "./chunk-FEZF3TII.js";
|
|
13
|
+
import "./chunk-4OSSOWDM.js";
|
|
14
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
15
|
+
export {
|
|
16
|
+
readSecret
|
|
17
|
+
};
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
REASONS
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-FUITWY7O.js";
|
|
6
|
+
import "./chunk-ZQ3GWKDQ.js";
|
|
7
|
+
import "./chunk-6EY46GAN.js";
|
|
8
|
+
import "./chunk-FEZF3TII.js";
|
|
9
|
+
import "./chunk-4OSSOWDM.js";
|
|
10
10
|
import "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
export {
|
|
12
12
|
REASONS
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
openRecognizer,
|
|
9
9
|
openSpeechCutter,
|
|
10
10
|
toModelRate
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-RPMKG63Z.js";
|
|
12
|
+
import "./chunk-OD4U7GUY.js";
|
|
13
|
+
import "./chunk-UQLWMGSD.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2HF2MRXI.js";
|
|
16
|
+
import "./chunk-6EY46GAN.js";
|
|
17
|
+
import "./chunk-FEZF3TII.js";
|
|
18
|
+
import "./chunk-4OSSOWDM.js";
|
|
19
19
|
import "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
export {
|
|
21
21
|
SAMPLE_RATE,
|