@wirecat/drive-cli 0.66.0 → 0.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/wirecat.json +29 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WCQLIHUG.js → all-profiles-BU6XUFUP.js} +14 -14
- package/dist/bundle/{anthropic-5RJMB6O7.js → anthropic-ZP5B7S2Z.js} +8 -8
- package/dist/bundle/{app-server-3RGYXPKG.js → app-server-EB4DH6T7.js} +60 -56
- package/dist/bundle/{bun-L34VEKGG.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-H6IAXQXI.js → bun-sqlite-6VPR2SVC.js} +9 -9
- package/dist/bundle/{chunk-HPKE2GDP.js → chunk-2UHQVRH2.js} +18 -18
- package/dist/bundle/{chunk-2AF77WMH.js → chunk-2VYEGKQ3.js} +1 -1
- package/dist/bundle/{chunk-TAHISPDE.js → chunk-43NEDPXB.js} +39 -35
- package/dist/bundle/{chunk-OT7SQQJK.js → chunk-5G2BY4B6.js} +17 -17
- package/dist/bundle/{chunk-NYZS2LKF.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-5XLU4NN6.js → chunk-5W65QTYS.js} +4 -4
- package/dist/bundle/{chunk-YTIPTHEE.js → chunk-6HFZZ2PW.js} +2 -2
- package/dist/bundle/{chunk-GY4DAJSK.js → chunk-6QR7NKMG.js} +35 -6
- package/dist/bundle/{chunk-BIJW6AYA.js → chunk-6WAC2LOS.js} +3698 -3594
- package/dist/bundle/{chunk-VR3YKXHL.js → chunk-74NCZKRW.js} +33 -20
- package/dist/bundle/{chunk-5HVJK3ZJ.js → chunk-7A77GYCE.js} +4 -4
- package/dist/bundle/{chunk-7ZGJRVBH.js → chunk-7BXVI7XF.js} +4 -4
- package/dist/bundle/{chunk-UNTIVT47.js → chunk-7JKECODO.js} +1 -1
- package/dist/bundle/{chunk-FKKPVPZR.js → chunk-7TNQZKRD.js} +57 -57
- package/dist/bundle/{chunk-3SDJIMZB.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-QJ57PV55.js → chunk-AXYG2DDY.js} +136 -90
- package/dist/bundle/{chunk-T3ULDA7C.js → chunk-BXHFJTU5.js} +3 -3
- package/dist/bundle/{chunk-HPSHQVJU.js → chunk-CK2SQ2CE.js} +28 -22
- package/dist/bundle/{chunk-KRG5X5PH.js → chunk-CMWFYZ45.js} +2 -2
- package/dist/bundle/{chunk-3QFUDXMQ.js → chunk-CRIEW4FP.js} +3 -2
- package/dist/bundle/{chunk-V2WXTILT.js → chunk-CVAJMRRD.js} +6 -6
- package/dist/bundle/{chunk-JCHF7LZT.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-FHBTQPA3.js → chunk-DIZBJLPM.js} +41 -37
- package/dist/bundle/{chunk-VUUPFDRU.js → chunk-DU23ET2O.js} +113 -39
- package/dist/bundle/{chunk-IRNDYNQX.js → chunk-DYLYH7VE.js} +4 -4
- package/dist/bundle/{chunk-IIHZTV6V.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-AP4MX247.js → chunk-EEE4H2PA.js} +12 -12
- package/dist/bundle/{chunk-UAKX6DP4.js → chunk-EOC7RHJ2.js} +5 -5
- package/dist/bundle/{chunk-HHRJPLFO.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-KOY5HUBY.js → chunk-F7KAMSXA.js} +4 -4
- package/dist/bundle/{chunk-D4MIMH2N.js → chunk-FAMXUI2X.js} +5 -5
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-XVZNFA2P.js → chunk-GTLXBAJV.js} +309 -278
- package/dist/bundle/{chunk-JQXK3M5M.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-NK4GVFJH.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-MZWXTJ4O.js → chunk-IVOG6T6P.js} +3 -3
- package/dist/bundle/{chunk-PKM55ZRR.js → chunk-J5LXL435.js} +20 -20
- package/dist/bundle/{chunk-G4TNKBDX.js → chunk-JMZQBRRZ.js} +7 -7
- package/dist/bundle/{chunk-VQKNKJYL.js → chunk-JRFKCYMW.js} +6 -6
- package/dist/bundle/{chunk-XLGDNI4S.js → chunk-JZ3MT7IE.js} +5 -40
- package/dist/bundle/{chunk-UG3GHFGY.js → chunk-KPKIHJIT.js} +6 -8
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-5PLINHEY.js → chunk-MLSXHTUB.js} +153 -149
- package/dist/bundle/{chunk-Y5U4HIZS.js → chunk-MOKEB656.js} +2 -2
- package/dist/bundle/{chunk-6X3KUFRQ.js → chunk-MW46BLWH.js} +20 -20
- package/dist/bundle/{chunk-I5R5CMQR.js → chunk-MWCPKUU4.js} +5 -5
- package/dist/bundle/{chunk-6UJCCOZC.js → chunk-NV75QPML.js} +4 -4
- package/dist/bundle/{chunk-OZOQLAWK.js → chunk-O7T3WGCV.js} +6 -6
- package/dist/bundle/{chunk-H7XL6WTW.js → chunk-PGPHEC2X.js} +2 -2
- package/dist/bundle/{chunk-UQPW42HF.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-ALE67WRR.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-HQBLJLYH.js → chunk-PWIEOATY.js} +8 -8
- package/dist/bundle/{chunk-WYTYHUFH.js → chunk-Q6BD6RUH.js} +43 -43
- package/dist/bundle/{chunk-BQXSE645.js → chunk-QKY24RWV.js} +12 -12
- package/dist/bundle/{chunk-2S3E2HVV.js → chunk-QRSPFCRY.js} +17 -17
- package/dist/bundle/{chunk-3NYH756U.js → chunk-QTRYJZL7.js} +11 -6
- package/dist/bundle/{chunk-QF7VL4C3.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-ULXEW6FT.js → chunk-QWGEOQHA.js} +1 -1
- package/dist/bundle/{chunk-JLCR24UM.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-M7543RUJ.js → chunk-RT5NT62B.js} +220 -15
- package/dist/bundle/{chunk-SZ6JFOL4.js → chunk-SOS4U2RF.js} +62 -41
- package/dist/bundle/{chunk-PUMDOCAF.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-COGWKO2T.js → chunk-U52QE4QV.js} +3 -3
- package/dist/bundle/{chunk-LVAPSAHF.js → chunk-UFPRP7MG.js} +8 -8
- package/dist/bundle/{chunk-5VDVGDOC.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-7LT2G5BC.js → chunk-ULNN3LCY.js} +29 -27
- package/dist/bundle/{chunk-GVA3KTCD.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-4UHBJSMI.js → chunk-UUQJVKPB.js} +516 -458
- package/dist/bundle/{chunk-O53WLYX3.js → chunk-UYBLNGZ2.js} +2 -2
- package/dist/bundle/{chunk-D7KOAPG6.js → chunk-WCNTDETD.js} +2 -2
- package/dist/bundle/{chunk-JHMEETXI.js → chunk-WGX4DZPW.js} +2 -2
- package/dist/bundle/{chunk-P7HQFII6.js → chunk-WUFZGPXX.js} +7 -7
- package/dist/bundle/{chunk-5K54RZBK.js → chunk-Y2QVNVHK.js} +1 -1
- package/dist/bundle/{chunk-7EP4AU6A.js → chunk-YUGTJBV3.js} +3 -3
- package/dist/bundle/{chunk-QSELSDWE.js → chunk-YYIWPH53.js} +13 -13
- package/dist/bundle/{chunk-E2F2XIX6.js → chunk-Z5BMYI2V.js} +8 -8
- package/dist/bundle/{chunk-TYLEICTX.js → chunk-ZAIE3G5I.js} +3 -3
- package/dist/bundle/{chunk-SOOU5WO6.js → chunk-ZSVMZH5O.js} +2 -2
- package/dist/bundle/{chunk-FA2TNA5X.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{cli-KW6QQVS5.js → cli-L7P36YUH.js} +61 -61
- package/dist/bundle/command-contract-EYFGMKIG.js +41 -0
- package/dist/bundle/{command-server-entry-OC4E4DED.js → command-server-entry-H3VGPOLJ.js} +31 -31
- package/dist/bundle/{decode-AH5ZLLDK.js → decode-JEU6JWCV.js} +8 -8
- package/dist/bundle/{dispatch-CDWZZ54Q.js → dispatch-WBEOHZDV.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-VC7MTXWY.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-EPSQY6QG.js → embed-WUKOASQG.js} +9 -9
- package/dist/bundle/{embedder-TK4U4TJR.js → embedder-UBRAXRDZ.js} +12 -12
- package/dist/bundle/entry-C4NUQFTF.js +25 -0
- package/dist/bundle/{failure-WSVZOPFE.js → failure-X6PSLVSO.js} +4 -4
- package/dist/bundle/first-run-PKHBS7B4.js +30 -0
- package/dist/bundle/first-screen-QOVOM4BF.js +39 -0
- package/dist/bundle/google-XXHSMTVK.js +45 -0
- package/dist/bundle/{google-api-AV4X2JH3.js → google-api-SQQ4BSNR.js} +63 -63
- package/dist/bundle/grants-2U4JVT6O.js +111 -0
- package/dist/bundle/{identity-CGHHF7AK.js → identity-SRL6RSU2.js} +6 -6
- package/dist/bundle/{instructions-24PHDBBE.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{login-XHFESAFM.js → login-N243GGEE.js} +69 -69
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-GIDULTV5.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-LINBOAWK.js → node-sqlite-SZQCCMV2.js} +10 -10
- package/dist/bundle/oauth-CMAFXX6A.js +22 -0
- package/dist/bundle/{open-RYFKPNCJ.js → open-RVTPKDA3.js} +8 -8
- package/dist/bundle/{openai-Q7YYUHJF.js → openai-6NN63BMH.js} +19 -19
- package/dist/bundle/{process-VPIZTIJR.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-IUXFRBZA.js → program-B4QBJYB5.js} +187 -228
- package/dist/bundle/{prompt-LF4KX3XL.js → prompt-HGP2DSRW.js} +8 -8
- package/dist/bundle/{reasons-JPYOU5GV.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-KEWTJXFH.js → recognize-26SHB7HI.js} +7 -7
- package/dist/bundle/{remote-HGGLB76S.js → remote-Z4PWHZ5N.js} +13 -13
- package/dist/bundle/{rerank-TDUKETFT.js → rerank-QHJZJK3Q.js} +10 -10
- package/dist/bundle/{serve-XFYMKW5W.js → serve-MYJW5IEM.js} +12 -12
- package/dist/bundle/server-HBZPIHDX.js +74 -0
- package/dist/bundle/{server-PXIPSGFP.js → server-XFW3V7CR.js} +49 -47
- package/dist/bundle/{services-2BOCGMJU.js → services-IQG2RVTO.js} +36 -36
- package/dist/bundle/{sqlite-runtime-R7M5XUMW.js → sqlite-runtime-X4GB5PBV.js} +9 -9
- package/dist/bundle/{start-YRLT4MQZ.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-NZ7WRJWH.js → state-ATQK2X3W.js} +9 -9
- package/dist/bundle/{store-ICDGPSEN.js → store-MEHEUOJH.js} +19 -19
- package/dist/bundle/{store-7LCVDO7G.js → store-QUBUPK6F.js} +21 -21
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
- package/dist/bundle/tokens-A2GP4F34.js +111 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/search.js +4 -4
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +2 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/transcripts.d.ts +4 -0
- package/dist/commands/transcripts.d.ts.map +1 -0
- package/dist/commands/transcripts.js +42 -0
- package/dist/commands/transcripts.js.map +1 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +14 -1
- package/dist/config.js.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +31 -28
- package/dist/google.js.map +1 -1
- package/dist/list-queries.d.ts +10 -0
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +12 -1
- package/dist/list-queries.js.map +1 -1
- package/dist/model.d.ts +4 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -2
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -2
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +2 -0
- package/dist/state.js.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -1
- package/dist/sync.js.map +1 -1
- package/dist/transcripts.d.ts +21 -0
- package/dist/transcripts.d.ts.map +1 -0
- package/dist/transcripts.js +48 -0
- package/dist/transcripts.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-CE543JBN.js +0 -41
- package/dist/bundle/entry-3VN23M7M.js +0 -25
- package/dist/bundle/first-run-7ZYJ7EB3.js +0 -30
- package/dist/bundle/first-screen-CZDH7QY3.js +0 -39
- package/dist/bundle/google-OBZMWA7J.js +0 -45
- package/dist/bundle/grants-WTRLN4ZI.js +0 -111
- package/dist/bundle/oauth-JHUX3KE3.js +0 -22
- package/dist/bundle/server-BDEV3CZJ.js +0 -74
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +0 -65
- package/dist/bundle/tokens-FGTBE7VW.js +0 -111
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
DOC,
|
|
5
|
-
DOCUMENT_LIST_FIELDS,
|
|
6
|
-
FOLDER,
|
|
7
4
|
MAX_ENTRIES,
|
|
8
|
-
metadataJson,
|
|
9
5
|
supported,
|
|
10
6
|
tooManyEntries
|
|
11
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JZ3MT7IE.js";
|
|
12
8
|
import {
|
|
13
9
|
ACCOUNT_FREE_COMMANDS,
|
|
14
10
|
ANY_PROFILE_COMMANDS,
|
|
@@ -19,13 +15,24 @@ import {
|
|
|
19
15
|
describeDriveProgram,
|
|
20
16
|
examples,
|
|
21
17
|
markProfileFree
|
|
22
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YUGTJBV3.js";
|
|
23
19
|
import {
|
|
24
20
|
DEFAULTS_ONLY,
|
|
25
21
|
DEFAULT_LEVELS,
|
|
22
|
+
FILES_QUERY,
|
|
23
|
+
FOLDERS_QUERY,
|
|
24
|
+
IDENTITIES_QUERY,
|
|
25
|
+
LINKS_QUERY,
|
|
26
|
+
MIRRORS_QUERY,
|
|
27
|
+
NOTES_QUERY,
|
|
28
|
+
PROFILE_ONLY,
|
|
29
|
+
SESSIONS_QUERY,
|
|
26
30
|
SETTING_NAMES,
|
|
31
|
+
TAGS_QUERY,
|
|
32
|
+
TRANSCRIPTS_QUERY,
|
|
27
33
|
activeProfile,
|
|
28
34
|
application,
|
|
35
|
+
bindQuery,
|
|
29
36
|
checkAddProfiles,
|
|
30
37
|
checkTextLimit,
|
|
31
38
|
configIssues,
|
|
@@ -33,11 +40,18 @@ import {
|
|
|
33
40
|
configuration,
|
|
34
41
|
configuredMirrors,
|
|
35
42
|
configuredSessions,
|
|
43
|
+
driveFileQuery,
|
|
36
44
|
fileId,
|
|
45
|
+
fileRow,
|
|
46
|
+
findTranscripts,
|
|
47
|
+
folderRow,
|
|
37
48
|
googleAppOf,
|
|
49
|
+
identityRow,
|
|
38
50
|
inspectConfig,
|
|
51
|
+
linkRow,
|
|
39
52
|
maxAddProfiles,
|
|
40
53
|
methodPolicyKeys,
|
|
54
|
+
mirrorRow,
|
|
41
55
|
oauthClientReport,
|
|
42
56
|
paths,
|
|
43
57
|
permissionKeys,
|
|
@@ -49,12 +63,21 @@ import {
|
|
|
49
63
|
readConfig,
|
|
50
64
|
refusal,
|
|
51
65
|
selectedFolders,
|
|
66
|
+
sessionRow,
|
|
67
|
+
tagRow,
|
|
68
|
+
termsOf,
|
|
52
69
|
textLimit,
|
|
70
|
+
transcriptQuery,
|
|
71
|
+
transcriptRow,
|
|
72
|
+
transcriptsOf,
|
|
53
73
|
unknownProfile,
|
|
54
74
|
withDefaults,
|
|
55
75
|
writeConfig
|
|
56
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-RT5NT62B.js";
|
|
57
77
|
import {
|
|
78
|
+
DOC,
|
|
79
|
+
DOCUMENT_LIST_FIELDS,
|
|
80
|
+
FOLDER,
|
|
58
81
|
blockKey,
|
|
59
82
|
blocksMarkdown,
|
|
60
83
|
catalogFiles,
|
|
@@ -65,6 +88,7 @@ import {
|
|
|
65
88
|
fileMirrorState,
|
|
66
89
|
markdownBlocks,
|
|
67
90
|
mergeBlocks,
|
|
91
|
+
metadataJson,
|
|
68
92
|
mirrorId,
|
|
69
93
|
mirrorStatus,
|
|
70
94
|
normalizeInlines,
|
|
@@ -72,7 +96,7 @@ import {
|
|
|
72
96
|
syncDocuments,
|
|
73
97
|
syncMirrors,
|
|
74
98
|
watchMirrors
|
|
75
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-DU23ET2O.js";
|
|
76
100
|
import {
|
|
77
101
|
apiMethod,
|
|
78
102
|
apiMethods,
|
|
@@ -81,14 +105,14 @@ import {
|
|
|
81
105
|
schemas,
|
|
82
106
|
validateApiParams,
|
|
83
107
|
validateRequest
|
|
84
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-7BXVI7XF.js";
|
|
85
109
|
import {
|
|
86
110
|
operations
|
|
87
111
|
} from "./chunk-NYECVHFH.js";
|
|
88
112
|
import {
|
|
89
113
|
googleError,
|
|
90
114
|
offlineRefused
|
|
91
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-Y2QVNVHK.js";
|
|
92
116
|
import {
|
|
93
117
|
DISCOVERY_DESCRIPTIONS,
|
|
94
118
|
MEMO_SCENARIOS,
|
|
@@ -119,16 +143,16 @@ import {
|
|
|
119
143
|
signInSteps,
|
|
120
144
|
skillCommand,
|
|
121
145
|
upgradeCommand
|
|
122
|
-
} from "./chunk-
|
|
123
|
-
import "./chunk-
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-
|
|
146
|
+
} from "./chunk-UUQJVKPB.js";
|
|
147
|
+
import "./chunk-EXWZCI5G.js";
|
|
148
|
+
import "./chunk-TI2OANJZ.js";
|
|
149
|
+
import "./chunk-ULNN3LCY.js";
|
|
150
|
+
import "./chunk-CK2SQ2CE.js";
|
|
127
151
|
import {
|
|
128
152
|
storeInfo
|
|
129
|
-
} from "./chunk-
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import "./chunk-
|
|
153
|
+
} from "./chunk-7TNQZKRD.js";
|
|
154
|
+
import "./chunk-Z5BMYI2V.js";
|
|
155
|
+
import "./chunk-5G2BY4B6.js";
|
|
132
156
|
import {
|
|
133
157
|
LIST_QUERY_GUIDE,
|
|
134
158
|
listQuery,
|
|
@@ -139,45 +163,45 @@ import {
|
|
|
139
163
|
typedQuery,
|
|
140
164
|
unfilteredQuery,
|
|
141
165
|
withQuery
|
|
142
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-2UHQVRH2.js";
|
|
143
167
|
import {
|
|
144
168
|
RecipientList,
|
|
145
169
|
SendJournal,
|
|
146
170
|
newOperationId,
|
|
147
171
|
sendGuard
|
|
148
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-GTLXBAJV.js";
|
|
149
173
|
import {
|
|
150
174
|
columnName,
|
|
151
175
|
modelGateway,
|
|
152
176
|
readSpreadsheet
|
|
153
|
-
} from "./chunk-
|
|
154
|
-
import "./chunk-
|
|
155
|
-
import "./chunk-
|
|
177
|
+
} from "./chunk-Q6BD6RUH.js";
|
|
178
|
+
import "./chunk-YYIWPH53.js";
|
|
179
|
+
import "./chunk-QTRYJZL7.js";
|
|
156
180
|
import "./chunk-HTQTIKWP.js";
|
|
157
|
-
import "./chunk-
|
|
181
|
+
import "./chunk-QKY24RWV.js";
|
|
158
182
|
import {
|
|
159
183
|
latestVersion,
|
|
160
184
|
runUpdate,
|
|
161
185
|
updateNotice
|
|
162
|
-
} from "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
-
import "./chunk-
|
|
165
|
-
import "./chunk-
|
|
166
|
-
import "./chunk-
|
|
167
|
-
import "./chunk-
|
|
168
|
-
import "./chunk-
|
|
169
|
-
import "./chunk-
|
|
186
|
+
} from "./chunk-D4MVEOU2.js";
|
|
187
|
+
import "./chunk-FIVFP53N.js";
|
|
188
|
+
import "./chunk-EEE4H2PA.js";
|
|
189
|
+
import "./chunk-NV75QPML.js";
|
|
190
|
+
import "./chunk-U52QE4QV.js";
|
|
191
|
+
import "./chunk-F7KAMSXA.js";
|
|
192
|
+
import "./chunk-FAMXUI2X.js";
|
|
193
|
+
import "./chunk-O7T3WGCV.js";
|
|
170
194
|
import {
|
|
171
195
|
applyDocumentTransfer,
|
|
172
196
|
previewDocumentTransfer
|
|
173
|
-
} from "./chunk-
|
|
174
|
-
import "./chunk-
|
|
197
|
+
} from "./chunk-QRSPFCRY.js";
|
|
198
|
+
import "./chunk-MWCPKUU4.js";
|
|
175
199
|
import "./chunk-5DPV7X27.js";
|
|
176
|
-
import "./chunk-
|
|
177
|
-
import "./chunk-
|
|
178
|
-
import "./chunk-
|
|
179
|
-
import "./chunk-
|
|
180
|
-
import "./chunk-
|
|
200
|
+
import "./chunk-JMZQBRRZ.js";
|
|
201
|
+
import "./chunk-PJ3FKBXG.js";
|
|
202
|
+
import "./chunk-2VYEGKQ3.js";
|
|
203
|
+
import "./chunk-ZSVMZH5O.js";
|
|
204
|
+
import "./chunk-EOC7RHJ2.js";
|
|
181
205
|
import {
|
|
182
206
|
FETCH,
|
|
183
207
|
InvalidArgumentError,
|
|
@@ -192,6 +216,7 @@ import {
|
|
|
192
216
|
commandWords,
|
|
193
217
|
customizeSharedCommand,
|
|
194
218
|
environmentOf,
|
|
219
|
+
fetchesOnly,
|
|
195
220
|
flatten,
|
|
196
221
|
grantsAuthority,
|
|
197
222
|
hasSharedContract,
|
|
@@ -208,8 +233,8 @@ import {
|
|
|
208
233
|
settingRows,
|
|
209
234
|
sharedContracts,
|
|
210
235
|
snakeKeys
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import "./chunk-
|
|
236
|
+
} from "./chunk-MLSXHTUB.js";
|
|
237
|
+
import "./chunk-WUFZGPXX.js";
|
|
213
238
|
import {
|
|
214
239
|
CEILING_KEY,
|
|
215
240
|
LEVELS,
|
|
@@ -217,35 +242,33 @@ import {
|
|
|
217
242
|
layerPermissions,
|
|
218
243
|
levelFor,
|
|
219
244
|
parseDuration
|
|
220
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-J5LXL435.js";
|
|
221
246
|
import {
|
|
222
247
|
modelTarget
|
|
223
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-7A77GYCE.js";
|
|
224
249
|
import {
|
|
225
250
|
setupPermissionCeiling
|
|
226
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-KPKIHJIT.js";
|
|
227
252
|
import {
|
|
228
253
|
readOnlyLockOf,
|
|
229
254
|
readOnlyRefusal
|
|
230
|
-
} from "./chunk-
|
|
231
|
-
import "./chunk-
|
|
255
|
+
} from "./chunk-MOKEB656.js";
|
|
256
|
+
import "./chunk-UIKVP23D.js";
|
|
232
257
|
import {
|
|
233
258
|
hostFetch
|
|
234
|
-
} from "./chunk-
|
|
235
|
-
import
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
import "./chunk-
|
|
239
|
-
import "./chunk-TYLEICTX.js";
|
|
240
|
-
import "./chunk-H7XL6WTW.js";
|
|
259
|
+
} from "./chunk-6QR7NKMG.js";
|
|
260
|
+
import "./chunk-IVOG6T6P.js";
|
|
261
|
+
import "./chunk-5W65QTYS.js";
|
|
262
|
+
import "./chunk-ZAIE3G5I.js";
|
|
263
|
+
import "./chunk-PGPHEC2X.js";
|
|
241
264
|
import {
|
|
242
265
|
CATALOG_QUERY,
|
|
243
266
|
IMPORTED_DOCUMENT_QUERY,
|
|
244
267
|
openStore
|
|
245
|
-
} from "./chunk-
|
|
246
|
-
import "./chunk-
|
|
247
|
-
import "./chunk-
|
|
248
|
-
import "./chunk-
|
|
268
|
+
} from "./chunk-6WAC2LOS.js";
|
|
269
|
+
import "./chunk-BXHFJTU5.js";
|
|
270
|
+
import "./chunk-UFPRP7MG.js";
|
|
271
|
+
import "./chunk-CVAJMRRD.js";
|
|
249
272
|
import {
|
|
250
273
|
FACT_STATUSES,
|
|
251
274
|
FACT_TYPES,
|
|
@@ -253,53 +276,50 @@ import {
|
|
|
253
276
|
MEMORY_SCOPES,
|
|
254
277
|
MEMORY_STATUSES,
|
|
255
278
|
inRun
|
|
256
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-AXYG2DDY.js";
|
|
257
280
|
import {
|
|
258
|
-
dateRange,
|
|
259
281
|
defineQuery,
|
|
260
282
|
parseLucene,
|
|
261
283
|
queryError,
|
|
262
|
-
queryFieldsOf,
|
|
263
284
|
timezoneOf,
|
|
264
285
|
validateQuery,
|
|
265
286
|
zonedMoment
|
|
266
|
-
} from "./chunk-
|
|
267
|
-
import "./chunk-
|
|
268
|
-
import "./chunk-
|
|
269
|
-
import "./chunk-
|
|
270
|
-
import "./chunk-
|
|
287
|
+
} from "./chunk-UPCEHSIZ.js";
|
|
288
|
+
import "./chunk-QWGEOQHA.js";
|
|
289
|
+
import "./chunk-UYBLNGZ2.js";
|
|
290
|
+
import "./chunk-PWIEOATY.js";
|
|
291
|
+
import "./chunk-QVJMFZFW.js";
|
|
271
292
|
import "./chunk-D72URWJE.js";
|
|
272
293
|
import {
|
|
273
294
|
installerOf
|
|
274
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-M4OP5ASJ.js";
|
|
275
296
|
import {
|
|
276
297
|
DRIVE_APP,
|
|
277
298
|
PACKAGE,
|
|
278
299
|
VERSION
|
|
279
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-6HFZZ2PW.js";
|
|
280
301
|
import {
|
|
281
302
|
REASONS
|
|
282
|
-
} from "./chunk-
|
|
283
|
-
import "./chunk-
|
|
284
|
-
import "./chunk-
|
|
303
|
+
} from "./chunk-7JKECODO.js";
|
|
304
|
+
import "./chunk-XWBPP2HX.js";
|
|
305
|
+
import "./chunk-ZVQDOKDY.js";
|
|
285
306
|
import {
|
|
286
307
|
storePath
|
|
287
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-CRIEW4FP.js";
|
|
288
309
|
import {
|
|
289
310
|
processStreams,
|
|
290
311
|
saveConfigFile,
|
|
291
312
|
writeSecurely
|
|
292
|
-
} from "./chunk-
|
|
293
|
-
import "./chunk-
|
|
313
|
+
} from "./chunk-MW46BLWH.js";
|
|
314
|
+
import "./chunk-PV3AWPHR.js";
|
|
294
315
|
import "./chunk-Y5E2WNWB.js";
|
|
295
|
-
import "./chunk-
|
|
296
|
-
import "./chunk-
|
|
316
|
+
import "./chunk-HCZYJMBP.js";
|
|
317
|
+
import "./chunk-5TK2YQCO.js";
|
|
297
318
|
import {
|
|
298
319
|
array,
|
|
299
320
|
boolean,
|
|
300
321
|
defineSteps,
|
|
301
322
|
integer,
|
|
302
|
-
isoTime,
|
|
303
323
|
literal,
|
|
304
324
|
looseObject,
|
|
305
325
|
minValue,
|
|
@@ -317,11 +337,11 @@ import {
|
|
|
317
337
|
string,
|
|
318
338
|
unknown,
|
|
319
339
|
writes
|
|
320
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-JRFKCYMW.js";
|
|
321
341
|
import {
|
|
322
342
|
CliError,
|
|
323
343
|
isCliError
|
|
324
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-EA2OB75T.js";
|
|
325
345
|
import {
|
|
326
346
|
__commonJS,
|
|
327
347
|
__name,
|
|
@@ -2033,13 +2053,15 @@ var State = object({
|
|
|
2033
2053
|
picture: optional(picklist(["saved", "too-large"]))
|
|
2034
2054
|
})),
|
|
2035
2055
|
skipped: array(Skip),
|
|
2056
|
+
matched: optional(array(ID)),
|
|
2036
2057
|
lastSync: optional(string()),
|
|
2037
2058
|
pending: optional(object({
|
|
2038
2059
|
cursor: string(),
|
|
2039
2060
|
scope: string(),
|
|
2040
2061
|
folders: record(ID, File),
|
|
2041
2062
|
jobs: array(object({ id: ID, kind: picklist(["save", "remove"]), file: optional(File) })),
|
|
2042
|
-
skipped: array(Skip)
|
|
2063
|
+
skipped: array(Skip),
|
|
2064
|
+
matched: optional(array(ID))
|
|
2043
2065
|
}))
|
|
2044
2066
|
});
|
|
2045
2067
|
var Walk = object({
|
|
@@ -2158,7 +2180,7 @@ var profileLocked2 = /* @__PURE__ */ __name((env, name) => import_proper_lockfil
|
|
|
2158
2180
|
var removal = {
|
|
2159
2181
|
signOut: /* @__PURE__ */ __name(async (profile, { env, keyring, mayRevoke }) => {
|
|
2160
2182
|
const storage = readConfig(env).profiles[profile]?.storage ?? "keyring";
|
|
2161
|
-
const { sessionKeeper } = await import("./tokens-
|
|
2183
|
+
const { sessionKeeper } = await import("./tokens-A2GP4F34.js");
|
|
2162
2184
|
const { revoked } = await sessionKeeper({
|
|
2163
2185
|
env,
|
|
2164
2186
|
name: profile,
|
|
@@ -2286,109 +2308,6 @@ var CATALOG_FIELDS = Object.keys({
|
|
|
2286
2308
|
content: true
|
|
2287
2309
|
});
|
|
2288
2310
|
|
|
2289
|
-
// dist/list-queries.js
|
|
2290
|
-
var registry = /* @__PURE__ */ __name((entity, schema, native, examples2) => ({
|
|
2291
|
-
entity,
|
|
2292
|
-
backend: "native",
|
|
2293
|
-
fields: queryFieldsOf(schema, { native, examples: examples2 }).map((field) => field.native ? { ...field, operators: ["term", "phrase"] } : field)
|
|
2294
|
-
}), "registry");
|
|
2295
|
-
var folderRow = strictObject({ id: string() });
|
|
2296
|
-
var mirrorRow = strictObject({ id: string(), path: string(), folder: string() });
|
|
2297
|
-
var sessionRow = strictObject({
|
|
2298
|
-
profile: string(),
|
|
2299
|
-
selected_folders: number(),
|
|
2300
|
-
storage: picklist(["keyring", "file"])
|
|
2301
|
-
});
|
|
2302
|
-
var tagRow = strictObject({ tag: string() });
|
|
2303
|
-
var linkRow = looseObject({
|
|
2304
|
-
id: string(),
|
|
2305
|
-
from: string(),
|
|
2306
|
-
to: nullable(string()),
|
|
2307
|
-
kind: string(),
|
|
2308
|
-
role: nullable(string()),
|
|
2309
|
-
confirmed: boolean(),
|
|
2310
|
-
origin: picklist(["file", "owner", "suggested", "message"])
|
|
2311
|
-
});
|
|
2312
|
-
var identityRow = looseObject({
|
|
2313
|
-
google_id: nullable(string()),
|
|
2314
|
-
role: picklist(["owner", "last-editor"]),
|
|
2315
|
-
person: nullable(record(string(), unknown()))
|
|
2316
|
-
});
|
|
2317
|
-
var fileRow = looseObject({
|
|
2318
|
-
id: optional(string()),
|
|
2319
|
-
name: optional(string()),
|
|
2320
|
-
trashed: optional(boolean()),
|
|
2321
|
-
modified_time: optional(isoTime),
|
|
2322
|
-
created_time: optional(isoTime),
|
|
2323
|
-
viewed_by_me_time: optional(isoTime)
|
|
2324
|
-
});
|
|
2325
|
-
var FOLDERS_QUERY = registry("drive_selected_folder", folderRow, ["id"], { id: "id:FOLDER_ID" });
|
|
2326
|
-
var MIRRORS_QUERY = registry("drive_mirror", mirrorRow, ["id", "path", "folder"], {
|
|
2327
|
-
id: "id:example",
|
|
2328
|
-
path: 'path:"/example/notes"',
|
|
2329
|
-
folder: "folder:FOLDER_ID"
|
|
2330
|
-
});
|
|
2331
|
-
var SESSIONS_QUERY = registry("drive_session", sessionRow, ["profile", "storage"], {
|
|
2332
|
-
profile: "profile:personal",
|
|
2333
|
-
storage: "storage:keyring"
|
|
2334
|
-
});
|
|
2335
|
-
var TAGS_QUERY = registry("drive_document_tag", tagRow, ["tag"], { tag: "tag:budget" });
|
|
2336
|
-
var NOTES_QUERY = registry("note", note, ["text"], { text: "text:review" });
|
|
2337
|
-
var LINKS_QUERY = registry("drive_document_relationship", linkRow, ["id", "role", "origin", "confirmed"], {
|
|
2338
|
-
id: "id:1",
|
|
2339
|
-
role: "role:reviewer",
|
|
2340
|
-
origin: "origin:owner",
|
|
2341
|
-
confirmed: "confirmed:true"
|
|
2342
|
-
});
|
|
2343
|
-
var IDENTITIES_QUERY = registry("drive_document_identity", identityRow, ["google_id", "role"], {
|
|
2344
|
-
google_id: "google_id:example",
|
|
2345
|
-
role: "role:owner"
|
|
2346
|
-
});
|
|
2347
|
-
var FILES_QUERY = {
|
|
2348
|
-
entity: "drive_remote_file",
|
|
2349
|
-
backend: "native",
|
|
2350
|
-
fields: queryFieldsOf(fileRow, {
|
|
2351
|
-
native: ["name", "trashed", "modified_time", "created_time", "viewed_by_me_time"],
|
|
2352
|
-
examples: {
|
|
2353
|
-
name: 'name:"Example plan"',
|
|
2354
|
-
trashed: "trashed:false",
|
|
2355
|
-
modified_time: "modified_time>=2026-01-01",
|
|
2356
|
-
created_time: "created_time>=2026-01-01",
|
|
2357
|
-
viewed_by_me_time: "viewed_by_me_time>=2026-01-01"
|
|
2358
|
-
}
|
|
2359
|
-
}).map((field) => field.native ? { ...field, operators: field.type === "time" ? ["term", "range"] : ["term", "phrase"] } : field),
|
|
2360
|
-
defaults: ["trashed:false"]
|
|
2361
|
-
};
|
|
2362
|
-
var bindQuery = /* @__PURE__ */ __name((command, query, schema) => answerEntity(withQuery(command, query), query.entity, schema), "bindQuery");
|
|
2363
|
-
var termsOf = /* @__PURE__ */ __name((words, query, command) => Object.fromEntries(queryTerms(words, query, command)), "termsOf");
|
|
2364
|
-
var driveFileQuery = /* @__PURE__ */ __name((words, timezone) => {
|
|
2365
|
-
const ast = listQuery(typedQuery(words), FILES_QUERY, "files list");
|
|
2366
|
-
const quote = /* @__PURE__ */ __name((value) => `'${value.replaceAll("\\", "\\\\").replaceAll("'", "\\'")}'`, "quote");
|
|
2367
|
-
const zone = timezoneOf(timezone);
|
|
2368
|
-
const column = {
|
|
2369
|
-
modified_time: "modifiedTime",
|
|
2370
|
-
created_time: "createdTime",
|
|
2371
|
-
viewed_by_me_time: "viewedByMeTime"
|
|
2372
|
-
};
|
|
2373
|
-
const render = /* @__PURE__ */ __name((node) => {
|
|
2374
|
-
if (node.kind === "boolean") {
|
|
2375
|
-
if (node.clauses.some((clause) => clause.occur !== "must"))
|
|
2376
|
-
queryError("query.unsupported-operator", node.span, "files list accepts AND terms only");
|
|
2377
|
-
return node.clauses.map((clause) => render(clause.node)).join(" and ");
|
|
2378
|
-
}
|
|
2379
|
-
if (node.field === "name")
|
|
2380
|
-
return `name = ${quote(node.value)}`;
|
|
2381
|
-
if (node.field === "trashed")
|
|
2382
|
-
return `trashed = ${node.value.toLowerCase()}`;
|
|
2383
|
-
const range2 = dateRange(node.value, node.operator === "range" ? node.upper ?? "*" : node.value, node.lower_inclusive ?? true, node.upper_inclusive ?? true, zone, node.span);
|
|
2384
|
-
return [
|
|
2385
|
-
range2.lower === void 0 ? void 0 : `${column[node.field]} ${range2.lower_inclusive ? ">=" : ">"} ${quote(new Date(range2.lower).toISOString())}`,
|
|
2386
|
-
range2.upper === void 0 ? void 0 : `${column[node.field]} ${range2.upper_inclusive ? "<=" : "<"} ${quote(new Date(range2.upper).toISOString())}`
|
|
2387
|
-
].filter(Boolean).join(" and ");
|
|
2388
|
-
}, "render");
|
|
2389
|
-
return { query: ast ? render(ast.root) : "trashed = false", timezone: zone };
|
|
2390
|
-
}, "driveFileQuery");
|
|
2391
|
-
|
|
2392
2311
|
// dist/output.js
|
|
2393
2312
|
var VERBATIM = /* @__PURE__ */ new Set([
|
|
2394
2313
|
"frontMatter",
|
|
@@ -2575,10 +2494,11 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((env, what) => {
|
|
|
2575
2494
|
}, "refuseUnderReadOnly");
|
|
2576
2495
|
var checkPolicy = /* @__PURE__ */ __name(async (env, profile, key, mutates, flags = {}, ask) => {
|
|
2577
2496
|
const { levels, readOnly, lock } = policySettings(env, profile, flags);
|
|
2578
|
-
const { level } = levelFor(levels, key, DEFAULT_LEVELS);
|
|
2497
|
+
const { level, key: named } = levelFor(levels, key, DEFAULT_LEVELS);
|
|
2579
2498
|
if (mutates && lock)
|
|
2580
2499
|
throw readOnlyRefusal(lock, "change local or Google data");
|
|
2581
|
-
|
|
2500
|
+
const answerOnly = flags.fetches === true && flags.readOnly !== true && named === CEILING_KEY;
|
|
2501
|
+
if (level === "deny" || mutates && !answerOnly && (readOnly || level === "readonly"))
|
|
2582
2502
|
throw new CliError("permission_error", "profile policy refuses this operation", {
|
|
2583
2503
|
reason: "policy.denied",
|
|
2584
2504
|
permission: key
|
|
@@ -2674,8 +2594,8 @@ var installConfigCommands = /* @__PURE__ */ __name((program, { env, selected, ou
|
|
|
2674
2594
|
examples(annotate(grantsAuthority(config.command("set")), { effects: LOCAL_WRITE }).description("set one setting of this profile, or of the defaults"), [
|
|
2675
2595
|
"drive personal config set max_text_chars 100000",
|
|
2676
2596
|
`drive personal config set permissions.files '"readonly"' --defaults`,
|
|
2677
|
-
|
|
2678
|
-
]).argument("<key>", "max_text_chars, picture_search, google_client_id, max_add_profiles, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, runs_size_limit_mb, shared AI settings, permissions.<key> or models.<purpose>.<field>").argument("<json-value>", "the new value, as JSON").option("--defaults", "change the defaults instead of this profile").action((key, raw, args) => {
|
|
2597
|
+
`drive personal config set transcripts '"include"'`
|
|
2598
|
+
]).argument("<key>", "max_text_chars, picture_search, transcripts, transcript_words, google_client_id, max_add_profiles, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, runs_size_limit_mb, shared AI settings, permissions.<key> or models.<purpose>.<field>").argument("<json-value>", "the new value, as JSON").option("--defaults", "change the defaults instead of this profile").action((key, raw, args) => {
|
|
2679
2599
|
const file = editable();
|
|
2680
2600
|
const { at: scope, scope: name } = scopeOf(file, args.defaults);
|
|
2681
2601
|
const setting = settingAt(key);
|
|
@@ -2695,6 +2615,8 @@ var installConfigCommands = /* @__PURE__ */ __name((program, { env, selected, ou
|
|
|
2695
2615
|
throw new CliError("validation_error", `${head} is set for every profile at once: add --defaults`);
|
|
2696
2616
|
if (head === "picture_search" && (args.defaults || typeof parsed !== "boolean"))
|
|
2697
2617
|
throw new CliError("validation_error", "picture_search is true or false, set per profile");
|
|
2618
|
+
if (PROFILE_ONLY.has(head) && args.defaults)
|
|
2619
|
+
throw new CliError("validation_error", `${head} is set per profile, not in the defaults`);
|
|
2698
2620
|
if (head === "max_text_chars")
|
|
2699
2621
|
parsed = checkTextLimit(parsed);
|
|
2700
2622
|
if (head === "max_add_profiles")
|
|
@@ -2774,7 +2696,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
|
|
|
2774
2696
|
const download = /* @__PURE__ */ __name(async (kind, id, acceptTerms) => {
|
|
2775
2697
|
if (policyFlags().offline)
|
|
2776
2698
|
throw offlineRefused("downloading a model needs the network");
|
|
2777
|
-
const { downloadImageModel, downloadTextModel } = await import("./services-
|
|
2699
|
+
const { downloadImageModel, downloadTextModel } = await import("./services-IQG2RVTO.js");
|
|
2778
2700
|
const progress = /* @__PURE__ */ __name((line) => {
|
|
2779
2701
|
if (!program.opts().quiet)
|
|
2780
2702
|
streams.diagnostic(line);
|
|
@@ -3416,10 +3338,10 @@ var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3416
3338
|
const age = ageOf(state);
|
|
3417
3339
|
output(listOf("documents list", {
|
|
3418
3340
|
...staleCopy(state),
|
|
3419
|
-
items: found.items.map((
|
|
3420
|
-
const id = (
|
|
3341
|
+
items: found.items.map((note) => {
|
|
3342
|
+
const id = (note.path ?? "").replace(/\.md$/, "");
|
|
3421
3343
|
const doc = state.documents[id];
|
|
3422
|
-
return doc ? { ...metadataJson(doc.metadata), reference: doc.reference, tabs: doc.tabs, ...age } : { id, name:
|
|
3344
|
+
return doc ? { ...metadataJson(doc.metadata), reference: doc.reference, tabs: doc.tabs, ...age } : { id, name: note.title, reference: note.ref, tabs: 0, ...age };
|
|
3423
3345
|
}),
|
|
3424
3346
|
limit,
|
|
3425
3347
|
has_more: found.hasMore,
|
|
@@ -22495,14 +22417,14 @@ var installSearchCommandDefinition = /* @__PURE__ */ __name((program, { env, sel
|
|
|
22495
22417
|
exact: args.exact ?? false,
|
|
22496
22418
|
...pictureSearch(env, name) ? { pictures: true } : {}
|
|
22497
22419
|
}));
|
|
22498
|
-
const hint = notImported(name, profile.roots.length, Object.keys(readState(env, name, profile.principal).documents));
|
|
22420
|
+
const hint = notImported(name, profile.roots.length > 0 || transcriptsOf(env, name).mode === "include", Object.keys(readState(env, name, profile.principal).documents));
|
|
22499
22421
|
output(itemOf(hint ? { ...result, not_imported: hint } : result));
|
|
22500
22422
|
});
|
|
22501
22423
|
}, "installSearchCommandDefinition");
|
|
22502
|
-
var notImported = /* @__PURE__ */ __name((name,
|
|
22424
|
+
var notImported = /* @__PURE__ */ __name((name, chosen, documents) => {
|
|
22503
22425
|
if (documents.length > 0)
|
|
22504
22426
|
return void 0;
|
|
22505
|
-
return
|
|
22427
|
+
return !chosen ? `profile ${name} has no folders selected, so nothing is imported to search \u2014 drive ${name} folders add FOLDER_ID, then drive ${name} sync` : `profile ${name} has imported no documents yet \u2014 drive ${name} sync`;
|
|
22506
22428
|
}, "notImported");
|
|
22507
22429
|
var installSearchCommand = /* @__PURE__ */ __name((...args) => {
|
|
22508
22430
|
const reference = sharedCommandTemplate(DRIVE_APP, "search");
|
|
@@ -22544,7 +22466,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22544
22466
|
const app = application(env, { file: args.clientFile, clientId: args.clientId, profile: selected() });
|
|
22545
22467
|
if (!app.clientSecret)
|
|
22546
22468
|
streams.diagnostic("your Google app has no secret here, and Google refuses a Desktop app without one: set DRIVE_GOOGLE_CLIENT_SECRET\n");
|
|
22547
|
-
const { login } = await import("./login-
|
|
22469
|
+
const { login } = await import("./login-N243GGEE.js");
|
|
22548
22470
|
output(itemOf(await login({
|
|
22549
22471
|
env,
|
|
22550
22472
|
profile: selected(),
|
|
@@ -22575,7 +22497,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22575
22497
|
const name = selected();
|
|
22576
22498
|
const config = readConfig(env);
|
|
22577
22499
|
const profile = activeProfile(env, name);
|
|
22578
|
-
const { credentials } = await import("./tokens-
|
|
22500
|
+
const { credentials } = await import("./tokens-A2GP4F34.js");
|
|
22579
22501
|
const store = credentials(env, profile.storage, options.keyring);
|
|
22580
22502
|
store.remove(name);
|
|
22581
22503
|
writeConfig(env, config);
|
|
@@ -22622,7 +22544,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
|
|
|
22622
22544
|
return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
|
|
22623
22545
|
}, "selection");
|
|
22624
22546
|
var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
|
|
22625
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
22547
|
+
const { ensureSqlite } = await import("./sqlite-runtime-X4GB5PBV.js");
|
|
22626
22548
|
await ensureSqlite();
|
|
22627
22549
|
const { state, options } = selection(env, name, source);
|
|
22628
22550
|
const preview = await previewDocumentTransfer({ ...options, bindings });
|
|
@@ -22699,7 +22621,10 @@ var sync = /* @__PURE__ */ __name(async (source, index, env, name, max, signal,
|
|
|
22699
22621
|
await index.registerProfile?.(name, profile.principal);
|
|
22700
22622
|
const before = readState(env, name, profile.principal);
|
|
22701
22623
|
const started = (/* @__PURE__ */ new Date()).toISOString();
|
|
22624
|
+
const transcripts = transcriptsOf(env, name);
|
|
22625
|
+
const query = transcriptQuery(transcripts.mode, transcripts.words, source?.search);
|
|
22702
22626
|
const result = await syncDocuments({
|
|
22627
|
+
...query ? { query } : {},
|
|
22703
22628
|
source,
|
|
22704
22629
|
index,
|
|
22705
22630
|
principal: profile.principal,
|
|
@@ -22752,7 +22677,8 @@ var sync = /* @__PURE__ */ __name(async (source, index, env, name, max, signal,
|
|
|
22752
22677
|
var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
22753
22678
|
const { env, streams, selected, output, source, withIndex } = context;
|
|
22754
22679
|
examples(annotate(program.command("sync"), { effects: FETCH }).summary("import what changed in the chosen folders, and finish an unfinished sync").description(`import what changed in the chosen folders, and finish an unfinished sync; one sync reads at most ${MAX_ENTRIES} entries under the chosen folders, and as many changes`), ["drive personal sync", "drive personal sync --rescan --limit 500"]).option("--limit <n>", "how many documents to read from Google in this run", positive, 200).option("--rescan", "read every chosen folder again instead of only what changed").option("--embed", "also index pending text for meaning search, with a model already downloaded").action(async (args) => {
|
|
22755
|
-
const
|
|
22680
|
+
const profile = activeProfile(env, selected());
|
|
22681
|
+
const remote = profile.roots.length || profile.transcripts === "include" ? await source() : void 0;
|
|
22756
22682
|
const result = await withIndex(async (index) => ({
|
|
22757
22683
|
...await sync(remote, index, env, selected(), args.limit, context.signal(), args.rescan),
|
|
22758
22684
|
...args.embed ? { embeddings: await index.embed(600) } : {}
|
|
@@ -22793,10 +22719,41 @@ var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22793
22719
|
});
|
|
22794
22720
|
}, "installSyncCommands");
|
|
22795
22721
|
|
|
22722
|
+
// dist/commands/transcripts.js
|
|
22723
|
+
var TRANSCRIPTS_HELP = `
|
|
22724
|
+
Each item, a Google Doc whose name holds one of the transcript words (--json prints them under "items"):
|
|
22725
|
+
id the Google file id
|
|
22726
|
+
name the document's name as Google shows it
|
|
22727
|
+
url where it opens in Google Docs
|
|
22728
|
+
owned_by_me false for a document in the meeting organizer's Drive, shared with this account
|
|
22729
|
+
modified_at when it last changed
|
|
22730
|
+
Whether sync takes them is the profile's transcripts setting: include imports them wherever they sit, skip (or unset)
|
|
22731
|
+
leaves them alone, exclude leaves them out even inside a chosen folder (drive <profile> config set transcripts
|
|
22732
|
+
'"include"'). transcript_words replaces the words that find them.`;
|
|
22733
|
+
var installTranscriptCommands = /* @__PURE__ */ __name((program, context) => {
|
|
22734
|
+
const { env, selected, output, source } = context;
|
|
22735
|
+
const transcripts = annotate(program.command("transcripts"), { effects: LOCAL_READ }).description("meet transcripts and Gemini notes in this account's Drive or shared with it");
|
|
22736
|
+
bindQuery(examples(annotate(transcripts.command("list"), { effects: GOOGLE_READ }).summary("list Google Docs named like Meet transcripts or Gemini notes").description("list the Google Docs named like Meet transcripts or Gemini notes, wherever they sit; imports nothing"), ["drive personal transcripts list --json", "drive personal transcripts list owned_by_me:false"]), TRANSCRIPTS_QUERY, transcriptRow).addHelpText("after", TRANSCRIPTS_HELP).action(async (words) => {
|
|
22737
|
+
const filter = termsOf(words, TRANSCRIPTS_QUERY, "transcripts list");
|
|
22738
|
+
if (filter.owned_by_me !== void 0 && !["true", "false"].includes(filter.owned_by_me))
|
|
22739
|
+
throw new CliError("validation_error", "owned_by_me takes true or false");
|
|
22740
|
+
const remote = await source();
|
|
22741
|
+
const found = await findTranscripts(remote.search, transcriptsOf(env, selected()).words);
|
|
22742
|
+
const rows = found.map((file) => ({
|
|
22743
|
+
id: file.id,
|
|
22744
|
+
name: file.name,
|
|
22745
|
+
url: file.url,
|
|
22746
|
+
owned_by_me: file.providerMetadata?.ownedByMe ?? null,
|
|
22747
|
+
modified_at: file.modifiedAt ?? null
|
|
22748
|
+
}));
|
|
22749
|
+
output(allOf(rows.filter((row) => filter.owned_by_me === void 0 || String(row.owned_by_me) === filter.owned_by_me)));
|
|
22750
|
+
});
|
|
22751
|
+
}, "installTranscriptCommands");
|
|
22752
|
+
|
|
22796
22753
|
// dist/commands/upgrade.js
|
|
22797
22754
|
import { join as join8 } from "node:path";
|
|
22798
22755
|
|
|
22799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
22800
22757
|
import { realpathSync } from "node:fs";
|
|
22801
22758
|
import { fileURLToPath } from "node:url";
|
|
22802
22759
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -23008,9 +22965,9 @@ var documentKnowledge2 = /* @__PURE__ */ __name((store, folder) => {
|
|
|
23008
22965
|
const port = {
|
|
23009
22966
|
...shared,
|
|
23010
22967
|
context: /* @__PURE__ */ __name(async (principal, ref) => {
|
|
23011
|
-
const
|
|
22968
|
+
const note = await document(principal, ref);
|
|
23012
22969
|
return {
|
|
23013
|
-
document:
|
|
22970
|
+
document: note,
|
|
23014
22971
|
tags: await store.notes.noteTags(ref),
|
|
23015
22972
|
links: await store.notes.links({ from: ref }),
|
|
23016
22973
|
notes: await store.notes.notes({ source: "internal", about: ref, limit: 100 }),
|
|
@@ -23020,8 +22977,8 @@ var documentKnowledge2 = /* @__PURE__ */ __name((store, folder) => {
|
|
|
23020
22977
|
};
|
|
23021
22978
|
}, "context"),
|
|
23022
22979
|
people: /* @__PURE__ */ __name(async (principal, ref, filter = {}) => {
|
|
23023
|
-
const
|
|
23024
|
-
const metadata =
|
|
22980
|
+
const note = await document(principal, ref);
|
|
22981
|
+
const metadata = note.frontMatter;
|
|
23025
22982
|
const contributors = [
|
|
23026
22983
|
...(metadata.owners ?? []).map((user) => ({ ...user, role: "owner" })),
|
|
23027
22984
|
...metadata.lastModifiedBy ? [{ ...metadata.lastModifiedBy, role: "last-editor" }] : []
|
|
@@ -23040,8 +22997,8 @@ var documentKnowledge2 = /* @__PURE__ */ __name((store, folder) => {
|
|
|
23040
22997
|
};
|
|
23041
22998
|
}, "people"),
|
|
23042
22999
|
linkPerson: /* @__PURE__ */ __name(async (principal, ref, googleId, personRef) => {
|
|
23043
|
-
const
|
|
23044
|
-
const metadata =
|
|
23000
|
+
const note = await document(principal, ref);
|
|
23001
|
+
const metadata = note.frontMatter;
|
|
23045
23002
|
const users = [...metadata.owners ?? [], ...metadata.lastModifiedBy ? [metadata.lastModifiedBy] : []];
|
|
23046
23003
|
if (!users.some((user) => googleUserId(user) === googleId))
|
|
23047
23004
|
throw new CliError("not_found", "Google identity was not observed on this document");
|
|
@@ -23139,13 +23096,13 @@ var prepareStore = /* @__PURE__ */ __name(async (index, env, name, rescan = fals
|
|
|
23139
23096
|
if (folder) {
|
|
23140
23097
|
for (let offset2 = 0; ; offset2 += 500) {
|
|
23141
23098
|
const page = await old.notes.notes({ folderId: folder.id, source: "file", limit: 500, offset: offset2 });
|
|
23142
|
-
for (const
|
|
23143
|
-
counts.tags += (await old.notes.noteTags(
|
|
23144
|
-
counts.notes += (await old.notes.notes({ source: "internal", about:
|
|
23145
|
-
counts.memories += (await old.memories.list({ subject:
|
|
23146
|
-
counts.facts += (await old.facts.list({ subject:
|
|
23147
|
-
counts.links += (await old.notes.links({ from:
|
|
23148
|
-
counts.links += (await old.notes.links({ to:
|
|
23099
|
+
for (const note of page.items) {
|
|
23100
|
+
counts.tags += (await old.notes.noteTags(note.ref)).length;
|
|
23101
|
+
counts.notes += (await old.notes.notes({ source: "internal", about: note.ref, limit: 1 })).items.length;
|
|
23102
|
+
counts.memories += (await old.memories.list({ subject: note.ref, limit: 1 })).items.length;
|
|
23103
|
+
counts.facts += (await old.facts.list({ subject: note.ref, limit: 1 })).items.length;
|
|
23104
|
+
counts.links += (await old.notes.links({ from: note.ref })).filter((link) => link.origin !== "file").length;
|
|
23105
|
+
counts.links += (await old.notes.links({ to: note.ref })).length;
|
|
23149
23106
|
}
|
|
23150
23107
|
if (!page.hasMore)
|
|
23151
23108
|
break;
|
|
@@ -23223,7 +23180,7 @@ var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
|
|
|
23223
23180
|
activeProfile(env, name);
|
|
23224
23181
|
if (env.DRIVE_STORE)
|
|
23225
23182
|
throw new CliError("configuration_error", "DRIVE_STORE has been retired; use MESSAGING_STORE to select the shared database", { reason: "store.override-retired" });
|
|
23226
|
-
const { openAppStore } = await import("./cli-
|
|
23183
|
+
const { openAppStore } = await import("./cli-L7P36YUH.js");
|
|
23227
23184
|
const store = await openAppStore(env, { app: { command: "drive", version: VERSION }, provider: DRIVE_PROVIDER });
|
|
23228
23185
|
const index = indexOver(store, env);
|
|
23229
23186
|
try {
|
|
@@ -23274,7 +23231,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23274
23231
|
linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
|
|
23275
23232
|
knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
|
|
23276
23233
|
openPictures: /* @__PURE__ */ __name(async () => {
|
|
23277
|
-
const { openPictureEmbedderFor, savePicture } = await import("./services-
|
|
23234
|
+
const { openPictureEmbedderFor, savePicture } = await import("./services-IQG2RVTO.js");
|
|
23278
23235
|
const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
|
|
23279
23236
|
return {
|
|
23280
23237
|
save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
|
|
@@ -23293,7 +23250,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23293
23250
|
has_more: false,
|
|
23294
23251
|
meaning_skipped: "this Google account has no imported sources"
|
|
23295
23252
|
};
|
|
23296
|
-
const { searchNotes } = await import("./services-
|
|
23253
|
+
const { searchNotes } = await import("./services-IQG2RVTO.js");
|
|
23297
23254
|
const result = await searchNotes(store, query, {
|
|
23298
23255
|
...options,
|
|
23299
23256
|
folderIds: selected ? [selected.id] : [],
|
|
@@ -23302,9 +23259,9 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23302
23259
|
...pictureEmbedder ? { pictureEmbedder } : {}
|
|
23303
23260
|
});
|
|
23304
23261
|
const pictures = await Promise.all((result.pictures ?? []).map(async (picture) => {
|
|
23305
|
-
const
|
|
23262
|
+
const note = await store.notes.note(picture.ref);
|
|
23306
23263
|
const [file] = await store.files.ofDocument(picture.ref);
|
|
23307
|
-
return { ...picture, title:
|
|
23264
|
+
return { ...picture, title: note.title, url: file?.url ?? null };
|
|
23308
23265
|
}));
|
|
23309
23266
|
const { pictures: _, items, hasMore, nextOffset, ...rest } = result;
|
|
23310
23267
|
return {
|
|
@@ -23313,9 +23270,9 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23313
23270
|
...nextOffset === void 0 ? {} : { next_offset: nextOffset },
|
|
23314
23271
|
...result.pictures ? { pictures } : {},
|
|
23315
23272
|
hits: await Promise.all(items.map(async (hit) => {
|
|
23316
|
-
const
|
|
23317
|
-
const metadata =
|
|
23318
|
-
const entry =
|
|
23273
|
+
const note = await store.notes.note(hit.ref);
|
|
23274
|
+
const metadata = note.frontMatter;
|
|
23275
|
+
const entry = note.path ? await store.catalog.get(selected.id, note.path) : void 0;
|
|
23319
23276
|
return {
|
|
23320
23277
|
...hit,
|
|
23321
23278
|
tabs: Array.isArray(metadata?.tabs) ? metadata.tabs : [],
|
|
@@ -23326,7 +23283,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23326
23283
|
};
|
|
23327
23284
|
}, "search"),
|
|
23328
23285
|
embed: /* @__PURE__ */ __name(async (max) => {
|
|
23329
|
-
const { embedNotes } = await import("./services-
|
|
23286
|
+
const { embedNotes } = await import("./services-IQG2RVTO.js");
|
|
23330
23287
|
return embedNotes(store, { maxChunks: max, env, command: "drive" });
|
|
23331
23288
|
}, "embed"),
|
|
23332
23289
|
close: /* @__PURE__ */ __name(() => store.close(), "close")
|
|
@@ -23613,7 +23570,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23613
23570
|
}, "output");
|
|
23614
23571
|
const signal = /* @__PURE__ */ __name(() => environment().signal, "signal");
|
|
23615
23572
|
const signedIn = /* @__PURE__ */ __name(async (name, scope2) => {
|
|
23616
|
-
const { authorizedClient, checkAuthorization } = await import("./tokens-
|
|
23573
|
+
const { authorizedClient, checkAuthorization } = await import("./tokens-A2GP4F34.js");
|
|
23617
23574
|
const client = authorizedClient(env, name, environment().keyring, signal());
|
|
23618
23575
|
await checkAuthorization(client, scope2);
|
|
23619
23576
|
return client;
|
|
@@ -23623,7 +23580,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23623
23580
|
const fake = environment().source;
|
|
23624
23581
|
if (fake)
|
|
23625
23582
|
return fake(name);
|
|
23626
|
-
const [{ googleSource }, client] = await Promise.all([import("./google-
|
|
23583
|
+
const [{ googleSource }, client] = await Promise.all([import("./google-XXHSMTVK.js"), signedIn(name)]);
|
|
23627
23584
|
return googleSource(client);
|
|
23628
23585
|
}, "source");
|
|
23629
23586
|
const withIndex = /* @__PURE__ */ __name(async (fn, profile) => {
|
|
@@ -23693,6 +23650,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23693
23650
|
installAccountCommands(program, context);
|
|
23694
23651
|
installFolderCommands(program, context, (method, params) => remote.call(method, params));
|
|
23695
23652
|
installSyncCommands(program, context);
|
|
23653
|
+
installTranscriptCommands(program, context);
|
|
23696
23654
|
installStoreCommands(program, context);
|
|
23697
23655
|
installDocumentCommands(program, context);
|
|
23698
23656
|
installSearchCommand(program, context);
|
|
@@ -23767,7 +23725,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23767
23725
|
if (fake)
|
|
23768
23726
|
return await fake.call(method, params, body);
|
|
23769
23727
|
const [{ googleApi }, client] = await Promise.all([
|
|
23770
|
-
import("./google-api-
|
|
23728
|
+
import("./google-api-SQQ4BSNR.js"),
|
|
23771
23729
|
signedIn(selected(), descriptor.scope)
|
|
23772
23730
|
]);
|
|
23773
23731
|
return await googleApi(client).call(method, params, body);
|
|
@@ -23793,7 +23751,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23793
23751
|
if (fake)
|
|
23794
23752
|
return fake(id, mime);
|
|
23795
23753
|
const [{ googleDownload }, client] = await Promise.all([
|
|
23796
|
-
import("./google-api-
|
|
23754
|
+
import("./google-api-SQQ4BSNR.js"),
|
|
23797
23755
|
signedIn(selected(), apiMethod(method).scope)
|
|
23798
23756
|
]);
|
|
23799
23757
|
return googleDownload(client)(id, mime);
|
|
@@ -23811,7 +23769,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23811
23769
|
let request = environment().uploadRequest;
|
|
23812
23770
|
if (!request) {
|
|
23813
23771
|
const [{ googleUploadRequest }, client] = await Promise.all([
|
|
23814
|
-
import("./google-api-
|
|
23772
|
+
import("./google-api-SQQ4BSNR.js"),
|
|
23815
23773
|
signedIn(selected(), apiMethod(method).scope)
|
|
23816
23774
|
]);
|
|
23817
23775
|
request = googleUploadRequest(client);
|
|
@@ -23958,8 +23916,9 @@ Availability: unavailable \u2014 ${availability.reason}
|
|
|
23958
23916
|
}
|
|
23959
23917
|
const mutates = method ? apiMethod(method).mutates : writes(metadata.effects);
|
|
23960
23918
|
const key = method ? `api.${method}` : path.join(".");
|
|
23919
|
+
const fetches = !method && fetchesOnly(action);
|
|
23961
23920
|
for (const permission of method ? methodPolicyKeys(method) : [key])
|
|
23962
|
-
await checkPolicy(env, selected(), permission, mutates, flags, askOnce);
|
|
23921
|
+
await checkPolicy(env, selected(), permission, mutates, { ...flags, fetches }, askOnce);
|
|
23963
23922
|
checkedMethod = method;
|
|
23964
23923
|
if (flags.offline && (method || metadata.effects?.remote !== "none"))
|
|
23965
23924
|
throw offlineRefused();
|
|
@@ -24023,7 +23982,7 @@ var mcpCommand = /* @__PURE__ */ __name(() => {
|
|
|
24023
23982
|
const environment = environmentOf(action);
|
|
24024
23983
|
if (environment.api)
|
|
24025
23984
|
return;
|
|
24026
|
-
const { grantAvailability } = await import("./grants-
|
|
23985
|
+
const { grantAvailability } = await import("./grants-2U4JVT6O.js");
|
|
24027
23986
|
availability = grantAvailability(rootOf(root), environment.env ?? process.env, environment.keyring);
|
|
24028
23987
|
});
|
|
24029
23988
|
}, "mcpCommand");
|