@wirecat/drive-cli 0.65.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 +2899 -0
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/browse.d.ts +1 -1
- package/dist/browse.d.ts.map +1 -1
- package/dist/browse.js +1 -1
- package/dist/bundle/{all-profiles-PD7GJHFA.js → all-profiles-DVZUVAPQ.js} +14 -14
- package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-Y45C45O2.js} +20 -13
- package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-GTXUOUGD.js} +67 -56
- package/dist/bundle/{bun-P54TGES2.js → bun-QVJV76QJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-CC7PIAMH.js} +9 -9
- package/dist/bundle/{chunk-Y5PKRITX.js → chunk-2MEVCMBW.js} +5 -5
- package/dist/bundle/{chunk-ZILALBYQ.js → chunk-2PIA45FC.js} +7 -5
- package/dist/bundle/{chunk-SIWXYB4E.js → chunk-2Y3YBDZX.js} +3123 -2851
- package/dist/bundle/{chunk-54V4H6PM.js → chunk-3RG6LL25.js} +12 -12
- package/dist/bundle/{chunk-UTNRBOEN.js → chunk-4G7WQNG7.js} +3 -2
- package/dist/bundle/{chunk-OWMZUWCM.js → chunk-4VH7M2OD.js} +6 -14
- package/dist/bundle/{chunk-EM7NL5ES.js → chunk-5DMPGTNR.js} +3 -3
- package/dist/bundle/{chunk-W2XY6C5S.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-5TSILGTO.js} +21668 -28647
- package/dist/bundle/{chunk-FBHSWQU7.js → chunk-6ERQE4FS.js} +319 -102
- package/dist/bundle/{chunk-4AOINPN2.js → chunk-7AZCAUST.js} +8 -2
- package/dist/bundle/{chunk-DA63E2UM.js → chunk-7J2IP3WL.js} +18 -15
- package/dist/bundle/{chunk-JPPPLKAO.js → chunk-7JKECODO.js} +1 -2
- package/dist/bundle/{chunk-SEQWBZYH.js → chunk-AAZPDWRD.js} +1 -1
- package/dist/bundle/{chunk-CWLL63JD.js → chunk-ABJQ6IDU.js} +17 -17
- package/dist/bundle/{chunk-PHOL2DZM.js → chunk-AJ3DFPRT.js} +63 -5
- package/dist/bundle/{chunk-4EDWLR22.js → chunk-AZKFZ7J7.js} +1 -1
- package/dist/bundle/{chunk-IMHW7VIV.js → chunk-BHSLMJF7.js} +5 -5
- package/dist/bundle/{chunk-EHU6EYGO.js → chunk-C72WYRXD.js} +12 -12
- package/dist/bundle/chunk-CWDC6QJM.js +72 -0
- package/dist/bundle/{chunk-TTP4NOP3.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-DAFKV6DJ.js} +226 -18
- package/dist/bundle/{chunk-RNHGQ35R.js → chunk-E3XA56TS.js} +1 -1
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-ETAFFY3J.js} +196 -112
- package/dist/bundle/{chunk-D6Z43SOG.js → chunk-EXWOOST5.js} +402 -362
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-FOMQ4MG3.js} +3 -3
- package/dist/bundle/{chunk-VMAMRFFC.js → chunk-FS2PG2PE.js} +117 -44
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-OFJXHEFT.js → chunk-HJF2QGOX.js} +93 -31
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-O6K2E7OA.js → chunk-IRULPE5M.js} +1522 -1107
- package/dist/bundle/{chunk-EU5MD24W.js → chunk-JCNEPYQZ.js} +13 -13
- package/dist/bundle/{chunk-VDZY3L7U.js → chunk-JEMBW6IO.js} +1 -1
- package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-JJHDV32D.js} +2 -2
- package/dist/bundle/{chunk-FA6JNXCC.js → chunk-JLUQZZ26.js} +8 -8
- package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-JO7BJYAP.js} +45 -22
- package/dist/bundle/{chunk-TOVWMURV.js → chunk-JRFKCYMW.js} +22 -7
- package/dist/bundle/{chunk-M7ELUGU6.js → chunk-JY2GZDJL.js} +4 -4
- package/dist/bundle/chunk-LSAIXPAX.js +47 -0
- package/dist/bundle/{chunk-WVJHZIDH.js → chunk-LXRBTXCZ.js} +3 -3
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-F56DRBGY.js → chunk-MBLB4TQI.js} +75 -20
- package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-MEQNAZ6R.js} +7 -7
- package/dist/bundle/{chunk-XYE7XZPB.js → chunk-MEY7URZZ.js} +39 -35
- package/dist/bundle/{chunk-IBO23OID.js → chunk-MF46W7PQ.js} +2 -2
- package/dist/bundle/{chunk-7AQGVX5O.js → chunk-MW46BLWH.js} +60 -29
- package/dist/bundle/{chunk-VHQYWFWV.js → chunk-NFIR346J.js} +1 -1
- package/dist/bundle/{chunk-NI5PD5KM.js → chunk-NWYVOHIX.js} +18611 -16472
- package/dist/bundle/chunk-NYECVHFH.js +10283 -0
- package/dist/bundle/{chunk-D7WB54P7.js → chunk-OOBSSU2G.js} +546 -457
- package/dist/bundle/{chunk-VLXWAH5E.js → chunk-P6A77LMP.js} +4 -4
- package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-PDHN4GHU.js} +5 -40
- package/dist/bundle/{chunk-PLP5527C.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-TMHF4BCL.js → chunk-QOKPRFHM.js} +2 -2
- package/dist/bundle/{chunk-JMJIH6JH.js → chunk-RC72RU66.js} +6 -6
- package/dist/bundle/{chunk-NQRTKYJB.js → chunk-RLH6BOEG.js} +47 -80
- package/dist/bundle/{chunk-II4S2DBJ.js → chunk-SJE7UGOW.js} +12 -6
- package/dist/bundle/{chunk-LMKPP2JP.js → chunk-SXJDCRXE.js} +1 -1
- package/dist/bundle/{chunk-B2LPCHQN.js → chunk-T2VAEDJS.js} +4 -4
- package/dist/bundle/{chunk-I272E6UR.js → chunk-U2ERT45N.js} +54 -117
- package/dist/bundle/{chunk-A27UVLPK.js → chunk-UFNE57VY.js} +3 -3
- package/dist/bundle/{chunk-5XSBCMAF.js → chunk-ULH3TNUP.js} +4 -4
- package/dist/bundle/{chunk-3ONWN3IA.js → chunk-UOAHZV3K.js} +161 -48
- package/dist/bundle/{chunk-ECEP4SO3.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-42G2XNPN.js → chunk-V7E25BUU.js} +2 -2
- package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-VZ5KETIX.js} +14 -5
- package/dist/bundle/{chunk-X7YGGWXI.js → chunk-WBKYZZQT.js} +3 -2
- package/dist/bundle/{chunk-GW3LBY3T.js → chunk-WKIQKGOF.js} +146 -133
- package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-WWW7YTFG.js} +1 -1
- package/dist/bundle/{chunk-2AFI4KGI.js → chunk-XZCF5XU7.js} +7 -7
- package/dist/bundle/chunk-Y2QVNVHK.js +70 -0
- package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-Y5WSRG3F.js} +3 -3
- package/dist/bundle/{chunk-A4QNADEX.js → chunk-YI4DXASF.js} +49 -49
- package/dist/bundle/{chunk-SS4LKLD7.js → chunk-YVUAG7RF.js} +371 -362
- package/dist/bundle/chunk-ZEPDEFVT.js +71 -0
- package/dist/bundle/{chunk-SE352DBY.js → chunk-ZH4H5XTA.js} +1 -1
- package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-ZK46UHDP.js} +2 -2
- package/dist/bundle/{chunk-SNLSEYJO.js → chunk-ZU5VQYNY.js} +1 -1
- package/dist/bundle/cli-U4LSBYDV.js +1101 -0
- package/dist/bundle/command-contract-UU5T24ZZ.js +41 -0
- package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-PK6FBUPO.js} +31 -30
- package/dist/bundle/{decode-T5ZW57WZ.js → decode-3ZE6NBKV.js} +8 -8
- package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-WBEOHZDV.js} +9 -9
- package/dist/bundle/drive.js +13 -13
- package/dist/bundle/{echarts-KQ44LPSF.js → echarts-6FWNCNXK.js} +2 -2
- package/dist/bundle/{embed-Q7XST53J.js → embed-DGYBBZUW.js} +9 -9
- package/dist/bundle/{embedder-RWZSBVW2.js → embedder-O7A6VMWI.js} +12 -12
- package/dist/bundle/entry-CDJ2QSU2.js +25 -0
- package/dist/bundle/{failure-7NP4QPIN.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-P5DRHD7L.js → google-api-HIMN4XL5.js} +68 -63
- package/dist/bundle/grants-RO42I6E4.js +111 -0
- package/dist/bundle/{identity-VDV6CHRW.js → identity-NFGHDPLL.js} +8 -6
- package/dist/bundle/{instructions-Q45FVY6H.js → instructions-6JAQYCM6.js} +1 -1
- package/dist/bundle/{login-XKN3NI6X.js → login-RZOQN63N.js} +73 -70
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-MSW565D3.js → node-KSIX3GIH.js} +2 -2
- package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-4FJ6WJXN.js} +10 -10
- package/dist/bundle/oauth-BKZAMFKK.js +22 -0
- package/dist/bundle/{open-P7UQG7XJ.js → open-4AQJGH42.js} +8 -8
- package/dist/bundle/{openai-DDHJ57KZ.js → openai-24F2OX55.js} +28 -21
- package/dist/bundle/{process-NMUB5SHK.js → process-7NOA2T7H.js} +1 -1
- package/dist/bundle/{program-PJNWP6JW.js → program-7JHMLDEX.js} +306 -692
- package/dist/bundle/{prompt-VOSMK4C2.js → prompt-NM66MAZ4.js} +8 -8
- package/dist/bundle/{reasons-KDAXOC5S.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-GZIY63HS.js → recognize-DBKV2JYZ.js} +7 -7
- package/dist/bundle/{remote-V3YGN7LN.js → remote-ABWUTBVB.js} +13 -10
- package/dist/bundle/{rerank-XRU6AVN7.js → rerank-FQAU4ENY.js} +10 -10
- package/dist/bundle/{serve-NDOAFA57.js → serve-QLJG4QZD.js} +12 -12
- package/dist/bundle/server-NUBLY5SV.js +74 -0
- package/dist/bundle/{server-BKGWJYMC.js → server-VGZNK5XD.js} +47 -45
- package/dist/bundle/{services-TYDMFQCA.js → services-5KARVUHK.js} +44 -34
- package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-ILF6EFQJ.js} +9 -9
- package/dist/bundle/{start-2ZLDP2OE.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-6SP27J2K.js → state-R2M56GPU.js} +9 -9
- package/dist/bundle/{store-4UUY545Q.js → store-2OBVMUQL.js} +21 -19
- package/dist/bundle/{store-EJN27MXI.js → store-DA4K7HWW.js} +23 -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/discovery.d.ts +0 -1
- package/dist/commands/discovery.d.ts.map +1 -1
- package/dist/commands/discovery.js +6 -26
- package/dist/commands/discovery.js.map +1 -1
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +7 -6
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +15 -12
- 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 +10 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -3
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +16 -4
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +86 -410
- package/dist/contract-overrides.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +4 -0
- package/dist/errors.js.map +1 -1
- package/dist/google-api.d.ts.map +1 -1
- package/dist/google-api.js +4 -1
- package/dist/google-api.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/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +22 -0
- package/dist/identity.js.map +1 -1
- package/dist/knowledge.js +2 -2
- package/dist/knowledge.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/login.d.ts.map +1 -1
- package/dist/login.js +2 -2
- package/dist/login.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 +10 -6
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.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/store-transition.js +2 -2
- package/dist/store-transition.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +7 -7
- package/dist/store.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/tokens.d.ts +9 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +18 -15
- package/dist/tokens.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/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -7
- package/dist/bundle/chunk-CGQRZRTH.js +0 -26
- package/dist/bundle/chunk-IKHOIXJR.js +0 -27
- package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
- package/dist/bundle/command-contract-25E4PYMD.js +0 -40
- package/dist/bundle/dist-PY3MVR3G.js +0 -21
- package/dist/bundle/entry-HPLW4QL2.js +0 -25
- package/dist/bundle/first-run-RL3RKYZW.js +0 -30
- package/dist/bundle/first-screen-NX3TM2VJ.js +0 -38
- package/dist/bundle/google-DPD5N6AQ.js +0 -42
- package/dist/bundle/grants-TX4MHLI4.js +0 -109
- package/dist/bundle/oauth-6R7AWAES.js +0 -22
- package/dist/bundle/server-QD2MUJJZ.js +0 -72
- package/dist/bundle/store-maintenance-command-LETURZDC.js +0 -60
- package/dist/bundle/tokens-MTFJPTYT.js +0 -107
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -1,46 +1,71 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
DOC
|
|
5
|
+
} from "./chunk-FS2PG2PE.js";
|
|
6
|
+
import {
|
|
7
|
+
operations
|
|
8
|
+
} from "./chunk-NYECVHFH.js";
|
|
9
|
+
import {
|
|
5
10
|
privateFiles
|
|
6
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5TSILGTO.js";
|
|
7
12
|
import {
|
|
8
13
|
commandPathKey,
|
|
9
14
|
commandPermissions
|
|
10
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YVUAG7RF.js";
|
|
16
|
+
import {
|
|
17
|
+
listQuery,
|
|
18
|
+
queryTerms,
|
|
19
|
+
typedQuery,
|
|
20
|
+
withQuery
|
|
21
|
+
} from "./chunk-JO7BJYAP.js";
|
|
11
22
|
import {
|
|
12
23
|
AI_ENTRIES,
|
|
24
|
+
answerEntity,
|
|
13
25
|
checkConfigText,
|
|
14
26
|
issueMessage,
|
|
15
27
|
settingsFor,
|
|
16
28
|
usableProfileName,
|
|
17
29
|
withSettingDefaults
|
|
18
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2Y3YBDZX.js";
|
|
19
31
|
import {
|
|
20
32
|
LEVELS
|
|
21
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MBLB4TQI.js";
|
|
34
|
+
import {
|
|
35
|
+
note
|
|
36
|
+
} from "./chunk-UFNE57VY.js";
|
|
22
37
|
import {
|
|
23
38
|
MAX_TEXT_CHARS
|
|
24
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-LXRBTXCZ.js";
|
|
40
|
+
import {
|
|
41
|
+
dateRange,
|
|
42
|
+
queryError,
|
|
43
|
+
queryFieldsOf,
|
|
44
|
+
timezoneOf
|
|
45
|
+
} from "./chunk-UPCEHSIZ.js";
|
|
25
46
|
import {
|
|
26
47
|
DRIVE_APP
|
|
27
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-LSAIXPAX.js";
|
|
28
49
|
import {
|
|
29
50
|
BASE_CONSTANTS,
|
|
30
51
|
baseConstantsSchema,
|
|
31
52
|
loadConstants,
|
|
32
53
|
resolvePaths,
|
|
33
54
|
saveConfigFile
|
|
34
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-MW46BLWH.js";
|
|
35
56
|
import {
|
|
36
57
|
array,
|
|
37
58
|
boolean,
|
|
38
59
|
integer,
|
|
60
|
+
isoTime,
|
|
39
61
|
literal,
|
|
62
|
+
looseObject,
|
|
63
|
+
maxLength,
|
|
40
64
|
maxValue,
|
|
41
65
|
minLength,
|
|
42
66
|
minValue,
|
|
43
67
|
nonEmpty,
|
|
68
|
+
nullable,
|
|
44
69
|
number,
|
|
45
70
|
object,
|
|
46
71
|
optional,
|
|
@@ -53,16 +78,17 @@ import {
|
|
|
53
78
|
string,
|
|
54
79
|
transform,
|
|
55
80
|
trim,
|
|
56
|
-
union
|
|
57
|
-
|
|
81
|
+
union,
|
|
82
|
+
unknown
|
|
83
|
+
} from "./chunk-JRFKCYMW.js";
|
|
58
84
|
import {
|
|
59
85
|
CliError
|
|
60
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-EA2OB75T.js";
|
|
61
87
|
import {
|
|
62
88
|
__name
|
|
63
89
|
} from "./chunk-ZVVMGPBJ.js";
|
|
64
90
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
91
|
+
// 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/oauth/client-file.js
|
|
66
92
|
import { readFileSync } from "node:fs";
|
|
67
93
|
var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
|
|
68
94
|
if (!options.shipped && typeof location === "string") {
|
|
@@ -83,7 +109,7 @@ var readClientFile = /* @__PURE__ */ __name((location, options = {}) => {
|
|
|
83
109
|
}
|
|
84
110
|
}, "readClientFile");
|
|
85
111
|
|
|
86
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
112
|
+
// 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/constants/obscure.js
|
|
87
113
|
import { createDecipheriv } from "node:crypto";
|
|
88
114
|
var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
|
|
89
115
|
var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
@@ -92,7 +118,7 @@ var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
|
92
118
|
return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
|
|
93
119
|
}, "reveal");
|
|
94
120
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
121
|
+
// 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/constants/index.js
|
|
96
122
|
var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
|
|
97
123
|
var constantsSchema = object({
|
|
98
124
|
...baseConstantsSchema.entries,
|
|
@@ -214,6 +240,152 @@ var methodPolicyKeys = /* @__PURE__ */ __name((method, body) => {
|
|
|
214
240
|
// dist/config.js
|
|
215
241
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
216
242
|
import { join } from "node:path";
|
|
243
|
+
|
|
244
|
+
// dist/list-queries.js
|
|
245
|
+
var registry = /* @__PURE__ */ __name((entity, schema, native, examples) => ({
|
|
246
|
+
entity,
|
|
247
|
+
backend: "native",
|
|
248
|
+
fields: queryFieldsOf(schema, { native, examples }).map((field) => field.native ? { ...field, operators: ["term", "phrase"] } : field)
|
|
249
|
+
}), "registry");
|
|
250
|
+
var folderRow = strictObject({ id: string() });
|
|
251
|
+
var mirrorRow = strictObject({ id: string(), path: string(), folder: string() });
|
|
252
|
+
var sessionRow = strictObject({
|
|
253
|
+
profile: string(),
|
|
254
|
+
selected_folders: number(),
|
|
255
|
+
storage: picklist(["keyring", "file"])
|
|
256
|
+
});
|
|
257
|
+
var tagRow = strictObject({ tag: string() });
|
|
258
|
+
var linkRow = looseObject({
|
|
259
|
+
id: string(),
|
|
260
|
+
from: string(),
|
|
261
|
+
to: nullable(string()),
|
|
262
|
+
kind: string(),
|
|
263
|
+
role: nullable(string()),
|
|
264
|
+
confirmed: boolean(),
|
|
265
|
+
origin: picklist(["file", "owner", "suggested", "message"])
|
|
266
|
+
});
|
|
267
|
+
var identityRow = looseObject({
|
|
268
|
+
google_id: nullable(string()),
|
|
269
|
+
role: picklist(["owner", "last-editor"]),
|
|
270
|
+
person: nullable(record(string(), unknown()))
|
|
271
|
+
});
|
|
272
|
+
var fileRow = looseObject({
|
|
273
|
+
id: optional(string()),
|
|
274
|
+
name: optional(string()),
|
|
275
|
+
trashed: optional(boolean()),
|
|
276
|
+
modified_time: optional(isoTime),
|
|
277
|
+
created_time: optional(isoTime),
|
|
278
|
+
viewed_by_me_time: optional(isoTime)
|
|
279
|
+
});
|
|
280
|
+
var transcriptRow = strictObject({
|
|
281
|
+
id: string(),
|
|
282
|
+
name: string(),
|
|
283
|
+
url: string(),
|
|
284
|
+
owned_by_me: nullable(boolean()),
|
|
285
|
+
modified_at: nullable(string())
|
|
286
|
+
});
|
|
287
|
+
var TRANSCRIPTS_QUERY = registry("drive_transcript", transcriptRow, ["owned_by_me"], {
|
|
288
|
+
owned_by_me: "owned_by_me:false"
|
|
289
|
+
});
|
|
290
|
+
var FOLDERS_QUERY = registry("drive_selected_folder", folderRow, ["id"], { id: "id:FOLDER_ID" });
|
|
291
|
+
var MIRRORS_QUERY = registry("drive_mirror", mirrorRow, ["id", "path", "folder"], {
|
|
292
|
+
id: "id:example",
|
|
293
|
+
path: 'path:"/example/notes"',
|
|
294
|
+
folder: "folder:FOLDER_ID"
|
|
295
|
+
});
|
|
296
|
+
var SESSIONS_QUERY = registry("drive_session", sessionRow, ["profile", "storage"], {
|
|
297
|
+
profile: "profile:personal",
|
|
298
|
+
storage: "storage:keyring"
|
|
299
|
+
});
|
|
300
|
+
var TAGS_QUERY = registry("drive_document_tag", tagRow, ["tag"], { tag: "tag:budget" });
|
|
301
|
+
var NOTES_QUERY = registry("note", note, ["text"], { text: "text:review" });
|
|
302
|
+
var LINKS_QUERY = registry("drive_document_relationship", linkRow, ["id", "role", "origin", "confirmed"], {
|
|
303
|
+
id: "id:1",
|
|
304
|
+
role: "role:reviewer",
|
|
305
|
+
origin: "origin:owner",
|
|
306
|
+
confirmed: "confirmed:true"
|
|
307
|
+
});
|
|
308
|
+
var IDENTITIES_QUERY = registry("drive_document_identity", identityRow, ["google_id", "role"], {
|
|
309
|
+
google_id: "google_id:example",
|
|
310
|
+
role: "role:owner"
|
|
311
|
+
});
|
|
312
|
+
var FILES_QUERY = {
|
|
313
|
+
entity: "drive_remote_file",
|
|
314
|
+
backend: "native",
|
|
315
|
+
fields: queryFieldsOf(fileRow, {
|
|
316
|
+
native: ["name", "trashed", "modified_time", "created_time", "viewed_by_me_time"],
|
|
317
|
+
examples: {
|
|
318
|
+
name: 'name:"Example plan"',
|
|
319
|
+
trashed: "trashed:false",
|
|
320
|
+
modified_time: "modified_time>=2026-01-01",
|
|
321
|
+
created_time: "created_time>=2026-01-01",
|
|
322
|
+
viewed_by_me_time: "viewed_by_me_time>=2026-01-01"
|
|
323
|
+
}
|
|
324
|
+
}).map((field) => field.native ? { ...field, operators: field.type === "time" ? ["term", "range"] : ["term", "phrase"] } : field),
|
|
325
|
+
defaults: ["trashed:false"]
|
|
326
|
+
};
|
|
327
|
+
var bindQuery = /* @__PURE__ */ __name((command, query, schema) => answerEntity(withQuery(command, query), query.entity, schema), "bindQuery");
|
|
328
|
+
var termsOf = /* @__PURE__ */ __name((words, query, command) => Object.fromEntries(queryTerms(words, query, command)), "termsOf");
|
|
329
|
+
var quote = /* @__PURE__ */ __name((value) => `'${value.replaceAll("\\", "\\\\").replaceAll("'", "\\'")}'`, "quote");
|
|
330
|
+
var driveFileQuery = /* @__PURE__ */ __name((words, timezone) => {
|
|
331
|
+
const ast = listQuery(typedQuery(words), FILES_QUERY, "files list");
|
|
332
|
+
const zone = timezoneOf(timezone);
|
|
333
|
+
const column = {
|
|
334
|
+
modified_time: "modifiedTime",
|
|
335
|
+
created_time: "createdTime",
|
|
336
|
+
viewed_by_me_time: "viewedByMeTime"
|
|
337
|
+
};
|
|
338
|
+
const render = /* @__PURE__ */ __name((node) => {
|
|
339
|
+
if (node.kind === "boolean") {
|
|
340
|
+
if (node.clauses.some((clause) => clause.occur !== "must"))
|
|
341
|
+
queryError("query.unsupported-operator", node.span, "files list accepts AND terms only");
|
|
342
|
+
return node.clauses.map((clause) => render(clause.node)).join(" and ");
|
|
343
|
+
}
|
|
344
|
+
if (node.field === "name")
|
|
345
|
+
return `name = ${quote(node.value)}`;
|
|
346
|
+
if (node.field === "trashed")
|
|
347
|
+
return `trashed = ${node.value.toLowerCase()}`;
|
|
348
|
+
const range = dateRange(node.value, node.operator === "range" ? node.upper ?? "*" : node.value, node.lower_inclusive ?? true, node.upper_inclusive ?? true, zone, node.span);
|
|
349
|
+
return [
|
|
350
|
+
range.lower === void 0 ? void 0 : `${column[node.field]} ${range.lower_inclusive ? ">=" : ">"} ${quote(new Date(range.lower).toISOString())}`,
|
|
351
|
+
range.upper === void 0 ? void 0 : `${column[node.field]} ${range.upper_inclusive ? "<=" : "<"} ${quote(new Date(range.upper).toISOString())}`
|
|
352
|
+
].filter(Boolean).join(" and ");
|
|
353
|
+
}, "render");
|
|
354
|
+
return { query: ast ? render(ast.root) : "trashed = false", timezone: zone };
|
|
355
|
+
}, "driveFileQuery");
|
|
356
|
+
|
|
357
|
+
// dist/transcripts.js
|
|
358
|
+
var TRANSCRIPT_MODES = ["include", "skip", "exclude"];
|
|
359
|
+
var TRANSCRIPT_WORDS = [
|
|
360
|
+
"Transcript",
|
|
361
|
+
"Notes by Gemini",
|
|
362
|
+
"\u0422\u0440\u0430\u043D\u0441\u043A\u0440\u0438\u043F\u0442",
|
|
363
|
+
"\u0417\u0430\u043C\u0435\u0442\u043A\u0438 Gemini",
|
|
364
|
+
"Transcripci\xF3n",
|
|
365
|
+
"Notas de Gemini"
|
|
366
|
+
];
|
|
367
|
+
var folded = /* @__PURE__ */ __name((text) => text.normalize("NFC").toLowerCase(), "folded");
|
|
368
|
+
var isTranscript = /* @__PURE__ */ __name((words) => (file) => file.mime === DOC && !file.trashed && words.some((word) => folded(file.name).includes(folded(word))), "isTranscript");
|
|
369
|
+
var transcriptsDriveQuery = /* @__PURE__ */ __name((words) => {
|
|
370
|
+
const longest = /* @__PURE__ */ __name((phrase) => phrase.trim().split(/\s+/).reduce((a, b) => b.length > a.length ? b : a, ""), "longest");
|
|
371
|
+
const asked = [...new Set(words.map(longest).filter(Boolean))];
|
|
372
|
+
return `mimeType = '${DOC}' and trashed = false and (${asked.map((word) => `name contains ${quote(word)}`).join(" or ")})`;
|
|
373
|
+
}, "transcriptsDriveQuery");
|
|
374
|
+
var findTranscripts = /* @__PURE__ */ __name(async (search, words) => {
|
|
375
|
+
if (!search)
|
|
376
|
+
throw new CliError("configuration_error", "finding transcripts needs a signed-in Google account");
|
|
377
|
+
const matches = isTranscript(words);
|
|
378
|
+
return (await search(transcriptsDriveQuery(words))).filter(matches);
|
|
379
|
+
}, "findTranscripts");
|
|
380
|
+
var transcriptQuery = /* @__PURE__ */ __name((mode, words, search) => {
|
|
381
|
+
if (mode === void 0 || mode === "skip")
|
|
382
|
+
return void 0;
|
|
383
|
+
const key = JSON.stringify([...new Set(words.map(folded))].sort());
|
|
384
|
+
const query = { key, mode, matches: isTranscript(words) };
|
|
385
|
+
return mode === "include" ? { ...query, list: /* @__PURE__ */ __name(() => findTranscripts(search, words), "list") } : query;
|
|
386
|
+
}, "transcriptQuery");
|
|
387
|
+
|
|
388
|
+
// dist/config.js
|
|
217
389
|
var Common = {
|
|
218
390
|
...AI_ENTRIES,
|
|
219
391
|
permissions: optional(record(string(), picklist(LEVELS))),
|
|
@@ -244,7 +416,12 @@ var DEFAULTS_ONLY = /* @__PURE__ */ new Set([
|
|
|
244
416
|
"update_check",
|
|
245
417
|
"skill_hint"
|
|
246
418
|
]);
|
|
247
|
-
var
|
|
419
|
+
var Transcripts = {
|
|
420
|
+
transcripts: optional(picklist(TRANSCRIPT_MODES)),
|
|
421
|
+
transcript_words: optional(pipe(array(pipe(string(), trim(), minLength(1), maxLength(100))), minLength(1), maxLength(50)))
|
|
422
|
+
};
|
|
423
|
+
var PROFILE_ONLY = /* @__PURE__ */ new Set(["picture_search", ...Object.keys(Transcripts)]);
|
|
424
|
+
var SETTING_NAMES = /* @__PURE__ */ new Set([...Object.keys(Common), ...PROFILE_ONLY, ...DEFAULTS_ONLY]);
|
|
248
425
|
var Mirror = strictObject({
|
|
249
426
|
id: pipe(string(), regex(/^[a-z0-9-]{1,40}$/)),
|
|
250
427
|
path: pipe(string(), minLength(1)),
|
|
@@ -256,6 +433,7 @@ var Profile = strictObject({
|
|
|
256
433
|
mirrors: optional(array(Mirror)),
|
|
257
434
|
storage: picklist(["keyring", "file"]),
|
|
258
435
|
picture_search: optional(boolean()),
|
|
436
|
+
...Transcripts,
|
|
259
437
|
...Common
|
|
260
438
|
});
|
|
261
439
|
var ConfigSchema = strictObject({
|
|
@@ -270,6 +448,7 @@ var keyOf = /* @__PURE__ */ __name((path) => {
|
|
|
270
448
|
const operation = operations.find((one) => one.command === path[1]);
|
|
271
449
|
return operation ? `api.${operation.id}` : commandPathKey(path);
|
|
272
450
|
}, "keyOf");
|
|
451
|
+
var permissions = commandPermissions({ keyOf, extra: [...permissionKeys([])], defaults: DEFAULT_LEVELS });
|
|
273
452
|
var configuration = settingsFor(DRIVE_APP, {
|
|
274
453
|
configRepair: false,
|
|
275
454
|
// drive's own schema decides what the file may hold, so `doctor` names a profile that lacks its principal.
|
|
@@ -280,7 +459,8 @@ var configuration = settingsFor(DRIVE_APP, {
|
|
|
280
459
|
mirrors: optional(array(Mirror)),
|
|
281
460
|
storage: optional(picklist(["keyring", "file"])),
|
|
282
461
|
max_text_chars: Common.max_text_chars,
|
|
283
|
-
google_client_id: Common.google_client_id
|
|
462
|
+
google_client_id: Common.google_client_id,
|
|
463
|
+
...Transcripts
|
|
284
464
|
},
|
|
285
465
|
settings: [
|
|
286
466
|
{
|
|
@@ -294,7 +474,7 @@ var configuration = settingsFor(DRIVE_APP, {
|
|
|
294
474
|
description: "the most profiles documents add may try for one document"
|
|
295
475
|
}
|
|
296
476
|
],
|
|
297
|
-
permissions
|
|
477
|
+
permissions
|
|
298
478
|
});
|
|
299
479
|
var paths = /* @__PURE__ */ __name((env) => resolvePaths({ appName: "drive-cli", prefix: "DRIVE", env }), "paths");
|
|
300
480
|
var configPath = /* @__PURE__ */ __name((env) => join(paths(env).config, "config.json"), "configPath");
|
|
@@ -370,7 +550,7 @@ var fileId = /* @__PURE__ */ __name((input) => {
|
|
|
370
550
|
throw new CliError("validation_error", "invalid Google file ID");
|
|
371
551
|
return id;
|
|
372
552
|
}, "fileId");
|
|
373
|
-
var unknownProfile = /* @__PURE__ */ __name((name, profiles) => new CliError("
|
|
553
|
+
var unknownProfile = /* @__PURE__ */ __name((name, profiles) => new CliError("not_found", profiles.length ? `no profile ${name} here \u2014 profiles here: ${profiles.join(", ")}; a new one signs in with drive ${name} session start` : `no profiles here yet; create one with drive ${name} session start`, { reason: "profile.unknown", profiles }), "unknownProfile");
|
|
374
554
|
var activeProfile = /* @__PURE__ */ __name((env, name) => {
|
|
375
555
|
const config = readConfig(env);
|
|
376
556
|
const profile = config.profiles[profileName(name)];
|
|
@@ -386,6 +566,10 @@ var checkTextLimit = /* @__PURE__ */ __name((value) => {
|
|
|
386
566
|
return value;
|
|
387
567
|
}, "checkTextLimit");
|
|
388
568
|
var textLimit = /* @__PURE__ */ __name((env, name) => activeProfile(env, name).max_text_chars ?? readConfig(env).defaults?.max_text_chars ?? MAX_TEXT_CHARS, "textLimit");
|
|
569
|
+
var transcriptsOf = /* @__PURE__ */ __name((env, name) => {
|
|
570
|
+
const profile = activeProfile(env, name);
|
|
571
|
+
return { mode: profile.transcripts, words: profile.transcript_words ?? [...TRANSCRIPT_WORDS] };
|
|
572
|
+
}, "transcriptsOf");
|
|
389
573
|
var pictureSearch = /* @__PURE__ */ __name((env, name) => activeProfile(env, name).picture_search ?? false, "pictureSearch");
|
|
390
574
|
var googleAppOf = /* @__PURE__ */ __name((env, { file, clientId, profile } = {}) => {
|
|
391
575
|
const own = file || clientId || env.DRIVE_GOOGLE_CLIENT_ID;
|
|
@@ -414,7 +598,30 @@ export {
|
|
|
414
598
|
permissionNames,
|
|
415
599
|
DEFAULT_LEVELS,
|
|
416
600
|
methodPolicyKeys,
|
|
601
|
+
folderRow,
|
|
602
|
+
mirrorRow,
|
|
603
|
+
sessionRow,
|
|
604
|
+
tagRow,
|
|
605
|
+
linkRow,
|
|
606
|
+
identityRow,
|
|
607
|
+
fileRow,
|
|
608
|
+
transcriptRow,
|
|
609
|
+
TRANSCRIPTS_QUERY,
|
|
610
|
+
FOLDERS_QUERY,
|
|
611
|
+
MIRRORS_QUERY,
|
|
612
|
+
SESSIONS_QUERY,
|
|
613
|
+
TAGS_QUERY,
|
|
614
|
+
NOTES_QUERY,
|
|
615
|
+
LINKS_QUERY,
|
|
616
|
+
IDENTITIES_QUERY,
|
|
617
|
+
FILES_QUERY,
|
|
618
|
+
bindQuery,
|
|
619
|
+
termsOf,
|
|
620
|
+
driveFileQuery,
|
|
621
|
+
findTranscripts,
|
|
622
|
+
transcriptQuery,
|
|
417
623
|
DEFAULTS_ONLY,
|
|
624
|
+
PROFILE_ONLY,
|
|
418
625
|
SETTING_NAMES,
|
|
419
626
|
configuration,
|
|
420
627
|
paths,
|
|
@@ -431,6 +638,7 @@ export {
|
|
|
431
638
|
activeProfile,
|
|
432
639
|
checkTextLimit,
|
|
433
640
|
textLimit,
|
|
641
|
+
transcriptsOf,
|
|
434
642
|
pictureSearch,
|
|
435
643
|
googleAppOf,
|
|
436
644
|
application,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// 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/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|