@wirecat/zoom-cli 0.64.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.
Files changed (157) hide show
  1. package/dist/answer-entities.d.ts +13 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/answer-entities.js +5 -0
  4. package/dist/answer-entities.js.map +1 -1
  5. package/dist/answers.d.ts +8 -0
  6. package/dist/answers.d.ts.map +1 -1
  7. package/dist/archive-import.d.ts +1 -1
  8. package/dist/archive-import.d.ts.map +1 -1
  9. package/dist/archive-import.js +2 -1
  10. package/dist/archive-import.js.map +1 -1
  11. package/dist/bin/zm.js +6 -2
  12. package/dist/bin/zm.js.map +1 -1
  13. package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-D5CFH2OK.js} +11 -8
  14. package/dist/bundle/answer-policy-YAYMKRRD.js +101 -0
  15. package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-K2E2JS4S.js} +7 -4
  16. package/dist/bundle/{app-server-AYUW45ND.js → app-server-TVXDG6HZ.js} +68 -61
  17. package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
  18. package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-HGBEHQI3.js} +6 -3
  19. package/dist/bundle/{chunk-TYKZCJD7.js → chunk-2T5BOLBS.js} +35 -35
  20. package/dist/bundle/{chunk-H3DMYF3W.js → chunk-2VPHQFO5.js} +8 -8
  21. package/dist/bundle/{chunk-JMSKDW5G.js → chunk-2YLNUZ3T.js} +5 -3
  22. package/dist/bundle/{chunk-AAC6VNSL.js → chunk-3B7L2UX4.js} +3 -3
  23. package/dist/bundle/{chunk-6NBQJJT6.js → chunk-3WTKZ2ZS.js} +13 -11
  24. package/dist/bundle/{chunk-H65B6A7Y.js → chunk-3Y2F65AY.js} +8 -8
  25. package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-5A26IBAR.js} +162 -107
  26. package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5GD2XZ6X.js} +132 -40
  27. package/dist/bundle/{chunk-7D56BQZL.js → chunk-5HPALDUO.js} +2 -2
  28. package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-62GOOZO3.js} +8 -13
  29. package/dist/bundle/{chunk-J25UNZIL.js → chunk-67RNZGAG.js} +12 -10
  30. package/dist/bundle/{chunk-3AAO5N4L.js → chunk-6GSJLNP4.js} +2 -2
  31. package/dist/bundle/{chunk-UNO4G5NX.js → chunk-6TIKPRVQ.js} +11 -7
  32. package/dist/bundle/{chunk-HQHUPTZR.js → chunk-756RS4PH.js} +1393 -712
  33. package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-7JMBEPW2.js} +2 -2
  34. package/dist/bundle/{chunk-HIGFBTEI.js → chunk-7KCTPGOF.js} +2 -2
  35. package/dist/bundle/{chunk-TJODNJKE.js → chunk-7PF56S6U.js} +33 -22
  36. package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
  37. package/dist/bundle/{chunk-BWPKSUXW.js → chunk-A2SCXNA7.js} +4518 -402
  38. package/dist/bundle/{chunk-QK54GOGE.js → chunk-AU4JHT3R.js} +7 -9
  39. package/dist/bundle/{chunk-63MRRNDL.js → chunk-AZ7ICKIA.js} +8 -8
  40. package/dist/bundle/chunk-BLT3LR3U.js +34 -0
  41. package/dist/bundle/{chunk-UABUBDYB.js → chunk-BXSAROQP.js} +2 -2
  42. package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-CAW6IMFZ.js} +25 -18
  43. package/dist/bundle/{chunk-UCPL55YP.js → chunk-CR4CXOLX.js} +17 -17
  44. package/dist/bundle/{chunk-SMT6SFBK.js → chunk-CZ4KLUJG.js} +2 -2
  45. package/dist/bundle/{chunk-COTC7HF3.js → chunk-D72URWJE.js} +1 -39
  46. package/dist/bundle/{chunk-X6M5DK66.js → chunk-EXXM4RNI.js} +14 -12
  47. package/dist/bundle/{chunk-CZKV4USJ.js → chunk-FWFFQV4D.js} +59 -4
  48. package/dist/bundle/{chunk-JJZAGKUK.js → chunk-GHAPWKG2.js} +5 -3
  49. package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GI6QVSCW.js} +4 -4
  50. package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-GKXFL35E.js} +198 -65
  51. package/dist/bundle/{chunk-K6OSD6DG.js → chunk-GNGBG5BT.js} +81 -35
  52. package/dist/bundle/{chunk-RJLNVHIU.js → chunk-H5ZVZAOD.js} +3 -3
  53. package/dist/bundle/{chunk-XZSQLVED.js → chunk-HKQWV3KT.js} +5 -3
  54. package/dist/bundle/chunk-IDWHJ35K.js +166 -0
  55. package/dist/bundle/{chunk-JM43EKTY.js → chunk-IKQ73INC.js} +1928 -679
  56. package/dist/bundle/chunk-ILHTNOIV.js +23 -0
  57. package/dist/bundle/{chunk-OPP5CWAX.js → chunk-J4EZL6HY.js} +61 -56
  58. package/dist/bundle/{chunk-54UEJGYB.js → chunk-JX3V35A5.js} +3 -3
  59. package/dist/bundle/{chunk-7VJIKJNW.js → chunk-K5CIN4JP.js} +8 -8
  60. package/dist/bundle/{chunk-KJCCT3QY.js → chunk-KDKFGQWG.js} +17 -14
  61. package/dist/bundle/{chunk-RK3JBC4U.js → chunk-L7IK4FOA.js} +2 -2
  62. package/dist/bundle/{chunk-7EOW47PV.js → chunk-LN2S3RA3.js} +4 -4
  63. package/dist/bundle/{chunk-I5QX2HAT.js → chunk-N5JRRBEG.js} +214 -107
  64. package/dist/bundle/chunk-N67BLTBV.js +2443 -0
  65. package/dist/bundle/{chunk-23LOMA2I.js → chunk-N6JMJN5A.js} +48 -26
  66. package/dist/bundle/{chunk-CZFV6XTW.js → chunk-NMQUCHTX.js} +3 -3
  67. package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
  68. package/dist/bundle/{chunk-UFI5SX3F.js → chunk-O5FKJV3T.js} +14 -12
  69. package/dist/bundle/{chunk-IIP4J3PD.js → chunk-P2G4KGTR.js} +94 -12
  70. package/dist/bundle/{chunk-OWXMQVVN.js → chunk-P2SYZNM4.js} +1 -1
  71. package/dist/bundle/{chunk-EQYPTGCT.js → chunk-P3XVLHIQ.js} +6 -4
  72. package/dist/bundle/chunk-PQLBPYJR.js +46 -0
  73. package/dist/bundle/{chunk-5BCNJB2A.js → chunk-Q47C3QZW.js} +675 -507
  74. package/dist/bundle/{chunk-IIGXCYEL.js → chunk-QAPU2JNO.js} +13 -13
  75. package/dist/bundle/{chunk-WFIJOFS5.js → chunk-QJHRYUMJ.js} +1 -1
  76. package/dist/bundle/{chunk-YNYMWXXH.js → chunk-QV5ZGRK3.js} +40 -11
  77. package/dist/bundle/{chunk-3IMEAZIM.js → chunk-RMKHYUHK.js} +9 -20
  78. package/dist/bundle/{chunk-AF4HONAZ.js → chunk-RO44LANT.js} +6449 -4436
  79. package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
  80. package/dist/bundle/chunk-S6S3KVJI.js +45 -0
  81. package/dist/bundle/{chunk-SJIBJQJN.js → chunk-SU4WPBQE.js} +44 -14
  82. package/dist/bundle/{chunk-7NDSBTKR.js → chunk-TFDVFD4N.js} +91 -2546
  83. package/dist/bundle/{chunk-HQHYPKSU.js → chunk-TMVKZMDO.js} +54 -37
  84. package/dist/bundle/{chunk-PBJY5VR6.js → chunk-TN7K66PU.js} +1 -1
  85. package/dist/bundle/{chunk-ZW4N73FO.js → chunk-TUEEXECZ.js} +5 -5
  86. package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
  87. package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
  88. package/dist/bundle/{chunk-5YLR24D5.js → chunk-UOIXBEFR.js} +13 -6
  89. package/dist/bundle/chunk-UYV2JGLQ.js +34 -0
  90. package/dist/bundle/{chunk-7SWNZ44U.js → chunk-XFUID5NY.js} +4 -4
  91. package/dist/bundle/{chunk-BMYZWBAX.js → chunk-XWDSEJWP.js} +6 -6
  92. package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
  93. package/dist/bundle/{chunk-24WCZURP.js → chunk-YLEQN6PB.js} +5 -3
  94. package/dist/bundle/{chunk-2UONVSJQ.js → chunk-Z6U3MEGJ.js} +2 -2
  95. package/dist/bundle/{chunk-L4JGVSBN.js → chunk-ZKTXUDSR.js} +33 -28
  96. package/dist/bundle/{chunk-FSYO3PUW.js → chunk-ZNFPDTQM.js} +2 -2
  97. package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-ZTL7ANSG.js} +9 -42
  98. package/dist/bundle/{cli-Y2ZO3D5U.js → cli-HWQIL2AC.js} +124 -73
  99. package/dist/bundle/command-contract-CQFJXWX6.js +40 -0
  100. package/dist/bundle/config-R2Y6ZVQS.js +83 -0
  101. package/dist/bundle/{decode-GO6GAYH2.js → decode-XPAPPUGE.js} +6 -3
  102. package/dist/bundle/dispatch-AKVJGP2S.js +412 -0
  103. package/dist/bundle/{dist-MIJKAGXW.js → dist-LDIUQBM7.js} +23 -16
  104. package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
  105. package/dist/bundle/{embed-2DOSN4DV.js → embed-LK45GRQ7.js} +7 -4
  106. package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-QPBC5XBY.js} +12 -9
  107. package/dist/bundle/failure-7OULAOWQ.js +25 -0
  108. package/dist/bundle/first-run-J5FG773Q.js +28 -0
  109. package/dist/bundle/first-screen-MULOBUHN.js +38 -0
  110. package/dist/bundle/{folders-RSWEBHDZ.js → folders-RHPUVMDI.js} +5 -2
  111. package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
  112. package/dist/bundle/{main-R77BPRRS.js → main-FJHE5YHU.js} +28 -22
  113. package/dist/bundle/{mcp-YJEQYYTR.js → mcp-MNI62HHE.js} +5 -3
  114. package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-MYIDGYGW.js} +19 -6
  115. package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
  116. package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-SYZUTVPC.js} +12 -3
  117. package/dist/bundle/{oauth-M6YL4QXP.js → oauth-QPS5VTN6.js} +8 -5
  118. package/dist/bundle/{open-2VITLJAN.js → open-OVCASRSJ.js} +6 -2
  119. package/dist/bundle/openai-VEVT7D7L.js +25 -0
  120. package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-K5JEL33Z.js} +7 -4
  121. package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
  122. package/dist/bundle/{program-5R5MRXUM.js → program-A546WC4F.js} +120 -112
  123. package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-CYBKP7S5.js} +6 -3
  124. package/dist/bundle/{recognize-DJKTJOYU.js → recognize-3H3YDCFI.js} +5 -2
  125. package/dist/bundle/{remote-S3DTNYRP.js → remote-VAYVTJBS.js} +8 -5
  126. package/dist/bundle/{rerank-FMCDP6VF.js → rerank-XA4GA5PS.js} +8 -5
  127. package/dist/bundle/{run-log-T4MV2VEH.js → run-log-XAFHMI3F.js} +59 -54
  128. package/dist/bundle/{serve-5SGFJFMC.js → serve-KGHEDUHB.js} +18 -14
  129. package/dist/bundle/server-IDNSJXF3.js +71 -0
  130. package/dist/bundle/{server-PCMCY7WK.js → server-ZYTSMDTP.js} +47 -42
  131. package/dist/bundle/{services-SKRQ2POT.js → services-ZHMZC2OQ.js} +106 -28
  132. package/dist/bundle/{speech-FSDICIKO.js → speech-7CJEFKM3.js} +14 -11
  133. package/dist/bundle/{state-KPUSPWO6.js → state-U6KSYVOH.js} +7 -4
  134. package/dist/bundle/{store-W7LFPKG2.js → store-DJE3LAEG.js} +17 -13
  135. package/dist/bundle/{store-7MP2ZGQ7.js → store-WS4CQGYU.js} +40 -18
  136. package/dist/bundle/store-connection-T5WGOOPH.js +81 -0
  137. package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +61 -0
  138. package/dist/bundle/{streaming-Q44ESD3E.js → streaming-QMHH7L6N.js} +7 -4
  139. package/dist/bundle/{tokens-TAFCHANI.js → tokens-PWQ56OXO.js} +7 -4
  140. package/dist/bundle/zm.js +150 -1
  141. package/dist/local-transcription.d.ts.map +1 -1
  142. package/dist/local-transcription.js +1 -0
  143. package/dist/local-transcription.js.map +1 -1
  144. package/dist/version.d.ts +1 -1
  145. package/dist/version.js +1 -1
  146. package/package.json +5 -4
  147. package/dist/bundle/answer-policy-HOA43GNA.js +0 -96
  148. package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
  149. package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
  150. package/dist/bundle/config-N2UHDKGG.js +0 -78
  151. package/dist/bundle/first-run-S75VKIT3.js +0 -23
  152. package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
  153. package/dist/bundle/openai-OG6B3JCU.js +0 -22
  154. package/dist/bundle/server-EYGZLKKQ.js +0 -66
  155. package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
  156. package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
  157. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
7
+ // 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/mcp/instructions.js
8
8
  var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
9
9
  const all = typeof profile !== "string";
10
10
  const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
@@ -0,0 +1,45 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
6
+
7
+ // 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/errors.js
8
+ var errorCodes = [
9
+ "validation_error",
10
+ "configuration_error",
11
+ "authentication_error",
12
+ "permission_error",
13
+ "not_found",
14
+ "confirmation_required",
15
+ "rate_limited",
16
+ "timeout",
17
+ "network_error",
18
+ "provider_error",
19
+ "provider_unavailable",
20
+ "invalid_response",
21
+ "outcome_unknown",
22
+ "cancelled"
23
+ ];
24
+ var BRAND = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/CliError");
25
+ var CliError = class extends Error {
26
+ static {
27
+ __name(this, "CliError");
28
+ }
29
+ code;
30
+ details;
31
+ constructor(code, message, details = {}) {
32
+ super(message);
33
+ this.name = "CliError";
34
+ this.code = code;
35
+ this.details = details;
36
+ Object.defineProperty(this, BRAND, { value: true });
37
+ }
38
+ };
39
+ var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
40
+
41
+ export {
42
+ errorCodes,
43
+ CliError,
44
+ isCliError
45
+ };
@@ -1,7 +1,6 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- CliError,
5
4
  RegistryError,
6
5
  SNAKE_CASE,
7
6
  array,
@@ -9,7 +8,6 @@ import {
9
8
  defineReasons,
10
9
  duplicates,
11
10
  integer,
12
- isCliError,
13
11
  lazy,
14
12
  literal,
15
13
  minValue,
@@ -21,12 +19,16 @@ import {
21
19
  reference,
22
20
  string,
23
21
  variant
24
- } from "./chunk-7NDSBTKR.js";
22
+ } from "./chunk-N67BLTBV.js";
23
+ import {
24
+ CliError,
25
+ isCliError
26
+ } from "./chunk-S6S3KVJI.js";
25
27
  import {
26
28
  __name
27
29
  } from "./chunk-ZVVMGPBJ.js";
28
30
 
29
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
31
+ // 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
32
  var QUERY_LIMITS = {
31
33
  bytes: 8192,
32
34
  depth: 32,
@@ -70,7 +72,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
70
72
  __name(queryError, "queryError");
71
73
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
72
74
 
73
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
75
+ // 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
76
  var timezoneOf = /* @__PURE__ */ __name((given) => {
75
77
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
76
78
  try {
@@ -215,7 +217,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
215
217
  };
216
218
  }, "dateRange");
217
219
 
218
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
220
+ // 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
221
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
220
222
  var OPERATORS_BY_TYPE = {
221
223
  kw: ["term", "phrase", "wildcard"],
@@ -265,11 +267,13 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
265
267
  const excluded = new Set(annotations.exclude ?? []);
266
268
  const words = new Set(annotations.text ?? []);
267
269
  const native = new Set(annotations.native ?? []);
270
+ const negatable = new Set(annotations.negatable ?? []);
268
271
  const finish = /* @__PURE__ */ __name((field) => ({
269
272
  ...field,
270
273
  operators: OPERATORS_BY_TYPE[field.type],
271
274
  example: annotations.examples?.[field.name] ?? field.example ?? exampleOf(field.name, field.type, field.values),
272
275
  ...native.has(field.name) ? { native: true } : {},
276
+ ...negatable.has(field.name) ? { negatable: true } : {},
273
277
  ...annotations.validate?.[field.name] ? { validate: annotations.validate[field.name] } : {}
274
278
  }), "finish");
275
279
  const own = Object.entries(entries).flatMap(([name, entry]) => {
@@ -292,23 +296,49 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
292
296
  return [...own, ...relations, ...states];
293
297
  }, "queryFieldsOf");
294
298
 
295
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
299
+ // 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
300
  var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
301
+ var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
302
+ var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
303
+ var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
304
+ var syntaxOf = /* @__PURE__ */ __name((shown, backend) => {
305
+ if (backend !== "native")
306
+ return QUERY_SYNTAX;
307
+ return [
308
+ "field:value",
309
+ ...has(shown, "phrase") ? ['"a phrase"'] : [],
310
+ ...has(shown, "wildcard") ? ["word*"] : [],
311
+ "terms joined by AND",
312
+ ...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
313
+ ].join(" \xB7 ");
314
+ }, "syntaxOf");
297
315
  var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
298
316
  var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
299
- const shown = registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields;
317
+ const shown = shownOf(registry);
318
+ const negatable = leftOut(shown);
300
319
  const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
301
320
  const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
302
321
  return [
303
322
  "Fields:",
304
323
  ...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
305
324
  ...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
306
- `Syntax: ${QUERY_SYNTAX}`,
325
+ ...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
326
+ `Syntax: ${syntaxOf(shown, registry.backend)}`,
307
327
  ...guide ? [`Guide: ${guide}`] : []
308
328
  ].join("\n");
309
329
  }, "fieldsHelp");
330
+ var queryDescription = /* @__PURE__ */ __name((registry) => {
331
+ const shown = shownOf(registry);
332
+ if (shown.length === 0)
333
+ return "field:value terms; this list filters by none yet, so any term is refused";
334
+ const negatable = leftOut(shown);
335
+ 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], > <)";
336
+ const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
337
+ const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
338
+ return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
339
+ }, "queryDescription");
310
340
 
311
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
341
+ // 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
342
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
313
343
  var reserved = /* @__PURE__ */ new Set([
314
344
  "+",
@@ -613,7 +643,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
613
643
  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
644
  }, "implicitTextTerms");
615
645
 
616
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
646
+ // 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
647
  var inContext = /* @__PURE__ */ __name((context, run) => {
618
648
  try {
619
649
  run();
@@ -688,7 +718,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
688
718
  }, "validateQuery");
689
719
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
690
720
 
691
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
721
+ // 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
722
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
693
723
  entity: registry.entity,
694
724
  backend: registry.backend,
@@ -759,7 +789,7 @@ var QUERY_REASONS = defineReasons([
759
789
  details: [...SPAN, ...details]
760
790
  })));
761
791
 
762
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
+ // 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
793
  var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
764
794
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
765
795
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -823,7 +853,6 @@ export {
823
853
  dayBoundary,
824
854
  wallTime,
825
855
  zonedMoment,
826
- dateEndpoint,
827
856
  dateRange,
828
857
  evaluate,
829
858
  FIELD_TYPES,
@@ -831,6 +860,7 @@ export {
831
860
  QUERY_BACKENDS,
832
861
  queryFieldsOf,
833
862
  fieldsHelp,
863
+ queryDescription,
834
864
  parseLucene,
835
865
  implicitTextTerms,
836
866
  validateQuery,