@wirecat/drive-cli 0.66.0 → 0.67.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-DVZUVAPQ.js} +14 -14
- package/dist/bundle/{anthropic-5RJMB6O7.js → anthropic-Y45C45O2.js} +8 -8
- package/dist/bundle/{app-server-3RGYXPKG.js → app-server-GTXUOUGD.js} +56 -56
- package/dist/bundle/{bun-L34VEKGG.js → bun-QVJV76QJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-H6IAXQXI.js → bun-sqlite-CC7PIAMH.js} +9 -9
- package/dist/bundle/{chunk-UAKX6DP4.js → chunk-2MEVCMBW.js} +5 -5
- package/dist/bundle/{chunk-7ZGJRVBH.js → chunk-2PIA45FC.js} +4 -4
- package/dist/bundle/{chunk-5PLINHEY.js → chunk-2Y3YBDZX.js} +151 -149
- package/dist/bundle/{chunk-BQXSE645.js → chunk-3RG6LL25.js} +12 -12
- package/dist/bundle/{chunk-3QFUDXMQ.js → chunk-4G7WQNG7.js} +3 -2
- package/dist/bundle/{chunk-5HVJK3ZJ.js → chunk-4VH7M2OD.js} +4 -4
- package/dist/bundle/{chunk-COGWKO2T.js → chunk-5DMPGTNR.js} +3 -3
- package/dist/bundle/{chunk-NYZS2LKF.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-4UHBJSMI.js → chunk-5TSILGTO.js} +508 -450
- package/dist/bundle/{chunk-WYTYHUFH.js → chunk-6ERQE4FS.js} +43 -43
- package/dist/bundle/{chunk-O53WLYX3.js → chunk-7AZCAUST.js} +2 -2
- package/dist/bundle/{chunk-P7HQFII6.js → chunk-7J2IP3WL.js} +7 -7
- package/dist/bundle/{chunk-UNTIVT47.js → chunk-7JKECODO.js} +1 -1
- package/dist/bundle/{chunk-UQPW42HF.js → chunk-AAZPDWRD.js} +1 -1
- package/dist/bundle/{chunk-2S3E2HVV.js → chunk-ABJQ6IDU.js} +17 -17
- package/dist/bundle/{chunk-GY4DAJSK.js → chunk-AJ3DFPRT.js} +35 -6
- package/dist/bundle/{chunk-JLCR24UM.js → chunk-AZKFZ7J7.js} +1 -1
- package/dist/bundle/{chunk-I5R5CMQR.js → chunk-BHSLMJF7.js} +5 -5
- package/dist/bundle/{chunk-AP4MX247.js → chunk-C72WYRXD.js} +12 -12
- package/dist/bundle/{chunk-OZOQLAWK.js → chunk-CWDC6QJM.js} +6 -6
- package/dist/bundle/{chunk-JCHF7LZT.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-M7543RUJ.js → chunk-DAFKV6DJ.js} +220 -15
- package/dist/bundle/{chunk-3SDJIMZB.js → chunk-E3XA56TS.js} +1 -1
- package/dist/bundle/{chunk-IIHZTV6V.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-FKKPVPZR.js → chunk-ETAFFY3J.js} +57 -57
- package/dist/bundle/{chunk-QJ57PV55.js → chunk-EXWOOST5.js} +102 -84
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-TYLEICTX.js → chunk-FOMQ4MG3.js} +3 -3
- package/dist/bundle/{chunk-VUUPFDRU.js → chunk-FS2PG2PE.js} +113 -39
- package/dist/bundle/{chunk-JQXK3M5M.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-VR3YKXHL.js → chunk-HJF2QGOX.js} +16 -16
- package/dist/bundle/{chunk-NK4GVFJH.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-XVZNFA2P.js → chunk-IRULPE5M.js} +293 -278
- package/dist/bundle/{chunk-QSELSDWE.js → chunk-JCNEPYQZ.js} +13 -13
- package/dist/bundle/{chunk-FA2TNA5X.js → chunk-JEMBW6IO.js} +1 -1
- package/dist/bundle/{chunk-H7XL6WTW.js → chunk-JJHDV32D.js} +2 -2
- package/dist/bundle/{chunk-LVAPSAHF.js → chunk-JLUQZZ26.js} +8 -8
- package/dist/bundle/{chunk-HPKE2GDP.js → chunk-JO7BJYAP.js} +18 -18
- package/dist/bundle/{chunk-VQKNKJYL.js → chunk-JRFKCYMW.js} +6 -6
- package/dist/bundle/{chunk-IRNDYNQX.js → chunk-JY2GZDJL.js} +4 -4
- package/dist/bundle/{chunk-YTIPTHEE.js → chunk-LSAIXPAX.js} +2 -2
- package/dist/bundle/{chunk-T3ULDA7C.js → chunk-LXRBTXCZ.js} +3 -3
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-PKM55ZRR.js → chunk-MBLB4TQI.js} +20 -20
- package/dist/bundle/{chunk-HQBLJLYH.js → chunk-MEQNAZ6R.js} +7 -7
- package/dist/bundle/{chunk-TAHISPDE.js → chunk-MEY7URZZ.js} +39 -35
- package/dist/bundle/{chunk-KRG5X5PH.js → chunk-MF46W7PQ.js} +2 -2
- package/dist/bundle/{chunk-6X3KUFRQ.js → chunk-MW46BLWH.js} +20 -20
- package/dist/bundle/{chunk-2AF77WMH.js → chunk-NFIR346J.js} +1 -1
- package/dist/bundle/{chunk-BIJW6AYA.js → chunk-NWYVOHIX.js} +3662 -3598
- package/dist/bundle/{chunk-HPSHQVJU.js → chunk-OOBSSU2G.js} +24 -19
- package/dist/bundle/{chunk-UG3GHFGY.js → chunk-P6A77LMP.js} +4 -4
- package/dist/bundle/{chunk-XLGDNI4S.js → chunk-PDHN4GHU.js} +5 -40
- package/dist/bundle/{chunk-ALE67WRR.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-SOOU5WO6.js → chunk-QOKPRFHM.js} +2 -2
- package/dist/bundle/{chunk-V2WXTILT.js → chunk-RC72RU66.js} +6 -6
- package/dist/bundle/{chunk-E2F2XIX6.js → chunk-RLH6BOEG.js} +8 -8
- package/dist/bundle/{chunk-D4MIMH2N.js → chunk-SJE7UGOW.js} +5 -5
- package/dist/bundle/{chunk-QF7VL4C3.js → chunk-SXJDCRXE.js} +1 -1
- package/dist/bundle/{chunk-5XLU4NN6.js → chunk-T2VAEDJS.js} +4 -4
- package/dist/bundle/{chunk-3NYH756U.js → chunk-U2ERT45N.js} +11 -6
- package/dist/bundle/{chunk-MZWXTJ4O.js → chunk-UFNE57VY.js} +3 -3
- package/dist/bundle/{chunk-6UJCCOZC.js → chunk-ULH3TNUP.js} +4 -4
- package/dist/bundle/{chunk-SZ6JFOL4.js → chunk-UOAHZV3K.js} +58 -37
- package/dist/bundle/{chunk-GVA3KTCD.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-D7KOAPG6.js → chunk-V7E25BUU.js} +2 -2
- package/dist/bundle/{chunk-KOY5HUBY.js → chunk-VZ5KETIX.js} +4 -4
- package/dist/bundle/{chunk-ULXEW6FT.js → chunk-WBKYZZQT.js} +1 -1
- package/dist/bundle/{chunk-7LT2G5BC.js → chunk-WKIQKGOF.js} +26 -26
- package/dist/bundle/{chunk-5VDVGDOC.js → chunk-WWW7YTFG.js} +1 -1
- package/dist/bundle/{chunk-G4TNKBDX.js → chunk-XZCF5XU7.js} +7 -7
- package/dist/bundle/{chunk-5K54RZBK.js → chunk-Y2QVNVHK.js} +1 -1
- package/dist/bundle/{chunk-7EP4AU6A.js → chunk-Y5WSRG3F.js} +3 -3
- package/dist/bundle/{chunk-FHBTQPA3.js → chunk-YI4DXASF.js} +37 -37
- package/dist/bundle/{chunk-OT7SQQJK.js → chunk-YVUAG7RF.js} +17 -17
- package/dist/bundle/{chunk-Y5U4HIZS.js → chunk-ZEPDEFVT.js} +2 -2
- package/dist/bundle/{chunk-HHRJPLFO.js → chunk-ZH4H5XTA.js} +1 -1
- package/dist/bundle/{chunk-JHMEETXI.js → chunk-ZK46UHDP.js} +2 -2
- package/dist/bundle/{chunk-PUMDOCAF.js → chunk-ZU5VQYNY.js} +1 -1
- package/dist/bundle/{cli-KW6QQVS5.js → cli-U4LSBYDV.js} +61 -61
- package/dist/bundle/command-contract-UU5T24ZZ.js +41 -0
- package/dist/bundle/{command-server-entry-OC4E4DED.js → command-server-entry-PK6FBUPO.js} +31 -31
- package/dist/bundle/{decode-AH5ZLLDK.js → decode-3ZE6NBKV.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-6FWNCNXK.js} +2 -2
- package/dist/bundle/{embed-EPSQY6QG.js → embed-DGYBBZUW.js} +9 -9
- package/dist/bundle/{embedder-TK4U4TJR.js → embedder-O7A6VMWI.js} +12 -12
- package/dist/bundle/entry-CDJ2QSU2.js +25 -0
- package/dist/bundle/{failure-WSVZOPFE.js → failure-X6PSLVSO.js} +4 -4
- package/dist/bundle/first-run-UOQW7DN5.js +30 -0
- package/dist/bundle/first-screen-SNDV4YKF.js +39 -0
- package/dist/bundle/google-HPX52KMC.js +45 -0
- package/dist/bundle/{google-api-AV4X2JH3.js → google-api-HIMN4XL5.js} +63 -63
- package/dist/bundle/grants-RO42I6E4.js +111 -0
- package/dist/bundle/{identity-CGHHF7AK.js → identity-NFGHDPLL.js} +6 -6
- package/dist/bundle/{instructions-24PHDBBE.js → instructions-6JAQYCM6.js} +1 -1
- package/dist/bundle/{login-XHFESAFM.js → login-RZOQN63N.js} +69 -69
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-GIDULTV5.js → node-KSIX3GIH.js} +2 -2
- package/dist/bundle/{node-sqlite-LINBOAWK.js → node-sqlite-4FJ6WJXN.js} +10 -10
- package/dist/bundle/oauth-BKZAMFKK.js +22 -0
- package/dist/bundle/{open-RYFKPNCJ.js → open-4AQJGH42.js} +8 -8
- package/dist/bundle/{openai-Q7YYUHJF.js → openai-24F2OX55.js} +19 -19
- package/dist/bundle/{process-VPIZTIJR.js → process-7NOA2T7H.js} +1 -1
- package/dist/bundle/{program-IUXFRBZA.js → program-7JHMLDEX.js} +181 -225
- package/dist/bundle/{prompt-LF4KX3XL.js → prompt-NM66MAZ4.js} +8 -8
- package/dist/bundle/{reasons-JPYOU5GV.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-KEWTJXFH.js → recognize-DBKV2JYZ.js} +7 -7
- package/dist/bundle/{remote-HGGLB76S.js → remote-ABWUTBVB.js} +13 -13
- package/dist/bundle/{rerank-TDUKETFT.js → rerank-FQAU4ENY.js} +10 -10
- package/dist/bundle/{serve-XFYMKW5W.js → serve-QLJG4QZD.js} +12 -12
- package/dist/bundle/server-NUBLY5SV.js +74 -0
- package/dist/bundle/{server-PXIPSGFP.js → server-VGZNK5XD.js} +47 -47
- package/dist/bundle/{services-2BOCGMJU.js → services-5KARVUHK.js} +36 -36
- package/dist/bundle/{sqlite-runtime-R7M5XUMW.js → sqlite-runtime-ILF6EFQJ.js} +9 -9
- package/dist/bundle/{start-YRLT4MQZ.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-NZ7WRJWH.js → state-R2M56GPU.js} +9 -9
- package/dist/bundle/{store-ICDGPSEN.js → store-2OBVMUQL.js} +19 -19
- package/dist/bundle/{store-7LCVDO7G.js → store-DA4K7HWW.js} +21 -21
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +65 -0
- package/dist/bundle/tokens-VQDGSHRB.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/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- 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-PDHN4GHU.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-Y5WSRG3F.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-DAFKV6DJ.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-FS2PG2PE.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-2PIA45FC.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-5TSILGTO.js";
|
|
147
|
+
import "./chunk-ZH4H5XTA.js";
|
|
148
|
+
import "./chunk-ZU5VQYNY.js";
|
|
149
|
+
import "./chunk-WKIQKGOF.js";
|
|
150
|
+
import "./chunk-OOBSSU2G.js";
|
|
127
151
|
import {
|
|
128
152
|
storeInfo
|
|
129
|
-
} from "./chunk-
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import "./chunk-
|
|
153
|
+
} from "./chunk-ETAFFY3J.js";
|
|
154
|
+
import "./chunk-RLH6BOEG.js";
|
|
155
|
+
import "./chunk-YVUAG7RF.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-JO7BJYAP.js";
|
|
143
167
|
import {
|
|
144
168
|
RecipientList,
|
|
145
169
|
SendJournal,
|
|
146
170
|
newOperationId,
|
|
147
171
|
sendGuard
|
|
148
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-IRULPE5M.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-6ERQE4FS.js";
|
|
178
|
+
import "./chunk-JCNEPYQZ.js";
|
|
179
|
+
import "./chunk-U2ERT45N.js";
|
|
156
180
|
import "./chunk-HTQTIKWP.js";
|
|
157
|
-
import "./chunk-
|
|
181
|
+
import "./chunk-3RG6LL25.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-C72WYRXD.js";
|
|
189
|
+
import "./chunk-ULH3TNUP.js";
|
|
190
|
+
import "./chunk-5DMPGTNR.js";
|
|
191
|
+
import "./chunk-VZ5KETIX.js";
|
|
192
|
+
import "./chunk-SJE7UGOW.js";
|
|
193
|
+
import "./chunk-CWDC6QJM.js";
|
|
170
194
|
import {
|
|
171
195
|
applyDocumentTransfer,
|
|
172
196
|
previewDocumentTransfer
|
|
173
|
-
} from "./chunk-
|
|
174
|
-
import "./chunk-
|
|
197
|
+
} from "./chunk-ABJQ6IDU.js";
|
|
198
|
+
import "./chunk-BHSLMJF7.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-XZCF5XU7.js";
|
|
201
|
+
import "./chunk-AAZPDWRD.js";
|
|
202
|
+
import "./chunk-NFIR346J.js";
|
|
203
|
+
import "./chunk-QOKPRFHM.js";
|
|
204
|
+
import "./chunk-2MEVCMBW.js";
|
|
181
205
|
import {
|
|
182
206
|
FETCH,
|
|
183
207
|
InvalidArgumentError,
|
|
@@ -208,8 +232,8 @@ import {
|
|
|
208
232
|
settingRows,
|
|
209
233
|
sharedContracts,
|
|
210
234
|
snakeKeys
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import "./chunk-
|
|
235
|
+
} from "./chunk-2Y3YBDZX.js";
|
|
236
|
+
import "./chunk-7J2IP3WL.js";
|
|
213
237
|
import {
|
|
214
238
|
CEILING_KEY,
|
|
215
239
|
LEVELS,
|
|
@@ -217,35 +241,33 @@ import {
|
|
|
217
241
|
layerPermissions,
|
|
218
242
|
levelFor,
|
|
219
243
|
parseDuration
|
|
220
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-MBLB4TQI.js";
|
|
221
245
|
import {
|
|
222
246
|
modelTarget
|
|
223
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-4VH7M2OD.js";
|
|
224
248
|
import {
|
|
225
249
|
setupPermissionCeiling
|
|
226
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-P6A77LMP.js";
|
|
227
251
|
import {
|
|
228
252
|
readOnlyLockOf,
|
|
229
253
|
readOnlyRefusal
|
|
230
|
-
} from "./chunk-
|
|
231
|
-
import "./chunk-
|
|
254
|
+
} from "./chunk-ZEPDEFVT.js";
|
|
255
|
+
import "./chunk-WWW7YTFG.js";
|
|
232
256
|
import {
|
|
233
257
|
hostFetch
|
|
234
|
-
} from "./chunk-
|
|
235
|
-
import
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
import "./chunk-
|
|
239
|
-
import "./chunk-TYLEICTX.js";
|
|
240
|
-
import "./chunk-H7XL6WTW.js";
|
|
258
|
+
} from "./chunk-AJ3DFPRT.js";
|
|
259
|
+
import "./chunk-UFNE57VY.js";
|
|
260
|
+
import "./chunk-T2VAEDJS.js";
|
|
261
|
+
import "./chunk-FOMQ4MG3.js";
|
|
262
|
+
import "./chunk-JJHDV32D.js";
|
|
241
263
|
import {
|
|
242
264
|
CATALOG_QUERY,
|
|
243
265
|
IMPORTED_DOCUMENT_QUERY,
|
|
244
266
|
openStore
|
|
245
|
-
} from "./chunk-
|
|
246
|
-
import "./chunk-
|
|
247
|
-
import "./chunk-
|
|
248
|
-
import "./chunk-
|
|
267
|
+
} from "./chunk-NWYVOHIX.js";
|
|
268
|
+
import "./chunk-LXRBTXCZ.js";
|
|
269
|
+
import "./chunk-JLUQZZ26.js";
|
|
270
|
+
import "./chunk-RC72RU66.js";
|
|
249
271
|
import {
|
|
250
272
|
FACT_STATUSES,
|
|
251
273
|
FACT_TYPES,
|
|
@@ -253,53 +275,50 @@ import {
|
|
|
253
275
|
MEMORY_SCOPES,
|
|
254
276
|
MEMORY_STATUSES,
|
|
255
277
|
inRun
|
|
256
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-EXWOOST5.js";
|
|
257
279
|
import {
|
|
258
|
-
dateRange,
|
|
259
280
|
defineQuery,
|
|
260
281
|
parseLucene,
|
|
261
282
|
queryError,
|
|
262
|
-
queryFieldsOf,
|
|
263
283
|
timezoneOf,
|
|
264
284
|
validateQuery,
|
|
265
285
|
zonedMoment
|
|
266
|
-
} from "./chunk-
|
|
267
|
-
import "./chunk-
|
|
268
|
-
import "./chunk-
|
|
269
|
-
import "./chunk-
|
|
270
|
-
import "./chunk-
|
|
286
|
+
} from "./chunk-UPCEHSIZ.js";
|
|
287
|
+
import "./chunk-WBKYZZQT.js";
|
|
288
|
+
import "./chunk-7AZCAUST.js";
|
|
289
|
+
import "./chunk-MEQNAZ6R.js";
|
|
290
|
+
import "./chunk-SXJDCRXE.js";
|
|
271
291
|
import "./chunk-D72URWJE.js";
|
|
272
292
|
import {
|
|
273
293
|
installerOf
|
|
274
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-M4OP5ASJ.js";
|
|
275
295
|
import {
|
|
276
296
|
DRIVE_APP,
|
|
277
297
|
PACKAGE,
|
|
278
298
|
VERSION
|
|
279
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-LSAIXPAX.js";
|
|
280
300
|
import {
|
|
281
301
|
REASONS
|
|
282
|
-
} from "./chunk-
|
|
283
|
-
import "./chunk-
|
|
284
|
-
import "./chunk-
|
|
302
|
+
} from "./chunk-7JKECODO.js";
|
|
303
|
+
import "./chunk-XWBPP2HX.js";
|
|
304
|
+
import "./chunk-JEMBW6IO.js";
|
|
285
305
|
import {
|
|
286
306
|
storePath
|
|
287
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-4G7WQNG7.js";
|
|
288
308
|
import {
|
|
289
309
|
processStreams,
|
|
290
310
|
saveConfigFile,
|
|
291
311
|
writeSecurely
|
|
292
|
-
} from "./chunk-
|
|
293
|
-
import "./chunk-
|
|
312
|
+
} from "./chunk-MW46BLWH.js";
|
|
313
|
+
import "./chunk-PV3AWPHR.js";
|
|
294
314
|
import "./chunk-Y5E2WNWB.js";
|
|
295
|
-
import "./chunk-
|
|
296
|
-
import "./chunk-
|
|
315
|
+
import "./chunk-HCZYJMBP.js";
|
|
316
|
+
import "./chunk-5TK2YQCO.js";
|
|
297
317
|
import {
|
|
298
318
|
array,
|
|
299
319
|
boolean,
|
|
300
320
|
defineSteps,
|
|
301
321
|
integer,
|
|
302
|
-
isoTime,
|
|
303
322
|
literal,
|
|
304
323
|
looseObject,
|
|
305
324
|
minValue,
|
|
@@ -317,11 +336,11 @@ import {
|
|
|
317
336
|
string,
|
|
318
337
|
unknown,
|
|
319
338
|
writes
|
|
320
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-JRFKCYMW.js";
|
|
321
340
|
import {
|
|
322
341
|
CliError,
|
|
323
342
|
isCliError
|
|
324
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-EA2OB75T.js";
|
|
325
344
|
import {
|
|
326
345
|
__commonJS,
|
|
327
346
|
__name,
|
|
@@ -2033,13 +2052,15 @@ var State = object({
|
|
|
2033
2052
|
picture: optional(picklist(["saved", "too-large"]))
|
|
2034
2053
|
})),
|
|
2035
2054
|
skipped: array(Skip),
|
|
2055
|
+
matched: optional(array(ID)),
|
|
2036
2056
|
lastSync: optional(string()),
|
|
2037
2057
|
pending: optional(object({
|
|
2038
2058
|
cursor: string(),
|
|
2039
2059
|
scope: string(),
|
|
2040
2060
|
folders: record(ID, File),
|
|
2041
2061
|
jobs: array(object({ id: ID, kind: picklist(["save", "remove"]), file: optional(File) })),
|
|
2042
|
-
skipped: array(Skip)
|
|
2062
|
+
skipped: array(Skip),
|
|
2063
|
+
matched: optional(array(ID))
|
|
2043
2064
|
}))
|
|
2044
2065
|
});
|
|
2045
2066
|
var Walk = object({
|
|
@@ -2158,7 +2179,7 @@ var profileLocked2 = /* @__PURE__ */ __name((env, name) => import_proper_lockfil
|
|
|
2158
2179
|
var removal = {
|
|
2159
2180
|
signOut: /* @__PURE__ */ __name(async (profile, { env, keyring, mayRevoke }) => {
|
|
2160
2181
|
const storage = readConfig(env).profiles[profile]?.storage ?? "keyring";
|
|
2161
|
-
const { sessionKeeper } = await import("./tokens-
|
|
2182
|
+
const { sessionKeeper } = await import("./tokens-VQDGSHRB.js");
|
|
2162
2183
|
const { revoked } = await sessionKeeper({
|
|
2163
2184
|
env,
|
|
2164
2185
|
name: profile,
|
|
@@ -2286,109 +2307,6 @@ var CATALOG_FIELDS = Object.keys({
|
|
|
2286
2307
|
content: true
|
|
2287
2308
|
});
|
|
2288
2309
|
|
|
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
2310
|
// dist/output.js
|
|
2393
2311
|
var VERBATIM = /* @__PURE__ */ new Set([
|
|
2394
2312
|
"frontMatter",
|
|
@@ -2674,8 +2592,8 @@ var installConfigCommands = /* @__PURE__ */ __name((program, { env, selected, ou
|
|
|
2674
2592
|
examples(annotate(grantsAuthority(config.command("set")), { effects: LOCAL_WRITE }).description("set one setting of this profile, or of the defaults"), [
|
|
2675
2593
|
"drive personal config set max_text_chars 100000",
|
|
2676
2594
|
`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) => {
|
|
2595
|
+
`drive personal config set transcripts '"include"'`
|
|
2596
|
+
]).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
2597
|
const file = editable();
|
|
2680
2598
|
const { at: scope, scope: name } = scopeOf(file, args.defaults);
|
|
2681
2599
|
const setting = settingAt(key);
|
|
@@ -2695,6 +2613,8 @@ var installConfigCommands = /* @__PURE__ */ __name((program, { env, selected, ou
|
|
|
2695
2613
|
throw new CliError("validation_error", `${head} is set for every profile at once: add --defaults`);
|
|
2696
2614
|
if (head === "picture_search" && (args.defaults || typeof parsed !== "boolean"))
|
|
2697
2615
|
throw new CliError("validation_error", "picture_search is true or false, set per profile");
|
|
2616
|
+
if (PROFILE_ONLY.has(head) && args.defaults)
|
|
2617
|
+
throw new CliError("validation_error", `${head} is set per profile, not in the defaults`);
|
|
2698
2618
|
if (head === "max_text_chars")
|
|
2699
2619
|
parsed = checkTextLimit(parsed);
|
|
2700
2620
|
if (head === "max_add_profiles")
|
|
@@ -2774,7 +2694,7 @@ var installModelCommands = /* @__PURE__ */ __name((program, { env, output, strea
|
|
|
2774
2694
|
const download = /* @__PURE__ */ __name(async (kind, id, acceptTerms) => {
|
|
2775
2695
|
if (policyFlags().offline)
|
|
2776
2696
|
throw offlineRefused("downloading a model needs the network");
|
|
2777
|
-
const { downloadImageModel, downloadTextModel } = await import("./services-
|
|
2697
|
+
const { downloadImageModel, downloadTextModel } = await import("./services-5KARVUHK.js");
|
|
2778
2698
|
const progress = /* @__PURE__ */ __name((line) => {
|
|
2779
2699
|
if (!program.opts().quiet)
|
|
2780
2700
|
streams.diagnostic(line);
|
|
@@ -3416,10 +3336,10 @@ var installDocumentCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
3416
3336
|
const age = ageOf(state);
|
|
3417
3337
|
output(listOf("documents list", {
|
|
3418
3338
|
...staleCopy(state),
|
|
3419
|
-
items: found.items.map((
|
|
3420
|
-
const id = (
|
|
3339
|
+
items: found.items.map((note) => {
|
|
3340
|
+
const id = (note.path ?? "").replace(/\.md$/, "");
|
|
3421
3341
|
const doc = state.documents[id];
|
|
3422
|
-
return doc ? { ...metadataJson(doc.metadata), reference: doc.reference, tabs: doc.tabs, ...age } : { id, name:
|
|
3342
|
+
return doc ? { ...metadataJson(doc.metadata), reference: doc.reference, tabs: doc.tabs, ...age } : { id, name: note.title, reference: note.ref, tabs: 0, ...age };
|
|
3423
3343
|
}),
|
|
3424
3344
|
limit,
|
|
3425
3345
|
has_more: found.hasMore,
|
|
@@ -22495,14 +22415,14 @@ var installSearchCommandDefinition = /* @__PURE__ */ __name((program, { env, sel
|
|
|
22495
22415
|
exact: args.exact ?? false,
|
|
22496
22416
|
...pictureSearch(env, name) ? { pictures: true } : {}
|
|
22497
22417
|
}));
|
|
22498
|
-
const hint = notImported(name, profile.roots.length, Object.keys(readState(env, name, profile.principal).documents));
|
|
22418
|
+
const hint = notImported(name, profile.roots.length > 0 || transcriptsOf(env, name).mode === "include", Object.keys(readState(env, name, profile.principal).documents));
|
|
22499
22419
|
output(itemOf(hint ? { ...result, not_imported: hint } : result));
|
|
22500
22420
|
});
|
|
22501
22421
|
}, "installSearchCommandDefinition");
|
|
22502
|
-
var notImported = /* @__PURE__ */ __name((name,
|
|
22422
|
+
var notImported = /* @__PURE__ */ __name((name, chosen, documents) => {
|
|
22503
22423
|
if (documents.length > 0)
|
|
22504
22424
|
return void 0;
|
|
22505
|
-
return
|
|
22425
|
+
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
22426
|
}, "notImported");
|
|
22507
22427
|
var installSearchCommand = /* @__PURE__ */ __name((...args) => {
|
|
22508
22428
|
const reference = sharedCommandTemplate(DRIVE_APP, "search");
|
|
@@ -22544,7 +22464,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22544
22464
|
const app = application(env, { file: args.clientFile, clientId: args.clientId, profile: selected() });
|
|
22545
22465
|
if (!app.clientSecret)
|
|
22546
22466
|
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-
|
|
22467
|
+
const { login } = await import("./login-RZOQN63N.js");
|
|
22548
22468
|
output(itemOf(await login({
|
|
22549
22469
|
env,
|
|
22550
22470
|
profile: selected(),
|
|
@@ -22575,7 +22495,7 @@ var installSessionCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22575
22495
|
const name = selected();
|
|
22576
22496
|
const config = readConfig(env);
|
|
22577
22497
|
const profile = activeProfile(env, name);
|
|
22578
|
-
const { credentials } = await import("./tokens-
|
|
22498
|
+
const { credentials } = await import("./tokens-VQDGSHRB.js");
|
|
22579
22499
|
const store = credentials(env, profile.storage, options.keyring);
|
|
22580
22500
|
store.remove(name);
|
|
22581
22501
|
writeConfig(env, config);
|
|
@@ -22622,7 +22542,7 @@ var selection = /* @__PURE__ */ __name((env, name, source) => {
|
|
|
22622
22542
|
return { profile, state, options: { source, destination, collection: `google-drive:${profile.principal}`, env } };
|
|
22623
22543
|
}, "selection");
|
|
22624
22544
|
var checkStoreImport = /* @__PURE__ */ __name(async (env, name, source, bindings) => {
|
|
22625
|
-
const { ensureSqlite } = await import("./sqlite-runtime-
|
|
22545
|
+
const { ensureSqlite } = await import("./sqlite-runtime-ILF6EFQJ.js");
|
|
22626
22546
|
await ensureSqlite();
|
|
22627
22547
|
const { state, options } = selection(env, name, source);
|
|
22628
22548
|
const preview = await previewDocumentTransfer({ ...options, bindings });
|
|
@@ -22699,7 +22619,10 @@ var sync = /* @__PURE__ */ __name(async (source, index, env, name, max, signal,
|
|
|
22699
22619
|
await index.registerProfile?.(name, profile.principal);
|
|
22700
22620
|
const before = readState(env, name, profile.principal);
|
|
22701
22621
|
const started = (/* @__PURE__ */ new Date()).toISOString();
|
|
22622
|
+
const transcripts = transcriptsOf(env, name);
|
|
22623
|
+
const query = transcriptQuery(transcripts.mode, transcripts.words, source?.search);
|
|
22702
22624
|
const result = await syncDocuments({
|
|
22625
|
+
...query ? { query } : {},
|
|
22703
22626
|
source,
|
|
22704
22627
|
index,
|
|
22705
22628
|
principal: profile.principal,
|
|
@@ -22752,7 +22675,8 @@ var sync = /* @__PURE__ */ __name(async (source, index, env, name, max, signal,
|
|
|
22752
22675
|
var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
22753
22676
|
const { env, streams, selected, output, source, withIndex } = context;
|
|
22754
22677
|
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
|
|
22678
|
+
const profile = activeProfile(env, selected());
|
|
22679
|
+
const remote = profile.roots.length || profile.transcripts === "include" ? await source() : void 0;
|
|
22756
22680
|
const result = await withIndex(async (index) => ({
|
|
22757
22681
|
...await sync(remote, index, env, selected(), args.limit, context.signal(), args.rescan),
|
|
22758
22682
|
...args.embed ? { embeddings: await index.embed(600) } : {}
|
|
@@ -22793,10 +22717,41 @@ var installSyncCommands = /* @__PURE__ */ __name((program, context) => {
|
|
|
22793
22717
|
});
|
|
22794
22718
|
}, "installSyncCommands");
|
|
22795
22719
|
|
|
22720
|
+
// dist/commands/transcripts.js
|
|
22721
|
+
var TRANSCRIPTS_HELP = `
|
|
22722
|
+
Each item, a Google Doc whose name holds one of the transcript words (--json prints them under "items"):
|
|
22723
|
+
id the Google file id
|
|
22724
|
+
name the document's name as Google shows it
|
|
22725
|
+
url where it opens in Google Docs
|
|
22726
|
+
owned_by_me false for a document in the meeting organizer's Drive, shared with this account
|
|
22727
|
+
modified_at when it last changed
|
|
22728
|
+
Whether sync takes them is the profile's transcripts setting: include imports them wherever they sit, skip (or unset)
|
|
22729
|
+
leaves them alone, exclude leaves them out even inside a chosen folder (drive <profile> config set transcripts
|
|
22730
|
+
'"include"'). transcript_words replaces the words that find them.`;
|
|
22731
|
+
var installTranscriptCommands = /* @__PURE__ */ __name((program, context) => {
|
|
22732
|
+
const { env, selected, output, source } = context;
|
|
22733
|
+
const transcripts = annotate(program.command("transcripts"), { effects: LOCAL_READ }).description("meet transcripts and Gemini notes in this account's Drive or shared with it");
|
|
22734
|
+
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) => {
|
|
22735
|
+
const filter = termsOf(words, TRANSCRIPTS_QUERY, "transcripts list");
|
|
22736
|
+
if (filter.owned_by_me !== void 0 && !["true", "false"].includes(filter.owned_by_me))
|
|
22737
|
+
throw new CliError("validation_error", "owned_by_me takes true or false");
|
|
22738
|
+
const remote = await source();
|
|
22739
|
+
const found = await findTranscripts(remote.search, transcriptsOf(env, selected()).words);
|
|
22740
|
+
const rows = found.map((file) => ({
|
|
22741
|
+
id: file.id,
|
|
22742
|
+
name: file.name,
|
|
22743
|
+
url: file.url,
|
|
22744
|
+
owned_by_me: file.providerMetadata?.ownedByMe ?? null,
|
|
22745
|
+
modified_at: file.modifiedAt ?? null
|
|
22746
|
+
}));
|
|
22747
|
+
output(allOf(rows.filter((row) => filter.owned_by_me === void 0 || String(row.owned_by_me) === filter.owned_by_me)));
|
|
22748
|
+
});
|
|
22749
|
+
}, "installTranscriptCommands");
|
|
22750
|
+
|
|
22796
22751
|
// dist/commands/upgrade.js
|
|
22797
22752
|
import { join as join8 } from "node:path";
|
|
22798
22753
|
|
|
22799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
22800
22755
|
import { realpathSync } from "node:fs";
|
|
22801
22756
|
import { fileURLToPath } from "node:url";
|
|
22802
22757
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -23008,9 +22963,9 @@ var documentKnowledge2 = /* @__PURE__ */ __name((store, folder) => {
|
|
|
23008
22963
|
const port = {
|
|
23009
22964
|
...shared,
|
|
23010
22965
|
context: /* @__PURE__ */ __name(async (principal, ref) => {
|
|
23011
|
-
const
|
|
22966
|
+
const note = await document(principal, ref);
|
|
23012
22967
|
return {
|
|
23013
|
-
document:
|
|
22968
|
+
document: note,
|
|
23014
22969
|
tags: await store.notes.noteTags(ref),
|
|
23015
22970
|
links: await store.notes.links({ from: ref }),
|
|
23016
22971
|
notes: await store.notes.notes({ source: "internal", about: ref, limit: 100 }),
|
|
@@ -23020,8 +22975,8 @@ var documentKnowledge2 = /* @__PURE__ */ __name((store, folder) => {
|
|
|
23020
22975
|
};
|
|
23021
22976
|
}, "context"),
|
|
23022
22977
|
people: /* @__PURE__ */ __name(async (principal, ref, filter = {}) => {
|
|
23023
|
-
const
|
|
23024
|
-
const metadata =
|
|
22978
|
+
const note = await document(principal, ref);
|
|
22979
|
+
const metadata = note.frontMatter;
|
|
23025
22980
|
const contributors = [
|
|
23026
22981
|
...(metadata.owners ?? []).map((user) => ({ ...user, role: "owner" })),
|
|
23027
22982
|
...metadata.lastModifiedBy ? [{ ...metadata.lastModifiedBy, role: "last-editor" }] : []
|
|
@@ -23040,8 +22995,8 @@ var documentKnowledge2 = /* @__PURE__ */ __name((store, folder) => {
|
|
|
23040
22995
|
};
|
|
23041
22996
|
}, "people"),
|
|
23042
22997
|
linkPerson: /* @__PURE__ */ __name(async (principal, ref, googleId, personRef) => {
|
|
23043
|
-
const
|
|
23044
|
-
const metadata =
|
|
22998
|
+
const note = await document(principal, ref);
|
|
22999
|
+
const metadata = note.frontMatter;
|
|
23045
23000
|
const users = [...metadata.owners ?? [], ...metadata.lastModifiedBy ? [metadata.lastModifiedBy] : []];
|
|
23046
23001
|
if (!users.some((user) => googleUserId(user) === googleId))
|
|
23047
23002
|
throw new CliError("not_found", "Google identity was not observed on this document");
|
|
@@ -23139,13 +23094,13 @@ var prepareStore = /* @__PURE__ */ __name(async (index, env, name, rescan = fals
|
|
|
23139
23094
|
if (folder) {
|
|
23140
23095
|
for (let offset2 = 0; ; offset2 += 500) {
|
|
23141
23096
|
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:
|
|
23097
|
+
for (const note of page.items) {
|
|
23098
|
+
counts.tags += (await old.notes.noteTags(note.ref)).length;
|
|
23099
|
+
counts.notes += (await old.notes.notes({ source: "internal", about: note.ref, limit: 1 })).items.length;
|
|
23100
|
+
counts.memories += (await old.memories.list({ subject: note.ref, limit: 1 })).items.length;
|
|
23101
|
+
counts.facts += (await old.facts.list({ subject: note.ref, limit: 1 })).items.length;
|
|
23102
|
+
counts.links += (await old.notes.links({ from: note.ref })).filter((link) => link.origin !== "file").length;
|
|
23103
|
+
counts.links += (await old.notes.links({ to: note.ref })).length;
|
|
23149
23104
|
}
|
|
23150
23105
|
if (!page.hasMore)
|
|
23151
23106
|
break;
|
|
@@ -23223,7 +23178,7 @@ var openIndex = /* @__PURE__ */ __name(async (env, name, rescan = false) => {
|
|
|
23223
23178
|
activeProfile(env, name);
|
|
23224
23179
|
if (env.DRIVE_STORE)
|
|
23225
23180
|
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-
|
|
23181
|
+
const { openAppStore } = await import("./cli-U4LSBYDV.js");
|
|
23227
23182
|
const store = await openAppStore(env, { app: { command: "drive", version: VERSION }, provider: DRIVE_PROVIDER });
|
|
23228
23183
|
const index = indexOver(store, env);
|
|
23229
23184
|
try {
|
|
@@ -23274,7 +23229,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23274
23229
|
linkMessages: /* @__PURE__ */ __name((documents, since) => store.notes.linkMessages({ documents, ...since ? { since } : {} }), "linkMessages"),
|
|
23275
23230
|
knowledge: documentKnowledge2(store, async (principal) => (await folder(principal, false))?.id),
|
|
23276
23231
|
openPictures: /* @__PURE__ */ __name(async () => {
|
|
23277
|
-
const { openPictureEmbedderFor, savePicture } = await import("./services-
|
|
23232
|
+
const { openPictureEmbedderFor, savePicture } = await import("./services-5KARVUHK.js");
|
|
23278
23233
|
const embedder = pictureEmbedder ?? await openPictureEmbedderFor({ env, command: "drive" });
|
|
23279
23234
|
return {
|
|
23280
23235
|
save: /* @__PURE__ */ __name((reference, bytes) => savePicture(store, { ref: reference }, bytes, { embedder }), "save"),
|
|
@@ -23293,7 +23248,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23293
23248
|
has_more: false,
|
|
23294
23249
|
meaning_skipped: "this Google account has no imported sources"
|
|
23295
23250
|
};
|
|
23296
|
-
const { searchNotes } = await import("./services-
|
|
23251
|
+
const { searchNotes } = await import("./services-5KARVUHK.js");
|
|
23297
23252
|
const result = await searchNotes(store, query, {
|
|
23298
23253
|
...options,
|
|
23299
23254
|
folderIds: selected ? [selected.id] : [],
|
|
@@ -23302,9 +23257,9 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23302
23257
|
...pictureEmbedder ? { pictureEmbedder } : {}
|
|
23303
23258
|
});
|
|
23304
23259
|
const pictures = await Promise.all((result.pictures ?? []).map(async (picture) => {
|
|
23305
|
-
const
|
|
23260
|
+
const note = await store.notes.note(picture.ref);
|
|
23306
23261
|
const [file] = await store.files.ofDocument(picture.ref);
|
|
23307
|
-
return { ...picture, title:
|
|
23262
|
+
return { ...picture, title: note.title, url: file?.url ?? null };
|
|
23308
23263
|
}));
|
|
23309
23264
|
const { pictures: _, items, hasMore, nextOffset, ...rest } = result;
|
|
23310
23265
|
return {
|
|
@@ -23313,9 +23268,9 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23313
23268
|
...nextOffset === void 0 ? {} : { next_offset: nextOffset },
|
|
23314
23269
|
...result.pictures ? { pictures } : {},
|
|
23315
23270
|
hits: await Promise.all(items.map(async (hit) => {
|
|
23316
|
-
const
|
|
23317
|
-
const metadata =
|
|
23318
|
-
const entry =
|
|
23271
|
+
const note = await store.notes.note(hit.ref);
|
|
23272
|
+
const metadata = note.frontMatter;
|
|
23273
|
+
const entry = note.path ? await store.catalog.get(selected.id, note.path) : void 0;
|
|
23319
23274
|
return {
|
|
23320
23275
|
...hit,
|
|
23321
23276
|
tabs: Array.isArray(metadata?.tabs) ? metadata.tabs : [],
|
|
@@ -23326,7 +23281,7 @@ var indexOver = /* @__PURE__ */ __name((store, env, pictureEmbedder) => {
|
|
|
23326
23281
|
};
|
|
23327
23282
|
}, "search"),
|
|
23328
23283
|
embed: /* @__PURE__ */ __name(async (max) => {
|
|
23329
|
-
const { embedNotes } = await import("./services-
|
|
23284
|
+
const { embedNotes } = await import("./services-5KARVUHK.js");
|
|
23330
23285
|
return embedNotes(store, { maxChunks: max, env, command: "drive" });
|
|
23331
23286
|
}, "embed"),
|
|
23332
23287
|
close: /* @__PURE__ */ __name(() => store.close(), "close")
|
|
@@ -23613,7 +23568,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23613
23568
|
}, "output");
|
|
23614
23569
|
const signal = /* @__PURE__ */ __name(() => environment().signal, "signal");
|
|
23615
23570
|
const signedIn = /* @__PURE__ */ __name(async (name, scope2) => {
|
|
23616
|
-
const { authorizedClient, checkAuthorization } = await import("./tokens-
|
|
23571
|
+
const { authorizedClient, checkAuthorization } = await import("./tokens-VQDGSHRB.js");
|
|
23617
23572
|
const client = authorizedClient(env, name, environment().keyring, signal());
|
|
23618
23573
|
await checkAuthorization(client, scope2);
|
|
23619
23574
|
return client;
|
|
@@ -23623,7 +23578,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23623
23578
|
const fake = environment().source;
|
|
23624
23579
|
if (fake)
|
|
23625
23580
|
return fake(name);
|
|
23626
|
-
const [{ googleSource }, client] = await Promise.all([import("./google-
|
|
23581
|
+
const [{ googleSource }, client] = await Promise.all([import("./google-HPX52KMC.js"), signedIn(name)]);
|
|
23627
23582
|
return googleSource(client);
|
|
23628
23583
|
}, "source");
|
|
23629
23584
|
const withIndex = /* @__PURE__ */ __name(async (fn, profile) => {
|
|
@@ -23693,6 +23648,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23693
23648
|
installAccountCommands(program, context);
|
|
23694
23649
|
installFolderCommands(program, context, (method, params) => remote.call(method, params));
|
|
23695
23650
|
installSyncCommands(program, context);
|
|
23651
|
+
installTranscriptCommands(program, context);
|
|
23696
23652
|
installStoreCommands(program, context);
|
|
23697
23653
|
installDocumentCommands(program, context);
|
|
23698
23654
|
installSearchCommand(program, context);
|
|
@@ -23767,7 +23723,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23767
23723
|
if (fake)
|
|
23768
23724
|
return await fake.call(method, params, body);
|
|
23769
23725
|
const [{ googleApi }, client] = await Promise.all([
|
|
23770
|
-
import("./google-api-
|
|
23726
|
+
import("./google-api-HIMN4XL5.js"),
|
|
23771
23727
|
signedIn(selected(), descriptor.scope)
|
|
23772
23728
|
]);
|
|
23773
23729
|
return await googleApi(client).call(method, params, body);
|
|
@@ -23793,7 +23749,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23793
23749
|
if (fake)
|
|
23794
23750
|
return fake(id, mime);
|
|
23795
23751
|
const [{ googleDownload }, client] = await Promise.all([
|
|
23796
|
-
import("./google-api-
|
|
23752
|
+
import("./google-api-HIMN4XL5.js"),
|
|
23797
23753
|
signedIn(selected(), apiMethod(method).scope)
|
|
23798
23754
|
]);
|
|
23799
23755
|
return googleDownload(client)(id, mime);
|
|
@@ -23811,7 +23767,7 @@ var installDrive = /* @__PURE__ */ __name((program) => {
|
|
|
23811
23767
|
let request = environment().uploadRequest;
|
|
23812
23768
|
if (!request) {
|
|
23813
23769
|
const [{ googleUploadRequest }, client] = await Promise.all([
|
|
23814
|
-
import("./google-api-
|
|
23770
|
+
import("./google-api-HIMN4XL5.js"),
|
|
23815
23771
|
signedIn(selected(), apiMethod(method).scope)
|
|
23816
23772
|
]);
|
|
23817
23773
|
request = googleUploadRequest(client);
|
|
@@ -24023,7 +23979,7 @@ var mcpCommand = /* @__PURE__ */ __name(() => {
|
|
|
24023
23979
|
const environment = environmentOf(action);
|
|
24024
23980
|
if (environment.api)
|
|
24025
23981
|
return;
|
|
24026
|
-
const { grantAvailability } = await import("./grants-
|
|
23982
|
+
const { grantAvailability } = await import("./grants-RO42I6E4.js");
|
|
24027
23983
|
availability = grantAvailability(rootOf(root), environment.env ?? process.env, environment.keyring);
|
|
24028
23984
|
});
|
|
24029
23985
|
}, "mcpCommand");
|