@wirecat/cli-memo 0.131.75 → 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.
- package/dist/actions/actions.d.ts +1 -0
- package/dist/actions/actions.d.ts.map +1 -1
- package/dist/actions/actions.js +3 -3
- package/dist/actions/actions.js.map +1 -1
- package/dist/actions/command.d.ts.map +1 -1
- package/dist/actions/command.js +3 -1
- package/dist/actions/command.js.map +1 -1
- package/dist/agents/command.d.ts.map +1 -1
- package/dist/agents/command.js +3 -2
- package/dist/agents/command.js.map +1 -1
- package/dist/agents/log.d.ts +1 -1
- package/dist/agents/log.d.ts.map +1 -1
- package/dist/agents/log.js +5 -4
- package/dist/agents/log.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bin/memo.js.map +1 -1
- package/dist/bundle/{all-profiles-LUGN5BHP.js → all-profiles-4UWCPMRQ.js} +10 -8
- package/dist/bundle/{anthropic-W7JXDZPL.js → anthropic-HECHQVOK.js} +7 -5
- package/dist/bundle/{app-server-TRRARE66.js → app-server-GQEQWFYQ.js} +42 -40
- package/dist/bundle/auto-3O7JD27U.js +91 -0
- package/dist/bundle/{bun-S3JZIN4S.js → bun-IWGIAD7H.js} +2 -2
- package/dist/bundle/{bun-sqlite-X3WQN3CV.js → bun-sqlite-VJFM4TVN.js} +7 -5
- package/dist/bundle/{chunk-KDBAY5JZ.js → chunk-2DLCQ4AK.js} +1 -1
- package/dist/bundle/{chunk-W46O6RJ5.js → chunk-2IQWMWMC.js} +42 -130
- package/dist/bundle/{chunk-4O2MYFYC.js → chunk-3EPBPSP6.js} +1 -1
- package/dist/bundle/{chunk-KEBL3PY4.js → chunk-3QBRLN6T.js} +2 -2
- package/dist/bundle/{chunk-V7BDQIZS.js → chunk-3URQNBDV.js} +2 -2
- package/dist/bundle/{chunk-UU3OAPGO.js → chunk-4EFQOTNQ.js} +7 -7
- package/dist/bundle/{chunk-RZS24U4N.js → chunk-4VO2RJAE.js} +12 -10
- package/dist/bundle/{chunk-WKLF7CAM.js → chunk-5APYWW46.js} +34 -32
- package/dist/bundle/{chunk-VYCLOFPC.js → chunk-6A37YXAL.js} +6 -184
- package/dist/bundle/{chunk-346PWQJF.js → chunk-6RN34ZWU.js} +6 -6
- package/dist/bundle/{chunk-WZHCQ4VZ.js → chunk-6VISMU6R.js} +8 -8
- package/dist/bundle/{chunk-ZP2XI5DR.js → chunk-76T57Y3Q.js} +6 -6
- package/dist/bundle/{chunk-FGMFJUHR.js → chunk-7YALAAL4.js} +734 -374
- package/dist/bundle/{chunk-KA5MDFLU.js → chunk-A3QZXQI3.js} +1 -1
- package/dist/bundle/{chunk-4XI7S3PO.js → chunk-A54EZ6DV.js} +15 -15
- package/dist/bundle/{chunk-5RLCKP5E.js → chunk-AH6V2UJZ.js} +22 -18
- package/dist/bundle/{chunk-2EZFUIL4.js → chunk-BA6GHX5B.js} +27 -27
- package/dist/bundle/{chunk-E74VWHZ2.js → chunk-BFEXVALS.js} +1 -1
- package/dist/bundle/{chunk-XPSXVUZG.js → chunk-BNOSAHVH.js} +3 -3
- package/dist/bundle/{chunk-ZXW5FPH2.js → chunk-C3HS26N5.js} +1 -1
- package/dist/bundle/{chunk-VFKCZJFT.js → chunk-CFZZUGUD.js} +22 -22
- package/dist/bundle/{chunk-KYJBGCTC.js → chunk-CPKS7JKX.js} +2 -2
- package/dist/bundle/{chunk-7Y4HUYI3.js → chunk-D7KQYLAN.js} +8 -8
- package/dist/bundle/{chunk-LX3OSTBD.js → chunk-DE5BNDIA.js} +4 -4
- package/dist/bundle/{chunk-SJD4KTK2.js → chunk-DJYMK7EI.js} +4 -4
- package/dist/bundle/{chunk-EWRHTZD3.js → chunk-DNPE4LOZ.js} +11 -11
- package/dist/bundle/chunk-EXFRC4OT.js +106 -0
- package/dist/bundle/{chunk-XMHWGHID.js → chunk-EY46RMMS.js} +183 -158
- package/dist/bundle/{chunk-UIAGASGP.js → chunk-HFZHXP4U.js} +6 -6
- package/dist/bundle/{chunk-QYJJBE56.js → chunk-HKDUGTWQ.js} +3 -3
- package/dist/bundle/{chunk-VB4OLJHK.js → chunk-HWIKY7KF.js} +3 -3
- package/dist/bundle/{chunk-2QND7VJS.js → chunk-INXIJXU2.js} +7 -7
- package/dist/bundle/{chunk-OWUEEVF6.js → chunk-IYINNZQE.js} +13 -12
- package/dist/bundle/{chunk-YLYZNPAZ.js → chunk-JKLJM7EG.js} +2 -2
- package/dist/bundle/{chunk-6VMIMAZ2.js → chunk-JSGRDE5Q.js} +302 -298
- package/dist/bundle/{chunk-G45BLLDR.js → chunk-JTLPFUIQ.js} +4 -4
- package/dist/bundle/{chunk-4QGUBKN5.js → chunk-KTBPBMNR.js} +6 -6
- package/dist/bundle/{chunk-ZTZLAGZA.js → chunk-KYW7RWGE.js} +3 -3
- package/dist/bundle/{chunk-6I4DOBSD.js → chunk-LHVNZ25W.js} +13 -13
- package/dist/bundle/{chunk-SIQDO5DN.js → chunk-LO74ISD6.js} +4 -4
- package/dist/bundle/{chunk-XQ3RZU3J.js → chunk-M4MM4QUM.js} +1 -1
- package/dist/bundle/{chunk-6AOPUQTC.js → chunk-MRUE3BWX.js} +1 -1
- package/dist/bundle/{chunk-QKWM4VK4.js → chunk-MZHH5XMX.js} +2 -2
- package/dist/bundle/{chunk-SCYHDYLI.js → chunk-NGWUFB4K.js} +1 -1
- package/dist/bundle/{chunk-NR633L2N.js → chunk-OAWNQZ3V.js} +4 -4
- package/dist/bundle/{chunk-SIOPF2UG.js → chunk-OB3OPV55.js} +6 -6
- package/dist/bundle/{chunk-E2PSOSTN.js → chunk-OQSIFLZS.js} +2 -2
- package/dist/bundle/{chunk-4KDORB7C.js → chunk-PPARTGFE.js} +10 -10
- package/dist/bundle/{chunk-YB4KGUXY.js → chunk-QNJ6O6J4.js} +3 -3
- package/dist/bundle/{chunk-GFVSZY4J.js → chunk-S5T4SO7I.js} +8 -2
- package/dist/bundle/{chunk-YDTGYYOR.js → chunk-SHO3T3F2.js} +4 -4
- package/dist/bundle/{chunk-6FTZ53TT.js → chunk-TFXKS2WG.js} +1 -1
- package/dist/bundle/{chunk-5CTOWPOL.js → chunk-TIHQFMH2.js} +12 -10
- package/dist/bundle/{chunk-XQHOMQNZ.js → chunk-TXXKLYJQ.js} +4 -4
- package/dist/bundle/{chunk-ZISVFVQU.js → chunk-UD5JUJES.js} +365 -364
- package/dist/bundle/{chunk-KUFOM3SB.js → chunk-UDRKGCDS.js} +2 -2
- package/dist/bundle/chunk-UIS44ZMF.js +185 -0
- package/dist/bundle/{chunk-AOHT5FNX.js → chunk-VIY77EDM.js} +48 -48
- package/dist/bundle/{chunk-MPZBV5RL.js → chunk-VMTTWF2M.js} +8 -8
- package/dist/bundle/{chunk-IQIM4UC7.js → chunk-W36BMC6F.js} +5 -5
- package/dist/bundle/{chunk-JINEHQ2T.js → chunk-WZZ426CJ.js} +99 -84
- package/dist/bundle/chunk-X2SA73EE.js +200 -0
- package/dist/bundle/{chunk-BDVM5652.js → chunk-XLZPP5MB.js} +1 -1
- package/dist/bundle/{chunk-LPGE6ACC.js → chunk-YABNPKKQ.js} +2 -2
- package/dist/bundle/{chunk-ZL63GL3Y.js → chunk-YZ4J67GU.js} +3 -3
- package/dist/bundle/{chunk-C6MWOBEL.js → chunk-ZPB3VTS7.js} +22 -12
- package/dist/bundle/{chunk-W64FO6DD.js → chunk-ZPPMGXER.js} +400 -37
- package/dist/bundle/command-contract-SEDOYJIJ.js +34 -0
- package/dist/bundle/{command-server-entry-XVUPTSSH.js → command-server-entry-TQBKNSM3.js} +71 -53
- package/dist/bundle/{decode-METZOSMG.js → decode-VFRSEIBD.js} +7 -5
- package/dist/bundle/{dispatch-PHB2Y6ZL.js → dispatch-N73TJNYM.js} +3 -3
- package/dist/bundle/{echarts-EBSP4VCK.js → echarts-DP2GC2C6.js} +2 -2
- package/dist/bundle/{embed-GVVU7N7W.js → embed-BIINGRNY.js} +8 -6
- package/dist/bundle/{embedder-6BZOYAXV.js → embedder-2AUO2PHQ.js} +11 -9
- package/dist/bundle/entry-APUFP74B.js +23 -0
- package/dist/bundle/entry-LGJ2Y7AS.js +78 -0
- package/dist/bundle/failure-5QSMH2CD.js +71 -0
- package/dist/bundle/{failure-OBT7CUVW.js → failure-IPHFR3KW.js} +3 -2
- package/dist/bundle/{first-run-HQ4GA4EF.js → first-run-7UMKRQL7.js} +11 -9
- package/dist/bundle/first-screen-H5CQSLIX.js +32 -0
- package/dist/bundle/{instructions-VDKK3Y5Z.js → instructions-WDKCHEG6.js} +1 -1
- package/dist/bundle/mcp-3HKOGYHL.js +92 -0
- package/dist/bundle/memo.js +9 -56
- package/dist/bundle/{node-HWGZYNUX.js → node-QBL3F2VF.js} +2 -2
- package/dist/bundle/{node-sqlite-PSYENWGS.js → node-sqlite-WFKC73E5.js} +8 -6
- package/dist/bundle/{oauth-TQGMUJK2.js → oauth-4PT7N4SE.js} +9 -7
- package/dist/bundle/{open-KDDJDKCE.js → open-I7XENSGI.js} +7 -5
- package/dist/bundle/openai-DUSBTUFI.js +26 -0
- package/dist/bundle/{process-APNTXJJE.js → process-TVXEHAK6.js} +1 -1
- package/dist/bundle/{program-OGDARQTX.js → program-3X4EPBEW.js} +587 -234
- package/dist/bundle/{prompt-BMBZCLGF.js → prompt-QRYXTON7.js} +7 -5
- package/dist/bundle/{recognize-3SEY2MAR.js → recognize-ZLDPIN36.js} +6 -4
- package/dist/bundle/{remote-ODH54UXO.js → remote-3GRP5YE3.js} +9 -7
- package/dist/bundle/{rerank-JQHBNTUK.js → rerank-6B2FI6LN.js} +9 -7
- package/dist/bundle/serve-ZP3TEANT.js +24 -0
- package/dist/bundle/{server-ADPO4V4B.js → server-3SJJNNSX.js} +63 -59
- package/dist/bundle/server-72VZYABL.js +50 -0
- package/dist/bundle/server-UY47EXPQ.js +64 -0
- package/dist/bundle/{state-M3VGXSV4.js → state-JDH2X2CY.js} +8 -6
- package/dist/bundle/{store-GSZAXU3A.js → store-FDNYGJUF.js} +14 -12
- package/dist/bundle/store-maintenance-command-5LFS45JM.js +49 -0
- package/dist/bundle/update-257J2SPM.js +74 -0
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +2 -1
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/digest-commands.d.ts.map +1 -1
- package/dist/digest/digest-commands.js +2 -1
- package/dist/digest/digest-commands.js.map +1 -1
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +2 -1
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +13 -1
- package/dist/examples.js.map +1 -1
- package/dist/exit-code.d.ts +7 -0
- package/dist/exit-code.d.ts.map +1 -0
- package/dist/exit-code.js +19 -0
- package/dist/exit-code.js.map +1 -0
- package/dist/facts/command.d.ts.map +1 -1
- package/dist/facts/command.js +3 -2
- package/dist/facts/command.js.map +1 -1
- package/dist/facts/fact.d.ts +1 -1
- package/dist/facts/fact.d.ts.map +1 -1
- package/dist/facts/fact.js +3 -3
- package/dist/facts/fact.js.map +1 -1
- package/dist/mcp/catalogue.d.ts +3 -0
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +1 -0
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/memories/command.d.ts.map +1 -1
- package/dist/memories/command.js +3 -2
- package/dist/memories/command.js.map +1 -1
- package/dist/memories/memory.d.ts +1 -1
- package/dist/memories/memory.d.ts.map +1 -1
- package/dist/memories/memory.js +2 -2
- package/dist/memories/memory.js.map +1 -1
- package/dist/page.d.ts +14 -5
- package/dist/page.d.ts.map +1 -1
- package/dist/page.js +11 -5
- package/dist/page.js.map +1 -1
- package/dist/program.d.ts +3 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +7 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/records/import.d.ts.map +1 -1
- package/dist/records/import.js +60 -5
- package/dist/records/import.js.map +1 -1
- package/dist/records/input.d.ts +6 -2
- package/dist/records/input.d.ts.map +1 -1
- package/dist/records/input.js +87 -3
- package/dist/records/input.js.map +1 -1
- package/dist/run/entry.d.ts +7 -0
- package/dist/run/entry.d.ts.map +1 -0
- package/dist/run/entry.js +62 -0
- package/dist/run/entry.js.map +1 -0
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +2 -1
- package/dist/run/import.js.map +1 -1
- package/dist/sources/command.d.ts.map +1 -1
- package/dist/sources/command.js +55 -4
- package/dist/sources/command.js.map +1 -1
- package/dist/sources/read.d.ts +29 -2
- package/dist/sources/read.d.ts.map +1 -1
- package/dist/sources/read.js +67 -5
- package/dist/sources/read.js.map +1 -1
- package/dist/sources/readers/ai-model.d.ts +4 -0
- package/dist/sources/readers/ai-model.d.ts.map +1 -0
- package/dist/sources/readers/ai-model.js +74 -0
- package/dist/sources/readers/ai-model.js.map +1 -0
- package/dist/sources/readers/index.d.ts +1 -0
- package/dist/sources/readers/index.d.ts.map +1 -1
- package/dist/sources/readers/index.js +3 -1
- package/dist/sources/readers/index.js.map +1 -1
- package/dist/sources/readers/keys.js +1 -1
- package/dist/sources/readers/keys.js.map +1 -1
- package/dist/sources/readers/types.d.ts +5 -2
- package/dist/sources/readers/types.d.ts.map +1 -1
- package/dist/sources/readers/types.js +1 -1
- package/dist/sources/readers/types.js.map +1 -1
- package/dist/sources/suggest-command.d.ts.map +1 -1
- package/dist/sources/suggest-command.js +16 -5
- package/dist/sources/suggest-command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-AQAKW55Z.js +0 -89
- package/dist/bundle/chunk-XPCTY6XV.js +0 -116
- package/dist/bundle/command-contract-QQG343ZQ.js +0 -32
- package/dist/bundle/entry-TBOYUMWB.js +0 -21
- package/dist/bundle/failure-EKMEAYZH.js +0 -69
- package/dist/bundle/first-screen-6T65PQ37.js +0 -30
- package/dist/bundle/mcp-DEY765VA.js +0 -90
- package/dist/bundle/openai-QPGCUM4T.js +0 -24
- package/dist/bundle/serve-C22ZONSM.js +0 -22
- package/dist/bundle/server-3UX245DY.js +0 -62
- package/dist/bundle/server-6G5XF3V5.js +0 -48
- package/dist/bundle/store-maintenance-command-QMTALGSQ.js +0 -47
- package/dist/bundle/update-HDJ23IV5.js +0 -72
- /package/dist/bundle/{chunk-IXSUVHW6.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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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-
|
|
17
|
+
} from "./chunk-6A37YXAL.js";
|
|
23
18
|
import {
|
|
24
19
|
CliError,
|
|
25
20
|
isCliError,
|
|
26
21
|
visibleControls
|
|
27
|
-
} from "./chunk-
|
|
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,
|
|
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 ||
|
|
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(
|
|
665
|
+
module["exports"] = /* @__PURE__ */ __name(function runTheTrap(text, options) {
|
|
671
666
|
var result = "";
|
|
672
|
-
|
|
673
|
-
|
|
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
|
-
|
|
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(
|
|
740
|
-
|
|
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(
|
|
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
|
-
|
|
885
|
-
for (l in
|
|
879
|
+
text2 = text2.split("");
|
|
880
|
+
for (l in text2) {
|
|
886
881
|
if (isChar(l)) {
|
|
887
882
|
continue;
|
|
888
883
|
}
|
|
889
|
-
result = result +
|
|
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(
|
|
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
|
|
1830
|
+
let array = this;
|
|
1836
1831
|
let headersPresent = this.options.head && this.options.head.length;
|
|
1837
1832
|
if (headersPresent) {
|
|
1838
|
-
|
|
1833
|
+
array = [this.options.head];
|
|
1839
1834
|
if (this.length) {
|
|
1840
|
-
|
|
1835
|
+
array.push.apply(array, this);
|
|
1841
1836
|
}
|
|
1842
1837
|
} else {
|
|
1843
1838
|
this.options.style.head = [];
|
|
1844
1839
|
}
|
|
1845
|
-
let cells = tableLayout.makeTableLayout(
|
|
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((
|
|
1986
|
-
process.stdout.write(`${
|
|
1980
|
+
data: /* @__PURE__ */ __name((text) => {
|
|
1981
|
+
process.stdout.write(`${text}
|
|
1987
1982
|
`);
|
|
1988
1983
|
}, "data"),
|
|
1989
|
-
diagnostic: /* @__PURE__ */ __name((
|
|
1990
|
-
process.stderr.write(`${
|
|
1984
|
+
diagnostic: /* @__PURE__ */ __name((text) => {
|
|
1985
|
+
process.stderr.write(`${text}
|
|
1991
1986
|
`);
|
|
1992
1987
|
}, "diagnostic"),
|
|
1993
|
-
progress: /* @__PURE__ */ __name((
|
|
1994
|
-
process.stderr.write(`\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((
|
|
2004
|
-
diagnostic: /* @__PURE__ */ __name((
|
|
2005
|
-
progress: /* @__PURE__ */ __name((
|
|
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) => (
|
|
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
|
|
2356
|
+
let text;
|
|
2362
2357
|
try {
|
|
2363
|
-
|
|
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(
|
|
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
|
|
2513
|
+
let text;
|
|
2519
2514
|
try {
|
|
2520
|
-
|
|
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(
|
|
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,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2IQWMWMC.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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-
|
|
7
|
+
} from "./chunk-HWIKY7KF.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
|
-
} from "./chunk-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
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-
|
|
12
|
+
} from "./chunk-AH6V2UJZ.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3URQNBDV.js";
|
|
16
16
|
import {
|
|
17
17
|
agentJson,
|
|
18
18
|
skillResource
|
|
19
|
-
} from "./chunk-
|
|
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-
|
|
28
|
+
} from "./chunk-JSGRDE5Q.js";
|
|
29
29
|
import {
|
|
30
30
|
changesMessenger,
|
|
31
31
|
flatten,
|
|
32
32
|
itemOf
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EY46RMMS.js";
|
|
34
34
|
import {
|
|
35
35
|
MESSENGER_CHANGE_REFUSAL,
|
|
36
36
|
readOnlyLockOf,
|
|
37
37
|
readOnlyRefusal
|
|
38
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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) => {
|