@wirecat/zoom-cli 0.64.0 → 0.65.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/answer-entities.d.ts +13 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +5 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answers.d.ts +8 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +2 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/bin/zm.js +6 -2
- package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-SKMLZJSY.js} +8 -8
- package/dist/bundle/answer-policy-BHDNSJWX.js +96 -0
- package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-TVHK7CY2.js} +4 -4
- package/dist/bundle/{app-server-AYUW45ND.js → app-server-44ASFH47.js} +53 -52
- package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
- package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-NS32GMM4.js} +3 -3
- package/dist/bundle/{chunk-CZKV4USJ.js → chunk-24F7JBLY.js} +59 -4
- package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-25IDWPEN.js} +148 -97
- package/dist/bundle/{chunk-BMYZWBAX.js → chunk-266WOOB3.js} +4 -4
- package/dist/bundle/{chunk-23LOMA2I.js → chunk-2H5SXK7K.js} +45 -25
- package/dist/bundle/{chunk-24WCZURP.js → chunk-37PHGASE.js} +2 -2
- package/dist/bundle/{chunk-WFIJOFS5.js → chunk-3CZIWGZ6.js} +1 -1
- package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5NGOP4EZ.js} +125 -35
- package/dist/bundle/{chunk-BWPKSUXW.js → chunk-6CS7ETBK.js} +4496 -386
- package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
- package/dist/bundle/{chunk-RK3JBC4U.js → chunk-A6OA2EH2.js} +2 -2
- package/dist/bundle/{chunk-QK54GOGE.js → chunk-AMMD6YCJ.js} +7 -9
- package/dist/bundle/chunk-BLT3LR3U.js +34 -0
- package/dist/bundle/{chunk-X6M5DK66.js → chunk-BNXH73OU.js} +10 -10
- package/dist/bundle/{chunk-RJLNVHIU.js → chunk-BWRBALXG.js} +3 -3
- package/dist/bundle/{chunk-UFI5SX3F.js → chunk-C6BG57FA.js} +11 -11
- package/dist/bundle/{chunk-IIGXCYEL.js → chunk-CNEE6TPE.js} +13 -13
- package/dist/bundle/{chunk-TYKZCJD7.js → chunk-CVCRQW3A.js} +35 -35
- package/dist/bundle/{chunk-UCPL55YP.js → chunk-DNCKH7CO.js} +17 -17
- package/dist/bundle/{chunk-L4JGVSBN.js → chunk-DYJXAY7Q.js} +26 -25
- package/dist/bundle/{chunk-UABUBDYB.js → chunk-EA63UGWE.js} +2 -2
- package/dist/bundle/{chunk-UNO4G5NX.js → chunk-ERPRAYA7.js} +5 -5
- package/dist/bundle/{chunk-CZFV6XTW.js → chunk-FYJL276J.js} +3 -3
- package/dist/bundle/{chunk-YNYMWXXH.js → chunk-FYM27FCG.js} +32 -9
- package/dist/bundle/{chunk-H65B6A7Y.js → chunk-GBZF4IIP.js} +8 -8
- package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GEX4V5TM.js} +4 -4
- package/dist/bundle/{chunk-5BCNJB2A.js → chunk-GMTXCFI7.js} +668 -504
- package/dist/bundle/{chunk-JM43EKTY.js → chunk-GXCNCMUY.js} +1896 -651
- package/dist/bundle/{chunk-FSYO3PUW.js → chunk-H7762LDA.js} +2 -2
- package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-IPTI3Y2E.js} +6 -41
- package/dist/bundle/{chunk-7NDSBTKR.js → chunk-JF7ZEUXU.js} +34 -26
- package/dist/bundle/{chunk-5YLR24D5.js → chunk-K6ATTKQR.js} +13 -6
- package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-KYLS5QGC.js} +2 -2
- package/dist/bundle/{chunk-OPP5CWAX.js → chunk-KZE3G4ZT.js} +34 -33
- package/dist/bundle/{chunk-I5QX2HAT.js → chunk-LOL6JYYN.js} +211 -106
- package/dist/bundle/{chunk-COTC7HF3.js → chunk-LPUFOWL3.js} +1 -1
- package/dist/bundle/{chunk-AF4HONAZ.js → chunk-M6IDHQ7N.js} +6402 -4395
- package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-MH7AWCB4.js} +178 -49
- package/dist/bundle/{chunk-ZW4N73FO.js → chunk-MIB5X2XW.js} +3 -3
- package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-MPKKIL3U.js} +15 -12
- package/dist/bundle/{chunk-JMSKDW5G.js → chunk-MRWIXUYT.js} +2 -2
- package/dist/bundle/{chunk-HIGFBTEI.js → chunk-MZ6U6HNJ.js} +2 -2
- package/dist/bundle/{chunk-7SWNZ44U.js → chunk-NJSIHMAE.js} +2 -2
- package/dist/bundle/{chunk-HQHYPKSU.js → chunk-NNNEVWFF.js} +44 -31
- package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
- package/dist/bundle/{chunk-7D56BQZL.js → chunk-OXUHTKO2.js} +2 -2
- package/dist/bundle/{chunk-IIP4J3PD.js → chunk-PV3UDPCI.js} +82 -6
- package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-QI7BZS2G.js} +8 -13
- package/dist/bundle/{chunk-SMT6SFBK.js → chunk-QLCYAQ66.js} +2 -2
- package/dist/bundle/{chunk-PBJY5VR6.js → chunk-R5BAF5XE.js} +1 -1
- package/dist/bundle/{chunk-7VJIKJNW.js → chunk-RZLNHNSS.js} +8 -8
- package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
- package/dist/bundle/{chunk-AAC6VNSL.js → chunk-SQWRZZOQ.js} +3 -3
- package/dist/bundle/{chunk-63MRRNDL.js → chunk-T3KICUOK.js} +6 -6
- package/dist/bundle/{chunk-7EOW47PV.js → chunk-TC7PD3LH.js} +4 -4
- package/dist/bundle/{chunk-XZSQLVED.js → chunk-TUIEDVI6.js} +2 -2
- package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
- package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
- package/dist/bundle/{chunk-EQYPTGCT.js → chunk-U5ASRBBF.js} +6 -4
- package/dist/bundle/{chunk-3IMEAZIM.js → chunk-UKU6MYUI.js} +4 -4
- package/dist/bundle/{chunk-J25UNZIL.js → chunk-UMHJZWZU.js} +9 -9
- package/dist/bundle/{chunk-HQHUPTZR.js → chunk-UPJXN2CO.js} +1308 -635
- package/dist/bundle/{chunk-OWXMQVVN.js → chunk-VH4F2EK4.js} +1 -1
- package/dist/bundle/{chunk-TJODNJKE.js → chunk-VJTGYBJJ.js} +18 -13
- package/dist/bundle/{chunk-54UEJGYB.js → chunk-VW2SW7ME.js} +3 -3
- package/dist/bundle/{chunk-2UONVSJQ.js → chunk-WLSF3GCC.js} +2 -2
- package/dist/bundle/{chunk-H3DMYF3W.js → chunk-XJQB47IL.js} +4 -4
- package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
- package/dist/bundle/{chunk-3AAO5N4L.js → chunk-Z5424QL6.js} +2 -2
- package/dist/bundle/{chunk-K6OSD6DG.js → chunk-ZFNM3FNI.js} +75 -33
- package/dist/bundle/{chunk-SJIBJQJN.js → chunk-ZH743WNV.js} +40 -12
- package/dist/bundle/{chunk-JJZAGKUK.js → chunk-ZOGYTDHG.js} +2 -2
- package/dist/bundle/{chunk-6NBQJJT6.js → chunk-ZREFYKUB.js} +7 -7
- package/dist/bundle/{chunk-KJCCT3QY.js → chunk-ZXGRK44F.js} +14 -13
- package/dist/bundle/{cli-Y2ZO3D5U.js → cli-FDO6CP6R.js} +105 -59
- package/dist/bundle/command-contract-O4FDXM4U.js +37 -0
- package/dist/bundle/config-UBHKZG3J.js +78 -0
- package/dist/bundle/{decode-GO6GAYH2.js → decode-7SZI3TGZ.js} +3 -3
- package/dist/bundle/{dist-MIJKAGXW.js → dist-5GWUXW27.js} +18 -14
- package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
- package/dist/bundle/{embed-2DOSN4DV.js → embed-24YSXHLP.js} +4 -4
- package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-MEXN2TFB.js} +7 -7
- package/dist/bundle/{first-run-S75VKIT3.js → first-run-OCVEJH63.js} +8 -8
- package/dist/bundle/first-screen-KJIU25MH.js +35 -0
- package/dist/bundle/{folders-RSWEBHDZ.js → folders-DBAAMU26.js} +2 -2
- package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
- package/dist/bundle/{main-R77BPRRS.js → main-EIUCXXDW.js} +17 -16
- package/dist/bundle/{mcp-YJEQYYTR.js → mcp-FUSDPAOL.js} +2 -2
- package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-JDTRGXZJ.js} +16 -6
- package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
- package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-O4BAODFR.js} +9 -3
- package/dist/bundle/{oauth-M6YL4QXP.js → oauth-3YLHXGUW.js} +5 -5
- package/dist/bundle/{open-2VITLJAN.js → open-QGRMSNM2.js} +3 -2
- package/dist/bundle/{openai-OG6B3JCU.js → openai-7PSCSTH7.js} +9 -9
- package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-J26UQKRA.js} +3 -3
- package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
- package/dist/bundle/{program-5R5MRXUM.js → program-47DT7SHE.js} +75 -75
- package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-IUD7HCDC.js} +3 -3
- package/dist/bundle/{recognize-DJKTJOYU.js → recognize-DMJJHHXF.js} +2 -2
- package/dist/bundle/{remote-S3DTNYRP.js → remote-5WFSOVVB.js} +5 -5
- package/dist/bundle/{rerank-FMCDP6VF.js → rerank-UKQ65ECH.js} +5 -5
- package/dist/bundle/{run-log-T4MV2VEH.js → run-log-UGYL6NW2.js} +53 -53
- package/dist/bundle/{serve-5SGFJFMC.js → serve-WAOSED3I.js} +9 -8
- package/dist/bundle/server-HAXN772R.js +66 -0
- package/dist/bundle/{server-PCMCY7WK.js → server-NWZFNXC5.js} +42 -42
- package/dist/bundle/{services-SKRQ2POT.js → services-VPANRE72.js} +101 -28
- package/dist/bundle/{speech-FSDICIKO.js → speech-O6UNUDRW.js} +11 -11
- package/dist/bundle/{state-KPUSPWO6.js → state-BNE7I65A.js} +4 -4
- package/dist/bundle/{store-7MP2ZGQ7.js → store-4IIVSCJ4.js} +37 -18
- package/dist/bundle/{store-W7LFPKG2.js → store-QQH4FJXJ.js} +14 -13
- package/dist/bundle/store-connection-PPEQK2K3.js +76 -0
- package/dist/bundle/store-maintenance-command-JZXCT6NY.js +56 -0
- package/dist/bundle/{streaming-Q44ESD3E.js → streaming-S4EZB6P2.js} +4 -4
- package/dist/bundle/{tokens-TAFCHANI.js → tokens-VCXIH7WZ.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +1 -0
- package/dist/local-transcription.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-HOA43GNA.js +0 -96
- package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
- package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
- package/dist/bundle/config-N2UHDKGG.js +0 -78
- package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
- package/dist/bundle/server-EYGZLKKQ.js +0 -66
- package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
- package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
reference,
|
|
22
22
|
string,
|
|
23
23
|
variant
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
30
30
|
var QUERY_LIMITS = {
|
|
31
31
|
bytes: 8192,
|
|
32
32
|
depth: 32,
|
|
@@ -70,7 +70,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
70
70
|
__name(queryError, "queryError");
|
|
71
71
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
74
74
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
75
75
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
76
76
|
try {
|
|
@@ -215,7 +215,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
215
215
|
};
|
|
216
216
|
}, "dateRange");
|
|
217
217
|
|
|
218
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
218
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
219
219
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
220
220
|
var OPERATORS_BY_TYPE = {
|
|
221
221
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -265,11 +265,13 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
265
265
|
const excluded = new Set(annotations.exclude ?? []);
|
|
266
266
|
const words = new Set(annotations.text ?? []);
|
|
267
267
|
const native = new Set(annotations.native ?? []);
|
|
268
|
+
const negatable = new Set(annotations.negatable ?? []);
|
|
268
269
|
const finish = /* @__PURE__ */ __name((field) => ({
|
|
269
270
|
...field,
|
|
270
271
|
operators: OPERATORS_BY_TYPE[field.type],
|
|
271
272
|
example: annotations.examples?.[field.name] ?? field.example ?? exampleOf(field.name, field.type, field.values),
|
|
272
273
|
...native.has(field.name) ? { native: true } : {},
|
|
274
|
+
...negatable.has(field.name) ? { negatable: true } : {},
|
|
273
275
|
...annotations.validate?.[field.name] ? { validate: annotations.validate[field.name] } : {}
|
|
274
276
|
}), "finish");
|
|
275
277
|
const own = Object.entries(entries).flatMap(([name, entry]) => {
|
|
@@ -292,23 +294,49 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
292
294
|
return [...own, ...relations, ...states];
|
|
293
295
|
}, "queryFieldsOf");
|
|
294
296
|
|
|
295
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
297
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
296
298
|
var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
|
|
299
|
+
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
300
|
+
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
301
|
+
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
302
|
+
var syntaxOf = /* @__PURE__ */ __name((shown, backend) => {
|
|
303
|
+
if (backend !== "native")
|
|
304
|
+
return QUERY_SYNTAX;
|
|
305
|
+
return [
|
|
306
|
+
"field:value",
|
|
307
|
+
...has(shown, "phrase") ? ['"a phrase"'] : [],
|
|
308
|
+
...has(shown, "wildcard") ? ["word*"] : [],
|
|
309
|
+
"terms joined by AND",
|
|
310
|
+
...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
|
|
311
|
+
].join(" \xB7 ");
|
|
312
|
+
}, "syntaxOf");
|
|
297
313
|
var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
|
|
298
314
|
var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
299
|
-
const shown = registry
|
|
315
|
+
const shown = shownOf(registry);
|
|
316
|
+
const negatable = leftOut(shown);
|
|
300
317
|
const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
|
|
301
318
|
const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
|
|
302
319
|
return [
|
|
303
320
|
"Fields:",
|
|
304
321
|
...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
|
|
305
322
|
...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
|
|
306
|
-
`
|
|
323
|
+
...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
|
|
324
|
+
`Syntax: ${syntaxOf(shown, registry.backend)}`,
|
|
307
325
|
...guide ? [`Guide: ${guide}`] : []
|
|
308
326
|
].join("\n");
|
|
309
327
|
}, "fieldsHelp");
|
|
328
|
+
var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
329
|
+
const shown = shownOf(registry);
|
|
330
|
+
if (shown.length === 0)
|
|
331
|
+
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
332
|
+
const negatable = leftOut(shown);
|
|
333
|
+
const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : "field:value terms that narrow the list (Lucene: AND OR NOT, -field:value, [a TO b], > <)";
|
|
334
|
+
const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
335
|
+
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
336
|
+
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
337
|
+
}, "queryDescription");
|
|
310
338
|
|
|
311
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
339
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
312
340
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
313
341
|
var reserved = /* @__PURE__ */ new Set([
|
|
314
342
|
"+",
|
|
@@ -613,7 +641,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
613
641
|
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] : []));
|
|
614
642
|
}, "implicitTextTerms");
|
|
615
643
|
|
|
616
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
644
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
617
645
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
618
646
|
try {
|
|
619
647
|
run();
|
|
@@ -688,7 +716,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
688
716
|
}, "validateQuery");
|
|
689
717
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
690
718
|
|
|
691
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
719
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
692
720
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
693
721
|
entity: registry.entity,
|
|
694
722
|
backend: registry.backend,
|
|
@@ -759,7 +787,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
759
787
|
details: [...SPAN, ...details]
|
|
760
788
|
})));
|
|
761
789
|
|
|
762
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
790
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.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
|
|
763
791
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
764
792
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
765
793
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -823,7 +851,6 @@ export {
|
|
|
823
851
|
dayBoundary,
|
|
824
852
|
wallTime,
|
|
825
853
|
zonedMoment,
|
|
826
|
-
dateEndpoint,
|
|
827
854
|
dateRange,
|
|
828
855
|
evaluate,
|
|
829
856
|
FIELD_TYPES,
|
|
@@ -831,6 +858,7 @@ export {
|
|
|
831
858
|
QUERY_BACKENDS,
|
|
832
859
|
queryFieldsOf,
|
|
833
860
|
fieldsHelp,
|
|
861
|
+
queryDescription,
|
|
834
862
|
parseLucene,
|
|
835
863
|
implicitTextTerms,
|
|
836
864
|
validateQuery,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
optional,
|
|
11
11
|
pipe,
|
|
12
12
|
safeParse
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
19
19
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
20
20
|
const parsed = safeParse(schema, options);
|
|
21
21
|
if (!parsed.success) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IPTI3Y2E.js";
|
|
8
8
|
import {
|
|
9
9
|
Command,
|
|
10
10
|
Help,
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
environmentOf,
|
|
16
16
|
metaOf,
|
|
17
17
|
takesProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6CS7ETBK.js";
|
|
19
19
|
import {
|
|
20
20
|
wrapAnsi
|
|
21
21
|
} from "./chunk-HTQTIKWP.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
writes
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
31
31
|
var SECTIONS = {
|
|
32
32
|
read: "Read",
|
|
33
33
|
write: "Write",
|
|
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
|
|
|
92
92
|
upgrade: "setup"
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
96
96
|
var DESCRIPTION = 90;
|
|
97
97
|
var COLUMN = 52;
|
|
98
98
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
131
131
|
`;
|
|
132
132
|
}, "commandsText");
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
135
135
|
var ARGUMENT_KINDS = {
|
|
136
136
|
chat: "chat",
|
|
137
137
|
chats: "chat",
|
|
@@ -352,7 +352,7 @@ var exampleReport = /* @__PURE__ */ __name((program) => {
|
|
|
352
352
|
return { written, generated, text };
|
|
353
353
|
}, "exampleReport");
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
356
356
|
var WIRECAT_TOOLS = [
|
|
357
357
|
{
|
|
358
358
|
command: "tg",
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WLSF3GCC.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QI7BZS2G.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError,
|
|
13
13
|
catchCrashes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JF7ZEUXU.js";
|
|
15
15
|
import {
|
|
16
16
|
importFrom
|
|
17
17
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
23
23
|
import { spawn as spawn2 } from "node:child_process";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
26
26
|
import { spawn, spawnSync } from "node:child_process";
|
|
27
27
|
import { readFileSync } from "node:fs";
|
|
28
28
|
import { dirname } from "node:path";
|
|
@@ -110,7 +110,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
110
110
|
});
|
|
111
111
|
}), "relay");
|
|
112
112
|
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
114
114
|
import { appendFileSync } from "node:fs";
|
|
115
115
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
116
116
|
const words = [];
|
|
@@ -134,7 +134,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
134
134
|
`);
|
|
135
135
|
}, "logVersion");
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
138
138
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
139
139
|
argv: process.argv,
|
|
140
140
|
env: process.env,
|
|
@@ -188,8 +188,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
188
188
|
if (command.optsWithGlobals().dryRun === true)
|
|
189
189
|
return;
|
|
190
190
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
191
|
-
import("./first-run-
|
|
192
|
-
import("./command-contract-
|
|
191
|
+
import("./first-run-OCVEJH63.js"),
|
|
192
|
+
import("./command-contract-O4FDXM4U.js")
|
|
193
193
|
]);
|
|
194
194
|
await setupAtStart({
|
|
195
195
|
command: entry.app.command,
|
|
@@ -204,7 +204,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
204
204
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
205
205
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
206
206
|
return false;
|
|
207
|
-
const { readSecret } = await import("./prompt-
|
|
207
|
+
const { readSecret } = await import("./prompt-IUD7HCDC.js");
|
|
208
208
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
209
209
|
input: io.stdin,
|
|
210
210
|
output: io.stderr,
|
|
@@ -213,7 +213,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
213
213
|
});
|
|
214
214
|
return /^(y|yes)$/i.test(answer.trim());
|
|
215
215
|
}, "ask"),
|
|
216
|
-
openBrowser: /* @__PURE__ */ __name((url, browser) => openBrowser(
|
|
216
|
+
openBrowser: /* @__PURE__ */ __name((url, browser) => openBrowser(url, browser, io), "openBrowser"),
|
|
217
217
|
outputClosed: /* @__PURE__ */ __name(() => closed, "outputClosed")
|
|
218
218
|
};
|
|
219
219
|
let code;
|
|
@@ -256,7 +256,7 @@ var commanderExit = /* @__PURE__ */ __name((error) => {
|
|
|
256
256
|
return 0;
|
|
257
257
|
return code === "commander.help" ? 2 : void 0;
|
|
258
258
|
}, "commanderExit");
|
|
259
|
-
var openBrowser = /* @__PURE__ */ __name((
|
|
259
|
+
var openBrowser = /* @__PURE__ */ __name((url, browser, io = { platform: process.platform, spawn: spawn2 }) => {
|
|
260
260
|
const [command, prefix] = browser !== void 0 ? [browser, []] : io.platform === "darwin" ? ["open", []] : io.platform === "win32" ? ["rundll32.exe", ["url.dll,FileProtocolHandler"]] : ["xdg-open", []];
|
|
261
261
|
return new Promise((resolve, reject) => {
|
|
262
262
|
const child = io.spawn(command, [...prefix, url], { detached: true, stdio: "ignore", windowsHide: true });
|
|
@@ -271,5 +271,6 @@ var openBrowser = /* @__PURE__ */ __name((io, url, browser) => {
|
|
|
271
271
|
export {
|
|
272
272
|
logParsedArgv,
|
|
273
273
|
logVersion,
|
|
274
|
-
startCli
|
|
274
|
+
startCli,
|
|
275
|
+
openBrowser
|
|
275
276
|
};
|