@wirecat/drive-cli 0.61.0 → 0.63.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-GZJS3UKC.js} +13 -14
- package/dist/bundle/{anthropic-PPGFISVP.js → anthropic-RGV3WXX5.js} +9 -9
- package/dist/bundle/{app-server-YXVK2FUZ.js → app-server-AA2PJ7PV.js} +57 -55
- package/dist/bundle/{bun-DKZAL6ML.js → bun-OXZYIA3R.js} +2 -2
- package/dist/bundle/{bun-sqlite-MTZY36QK.js → bun-sqlite-D45NSDM3.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-HGOYQUT7.js → chunk-2NIC72HH.js} +4 -2
- package/dist/bundle/{chunk-XZBR2O63.js → chunk-2TDUGC5D.js} +1501 -781
- package/dist/bundle/{chunk-DEPMQHXQ.js → chunk-2TFXK3R4.js} +4 -4
- package/dist/bundle/{chunk-JVBLXSAA.js → chunk-33MGFUED.js} +652 -249
- package/dist/bundle/{chunk-S4YK6TTG.js → chunk-3BZRKLJ6.js} +13 -13
- package/dist/bundle/{chunk-6SUGANRJ.js → chunk-3HK5WMI5.js} +6 -6
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-3QINVLZI.js} +1 -1
- package/dist/bundle/{chunk-XYCCGGKN.js → chunk-44SBK6KB.js} +1207 -643
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-4CIZWCXV.js} +1 -1
- package/dist/bundle/{chunk-WZ5XK74U.js → chunk-4OSSOWDM.js} +1 -1
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-4S4JMW6I.js} +1 -1
- package/dist/bundle/{chunk-WIU733D2.js → chunk-534OBX5Y.js} +1 -1
- package/dist/bundle/{chunk-UO2IUDVK.js → chunk-5PPL7JDM.js} +2 -2
- package/dist/bundle/{chunk-OFFA54TW.js → chunk-6EY46GAN.js} +2 -2
- package/dist/bundle/{chunk-RFRCOAWS.js → chunk-6KQJSFYF.js} +22 -22
- package/dist/bundle/{chunk-6DN4VPA7.js → chunk-6MQSQ4LX.js} +33 -31
- package/dist/bundle/{chunk-NIX2MWHZ.js → chunk-7EMQ26BA.js} +39 -25
- package/dist/bundle/{chunk-X2CXW4HM.js → chunk-ABYGSJZ4.js} +7 -7
- package/dist/bundle/{chunk-I26VL4W7.js → chunk-AEX37ETW.js} +2 -2
- package/dist/bundle/{chunk-36CWGEVX.js → chunk-BKYMKVHT.js} +2 -2
- package/dist/bundle/{chunk-3WZH3WV3.js → chunk-CE2TJBLP.js} +3 -3
- package/dist/bundle/{chunk-YMBFZA3H.js → chunk-DJ3SDJZY.js} +8 -8
- package/dist/bundle/{chunk-DXPOVLQC.js → chunk-DJHLVUL6.js} +227 -90
- package/dist/bundle/{chunk-VPDAH7PJ.js → chunk-E4SDKMBJ.js} +59 -1
- package/dist/bundle/{chunk-NZ2EIZLX.js → chunk-EOOGWUTP.js} +10 -10
- package/dist/bundle/{chunk-VYXVPYA3.js → chunk-FEZF3TII.js} +6 -6
- package/dist/bundle/{chunk-Q4XVBKX4.js → chunk-FRIJUILO.js} +3 -3
- package/dist/bundle/{chunk-OLPJRD4S.js → chunk-FUITWY7O.js} +1 -1
- package/dist/bundle/{chunk-AM4RIWOZ.js → chunk-HZZCEQTH.js} +18 -4
- package/dist/bundle/{chunk-2RJA4BQB.js → chunk-J24ZFCWM.js} +39 -26
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-J4DIHPZ6.js} +1 -1
- package/dist/bundle/{chunk-ZHYRHERD.js → chunk-L37LMMRJ.js} +2 -2
- package/dist/bundle/{chunk-XLFJLZJL.js → chunk-LMAVCYLQ.js} +22 -14
- package/dist/bundle/{chunk-E6J5YH2N.js → chunk-LZEOQW7S.js} +36 -36
- package/dist/bundle/{chunk-FE5JJXKA.js → chunk-MOTRI3SY.js} +2 -2
- package/dist/bundle/{chunk-PJTX2MOI.js → chunk-ND6LLYGF.js} +98 -81
- package/dist/bundle/{chunk-3I2D5TK2.js → chunk-NEFSGCVA.js} +10 -10
- package/dist/bundle/{chunk-OGNOQDWB.js → chunk-O2XOX4HB.js} +34 -10
- package/dist/bundle/{chunk-DCBFNBEB.js → chunk-OD4U7GUY.js} +20 -20
- package/dist/bundle/{chunk-BXR7BKM3.js → chunk-OTROVC4E.js} +1 -1
- package/dist/bundle/{chunk-UKOYQC5O.js → chunk-OXY6SSZG.js} +184 -29
- package/dist/bundle/{chunk-ZMNYK3FC.js → chunk-PDCCYHCH.js} +5 -5
- package/dist/bundle/{chunk-J5UDQD5S.js → chunk-PO5RQQIG.js} +5 -5
- package/dist/bundle/{chunk-PY7LKNOS.js → chunk-Q5DJTRKV.js} +2 -2
- package/dist/bundle/{chunk-E5EXJ2XS.js → chunk-QCKZ3GAA.js} +4 -4
- package/dist/bundle/{chunk-3SJQNS72.js → chunk-RKELRWH7.js} +5 -5
- package/dist/bundle/{chunk-6Y2FWJZ4.js → chunk-S4RXABDR.js} +3 -3
- package/dist/bundle/{chunk-BQMIDYBA.js → chunk-SXM6MHRR.js} +12 -12
- package/dist/bundle/chunk-TF23BZW5.js +64 -0
- package/dist/bundle/{chunk-N2RLJTIW.js → chunk-TWUH22Z5.js} +4 -4
- package/dist/bundle/chunk-UPOSDTPT.js +87 -0
- package/dist/bundle/{chunk-J4HQVHMN.js → chunk-UQLWMGSD.js} +5 -5
- package/dist/bundle/{chunk-K7LS3NGM.js → chunk-V3NVXIQR.js} +736 -230
- package/dist/bundle/{chunk-TKGAYKXW.js → chunk-VAUMOZU5.js} +228 -66
- package/dist/bundle/{chunk-BF6TQMNB.js → chunk-VJEOGKAN.js} +8 -10
- package/dist/bundle/{chunk-XGMDWIUP.js → chunk-VKPCONDQ.js} +4 -4
- package/dist/bundle/{chunk-73WSULMI.js → chunk-WYGWWHZP.js} +2 -2
- package/dist/bundle/{chunk-5W56YMQS.js → chunk-XDC3TWTL.js} +60 -51
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-XIUDS3OK.js} +1 -1
- package/dist/bundle/{chunk-3UPIJ7DW.js → chunk-XNVFKMVR.js} +21868 -4533
- package/dist/bundle/{chunk-O5CUFS7T.js → chunk-XR6ESRU6.js} +2 -2
- package/dist/bundle/{chunk-EPCJUL6M.js → chunk-Y6GNA7HE.js} +3 -3
- package/dist/bundle/{chunk-67HS46KM.js → chunk-YGU6ULU5.js} +12 -12
- package/dist/bundle/{chunk-HFM653T3.js → chunk-YIP7ELON.js} +768 -131
- package/dist/bundle/{chunk-3252WXOL.js → chunk-YUWPNG7B.js} +1 -1
- package/dist/bundle/{chunk-QR5VQXQ5.js → chunk-Z42YYLTS.js} +59 -37
- package/dist/bundle/{chunk-AWN22PJK.js → chunk-Z5KC7XBR.js} +3 -3
- package/dist/bundle/{chunk-ECEYAQGN.js → chunk-ZM5J6ZMB.js} +4 -2
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-ZMOUUOT2.js} +1 -1
- package/dist/bundle/{chunk-CACYL36O.js → chunk-ZOJU7ZFI.js} +8 -8
- package/dist/bundle/command-contract-BRW3AP44.js +38 -0
- package/dist/bundle/{decode-62A3HGPW.js → decode-G5YEIPNC.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-W2CWHNXR.js} +2 -2
- package/dist/bundle/{embed-J3IBVV2V.js → embed-OBFFPVF4.js} +9 -9
- package/dist/bundle/{embedder-QFPMDRT2.js → embedder-NGCBQHIG.js} +12 -12
- package/dist/bundle/entry-ET6HGM7A.js +22 -0
- package/dist/bundle/{failure-BKOGBMIC.js → failure-GV77W3CD.js} +4 -4
- package/dist/bundle/first-run-JG52UZVO.js +30 -0
- package/dist/bundle/first-screen-CIL3GFAA.js +36 -0
- package/dist/bundle/{google-RXM2XEPD.js → google-CIWUVJ5C.js} +13 -13
- package/dist/bundle/{google-api-NC65BZO4.js → google-api-Z3NSTBBR.js} +56 -57
- package/dist/bundle/grants-3S4RL3WB.js +104 -0
- package/dist/bundle/{identity-PI6F2GWA.js → identity-OM6GFZ7T.js} +6 -6
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-YQBQSYSS.js} +1 -1
- package/dist/bundle/{login-HTY7GT2S.js → login-7RYSDVN3.js} +62 -63
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-GWDA3HOA.js} +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-IVU33RL7.js} +2 -2
- package/dist/bundle/{node-sqlite-G2Y5SFJM.js → node-sqlite-SIH5BEW2.js} +9 -9
- package/dist/bundle/oauth-PT4JEHLL.js +22 -0
- package/dist/bundle/{open-WD4GFSJD.js → open-IAO2SNII.js} +8 -8
- package/dist/bundle/{openai-QVM4PMY7.js → openai-SGOUBHXP.js} +17 -17
- package/dist/bundle/{process-SWPJGPQC.js → process-BPBMV3AT.js} +1 -1
- package/dist/bundle/{program-WHYFAMXR.js → program-MYKKJ4F6.js} +231 -87
- package/dist/bundle/prompt-3ZM64DCB.js +17 -0
- package/dist/bundle/{reasons-Q34DQWB6.js → reasons-57J2D77K.js} +5 -5
- package/dist/bundle/{recognize-DM3YWHSE.js → recognize-A5C5RPB3.js} +7 -7
- package/dist/bundle/{remote-KXVWRK7J.js → remote-VWYFLRGO.js} +10 -10
- package/dist/bundle/{rerank-TINXM3MY.js → rerank-4NGQWREA.js} +10 -10
- package/dist/bundle/{serve-IY2WL656.js → serve-Y6LQTFH5.js} +12 -12
- package/dist/bundle/{server-VPY3OWPC.js → server-6AUHIIUA.js} +43 -44
- package/dist/bundle/server-PFHI35HA.js +69 -0
- package/dist/bundle/{services-PXNBOCOC.js → services-2W4J7EMW.js} +47 -32
- package/dist/bundle/{sqlite-runtime-5ZK2CV7Y.js → sqlite-runtime-P6BBDX2H.js} +9 -9
- package/dist/bundle/{start-LDVCN3DK.js → start-AFFA3LKM.js} +9 -7
- package/dist/bundle/{state-3MKTT3VS.js → state-PXKKXR3R.js} +9 -9
- package/dist/bundle/{store-4VQOT5IJ.js → store-CN6JEUC4.js} +28 -18
- package/dist/bundle/{store-7M4MSUJV.js → store-IVV2BAGZ.js} +78 -28
- package/dist/bundle/store-maintenance-command-MSY2QNEH.js +59 -0
- package/dist/bundle/tokens-P4LPNUFW.js +102 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -1
- package/dist/commands/config.js.map +1 -1
- 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-BCWUDTYQ.js +0 -22
- package/dist/bundle/chunk-W767AUNR.js +0 -132
- package/dist/bundle/chunk-WUP2MJDN.js +0 -42
- 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-S4RXABDR.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-SXM6MHRR.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-6KQJSFYF.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-TWUH22Z5.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-2TDUGC5D.js";
|
|
111
111
|
import {
|
|
112
112
|
googleError
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-OTROVC4E.js";
|
|
114
|
+
import "./chunk-XIUDS3OK.js";
|
|
115
115
|
import "./chunk-SBZB7HMU.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-4CIZWCXV.js";
|
|
117
|
+
import "./chunk-Z42YYLTS.js";
|
|
118
|
+
import "./chunk-OXY6SSZG.js";
|
|
119
119
|
import {
|
|
120
120
|
modelGateway,
|
|
121
121
|
storeInfo
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-YIP7ELON.js";
|
|
123
123
|
import {
|
|
124
124
|
RecipientList,
|
|
125
125
|
SendJournal,
|
|
126
126
|
sendGuard
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-XDC3TWTL.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-J24ZFCWM.js";
|
|
139
139
|
import {
|
|
140
140
|
commandsText,
|
|
141
141
|
inSection
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-DJ3SDJZY.js";
|
|
143
143
|
import "./chunk-HTQTIKWP.js";
|
|
144
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-RKELRWH7.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-33MGFUED.js";
|
|
177
|
+
import "./chunk-VJEOGKAN.js";
|
|
178
|
+
import "./chunk-YGU6ULU5.js";
|
|
179
179
|
import {
|
|
180
180
|
setupPermissionCeiling
|
|
181
|
-
} from "./chunk-
|
|
182
|
-
import "./chunk-
|
|
181
|
+
} from "./chunk-VKPCONDQ.js";
|
|
182
|
+
import "./chunk-NEFSGCVA.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-ZM5J6ZMB.js";
|
|
187
|
+
import "./chunk-2TFXK3R4.js";
|
|
188
|
+
import "./chunk-FRIJUILO.js";
|
|
189
|
+
import "./chunk-534OBX5Y.js";
|
|
190
|
+
import "./chunk-Z5KC7XBR.js";
|
|
191
191
|
import {
|
|
192
192
|
newOperationId
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-44SBK6KB.js";
|
|
194
194
|
import {
|
|
195
195
|
columnName,
|
|
196
196
|
readSpreadsheet
|
|
197
|
-
} from "./chunk-
|
|
198
|
-
import "./chunk-
|
|
197
|
+
} from "./chunk-ND6LLYGF.js";
|
|
198
|
+
import "./chunk-3BZRKLJ6.js";
|
|
199
199
|
import {
|
|
200
200
|
CEILING_KEY,
|
|
201
201
|
LEVELS,
|
|
@@ -204,40 +204,39 @@ import {
|
|
|
204
204
|
layerPermissions,
|
|
205
205
|
levelFor,
|
|
206
206
|
parseDuration
|
|
207
|
-
} from "./chunk-
|
|
208
|
-
import "./chunk-BCWUDTYQ.js";
|
|
207
|
+
} from "./chunk-6MQSQ4LX.js";
|
|
209
208
|
import {
|
|
210
209
|
latestVersion,
|
|
211
210
|
runUpdate,
|
|
212
211
|
updateNotice
|
|
213
|
-
} from "./chunk-
|
|
214
|
-
import "./chunk-
|
|
215
|
-
import "./chunk-
|
|
216
|
-
import "./chunk-
|
|
217
|
-
import "./chunk-J5UDQD5S.js";
|
|
218
|
-
import "./chunk-5DPV7X27.js";
|
|
219
|
-
import "./chunk-XLFJLZJL.js";
|
|
212
|
+
} from "./chunk-QCKZ3GAA.js";
|
|
213
|
+
import "./chunk-ZMOUUOT2.js";
|
|
214
|
+
import "./chunk-MOTRI3SY.js";
|
|
215
|
+
import "./chunk-CE2TJBLP.js";
|
|
220
216
|
import {
|
|
221
217
|
applyDocumentTransfer,
|
|
222
218
|
previewDocumentTransfer
|
|
223
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-VAUMOZU5.js";
|
|
224
220
|
import {
|
|
225
221
|
note
|
|
226
|
-
} from "./chunk-
|
|
227
|
-
import "./chunk-
|
|
222
|
+
} from "./chunk-TF23BZW5.js";
|
|
223
|
+
import "./chunk-PO5RQQIG.js";
|
|
224
|
+
import "./chunk-5DPV7X27.js";
|
|
225
|
+
import "./chunk-LMAVCYLQ.js";
|
|
226
|
+
import "./chunk-BKYMKVHT.js";
|
|
228
227
|
import {
|
|
229
228
|
CATALOG_QUERY,
|
|
230
229
|
IMPORTED_DOCUMENT_QUERY,
|
|
231
230
|
openStore
|
|
232
|
-
} from "./chunk-
|
|
233
|
-
import "./chunk-
|
|
231
|
+
} from "./chunk-XNVFKMVR.js";
|
|
232
|
+
import "./chunk-UPOSDTPT.js";
|
|
234
233
|
import {
|
|
235
234
|
FACT_STATUSES,
|
|
236
235
|
FACT_TYPES,
|
|
237
236
|
MEMORY_KINDS,
|
|
238
237
|
MEMORY_SCOPES,
|
|
239
238
|
MEMORY_STATUSES
|
|
240
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-V3NVXIQR.js";
|
|
241
240
|
import {
|
|
242
241
|
dateRange,
|
|
243
242
|
defineQuery,
|
|
@@ -247,40 +246,40 @@ import {
|
|
|
247
246
|
timezoneOf,
|
|
248
247
|
validateQuery,
|
|
249
248
|
zonedMoment
|
|
250
|
-
} from "./chunk-
|
|
251
|
-
import "./chunk-
|
|
252
|
-
import "./chunk-
|
|
253
|
-
import "./chunk-
|
|
249
|
+
} from "./chunk-EOOGWUTP.js";
|
|
250
|
+
import "./chunk-E4SDKMBJ.js";
|
|
251
|
+
import "./chunk-ZOJU7ZFI.js";
|
|
252
|
+
import "./chunk-ABYGSJZ4.js";
|
|
254
253
|
import {
|
|
255
254
|
storePath
|
|
256
|
-
} from "./chunk-
|
|
257
|
-
import "./chunk-
|
|
258
|
-
import "./chunk-
|
|
259
|
-
import "./chunk-
|
|
260
|
-
import "./chunk-
|
|
255
|
+
} from "./chunk-AEX37ETW.js";
|
|
256
|
+
import "./chunk-3HK5WMI5.js";
|
|
257
|
+
import "./chunk-4S4JMW6I.js";
|
|
258
|
+
import "./chunk-Y6GNA7HE.js";
|
|
259
|
+
import "./chunk-XR6ESRU6.js";
|
|
261
260
|
import "./chunk-D72URWJE.js";
|
|
262
261
|
import {
|
|
263
262
|
installerOf
|
|
264
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-27YUUGXQ.js";
|
|
265
264
|
import {
|
|
266
265
|
DRIVE_APP,
|
|
267
266
|
PACKAGE,
|
|
268
267
|
VERSION
|
|
269
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-5PPL7JDM.js";
|
|
270
269
|
import {
|
|
271
270
|
REASONS
|
|
272
|
-
} from "./chunk-
|
|
273
|
-
import "./chunk-
|
|
274
|
-
import "./chunk-
|
|
271
|
+
} from "./chunk-FUITWY7O.js";
|
|
272
|
+
import "./chunk-ZQ3GWKDQ.js";
|
|
273
|
+
import "./chunk-2NIC72HH.js";
|
|
275
274
|
import {
|
|
276
275
|
processStreams,
|
|
277
276
|
saveConfigFile,
|
|
278
277
|
writeSecurely
|
|
279
|
-
} from "./chunk-
|
|
280
|
-
import "./chunk-
|
|
278
|
+
} from "./chunk-OD4U7GUY.js";
|
|
279
|
+
import "./chunk-UQLWMGSD.js";
|
|
281
280
|
import "./chunk-Y5E2WNWB.js";
|
|
282
|
-
import "./chunk-
|
|
283
|
-
import "./chunk-
|
|
281
|
+
import "./chunk-2HF2MRXI.js";
|
|
282
|
+
import "./chunk-6EY46GAN.js";
|
|
284
283
|
import {
|
|
285
284
|
array,
|
|
286
285
|
boolean,
|
|
@@ -304,11 +303,11 @@ import {
|
|
|
304
303
|
string,
|
|
305
304
|
unknown,
|
|
306
305
|
writes
|
|
307
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-FEZF3TII.js";
|
|
308
307
|
import {
|
|
309
308
|
CliError,
|
|
310
309
|
isCliError
|
|
311
|
-
} from "./chunk-
|
|
310
|
+
} from "./chunk-4OSSOWDM.js";
|
|
312
311
|
import {
|
|
313
312
|
__commonJS,
|
|
314
313
|
__name,
|
|
@@ -1991,7 +1990,7 @@ var catalogInput = /* @__PURE__ */ __name((file) => ({
|
|
|
1991
1990
|
lastModifiedBy: file.lastModifiedBy ?? null
|
|
1992
1991
|
}
|
|
1993
1992
|
}), "catalogInput");
|
|
1994
|
-
var catalogTree = /* @__PURE__ */ __name((entries,
|
|
1993
|
+
var catalogTree = /* @__PURE__ */ __name((entries, roots2, depth) => {
|
|
1995
1994
|
if (!Number.isSafeInteger(depth) || depth < 0 || depth > 50)
|
|
1996
1995
|
throw new CliError("validation_error", "tree depth must be between 0 and 50", { reason: "catalog.depth-invalid" });
|
|
1997
1996
|
const byId = new Map(entries.map((entry) => [entry.externalId, entry]));
|
|
@@ -2025,7 +2024,7 @@ var catalogTree = /* @__PURE__ */ __name((entries, roots, depth) => {
|
|
|
2025
2024
|
truncated: level >= depth && found.length > 0
|
|
2026
2025
|
};
|
|
2027
2026
|
}, "node");
|
|
2028
|
-
return
|
|
2027
|
+
return roots2.map((id) => {
|
|
2029
2028
|
const entry = byId.get(id);
|
|
2030
2029
|
if (entry?.kind !== "folder")
|
|
2031
2030
|
throw new CliError("not_found", "folder is not in the active local catalog; run catalog import or sync", {
|
|
@@ -2444,8 +2443,8 @@ var installCatalogCommands = /* @__PURE__ */ __name((program, helpers) => {
|
|
|
2444
2443
|
if (!page.hasMore)
|
|
2445
2444
|
break;
|
|
2446
2445
|
}
|
|
2447
|
-
const
|
|
2448
|
-
return allOf(catalogTree(items,
|
|
2446
|
+
const roots2 = id ? [fileId(id)] : activeProfile(env, selected()).roots;
|
|
2447
|
+
return allOf(catalogTree(items, roots2.map((root) => `${root}.md`), args.depth));
|
|
2449
2448
|
})));
|
|
2450
2449
|
const tags = local(catalog.command("tags")).description("add owner tags to cached files or folders");
|
|
2451
2450
|
for (const action of ["list", "add", "remove"]) {
|
|
@@ -2732,7 +2731,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
|
|
|
2732
2731
|
throw new CliError("permission_error", "downloading a model needs the network; --offline was requested", {
|
|
2733
2732
|
reason: "offline.refused"
|
|
2734
2733
|
});
|
|
2735
|
-
const { downloadImageModel, downloadTextModel } = await import("./services-
|
|
2734
|
+
const { downloadImageModel, downloadTextModel } = await import("./services-2W4J7EMW.js");
|
|
2736
2735
|
const progress = /* @__PURE__ */ __name((line) => {
|
|
2737
2736
|
if (!program.opts().quiet)
|
|
2738
2737
|
streams.diagnostic(line);
|
|
@@ -2756,8 +2755,10 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
|
|
|
2756
2755
|
diagnostic: /* @__PURE__ */ __name((line) => streams.diagnostic(line), "diagnostic"),
|
|
2757
2756
|
offline: /* @__PURE__ */ __name(() => policyFlags().offline === true, "offline")
|
|
2758
2757
|
});
|
|
2758
|
+
const own = new Set(models.commands.map((command) => command.name()));
|
|
2759
2759
|
for (const command of sharedModels.commands)
|
|
2760
|
-
|
|
2760
|
+
if (!own.has(command.name()))
|
|
2761
|
+
models.addCommand(command);
|
|
2761
2762
|
const images = annotate(program.command("images"), { effects: LOCAL_READ }).description("the local model that picture search uses");
|
|
2762
2763
|
const imageModels = annotate(images.command("models"), { effects: LOCAL_READ }).description("models that read pictures, for picture search");
|
|
2763
2764
|
examples(annotate(imageModels.command("download"), { effects: FETCH, output: { entity: "model" } }).description("download a picture model once into the folder every WireCat CLI shares"), ["drive images models download clip-b32"]).argument("<model>", "model id, such as clip-b32").action((id) => download("image", id, false));
|
|
@@ -3659,8 +3660,142 @@ var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3659
3660
|
});
|
|
3660
3661
|
}, "installDocumentCommands");
|
|
3661
3662
|
|
|
3663
|
+
// dist/browse.js
|
|
3664
|
+
var SHARED_WITH_ME = "shared-with-me";
|
|
3665
|
+
var browseRow = strictObject({
|
|
3666
|
+
id: string(),
|
|
3667
|
+
name: string(),
|
|
3668
|
+
kind: picklist(["my_drive", "shared_with_me", "shared_drive", "folder"]),
|
|
3669
|
+
parent: nullable(string()),
|
|
3670
|
+
location: picklist(["my_drive", "shared_with_me", "shared_drive"]),
|
|
3671
|
+
drive_id: nullable(string()),
|
|
3672
|
+
child_folders: nullable(number()),
|
|
3673
|
+
added: boolean()
|
|
3674
|
+
});
|
|
3675
|
+
var BROWSE_HELP = `
|
|
3676
|
+
Each item, one level of the tree (--json prints them under "items"):
|
|
3677
|
+
id folder id to pass to --parent or to folders add; shared-with-me at the top level
|
|
3678
|
+
name folder name as Google shows it
|
|
3679
|
+
kind my_drive, shared_with_me or shared_drive (the top level), folder (below it)
|
|
3680
|
+
parent the --parent given, or null at the top level
|
|
3681
|
+
location where the folder lives: my_drive, shared_with_me or shared_drive
|
|
3682
|
+
drive_id the shared drive's id, or null
|
|
3683
|
+
child_folders folders directly inside it, or null when not counted (Shared with me, a level of over 1000 folders)
|
|
3684
|
+
added whether sync already imports this folder (folders add)
|
|
3685
|
+
Folders are listed by name. Only folders are listed; files inside them are not.
|
|
3686
|
+
Failures carry error.reason: oauth.missing (not signed in), oauth.expired (sign in again),
|
|
3687
|
+
provider.rate-limited (retry later), not_found code (no such folder).`;
|
|
3688
|
+
var PAGE_BOUND = 1e3;
|
|
3689
|
+
var COUNTED_LEVEL = 1e3;
|
|
3690
|
+
var COUNT_CHUNK = 50;
|
|
3691
|
+
var SAFE_ID = /^[A-Za-z0-9_-]{1,200}$/;
|
|
3692
|
+
var NOT_TRASHED_FOLDER = `mimeType = '${FOLDER}' and trashed = false`;
|
|
3693
|
+
var ACROSS_DRIVES = { supportsAllDrives: true, includeItemsFromAllDrives: true };
|
|
3694
|
+
var everyPage = /* @__PURE__ */ __name(async (call, method, params, key) => {
|
|
3695
|
+
const rows = [];
|
|
3696
|
+
const seen = /* @__PURE__ */ new Set();
|
|
3697
|
+
let incomplete = false;
|
|
3698
|
+
let pageToken;
|
|
3699
|
+
for (let page = 0; page < PAGE_BOUND; page++) {
|
|
3700
|
+
const data = await call(method, { ...params, ...pageToken ? { pageToken } : {} }) ?? {};
|
|
3701
|
+
for (const row of data[key] ?? [])
|
|
3702
|
+
rows.push(row);
|
|
3703
|
+
if (data.incompleteSearch)
|
|
3704
|
+
incomplete = true;
|
|
3705
|
+
if (rows.length > MAX_ENTRIES)
|
|
3706
|
+
throw new CliError("provider_error", `this level holds more than ${MAX_ENTRIES} folders; drive lists at most that`, {
|
|
3707
|
+
reason: "listing.too-large"
|
|
3708
|
+
});
|
|
3709
|
+
if (!data.nextPageToken)
|
|
3710
|
+
return { rows, incomplete };
|
|
3711
|
+
if (seen.has(data.nextPageToken))
|
|
3712
|
+
throw new CliError("invalid_response", "Google repeated a folder page token");
|
|
3713
|
+
seen.add(data.nextPageToken);
|
|
3714
|
+
pageToken = data.nextPageToken;
|
|
3715
|
+
}
|
|
3716
|
+
throw new CliError("provider_error", "folder pagination exceeded its bound", { reason: "listing.too-large" });
|
|
3717
|
+
}, "everyPage");
|
|
3718
|
+
var childCounts = /* @__PURE__ */ __name(async (call, ids) => {
|
|
3719
|
+
const counted = ids.filter((id) => SAFE_ID.test(id));
|
|
3720
|
+
if (counted.length > COUNTED_LEVEL)
|
|
3721
|
+
return void 0;
|
|
3722
|
+
const counts = new Map(counted.map((id) => [id, 0]));
|
|
3723
|
+
for (let start = 0; start < counted.length; start += COUNT_CHUNK) {
|
|
3724
|
+
const chunk = counted.slice(start, start + COUNT_CHUNK);
|
|
3725
|
+
const { rows, incomplete } = await everyPage(call, "drive.files.list", {
|
|
3726
|
+
q: `${NOT_TRASHED_FOLDER} and (${chunk.map((id) => `'${id}' in parents`).join(" or ")})`,
|
|
3727
|
+
fields: "nextPageToken,incompleteSearch,files(parents)",
|
|
3728
|
+
pageSize: 1e3,
|
|
3729
|
+
...ACROSS_DRIVES
|
|
3730
|
+
}, "files");
|
|
3731
|
+
if (incomplete)
|
|
3732
|
+
return void 0;
|
|
3733
|
+
for (const row of rows)
|
|
3734
|
+
for (const parent of row.parents ?? []) {
|
|
3735
|
+
const count = counts.get(parent);
|
|
3736
|
+
if (count !== void 0)
|
|
3737
|
+
counts.set(parent, count + 1);
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
return counts;
|
|
3741
|
+
}, "childCounts");
|
|
3742
|
+
var byName = /* @__PURE__ */ __name((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base", numeric: true }) || a.id.localeCompare(b.id), "byName");
|
|
3743
|
+
var listed = /* @__PURE__ */ __name((items, incomplete) => listOf("", {
|
|
3744
|
+
items,
|
|
3745
|
+
limit: Math.max(1, items.length),
|
|
3746
|
+
has_more: false,
|
|
3747
|
+
...incomplete ? { missing: [{ field: "items", why: "Google searched only some of the drives; some folders may be missing" }] } : {}
|
|
3748
|
+
}), "listed");
|
|
3749
|
+
var roots = /* @__PURE__ */ __name(async (call, added) => {
|
|
3750
|
+
const myDrive = await call("drive.files.get", { fileId: "root", fields: "id" }) ?? {};
|
|
3751
|
+
if (!myDrive.id)
|
|
3752
|
+
throw new CliError("invalid_response", "Google did not return the My Drive folder");
|
|
3753
|
+
const { rows: drives } = await everyPage(call, "drive.drives.list", { pageSize: 100, fields: "nextPageToken,drives(id,name)" }, "drives");
|
|
3754
|
+
const shared = drives.flatMap((drive) => drive.id ? [{ id: drive.id, name: drive.name ?? "" }] : []);
|
|
3755
|
+
const counts = await childCounts(call, [myDrive.id, ...shared.map((drive) => drive.id)]);
|
|
3756
|
+
const top = /* @__PURE__ */ __name((id, name, kind) => ({
|
|
3757
|
+
id,
|
|
3758
|
+
name,
|
|
3759
|
+
kind,
|
|
3760
|
+
parent: null,
|
|
3761
|
+
location: kind,
|
|
3762
|
+
drive_id: kind === "shared_drive" ? id : null,
|
|
3763
|
+
child_folders: kind === "shared_with_me" ? null : counts?.get(id) ?? null,
|
|
3764
|
+
added: added(id) || kind === "my_drive" && added("root")
|
|
3765
|
+
}), "top");
|
|
3766
|
+
return listed([
|
|
3767
|
+
top(myDrive.id, "My Drive", "my_drive"),
|
|
3768
|
+
top(SHARED_WITH_ME, "Shared with me", "shared_with_me"),
|
|
3769
|
+
...shared.map((drive) => top(drive.id, drive.name, "shared_drive")).sort(byName)
|
|
3770
|
+
], false);
|
|
3771
|
+
}, "roots");
|
|
3772
|
+
var browseFolders = /* @__PURE__ */ __name(async (call, parent, selected) => {
|
|
3773
|
+
const added = /* @__PURE__ */ __name((id) => selected.includes(id), "added");
|
|
3774
|
+
if (parent === void 0)
|
|
3775
|
+
return roots(call, added);
|
|
3776
|
+
const { rows, incomplete } = await everyPage(call, "drive.files.list", {
|
|
3777
|
+
q: parent === SHARED_WITH_ME ? `sharedWithMe = true and ${NOT_TRASHED_FOLDER}` : `'${parent}' in parents and ${NOT_TRASHED_FOLDER}`,
|
|
3778
|
+
fields: "nextPageToken,incompleteSearch,files(id,name,driveId,ownedByMe)",
|
|
3779
|
+
pageSize: 1e3,
|
|
3780
|
+
...ACROSS_DRIVES
|
|
3781
|
+
}, "files");
|
|
3782
|
+
const folders = rows.filter((row) => Boolean(row.id));
|
|
3783
|
+
const counts = await childCounts(call, folders.map((folder) => folder.id));
|
|
3784
|
+
const items = folders.map((folder) => ({
|
|
3785
|
+
id: folder.id,
|
|
3786
|
+
name: folder.name ?? "",
|
|
3787
|
+
kind: "folder",
|
|
3788
|
+
parent,
|
|
3789
|
+
location: folder.driveId ? "shared_drive" : folder.ownedByMe === false ? "shared_with_me" : "my_drive",
|
|
3790
|
+
drive_id: folder.driveId ?? null,
|
|
3791
|
+
child_folders: counts?.get(folder.id) ?? null,
|
|
3792
|
+
added: added(folder.id)
|
|
3793
|
+
}));
|
|
3794
|
+
return listed(items.sort(byName), incomplete);
|
|
3795
|
+
}, "browseFolders");
|
|
3796
|
+
|
|
3662
3797
|
// dist/commands/folders.js
|
|
3663
|
-
var installFolderCommands = /* @__PURE__ */ __name((program, context) => {
|
|
3798
|
+
var installFolderCommands = /* @__PURE__ */ __name((program, context, call) => {
|
|
3664
3799
|
const { env, selected, output, source } = context;
|
|
3665
3800
|
const folders = annotate(program.command("folders"), { effects: LOCAL_READ }).description("choose the Google Drive folders that sync imports");
|
|
3666
3801
|
const folderArgument = "folder id or Google Drive URL";
|
|
@@ -3682,6 +3817,15 @@ var installFolderCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3682
3817
|
const filter = termsOf(words, FOLDERS_QUERY, "folders list");
|
|
3683
3818
|
output(allOf(selectedFolders(env, selected(), filter)));
|
|
3684
3819
|
});
|
|
3820
|
+
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), [
|
|
3821
|
+
"drive personal folders browse",
|
|
3822
|
+
"drive personal folders browse --parent FOLDER_ID --json",
|
|
3823
|
+
`drive personal folders browse --parent ${SHARED_WITH_ME}`
|
|
3824
|
+
]).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) => {
|
|
3825
|
+
const parent = args.parent === void 0 || args.parent === SHARED_WITH_ME ? args.parent : fileId(args.parent);
|
|
3826
|
+
const roots2 = activeProfile(env, selected()).roots;
|
|
3827
|
+
output(await browseFolders(call, parent, roots2));
|
|
3828
|
+
});
|
|
3685
3829
|
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
3830
|
const id = fileId(input);
|
|
3687
3831
|
const config = readConfig(env);
|
|
@@ -22579,7 +22723,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22579
22723
|
const app = application(env, { file: args.clientFile, clientId: args.clientId, profile: selected() });
|
|
22580
22724
|
if (!app.clientSecret)
|
|
22581
22725
|
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-
|
|
22726
|
+
const { login } = await import("./login-7RYSDVN3.js");
|
|
22583
22727
|
output(itemOf(await login({
|
|
22584
22728
|
env,
|
|
22585
22729
|
profile: selected(),
|
|
@@ -22610,7 +22754,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22610
22754
|
const name = selected();
|
|
22611
22755
|
const config = readConfig(env);
|
|
22612
22756
|
const profile = activeProfile(env, name);
|
|
22613
|
-
const { credentials } = await import("./tokens-
|
|
22757
|
+
const { credentials } = await import("./tokens-P4LPNUFW.js");
|
|
22614
22758
|
const store = credentials(env, profile.storage, options.keyring);
|
|
22615
22759
|
store.remove(name);
|
|
22616
22760
|
writeConfig(env, config);
|
|
@@ -22657,7 +22801,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
|
|
|
22657
22801
|
return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
|
|
22658
22802
|
}, "selection");
|
|
22659
22803
|
var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
|
|
22660
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
22804
|
+
const { ensureSqlite } = await import("./sqlite-runtime-P6BBDX2H.js");
|
|
22661
22805
|
await ensureSqlite();
|
|
22662
22806
|
const { state, options } = selection(env, name, source);
|
|
22663
22807
|
const preview = await previewDocumentTransfer({ ...options, bindings });
|
|
@@ -22831,7 +22975,7 @@ var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22831
22975
|
// dist/commands/upgrade.js
|
|
22832
22976
|
import { join as join7 } from "node:path";
|
|
22833
22977
|
|
|
22834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
22835
22979
|
import { realpathSync } from "node:fs";
|
|
22836
22980
|
import { fileURLToPath } from "node:url";
|
|
22837
22981
|
var QUIET_WORDS = [
|
|
@@ -23250,9 +23394,9 @@ var DRIVE_PROVIDER = {
|
|
|
23250
23394
|
var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
|
|
23251
23395
|
if (name)
|
|
23252
23396
|
activeProfile(env, name);
|
|
23253
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
23397
|
+
const { ensureSqlite } = await import("./sqlite-runtime-P6BBDX2H.js");
|
|
23254
23398
|
await ensureSqlite();
|
|
23255
|
-
const { openStore: openStore2, storePath: storePath2 } = await import("./store-
|
|
23399
|
+
const { openStore: openStore2, storePath: storePath2 } = await import("./store-IVV2BAGZ.js");
|
|
23256
23400
|
if (env.DRIVE_STORE)
|
|
23257
23401
|
throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
|
|
23258
23402
|
const store = await openStore2({ path: storePath2(env), env, command: "drive", version: VERSION });
|
|
@@ -23297,7 +23441,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23297
23441
|
linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
|
|
23298
23442
|
knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
|
|
23299
23443
|
openPictures: /* @__PURE__ */ __name(async () => {
|
|
23300
|
-
const { openPictureEmbedderFor, savePicture } = await import("./services-
|
|
23444
|
+
const { openPictureEmbedderFor, savePicture } = await import("./services-2W4J7EMW.js");
|
|
23301
23445
|
const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
|
|
23302
23446
|
return {
|
|
23303
23447
|
save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
|
|
@@ -23316,7 +23460,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23316
23460
|
has_more: false,
|
|
23317
23461
|
meaning_skipped: "this Google account has no imported sources"
|
|
23318
23462
|
};
|
|
23319
|
-
const { searchNotes } = await import("./services-
|
|
23463
|
+
const { searchNotes } = await import("./services-2W4J7EMW.js");
|
|
23320
23464
|
const result = await searchNotes(store, query, {
|
|
23321
23465
|
...options,
|
|
23322
23466
|
folderIds: selected ? [selected.id] : [],
|
|
@@ -23347,7 +23491,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23347
23491
|
};
|
|
23348
23492
|
}, "search"),
|
|
23349
23493
|
embed: /* @__PURE__ */ __name(async (max) => {
|
|
23350
|
-
const { embedNotes } = await import("./services-
|
|
23494
|
+
const { embedNotes } = await import("./services-2W4J7EMW.js");
|
|
23351
23495
|
return embedNotes(store, { maxChunks: max, env, command: "drive" });
|
|
23352
23496
|
}, "embed"),
|
|
23353
23497
|
close: /* @__PURE__ */ __name(() => store.close(), "close")
|
|
@@ -23634,7 +23778,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23634
23778
|
}, "output");
|
|
23635
23779
|
const signal = /* @__PURE__ */ __name(() => environment().signal, "signal");
|
|
23636
23780
|
const signedIn = /* @__PURE__ */ __name(async (name, scope2) => {
|
|
23637
|
-
const { authorizedClient, checkAuthorization } = await import("./tokens-
|
|
23781
|
+
const { authorizedClient, checkAuthorization } = await import("./tokens-P4LPNUFW.js");
|
|
23638
23782
|
const client = authorizedClient(env, name, environment().keyring, signal());
|
|
23639
23783
|
await checkAuthorization(client, scope2);
|
|
23640
23784
|
return client;
|
|
@@ -23644,7 +23788,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23644
23788
|
const fake = environment().source;
|
|
23645
23789
|
if (fake)
|
|
23646
23790
|
return fake(name);
|
|
23647
|
-
const [{ googleSource }, client] = await Promise.all([import("./google-
|
|
23791
|
+
const [{ googleSource }, client] = await Promise.all([import("./google-CIWUVJ5C.js"), signedIn(name)]);
|
|
23648
23792
|
return googleSource(client);
|
|
23649
23793
|
}, "source");
|
|
23650
23794
|
const withIndex = /* @__PURE__ */ __name(async (fn) => {
|
|
@@ -23710,7 +23854,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23710
23854
|
runsOf.set(program, runs);
|
|
23711
23855
|
const imported = importedDocument(context);
|
|
23712
23856
|
installSessionCommands(program, context);
|
|
23713
|
-
installFolderCommands(program, context);
|
|
23857
|
+
installFolderCommands(program, context, (method, params) => remote.call(method, params));
|
|
23714
23858
|
installSyncCommands(program, context);
|
|
23715
23859
|
installStoreCommands(program, context);
|
|
23716
23860
|
installDocumentCommands(program, context);
|
|
@@ -23786,7 +23930,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23786
23930
|
if (fake)
|
|
23787
23931
|
return await fake.call(method, params, body);
|
|
23788
23932
|
const [{ googleApi }, client] = await Promise.all([
|
|
23789
|
-
import("./google-api-
|
|
23933
|
+
import("./google-api-Z3NSTBBR.js"),
|
|
23790
23934
|
signedIn(selected(), descriptor.scope)
|
|
23791
23935
|
]);
|
|
23792
23936
|
return await googleApi(client).call(method, params, body);
|
|
@@ -23812,7 +23956,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23812
23956
|
if (fake)
|
|
23813
23957
|
return fake(id, mime);
|
|
23814
23958
|
const [{ googleDownload }, client] = await Promise.all([
|
|
23815
|
-
import("./google-api-
|
|
23959
|
+
import("./google-api-Z3NSTBBR.js"),
|
|
23816
23960
|
signedIn(selected(), apiMethod(method).scope)
|
|
23817
23961
|
]);
|
|
23818
23962
|
return googleDownload(client)(id, mime);
|
|
@@ -23830,7 +23974,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23830
23974
|
let request = environment().uploadRequest;
|
|
23831
23975
|
if (!request) {
|
|
23832
23976
|
const [{ googleUploadRequest }, client] = await Promise.all([
|
|
23833
|
-
import("./google-api-
|
|
23977
|
+
import("./google-api-Z3NSTBBR.js"),
|
|
23834
23978
|
signedIn(selected(), apiMethod(method).scope)
|
|
23835
23979
|
]);
|
|
23836
23980
|
request = googleUploadRequest(client);
|
|
@@ -24034,7 +24178,7 @@ var mcpCommand = /* @__PURE__ */ __name(() => {
|
|
|
24034
24178
|
const environment = environmentOf(action);
|
|
24035
24179
|
if (environment.api)
|
|
24036
24180
|
return;
|
|
24037
|
-
const { grantAvailability } = await import("./grants-
|
|
24181
|
+
const { grantAvailability } = await import("./grants-3S4RL3WB.js");
|
|
24038
24182
|
availability = grantAvailability(rootOf(root), environment.env ?? process.env, environment.keyring);
|
|
24039
24183
|
});
|
|
24040
24184
|
}, "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-Y6GNA7HE.js";
|
|
6
|
+
import "./chunk-XR6ESRU6.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-HZZCEQTH.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,
|