@wirecat/mail-cli 0.8.0 → 0.10.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 (151) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-MXGDUBAM.js → all-profiles-OJPRIFKU.js} +9 -9
  4. package/dist/bundle/{anthropic-A2QA4W7L.js → anthropic-3AXHD4WH.js} +6 -6
  5. package/dist/bundle/{app-server-PMIMK6FK.js → app-server-V4KHCUGE.js} +45 -46
  6. package/dist/bundle/{bun-3UW3LFNL.js → bun-ISYNUTQJ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-TGFZFKAX.js → bun-sqlite-FH3D4AXL.js} +5 -5
  8. package/dist/bundle/{chunk-W7H3PZ67.js → chunk-2TTCKOQ7.js} +2 -2
  9. package/dist/bundle/{chunk-U4IF2MOB.js → chunk-35Y3INBK.js} +2 -2
  10. package/dist/bundle/{chunk-Q5DOXSBM.js → chunk-44LVUMS2.js} +1 -1
  11. package/dist/bundle/{chunk-ZKAT6I2I.js → chunk-4D52FA34.js} +1 -1
  12. package/dist/bundle/{chunk-L3KMVMRJ.js → chunk-4DPICEPQ.js} +2 -2
  13. package/dist/bundle/{chunk-PXCIM6D5.js → chunk-4GPPRLIG.js} +7 -42
  14. package/dist/bundle/{chunk-BEUQ2X7U.js → chunk-5TACUBRJ.js} +8 -8
  15. package/dist/bundle/{chunk-EN3UZPGB.js → chunk-6LNRNQHJ.js} +4 -4
  16. package/dist/bundle/{chunk-6U6Z3GXR.js → chunk-6QNPJSRM.js} +6 -6
  17. package/dist/bundle/{chunk-5W74YMCK.js → chunk-6UT3MXOB.js} +3 -3
  18. package/dist/bundle/{chunk-TCWJYOZV.js → chunk-AJ4JS2ZR.js} +36 -11
  19. package/dist/bundle/{chunk-NEBO3NZU.js → chunk-BYQ3Z6UL.js} +3 -3
  20. package/dist/bundle/{chunk-Z5GDZ3QF.js → chunk-DN54W657.js} +2 -2
  21. package/dist/bundle/{chunk-RFWTPSJX.js → chunk-F3QDSQ7V.js} +34 -28
  22. package/dist/bundle/{chunk-YS2WUWY7.js → chunk-FYMQPAE5.js} +4 -4
  23. package/dist/bundle/{chunk-NI6WX55Z.js → chunk-G2WDY5XB.js} +2 -2
  24. package/dist/bundle/{chunk-EU35YQXE.js → chunk-GAIVTJ3E.js} +121 -32
  25. package/dist/bundle/{chunk-J5RKMQ6A.js → chunk-GFCNSU3B.js} +48 -48
  26. package/dist/bundle/{chunk-L2ZHPIFC.js → chunk-GUFWLTOW.js} +2 -2
  27. package/dist/bundle/{chunk-CMNFLAUG.js → chunk-GYNHU56E.js} +4 -4
  28. package/dist/bundle/{chunk-BCDPLG7T.js → chunk-HVVLSCFB.js} +1 -1
  29. package/dist/bundle/{chunk-EVO77D3Y.js → chunk-IG2WXKIT.js} +8 -8
  30. package/dist/bundle/{chunk-QBBKSCQD.js → chunk-IWHXM2S7.js} +1620 -671
  31. package/dist/bundle/{chunk-KBKEZV4L.js → chunk-IXYKM7OJ.js} +13 -13
  32. package/dist/bundle/{chunk-ZISFMUYB.js → chunk-JAWJZTFL.js} +18 -18
  33. package/dist/bundle/{chunk-PEF637VV.js → chunk-JIIEJLAX.js} +4 -4
  34. package/dist/bundle/{chunk-DLB2JPLU.js → chunk-JNUKTAMZ.js} +1 -1
  35. package/dist/bundle/{chunk-DM4ULDS3.js → chunk-K2F7YMMM.js} +6 -6
  36. package/dist/bundle/{chunk-NWKLBZN5.js → chunk-KJP2B65C.js} +30 -30
  37. package/dist/bundle/{chunk-CRS63C3T.js → chunk-KQXLRAHT.js} +2 -5
  38. package/dist/bundle/{chunk-4QDBMYK4.js → chunk-KVN4RY7E.js} +52 -53
  39. package/dist/bundle/{chunk-DYCPBLUC.js → chunk-L3PVAY3M.js} +2 -2
  40. package/dist/bundle/{chunk-W5J6I5GW.js → chunk-LIQ5LICB.js} +3 -3
  41. package/dist/bundle/{chunk-SZ5PKNDF.js → chunk-LXHLQ6RK.js} +7 -7
  42. package/dist/bundle/{chunk-XWNCXFR5.js → chunk-MDIRW3AT.js} +2 -2
  43. package/dist/bundle/{chunk-LN7TNZIS.js → chunk-N6P55LDU.js} +84 -8
  44. package/dist/bundle/{chunk-7JUTNCQX.js → chunk-NBQQ2ZTF.js} +19 -14
  45. package/dist/bundle/{chunk-NAIJNJZZ.js → chunk-NSDOYHIS.js} +10 -8
  46. package/dist/bundle/{chunk-UR6WHUJF.js → chunk-OHC4GVWV.js} +2 -2
  47. package/dist/bundle/{chunk-6JK46V5X.js → chunk-PLPSFJO6.js} +6 -6
  48. package/dist/bundle/{chunk-RVZ4JIRR.js → chunk-PSXAC6OO.js} +1 -1
  49. package/dist/bundle/{chunk-WS4L47DG.js → chunk-QB54TE52.js} +1 -1
  50. package/dist/bundle/{chunk-KF4YULWC.js → chunk-QPQSMJBW.js} +10 -10
  51. package/dist/bundle/{chunk-WWNAQ75T.js → chunk-S64N24ON.js} +3 -3
  52. package/dist/bundle/{chunk-J6ACLZKV.js → chunk-SW5NVASW.js} +9 -9
  53. package/dist/bundle/{chunk-FSBKLJXM.js → chunk-SYBMOE6F.js} +865 -838
  54. package/dist/bundle/{chunk-VSDVH2M2.js → chunk-T3AGR4TI.js} +4840 -894
  55. package/dist/bundle/{chunk-KEZHPPMI.js → chunk-TTKNBUMT.js} +45 -5
  56. package/dist/bundle/{chunk-ROZBXOES.js → chunk-TZGQPTZ2.js} +1 -1
  57. package/dist/bundle/{chunk-AO3XYONW.js → chunk-UDJIC6YL.js} +67 -30
  58. package/dist/bundle/{chunk-2MQXXPPK.js → chunk-V6K2GX2Y.js} +17 -17
  59. package/dist/bundle/{chunk-2KZJWBXB.js → chunk-VEXXVLBM.js} +3 -3
  60. package/dist/bundle/{chunk-TMQA4KR7.js → chunk-WL7CYT7O.js} +1 -1
  61. package/dist/bundle/{chunk-6J3DKKOV.js → chunk-X37KLD23.js} +14 -14
  62. package/dist/bundle/{chunk-5PWKPRTD.js → chunk-XTIQFMZH.js} +4 -4
  63. package/dist/bundle/{chunk-OAQ4UB6V.js → chunk-YDUES6ET.js} +4 -4
  64. package/dist/bundle/{chunk-VGR3AGAC.js → chunk-YRZ23RCS.js} +164 -59
  65. package/dist/bundle/command-contract-TW44FY47.js +33 -0
  66. package/dist/bundle/{decode-NF4TGOR3.js → decode-FM4C2WWG.js} +5 -5
  67. package/dist/bundle/{dispatch-5C6XNGEE.js → dispatch-K3HG4RYT.js} +8 -8
  68. package/dist/bundle/{dist-DVYY3YFG.js → dist-7LNVI7VB.js} +17 -13
  69. package/dist/bundle/{echarts-F3USGP5B.js → echarts-5C2A72XM.js} +2 -2
  70. package/dist/bundle/{embed-2RXV3BEC.js → embed-N56P6YVY.js} +6 -6
  71. package/dist/bundle/{embedder-I2SJMC6N.js → embedder-QLYKFLOL.js} +9 -9
  72. package/dist/bundle/{failure-YRGRZBTX.js → failure-5ZLVZTRU.js} +2 -2
  73. package/dist/bundle/{first-run-3GA7YCKZ.js → first-run-VMF4PJ7Q.js} +11 -11
  74. package/dist/bundle/first-screen-ZN7ODW5K.js +31 -0
  75. package/dist/bundle/{instructions-VHI5CWH5.js → instructions-QA5FHDOJ.js} +1 -1
  76. package/dist/bundle/mail.js +12 -12
  77. package/dist/bundle/{mcp-B25MZCS7.js → mcp-LO2XDBBC.js} +2 -2
  78. package/dist/bundle/{node-4RBB3RDY.js → node-OXJZWUYZ.js} +2 -2
  79. package/dist/bundle/{node-sqlite-FWYX3P2D.js → node-sqlite-7GCEI67B.js} +5 -5
  80. package/dist/bundle/{oauth-6JKKRGLX.js → oauth-VTPIYBTP.js} +7 -7
  81. package/dist/bundle/{open-7JSNC3MR.js → open-7XX3YF2X.js} +4 -4
  82. package/dist/bundle/{openai-ASLWL3D6.js → openai-D3KRCXSY.js} +14 -14
  83. package/dist/bundle/{process-AB2D2G2Q.js → process-KFI7SXQD.js} +1 -1
  84. package/dist/bundle/{program-ZJPQ3IDU.js → program-OJUWUHHC.js} +1355 -864
  85. package/dist/bundle/{prompt-JDFVQR3L.js → prompt-TBZT3APW.js} +5 -5
  86. package/dist/bundle/{recognize-PKYA4HRC.js → recognize-WQSE5ZPL.js} +4 -4
  87. package/dist/bundle/{remote-USBVVO4O.js → remote-J5HHRNVQ.js} +7 -7
  88. package/dist/bundle/{rerank-UBMV6KO6.js → rerank-DP2Y3WDT.js} +7 -7
  89. package/dist/bundle/{serve-SVS3YOYS.js → serve-VXPOQDQO.js} +9 -9
  90. package/dist/bundle/{server-7PZMYXY6.js → server-OSBNGA2F.js} +37 -38
  91. package/dist/bundle/server-XHWSCXVX.js +62 -0
  92. package/dist/bundle/{sqlite-runtime-IDPTXAM7.js → sqlite-runtime-XY32WOIT.js} +5 -5
  93. package/dist/bundle/{state-6G2TSVP7.js → state-KPOPMR6O.js} +6 -6
  94. package/dist/bundle/{store-7A464D4X.js → store-FWRGNGP3.js} +25 -17
  95. package/dist/bundle/{store-L56GFI4P.js → store-UBI2YCRC.js} +13 -13
  96. package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +52 -0
  97. package/dist/commands/login.d.ts.map +1 -1
  98. package/dist/commands/login.js +2 -1
  99. package/dist/commands/login.js.map +1 -1
  100. package/dist/commands/session-start.d.ts.map +1 -1
  101. package/dist/commands/session-start.js +3 -3
  102. package/dist/commands/session-start.js.map +1 -1
  103. package/dist/commands/sync.d.ts.map +1 -1
  104. package/dist/commands/sync.js +22 -7
  105. package/dist/commands/sync.js.map +1 -1
  106. package/dist/config.d.ts +6 -0
  107. package/dist/config.d.ts.map +1 -1
  108. package/dist/mail/imap/connection.d.ts.map +1 -1
  109. package/dist/mail/imap/connection.js +6 -4
  110. package/dist/mail/imap/connection.js.map +1 -1
  111. package/dist/mail/imap/errors.d.ts +7 -0
  112. package/dist/mail/imap/errors.d.ts.map +1 -1
  113. package/dist/mail/imap/errors.js +8 -4
  114. package/dist/mail/imap/errors.js.map +1 -1
  115. package/dist/mail/imap/read.d.ts.map +1 -1
  116. package/dist/mail/imap/read.js +36 -20
  117. package/dist/mail/imap/read.js.map +1 -1
  118. package/dist/mail/imap/search.d.ts +7 -2
  119. package/dist/mail/imap/search.d.ts.map +1 -1
  120. package/dist/mail/imap/search.js +13 -7
  121. package/dist/mail/imap/search.js.map +1 -1
  122. package/dist/mail/imap/write.d.ts.map +1 -1
  123. package/dist/mail/imap/write.js +2 -1
  124. package/dist/mail/imap/write.js.map +1 -1
  125. package/dist/mail/organise.d.ts.map +1 -1
  126. package/dist/mail/organise.js +92 -87
  127. package/dist/mail/organise.js.map +1 -1
  128. package/dist/mail/send.d.ts.map +1 -1
  129. package/dist/mail/send.js +26 -5
  130. package/dist/mail/send.js.map +1 -1
  131. package/dist/oauth.d.ts +2 -8
  132. package/dist/oauth.d.ts.map +1 -1
  133. package/dist/oauth.js +6 -40
  134. package/dist/oauth.js.map +1 -1
  135. package/dist/providers.d.ts.map +1 -1
  136. package/dist/providers.js +2 -1
  137. package/dist/providers.js.map +1 -1
  138. package/dist/reasons.d.ts.map +1 -1
  139. package/dist/reasons.js +0 -3
  140. package/dist/reasons.js.map +1 -1
  141. package/dist/version.d.ts +1 -1
  142. package/dist/version.d.ts.map +1 -1
  143. package/dist/version.js +1 -1
  144. package/dist/version.js.map +1 -1
  145. package/package.json +3 -3
  146. package/dist/bundle/chunk-NSODLSEL.js +0 -3604
  147. package/dist/bundle/command-contract-Q32SL5KX.js +0 -34
  148. package/dist/bundle/first-screen-JFIXKYAK.js +0 -32
  149. package/dist/bundle/server-KA7Q5XCL.js +0 -63
  150. package/dist/bundle/store-maintenance-command-2LM4GOI3.js +0 -52
  151. /package/dist/bundle/{chunk-EKRM2QJB.js → chunk-MRLSUCHT.js} +0 -0
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-6U6Z3GXR.js";
5
+ } from "./chunk-6QNPJSRM.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-L3KMVMRJ.js";
8
+ } from "./chunk-4DPICEPQ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -5,16 +5,19 @@ import {
5
5
  fieldsOf,
6
6
  processStreams,
7
7
  projectFields
8
- } from "./chunk-ZISFMUYB.js";
8
+ } from "./chunk-JAWJZTFL.js";
9
+ import {
10
+ COMPACT_FLAG
11
+ } from "./chunk-NSDOYHIS.js";
9
12
  import {
10
13
  CliError,
11
14
  singleLine
12
- } from "./chunk-L3KMVMRJ.js";
15
+ } from "./chunk-4DPICEPQ.js";
13
16
  import {
14
17
  __name
15
18
  } from "./chunk-ZVVMGPBJ.js";
16
19
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/sends/permissions.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/sends/permissions.js
18
21
  var LEVELS = ["deny", "readonly", "ask", "allow"];
19
22
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
20
23
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -409,7 +412,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
409
412
  }
410
413
  }, "assertRetentionEvidenceRead");
411
414
 
412
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
415
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
413
416
  var named = /* @__PURE__ */ __name((work) => {
414
417
  try {
415
418
  return work();
@@ -436,13 +439,19 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
436
439
  return projectFields(value, fields);
437
440
  }), "projectFields");
438
441
 
439
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/output-detail.js
442
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/output-detail.js
440
443
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
441
444
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
442
- var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
445
+ var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
446
+ var isRecord = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null, "isRecord");
447
+ var isSnakeHit = /* @__PURE__ */ __name((value) => isRecord(value) && typeof value.ref === "string" && typeof value.excerpt === "string", "isSnakeHit");
448
+ var isHit = /* @__PURE__ */ __name((value) => isSnakeHit(value) || isRecord(value) && typeof value.locator === "string" && typeof value.text === "string", "isHit");
449
+ var picked = /* @__PURE__ */ __name((hit, keys) => Object.fromEntries(keys.flatMap((key) => hit[key] === void 0 || hit[key] === null ? [] : [[key, hit[key]]])), "picked");
443
450
  var shaped = /* @__PURE__ */ __name((hit, detail) => {
451
+ if (isSnakeHit(hit))
452
+ return detail === "brief" ? picked(hit, SNAKE_BRIEF) : hit;
444
453
  if (detail === "brief")
445
- return Object.fromEntries(BRIEF.flatMap((key) => hit[key] === void 0 || hit[key] === null ? [] : [[key, hit[key]]]));
454
+ return picked(hit, BRIEF);
446
455
  const { text, providerMetadata, ...rest } = hit;
447
456
  for (const key of RARELY_SET)
448
457
  if (rest[key] === null)
@@ -466,10 +475,20 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
466
475
  return value;
467
476
  }, "atDetail");
468
477
 
469
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/output.js
470
- var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
478
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/output.js
479
+ var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
480
+ const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
481
+ if (other)
482
+ throw new CliError("validation_error", `${COMPACT_FLAG} and ${other} ask for different output \u2014 pick one`, {
483
+ reason: "output.conflict",
484
+ param: COMPACT_FLAG
485
+ });
486
+ }, "refuseCompact");
487
+ var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture, compact } = {}) => {
488
+ if (compact)
489
+ refuseCompact({ json, jsonl, fields, hitDetail });
471
490
  const interactive = tty ?? process.stdout.isTTY === true;
472
- const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
491
+ const format = jsonl ? "jsonl" : json || compact || !interactive ? "json" : "pretty";
473
492
  const painted = format === "pretty" && (color ?? (env.NO_COLOR === void 0 && env.TERM !== "dumb" && !env.CI));
474
493
  const printing = createRenderer({ format, color: painted, streams });
475
494
  const rendered = capture ? { ...printing, result: capture, stream: /* @__PURE__ */ __name((items) => capture([...items]), "stream") } : printing;
@@ -486,7 +505,13 @@ var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = proc
486
505
  result: /* @__PURE__ */ __name((value) => created.result(projectFields2(value, paths)), "result"),
487
506
  stream: /* @__PURE__ */ __name((items) => created.stream([...items].map((item) => projectFields2(item, paths))), "stream")
488
507
  } : created;
489
- return { format, color: painted, streams, renderer: quiet ? silence(renderer) : renderer };
508
+ return {
509
+ format,
510
+ color: painted,
511
+ streams,
512
+ renderer: quiet ? silence(renderer) : renderer,
513
+ ...compact ? { compact: true, full: hitDetail === "full" } : {}
514
+ };
490
515
  }, "resolveOutput");
491
516
  var MULTI_LINE = /* @__PURE__ */ new Set(["text", "description"]);
492
517
  var oneLineFields = /* @__PURE__ */ __name((renderer) => ({
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-Q5DOXSBM.js";
5
+ } from "./chunk-44LVUMS2.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
9
- } from "./chunk-ZISFMUYB.js";
9
+ } from "./chunk-JAWJZTFL.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-CMNFLAUG.js";
11
+ } from "./chunk-GYNHU56E.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -6,13 +6,13 @@ import {
6
6
  agentArguments,
7
7
  agentJson,
8
8
  commandAvailability
9
- } from "./chunk-7JUTNCQX.js";
9
+ } from "./chunk-NBQQ2ZTF.js";
10
10
  import {
11
11
  failureContext
12
- } from "./chunk-KEZHPPMI.js";
12
+ } from "./chunk-TTKNBUMT.js";
13
13
  import {
14
14
  callerOf
15
- } from "./chunk-NI6WX55Z.js";
15
+ } from "./chunk-G2WDY5XB.js";
16
16
  import {
17
17
  QUERY_ARGUMENT,
18
18
  lentConnection,
@@ -20,15 +20,13 @@ import {
20
20
  refuseLacking,
21
21
  servicesFor,
22
22
  storeModeDeps
23
- } from "./chunk-FSBKLJXM.js";
23
+ } from "./chunk-SYBMOE6F.js";
24
24
  import {
25
25
  MAX_BUFFERED_INPUT
26
- } from "./chunk-DYCPBLUC.js";
27
- import {
28
- ENTITIES
29
- } from "./chunk-NSODLSEL.js";
26
+ } from "./chunk-L3PVAY3M.js";
30
27
  import {
31
28
  DEFAULT_OUTPUT_BYTES,
29
+ ENTITIES,
32
30
  LOCAL_WRITE,
33
31
  REMOTE_WRITE,
34
32
  answerSchema,
@@ -44,28 +42,29 @@ import {
44
42
  sealed,
45
43
  startRecording,
46
44
  traceOf
47
- } from "./chunk-VSDVH2M2.js";
45
+ } from "./chunk-T3AGR4TI.js";
48
46
  import {
49
47
  authorityAllowed,
50
48
  botApiAllowed,
51
49
  keyForCommand,
52
50
  levelFor,
53
51
  readKeysForCommand
54
- } from "./chunk-TCWJYOZV.js";
52
+ } from "./chunk-AJ4JS2ZR.js";
55
53
  import {
56
54
  currentCaller,
57
55
  keepsSuccess,
58
56
  runContextOf,
59
57
  withCaller
60
- } from "./chunk-J6ACLZKV.js";
58
+ } from "./chunk-SW5NVASW.js";
61
59
  import {
62
60
  queryDescription
63
- } from "./chunk-4QDBMYK4.js";
61
+ } from "./chunk-KVN4RY7E.js";
64
62
  import {
65
63
  captureStreams,
66
64
  traceIdOf
67
- } from "./chunk-ZISFMUYB.js";
65
+ } from "./chunk-JAWJZTFL.js";
68
66
  import {
67
+ COMPACT_FLAG,
69
68
  SNAKE_CASE,
70
69
  array,
71
70
  boolean,
@@ -102,19 +101,19 @@ import {
102
101
  unknown,
103
102
  word,
104
103
  writes
105
- } from "./chunk-NAIJNJZZ.js";
104
+ } from "./chunk-NSDOYHIS.js";
106
105
  import {
107
106
  CliError,
108
107
  errorCodes
109
- } from "./chunk-L3KMVMRJ.js";
108
+ } from "./chunk-4DPICEPQ.js";
110
109
  import {
111
110
  __name
112
111
  } from "./chunk-ZVVMGPBJ.js";
113
112
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/agent.js
113
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/agent.js
115
114
  import { Readable } from "node:stream";
116
115
 
117
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
116
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
118
117
  var LINT_SEVERITIES = ["high", "medium", "low"];
119
118
  var lintRuleSchema = strictObject({
120
119
  id: word,
@@ -241,7 +240,7 @@ var overridesSchema = array(strictObject({
241
240
  review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
242
241
  }));
243
242
 
244
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
243
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
245
244
  var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
246
245
  var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
247
246
  var AUDIT_RULES = defineAuditRules([
@@ -350,7 +349,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
350
349
  { path: ["upgrade"], meaning: "updates the CLI" }
351
350
  ]);
352
351
 
353
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
352
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
354
353
  var fieldRuleSchema = strictObject({ id: word, rule: text });
355
354
  var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
356
355
  var FIELD_RULES = defineFieldRules([
@@ -366,7 +365,7 @@ var FIELD_RULES = defineFieldRules([
366
365
  }
367
366
  ]);
368
367
 
369
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
368
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
370
369
  var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
371
370
  var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
372
371
  var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
@@ -388,7 +387,7 @@ var IDENTIFIERS = defineIdentifiers([
388
387
  { key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
389
388
  ]);
390
389
 
391
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
390
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
392
391
  var CALENDAR_FLAGS = [
393
392
  { name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
394
393
  {
@@ -462,7 +461,7 @@ var CALENDAR_FLAGS = [
462
461
  }
463
462
  ];
464
463
 
465
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
464
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
466
465
  var HOW_FLAGS = [
467
466
  {
468
467
  name: "--limit",
@@ -549,6 +548,12 @@ var HOW_FLAGS = [
549
548
  type: "switch",
550
549
  meaning: "each item as its reference, title, time and excerpt only"
551
550
  },
551
+ {
552
+ name: COMPACT_FLAG,
553
+ role: "output",
554
+ type: "switch",
555
+ meaning: "one line per item, built from the same answer as --json, with its paging and next steps as # lines"
556
+ },
552
557
  {
553
558
  name: "--chart-kind",
554
559
  value: "<messages|active|membership>",
@@ -1449,7 +1454,7 @@ var HOW_FLAGS = [
1449
1454
  }
1450
1455
  ];
1451
1456
 
1452
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1457
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
1453
1458
  var MAIL_FLAGS = [
1454
1459
  {
1455
1460
  name: "--cc",
@@ -1473,7 +1478,7 @@ var MAIL_FLAGS = [
1473
1478
  }
1474
1479
  ];
1475
1480
 
1476
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1481
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
1477
1482
  var WHAT_FLAGS = [
1478
1483
  {
1479
1484
  name: "--analysis-provider",
@@ -2471,7 +2476,7 @@ var WHAT_FLAGS = [
2471
2476
  }
2472
2477
  ];
2473
2478
 
2474
- // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2479
+ // node_modules/.pnpm/@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
2475
2480
  var FLAG_TYPES = [
2476
2481
  "switch",
2477
2482
  "count",
@@ -2627,6 +2632,7 @@ var verbs = [
2627
2632
  ["vote", "answer a poll"],
2628
2633
  ["answer", "reply to a button someone pressed under a bot's message"],
2629
2634
  ["respond", "answer an invitation: accept, tentatively accept or decline it"],
2635
+ ["remind", "tell the owner once about what starts soon: print it, or run the owner's own program for it"],
2630
2636
  ["press", "press a button under a bot's message; the bot sees who pressed it"],
2631
2637
  ["action", "show what a bot is doing in a chat, such as typing, for a few seconds"],
2632
2638
  ["watch", "follow new events as they come, and keep them"],
@@ -2831,7 +2837,7 @@ var VOCABULARY = defineVocabulary({
2831
2837
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2832
2838
  });
2833
2839
 
2834
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2840
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2835
2841
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2836
2842
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2837
2843
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3054,7 +3060,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3054
3060
  }
3055
3061
  }, "runCommandForAgent");
3056
3062
 
3057
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3063
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3058
3064
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3059
3065
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3060
3066
  var message = pipe(
@@ -3313,7 +3319,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3313
3319
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3314
3320
  }, "failed");
3315
3321
 
3316
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3322
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3317
3323
  import { randomUUID } from "node:crypto";
3318
3324
  var MATCHES = 8;
3319
3325
  var ANSWER = answerSchema();
@@ -5,15 +5,15 @@ import {
5
5
  } from "./chunk-Y5E2WNWB.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-L3KMVMRJ.js";
8
+ } from "./chunk-4DPICEPQ.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/recognize.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/recognize.js
14
14
  import { createRequire } from "node:module";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
17
17
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
18
18
  var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
19
19
  const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
70
70
  throw invalid();
71
71
  }, "checkOggDuration");
72
72
 
73
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/recognize.js
73
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/speech/recognize.js
74
74
  var SAMPLE_RATE = 16e3;
75
75
  var LEAD = SAMPLE_RATE / 2;
76
76
  var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-J6ACLZKV.js";
32
+ } from "./chunk-SW5NVASW.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")