@wirecat/zoom-cli 0.74.0 → 0.76.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 +5 -4
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-SDOAABLC.js → all-profiles-AAMFP7IN.js} +22 -32
- package/dist/bundle/answer-policy-ETAELI4A.js +110 -0
- package/dist/bundle/{anthropic-HCVY2PIN.js → anthropic-6KIS53QB.js} +6 -6
- package/dist/bundle/{app-server-V64VS6KN.js → app-server-6QYNNYEU.js} +59 -74
- package/dist/bundle/{bun-EBQHHLKR.js → bun-QVVCH4MJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-PVMXO2JB.js → bun-sqlite-Y2ZFMNQ3.js} +7 -7
- package/dist/bundle/{chunk-3ROL6MBJ.js → chunk-25GMFXPF.js} +949 -772
- package/dist/bundle/{chunk-APLV37JA.js → chunk-2HKUQ7DR.js} +3 -3
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
- package/dist/bundle/{chunk-4RJL32PF.js → chunk-3D5PETD2.js} +26 -9
- package/dist/bundle/{chunk-QLKCKTM4.js → chunk-4ERYXY4Y.js} +1 -1
- package/dist/bundle/{chunk-XFT3YIHU.js → chunk-4JPOELCT.js} +4 -4
- package/dist/bundle/{chunk-TN2YUZBF.js → chunk-55SWKR6Y.js} +189 -160
- package/dist/bundle/{chunk-2PYZTRRC.js → chunk-5EII5RIL.js} +1 -1
- package/dist/bundle/{chunk-OPUGV7VW.js → chunk-5T7TBK5Y.js} +1 -1
- package/dist/bundle/{chunk-6EMOZGSN.js → chunk-64N7MY3I.js} +3 -3
- package/dist/bundle/{chunk-DXZN3DU6.js → chunk-65VRWNDP.js} +4 -4
- package/dist/bundle/{chunk-4EZKR6Q4.js → chunk-6SXCGS3A.js} +7 -7
- package/dist/bundle/{chunk-FL2TKSZY.js → chunk-6VCQ4CTK.js} +1 -1
- package/dist/bundle/{chunk-Y4KWWPIO.js → chunk-7RORMNKP.js} +2 -2
- package/dist/bundle/{chunk-N7KCNMKL.js → chunk-B7ZREOBD.js} +12 -12
- package/dist/bundle/{chunk-QSWR7VDA.js → chunk-CE5Y7PQU.js} +4 -4
- package/dist/bundle/{chunk-LHPYSVGP.js → chunk-CPOFLYPU.js} +33 -29
- package/dist/bundle/{chunk-HNWDEDMU.js → chunk-CS62FET6.js} +21 -21
- package/dist/bundle/{chunk-WYV5IITK.js → chunk-CXHUOPN5.js} +7 -7
- package/dist/bundle/{chunk-IZUOL4Q6.js → chunk-D2TGXSHQ.js} +5 -5
- package/dist/bundle/{chunk-ZYMTS3CI.js → chunk-DQHS336B.js} +6 -6
- package/dist/bundle/{chunk-WRRGO246.js → chunk-EBIK5Q73.js} +1 -1
- package/dist/bundle/{chunk-NKBMLSWK.js → chunk-ELW3LMJZ.js} +1281 -435
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-EPPE6ZTS.js} +1 -1
- package/dist/bundle/{chunk-TKPIDOW5.js → chunk-EZJSAYWZ.js} +21 -21
- package/dist/bundle/{chunk-2PNG76LV.js → chunk-EZXW3ZCR.js} +35 -13
- package/dist/bundle/{chunk-UW3BB2XW.js → chunk-FBVJGJDM.js} +29 -28
- package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-FGRFIXG2.js} +2 -2
- package/dist/bundle/{chunk-3HTJBGNP.js → chunk-FMJ4QSSU.js} +21 -16
- package/dist/bundle/{chunk-7W23N2YW.js → chunk-GB5LI5RM.js} +6 -6
- package/dist/bundle/{chunk-TLNZUPGU.js → chunk-GPIQY4YB.js} +14 -14
- package/dist/bundle/{chunk-OP6HK2QL.js → chunk-GYTAHH5Y.js} +2 -2
- package/dist/bundle/{chunk-LN2LWPN2.js → chunk-GZYICXO4.js} +1 -1
- package/dist/bundle/{chunk-R4J4DLJV.js → chunk-HUHH25AG.js} +833 -625
- package/dist/bundle/{chunk-X2FILY5F.js → chunk-HWYSJ4SL.js} +3 -3
- package/dist/bundle/{chunk-UXSTXFZQ.js → chunk-IUSY4ZJK.js} +6170 -6003
- package/dist/bundle/{chunk-UGLNVUFX.js → chunk-IVFNHIU4.js} +5 -5
- package/dist/bundle/{chunk-BKMC4ETU.js → chunk-IXPBSDKB.js} +4 -4
- package/dist/bundle/{chunk-XGEPAJBY.js → chunk-JADBHKBP.js} +1 -1
- package/dist/bundle/{chunk-KBRIMLVN.js → chunk-JWMOHEDL.js} +22 -12
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-K3K3WKDB.js} +1 -1
- package/dist/bundle/{chunk-LQR4V5EY.js → chunk-KEFDP6NL.js} +12 -12
- package/dist/bundle/{chunk-5KDBLEUF.js → chunk-LEVOI6Z3.js} +12 -12
- package/dist/bundle/{chunk-QAGSAOYS.js → chunk-LGBLYFKI.js} +2 -2
- package/dist/bundle/{chunk-SKDQNYKA.js → chunk-LOEK6IFQ.js} +48 -39
- package/dist/bundle/{chunk-4ELLWJT4.js → chunk-M7WYBGQT.js} +8 -8
- package/dist/bundle/{chunk-DSRG5NRF.js → chunk-MDTEAKA5.js} +5 -5
- package/dist/bundle/{chunk-PKM2UKAZ.js → chunk-NQ356ERO.js} +15 -4
- package/dist/bundle/{chunk-FY2X6U6O.js → chunk-OFODCJ2A.js} +3 -3
- package/dist/bundle/{chunk-6GPBDVQ2.js → chunk-OINDAHXC.js} +4 -4
- package/dist/bundle/{chunk-NV2REPY6.js → chunk-OOYIPK4F.js} +1 -1
- package/dist/bundle/{chunk-5R6EBM5Z.js → chunk-ORM73DZO.js} +2 -2
- package/dist/bundle/{chunk-R35YGFKQ.js → chunk-OWZETMRE.js} +34 -9
- package/dist/bundle/{chunk-PMHMKZEJ.js → chunk-PFLJJQWW.js} +46 -54
- package/dist/bundle/{chunk-UVWNUY3W.js → chunk-QLUU3BV2.js} +2 -2
- package/dist/bundle/{chunk-3TYNBHBK.js → chunk-QY6GE7CL.js} +2 -2
- package/dist/bundle/{chunk-RQJ2RXFO.js → chunk-R47GYLNN.js} +37 -30
- package/dist/bundle/{chunk-LUBG5GKK.js → chunk-RJK5ADMH.js} +18 -19
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
- package/dist/bundle/{chunk-RRW54FK6.js → chunk-T2QVWRJF.js} +13 -13
- package/dist/bundle/{chunk-SPWKGRTO.js → chunk-TK77DCE5.js} +1 -1
- package/dist/bundle/{chunk-7R4UU65O.js → chunk-TYAFL66K.js} +43 -26
- package/dist/bundle/{chunk-HZUUVNWC.js → chunk-UAV74EY4.js} +1 -1
- package/dist/bundle/{chunk-BOGGQOVO.js → chunk-UG2QDGAH.js} +1 -1
- package/dist/bundle/{chunk-YNI57LTZ.js → chunk-UYZDH5LK.js} +1 -1
- package/dist/bundle/{chunk-YFLTHGB3.js → chunk-VABYJQYE.js} +10 -10
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-VCFSUGPE.js} +4 -4
- package/dist/bundle/{chunk-TMCXUWTY.js → chunk-VG63EXRC.js} +2 -2
- package/dist/bundle/{chunk-XCC7R47Z.js → chunk-VJANMYEC.js} +3 -3
- package/dist/bundle/{chunk-KCPRTZBZ.js → chunk-VRA4RVQU.js} +98 -6
- package/dist/bundle/{chunk-HGUYJUNO.js → chunk-WKT5RPSY.js} +8 -8
- package/dist/bundle/{chunk-GPGIU3OG.js → chunk-WNXC42IU.js} +9 -9
- package/dist/bundle/{chunk-FT7X74RT.js → chunk-WZJ7ZYR4.js} +4 -4
- package/dist/bundle/{chunk-I2D4ZZOD.js → chunk-X73YEFQE.js} +21 -18
- package/dist/bundle/{chunk-7NE3LB7A.js → chunk-XC4V6YCS.js} +1 -1
- package/dist/bundle/{chunk-LZ4AVHBS.js → chunk-XHVFX74L.js} +2 -2
- package/dist/bundle/{chunk-AFUHT7F7.js → chunk-XRH2NKW4.js} +6 -6
- package/dist/bundle/{chunk-P53CLAXD.js → chunk-XWQKRKMT.js} +63 -60
- package/dist/bundle/{chunk-RJJ4OYNH.js → chunk-Y2BGABXP.js} +3 -3
- package/dist/bundle/{chunk-KYL5FYOW.js → chunk-Y4WEAWU7.js} +1 -1
- package/dist/bundle/{chunk-F6PUM6ZK.js → chunk-YEBWRWE3.js} +17 -17
- package/dist/bundle/{chunk-SY4MIIWF.js → chunk-YESHGC3M.js} +2 -2
- package/dist/bundle/{chunk-IS6FUZCP.js → chunk-YGKM2ZWF.js} +3 -3
- package/dist/bundle/{chunk-YM6ZATEK.js → chunk-ZETM63M6.js} +6 -6
- package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-ZFYNJERV.js} +6 -6
- package/dist/bundle/{cli-5ALOQCAC.js → cli-FHMLYHUZ.js} +78 -66
- package/dist/bundle/command-contract-HUZ4I23S.js +41 -0
- package/dist/bundle/{command-server-entry-ICOMIJIH.js → command-server-entry-YEZM52R5.js} +31 -31
- package/dist/bundle/config-KVTWN7QZ.js +97 -0
- package/dist/bundle/{decode-7LFOROWF.js → decode-SIYRMJOK.js} +6 -6
- package/dist/bundle/{dispatch-EU67WGME.js → dispatch-SMER3WDX.js} +9 -9
- package/dist/bundle/{dist-KJOOYNCP.js → dist-BSJETSFE.js} +24 -20
- package/dist/bundle/{echarts-EJXBKCJT.js → echarts-UZJ6AREV.js} +2 -2
- package/dist/bundle/{embed-TOZCKRRO.js → embed-A7DSHVI7.js} +7 -7
- package/dist/bundle/{embedder-QKEKUCS5.js → embedder-WQBR4UGS.js} +10 -10
- package/dist/bundle/{failure-CTJLEB2R.js → failure-73UQXQTW.js} +3 -3
- package/dist/bundle/first-run-SY6XSUZ3.js +29 -0
- package/dist/bundle/first-screen-ZDMODGWS.js +39 -0
- package/dist/bundle/{folders-MSBTAPAG.js → folders-BH4SV6SI.js} +5 -5
- package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-SDDUBGH4.js} +1 -1
- package/dist/bundle/{main-RL3GC4OX.js → main-KL4FN5F3.js} +24 -24
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
- package/dist/bundle/{meetings-JCMLE5AO.js → meetings-URPXBHV7.js} +41 -7
- package/dist/bundle/{node-L2PVEW3N.js → node-ELCNUOCE.js} +2 -2
- package/dist/bundle/{node-sqlite-4YW3W4XI.js → node-sqlite-QLSNHZBM.js} +8 -8
- package/dist/bundle/{oauth-NNHWAT6A.js → oauth-LZ64S7Y3.js} +8 -8
- package/dist/bundle/{open-PF2JHJIY.js → open-WB4HUPQT.js} +6 -6
- package/dist/bundle/openai-KN6JE4QU.js +28 -0
- package/dist/bundle/{output-file-VDOCYH2G.js → output-file-AHPQA5LR.js} +6 -6
- package/dist/bundle/{process-MNZTQ2DA.js → process-67DAKAAQ.js} +1 -1
- package/dist/bundle/{program-FOCBZZZS.js → program-CIMACIBE.js} +90 -83
- package/dist/bundle/{prompt-RBSUKMV7.js → prompt-GG53UBDJ.js} +6 -6
- package/dist/bundle/{recognize-RM6TQKK3.js → recognize-CFJ3CAEH.js} +5 -5
- package/dist/bundle/{remote-UKHTU3YR.js → remote-BLEM7C3Q.js} +11 -11
- package/dist/bundle/{rerank-3LBRVESU.js → rerank-ERN6PC66.js} +8 -8
- package/dist/bundle/run-log-S67YPJF6.js +124 -0
- package/dist/bundle/{serve-OOZFTW3W.js → serve-FJPPTJXH.js} +10 -10
- package/dist/bundle/{server-YNQPNIJD.js → server-FLUSDUGM.js} +57 -55
- package/dist/bundle/server-UNJY3TSJ.js +74 -0
- package/dist/bundle/{services-SLEOMN4B.js → services-LXC6DVUQ.js} +43 -41
- package/dist/bundle/{speech-FZZ6QVGU.js → speech-WFEZTKXA.js} +17 -17
- package/dist/bundle/{sqlite-runtime-WUR4PWYB.js → sqlite-runtime-KN33VSP7.js} +7 -7
- package/dist/bundle/{state-ET36L4TY.js → state-TXS4ZHIT.js} +7 -7
- package/dist/bundle/{store-SQB2DOVJ.js → store-MUOXLVL4.js} +22 -22
- package/dist/bundle/{store-DI6OUBXA.js → store-ZUREZYZB.js} +20 -20
- package/dist/bundle/store-connection-NRNEBUPU.js +90 -0
- package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +65 -0
- package/dist/bundle/{streaming-PQEXKTE5.js → streaming-ZSCHRC5S.js} +7 -7
- package/dist/bundle/{tokens-SUHRRQ25.js → tokens-YVDOY4EV.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-GE4SSHOP.js → zoom-app-O6GIMB7Y.js} +8 -8
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +6 -5
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -1
- package/dist/program-bindings.js.map +1 -1
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +2 -2
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +3 -1
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-RHS74QYY.js +0 -110
- package/dist/bundle/chunk-IJONJTST.js +0 -76
- package/dist/bundle/command-contract-WO5QJVLZ.js +0 -41
- package/dist/bundle/config-YQA5TJ7Y.js +0 -97
- package/dist/bundle/first-run-S7CQVGK6.js +0 -29
- package/dist/bundle/first-screen-6GW6FD6S.js +0 -39
- package/dist/bundle/openai-C72ADYMD.js +0 -28
- package/dist/bundle/run-log-UXINNGKA.js +0 -124
- package/dist/bundle/server-DM5ZPFZB.js +0 -75
- package/dist/bundle/store-connection-M6LVRAZ5.js +0 -90
- package/dist/bundle/store-maintenance-command-B66KWG6K.js +0 -65
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
reference,
|
|
20
20
|
string,
|
|
21
21
|
variant
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3D5PETD2.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-K3K3WKDB.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.100.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
|
|
32
32
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
33
33
|
var OPERATORS_BY_TYPE = {
|
|
34
34
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -107,7 +107,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
107
107
|
return [...own, ...relations, ...states];
|
|
108
108
|
}, "queryFieldsOf");
|
|
109
109
|
|
|
110
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
110
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.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
|
|
111
111
|
var QUERY_LIMITS = {
|
|
112
112
|
bytes: 8192,
|
|
113
113
|
depth: 32,
|
|
@@ -151,7 +151,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
151
151
|
__name(queryError, "queryError");
|
|
152
152
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.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
|
|
155
155
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
156
156
|
var reserved = /* @__PURE__ */ new Set([
|
|
157
157
|
"+",
|
|
@@ -460,7 +460,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
460
460
|
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] : []));
|
|
461
461
|
}, "implicitTextTerms");
|
|
462
462
|
|
|
463
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
463
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.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
|
|
464
464
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
465
465
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
466
466
|
try {
|
|
@@ -472,7 +472,7 @@ var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
|
472
472
|
}, "timezoneOf");
|
|
473
473
|
var calendar = /* @__PURE__ */ __name((value, span) => {
|
|
474
474
|
if (!/^\d{4}-\d{2}-\d{2}$/u.test(value))
|
|
475
|
-
queryError("query.invalid-date", span, "use an ISO date
|
|
475
|
+
queryError("query.invalid-date", span, "use an ISO date such as 2026-10-01");
|
|
476
476
|
const year = Number(value.slice(0, 4)), month = Number(value.slice(5, 7)), day = Number(value.slice(8, 10));
|
|
477
477
|
const date = /* @__PURE__ */ new Date(0);
|
|
478
478
|
date.setUTCFullYear(year, month - 1, day);
|
|
@@ -557,6 +557,7 @@ var zonedMoment = /* @__PURE__ */ __name((value, zone, span, { end = false } = {
|
|
|
557
557
|
return time;
|
|
558
558
|
}, "zonedMoment");
|
|
559
559
|
var AGO = /^(\d+)(m|h|d)$/u;
|
|
560
|
+
var MOMENT = /^(\d{4}-\d{2}-\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?$/u;
|
|
560
561
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
561
562
|
var dayOf = /* @__PURE__ */ __name((word, zone, now, span) => {
|
|
562
563
|
const today = new Intl.DateTimeFormat("en-CA", {
|
|
@@ -585,11 +586,15 @@ var dateEndpoint = /* @__PURE__ */ __name((value, zone, side, inclusive, span, n
|
|
|
585
586
|
time: dayBoundary(value, zone, side === "lower" ? !inclusive : inclusive, span),
|
|
586
587
|
inclusive: side === "lower"
|
|
587
588
|
};
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
const
|
|
592
|
-
if (
|
|
589
|
+
const [, day, hour, minute, second = "0", offset] = MOMENT.exec(value) ?? [];
|
|
590
|
+
if (day === void 0)
|
|
591
|
+
queryError("query.invalid-date", span, "use an ISO date, a date and time such as 2026-10-01T09:00 (optional seconds and offset), today, yesterday or 30m/2h/7d ago");
|
|
592
|
+
const moment = value.replace(" ", "T");
|
|
593
|
+
if (offset === void 0)
|
|
594
|
+
return { time: wallTime(moment, zone, span), inclusive };
|
|
595
|
+
calendar(day, span);
|
|
596
|
+
const time = Date.parse(moment);
|
|
597
|
+
if (!Number.isFinite(time) || Number(hour) > 23 || Number(minute) > 59 || Number(second) > 59)
|
|
593
598
|
queryError("query.invalid-date", span);
|
|
594
599
|
return { time, inclusive };
|
|
595
600
|
}, "dateEndpoint");
|
|
@@ -605,7 +610,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
605
610
|
};
|
|
606
611
|
}, "dateRange");
|
|
607
612
|
|
|
608
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
613
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.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
|
|
609
614
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
610
615
|
try {
|
|
611
616
|
run();
|
|
@@ -680,7 +685,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
680
685
|
}, "validateQuery");
|
|
681
686
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
682
687
|
|
|
683
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
688
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.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
|
|
684
689
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
685
690
|
entity: registry.entity,
|
|
686
691
|
backend: registry.backend,
|
|
@@ -751,7 +756,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
751
756
|
details: [...SPAN, ...details]
|
|
752
757
|
})));
|
|
753
758
|
|
|
754
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
759
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.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
|
|
755
760
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
756
761
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
757
762
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -788,7 +793,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
788
793
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
789
794
|
}, "queryDescription");
|
|
790
795
|
|
|
791
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
796
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.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
|
|
792
797
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
793
798
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
794
799
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OINDAHXC.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K3K3WKDB.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,29 +2,29 @@ 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-K3K3WKDB.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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
11
11
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
12
12
|
import { basename, dirname } from "node:path";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
15
15
|
import { randomUUID } from "node:crypto";
|
|
16
16
|
import { lstat as lstat3, mkdir, open as open2, realpath as realpath2, rmdir as rmdir2, unlink as unlink3 } from "node:fs/promises";
|
|
17
17
|
import { hostname as hostname2 } from "node:os";
|
|
18
18
|
import { join as join2 } from "node:path";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
21
21
|
import { lstat as lstat2, readdir, realpath, unlink } from "node:fs/promises";
|
|
22
22
|
import { join } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
25
25
|
import { hostname } from "node:os";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
28
28
|
import { constants } from "node:fs";
|
|
29
29
|
import { lstat, open } from "node:fs/promises";
|
|
30
30
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -90,7 +90,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
90
90
|
}
|
|
91
91
|
}, "syncDirectory");
|
|
92
92
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
93
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
94
94
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
95
95
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
96
96
|
signal?.throwIfAborted();
|
|
@@ -134,7 +134,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
134
134
|
}
|
|
135
135
|
}, "leaseOwnerStatus");
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
138
138
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
139
139
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
140
140
|
options.signal?.throwIfAborted();
|
|
@@ -193,7 +193,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
193
193
|
return { inspect, recover };
|
|
194
194
|
}, "leaseInspection");
|
|
195
195
|
|
|
196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
197
197
|
import { rmdir, unlink as unlink2 } from "node:fs/promises";
|
|
198
198
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
199
199
|
let releasing;
|
|
@@ -218,7 +218,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
218
218
|
};
|
|
219
219
|
}, "ownedNativeLease");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
222
222
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
223
223
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
224
224
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -289,7 +289,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
289
289
|
};
|
|
290
290
|
}, "nativeWriterLeaseStore");
|
|
291
291
|
|
|
292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
293
293
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
294
294
|
const folder = dirname(path);
|
|
295
295
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -304,7 +304,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
304
304
|
});
|
|
305
305
|
}, "acquireLock");
|
|
306
306
|
|
|
307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
308
308
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
309
309
|
import { constants as constants2 } from "node:fs";
|
|
310
310
|
import { link, open as open3, realpath as realpath3, rename, unlink as unlink4 } from "node:fs/promises";
|
|
@@ -342,7 +342,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
342
342
|
}
|
|
343
343
|
}, "writeFileAtomic");
|
|
344
344
|
|
|
345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
346
346
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
347
347
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
348
348
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -371,7 +371,7 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
371
371
|
}
|
|
372
372
|
}, "readBoundedUtf8File");
|
|
373
373
|
|
|
374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
375
375
|
import { basename as basename3 } from "node:path";
|
|
376
376
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
377
377
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -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-K3K3WKDB.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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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.",
|