@wirecat/drive-cli 0.52.1 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{chunk-ZWSG7OCA.js → all-profiles-LFIPUPZI.js} +13 -8
- package/dist/bundle/{anthropic-KW6KU36Y.js → anthropic-G5ZRRWG4.js} +5 -5
- package/dist/bundle/{app-server-TCJZ333E.js → app-server-UVWATOQC.js} +48 -56
- package/dist/bundle/{bun-7SYKSCLA.js → bun-DNEFTPTR.js} +2 -2
- package/dist/bundle/{bun-sqlite-RI7DR6RZ.js → bun-sqlite-FWBYHIXB.js} +4 -4
- package/dist/bundle/{chunk-CM7GAXGD.js → chunk-2CQT2WWN.js} +5 -5
- package/dist/bundle/{chunk-HQVJK5E7.js → chunk-2D6AAGBP.js} +246 -383
- package/dist/bundle/{chunk-FG4XXZZE.js → chunk-2FFXRWI2.js} +2 -2
- package/dist/bundle/{chunk-2UIMEMWU.js → chunk-2HQPJ366.js} +3 -3
- package/dist/bundle/{chunk-CB7SBYLO.js → chunk-2HWOGSTA.js} +57 -37
- package/dist/bundle/{chunk-7XKAVMCF.js → chunk-2MSJVFAS.js} +8 -8
- package/dist/bundle/{chunk-NSIFQ5OP.js → chunk-2NWFZ43Q.js} +1 -1
- package/dist/bundle/{chunk-H47W2J6S.js → chunk-2Q3S47BC.js} +1312 -626
- package/dist/bundle/{chunk-O6IOL6RX.js → chunk-47MEPBWG.js} +21 -21
- package/dist/bundle/{chunk-725OHXKR.js → chunk-4RDXCE45.js} +2226 -37
- package/dist/bundle/{chunk-UR32UWTQ.js → chunk-5BPOAHVD.js} +13 -2
- package/dist/bundle/{chunk-5FONRUG6.js → chunk-5D4AEUVA.js} +1 -23
- package/dist/bundle/{chunk-VZ2I62HN.js → chunk-5LNOVPOR.js} +2 -2
- package/dist/bundle/{chunk-EKFEY3KP.js → chunk-5WQN2TUM.js} +1 -1
- package/dist/bundle/{chunk-ALJWBGD5.js → chunk-6MGSFYGL.js} +1 -1
- package/dist/bundle/{chunk-WUX7AUOQ.js → chunk-6RAEXK7Y.js} +26 -26
- package/dist/bundle/{chunk-BSSCTWWK.js → chunk-6SOQJRGI.js} +4 -4
- package/dist/bundle/{chunk-CKBHR7QO.js → chunk-75DSLCPC.js} +1 -1
- package/dist/bundle/{chunk-VSOLLTYT.js → chunk-76JIVDKC.js} +7 -2
- package/dist/bundle/{chunk-33NVQGUY.js → chunk-7WCZ2OZ5.js} +6 -6
- package/dist/bundle/{chunk-IDUNJCFO.js → chunk-7XU3TR7K.js} +2 -2
- package/dist/bundle/{chunk-7SH4JHYW.js → chunk-A4FTLORC.js} +12 -12
- package/dist/bundle/{chunk-CITFEQ6S.js → chunk-AACQA2CO.js} +1 -1
- package/dist/bundle/{chunk-PSNHPFSK.js → chunk-AAHIBA36.js} +1 -1
- package/dist/bundle/{chunk-PEOCBV2Z.js → chunk-BWBVBW5T.js} +8 -8
- package/dist/bundle/{chunk-A4UNTWAX.js → chunk-CVALO727.js} +99 -30
- package/dist/bundle/{chunk-G6QF5KWF.js → chunk-FHW4ENRF.js} +37 -43
- package/dist/bundle/{chunk-LONV6HIK.js → chunk-HAHARAJD.js} +455 -40
- package/dist/bundle/{chunk-2623YE5I.js → chunk-IBRXVPBI.js} +97 -99
- package/dist/bundle/{chunk-IWFBAWZK.js → chunk-IKODUUQG.js} +292 -19
- package/dist/bundle/{chunk-PQJYM5ES.js → chunk-IOMSC4ZG.js} +3 -3
- package/dist/bundle/{chunk-YKZ4IPLB.js → chunk-JKEAZBEZ.js} +7 -7
- package/dist/bundle/{chunk-FCJAHD4R.js → chunk-KIQIF5M7.js} +3 -3
- package/dist/bundle/{chunk-KYVXMEBC.js → chunk-KT5G3KVS.js} +3 -3
- package/dist/bundle/{chunk-W7IK7E4B.js → chunk-L3RV42O3.js} +20 -22
- package/dist/bundle/{chunk-NHBUTCNR.js → chunk-LQXLWHKM.js} +9 -9
- package/dist/bundle/{chunk-WBTVGFXI.js → chunk-MATUQFYL.js} +11 -11
- package/dist/bundle/{chunk-54O62JWP.js → chunk-MULPNGM2.js} +29 -10
- package/dist/bundle/{chunk-FJW3DDCF.js → chunk-N4OO3SPQ.js} +5 -5
- package/dist/bundle/{chunk-6DHQTUB2.js → chunk-NDWWGBSM.js} +1 -1
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-NHDSJMAR.js} +1 -1
- package/dist/bundle/{chunk-PQYVPCJ2.js → chunk-O6YYFVDD.js} +38 -37
- package/dist/bundle/{chunk-I7UH5CTA.js → chunk-OYGEBFFO.js} +12 -14
- package/dist/bundle/chunk-P7E7K467.js +110 -0
- package/dist/bundle/{chunk-ZNZUZGSV.js → chunk-PKNTBZXN.js} +176 -49
- package/dist/bundle/{chunk-YNFELLNQ.js → chunk-PU4GANCD.js} +3 -3
- package/dist/bundle/{chunk-5PLJKSG4.js → chunk-Q46JLJ5O.js} +7 -9
- package/dist/bundle/{chunk-R276546S.js → chunk-QKHFQHE7.js} +1 -1
- package/dist/bundle/{chunk-RNSP57TC.js → chunk-QUJCD5U7.js} +4 -4
- package/dist/bundle/{chunk-43QVYW3K.js → chunk-RIYXQFKU.js} +262 -88
- package/dist/bundle/{chunk-2AUXBJRX.js → chunk-RWEFKLXJ.js} +104 -29
- package/dist/bundle/{chunk-WQJBAWQP.js → chunk-SBOTSSYV.js} +879 -508
- package/dist/bundle/{chunk-PAXKALHV.js → chunk-U3BOQ63L.js} +118 -7
- package/dist/bundle/{chunk-VJZST5RD.js → chunk-UBJX5D2O.js} +2 -2
- package/dist/bundle/{chunk-HX7Y2ASG.js → chunk-VCGQMTHW.js} +26318 -15143
- package/dist/bundle/{chunk-7YMDL4JQ.js → chunk-VKYCMXEQ.js} +8 -5
- package/dist/bundle/{chunk-ZSXRDF6I.js → chunk-VX4RAT3A.js} +1 -1
- package/dist/bundle/{chunk-NYOPEHEU.js → chunk-W5SYBHRX.js} +8 -3
- package/dist/bundle/{chunk-XOLQSCMF.js → chunk-WGSTTWM5.js} +6 -6
- package/dist/bundle/{chunk-WLFUBNFX.js → chunk-WJRE45Z6.js} +4 -4
- package/dist/bundle/{chunk-IEXPOEEO.js → chunk-WQPTZHHR.js} +17 -26
- package/dist/bundle/{chunk-JEOYFKUK.js → chunk-WSX5UQNT.js} +2 -2
- package/dist/bundle/{chunk-LJAX6YCF.js → chunk-WYDYSQ7T.js} +2 -2
- package/dist/bundle/{chunk-C6Z25IBJ.js → chunk-XCUUYQN7.js} +4 -4
- package/dist/bundle/{chunk-GVCN3GLZ.js → chunk-YOHOQ6ZR.js} +4 -4
- package/dist/bundle/chunk-YZ5VMR2S.js +5305 -0
- package/dist/bundle/{chunk-ZDLIO76S.js → chunk-ZMMOVTUB.js} +2 -2
- package/dist/bundle/command-contract-VZ3ZJLEF.js +35 -0
- package/dist/bundle/{decode-EDN2ARXZ.js → decode-DN2DDFET.js} +4 -4
- package/dist/bundle/drive.js +11 -22
- package/dist/bundle/{echarts-GXY34GHA.js → echarts-VMHZ2UYP.js} +2 -2
- package/dist/bundle/{embed-3GSQIQXE.js → embed-MDN7R7BA.js} +5 -5
- package/dist/bundle/{embedder-6ULWRG3R.js → embedder-KEVEDNDJ.js} +8 -8
- package/dist/bundle/{entry-IPRJLFHO.js → entry-HTNK5TJQ.js} +6 -6
- package/dist/bundle/{first-run-FGHGWHC2.js → first-run-QNMCMP67.js} +9 -9
- package/dist/bundle/first-screen-RQBEHUQC.js +33 -0
- package/dist/bundle/{google-BD3ZNFVJ.js → google-QAKMV57Q.js} +9 -9
- package/dist/bundle/{chunk-GR5GGZKH.js → google-api-UJJS7ECO.js} +62 -6
- package/dist/bundle/grants-VMPKFEC2.js +98 -0
- package/dist/bundle/{identity-U7IHZEMR.js → identity-UODE3QAL.js} +4 -2
- package/dist/bundle/{instructions-K5BEQM4C.js → instructions-IWLHCDC7.js} +1 -1
- package/dist/bundle/{login-7HRYPZMM.js → login-GIZXEN7I.js} +60 -68
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-RUYPQVYS.js} +2 -2
- package/dist/bundle/{node-ZYWB7IET.js → node-25IJLDBZ.js} +2 -2
- package/dist/bundle/{node-sqlite-J3OODPYK.js → node-sqlite-DYR4FEI4.js} +4 -4
- package/dist/bundle/{oauth-L4VTCBLF.js → oauth-FLHXEDDY.js} +7 -7
- package/dist/bundle/{open-SGUN7ZVF.js → open-FWDZB7KX.js} +3 -3
- package/dist/bundle/{openai-RLVISEDH.js → openai-HB7UGKPW.js} +13 -13
- package/dist/bundle/{process-ZXO2MWRJ.js → process-P6TW37HQ.js} +1 -1
- package/dist/bundle/{program-YVLXSKZV.js → program-DVUNLXXS.js} +730 -919
- package/dist/bundle/{prompt-AUWTBLO7.js → prompt-MKWMYO3B.js} +4 -4
- package/dist/bundle/{reasons-J57GSRWN.js → reasons-25BEO2NE.js} +3 -3
- package/dist/bundle/{recognize-ORX2UBQW.js → recognize-VXGNPROM.js} +3 -3
- package/dist/bundle/{remote-AGIJY73X.js → remote-H5ZWLJHR.js} +6 -6
- package/dist/bundle/{rerank-R6PE44M5.js → rerank-5A3JDK7O.js} +6 -6
- package/dist/bundle/{chunk-G7DCVJ4F.js → serve-QNPNEZVR.js} +10 -7
- package/dist/bundle/{chunk-F7UUZATI.js → server-GWBVIRLY.js} +42 -15
- package/dist/bundle/server-QJU3HEGM.js +63 -0
- package/dist/bundle/{services-HZFTTZSF.js → services-PFXEWHJG.js} +30 -31
- package/dist/bundle/{sqlite-runtime-DTGPR2T2.js → sqlite-runtime-RGFISYXM.js} +4 -4
- package/dist/bundle/{state-WG3JKJM3.js → state-BUSX5BXF.js} +5 -5
- package/dist/bundle/{store-EV72MT5U.js → store-FIEE5HHG.js} +14 -16
- package/dist/bundle/{store-33VHIMEO.js → store-HFF5KQ44.js} +12 -14
- package/dist/bundle/store-maintenance-command-Z4SPEQUM.js +52 -0
- package/dist/bundle/{chunk-GNI7INK6.js → terminal-DHJ4D3BC.js} +2 -3
- package/dist/bundle/tokens-B6MUZRFM.js +96 -0
- package/dist/commands/context.d.ts +14 -13
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +1 -4
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +1 -2
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/upgrade.d.ts +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +4 -9
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/config.d.ts +182 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -3
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -3
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -234
- package/dist/contract-overrides.js.map +1 -1
- package/dist/first-screen.d.ts +3 -2
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +17 -22
- package/dist/first-screen.js.map +1 -1
- package/dist/grants.d.ts +9 -0
- package/dist/grants.d.ts.map +1 -0
- package/dist/grants.js +30 -0
- package/dist/grants.js.map +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -0
- package/dist/identity.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +2 -4
- package/dist/login.js.map +1 -1
- package/dist/policy-keys.d.ts +12 -0
- package/dist/policy-keys.d.ts.map +1 -0
- package/dist/policy-keys.js +107 -0
- package/dist/policy-keys.js.map +1 -0
- package/dist/policy.d.ts +1 -8
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +2 -105
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts +8 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +251 -222
- package/dist/program.js.map +1 -1
- package/dist/testing/mcp.d.ts +28 -0
- package/dist/testing/mcp.d.ts.map +1 -0
- package/dist/testing/mcp.js +56 -0
- package/dist/testing/mcp.js.map +1 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +0 -9
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -5
- package/scenarios/agent-access.md +4 -2
- package/dist/bundle/all-profiles-CYW6XBBS.js +0 -26
- package/dist/bundle/chunk-234MHU76.js +0 -384
- package/dist/bundle/chunk-BBYD2FA3.js +0 -9
- package/dist/bundle/chunk-DO4PDQY5.js +0 -48
- package/dist/bundle/chunk-FDWYPONW.js +0 -1988
- package/dist/bundle/chunk-FQRJWVEB.js +0 -2
- package/dist/bundle/chunk-GJN5B5JK.js +0 -522
- package/dist/bundle/chunk-NPSZPUK6.js +0 -193
- package/dist/bundle/chunk-PDGECM5D.js +0 -138
- package/dist/bundle/chunk-Q765VPZY.js +0 -421
- package/dist/bundle/chunk-QYUHS6DE.js +0 -1714
- package/dist/bundle/chunk-WQRGA75U.js +0 -256
- package/dist/bundle/chunk-YVPHJHIL.js +0 -15572
- package/dist/bundle/chunk-Z47LOJUS.js +0 -484
- package/dist/bundle/command-contract-I2YB5IXI.js +0 -38
- package/dist/bundle/failure-IXS2ZHA5.js +0 -37
- package/dist/bundle/first-screen-M62KTPZG.js +0 -36
- package/dist/bundle/google-api-BDUWZMRV.js +0 -83
- package/dist/bundle/mcp-F67RATLF.js +0 -502
- package/dist/bundle/mcp-JZSYPQA4.js +0 -96
- package/dist/bundle/serve-VOBAQHAQ.js +0 -20
- package/dist/bundle/server-24PS4M7U.js +0 -70
- package/dist/bundle/server-G6HFZ2CK.js +0 -57
- package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +0 -58
- package/dist/bundle/terminal-TFCTWLOS.js +0 -11
- package/dist/bundle/tokens-XMOGQFI6.js +0 -102
- package/dist/commands/doctor.d.ts +0 -56
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -75
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -6
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -156
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/skill.d.ts +0 -6
- package/dist/commands/skill.d.ts.map +0 -1
- package/dist/commands/skill.js +0 -34
- package/dist/commands/skill.js.map +0 -1
- package/dist/failure.d.ts +0 -88
- package/dist/failure.d.ts.map +0 -1
- package/dist/failure.js +0 -60
- package/dist/failure.js.map +0 -1
- package/dist/mcp.d.ts +0 -175
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -412
- package/dist/mcp.js.map +0 -1
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-HEA3XVAJ.js} +0 -0
|
@@ -3,28 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE,
|
|
5
5
|
throughWrapper
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2Q3S47BC.js";
|
|
7
7
|
import {
|
|
8
|
+
Command,
|
|
9
|
+
InvalidArgumentError,
|
|
10
|
+
Option,
|
|
11
|
+
annotate,
|
|
8
12
|
environmentOf,
|
|
9
13
|
itemOf,
|
|
10
14
|
listOf,
|
|
11
15
|
nextStep,
|
|
12
16
|
renderAnswer,
|
|
17
|
+
sharedCommand,
|
|
13
18
|
snakeKeys
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
Command,
|
|
17
|
-
InvalidArgumentError,
|
|
18
|
-
Option,
|
|
19
|
-
annotate,
|
|
20
|
-
sharedCommand
|
|
21
|
-
} from "./chunk-725OHXKR.js";
|
|
19
|
+
} from "./chunk-4RDXCE45.js";
|
|
22
20
|
import {
|
|
23
21
|
readOnlyLockOf
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZMMOVTUB.js";
|
|
25
23
|
import {
|
|
26
24
|
formatReference
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SBOTSSYV.js";
|
|
28
26
|
import {
|
|
29
27
|
EVENT_QUERY,
|
|
30
28
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -47,7 +45,7 @@ import {
|
|
|
47
45
|
readMeetingProjectEvidence,
|
|
48
46
|
validateMeetingHitSearch,
|
|
49
47
|
validateMeetingPassage
|
|
50
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PKNTBZXN.js";
|
|
51
49
|
import {
|
|
52
50
|
OPERATORS_BY_TYPE,
|
|
53
51
|
dateRange,
|
|
@@ -60,7 +58,7 @@ import {
|
|
|
60
58
|
timezoneOf,
|
|
61
59
|
validateQuery,
|
|
62
60
|
zonedMoment
|
|
63
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LQXLWHKM.js";
|
|
64
62
|
import {
|
|
65
63
|
CliError,
|
|
66
64
|
array,
|
|
@@ -71,12 +69,12 @@ import {
|
|
|
71
69
|
safeParse,
|
|
72
70
|
strictObject,
|
|
73
71
|
string
|
|
74
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-JKEAZBEZ.js";
|
|
75
73
|
import {
|
|
76
74
|
__name
|
|
77
75
|
} from "./chunk-ZVVMGPBJ.js";
|
|
78
76
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
80
78
|
var COMMAND_NEEDS = {
|
|
81
79
|
"account update": ["updateProfile", "change the profile"],
|
|
82
80
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -126,7 +124,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
126
124
|
return group;
|
|
127
125
|
}, "hideNever");
|
|
128
126
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
130
128
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
131
129
|
command.allowUnknownOption();
|
|
132
130
|
const parse = command.parseOptions.bind(command);
|
|
@@ -146,7 +144,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
146
144
|
return command;
|
|
147
145
|
}, "queryWordsAfterOptions");
|
|
148
146
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
150
148
|
var count = /* @__PURE__ */ __name((value) => {
|
|
151
149
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
152
150
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -188,7 +186,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
188
186
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
189
187
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
190
188
|
|
|
191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
192
190
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
193
191
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
194
192
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -211,7 +209,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
211
209
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
212
210
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
213
211
|
|
|
214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
215
213
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
216
214
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
217
215
|
const zone = timezoneOf();
|
|
@@ -297,7 +295,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
297
295
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
298
296
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
299
297
|
|
|
300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
301
299
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
302
300
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
303
301
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -417,7 +415,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
417
415
|
}, "addMeetingCommandsDefinition");
|
|
418
416
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
419
417
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
421
419
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
422
420
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
423
421
|
const query = defineQuery(registry);
|
|
@@ -467,7 +465,8 @@ var pagedList = /* @__PURE__ */ __name((command, { limit, page, all }, { items,
|
|
|
467
465
|
page
|
|
468
466
|
}), "pagedList");
|
|
469
467
|
var askable = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "askable");
|
|
470
|
-
var nativeTerms = /* @__PURE__ */ __name((ast, command) =>
|
|
468
|
+
var nativeTerms = /* @__PURE__ */ __name((ast, command) => new Map([...nativeTermLists(ast, command)].map(([field, [node]]) => [field, node])), "nativeTerms");
|
|
469
|
+
var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = []) => {
|
|
471
470
|
const terms = /* @__PURE__ */ new Map();
|
|
472
471
|
if (!ast)
|
|
473
472
|
return terms;
|
|
@@ -481,13 +480,14 @@ var nativeTerms = /* @__PURE__ */ __name((ast, command) => {
|
|
|
481
480
|
}
|
|
482
481
|
return;
|
|
483
482
|
}
|
|
484
|
-
|
|
483
|
+
const held = terms.get(node.field);
|
|
484
|
+
if (held && !repeatable.includes(node.field))
|
|
485
485
|
queryError("query.unsupported-placement", node.span, `${node.field} only once here`, context);
|
|
486
|
-
terms.set(node.field, node);
|
|
486
|
+
terms.set(node.field, [...held ?? [], node]);
|
|
487
487
|
}, "add");
|
|
488
488
|
add(ast.root);
|
|
489
489
|
return terms;
|
|
490
|
-
}, "
|
|
490
|
+
}, "nativeTermLists");
|
|
491
491
|
var queryTerms = /* @__PURE__ */ __name((words, registry, command) => {
|
|
492
492
|
const terms = /* @__PURE__ */ new Map();
|
|
493
493
|
for (const [field, node] of nativeTerms(listQuery(typedQuery(words), registry, command), command)) {
|
|
@@ -531,7 +531,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
531
531
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
532
532
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
533
533
|
|
|
534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
535
535
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
536
536
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
537
537
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -540,7 +540,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
540
540
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
541
541
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
542
542
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
544
544
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
545
545
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
546
546
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -802,7 +802,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
802
802
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
803
803
|
}), "sessionAnswer");
|
|
804
804
|
|
|
805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
806
806
|
import { createHash } from "node:crypto";
|
|
807
807
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
808
808
|
import { createConnection, createServer } from "node:net";
|
|
@@ -949,8 +949,81 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
949
949
|
socket.end();
|
|
950
950
|
}
|
|
951
951
|
}, "serve");
|
|
952
|
+
var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promise((resolve, reject) => {
|
|
953
|
+
const { streams, stdin, stdout, signal, deadlineMs, writes, holder, listens = false } = options;
|
|
954
|
+
const socket = createConnection(path);
|
|
955
|
+
let connected = false;
|
|
956
|
+
let settled = false;
|
|
957
|
+
let timer;
|
|
958
|
+
const forward = /* @__PURE__ */ __name((chunk) => frame(socket, { stdin: Buffer.from(chunk).toString("base64") }), "forward");
|
|
959
|
+
const ended = /* @__PURE__ */ __name(() => frame(socket, { stdinEnd: true }), "ended");
|
|
960
|
+
const brokenPipe = /* @__PURE__ */ __name((error) => {
|
|
961
|
+
if (error.code === "EPIPE")
|
|
962
|
+
finish({ code: 0 });
|
|
963
|
+
}, "brokenPipe");
|
|
964
|
+
const finish = /* @__PURE__ */ __name((outcome) => {
|
|
965
|
+
if (settled)
|
|
966
|
+
return;
|
|
967
|
+
settled = true;
|
|
968
|
+
if (timer)
|
|
969
|
+
clearTimeout(timer);
|
|
970
|
+
stdout.off("error", brokenPipe);
|
|
971
|
+
signal.removeEventListener("abort", aborted);
|
|
972
|
+
stdin.off("data", forward).off("end", ended);
|
|
973
|
+
stdin.pause();
|
|
974
|
+
socket.destroy();
|
|
975
|
+
if ("code" in outcome)
|
|
976
|
+
resolve(outcome.code);
|
|
977
|
+
else
|
|
978
|
+
reject(outcome.error);
|
|
979
|
+
}, "finish");
|
|
980
|
+
const stopped = /* @__PURE__ */ __name(() => writes ? new CliError("outcome_unknown", `${holder} stopped before the command finished; it may have run \u2014 check before repeating it`, { retryable: false }) : new CliError("provider_unavailable", `${holder} stopped before the command finished`, { retryable: true }), "stopped");
|
|
981
|
+
const aborted = /* @__PURE__ */ __name(() => finish(listens ? { code: 0 } : { error: signal.reason }), "aborted");
|
|
982
|
+
if (signal.aborted)
|
|
983
|
+
return aborted();
|
|
984
|
+
signal.addEventListener("abort", aborted, { once: true });
|
|
985
|
+
stdout.on("error", brokenPipe);
|
|
986
|
+
if (deadlineMs !== void 0)
|
|
987
|
+
timer = setTimeout(() => finish({ error: stopped() }), deadlineMs);
|
|
988
|
+
socket.on("connect", () => {
|
|
989
|
+
connected = true;
|
|
990
|
+
frame(socket, { v: RELAY_PROTOCOL, run: request });
|
|
991
|
+
if (request.stdinTty)
|
|
992
|
+
ended();
|
|
993
|
+
else {
|
|
994
|
+
stdin.on("data", forward).once("end", ended);
|
|
995
|
+
stdin.resume();
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
socket.on("error", (error) => {
|
|
999
|
+
if (connected)
|
|
1000
|
+
return finish({ error: stopped() });
|
|
1001
|
+
finish({
|
|
1002
|
+
error: new CliError("provider_unavailable", `${holder} holds the connection but does not answer its relay (${error.code ?? error.message}) \u2014 restart it`, { retryable: false, sent: false })
|
|
1003
|
+
});
|
|
1004
|
+
});
|
|
1005
|
+
socket.on("close", () => finish({ error: stopped() }));
|
|
1006
|
+
lines2(socket, MAX_SERVE_LINE, (line) => {
|
|
1007
|
+
let message;
|
|
1008
|
+
try {
|
|
1009
|
+
message = JSON.parse(line);
|
|
1010
|
+
} catch {
|
|
1011
|
+
return finish({ error: stopped() });
|
|
1012
|
+
}
|
|
1013
|
+
if (typeof message.data === "string")
|
|
1014
|
+
streams.data(message.data);
|
|
1015
|
+
if (typeof message.diagnostic === "string")
|
|
1016
|
+
streams.diagnostic(message.diagnostic);
|
|
1017
|
+
if (typeof message.progress === "string")
|
|
1018
|
+
streams.progress?.(message.progress);
|
|
1019
|
+
if (typeof message.raw === "string")
|
|
1020
|
+
stdout.write(Buffer.from(message.raw, "base64"));
|
|
1021
|
+
if (typeof message.exit === "number")
|
|
1022
|
+
finish({ code: message.exit });
|
|
1023
|
+
}, () => finish({ error: stopped() }));
|
|
1024
|
+
}), "relayCommand");
|
|
952
1025
|
|
|
953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.0_commander@15.0.0_esbuild@0.28.2_type_438c1bd9283d857a9e801e9b977bafec/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
954
1027
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
955
1028
|
close: /* @__PURE__ */ __name(async () => {
|
|
956
1029
|
}, "close"),
|
|
@@ -1039,6 +1112,8 @@ export {
|
|
|
1039
1112
|
lackedNeed,
|
|
1040
1113
|
refuseLacking,
|
|
1041
1114
|
hideNever,
|
|
1115
|
+
RELAY_PROTOCOL,
|
|
1116
|
+
relayCommand,
|
|
1042
1117
|
lentConnection,
|
|
1043
1118
|
serveRelay,
|
|
1044
1119
|
meetingPassageRequest,
|