@wirecat/drive-cli 0.65.0 → 0.66.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 +2871 -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-WCQLIHUG.js} +14 -14
- package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-5RJMB6O7.js} +20 -13
- package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-3RGYXPKG.js} +67 -56
- package/dist/bundle/{bun-P54TGES2.js → bun-L34VEKGG.js} +2 -2
- package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-H6IAXQXI.js} +9 -9
- package/dist/bundle/{chunk-VHQYWFWV.js → chunk-2AF77WMH.js} +1 -1
- package/dist/bundle/{chunk-CWLL63JD.js → chunk-2S3E2HVV.js} +17 -17
- package/dist/bundle/{chunk-I272E6UR.js → chunk-3NYH756U.js} +49 -117
- package/dist/bundle/{chunk-UTNRBOEN.js → chunk-3QFUDXMQ.js} +2 -2
- package/dist/bundle/{chunk-RNHGQ35R.js → chunk-3SDJIMZB.js} +1 -1
- package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-4UHBJSMI.js} +22086 -29123
- package/dist/bundle/{chunk-OWMZUWCM.js → chunk-5HVJK3ZJ.js} +6 -14
- package/dist/bundle/chunk-5K54RZBK.js +70 -0
- package/dist/bundle/{chunk-SIWXYB4E.js → chunk-5PLINHEY.js} +2987 -2717
- package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-5VDVGDOC.js} +1 -1
- package/dist/bundle/{chunk-B2LPCHQN.js → chunk-5XLU4NN6.js} +4 -4
- package/dist/bundle/{chunk-5XSBCMAF.js → chunk-6UJCCOZC.js} +4 -4
- package/dist/bundle/{chunk-7AQGVX5O.js → chunk-6X3KUFRQ.js} +60 -29
- package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-7EP4AU6A.js} +3 -3
- package/dist/bundle/{chunk-GW3LBY3T.js → chunk-7LT2G5BC.js} +146 -133
- package/dist/bundle/{chunk-ZILALBYQ.js → chunk-7ZGJRVBH.js} +7 -5
- package/dist/bundle/{chunk-PLP5527C.js → chunk-ALE67WRR.js} +5 -5
- package/dist/bundle/{chunk-EHU6EYGO.js → chunk-AP4MX247.js} +12 -12
- package/dist/bundle/{chunk-NI5PD5KM.js → chunk-BIJW6AYA.js} +14124 -12049
- package/dist/bundle/{chunk-54V4H6PM.js → chunk-BQXSE645.js} +12 -12
- package/dist/bundle/{chunk-EM7NL5ES.js → chunk-COGWKO2T.js} +3 -3
- package/dist/bundle/{chunk-II4S2DBJ.js → chunk-D4MIMH2N.js} +12 -6
- package/dist/bundle/{chunk-42G2XNPN.js → chunk-D7KOAPG6.js} +2 -2
- package/dist/bundle/{chunk-NQRTKYJB.js → chunk-E2F2XIX6.js} +47 -80
- package/dist/bundle/{chunk-VDZY3L7U.js → chunk-FA2TNA5X.js} +1 -1
- package/dist/bundle/{chunk-A4QNADEX.js → chunk-FHBTQPA3.js} +49 -49
- package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-FKKPVPZR.js} +196 -112
- package/dist/bundle/{chunk-2AFI4KGI.js → chunk-G4TNKBDX.js} +7 -7
- package/dist/bundle/{chunk-ECEP4SO3.js → chunk-GVA3KTCD.js} +10 -10
- package/dist/bundle/{chunk-PHOL2DZM.js → chunk-GY4DAJSK.js} +34 -5
- package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-H7XL6WTW.js} +2 -2
- package/dist/bundle/{chunk-SE352DBY.js → chunk-HHRJPLFO.js} +1 -1
- package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-HPKE2GDP.js} +45 -22
- package/dist/bundle/{chunk-D7WB54P7.js → chunk-HPSHQVJU.js} +540 -456
- package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-HQBLJLYH.js} +7 -7
- package/dist/bundle/{chunk-IMHW7VIV.js → chunk-I5R5CMQR.js} +5 -5
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-IIHZTV6V.js} +1 -1
- package/dist/bundle/{chunk-M7ELUGU6.js → chunk-IRNDYNQX.js} +4 -4
- package/dist/bundle/{chunk-TTP4NOP3.js → chunk-JCHF7LZT.js} +4 -4
- package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-JHMEETXI.js} +2 -2
- package/dist/bundle/{chunk-4EDWLR22.js → chunk-JLCR24UM.js} +1 -1
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-JQXK3M5M.js} +1 -1
- package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-KOY5HUBY.js} +14 -5
- package/dist/bundle/{chunk-IBO23OID.js → chunk-KRG5X5PH.js} +2 -2
- package/dist/bundle/{chunk-FA6JNXCC.js → chunk-LVAPSAHF.js} +8 -8
- package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-M7543RUJ.js} +18 -15
- package/dist/bundle/{chunk-A27UVLPK.js → chunk-MZWXTJ4O.js} +3 -3
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-NK4GVFJH.js} +4 -4
- package/dist/bundle/chunk-NYECVHFH.js +10283 -0
- package/dist/bundle/{chunk-W2XY6C5S.js → chunk-NYZS2LKF.js} +2 -2
- package/dist/bundle/{chunk-4AOINPN2.js → chunk-O53WLYX3.js} +8 -2
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
- package/dist/bundle/{chunk-SS4LKLD7.js → chunk-OT7SQQJK.js} +371 -362
- package/dist/bundle/chunk-OZOQLAWK.js +72 -0
- package/dist/bundle/{chunk-DA63E2UM.js → chunk-P7HQFII6.js} +18 -15
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
- package/dist/bundle/{chunk-F56DRBGY.js → chunk-PKM55ZRR.js} +75 -20
- package/dist/bundle/{chunk-SNLSEYJO.js → chunk-PUMDOCAF.js} +1 -1
- package/dist/bundle/{chunk-LMKPP2JP.js → chunk-QF7VL4C3.js} +1 -1
- package/dist/bundle/{chunk-D6Z43SOG.js → chunk-QJ57PV55.js} +383 -361
- package/dist/bundle/{chunk-EU5MD24W.js → chunk-QSELSDWE.js} +13 -13
- package/dist/bundle/{chunk-TMHF4BCL.js → chunk-SOOU5WO6.js} +2 -2
- package/dist/bundle/{chunk-3ONWN3IA.js → chunk-SZ6JFOL4.js} +137 -45
- package/dist/bundle/{chunk-WVJHZIDH.js → chunk-T3ULDA7C.js} +3 -3
- package/dist/bundle/{chunk-XYE7XZPB.js → chunk-TAHISPDE.js} +5 -5
- package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-TYLEICTX.js} +3 -3
- package/dist/bundle/{chunk-Y5PKRITX.js → chunk-UAKX6DP4.js} +5 -5
- package/dist/bundle/{chunk-VLXWAH5E.js → chunk-UG3GHFGY.js} +4 -4
- package/dist/bundle/{chunk-X7YGGWXI.js → chunk-ULXEW6FT.js} +3 -2
- package/dist/bundle/{chunk-JPPPLKAO.js → chunk-UNTIVT47.js} +1 -2
- package/dist/bundle/{chunk-SEQWBZYH.js → chunk-UQPW42HF.js} +1 -1
- package/dist/bundle/{chunk-JMJIH6JH.js → chunk-V2WXTILT.js} +6 -6
- package/dist/bundle/{chunk-TOVWMURV.js → chunk-VQKNKJYL.js} +22 -7
- package/dist/bundle/{chunk-OFJXHEFT.js → chunk-VR3YKXHL.js} +93 -31
- package/dist/bundle/{chunk-VMAMRFFC.js → chunk-VUUPFDRU.js} +26 -27
- package/dist/bundle/{chunk-FBHSWQU7.js → chunk-WYTYHUFH.js} +319 -102
- package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-XLGDNI4S.js} +1 -1
- package/dist/bundle/{chunk-O6K2E7OA.js → chunk-XVZNFA2P.js} +1507 -1107
- package/dist/bundle/chunk-Y5U4HIZS.js +71 -0
- package/dist/bundle/chunk-YTIPTHEE.js +47 -0
- package/dist/bundle/cli-KW6QQVS5.js +1101 -0
- package/dist/bundle/command-contract-CE543JBN.js +41 -0
- package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-OC4E4DED.js} +31 -30
- package/dist/bundle/{decode-T5ZW57WZ.js → decode-AH5ZLLDK.js} +8 -8
- package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-CDWZZ54Q.js} +9 -9
- package/dist/bundle/drive.js +13 -13
- package/dist/bundle/{echarts-KQ44LPSF.js → echarts-VC7MTXWY.js} +2 -2
- package/dist/bundle/{embed-Q7XST53J.js → embed-EPSQY6QG.js} +9 -9
- package/dist/bundle/{embedder-RWZSBVW2.js → embedder-TK4U4TJR.js} +12 -12
- package/dist/bundle/entry-3VN23M7M.js +25 -0
- package/dist/bundle/{failure-7NP4QPIN.js → failure-WSVZOPFE.js} +4 -4
- package/dist/bundle/first-run-7ZYJ7EB3.js +30 -0
- package/dist/bundle/first-screen-CZDH7QY3.js +39 -0
- package/dist/bundle/google-OBZMWA7J.js +45 -0
- package/dist/bundle/{google-api-P5DRHD7L.js → google-api-AV4X2JH3.js} +68 -63
- package/dist/bundle/grants-WTRLN4ZI.js +111 -0
- package/dist/bundle/{identity-VDV6CHRW.js → identity-CGHHF7AK.js} +8 -6
- package/dist/bundle/{instructions-Q45FVY6H.js → instructions-24PHDBBE.js} +1 -1
- package/dist/bundle/{login-XKN3NI6X.js → login-XHFESAFM.js} +73 -70
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
- package/dist/bundle/{node-MSW565D3.js → node-GIDULTV5.js} +2 -2
- package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-LINBOAWK.js} +10 -10
- package/dist/bundle/oauth-JHUX3KE3.js +22 -0
- package/dist/bundle/{open-P7UQG7XJ.js → open-RYFKPNCJ.js} +8 -8
- package/dist/bundle/{openai-DDHJ57KZ.js → openai-Q7YYUHJF.js} +28 -21
- package/dist/bundle/{process-NMUB5SHK.js → process-VPIZTIJR.js} +1 -1
- package/dist/bundle/{program-PJNWP6JW.js → program-IUXFRBZA.js} +213 -555
- package/dist/bundle/{prompt-VOSMK4C2.js → prompt-LF4KX3XL.js} +8 -8
- package/dist/bundle/{reasons-KDAXOC5S.js → reasons-JPYOU5GV.js} +5 -5
- package/dist/bundle/{recognize-GZIY63HS.js → recognize-KEWTJXFH.js} +7 -7
- package/dist/bundle/{remote-V3YGN7LN.js → remote-HGGLB76S.js} +13 -10
- package/dist/bundle/{rerank-XRU6AVN7.js → rerank-TDUKETFT.js} +10 -10
- package/dist/bundle/{serve-NDOAFA57.js → serve-XFYMKW5W.js} +12 -12
- package/dist/bundle/server-BDEV3CZJ.js +74 -0
- package/dist/bundle/{server-BKGWJYMC.js → server-PXIPSGFP.js} +47 -45
- package/dist/bundle/{services-TYDMFQCA.js → services-2BOCGMJU.js} +44 -34
- package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-R7M5XUMW.js} +9 -9
- package/dist/bundle/{start-2ZLDP2OE.js → start-YRLT4MQZ.js} +7 -7
- package/dist/bundle/{state-6SP27J2K.js → state-NZ7WRJWH.js} +9 -9
- package/dist/bundle/{store-EJN27MXI.js → store-7LCVDO7G.js} +23 -21
- package/dist/bundle/{store-4UUY545Q.js → store-ICDGPSEN.js} +21 -19
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +65 -0
- package/dist/bundle/tokens-FGTBE7VW.js +111 -0
- 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 +11 -8
- package/dist/commands/search.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -2
- 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/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/login.d.ts.map +1 -1
- package/dist/login.js +2 -2
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -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/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/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/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-HVJJWJYQ.js} +0 -0
|
@@ -2,29 +2,29 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
stdinFieldOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UQPW42HF.js";
|
|
6
6
|
import {
|
|
7
7
|
isCommandServer
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2AF77WMH.js";
|
|
9
9
|
import {
|
|
10
10
|
commandPathOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UAKX6DP4.js";
|
|
12
12
|
import {
|
|
13
13
|
commandServerRequest,
|
|
14
14
|
metaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5PLINHEY.js";
|
|
16
16
|
import {
|
|
17
17
|
errorObjectOf,
|
|
18
18
|
renderError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ALE67WRR.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IIHZTV6V.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/command-server.js
|
|
28
28
|
import { createInterface } from "node:readline";
|
|
29
29
|
var COMMAND_SERVER_PROTOCOL = 1;
|
|
30
30
|
var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
reference,
|
|
20
20
|
string,
|
|
21
21
|
variant
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VQKNKJYL.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IIHZTV6V.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
32
32
|
var QUERY_LIMITS = {
|
|
33
33
|
bytes: 8192,
|
|
34
34
|
depth: 32,
|
|
@@ -72,7 +72,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
72
72
|
__name(queryError, "queryError");
|
|
73
73
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
|
|
76
76
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
77
77
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
78
78
|
try {
|
|
@@ -217,7 +217,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
217
217
|
};
|
|
218
218
|
}, "dateRange");
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
221
221
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
222
222
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
223
223
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -272,7 +272,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
272
272
|
}, "matches");
|
|
273
273
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
274
274
|
|
|
275
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
275
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
276
276
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
277
277
|
var OPERATORS_BY_TYPE = {
|
|
278
278
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -351,7 +351,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
351
351
|
return [...own, ...relations, ...states];
|
|
352
352
|
}, "queryFieldsOf");
|
|
353
353
|
|
|
354
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
354
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
355
355
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
356
356
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
357
357
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -388,7 +388,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
388
388
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
389
389
|
}, "queryDescription");
|
|
390
390
|
|
|
391
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
391
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
392
392
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
393
393
|
var reserved = /* @__PURE__ */ new Set([
|
|
394
394
|
"+",
|
|
@@ -697,7 +697,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
697
697
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
698
698
|
}, "implicitTextTerms");
|
|
699
699
|
|
|
700
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
700
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
701
701
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
702
702
|
try {
|
|
703
703
|
run();
|
|
@@ -772,7 +772,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
772
772
|
}, "validateQuery");
|
|
773
773
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
774
774
|
|
|
775
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
775
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
776
776
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
777
777
|
entity: registry.entity,
|
|
778
778
|
backend: registry.backend,
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
isCliError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IIHZTV6V.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
|
|
12
12
|
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
13
13
|
var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
|
|
14
14
|
var hostProblems = /* @__PURE__ */ __name((hosts) => [
|
|
@@ -20,7 +20,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
|
|
|
20
20
|
return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
|
|
21
21
|
}, "hostCovered");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
|
|
24
24
|
var HOST_FETCH_TIMEOUT_MS = 3e4;
|
|
25
25
|
var REDIRECTS = 5;
|
|
26
26
|
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -108,7 +108,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
108
108
|
};
|
|
109
109
|
}, "hostFetch");
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
111
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
112
112
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
113
113
|
if (!header)
|
|
114
114
|
return void 0;
|
|
@@ -132,7 +132,36 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
132
132
|
}, "parseRateLimitReset");
|
|
133
133
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
134
134
|
|
|
135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
136
|
+
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
137
|
+
try {
|
|
138
|
+
const url = new URL(value);
|
|
139
|
+
return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password && !url.search && !url.hash;
|
|
140
|
+
} catch {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
}, "endpoint");
|
|
144
|
+
var loopback = /* @__PURE__ */ __name((hostname) => hostname === "localhost" || hostname === "[::1]" || /^127(\.\d{1,3}){3}$/.test(hostname), "loopback");
|
|
145
|
+
var onThisComputer = /* @__PURE__ */ __name((value) => {
|
|
146
|
+
try {
|
|
147
|
+
return loopback(new URL(value).hostname);
|
|
148
|
+
} catch {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
}, "onThisComputer");
|
|
152
|
+
var modelAddressAllowed = /* @__PURE__ */ __name((value) => endpoint(value) && (new URL(value).protocol === "https:" || onThisComputer(value)), "modelAddressAllowed");
|
|
153
|
+
var PLAIN_HTTP_REFUSED = "this address is not allowed: use https, or http only on this computer";
|
|
154
|
+
var endpointFetch = /* @__PURE__ */ __name((address, timeoutMs) => {
|
|
155
|
+
const { hostname } = new URL(address);
|
|
156
|
+
return hostname === "[::1]" ? fetch : hostFetch({ hosts: [hostname], timeoutMs });
|
|
157
|
+
}, "endpointFetch");
|
|
158
|
+
|
|
135
159
|
export {
|
|
136
160
|
hostFetch,
|
|
137
|
-
providerWaitMs
|
|
161
|
+
providerWaitMs,
|
|
162
|
+
endpoint,
|
|
163
|
+
onThisComputer,
|
|
164
|
+
modelAddressAllowed,
|
|
165
|
+
PLAIN_HTTP_REFUSED,
|
|
166
|
+
endpointFetch
|
|
138
167
|
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IIHZTV6V.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -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.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE,
|
|
5
5
|
throughWrapper
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XVZNFA2P.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
renderAnswer,
|
|
18
18
|
sharedCommand,
|
|
19
19
|
snakeKeys
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5PLINHEY.js";
|
|
21
21
|
import {
|
|
22
22
|
readOnlyLockOf
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y5U4HIZS.js";
|
|
24
24
|
import {
|
|
25
25
|
EVENT_QUERY,
|
|
26
26
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -44,38 +44,43 @@ import {
|
|
|
44
44
|
readMeetingProjectEvidence,
|
|
45
45
|
validateMeetingHitSearch,
|
|
46
46
|
validateMeetingPassage
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QJ57PV55.js";
|
|
48
48
|
import {
|
|
49
49
|
OPERATORS_BY_TYPE,
|
|
50
|
+
QUERY_LIMITS,
|
|
50
51
|
dateRange,
|
|
51
52
|
defineQuery,
|
|
52
53
|
fieldsHelp,
|
|
53
54
|
fieldsNamed,
|
|
54
55
|
parseLucene,
|
|
56
|
+
queryDescription,
|
|
55
57
|
queryError,
|
|
56
58
|
queryFieldsOf,
|
|
57
59
|
timezoneOf,
|
|
58
60
|
validateQuery,
|
|
59
61
|
zonedMoment
|
|
60
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-GVA3KTCD.js";
|
|
61
63
|
import {
|
|
62
64
|
array,
|
|
63
65
|
boolean,
|
|
64
66
|
check,
|
|
67
|
+
description,
|
|
68
|
+
maxLength,
|
|
69
|
+
optional,
|
|
65
70
|
pipe,
|
|
66
71
|
record,
|
|
67
72
|
safeParse,
|
|
68
73
|
strictObject,
|
|
69
74
|
string
|
|
70
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-VQKNKJYL.js";
|
|
71
76
|
import {
|
|
72
77
|
CliError
|
|
73
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-IIHZTV6V.js";
|
|
74
79
|
import {
|
|
75
80
|
__name
|
|
76
81
|
} from "./chunk-ZVVMGPBJ.js";
|
|
77
82
|
|
|
78
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
83
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
79
84
|
var COMMAND_NEEDS = {
|
|
80
85
|
"account update": ["updateProfile", "change the profile"],
|
|
81
86
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -125,7 +130,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
125
130
|
return group;
|
|
126
131
|
}, "hideNever");
|
|
127
132
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
129
134
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
130
135
|
command.allowUnknownOption();
|
|
131
136
|
const parse = command.parseOptions.bind(command);
|
|
@@ -145,7 +150,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
145
150
|
return command;
|
|
146
151
|
}, "queryWordsAfterOptions");
|
|
147
152
|
|
|
148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
149
154
|
var count = /* @__PURE__ */ __name((value) => {
|
|
150
155
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
151
156
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -187,7 +192,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
187
192
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
188
193
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
189
194
|
|
|
190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
191
196
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
192
197
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
193
198
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -210,7 +215,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
210
215
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
211
216
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
212
217
|
|
|
213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
214
219
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
215
220
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
216
221
|
const zone = timezoneOf();
|
|
@@ -296,7 +301,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
296
301
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
297
302
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
298
303
|
|
|
299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
300
305
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
301
306
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
302
307
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -335,7 +340,12 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
335
340
|
annotate(list, { effects: LOCAL_READ, query: defineQuery(MEETING_QUERY), output: { entity: "meeting" } });
|
|
336
341
|
output(list).option("--limit <n>", "meetings per page", integer3, 100).option("--page <n>", "page number", integer3, 1).action(async (words, opts, command) => {
|
|
337
342
|
const query = meetingsQuery(words.join(" "));
|
|
338
|
-
print(await meetingsList(deps.store, {
|
|
343
|
+
print(await meetingsList(deps.store, {
|
|
344
|
+
accountId: deps.accountId,
|
|
345
|
+
limit: opts.limit,
|
|
346
|
+
offset: (opts.page - 1) * opts.limit,
|
|
347
|
+
...query ? { query } : {}
|
|
348
|
+
}), command);
|
|
339
349
|
});
|
|
340
350
|
output(annotate(group.command("show"), { effects: LOCAL_READ, output: { entity: "meeting_details" } }).description("show a stored meeting").argument("<meeting>", "stored meeting id", integer3).addHelpText("after", SAVE_HELP)).action(async (id, _opts, command) => {
|
|
341
351
|
print(await meetingDetailsAnswer(deps.store, id, deps.accountId), command);
|
|
@@ -440,7 +450,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
440
450
|
}, "addMeetingCommandsDefinition");
|
|
441
451
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
442
452
|
|
|
443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
444
454
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
445
455
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
446
456
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -458,6 +468,12 @@ var unfilteredQuery = /* @__PURE__ */ __name((entity, schema) => ({
|
|
|
458
468
|
backend: "native",
|
|
459
469
|
fields: queryFieldsOf(schema, {})
|
|
460
470
|
}), "unfilteredQuery");
|
|
471
|
+
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
472
|
+
const words = [];
|
|
473
|
+
for (let at = command; at?.parent; at = at.parent)
|
|
474
|
+
words.unshift(at.name());
|
|
475
|
+
return words.join(" ");
|
|
476
|
+
}, "commandPath");
|
|
461
477
|
var withTomorrow = /* @__PURE__ */ __name((query, registry, zone = timezoneOf(), now = Date.now()) => {
|
|
462
478
|
const times = new Set(registry.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
463
479
|
const date2 = /* @__PURE__ */ new Date(`${new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(now)}T00:00:00Z`);
|
|
@@ -469,7 +485,8 @@ var withTomorrow = /* @__PURE__ */ __name((query, registry, zone = timezoneOf(),
|
|
|
469
485
|
}, "withTomorrow");
|
|
470
486
|
var listQuery = /* @__PURE__ */ __name((text, registry, command, { defaultField = "none" } = {}) => {
|
|
471
487
|
const context = { command, guide: LIST_QUERY_GUIDE };
|
|
472
|
-
const
|
|
488
|
+
const signed = text.replace(/(^|[\s(])([\p{L}_][\p{L}\p{N}_.]*:)\+([^\s()"]+)/gu, '$1$2"+$3"');
|
|
489
|
+
const parsed = signed.trim() === "" ? void 0 : parseLucene(signed, { defaultField, ...context });
|
|
473
490
|
const typed = parsed && withTomorrow(parsed, registry);
|
|
474
491
|
if (typed)
|
|
475
492
|
validateQuery(typed, registry, context);
|
|
@@ -493,14 +510,16 @@ var listQuery = /* @__PURE__ */ __name((text, registry, command, { defaultField
|
|
|
493
510
|
var typedQuery = /* @__PURE__ */ __name((words) => typeof words === "string" ? words : (words ?? []).join(" "), "typedQuery");
|
|
494
511
|
var EVERY = Number.MAX_SAFE_INTEGER - 1;
|
|
495
512
|
var pageOf = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { limit: EVERY, offset: 0 } : { limit, offset: (page - 1) * limit }, "pageOf");
|
|
496
|
-
var pagedList = /* @__PURE__ */ __name((command, { limit, page, all }, { items,
|
|
513
|
+
var pagedList = /* @__PURE__ */ __name((command, { limit, page, all }, { items, hasMore, ...rest }) => listOf(command, {
|
|
497
514
|
...rest,
|
|
498
515
|
items,
|
|
499
516
|
limit: all ? Math.max(1, items.length) : limit,
|
|
500
|
-
has_more: all ? false :
|
|
517
|
+
has_more: all ? false : hasMore,
|
|
501
518
|
page
|
|
502
519
|
}), "pagedList");
|
|
503
520
|
var askable = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "askable");
|
|
521
|
+
var queryArgument = /* @__PURE__ */ __name((registry) => optional(pipe(string(), maxLength(QUERY_LIMITS.bytes), description(queryDescription(registry)))), "queryArgument");
|
|
522
|
+
var negatableOf = /* @__PURE__ */ __name((registry) => askable(registry).filter((field) => field.negatable).map((field) => field.name), "negatableOf");
|
|
504
523
|
var nativeTerms = /* @__PURE__ */ __name((ast, command) => new Map([...nativeTermLists(ast, command)].map(([field, [node]]) => [field, node])), "nativeTerms");
|
|
505
524
|
var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = [], negatable = []) => {
|
|
506
525
|
const terms = /* @__PURE__ */ new Map();
|
|
@@ -573,7 +592,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
573
592
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
574
593
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
575
594
|
|
|
576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
577
596
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
578
597
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
579
598
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -582,7 +601,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
582
601
|
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");
|
|
583
602
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
584
603
|
|
|
585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
586
605
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
587
606
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
588
607
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -844,7 +863,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
844
863
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
845
864
|
}), "sessionAnswer");
|
|
846
865
|
|
|
847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
848
867
|
import { createHash } from "node:crypto";
|
|
849
868
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
850
869
|
import { createConnection, createServer } from "node:net";
|
|
@@ -1065,7 +1084,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
1065
1084
|
}, () => finish({ error: stopped() }));
|
|
1066
1085
|
}), "relayCommand");
|
|
1067
1086
|
|
|
1068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
1069
1088
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
1070
1089
|
close: /* @__PURE__ */ __name(async () => {
|
|
1071
1090
|
}, "close"),
|
|
@@ -1151,6 +1170,7 @@ var serveRelay = /* @__PURE__ */ __name((command, messenger) => {
|
|
|
1151
1170
|
}, "serveRelay");
|
|
1152
1171
|
|
|
1153
1172
|
export {
|
|
1173
|
+
COMMAND_NEEDS,
|
|
1154
1174
|
lackedNeed,
|
|
1155
1175
|
refuseLacking,
|
|
1156
1176
|
hideNever,
|
|
@@ -1169,10 +1189,13 @@ export {
|
|
|
1169
1189
|
QUERY_ARGUMENT,
|
|
1170
1190
|
withQuery,
|
|
1171
1191
|
unfilteredQuery,
|
|
1192
|
+
commandPath,
|
|
1172
1193
|
listQuery,
|
|
1173
1194
|
typedQuery,
|
|
1174
1195
|
pageOf,
|
|
1175
1196
|
pagedList,
|
|
1197
|
+
queryArgument,
|
|
1198
|
+
negatableOf,
|
|
1176
1199
|
nativeTerms,
|
|
1177
1200
|
nativeTermLists,
|
|
1178
1201
|
queryTerms,
|