@wirecat/hubspot-cli 0.3.2 → 0.5.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 (152) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +6 -5
  3. package/dist/bin/hubspot.js +2 -2
  4. package/dist/bundle/agent-RBQMA24N.js +40 -0
  5. package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-PGFXLOKN.js} +11 -11
  6. package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-LPOJ3TYF.js} +5 -5
  7. package/dist/bundle/{app-server-EQZUP4H4.js → app-server-EYWGCSRY.js} +68 -68
  8. package/dist/bundle/{bun-AJPJ4ZUN.js → bun-ZJOOKIIW.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-Y6KKH2OW.js} +6 -6
  10. package/dist/bundle/{chunk-2A64XS22.js → chunk-23CLSKY7.js} +3 -3
  11. package/dist/bundle/{chunk-GZZR5U3K.js → chunk-34HDRZIL.js} +14 -14
  12. package/dist/bundle/{chunk-NZGI74GS.js → chunk-3CHJYWA2.js} +6 -6
  13. package/dist/bundle/{chunk-PMP37KLR.js → chunk-4RZ4DUQT.js} +3 -3
  14. package/dist/bundle/{chunk-LT5KE44Q.js → chunk-5ENY4POG.js} +61 -61
  15. package/dist/bundle/{chunk-QBEDVMLZ.js → chunk-5HGS65I3.js} +2 -2
  16. package/dist/bundle/{chunk-KVXEEKBB.js → chunk-5UPNDUAA.js} +2 -2
  17. package/dist/bundle/{chunk-YIF5M5R6.js → chunk-5WADRBQG.js} +3 -3
  18. package/dist/bundle/{chunk-KO4VR5NK.js → chunk-6PWRJGX4.js} +4 -4
  19. package/dist/bundle/{chunk-TKK3ECDS.js → chunk-6S422S22.js} +7 -7
  20. package/dist/bundle/{chunk-5AYKCKSE.js → chunk-7Q64D56R.js} +11 -11
  21. package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-7RIE3DAW.js} +174 -161
  22. package/dist/bundle/{chunk-RVWGFD32.js → chunk-A5UTNGI4.js} +13 -13
  23. package/dist/bundle/{chunk-NTQBS2JL.js → chunk-ABPZOI3C.js} +4 -4
  24. package/dist/bundle/{chunk-L433IDOX.js → chunk-AHZQMSXW.js} +10 -10
  25. package/dist/bundle/{chunk-X5S5KUSU.js → chunk-AIQT2GGK.js} +19 -19
  26. package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-AVBKXCEY.js} +8 -8
  27. package/dist/bundle/{chunk-TIHDBKA7.js → chunk-BCW7DAVV.js} +2 -2
  28. package/dist/bundle/{chunk-7UEL65GQ.js → chunk-BGUGTMTS.js} +8 -8
  29. package/dist/bundle/{chunk-BN22EKQQ.js → chunk-BH5FEFZB.js} +2 -2
  30. package/dist/bundle/{chunk-DJ2GJ77D.js → chunk-BVK4GUUI.js} +1352 -838
  31. package/dist/bundle/{chunk-3TEFE6YU.js → chunk-BW7NPFVC.js} +18 -8
  32. package/dist/bundle/{chunk-WRCKE5ND.js → chunk-CWCJEAHZ.js} +3 -3
  33. package/dist/bundle/{chunk-DW23LM47.js → chunk-DDMBPYHP.js} +2 -2
  34. package/dist/bundle/{chunk-WGBVRDY3.js → chunk-DEUCWBBH.js} +103 -5
  35. package/dist/bundle/{chunk-SEELWPRD.js → chunk-DJUUQG6Y.js} +8 -8
  36. package/dist/bundle/{chunk-VW5F6FK3.js → chunk-EGR3YUWD.js} +4 -4
  37. package/dist/bundle/{chunk-M763RNWP.js → chunk-EPBHJMF6.js} +20 -14
  38. package/dist/bundle/{chunk-7NZT7Y55.js → chunk-GZJP3KQQ.js} +3 -4
  39. package/dist/bundle/{chunk-BHZUPOQY.js → chunk-HBFSGL5E.js} +26 -26
  40. package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-HPRGUUHY.js} +1 -1
  41. package/dist/bundle/{chunk-DSRXCLPO.js → chunk-HPSESLOZ.js} +1 -1
  42. package/dist/bundle/{chunk-Q27QAB4X.js → chunk-I334AT2H.js} +7 -7
  43. package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K3WCBNH4.js} +43 -64
  44. package/dist/bundle/{chunk-JK2SNLU5.js → chunk-K5S7MKBB.js} +17 -17
  45. package/dist/bundle/{chunk-J5P5VSRG.js → chunk-KAW5VEER.js} +21 -8
  46. package/dist/bundle/{chunk-NNMU2TDU.js → chunk-KC4ILAKO.js} +1 -1
  47. package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-KRTXJMCD.js} +16 -16
  48. package/dist/bundle/{chunk-DQB5JMTY.js → chunk-KXWRVLSU.js} +1 -1
  49. package/dist/bundle/{chunk-VQEAZXTV.js → chunk-L4SVHQ7H.js} +7 -7
  50. package/dist/bundle/{chunk-ARTJLL7W.js → chunk-L6WSFVTD.js} +8 -8
  51. package/dist/bundle/{chunk-OJIJVOOA.js → chunk-LWS5AO3H.js} +17 -17
  52. package/dist/bundle/{chunk-E4X7JAFC.js → chunk-LXLXF2OE.js} +3 -3
  53. package/dist/bundle/{chunk-ODPU3II6.js → chunk-MENMD5Y5.js} +8 -8
  54. package/dist/bundle/{chunk-5ZV7REBE.js → chunk-MFWECOO3.js} +82 -64
  55. package/dist/bundle/{chunk-HPZRUY6S.js → chunk-MGMLSPIY.js} +1 -1
  56. package/dist/bundle/{chunk-B3EH22CO.js → chunk-MKBQFD37.js} +1 -1
  57. package/dist/bundle/{chunk-E4FAMU2S.js → chunk-MPNMEWHA.js} +417 -320
  58. package/dist/bundle/{chunk-2HYGCLKN.js → chunk-MPQ4SPZG.js} +93 -40
  59. package/dist/bundle/{chunk-ITGNDZRR.js → chunk-MW4ROXQ6.js} +3 -3
  60. package/dist/bundle/{chunk-JP2HJXFO.js → chunk-NEDV6RCQ.js} +10 -3
  61. package/dist/bundle/{chunk-PLRUUXK7.js → chunk-NEP67GLY.js} +6 -6
  62. package/dist/bundle/{chunk-6MFP47XC.js → chunk-NKIKMG33.js} +35 -35
  63. package/dist/bundle/{chunk-GC6FLHZF.js → chunk-NLPGUYCG.js} +12 -12
  64. package/dist/bundle/{chunk-AF7DANIR.js → chunk-OCISQFMW.js} +1 -1
  65. package/dist/bundle/{chunk-AVUMH42T.js → chunk-ODRF47VS.js} +8 -8
  66. package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-OFOA6VJ2.js} +3 -3
  67. package/dist/bundle/{chunk-BUGROVF3.js → chunk-PMGAU6AP.js} +2 -2
  68. package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-POTS24SH.js} +18 -18
  69. package/dist/bundle/{chunk-B2W3C4N6.js → chunk-PPQRWFJZ.js} +5 -5
  70. package/dist/bundle/{chunk-GRFICQTZ.js → chunk-QCHW7R7L.js} +1 -1
  71. package/dist/bundle/{chunk-5K3FGXZH.js → chunk-QDNYJOWJ.js} +1 -1
  72. package/dist/bundle/{chunk-WCQW4GYO.js → chunk-QIHJKE4K.js} +24 -8
  73. package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-QLFD3MOL.js} +1002 -560
  74. package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-QPTHEZZ5.js} +2 -2
  75. package/dist/bundle/{chunk-IXZLMFPO.js → chunk-R7ZOCDNG.js} +1 -1
  76. package/dist/bundle/{chunk-FIVD4HM4.js → chunk-RJBKDZGV.js} +8 -8
  77. package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-RZS7N3OZ.js} +7 -7
  78. package/dist/bundle/{chunk-A6UFH3QU.js → chunk-SBNZYRVZ.js} +4 -4
  79. package/dist/bundle/{chunk-EMOVVERN.js → chunk-STTHRJBX.js} +5 -5
  80. package/dist/bundle/{chunk-2NCO4E4T.js → chunk-V5VMAHDQ.js} +6 -6
  81. package/dist/bundle/{chunk-LA3YU4K7.js → chunk-VCYUYFIV.js} +1 -1
  82. package/dist/bundle/{chunk-3I2FGNWO.js → chunk-VIJV474N.js} +1 -1
  83. package/dist/bundle/{chunk-ABXVU5O4.js → chunk-WDR77HPO.js} +22 -1
  84. package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-WEM4FZPM.js} +2 -2
  85. package/dist/bundle/{chunk-5PPG73G6.js → chunk-WQZENAPE.js} +3 -3
  86. package/dist/bundle/{chunk-5YNAVVCW.js → chunk-WXEN6AXQ.js} +16 -3
  87. package/dist/bundle/{chunk-IBTMK5KD.js → chunk-YJLJZMEA.js} +25 -25
  88. package/dist/bundle/{chunk-2PRVWEJC.js → chunk-YQBGPBYN.js} +2 -2
  89. package/dist/bundle/{chunk-3DIXAEGH.js → chunk-YZ5MULJM.js} +3 -3
  90. package/dist/bundle/{chunk-JUKAIXKY.js → chunk-Z7FC6VVM.js} +1 -1
  91. package/dist/bundle/{chunk-LKSNISYV.js → chunk-ZKPM53YG.js} +4 -4
  92. package/dist/bundle/{chunk-U6XA3OOM.js → chunk-ZLWQPUPB.js} +2 -2
  93. package/dist/bundle/{chunk-CBCEMFCF.js → chunk-ZMHD76RE.js} +2 -2
  94. package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
  95. package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-B7S5AUE6.js} +28 -28
  96. package/dist/bundle/{decode-6PLXHVHW.js → decode-7L33C5UJ.js} +5 -5
  97. package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-BIGHHSXV.js} +8 -8
  98. package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-CWR3QH55.js} +2 -2
  99. package/dist/bundle/{embed-AWLL4EBF.js → embed-GXQ3HOQ6.js} +6 -6
  100. package/dist/bundle/{embedder-MM225YJ6.js → embedder-47OYXGLS.js} +9 -9
  101. package/dist/bundle/{failure-MR2XVHFP.js → failure-VMZOU5GZ.js} +2 -2
  102. package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-YVQQOUQG.js} +12 -12
  103. package/dist/bundle/first-screen-TU3KE2B5.js +40 -0
  104. package/dist/bundle/hubspot.js +27 -25
  105. package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-QFS2MPK3.js} +1 -1
  106. package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-Z2KZNCXB.js} +2 -2
  107. package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
  108. package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-GLF2HVJG.js} +11 -11
  109. package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RG56F4YX.js} +6 -6
  110. package/dist/bundle/{node-HGCZGZ4R.js → node-3TSWTXGI.js} +2 -2
  111. package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-UPQCG7DJ.js} +7 -7
  112. package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-MCVEENW3.js} +7 -7
  113. package/dist/bundle/{open-UCDSQUN2.js → open-JMUTKUYJ.js} +5 -5
  114. package/dist/bundle/{openai-Y4F5ZC7O.js → openai-HT7YDOK7.js} +15 -15
  115. package/dist/bundle/{process-P7FB7YO7.js → process-7RC6DAGM.js} +1 -1
  116. package/dist/bundle/{program-VKYZXANH.js → program-3DLBMOEJ.js} +174 -120
  117. package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-7EROPXPF.js} +5 -5
  118. package/dist/bundle/{recognize-5NYPTSLT.js → recognize-B232GXD2.js} +4 -4
  119. package/dist/bundle/{remote-U4LUAHF2.js → remote-HGV64VRC.js} +9 -9
  120. package/dist/bundle/{rerank-AJAVKK5L.js → rerank-5S6TDXHD.js} +7 -7
  121. package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-SB42IXEX.js} +1 -1
  122. package/dist/bundle/{serve-4UJ3R5IP.js → serve-D2WFCV6Z.js} +9 -9
  123. package/dist/bundle/{server-DUKWJUKD.js → server-4AXPTJPV.js} +60 -60
  124. package/dist/bundle/server-FFHVNABP.js +86 -0
  125. package/dist/bundle/{source-LJG4BWRU.js → source-DF63EC2B.js} +114 -86
  126. package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-DAFMZNLI.js} +6 -6
  127. package/dist/bundle/{state-COGSYMVH.js → state-7OEBDXVV.js} +6 -6
  128. package/dist/bundle/{store-BJXCSP26.js → store-2ZWSWF76.js} +24 -24
  129. package/dist/bundle/{store-V5UMSWK4.js → store-KC6US326.js} +26 -22
  130. package/dist/bundle/store-Q3ZKD4FJ.js +34 -0
  131. package/dist/bundle/store-maintenance-command-24A4GBRP.js +73 -0
  132. package/dist/bundle/surface-SPTM57EP.js +72 -0
  133. package/dist/bundle/writer-EQQ55HOS.js +86 -0
  134. package/dist/config.d.ts +1 -0
  135. package/dist/config.d.ts.map +1 -1
  136. package/dist/config.js +59 -10
  137. package/dist/config.js.map +1 -1
  138. package/dist/version.d.ts +1 -1
  139. package/dist/version.js +1 -1
  140. package/package.json +4 -4
  141. package/skills/hubspot-cli/references/api/api-basic.md +34 -6
  142. package/skills/hubspot-cli/references/api/api-batch.md +19 -9
  143. package/skills/hubspot-cli/references/api/api-search.md +9 -0
  144. package/dist/bundle/agent-A7ARC3QB.js +0 -40
  145. package/dist/bundle/command-contract-R2FGN7CQ.js +0 -40
  146. package/dist/bundle/first-screen-SCDV7TXT.js +0 -40
  147. package/dist/bundle/meeting-combined-EL5XZIJ5.js +0 -25
  148. package/dist/bundle/server-UQVV2PPX.js +0 -86
  149. package/dist/bundle/store-7DQGZH64.js +0 -32
  150. package/dist/bundle/store-maintenance-command-DQUBBWMD.js +0 -73
  151. package/dist/bundle/surface-IGBQUYE5.js +0 -72
  152. package/dist/bundle/writer-QOEJONAD.js +0 -86
@@ -5,21 +5,28 @@ import {
5
5
  fieldsOf,
6
6
  processStreams,
7
7
  projectFields
8
- } from "./chunk-X5S5KUSU.js";
8
+ } from "./chunk-AIQT2GGK.js";
9
9
  import {
10
10
  COMPACT_FLAG
11
- } from "./chunk-J5P5VSRG.js";
11
+ } from "./chunk-KAW5VEER.js";
12
12
  import {
13
13
  CliError,
14
14
  singleLine
15
- } from "./chunk-BUGROVF3.js";
15
+ } from "./chunk-PMGAU6AP.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/permissions.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/permissions.js
21
21
  var LEVELS = ["deny", "readonly", "ask", "allow"];
22
- var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
22
+ var DANGEROUS = /* @__PURE__ */ new Set([
23
+ "messages.delete",
24
+ "messages.scheduled.cancel",
25
+ "bot.messages.delete",
26
+ "topics.delete",
27
+ "chats.delete",
28
+ "chats.clear"
29
+ ]);
23
30
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
24
31
  var DEFAULT_PERMISSIONS = {
25
32
  // Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
@@ -240,6 +247,9 @@ var NAMED_WRITE_KEYS = [
240
247
  "messages.sync-first",
241
248
  "messages.server-search",
242
249
  "messages.press",
250
+ "messages.scheduled.cancel",
251
+ "messages.scheduled.edit",
252
+ "messages.scheduled.send",
243
253
  "chats.start",
244
254
  "chats.app",
245
255
  "stats.messages.counters.sync",
@@ -443,7 +453,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
443
453
  }
444
454
  }, "assertRetentionEvidenceRead");
445
455
 
446
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
456
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
447
457
  var named = /* @__PURE__ */ __name((work) => {
448
458
  try {
449
459
  return work();
@@ -470,7 +480,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
470
480
  return projectFields(value, fields);
471
481
  }), "projectFields");
472
482
 
473
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/output-detail.js
483
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/output-detail.js
474
484
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
475
485
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
476
486
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -506,7 +516,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
506
516
  return value;
507
517
  }, "atDetail");
508
518
 
509
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/output.js
519
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/output.js
510
520
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
511
521
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
512
522
  if (other)
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  timezoneOf,
5
5
  zonedMoment
6
- } from "./chunk-LT5KE44Q.js";
6
+ } from "./chunk-5ENY4POG.js";
7
7
  import {
8
8
  CliError
9
- } from "./chunk-BUGROVF3.js";
9
+ } from "./chunk-PMGAU6AP.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/moment.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/moment.js
15
15
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
16
16
  try {
17
17
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-BUGROVF3.js";
6
+ } from "./chunk-PMGAU6AP.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -2,15 +2,63 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-LT5KE44Q.js";
5
+ } from "./chunk-5ENY4POG.js";
6
+ import {
7
+ readSharedSection,
8
+ sharedConfigPath,
9
+ writeSharedSection
10
+ } from "./chunk-RZS7N3OZ.js";
11
+ import {
12
+ storePath
13
+ } from "./chunk-WEM4FZPM.js";
6
14
  import {
7
15
  defineReasons
8
- } from "./chunk-J5P5VSRG.js";
16
+ } from "./chunk-KAW5VEER.js";
17
+ import {
18
+ isoTimestamp,
19
+ picklist,
20
+ pipe,
21
+ safeParse,
22
+ strictObject,
23
+ string
24
+ } from "./chunk-S4UUN6LD.js";
25
+ import {
26
+ CliError
27
+ } from "./chunk-PMGAU6AP.js";
9
28
  import {
10
29
  __name
11
30
  } from "./chunk-ZVVMGPBJ.js";
12
31
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/errors/reasons.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
33
+ var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
34
+ var SECTION = "chat_sending";
35
+ var Setting = strictObject({
36
+ mode: picklist(CHAT_SENDING_MODES),
37
+ at: pipe(string(), isoTimestamp())
38
+ });
39
+ var CHAT_SENDING_ASK_DETAILS = ["emails", "threads", "tokens", "host", "model", "estimated_cost_usd"];
40
+ var pathOf = /* @__PURE__ */ __name((env) => sharedConfigPath(storePath(env), env), "pathOf");
41
+ var readChatSending = /* @__PURE__ */ __name((env) => {
42
+ const section = readSharedSection(pathOf(env), SECTION);
43
+ if (section === void 0 || section === null)
44
+ return void 0;
45
+ const checked = safeParse(Setting, section);
46
+ return checked.success ? checked.output : { mode: "denied", at: (/* @__PURE__ */ new Date(0)).toISOString() };
47
+ }, "readChatSending");
48
+ var chatSendingMode = /* @__PURE__ */ __name((env) => readChatSending(env)?.mode ?? "ask", "chatSendingMode");
49
+ var writeChatSending = /* @__PURE__ */ __name((env, mode) => writeSharedSection(pathOf(env), SECTION, mode === "ask" ? void 0 : { mode, at: (/* @__PURE__ */ new Date()).toISOString() }), "writeChatSending");
50
+ var STRICTNESS = { allowed: 0, ask: 1, denied: 2 };
51
+ var loosens = /* @__PURE__ */ __name((from, to) => STRICTNESS[to] < STRICTNESS[from], "loosens");
52
+ var chatSendingCommand = /* @__PURE__ */ __name((command, mode) => `${command} models chats set ${mode}`, "chatSendingCommand");
53
+ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
54
+ const mode = chatSendingMode(env);
55
+ if (mode === "denied")
56
+ throw new CliError("permission_error", `sending chat text to a model outside this computer is denied by the setting \`models chats\`; nothing was sent to ${host}, and --yes does not change that. Use a model on this computer, or ask the owner to run \`${chatSendingCommand(command, "ask")}\` (or \`allowed\`)`, { reason: "chat-sending.denied" });
57
+ return mode === "allowed";
58
+ }, "chatSendingAllowed");
59
+ var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
60
+
61
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
62
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
63
  var QUERY = [
16
64
  ["query.aborted", "the search was stopped before it finished"],
@@ -63,7 +111,15 @@ var SIGN_IN = [
63
111
  "account-remove.folder-outside",
64
112
  "configuration_error",
65
113
  "the tool named a folder of its own outside the home folder"
66
- ]
114
+ ],
115
+ ["account-rename.unknown-profile", "not_found", "no profile by this name on this computer"],
116
+ ["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
117
+ ["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
118
+ ["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
119
+ ["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
120
+ ["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
121
+ ["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"],
122
+ ["account-rename.config", "configuration_error", "the config file cannot be read"]
67
123
  ];
68
124
  var PROVIDER_API = [
69
125
  ["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
@@ -213,6 +269,8 @@ var OTHERS = [
213
269
  validation("mail.cursor-ahead", "an acknowledge cursor is past the newest stored email"),
214
270
  ["mail.holder-not-yours", "permission_error", "a run moves only the mark of the holder its schedule names"],
215
271
  ["mail.no-mark", "not_found", "the holder has no mark in the mailbox yet; its first review starts it"],
272
+ ["mail.inbox-agent", "permission_error", "an agent sorts mail itself from review; inbox --offline lists"],
273
+ ["mail.inbox-answer-invalid", "invalid_response", "the AI model's answer to inbox is not the JSON it asks for"],
216
274
  ["mail.reset-owner-only", "permission_error", "only the owner moves a holder's mark back"],
217
275
  ["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
218
276
  ["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
@@ -225,6 +283,27 @@ var OTHERS = [
225
283
  ["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
226
284
  ["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
227
285
  validation("mirror.not-folder", "the path to mirror is not a folder"),
286
+ validation("mirror.symlink", "the file is under a symbolic link, which the sync does not follow"),
287
+ [
288
+ "mirror.too-many-deletions",
289
+ "confirmation_required",
290
+ "the sync would delete more files than the guard allows; check them with --dry-run and allow them explicitly"
291
+ ],
292
+ [
293
+ "mirror.too-many-replacements",
294
+ "confirmation_required",
295
+ "the sync would replace more files than the guard allows; check them with --dry-run and allow them explicitly"
296
+ ],
297
+ validation("mirror.no-space", "the sync needs more free space than the local drive has"),
298
+ validation("mirror.bad-exclusion", "the exclusion is not a path pattern inside the mirror"),
299
+ [
300
+ "mirror.version-not-kept",
301
+ "provider_error",
302
+ "the earlier content could not be kept in the version store, so the sync did not replace it"
303
+ ],
304
+ ["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
305
+ ["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
306
+ ["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
228
307
  ["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
229
308
  ["catalog.not-found", "not_found", "the file or folder is not in the local catalog; run catalog import or sync"],
230
309
  validation("catalog.depth-invalid", "tree depth must be between 0 and 50"),
@@ -494,6 +573,14 @@ var OTHERS = [
494
573
  validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
495
574
  validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
496
575
  validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was, until --rescan"),
576
+ validation("content.unlisted-held", "a content id list would mark too much deleted, the sign-in read only part, or the site moved; nothing was"),
577
+ validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
578
+ validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
579
+ validation("content.schedule-past", "a post is scheduled for a time to come, not one that passed"),
580
+ validation("content.already-published", "a published post cannot be scheduled; unpublish it first"),
581
+ validation("content.empty", "a write names no field to set"),
582
+ ["content.get-unsupported", "configuration_error", "the source cannot read one post, author or term by its id"],
583
+ validation("content.write-unsupported", "the source does not take this write, such as a deletion past the trash"),
497
584
  validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
498
585
  validation("crm.unassigned-dropped", "the CRM does not let this sign-in choose a user in unassigned; that user's deals are not copied"),
499
586
  validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
@@ -699,6 +786,10 @@ var INPUT_FIELD_REASONS = defineReasons([
699
786
  details: ["fields"]
700
787
  }
701
788
  ]);
789
+ var DETAILED = {
790
+ "vocabulary.consolidation-over-budget": ["table"],
791
+ "chat-sending.ask": CHAT_SENDING_ASK_DETAILS
792
+ };
702
793
  var REASONS = defineReasons([
703
794
  ...QUERY_REASONS,
704
795
  ...INPUT_FIELD_REASONS,
@@ -706,7 +797,7 @@ var REASONS = defineReasons([
706
797
  reason,
707
798
  code,
708
799
  message,
709
- details: reason === "vocabulary.consolidation-over-budget" ? ["table"] : []
800
+ details: DETAILED[reason] ?? []
710
801
  }))
711
802
  ]);
712
803
  var DETAILS = [
@@ -801,6 +892,13 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
801
892
  }, "failureContext");
802
893
 
803
894
  export {
895
+ CHAT_SENDING_MODES,
896
+ readChatSending,
897
+ chatSendingMode,
898
+ writeChatSending,
899
+ loosens,
900
+ chatSendingAllowed,
901
+ chatSendingAskRefusal,
804
902
  INPUT_FIELD_REASONS,
805
903
  REASONS,
806
904
  failureContext
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-3TEFE6YU.js";
5
+ } from "./chunk-BW7NPFVC.js";
6
6
  import {
7
7
  WORD_BODY
8
- } from "./chunk-IQ2XZ62J.js";
8
+ } from "./chunk-POTS24SH.js";
9
9
  import {
10
10
  resolvePaths,
11
11
  writeSecurely
12
- } from "./chunk-X5S5KUSU.js";
12
+ } from "./chunk-AIQT2GGK.js";
13
13
  import {
14
14
  array,
15
15
  getDotPath,
@@ -32,12 +32,12 @@ import {
32
32
  import {
33
33
  CliError,
34
34
  visibleControls
35
- } from "./chunk-BUGROVF3.js";
35
+ } from "./chunk-PMGAU6AP.js";
36
36
  import {
37
37
  __name
38
38
  } from "./chunk-ZVVMGPBJ.js";
39
39
 
40
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/formatting.js
40
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/formatting.js
41
41
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
42
42
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
43
43
  const { text, spans } = formatted;
@@ -97,11 +97,11 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
97
97
  };
98
98
  }, "visibleFormattedText");
99
99
 
100
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/vcard.js
100
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/vcard.js
101
101
  var AS_WORD = new RegExp(`^${WORD_BODY}$`);
102
102
  var encoder = new TextEncoder();
103
103
 
104
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/moderation/check.js
104
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/moderation/check.js
105
105
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
106
106
  var LINK = /https?:\/\/\S+/i;
107
107
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -289,7 +289,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
289
289
  }, "nextPoint");
290
290
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
291
291
 
292
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/moderation/rules.js
292
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/moderation/rules.js
293
293
  import { existsSync, readdirSync, readFileSync } from "node:fs";
294
294
  import { join } from "node:path";
295
295
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-BUGROVF3.js";
5
+ } from "./chunk-PMGAU6AP.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
31
31
  var DESCRIBE_MAX_BYTES = 64 * 1024;
32
32
  var DISPATCH_FLAG = "--wcat-dispatch";
33
33
 
34
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
35
35
  var DESCRIBE_FORMAT = 1;
36
36
  var DESCRIBE_MANIFEST_FORMAT = 2;
37
37
  var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
74
74
  };
75
75
  }, "parseDescribe");
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
77
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
78
78
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
79
79
  import { join } from "node:path";
80
80
  var SHIM_FORMAT = 2;
@@ -8,10 +8,10 @@ import {
8
8
  annotateOption,
9
9
  listOf,
10
10
  sharedCommand
11
- } from "./chunk-PHXOL5HZ.js";
11
+ } from "./chunk-7RIE3DAW.js";
12
12
  import {
13
13
  readMoment
14
- } from "./chunk-WRCKE5ND.js";
14
+ } from "./chunk-CWCJEAHZ.js";
15
15
  import {
16
16
  BACKENDS,
17
17
  EVENT_QUERY,
@@ -51,15 +51,15 @@ import {
51
51
  validateMeetingHitSearch,
52
52
  validateMeetingPassage,
53
53
  validateQuery
54
- } from "./chunk-LT5KE44Q.js";
54
+ } from "./chunk-5ENY4POG.js";
55
55
  import {
56
56
  CliError
57
- } from "./chunk-BUGROVF3.js";
57
+ } from "./chunk-PMGAU6AP.js";
58
58
  import {
59
59
  __name
60
60
  } from "./chunk-ZVVMGPBJ.js";
61
61
 
62
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/moment.js
62
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/moment.js
63
63
  var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
64
64
  const found = readMoment(reference, flag, { ...at, now });
65
65
  if (found === void 0)
@@ -88,7 +88,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
88
88
  };
89
89
  }, "dateWindow");
90
90
 
91
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
91
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
92
92
  var REMOTE_READ = { remote: "read", local: "read" };
93
93
  var REMOTE_WRITE = { remote: "write", local: "write" };
94
94
  var minutes = /* @__PURE__ */ __name((text) => {
@@ -193,7 +193,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
193
193
  }).description("the invitation text the service writes for a meeting"))).action(async (id, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id, signalled()), untrusted: ["invitation"] } }, command)));
194
194
  }, "addMeetingManagementCommands");
195
195
 
196
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
196
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
197
197
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
198
198
  command.allowUnknownOption();
199
199
  const parse = command.parseOptions.bind(command);
@@ -213,7 +213,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
213
213
  return command;
214
214
  }, "queryWordsAfterOptions");
215
215
 
216
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
216
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
217
217
  var count = /* @__PURE__ */ __name((value) => {
218
218
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
219
219
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -255,7 +255,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
255
255
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
256
256
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
257
257
 
258
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
258
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
259
259
  var integer = /* @__PURE__ */ __name((value) => {
260
260
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
261
261
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -278,7 +278,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
278
278
  }, "addMeetingProjectEvidenceCommandDefinition");
279
279
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
280
280
 
281
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
281
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
282
282
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
283
283
  const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
284
284
  if (meta.timezone)
@@ -357,7 +357,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
357
357
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
358
358
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
359
359
 
360
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
360
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
361
361
  var EVENT_UNTRUSTED = ["title", "description", "location"];
362
362
  var integer3 = /* @__PURE__ */ __name((text) => {
363
363
  if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
@@ -543,7 +543,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
543
543
  }, "addMeetingCommandsDefinition");
544
544
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
545
545
 
546
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/list-query.js
546
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/list-query.js
547
547
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
548
548
  var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
549
549
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
@@ -556,6 +556,11 @@ var withQuery = /* @__PURE__ */ __name((command, registry) => {
556
556
  ${fieldsHelp({ ...query, fields: shown }, LIST_QUERY_GUIDE)}`);
557
557
  return command;
558
558
  }, "withQuery");
559
+ var withWords = /* @__PURE__ */ __name((command, registry, words) => {
560
+ annotate(command, { query: defineQuery(registry), output: { entity: registry.entity } });
561
+ queryWordsAfterOptions(command).argument("[query...]", words);
562
+ return command;
563
+ }, "withWords");
559
564
  var unfilteredQuery = /* @__PURE__ */ __name((entity, schema) => ({
560
565
  entity,
561
566
  backend: "native",
@@ -662,7 +667,7 @@ var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf(), now) => {
662
667
  const range = dateRange(term.value, upper, term.operator === "range" ? term.lower_inclusive !== false : true, term.operator === "range" ? term.upper_inclusive !== false : true, zone, term.span, now);
663
668
  const until = range.upper === void 0 ? void 0 : range.upper - (range.upper_inclusive ? 0 : 1);
664
669
  return {
665
- ...range.lower === void 0 ? {} : { since: range.lower },
670
+ ...range.lower === void 0 ? {} : { since: range.lower, from: range.lower_inclusive ? range.lower : range.lower + 1 },
666
671
  ...until === void 0 ? {} : { until },
667
672
  meta: {
668
673
  timezone: zone,
@@ -685,7 +690,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
685
690
  var queryHelp = /* @__PURE__ */ __name((registry) => `
686
691
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
687
692
 
688
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/ports/messenger.js
693
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/ports/messenger.js
689
694
  var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
690
695
  get: /* @__PURE__ */ __name((own, key) => {
691
696
  if (key in own)
@@ -716,6 +721,7 @@ export {
716
721
  LIST_QUERY_GUIDE,
717
722
  QUERY_ARGUMENT,
718
723
  withQuery,
724
+ withWords,
719
725
  unfilteredQuery,
720
726
  commandPath,
721
727
  listQuery,
@@ -4,9 +4,9 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
- import { Readable } from "node:stream";
9
+ import { pipeline, Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
11
11
  var TooLarge = class extends Error {
12
12
  static {
@@ -49,8 +49,7 @@ var send = /* @__PURE__ */ __name(async (response, outgoing) => {
49
49
  if (!response.body)
50
50
  return void outgoing.end();
51
51
  const body = Readable.fromWeb(response.body);
52
- outgoing.once("close", () => body.destroy());
53
- body.pipe(outgoing);
52
+ pipeline(body, outgoing, () => void 0);
54
53
  }, "send");
55
54
  var listen = /* @__PURE__ */ __name((handle, { host, port, maxBody = MAX_BODY }) => new Promise((resolve, reject) => {
56
55
  const server = createServer((incoming, outgoing) => {