@wirecat/cli-memo 0.131.76 → 0.131.77

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 (154) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bin/memo.js.map +1 -1
  3. package/dist/bundle/{all-profiles-CGQTLFDM.js → all-profiles-4UWCPMRQ.js} +10 -8
  4. package/dist/bundle/{anthropic-C744EPRR.js → anthropic-HECHQVOK.js} +7 -5
  5. package/dist/bundle/{app-server-LOH7WXAB.js → app-server-GQEQWFYQ.js} +42 -40
  6. package/dist/bundle/auto-3O7JD27U.js +91 -0
  7. package/dist/bundle/{bun-SQWZDSWT.js → bun-IWGIAD7H.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-YVBFXNWB.js → bun-sqlite-VJFM4TVN.js} +7 -5
  9. package/dist/bundle/{chunk-7OZEQIK7.js → chunk-2DLCQ4AK.js} +1 -1
  10. package/dist/bundle/{chunk-W46O6RJ5.js → chunk-2IQWMWMC.js} +42 -130
  11. package/dist/bundle/{chunk-4O2MYFYC.js → chunk-3EPBPSP6.js} +1 -1
  12. package/dist/bundle/{chunk-KEBL3PY4.js → chunk-3QBRLN6T.js} +2 -2
  13. package/dist/bundle/{chunk-NE3UIK5P.js → chunk-3URQNBDV.js} +2 -2
  14. package/dist/bundle/{chunk-SF2OLWBU.js → chunk-4EFQOTNQ.js} +7 -7
  15. package/dist/bundle/{chunk-5NY7U6CM.js → chunk-4VO2RJAE.js} +12 -10
  16. package/dist/bundle/{chunk-AUCXJVUI.js → chunk-5APYWW46.js} +34 -32
  17. package/dist/bundle/{chunk-VYCLOFPC.js → chunk-6A37YXAL.js} +6 -184
  18. package/dist/bundle/{chunk-RTSRESGX.js → chunk-6RN34ZWU.js} +6 -6
  19. package/dist/bundle/{chunk-7PSGKP3R.js → chunk-6VISMU6R.js} +8 -8
  20. package/dist/bundle/{chunk-AI6PMW7L.js → chunk-76T57Y3Q.js} +6 -6
  21. package/dist/bundle/{chunk-V6CRCAWN.js → chunk-7YALAAL4.js} +364 -305
  22. package/dist/bundle/{chunk-KA5MDFLU.js → chunk-A3QZXQI3.js} +1 -1
  23. package/dist/bundle/{chunk-YSOTOUHJ.js → chunk-A54EZ6DV.js} +15 -15
  24. package/dist/bundle/{chunk-MODHP5VA.js → chunk-AH6V2UJZ.js} +22 -18
  25. package/dist/bundle/{chunk-2EZFUIL4.js → chunk-BA6GHX5B.js} +27 -27
  26. package/dist/bundle/{chunk-TPWAXJUQ.js → chunk-BFEXVALS.js} +1 -1
  27. package/dist/bundle/{chunk-H3WELZYK.js → chunk-BNOSAHVH.js} +3 -3
  28. package/dist/bundle/{chunk-Z3NRIW4M.js → chunk-C3HS26N5.js} +1 -1
  29. package/dist/bundle/{chunk-6RPLAGAL.js → chunk-CFZZUGUD.js} +22 -22
  30. package/dist/bundle/{chunk-KYLKZKQ7.js → chunk-CPKS7JKX.js} +2 -2
  31. package/dist/bundle/{chunk-4DTJF6E7.js → chunk-D7KQYLAN.js} +8 -8
  32. package/dist/bundle/{chunk-N2FIIVJV.js → chunk-DE5BNDIA.js} +4 -4
  33. package/dist/bundle/{chunk-LLBZDBPT.js → chunk-DJYMK7EI.js} +4 -4
  34. package/dist/bundle/{chunk-YRJ2576I.js → chunk-DNPE4LOZ.js} +11 -11
  35. package/dist/bundle/chunk-EXFRC4OT.js +106 -0
  36. package/dist/bundle/{chunk-ODCHYVTW.js → chunk-EY46RMMS.js} +158 -154
  37. package/dist/bundle/{chunk-C7OOLF5J.js → chunk-HFZHXP4U.js} +6 -6
  38. package/dist/bundle/{chunk-Y7YXXWQI.js → chunk-HKDUGTWQ.js} +3 -3
  39. package/dist/bundle/{chunk-7XFJRX6F.js → chunk-HWIKY7KF.js} +3 -3
  40. package/dist/bundle/{chunk-ZHAHSVQO.js → chunk-INXIJXU2.js} +7 -7
  41. package/dist/bundle/{chunk-YNXQAB4X.js → chunk-IYINNZQE.js} +11 -11
  42. package/dist/bundle/{chunk-42UNPXTC.js → chunk-JKLJM7EG.js} +2 -2
  43. package/dist/bundle/{chunk-GB64N6DP.js → chunk-JSGRDE5Q.js} +298 -297
  44. package/dist/bundle/{chunk-O3KNZVDZ.js → chunk-JTLPFUIQ.js} +4 -4
  45. package/dist/bundle/{chunk-TXVXEE7L.js → chunk-KTBPBMNR.js} +6 -6
  46. package/dist/bundle/{chunk-NM4QMIOQ.js → chunk-KYW7RWGE.js} +3 -3
  47. package/dist/bundle/{chunk-OEH5JUAL.js → chunk-LHVNZ25W.js} +13 -13
  48. package/dist/bundle/{chunk-OJU774SG.js → chunk-LO74ISD6.js} +4 -4
  49. package/dist/bundle/{chunk-GBU4U55M.js → chunk-M4MM4QUM.js} +1 -1
  50. package/dist/bundle/{chunk-TD4HM7XL.js → chunk-MRUE3BWX.js} +1 -1
  51. package/dist/bundle/{chunk-ZIA7AU7L.js → chunk-MZHH5XMX.js} +2 -2
  52. package/dist/bundle/{chunk-3NCRQMEN.js → chunk-NGWUFB4K.js} +1 -1
  53. package/dist/bundle/{chunk-DDSKTPU7.js → chunk-OAWNQZ3V.js} +4 -4
  54. package/dist/bundle/{chunk-YD7XTYEC.js → chunk-OB3OPV55.js} +6 -6
  55. package/dist/bundle/{chunk-5AQIET5P.js → chunk-OQSIFLZS.js} +2 -2
  56. package/dist/bundle/{chunk-6YRVBXFH.js → chunk-PPARTGFE.js} +10 -10
  57. package/dist/bundle/{chunk-VFJAGY3L.js → chunk-QNJ6O6J4.js} +3 -3
  58. package/dist/bundle/{chunk-TGURQ4YH.js → chunk-S5T4SO7I.js} +2 -2
  59. package/dist/bundle/{chunk-W5ARY4U2.js → chunk-SHO3T3F2.js} +4 -4
  60. package/dist/bundle/{chunk-HAMGOLFU.js → chunk-TFXKS2WG.js} +1 -1
  61. package/dist/bundle/{chunk-47WS4BML.js → chunk-TIHQFMH2.js} +12 -10
  62. package/dist/bundle/{chunk-EVLOYNXC.js → chunk-TXXKLYJQ.js} +4 -4
  63. package/dist/bundle/{chunk-2KGYREGD.js → chunk-UD5JUJES.js} +357 -357
  64. package/dist/bundle/{chunk-S54Z74G2.js → chunk-UDRKGCDS.js} +2 -2
  65. package/dist/bundle/{chunk-4IWOPJL4.js → chunk-UIS44ZMF.js} +7 -7
  66. package/dist/bundle/{chunk-XGPSFPLH.js → chunk-VIY77EDM.js} +48 -48
  67. package/dist/bundle/{chunk-DUON3SRD.js → chunk-VMTTWF2M.js} +8 -8
  68. package/dist/bundle/{chunk-YU7KZW5I.js → chunk-W36BMC6F.js} +5 -5
  69. package/dist/bundle/{chunk-FUATAPSB.js → chunk-WZZ426CJ.js} +83 -81
  70. package/dist/bundle/chunk-X2SA73EE.js +200 -0
  71. package/dist/bundle/{chunk-3PLYUZAR.js → chunk-XLZPP5MB.js} +1 -1
  72. package/dist/bundle/{chunk-FH753LZS.js → chunk-YABNPKKQ.js} +2 -2
  73. package/dist/bundle/{chunk-PFNEOHCY.js → chunk-YZ4J67GU.js} +3 -3
  74. package/dist/bundle/{chunk-RLRKBPLJ.js → chunk-ZPB3VTS7.js} +17 -13
  75. package/dist/bundle/{chunk-MFQTOOHR.js → chunk-ZPPMGXER.js} +35 -35
  76. package/dist/bundle/command-contract-SEDOYJIJ.js +34 -0
  77. package/dist/bundle/{command-server-entry-472XWNSN.js → command-server-entry-TQBKNSM3.js} +22 -20
  78. package/dist/bundle/{decode-SFZ67QJN.js → decode-VFRSEIBD.js} +7 -5
  79. package/dist/bundle/{dispatch-PHB2Y6ZL.js → dispatch-N73TJNYM.js} +3 -3
  80. package/dist/bundle/{echarts-3U34KH7O.js → echarts-DP2GC2C6.js} +2 -2
  81. package/dist/bundle/{embed-ZEZXJ45Q.js → embed-BIINGRNY.js} +8 -6
  82. package/dist/bundle/{embedder-AASO2I4Z.js → embedder-2AUO2PHQ.js} +11 -9
  83. package/dist/bundle/entry-APUFP74B.js +23 -0
  84. package/dist/bundle/entry-LGJ2Y7AS.js +78 -0
  85. package/dist/bundle/failure-5QSMH2CD.js +71 -0
  86. package/dist/bundle/{failure-OBT7CUVW.js → failure-IPHFR3KW.js} +3 -2
  87. package/dist/bundle/{first-run-YL3TIUU3.js → first-run-7UMKRQL7.js} +11 -9
  88. package/dist/bundle/first-screen-H5CQSLIX.js +32 -0
  89. package/dist/bundle/{instructions-HG2ZZ7AP.js → instructions-WDKCHEG6.js} +1 -1
  90. package/dist/bundle/mcp-3HKOGYHL.js +92 -0
  91. package/dist/bundle/memo.js +9 -56
  92. package/dist/bundle/{node-7AQN6OTR.js → node-QBL3F2VF.js} +2 -2
  93. package/dist/bundle/{node-sqlite-55KMFPGI.js → node-sqlite-WFKC73E5.js} +8 -6
  94. package/dist/bundle/{oauth-S2GLD4PY.js → oauth-4PT7N4SE.js} +9 -7
  95. package/dist/bundle/{open-6R4UPST5.js → open-I7XENSGI.js} +7 -5
  96. package/dist/bundle/openai-DUSBTUFI.js +26 -0
  97. package/dist/bundle/{process-C7J3IT7Q.js → process-TVXEHAK6.js} +1 -1
  98. package/dist/bundle/{program-KWI6M5IB.js → program-3X4EPBEW.js} +298 -148
  99. package/dist/bundle/{prompt-EEFKVWSA.js → prompt-QRYXTON7.js} +7 -5
  100. package/dist/bundle/{recognize-STYHVWQ6.js → recognize-ZLDPIN36.js} +6 -4
  101. package/dist/bundle/{remote-6MXZXHYY.js → remote-3GRP5YE3.js} +9 -7
  102. package/dist/bundle/{rerank-IMX2ONZG.js → rerank-6B2FI6LN.js} +9 -7
  103. package/dist/bundle/serve-ZP3TEANT.js +24 -0
  104. package/dist/bundle/{server-L6OS2MJ5.js → server-3SJJNNSX.js} +62 -59
  105. package/dist/bundle/server-72VZYABL.js +50 -0
  106. package/dist/bundle/server-UY47EXPQ.js +64 -0
  107. package/dist/bundle/{state-7MP4KKPG.js → state-JDH2X2CY.js} +8 -6
  108. package/dist/bundle/{store-EMAKEEYI.js → store-FDNYGJUF.js} +14 -12
  109. package/dist/bundle/store-maintenance-command-5LFS45JM.js +49 -0
  110. package/dist/bundle/update-257J2SPM.js +74 -0
  111. package/dist/run/entry.d.ts +7 -0
  112. package/dist/run/entry.d.ts.map +1 -0
  113. package/dist/run/entry.js +62 -0
  114. package/dist/run/entry.js.map +1 -0
  115. package/dist/sources/command.d.ts.map +1 -1
  116. package/dist/sources/command.js +29 -3
  117. package/dist/sources/command.js.map +1 -1
  118. package/dist/sources/read.d.ts +16 -2
  119. package/dist/sources/read.d.ts.map +1 -1
  120. package/dist/sources/read.js +40 -4
  121. package/dist/sources/read.js.map +1 -1
  122. package/dist/sources/readers/ai-model.d.ts +4 -0
  123. package/dist/sources/readers/ai-model.d.ts.map +1 -0
  124. package/dist/sources/readers/ai-model.js +74 -0
  125. package/dist/sources/readers/ai-model.js.map +1 -0
  126. package/dist/sources/readers/index.d.ts +1 -0
  127. package/dist/sources/readers/index.d.ts.map +1 -1
  128. package/dist/sources/readers/index.js +3 -1
  129. package/dist/sources/readers/index.js.map +1 -1
  130. package/dist/sources/readers/keys.js +1 -1
  131. package/dist/sources/readers/keys.js.map +1 -1
  132. package/dist/sources/readers/types.d.ts +5 -2
  133. package/dist/sources/readers/types.d.ts.map +1 -1
  134. package/dist/sources/readers/types.js +1 -1
  135. package/dist/sources/readers/types.js.map +1 -1
  136. package/dist/sources/suggest-command.d.ts.map +1 -1
  137. package/dist/sources/suggest-command.js +16 -5
  138. package/dist/sources/suggest-command.js.map +1 -1
  139. package/dist/version.d.ts +1 -1
  140. package/dist/version.js +1 -1
  141. package/package.json +2 -2
  142. package/dist/bundle/auto-R3ABUML7.js +0 -89
  143. package/dist/bundle/command-contract-IEUSFI3B.js +0 -32
  144. package/dist/bundle/entry-7VHMR3LD.js +0 -21
  145. package/dist/bundle/failure-DJSK3LGN.js +0 -69
  146. package/dist/bundle/first-screen-OQVOWRYM.js +0 -30
  147. package/dist/bundle/mcp-EUFDOVMI.js +0 -90
  148. package/dist/bundle/openai-JK5GCSDK.js +0 -24
  149. package/dist/bundle/serve-ZNN464BH.js +0 -22
  150. package/dist/bundle/server-4CHUUMVI.js +0 -48
  151. package/dist/bundle/server-VCZCAQOB.js +0 -62
  152. package/dist/bundle/store-maintenance-command-LWN6OUFA.js +0 -47
  153. package/dist/bundle/update-I4X2UO6J.js +0 -72
  154. /package/dist/bundle/{chunk-IKIYW7FW.js → chunk-6AALVDEA.js} +0 -0
@@ -1,30 +1,25 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- array,
5
- dottedId,
6
- duplicates,
7
- errorObjectOf,
4
+ LOG_ATTRIBUTE_KEYS,
5
+ isContentKey
6
+ } from "./chunk-EXFRC4OT.js";
7
+ import {
8
+ errorObjectOf
9
+ } from "./chunk-X2SA73EE.js";
10
+ import {
8
11
  getDotPath,
9
- isoTime,
10
12
  object,
11
- optional,
12
- parseRegistry,
13
- picklist,
14
- pipe,
15
13
  record,
16
- regex,
17
14
  safeParse,
18
- strictObject,
19
15
  string,
20
- text,
21
16
  unknown
22
- } from "./chunk-VYCLOFPC.js";
17
+ } from "./chunk-6A37YXAL.js";
23
18
  import {
24
19
  CliError,
25
20
  isCliError,
26
21
  visibleControls
27
- } from "./chunk-2EZFUIL4.js";
22
+ } from "./chunk-BA6GHX5B.js";
28
23
  import {
29
24
  __commonJS,
30
25
  __name,
@@ -464,11 +459,11 @@ var require_utils = __commonJS({
464
459
  return output;
465
460
  }
466
461
  __name(colorizeLines, "colorizeLines");
467
- function hyperlink(url, text2) {
462
+ function hyperlink(url, text) {
468
463
  const OSC = "\x1B]";
469
464
  const BEL = "\x07";
470
465
  const SEP = ";";
471
- return [OSC, "8", SEP, SEP, url || text2, BEL, text2, OSC, "8", SEP, SEP, BEL].join("");
466
+ return [OSC, "8", SEP, SEP, url || text, BEL, text, OSC, "8", SEP, SEP, BEL].join("");
472
467
  }
473
468
  __name(hyperlink, "hyperlink");
474
469
  module.exports = {
@@ -667,10 +662,10 @@ var require_supports_colors = __commonJS({
667
662
  // node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/trap.js
668
663
  var require_trap = __commonJS({
669
664
  "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/trap.js"(exports, module) {
670
- module["exports"] = /* @__PURE__ */ __name(function runTheTrap(text2, options) {
665
+ module["exports"] = /* @__PURE__ */ __name(function runTheTrap(text, options) {
671
666
  var result = "";
672
- text2 = text2 || "Run the trap, drop the bass";
673
- text2 = text2.split("");
667
+ text = text || "Run the trap, drop the bass";
668
+ text = text.split("");
674
669
  var trap = {
675
670
  a: ["@", "\u0104", "\u023A", "\u0245", "\u0394", "\u039B", "\u0414"],
676
671
  b: ["\xDF", "\u0181", "\u0243", "\u026E", "\u03B2", "\u0E3F"],
@@ -718,7 +713,7 @@ var require_trap = __commonJS({
718
713
  y: ["\xA5", "\u04B0", "\u04CB"],
719
714
  z: ["\u01B5", "\u0240"]
720
715
  };
721
- text2.forEach(function(c) {
716
+ text.forEach(function(c) {
722
717
  c = c.toLowerCase();
723
718
  var chars = trap[c] || [" "];
724
719
  var rand = Math.floor(Math.random() * chars.length);
@@ -736,8 +731,8 @@ var require_trap = __commonJS({
736
731
  // node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/zalgo.js
737
732
  var require_zalgo = __commonJS({
738
733
  "node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/custom/zalgo.js"(exports, module) {
739
- module["exports"] = /* @__PURE__ */ __name(function zalgo(text2, options) {
740
- text2 = text2 || " he is here ";
734
+ module["exports"] = /* @__PURE__ */ __name(function zalgo(text, options) {
735
+ text = text || " he is here ";
741
736
  var soul = {
742
737
  "up": [
743
738
  "\u030D",
@@ -872,7 +867,7 @@ var require_zalgo = __commonJS({
872
867
  return bool;
873
868
  }
874
869
  __name(isChar, "isChar");
875
- function heComes(text3, options2) {
870
+ function heComes(text2, options2) {
876
871
  var result = "";
877
872
  var counts;
878
873
  var l;
@@ -881,12 +876,12 @@ var require_zalgo = __commonJS({
881
876
  options2["mid"] = typeof options2["mid"] !== "undefined" ? options2["mid"] : true;
882
877
  options2["down"] = typeof options2["down"] !== "undefined" ? options2["down"] : true;
883
878
  options2["size"] = typeof options2["size"] !== "undefined" ? options2["size"] : "maxi";
884
- text3 = text3.split("");
885
- for (l in text3) {
879
+ text2 = text2.split("");
880
+ for (l in text2) {
886
881
  if (isChar(l)) {
887
882
  continue;
888
883
  }
889
- result = result + text3[l];
884
+ result = result + text2[l];
890
885
  counts = { "up": 0, "down": 0, "mid": 0 };
891
886
  switch (options2.size) {
892
887
  case "mini":
@@ -918,7 +913,7 @@ var require_zalgo = __commonJS({
918
913
  return result;
919
914
  }
920
915
  __name(heComes, "heComes");
921
- return heComes(text2, options);
916
+ return heComes(text, options);
922
917
  }, "zalgo");
923
918
  }
924
919
  });
@@ -1832,17 +1827,17 @@ var require_table = __commonJS({
1832
1827
  }
1833
1828
  }
1834
1829
  toString() {
1835
- let array2 = this;
1830
+ let array = this;
1836
1831
  let headersPresent = this.options.head && this.options.head.length;
1837
1832
  if (headersPresent) {
1838
- array2 = [this.options.head];
1833
+ array = [this.options.head];
1839
1834
  if (this.length) {
1840
- array2.push.apply(array2, this);
1835
+ array.push.apply(array, this);
1841
1836
  }
1842
1837
  } else {
1843
1838
  this.options.style.head = [];
1844
1839
  }
1845
- let cells = tableLayout.makeTableLayout(array2);
1840
+ let cells = tableLayout.makeTableLayout(array);
1846
1841
  cells.forEach(function(row) {
1847
1842
  row.forEach(function(cell2) {
1848
1843
  cell2.mergeTableOptions(this.options, cells);
@@ -1982,16 +1977,16 @@ var processStreams = {
1982
1977
  drain: /* @__PURE__ */ __name(async (signal) => {
1983
1978
  await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
1984
1979
  }, "drain"),
1985
- data: /* @__PURE__ */ __name((text2) => {
1986
- process.stdout.write(`${text2}
1980
+ data: /* @__PURE__ */ __name((text) => {
1981
+ process.stdout.write(`${text}
1987
1982
  `);
1988
1983
  }, "data"),
1989
- diagnostic: /* @__PURE__ */ __name((text2) => {
1990
- process.stderr.write(`${text2}
1984
+ diagnostic: /* @__PURE__ */ __name((text) => {
1985
+ process.stderr.write(`${text}
1991
1986
  `);
1992
1987
  }, "diagnostic"),
1993
- progress: /* @__PURE__ */ __name((text2) => {
1994
- process.stderr.write(`\r${text2.padEnd(72)}${text2 === "" ? "\r" : ""}`);
1988
+ progress: /* @__PURE__ */ __name((text) => {
1989
+ process.stderr.write(`\r${text.padEnd(72)}${text === "" ? "\r" : ""}`);
1995
1990
  }, "progress")
1996
1991
  };
1997
1992
  var captureStreams = /* @__PURE__ */ __name(() => {
@@ -2000,9 +1995,9 @@ var captureStreams = /* @__PURE__ */ __name(() => {
2000
1995
  return {
2001
1996
  stdout,
2002
1997
  stderr,
2003
- data: /* @__PURE__ */ __name((text2) => stdout.push(text2), "data"),
2004
- diagnostic: /* @__PURE__ */ __name((text2) => stderr.push(text2), "diagnostic"),
2005
- progress: /* @__PURE__ */ __name((text2) => stderr.push(text2), "progress")
1998
+ data: /* @__PURE__ */ __name((text) => stdout.push(text), "data"),
1999
+ diagnostic: /* @__PURE__ */ __name((text) => stderr.push(text), "diagnostic"),
2000
+ progress: /* @__PURE__ */ __name((text) => stderr.push(text), "progress")
2006
2001
  };
2007
2002
  }, "captureStreams");
2008
2003
 
@@ -2029,7 +2024,7 @@ ${renderFields(rest, paint2)}` : table;
2029
2024
  }
2030
2025
  return renderJson(value);
2031
2026
  }, "renderPretty");
2032
- var paint = /* @__PURE__ */ __name((format, color) => (text2) => color ? styleText(format, text2, { validateStream: false }) : text2, "paint");
2027
+ var paint = /* @__PURE__ */ __name((format, color) => (text) => color ? styleText(format, text, { validateStream: false }) : text, "paint");
2033
2028
  var palette = /* @__PURE__ */ __name((color) => ({
2034
2029
  dim: paint("dim", color),
2035
2030
  bold: paint("bold", color),
@@ -2358,9 +2353,9 @@ var writeSecurely = /* @__PURE__ */ __name((path, contents, mode) => {
2358
2353
  }
2359
2354
  }, "writeSecurely");
2360
2355
  var loadConfigFile = /* @__PURE__ */ __name((path, schema, fallback) => {
2361
- let text2;
2356
+ let text;
2362
2357
  try {
2363
- text2 = readFileSync(path, "utf8");
2358
+ text = readFileSync(path, "utf8");
2364
2359
  } catch (error) {
2365
2360
  if (error.code !== "ENOENT")
2366
2361
  throw error;
@@ -2368,7 +2363,7 @@ var loadConfigFile = /* @__PURE__ */ __name((path, schema, fallback) => {
2368
2363
  }
2369
2364
  let parsed;
2370
2365
  try {
2371
- parsed = JSON.parse(text2);
2366
+ parsed = JSON.parse(text);
2372
2367
  } catch {
2373
2368
  throw new Error(`${path} is not valid JSON`);
2374
2369
  }
@@ -2515,16 +2510,16 @@ var Credentials = class {
2515
2510
  }
2516
2511
  /** `undefined` when the file exists but is not a store: writing would replace what it holds. */
2517
2512
  #readFile() {
2518
- let text2;
2513
+ let text;
2519
2514
  try {
2520
- text2 = readFileSync2(this.#path(), "utf8");
2515
+ text = readFileSync2(this.#path(), "utf8");
2521
2516
  } catch (error) {
2522
2517
  if (error.code === "ENOENT")
2523
2518
  return {};
2524
2519
  return void 0;
2525
2520
  }
2526
2521
  try {
2527
- const parsed = JSON.parse(text2);
2522
+ const parsed = JSON.parse(text);
2528
2523
  return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? parsed : void 0;
2529
2524
  } catch {
2530
2525
  return void 0;
@@ -2649,86 +2644,6 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
2649
2644
 
2650
2645
  // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2651
2646
  import { appendFileSync } from "node:fs";
2652
-
2653
- // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2654
- var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
2655
- var logRecordSchema = strictObject({
2656
- time: isoTime,
2657
- severity: picklist(LOG_SEVERITIES),
2658
- /** The registered event id, `provider.request.failed`: never a sentence, so never content. */
2659
- body: string(),
2660
- run_id: text,
2661
- /** From an MCP caller's `_meta.traceparent`, when it sent one. */
2662
- trace_id: optional(pipe(string(), regex(/^[0-9a-f]{32}$/, "32 lower-case hex digits"))),
2663
- command: string(),
2664
- attributes: record(string(), unknown()),
2665
- resource: strictObject({ service: text, version: text })
2666
- });
2667
- var logEventSchema = strictObject({
2668
- id: dottedId,
2669
- meaning: text,
2670
- /** Attribute keys every record of this event carries. */
2671
- keys: array(string())
2672
- });
2673
- var defineLogEvents = /* @__PURE__ */ __name((input) => parseRegistry("log events", array(logEventSchema), input, (events) => [
2674
- ...duplicates(events.map((event) => event.id)).map((id) => `"${id}" is listed twice`),
2675
- ...events.flatMap((event) => duplicates(event.keys).map((key) => `${event.id}: key "${key}" is listed twice`))
2676
- ]), "defineLogEvents");
2677
- var LOG_EVENTS = defineLogEvents([
2678
- { id: "command.failed", meaning: "a command ended with an error", keys: ["code", "reason"] }
2679
- ]);
2680
- var LOG_ATTRIBUTE_KEYS = [
2681
- "code",
2682
- "count",
2683
- "durationMs",
2684
- "errorClass",
2685
- "errorCode",
2686
- "event",
2687
- "frames",
2688
- "operation",
2689
- "outcome",
2690
- "reason",
2691
- "status"
2692
- ];
2693
- var CONTENT_WORDS = /* @__PURE__ */ new Set([
2694
- "authorization",
2695
- "body",
2696
- "caption",
2697
- "content",
2698
- "cookie",
2699
- "credential",
2700
- "credentials",
2701
- "email",
2702
- "password",
2703
- "phone",
2704
- "query",
2705
- "secret",
2706
- "text",
2707
- "title",
2708
- "token"
2709
- ]);
2710
- var CONTENT_LAST_WORDS = /* @__PURE__ */ new Set(["message", "name"]);
2711
- var wordsOf = /* @__PURE__ */ __name((key) => key.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).filter(Boolean).map((word) => word.toLowerCase()), "wordsOf");
2712
- var isContentKey = /* @__PURE__ */ __name((key) => {
2713
- const words = wordsOf(key);
2714
- return words.some((word) => CONTENT_WORDS.has(word)) || CONTENT_LAST_WORDS.has(words.at(-1) ?? "");
2715
- }, "isContentKey");
2716
- var TRACEPARENT = /^([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})(-.*)?$/;
2717
- var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
2718
- if (typeof traceparent !== "string")
2719
- return void 0;
2720
- const match = TRACEPARENT.exec(traceparent.trim());
2721
- if (!match)
2722
- return void 0;
2723
- const [, version, traceId = "", parentId = "", , rest] = match;
2724
- if (version === "ff" || version === "00" && rest !== void 0)
2725
- return void 0;
2726
- if (/^0+$/.test(traceId) || /^0+$/.test(parentId))
2727
- return void 0;
2728
- return traceId;
2729
- }, "traceIdOf");
2730
-
2731
- // node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
2732
2647
  var REDACTED_FIELDS = [
2733
2648
  "authorization",
2734
2649
  "Authorization",
@@ -2839,9 +2754,6 @@ export {
2839
2754
  Credentials,
2840
2755
  realSleep,
2841
2756
  createDeadline,
2842
- defineLogEvents,
2843
- isContentKey,
2844
- traceIdOf,
2845
2757
  logRecordOf,
2846
2758
  createRecordLog,
2847
2759
  processStreams,
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-2EZFUIL4.js";
5
+ } from "./chunk-BA6GHX5B.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  loadConfigFile,
12
12
  saveConfigFile
13
- } from "./chunk-W46O6RJ5.js";
13
+ } from "./chunk-2IQWMWMC.js";
14
14
  import {
15
15
  number,
16
16
  object,
17
17
  optional,
18
18
  string
19
- } from "./chunk-VYCLOFPC.js";
19
+ } from "./chunk-6A37YXAL.js";
20
20
  import {
21
21
  __name,
22
22
  __toESM
@@ -7,12 +7,12 @@ import {
7
7
  agentOf,
8
8
  clientHash,
9
9
  currentCaller
10
- } from "./chunk-SF2OLWBU.js";
10
+ } from "./chunk-4EFQOTNQ.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/caller.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/mcp/caller.js
16
16
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
17
17
  const client = caller?.agent?.client?.name;
18
18
  if (client && client !== "unknown")
@@ -4,22 +4,22 @@ import {
4
4
  isCliFailure,
5
5
  secretNamed,
6
6
  withoutSecrets
7
- } from "./chunk-7XFJRX6F.js";
7
+ } from "./chunk-HWIKY7KF.js";
8
8
  import {
9
9
  isContentKey
10
- } from "./chunk-W46O6RJ5.js";
10
+ } from "./chunk-EXFRC4OT.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/runs/run-context.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/run-context.js
16
16
  import { AsyncLocalStorage } from "node:async_hooks";
17
17
  import { createHash } from "node:crypto";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
20
20
  import { homedir } from "node:os";
21
21
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/runs/events.js
22
+ // node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/events.js
23
23
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
24
24
  var renderEvent = /* @__PURE__ */ __name((event) => {
25
25
  if (event.event === "store")
@@ -69,7 +69,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
69
69
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
70
70
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
71
71
 
72
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
72
+ // node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
73
73
  var MESSAGE_AT_MOST = 500;
74
74
  var CAUSES_AT_MOST = 5;
75
75
  var FRAMES_AT_MOST = 15;
@@ -178,7 +178,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
178
178
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
179
179
  }, "redactText");
180
180
 
181
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/runs/run-context.js
181
+ // node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/runs/run-context.js
182
182
  var REDACTED = "[redacted]";
183
183
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
184
184
  if (!record)
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  botInstructions
5
- } from "./chunk-TPWAXJUQ.js";
5
+ } from "./chunk-BFEXVALS.js";
6
6
  import {
7
7
  answered,
8
8
  normal,
9
9
  registerCommands,
10
10
  runCommandForAgent,
11
11
  toolsFromCommands
12
- } from "./chunk-MODHP5VA.js";
12
+ } from "./chunk-AH6V2UJZ.js";
13
13
  import {
14
14
  callerOf
15
- } from "./chunk-NE3UIK5P.js";
15
+ } from "./chunk-3URQNBDV.js";
16
16
  import {
17
17
  agentJson,
18
18
  skillResource
19
- } from "./chunk-RLRKBPLJ.js";
19
+ } from "./chunk-ZPB3VTS7.js";
20
20
  import {
21
21
  serveStdio
22
22
  } from "./chunk-MM5NVP7F.js";
@@ -25,26 +25,28 @@ import {
25
25
  } from "./chunk-H3ZN4YLB.js";
26
26
  import {
27
27
  wholeList
28
- } from "./chunk-GB64N6DP.js";
28
+ } from "./chunk-JSGRDE5Q.js";
29
29
  import {
30
30
  changesMessenger,
31
31
  flatten,
32
32
  itemOf
33
- } from "./chunk-ODCHYVTW.js";
33
+ } from "./chunk-EY46RMMS.js";
34
34
  import {
35
35
  MESSENGER_CHANGE_REFUSAL,
36
36
  readOnlyLockOf,
37
37
  readOnlyRefusal
38
- } from "./chunk-S54Z74G2.js";
38
+ } from "./chunk-UDRKGCDS.js";
39
+ import {
40
+ mcpErrorResult
41
+ } from "./chunk-X2SA73EE.js";
39
42
  import {
40
- mcpErrorResult,
41
43
  object
42
- } from "./chunk-VYCLOFPC.js";
44
+ } from "./chunk-6A37YXAL.js";
43
45
  import {
44
46
  __name
45
47
  } from "./chunk-ZVVMGPBJ.js";
46
48
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.627.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6a3445916b5ce0182fa072182fe8aa66/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
49
+ // node_modules/.pnpm/@wirecat+cli-core@0.628.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_ae6a34897f184099b1a87c0d4b483e54/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
48
50
  import { randomUUID } from "node:crypto";
49
51
  var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
50
52
  var createBotServer = /* @__PURE__ */ __name((options) => {