@akashacorporation/bari 0.4.12 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/agents/mavis/skills/{minimax-code-product → bari-product}/SKILL.md +2 -2
- package/assets/agents/mavis/skills/{minimax-code-product → bari-product}/references/workflows.md +2 -2
- package/assets/agents/prompt-exemptions.json +5 -5
- package/chunks/{auth-command-YMQSOCTO.js → auth-command-VD6TIEWH.js} +6 -6
- package/chunks/{chunk-CHI3QZAS.js → chunk-7YLPPLGD.js} +2 -2
- package/chunks/{chunk-ONRROCGD.js → chunk-EGMSHANH.js} +23817 -23835
- package/chunks/{chunk-EGJ7NAJP.js → chunk-G5I2JNYF.js} +1 -1
- package/chunks/{chunk-V4L5GGYN.js → chunk-HAKORTW3.js} +15864 -15844
- package/chunks/{chunk-QRJ3EMLM.js → chunk-IE2SXA67.js} +1 -1
- package/chunks/{chunk-LBEMV4HM.js → chunk-OCCJYVTX.js} +1 -1
- package/chunks/{chunk-GTEN67YU.js → chunk-RI54XTZ2.js} +2 -2
- package/chunks/{chunk-BB3LTUB2.js → chunk-T7PZXYIK.js} +3 -3
- package/chunks/{chunk-AGU5NQDS.js → chunk-VI572H4P.js} +1 -1
- package/chunks/{data-dir-SQ32JFRR.js → data-dir-KARX6GVW.js} +4 -4
- package/chunks/{launcher-J3HYR6VX.js → launcher-2RK4KV7P.js} +15 -15
- package/chunks/{lifecycle-KN5LGUCG.js → lifecycle-XWHZUA7H.js} +6 -6
- package/chunks/{main-4WOQDN3A.js → main-LPE7EYWN.js} +291 -270
- package/chunks/{plugin-command-HUF52KXA.js → plugin-command-UJGND47T.js} +7 -7
- package/chunks/{provider-command-WSFYKEH4.js → provider-command-K372FWES.js} +50 -41
- package/chunks/{run-acp-command-2IWER65B.js → run-acp-command-BVRIYLZR.js} +5 -5
- package/chunks/{run-exec-command-YMRZ5S64.js → run-exec-command-JPT52LH6.js} +8 -8
- package/chunks/{src-25RTDTVZ.js → src-7F6SBW77.js} +1 -1
- package/chunks/{telemetry-command-6UWB5LPB.js → telemetry-command-UWZ3TQTS.js} +2 -2
- package/cli.js +5 -5
- package/metafile.json +186 -151
- package/package.json +1 -1
- /package/assets/agents/mavis/skills/{minimax-code-product → bari-product}/references/account-models.md +0 -0
- /package/assets/agents/mavis/skills/{minimax-code-product → bari-product}/references/agents.md +0 -0
- /package/assets/agents/mavis/skills/{minimax-code-product → bari-product}/references/extensions.md +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __mavis_cR } from "module"; import { basename as __mav
|
|
|
2
2
|
import {
|
|
3
3
|
a as Z,
|
|
4
4
|
b as ee,
|
|
5
|
-
c as
|
|
5
|
+
c as y,
|
|
6
6
|
d as te,
|
|
7
7
|
f as re
|
|
8
8
|
} from "./chunk-DETU5GYY.js";
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
l as z,
|
|
21
21
|
n as Y
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-7YLPPLGD.js";
|
|
23
|
+
import "./chunk-VI572H4P.js";
|
|
24
|
+
import "./chunk-IE2SXA67.js";
|
|
25
25
|
import "./chunk-2ZSPJAIT.js";
|
|
26
26
|
import "./chunk-W7MCSSFP.js";
|
|
27
27
|
import "./chunk-75Y4IXX5.js";
|
|
@@ -67,7 +67,7 @@ var P = O((M) => {
|
|
|
67
67
|
|
|
68
68
|
// node_modules/commander/lib/argument.js
|
|
69
69
|
var E = O((H) => {
|
|
70
|
-
var { InvalidArgumentError:
|
|
70
|
+
var { InvalidArgumentError: Ie } = P();
|
|
71
71
|
var V = class {
|
|
72
72
|
/**
|
|
73
73
|
* Initialize a new command argument with the given name and description.
|
|
@@ -152,7 +152,7 @@ var E = O((H) => {
|
|
|
152
152
|
this.argChoices = e.slice();
|
|
153
153
|
this.parseArg = (t, n) => {
|
|
154
154
|
if (!this.argChoices.includes(t)) {
|
|
155
|
-
throw new
|
|
155
|
+
throw new Ie(
|
|
156
156
|
`Allowed choices are ${this.argChoices.join(", ")}.`
|
|
157
157
|
);
|
|
158
158
|
}
|
|
@@ -182,17 +182,17 @@ var E = O((H) => {
|
|
|
182
182
|
return this;
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
function
|
|
185
|
+
function Le(o) {
|
|
186
186
|
const e = o.name() + (o.variadic === true ? "..." : "");
|
|
187
187
|
return o.required ? "<" + e + ">" : "[" + e + "]";
|
|
188
188
|
}
|
|
189
189
|
H.Argument = V;
|
|
190
|
-
H.humanReadableArgName =
|
|
190
|
+
H.humanReadableArgName = Le;
|
|
191
191
|
});
|
|
192
192
|
|
|
193
193
|
// node_modules/commander/lib/help.js
|
|
194
194
|
var L = O((oe) => {
|
|
195
|
-
var { humanReadableArgName:
|
|
195
|
+
var { humanReadableArgName: Ne } = E();
|
|
196
196
|
var I = class {
|
|
197
197
|
constructor() {
|
|
198
198
|
this.helpWidth = void 0;
|
|
@@ -305,7 +305,7 @@ var L = O((oe) => {
|
|
|
305
305
|
* @returns {string}
|
|
306
306
|
*/
|
|
307
307
|
subcommandTerm(e) {
|
|
308
|
-
const t = e.registeredArguments.map((n) =>
|
|
308
|
+
const t = e.registeredArguments.map((n) => Ne(n)).join(" ");
|
|
309
309
|
return e._name + (e._aliases[0] ? "|" + e._aliases[0] : "") + (e.options.length ? " [options]" : "") + // simplistic check for non-help option
|
|
310
310
|
(t ? " " + t : "");
|
|
311
311
|
}
|
|
@@ -484,7 +484,7 @@ var L = O((oe) => {
|
|
|
484
484
|
const i = t.helpWidth || 80;
|
|
485
485
|
const r = 2;
|
|
486
486
|
const s = 2;
|
|
487
|
-
function
|
|
487
|
+
function l(h, _) {
|
|
488
488
|
if (_) {
|
|
489
489
|
const S = `${h.padEnd(n + s)}${_}`;
|
|
490
490
|
return t.wrap(
|
|
@@ -507,7 +507,7 @@ var L = O((oe) => {
|
|
|
507
507
|
]);
|
|
508
508
|
}
|
|
509
509
|
const p = t.visibleArguments(e).map((h) => {
|
|
510
|
-
return
|
|
510
|
+
return l(
|
|
511
511
|
t.argumentTerm(h),
|
|
512
512
|
t.argumentDescription(h)
|
|
513
513
|
);
|
|
@@ -516,7 +516,7 @@ var L = O((oe) => {
|
|
|
516
516
|
c = c.concat(["Arguments:", a(p), ""]);
|
|
517
517
|
}
|
|
518
518
|
const g = t.visibleOptions(e).map((h) => {
|
|
519
|
-
return
|
|
519
|
+
return l(
|
|
520
520
|
t.optionTerm(h),
|
|
521
521
|
t.optionDescription(h)
|
|
522
522
|
);
|
|
@@ -526,7 +526,7 @@ var L = O((oe) => {
|
|
|
526
526
|
}
|
|
527
527
|
if (this.showGlobalOptions) {
|
|
528
528
|
const h = t.visibleGlobalOptions(e).map((_) => {
|
|
529
|
-
return
|
|
529
|
+
return l(
|
|
530
530
|
t.optionTerm(_),
|
|
531
531
|
t.optionDescription(_)
|
|
532
532
|
);
|
|
@@ -539,14 +539,14 @@ var L = O((oe) => {
|
|
|
539
539
|
]);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
const
|
|
543
|
-
return
|
|
542
|
+
const u = t.visibleCommands(e).map((h) => {
|
|
543
|
+
return l(
|
|
544
544
|
t.subcommandTerm(h),
|
|
545
545
|
t.subcommandDescription(h)
|
|
546
546
|
);
|
|
547
547
|
});
|
|
548
|
-
if (
|
|
549
|
-
c = c.concat(["Commands:", a(
|
|
548
|
+
if (u.length > 0) {
|
|
549
|
+
c = c.concat(["Commands:", a(u), ""]);
|
|
550
550
|
}
|
|
551
551
|
return c.join("\n");
|
|
552
552
|
}
|
|
@@ -580,19 +580,19 @@ var L = O((oe) => {
|
|
|
580
580
|
const r = " \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF";
|
|
581
581
|
const s = new RegExp(`[\\n][${r}]+`);
|
|
582
582
|
if (e.match(s)) return e;
|
|
583
|
-
const
|
|
584
|
-
if (
|
|
583
|
+
const l = t - n;
|
|
584
|
+
if (l < i) return e;
|
|
585
585
|
const a = e.slice(0, n);
|
|
586
586
|
const c = e.slice(n).replace("\r\n", "\n");
|
|
587
587
|
const d = " ".repeat(n);
|
|
588
588
|
const p = "\u200B";
|
|
589
589
|
const g = `\\s${p}`;
|
|
590
|
-
const
|
|
590
|
+
const u = new RegExp(
|
|
591
591
|
`
|
|
592
|
-
|.{1,${
|
|
592
|
+
|.{1,${l - 1}}([${g}]|$)|[^${g}]+?([${g}]|$)`,
|
|
593
593
|
"g"
|
|
594
594
|
);
|
|
595
|
-
const h = c.match(
|
|
595
|
+
const h = c.match(u) || [];
|
|
596
596
|
return a + h.map((_, S) => {
|
|
597
597
|
if (_ === "\n") return "";
|
|
598
598
|
return (S > 0 ? d : "") + _.trimEnd();
|
|
@@ -604,7 +604,7 @@ var L = O((oe) => {
|
|
|
604
604
|
|
|
605
605
|
// node_modules/commander/lib/option.js
|
|
606
606
|
var q = O((D) => {
|
|
607
|
-
var { InvalidArgumentError:
|
|
607
|
+
var { InvalidArgumentError: je } = P();
|
|
608
608
|
var N = class {
|
|
609
609
|
/**
|
|
610
610
|
* Initialize a new `Option` with the given `flags` and `description`.
|
|
@@ -619,7 +619,7 @@ var q = O((D) => {
|
|
|
619
619
|
this.optional = e.includes("[");
|
|
620
620
|
this.variadic = /\w\.\.\.[>\]]$/.test(e);
|
|
621
621
|
this.mandatory = false;
|
|
622
|
-
const n =
|
|
622
|
+
const n = qe(e);
|
|
623
623
|
this.short = n.shortFlag;
|
|
624
624
|
this.long = n.longFlag;
|
|
625
625
|
this.negate = false;
|
|
@@ -761,7 +761,7 @@ var q = O((D) => {
|
|
|
761
761
|
this.argChoices = e.slice();
|
|
762
762
|
this.parseArg = (t, n) => {
|
|
763
763
|
if (!this.argChoices.includes(t)) {
|
|
764
|
-
throw new
|
|
764
|
+
throw new je(
|
|
765
765
|
`Allowed choices are ${this.argChoices.join(", ")}.`
|
|
766
766
|
);
|
|
767
767
|
}
|
|
@@ -790,7 +790,7 @@ var q = O((D) => {
|
|
|
790
790
|
* @return {string}
|
|
791
791
|
*/
|
|
792
792
|
attributeName() {
|
|
793
|
-
return
|
|
793
|
+
return De(this.name().replace(/^no-/, ""));
|
|
794
794
|
}
|
|
795
795
|
/**
|
|
796
796
|
* Check if `arg` matches the short or long flag.
|
|
@@ -850,12 +850,12 @@ var q = O((D) => {
|
|
|
850
850
|
return t.negate === (r === e);
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
|
-
function
|
|
853
|
+
function De(o) {
|
|
854
854
|
return o.split("-").reduce((e, t) => {
|
|
855
855
|
return e + t[0].toUpperCase() + t.slice(1);
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function qe(o) {
|
|
859
859
|
let e;
|
|
860
860
|
let t;
|
|
861
861
|
const n = o.split(/[ |,]+/);
|
|
@@ -875,7 +875,7 @@ var q = O((D) => {
|
|
|
875
875
|
// node_modules/commander/lib/suggestSimilar.js
|
|
876
876
|
var ue = O((ae) => {
|
|
877
877
|
var se = 3;
|
|
878
|
-
function
|
|
878
|
+
function Fe(o, e) {
|
|
879
879
|
if (Math.abs(o.length - e.length) > se)
|
|
880
880
|
return Math.max(o.length, e.length);
|
|
881
881
|
const t = [];
|
|
@@ -908,7 +908,7 @@ var ue = O((ae) => {
|
|
|
908
908
|
}
|
|
909
909
|
return t[o.length][e.length];
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Ue(o, e) {
|
|
912
912
|
if (!e || e.length === 0) return "";
|
|
913
913
|
e = Array.from(new Set(e));
|
|
914
914
|
const t = o.startsWith("--");
|
|
@@ -921,19 +921,19 @@ var ue = O((ae) => {
|
|
|
921
921
|
const r = 0.4;
|
|
922
922
|
e.forEach((s) => {
|
|
923
923
|
if (s.length <= 1) return;
|
|
924
|
-
const
|
|
924
|
+
const l = Fe(o, s);
|
|
925
925
|
const a = Math.max(o.length, s.length);
|
|
926
|
-
const c = (a -
|
|
926
|
+
const c = (a - l) / a;
|
|
927
927
|
if (c > r) {
|
|
928
|
-
if (
|
|
929
|
-
i =
|
|
928
|
+
if (l < i) {
|
|
929
|
+
i = l;
|
|
930
930
|
n = [s];
|
|
931
|
-
} else if (
|
|
931
|
+
} else if (l === i) {
|
|
932
932
|
n.push(s);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
});
|
|
936
|
-
n.sort((s,
|
|
936
|
+
n.sort((s, l) => s.localeCompare(l));
|
|
937
937
|
if (t) {
|
|
938
938
|
n = n.map((s) => `--${s}`);
|
|
939
939
|
}
|
|
@@ -947,22 +947,22 @@ var ue = O((ae) => {
|
|
|
947
947
|
}
|
|
948
948
|
return "";
|
|
949
949
|
}
|
|
950
|
-
ae.suggestSimilar =
|
|
950
|
+
ae.suggestSimilar = Ue;
|
|
951
951
|
});
|
|
952
952
|
|
|
953
953
|
// node_modules/commander/lib/command.js
|
|
954
954
|
var me = O((he) => {
|
|
955
|
-
var
|
|
955
|
+
var We = x("node:events").EventEmitter;
|
|
956
956
|
var F = x("node:child_process");
|
|
957
|
-
var
|
|
957
|
+
var b = x("node:path");
|
|
958
958
|
var U = x("node:fs");
|
|
959
959
|
var f = x("node:process");
|
|
960
|
-
var { Argument:
|
|
960
|
+
var { Argument: Be, humanReadableArgName: Ge } = E();
|
|
961
961
|
var { CommanderError: W } = P();
|
|
962
|
-
var { Help:
|
|
963
|
-
var { Option: le, DualOptions:
|
|
962
|
+
var { Help: Je } = L();
|
|
963
|
+
var { Option: le, DualOptions: Ke } = q();
|
|
964
964
|
var { suggestSimilar: ce } = ue();
|
|
965
|
-
var B = class o extends
|
|
965
|
+
var B = class o extends We {
|
|
966
966
|
/**
|
|
967
967
|
* Initialize a new `Command`.
|
|
968
968
|
*
|
|
@@ -1079,7 +1079,7 @@ var me = O((he) => {
|
|
|
1079
1079
|
i = null;
|
|
1080
1080
|
}
|
|
1081
1081
|
r = r || {};
|
|
1082
|
-
const [, s,
|
|
1082
|
+
const [, s, l] = e.match(/([^ ]+) *(.*)/);
|
|
1083
1083
|
const a = this.createCommand(s);
|
|
1084
1084
|
if (i) {
|
|
1085
1085
|
a.description(i);
|
|
@@ -1088,7 +1088,7 @@ var me = O((he) => {
|
|
|
1088
1088
|
if (r.isDefault) this._defaultCommandName = a._name;
|
|
1089
1089
|
a._hidden = !!(r.noHelp || r.hidden);
|
|
1090
1090
|
a._executableFile = r.executableFile || null;
|
|
1091
|
-
if (
|
|
1091
|
+
if (l) a.arguments(l);
|
|
1092
1092
|
this._registerCommand(a);
|
|
1093
1093
|
a.parent = this;
|
|
1094
1094
|
a.copyInheritedSettings(this);
|
|
@@ -1114,7 +1114,7 @@ var me = O((he) => {
|
|
|
1114
1114
|
* @return {Help}
|
|
1115
1115
|
*/
|
|
1116
1116
|
createHelp() {
|
|
1117
|
-
return Object.assign(new
|
|
1117
|
+
return Object.assign(new Je(), this.configureHelp());
|
|
1118
1118
|
}
|
|
1119
1119
|
/**
|
|
1120
1120
|
* You can customise the help by overriding Help properties using configureHelp(),
|
|
@@ -1205,7 +1205,7 @@ var me = O((he) => {
|
|
|
1205
1205
|
* @return {Argument} new argument
|
|
1206
1206
|
*/
|
|
1207
1207
|
createArgument(e, t) {
|
|
1208
|
-
return new
|
|
1208
|
+
return new Be(e, t);
|
|
1209
1209
|
}
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Define argument syntax for command.
|
|
@@ -1509,7 +1509,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
1509
1509
|
} else if (e.defaultValue !== void 0) {
|
|
1510
1510
|
this.setOptionValueWithSource(n, e.defaultValue, "default");
|
|
1511
1511
|
}
|
|
1512
|
-
const i = (r, s,
|
|
1512
|
+
const i = (r, s, l) => {
|
|
1513
1513
|
if (r == null && e.presetArg !== void 0) {
|
|
1514
1514
|
r = e.presetArg;
|
|
1515
1515
|
}
|
|
@@ -1528,7 +1528,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
1528
1528
|
r = "";
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
|
-
this.setOptionValueWithSource(n, r,
|
|
1531
|
+
this.setOptionValueWithSource(n, r, l);
|
|
1532
1532
|
};
|
|
1533
1533
|
this.on("option:" + t, (r) => {
|
|
1534
1534
|
const s = `error: option '${e.flags}' argument '${r}' is invalid.`;
|
|
@@ -1559,9 +1559,9 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
1559
1559
|
if (typeof i === "function") {
|
|
1560
1560
|
s.default(r).argParser(i);
|
|
1561
1561
|
} else if (i instanceof RegExp) {
|
|
1562
|
-
const
|
|
1562
|
+
const l = i;
|
|
1563
1563
|
i = (a, c) => {
|
|
1564
|
-
const d =
|
|
1564
|
+
const d = l.exec(a);
|
|
1565
1565
|
return d ? d[0] : c;
|
|
1566
1566
|
};
|
|
1567
1567
|
s.default(r).argParser(i);
|
|
@@ -1887,19 +1887,19 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
1887
1887
|
let n = false;
|
|
1888
1888
|
const i = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1889
1889
|
function r(d, p) {
|
|
1890
|
-
const g =
|
|
1890
|
+
const g = b.resolve(d, p);
|
|
1891
1891
|
if (U.existsSync(g)) return g;
|
|
1892
|
-
if (i.includes(
|
|
1893
|
-
const
|
|
1892
|
+
if (i.includes(b.extname(p))) return void 0;
|
|
1893
|
+
const u = i.find(
|
|
1894
1894
|
(h) => U.existsSync(`${g}${h}`)
|
|
1895
1895
|
);
|
|
1896
|
-
if (
|
|
1896
|
+
if (u) return `${g}${u}`;
|
|
1897
1897
|
return void 0;
|
|
1898
1898
|
}
|
|
1899
1899
|
this._checkForMissingMandatoryOptions();
|
|
1900
1900
|
this._checkForConflictingOptions();
|
|
1901
1901
|
let s = e._executableFile || `${this._name}-${e._name}`;
|
|
1902
|
-
let
|
|
1902
|
+
let l = this._executableDir || "";
|
|
1903
1903
|
if (this._scriptPath) {
|
|
1904
1904
|
let d;
|
|
1905
1905
|
try {
|
|
@@ -1907,28 +1907,28 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
1907
1907
|
} catch (p) {
|
|
1908
1908
|
d = this._scriptPath;
|
|
1909
1909
|
}
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1910
|
+
l = b.resolve(
|
|
1911
|
+
b.dirname(d),
|
|
1912
|
+
l
|
|
1913
1913
|
);
|
|
1914
1914
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
let d = r(
|
|
1915
|
+
if (l) {
|
|
1916
|
+
let d = r(l, s);
|
|
1917
1917
|
if (!d && !e._executableFile && this._scriptPath) {
|
|
1918
|
-
const p =
|
|
1918
|
+
const p = b.basename(
|
|
1919
1919
|
this._scriptPath,
|
|
1920
|
-
|
|
1920
|
+
b.extname(this._scriptPath)
|
|
1921
1921
|
);
|
|
1922
1922
|
if (p !== this._name) {
|
|
1923
1923
|
d = r(
|
|
1924
|
-
|
|
1924
|
+
l,
|
|
1925
1925
|
`${p}-${e._name}`
|
|
1926
1926
|
);
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
1929
1929
|
s = d || s;
|
|
1930
1930
|
}
|
|
1931
|
-
n = i.includes(
|
|
1931
|
+
n = i.includes(b.extname(s));
|
|
1932
1932
|
let a;
|
|
1933
1933
|
if (f.platform !== "win32") {
|
|
1934
1934
|
if (n) {
|
|
@@ -1970,7 +1970,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
1970
1970
|
});
|
|
1971
1971
|
a.on("error", (d) => {
|
|
1972
1972
|
if (d.code === "ENOENT") {
|
|
1973
|
-
const p =
|
|
1973
|
+
const p = l ? `searched for local subcommand relative to directory '${l}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
|
|
1974
1974
|
const g = `'${s}' does not exist
|
|
1975
1975
|
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
1976
1976
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
@@ -2061,12 +2061,12 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2061
2061
|
const e = (n, i, r) => {
|
|
2062
2062
|
let s = i;
|
|
2063
2063
|
if (i !== null && n.parseArg) {
|
|
2064
|
-
const
|
|
2064
|
+
const l = `error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;
|
|
2065
2065
|
s = this._callParseArg(
|
|
2066
2066
|
n,
|
|
2067
2067
|
i,
|
|
2068
2068
|
r,
|
|
2069
|
-
|
|
2069
|
+
l
|
|
2070
2070
|
);
|
|
2071
2071
|
}
|
|
2072
2072
|
return s;
|
|
@@ -2079,8 +2079,8 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2079
2079
|
if (i < this.args.length) {
|
|
2080
2080
|
r = this.args.slice(i);
|
|
2081
2081
|
if (n.parseArg) {
|
|
2082
|
-
r = r.reduce((s,
|
|
2083
|
-
return e(n,
|
|
2082
|
+
r = r.reduce((s, l) => {
|
|
2083
|
+
return e(n, l, s);
|
|
2084
2084
|
}, n.defaultValue);
|
|
2085
2085
|
}
|
|
2086
2086
|
} else if (r === void 0) {
|
|
@@ -2330,7 +2330,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2330
2330
|
function s(a) {
|
|
2331
2331
|
return a.length > 1 && a[0] === "-";
|
|
2332
2332
|
}
|
|
2333
|
-
let
|
|
2333
|
+
let l = null;
|
|
2334
2334
|
while (r.length) {
|
|
2335
2335
|
const a = r.shift();
|
|
2336
2336
|
if (a === "--") {
|
|
@@ -2338,11 +2338,11 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2338
2338
|
i.push(...r);
|
|
2339
2339
|
break;
|
|
2340
2340
|
}
|
|
2341
|
-
if (
|
|
2342
|
-
this.emit(`option:${
|
|
2341
|
+
if (l && !s(a)) {
|
|
2342
|
+
this.emit(`option:${l.name()}`, a);
|
|
2343
2343
|
continue;
|
|
2344
2344
|
}
|
|
2345
|
-
|
|
2345
|
+
l = null;
|
|
2346
2346
|
if (s(a)) {
|
|
2347
2347
|
const c = this._findOption(a);
|
|
2348
2348
|
if (c) {
|
|
@@ -2359,7 +2359,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2359
2359
|
} else {
|
|
2360
2360
|
this.emit(`option:${c.name()}`);
|
|
2361
2361
|
}
|
|
2362
|
-
|
|
2362
|
+
l = c.variadic ? c : null;
|
|
2363
2363
|
continue;
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
@@ -2492,7 +2492,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2492
2492
|
* @private
|
|
2493
2493
|
*/
|
|
2494
2494
|
_parseOptionsImplied() {
|
|
2495
|
-
const e = new
|
|
2495
|
+
const e = new Ke(this.options);
|
|
2496
2496
|
const t = (n) => {
|
|
2497
2497
|
return this.getOptionValue(n) !== void 0 && !["default", "implied"].includes(this.getOptionValueSource(n));
|
|
2498
2498
|
};
|
|
@@ -2550,13 +2550,13 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2550
2550
|
*/
|
|
2551
2551
|
_conflictingOption(e, t) {
|
|
2552
2552
|
const n = (s) => {
|
|
2553
|
-
const
|
|
2554
|
-
const a = this.getOptionValue(
|
|
2553
|
+
const l = s.attributeName();
|
|
2554
|
+
const a = this.getOptionValue(l);
|
|
2555
2555
|
const c = this.options.find(
|
|
2556
|
-
(p) => p.negate &&
|
|
2556
|
+
(p) => p.negate && l === p.attributeName()
|
|
2557
2557
|
);
|
|
2558
2558
|
const d = this.options.find(
|
|
2559
|
-
(p) => !p.negate &&
|
|
2559
|
+
(p) => !p.negate && l === p.attributeName()
|
|
2560
2560
|
);
|
|
2561
2561
|
if (c && (c.presetArg === void 0 && a === false || c.presetArg !== void 0 && a === c.presetArg)) {
|
|
2562
2562
|
return c;
|
|
@@ -2564,13 +2564,13 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2564
2564
|
return d || s;
|
|
2565
2565
|
};
|
|
2566
2566
|
const i = (s) => {
|
|
2567
|
-
const
|
|
2568
|
-
const a =
|
|
2567
|
+
const l = n(s);
|
|
2568
|
+
const a = l.attributeName();
|
|
2569
2569
|
const c = this.getOptionValueSource(a);
|
|
2570
2570
|
if (c === "env") {
|
|
2571
|
-
return `environment variable '${
|
|
2571
|
+
return `environment variable '${l.envVar}'`;
|
|
2572
2572
|
}
|
|
2573
|
-
return `option '${
|
|
2573
|
+
return `option '${l.flags}'`;
|
|
2574
2574
|
};
|
|
2575
2575
|
const r = `error: ${i(e)} cannot be used with ${i(t)}`;
|
|
2576
2576
|
this.error(r, { code: "commander.conflictingOption" });
|
|
@@ -2588,7 +2588,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2588
2588
|
let i = [];
|
|
2589
2589
|
let r = this;
|
|
2590
2590
|
do {
|
|
2591
|
-
const s = r.createHelp().visibleOptions(r).filter((
|
|
2591
|
+
const s = r.createHelp().visibleOptions(r).filter((l) => l.long).map((l) => l.long);
|
|
2592
2592
|
i = i.concat(s);
|
|
2593
2593
|
r = r.parent;
|
|
2594
2594
|
} while (r && !r._enablePositionalOptions);
|
|
@@ -2733,7 +2733,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2733
2733
|
if (e === void 0) {
|
|
2734
2734
|
if (this._usage) return this._usage;
|
|
2735
2735
|
const t = this.registeredArguments.map((n) => {
|
|
2736
|
-
return
|
|
2736
|
+
return Ge(n);
|
|
2737
2737
|
});
|
|
2738
2738
|
return [].concat(
|
|
2739
2739
|
this.options.length || this._helpOption !== null ? "[options]" : [],
|
|
@@ -2768,7 +2768,7 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2768
2768
|
* @return {Command}
|
|
2769
2769
|
*/
|
|
2770
2770
|
nameFromFilename(e) {
|
|
2771
|
-
this._name =
|
|
2771
|
+
this._name = b.basename(e, b.extname(e));
|
|
2772
2772
|
return this;
|
|
2773
2773
|
}
|
|
2774
2774
|
/**
|
|
@@ -2992,50 +2992,50 @@ Expecting one of '${n.join("', '")}'`);
|
|
|
2992
2992
|
});
|
|
2993
2993
|
|
|
2994
2994
|
// node_modules/commander/index.js
|
|
2995
|
-
var _e = O((
|
|
2995
|
+
var _e = O((w) => {
|
|
2996
2996
|
var { Argument: pe } = E();
|
|
2997
2997
|
var { Command: G } = me();
|
|
2998
|
-
var { CommanderError:
|
|
2999
|
-
var { Help:
|
|
2998
|
+
var { CommanderError: Xe, InvalidArgumentError: fe } = P();
|
|
2999
|
+
var { Help: ze } = L();
|
|
3000
3000
|
var { Option: ge } = q();
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3001
|
+
w.program = new G();
|
|
3002
|
+
w.createCommand = (o) => new G(o);
|
|
3003
|
+
w.createOption = (o, e) => new ge(o, e);
|
|
3004
|
+
w.createArgument = (o, e) => new pe(o, e);
|
|
3005
|
+
w.Command = G;
|
|
3006
|
+
w.Option = ge;
|
|
3007
|
+
w.Argument = pe;
|
|
3008
|
+
w.Help = ze;
|
|
3009
|
+
w.CommanderError = Xe;
|
|
3010
|
+
w.InvalidArgumentError = fe;
|
|
3011
|
+
w.InvalidOptionArgumentError = fe;
|
|
3012
3012
|
});
|
|
3013
3013
|
|
|
3014
3014
|
// node_modules/commander/esm.mjs
|
|
3015
|
-
var
|
|
3015
|
+
var we = k(_e(), 1);
|
|
3016
3016
|
var {
|
|
3017
|
-
program:
|
|
3018
|
-
createCommand:
|
|
3019
|
-
createArgument:
|
|
3020
|
-
createOption:
|
|
3021
|
-
CommanderError:
|
|
3022
|
-
InvalidArgumentError:
|
|
3023
|
-
InvalidOptionArgumentError:
|
|
3017
|
+
program: kt,
|
|
3018
|
+
createCommand: Rt,
|
|
3019
|
+
createArgument: $t,
|
|
3020
|
+
createOption: Mt,
|
|
3021
|
+
CommanderError: Vt,
|
|
3022
|
+
InvalidArgumentError: v,
|
|
3023
|
+
InvalidOptionArgumentError: Ht,
|
|
3024
3024
|
// deprecated old name
|
|
3025
|
-
Command:
|
|
3026
|
-
Argument:
|
|
3025
|
+
Command: ye,
|
|
3026
|
+
Argument: It,
|
|
3027
3027
|
Option: m,
|
|
3028
|
-
Help:
|
|
3029
|
-
} =
|
|
3028
|
+
Help: Lt
|
|
3029
|
+
} = we.default;
|
|
3030
3030
|
|
|
3031
3031
|
// packages/tui/src/cli/contract.ts
|
|
3032
|
-
var
|
|
3032
|
+
var Ye = /* @__PURE__ */ new Set(["git", "changes", "projects"]);
|
|
3033
3033
|
function ve(o, e = {}) {
|
|
3034
3034
|
const t = o.argument("[prompt]", "task to execute in the interactive TUI").addOption(new m("--lane <lane>", "managed backend lane for test or staging builds")).addOption(
|
|
3035
3035
|
new m("--session [id]", "open a Session by id, or browse Sessions when id is omitted")
|
|
3036
3036
|
).addOption(new m("-c, --continue", "continue the latest Session in the current workspace")).addOption(
|
|
3037
3037
|
new m("--tui-mode <mode>", "TUI mode: regular (default) or fullscreen").argParser(
|
|
3038
|
-
|
|
3038
|
+
Qe
|
|
3039
3039
|
)
|
|
3040
3040
|
).addOption(new m("--resume <id>").hideHelp()).allowExcessArguments(false).showHelpAfterError();
|
|
3041
3041
|
if (e.allowStartupEnvironmentSelection) {
|
|
@@ -3043,13 +3043,13 @@ function ve(o, e = {}) {
|
|
|
3043
3043
|
new m(
|
|
3044
3044
|
"--env <environment>",
|
|
3045
3045
|
"startup environment for the internal package: test, staging (pre), or prod"
|
|
3046
|
-
).argParser(
|
|
3046
|
+
).argParser(Ze)
|
|
3047
3047
|
);
|
|
3048
3048
|
}
|
|
3049
3049
|
return t;
|
|
3050
3050
|
}
|
|
3051
3051
|
function be(o, e) {
|
|
3052
|
-
if (o &&
|
|
3052
|
+
if (o && Ye.has(o)) {
|
|
3053
3053
|
throw new Error("too many arguments");
|
|
3054
3054
|
}
|
|
3055
3055
|
const t = typeof e.session === "string" ? e.session.trim() : void 0;
|
|
@@ -3075,7 +3075,7 @@ function be(o, e) {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
function Oe(o) {
|
|
3077
3077
|
return o.argument("[prompt]", "task to execute").addOption(new m("--input <source>", 'read explicit input; only "-" is supported')).addOption(new m("--input-format <format>", "input format: text or json").default("text")).addOption(new m("--cwd <path>", "workspace directory")).addOption(
|
|
3078
|
-
new m("--file <path>", "attach a file (repeatable)").argParser(
|
|
3078
|
+
new m("--file <path>", "attach a file (repeatable)").argParser(et).default([])
|
|
3079
3079
|
).addOption(new m("--model <provider/model>", "override the model for this Run only")).addOption(new m("--effort <level>", "override the reasoning effort for this Run only")).addOption(
|
|
3080
3080
|
new m("--prompt-mode <mode>", "Prompt mode: tui, coding, or work").choices(["tui", "coding", "work"]).default("tui")
|
|
3081
3081
|
).addOption(new m("--session <id>", "run in an existing active Session")).addOption(new m("--continue", "continue the latest active Session in --cwd")).addOption(
|
|
@@ -3111,35 +3111,35 @@ function Ce(o) {
|
|
|
3111
3111
|
new m("-o, --output-last-message <path>", "write the final review result to a file")
|
|
3112
3112
|
).allowExcessArguments(false).showHelpAfterError();
|
|
3113
3113
|
}
|
|
3114
|
-
function
|
|
3114
|
+
function Qe(o) {
|
|
3115
3115
|
if (o === "regular" || o === "fullscreen") return o;
|
|
3116
|
-
throw new
|
|
3116
|
+
throw new v("TUI mode must be regular or fullscreen");
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function Ze(o) {
|
|
3119
3119
|
try {
|
|
3120
3120
|
return z(o);
|
|
3121
3121
|
} catch (e) {
|
|
3122
|
-
throw new
|
|
3122
|
+
throw new v(e instanceof Error ? e.message : String(e));
|
|
3123
3123
|
}
|
|
3124
3124
|
}
|
|
3125
|
-
function
|
|
3125
|
+
function et(o, e) {
|
|
3126
3126
|
return [...e, o];
|
|
3127
3127
|
}
|
|
3128
3128
|
|
|
3129
3129
|
// packages/tui/src/cli/program.ts
|
|
3130
|
-
function
|
|
3130
|
+
function ke(o) {
|
|
3131
3131
|
let e;
|
|
3132
|
-
const t = (
|
|
3133
|
-
...
|
|
3132
|
+
const t = (u) => ({
|
|
3133
|
+
...u,
|
|
3134
3134
|
...e ? { lane: e } : {}
|
|
3135
3135
|
});
|
|
3136
|
-
const n = (
|
|
3137
|
-
const i = (
|
|
3136
|
+
const n = (u) => e ? Ae(o)(u, e) : Ae(o)(u);
|
|
3137
|
+
const i = (u) => e ? Ee(o)(u, e) : Ee(o)(u);
|
|
3138
3138
|
const r = ve(
|
|
3139
|
-
new
|
|
3139
|
+
new ye().name("bari").description("Bari \u2014 terminal coding agent").version(o.version).enablePositionalOptions(),
|
|
3140
3140
|
{ allowStartupEnvironmentSelection: o.allowStartupEnvironmentSelection }
|
|
3141
3141
|
).action(
|
|
3142
|
-
(
|
|
3142
|
+
(u, h) => o.launchTui(t(be(u, h)))
|
|
3143
3143
|
);
|
|
3144
3144
|
r.hook("preAction", () => {
|
|
3145
3145
|
e = (o.resolveLane ?? Y)(
|
|
@@ -3147,92 +3147,99 @@ function Se(o) {
|
|
|
3147
3147
|
);
|
|
3148
3148
|
});
|
|
3149
3149
|
r.command("init").description("Analyze the codebase and generate AGENTS.md with the Runtime init Skill").argument("[directory]", "project directory", ".").action(
|
|
3150
|
-
(
|
|
3150
|
+
(u) => o.launchTui(t({ initialPrompt: "/init", workspaceDir: u }))
|
|
3151
3151
|
);
|
|
3152
3152
|
const s = r.command("exec").description("Run one prompt without starting the TUI");
|
|
3153
3153
|
Oe(s).action(
|
|
3154
|
-
(
|
|
3154
|
+
(u, h) => e ? o.runExec(u, h, e) : o.runExec(u, h)
|
|
3155
3155
|
);
|
|
3156
3156
|
Ce(
|
|
3157
3157
|
s.command("review").description("Review staged, unstaged, and untracked local changes")
|
|
3158
|
-
).action((
|
|
3159
|
-
const _ =
|
|
3158
|
+
).action((u, h) => {
|
|
3159
|
+
const _ = tt(s, h);
|
|
3160
3160
|
return e ? o.runExec(void 0, _, e) : o.runExec(void 0, _);
|
|
3161
3161
|
});
|
|
3162
|
-
const
|
|
3163
|
-
() => e ?
|
|
3162
|
+
const l = r.command("acp").description("Run Bari as an Agent Client Protocol server over stdio").allowExcessArguments(false).action(
|
|
3163
|
+
() => e ? Te(o)(e) : Te(o)()
|
|
3164
3164
|
);
|
|
3165
|
-
|
|
3166
|
-
(
|
|
3165
|
+
l.command("login").description("Sign in to use Bari Agent features").option("--region <region>", "account region: cn or global", J).option("--no-browser", "print the authorization URL without opening a browser").allowExcessArguments(false).action(
|
|
3166
|
+
(u) => e ? o.runLogin(u.region, u.browser !== false, e) : o.runLogin(u.region, u.browser !== false)
|
|
3167
3167
|
);
|
|
3168
3168
|
r.command("login").description("Sign in to use Bari Agent features").option("--region <region>", "account region: cn or global", J).option("--no-browser", "print the authorization URL without opening a browser").allowExcessArguments(false).action(
|
|
3169
|
-
(
|
|
3169
|
+
(u) => e ? o.runLogin(u.region, u.browser !== false, e) : o.runLogin(u.region, u.browser !== false)
|
|
3170
3170
|
);
|
|
3171
|
-
r.command("logout").description("Sign out of the MiniMax account used by this CLI").option("--region <region>", "account region: cn or global", J).allowExcessArguments(false).action((
|
|
3171
|
+
r.command("logout").description("Sign out of the MiniMax account used by this CLI").option("--region <region>", "account region: cn or global", J).allowExcessArguments(false).action((u) => o.runLogout(u.region));
|
|
3172
3172
|
r.command("update").description("Check for a Bari update (unavailable in this source build)").allowExcessArguments(false).action(o.runUpdate);
|
|
3173
3173
|
const a = r.command("telemetry").description("Inspect anonymous TUI usage reporting");
|
|
3174
|
-
a.command("status").description("Show whether usage reporting is enabled and why").allowExcessArguments(false).action(() =>
|
|
3175
|
-
a.command("preview").description("Show a representative decoded request without sending it").allowExcessArguments(false).action(() =>
|
|
3174
|
+
a.command("status").description("Show whether usage reporting is enabled and why").allowExcessArguments(false).action(() => Se(o)("status"));
|
|
3175
|
+
a.command("preview").description("Show a representative decoded request without sending it").allowExcessArguments(false).action(() => Se(o)("preview"));
|
|
3176
3176
|
const c = r.command("provider").description("Manage model providers and API keys").allowExcessArguments(false).action(() => o.launchTui(t({ initialPrompt: "/provider" })));
|
|
3177
3177
|
c.command("list").description("List configured providers").option("--json", "print a JSON document").action(
|
|
3178
|
-
(
|
|
3178
|
+
(u) => n({ action: "list", json: u.json })
|
|
3179
3179
|
);
|
|
3180
3180
|
c.command("add").description("Add a custom provider").requiredOption("--name <name>", "provider display name").requiredOption("--base-url <url>", "provider API base URL").option(
|
|
3181
3181
|
"--api-format <format>",
|
|
3182
3182
|
R.join(", "),
|
|
3183
|
-
|
|
3183
|
+
rt,
|
|
3184
3184
|
"anthropic-messages"
|
|
3185
|
-
).option("--model <id>", "model ID (repeatable)",
|
|
3186
|
-
|
|
3187
|
-
|
|
3185
|
+
).option("--model <id>", "model ID (repeatable)", nt, []).option("--context <tokens>", "model context window in tokens", xe).option("--max-output <tokens>", "model max output tokens", xe).option(
|
|
3186
|
+
"--effort <levels>",
|
|
3187
|
+
"reasoning effort levels, comma-separated (for example low,high,max)",
|
|
3188
|
+
it
|
|
3189
|
+
).option("--api-key-env <name>", "environment variable containing the API key").option("--use", "select the first model as the default").action(
|
|
3190
|
+
(u) => {
|
|
3191
|
+
if (u.model.length === 0) {
|
|
3188
3192
|
throw new Error("At least one --model <id> is required.");
|
|
3189
3193
|
}
|
|
3190
3194
|
return n({
|
|
3191
3195
|
action: "add",
|
|
3192
|
-
name:
|
|
3193
|
-
baseUrl:
|
|
3194
|
-
apiFormat:
|
|
3195
|
-
models:
|
|
3196
|
-
apiKeyEnv:
|
|
3197
|
-
saveAndUse:
|
|
3196
|
+
name: u.name,
|
|
3197
|
+
baseUrl: u.baseUrl,
|
|
3198
|
+
apiFormat: u.apiFormat,
|
|
3199
|
+
models: u.model,
|
|
3200
|
+
apiKeyEnv: u.apiKeyEnv,
|
|
3201
|
+
saveAndUse: u.use,
|
|
3202
|
+
...u.context !== void 0 ? { contextWindow: u.context } : {},
|
|
3203
|
+
...u.maxOutput !== void 0 ? { maxOutput: u.maxOutput } : {},
|
|
3204
|
+
...u.effort?.length ? { effortOptions: u.effort } : {}
|
|
3198
3205
|
});
|
|
3199
3206
|
}
|
|
3200
3207
|
);
|
|
3201
3208
|
c.command("remove").description("Remove a custom provider").argument("<provider-id>", "custom_provider:<id>").option("--yes", "confirm removal").action(
|
|
3202
|
-
(
|
|
3209
|
+
(u, h) => n({
|
|
3203
3210
|
action: "remove",
|
|
3204
|
-
providerId:
|
|
3211
|
+
providerId: u,
|
|
3205
3212
|
confirmed: Boolean(h.yes)
|
|
3206
3213
|
})
|
|
3207
3214
|
);
|
|
3208
3215
|
c.command("test").description("Test a provider or one configured model").argument("<provider-id>", "provider id").option("--model <id>", "test one model").option("--json", "print a JSON document").action(
|
|
3209
|
-
(
|
|
3216
|
+
(u, h) => n({
|
|
3210
3217
|
action: "test",
|
|
3211
|
-
providerId:
|
|
3218
|
+
providerId: u,
|
|
3212
3219
|
modelId: h.model,
|
|
3213
3220
|
json: h.json
|
|
3214
3221
|
})
|
|
3215
3222
|
);
|
|
3216
|
-
c.command("use").description("Choose the MiniMax credential source").argument("<source>", "token-plan or api-key",
|
|
3223
|
+
c.command("use").description("Choose the MiniMax credential source").argument("<source>", "token-plan or api-key", ot).action((u) => n({ action: "use", source: u }));
|
|
3217
3224
|
c.command("set-minimax-key").description("Save and use a MiniMax API key").option("--api-key-env <name>", "environment variable containing the API key").action(
|
|
3218
|
-
(
|
|
3225
|
+
(u) => n({
|
|
3219
3226
|
action: "set-minimax-key",
|
|
3220
|
-
apiKeyEnv:
|
|
3227
|
+
apiKeyEnv: u.apiKeyEnv
|
|
3221
3228
|
})
|
|
3222
3229
|
);
|
|
3223
3230
|
const d = r.command("plugin").description("Manage Bari Plugins").allowExcessArguments(false).action(() => o.launchTui(t({ initialPrompt: "/plugins" })));
|
|
3224
|
-
d.command("list").description("List installed or available Plugins").option("-m, --marketplace <marketplace>", "official or local",
|
|
3225
|
-
(
|
|
3231
|
+
d.command("list").description("List installed or available Plugins").option("-m, --marketplace <marketplace>", "official or local", Pe).option("--available", "include uninstalled Plugins").option("--json", "print a JSON document").action(
|
|
3232
|
+
(u) => i({
|
|
3226
3233
|
action: "list",
|
|
3227
|
-
marketplace:
|
|
3228
|
-
available:
|
|
3229
|
-
json:
|
|
3234
|
+
marketplace: u.marketplace,
|
|
3235
|
+
available: u.available,
|
|
3236
|
+
json: u.json
|
|
3230
3237
|
})
|
|
3231
3238
|
);
|
|
3232
|
-
for (const
|
|
3233
|
-
d.command(
|
|
3239
|
+
for (const u of ["add", "remove", "enable", "disable"]) {
|
|
3240
|
+
d.command(u).description(`${st(u)} a Plugin`).argument("<plugin[@marketplace]>", "Plugin selector").option("-m, --marketplace <marketplace>", "official or local", Pe).option("--json", "print a JSON document").action(
|
|
3234
3241
|
(h, _) => i({
|
|
3235
|
-
action:
|
|
3242
|
+
action: u,
|
|
3236
3243
|
selector: h,
|
|
3237
3244
|
marketplace: _.marketplace,
|
|
3238
3245
|
json: _.json
|
|
@@ -3241,25 +3248,25 @@ function Se(o) {
|
|
|
3241
3248
|
}
|
|
3242
3249
|
const p = d.command("marketplace").description("List or refresh Bari Plugin sources");
|
|
3243
3250
|
p.command("list").description("List Plugin sources").option("--json", "print a JSON document").action(
|
|
3244
|
-
(
|
|
3251
|
+
(u) => i({ action: "marketplace-list", json: u.json })
|
|
3245
3252
|
);
|
|
3246
3253
|
p.command("upgrade").description("Refresh all Plugin source snapshots").option("--json", "print a JSON document").action(
|
|
3247
|
-
(
|
|
3254
|
+
(u) => i({
|
|
3248
3255
|
action: "marketplace-upgrade",
|
|
3249
|
-
json:
|
|
3256
|
+
json: u.json
|
|
3250
3257
|
})
|
|
3251
3258
|
);
|
|
3252
3259
|
const g = new te();
|
|
3253
3260
|
g.registerAll(o.commandContributions ?? []);
|
|
3254
|
-
for (const
|
|
3255
|
-
if (r.commands.some((h) => h.name() ===
|
|
3256
|
-
throw new Error(`Duplicate CLI command name: ${
|
|
3261
|
+
for (const u of g.freeze()) {
|
|
3262
|
+
if (r.commands.some((h) => h.name() === u.name)) {
|
|
3263
|
+
throw new Error(`Duplicate CLI command name: ${u.name}`);
|
|
3257
3264
|
}
|
|
3258
|
-
|
|
3265
|
+
u.register(r, o);
|
|
3259
3266
|
}
|
|
3260
3267
|
return r;
|
|
3261
3268
|
}
|
|
3262
|
-
function
|
|
3269
|
+
function tt(o, e) {
|
|
3263
3270
|
const t = { ...e.opts(), review: true };
|
|
3264
3271
|
const n = new Set(e.options.map((i) => i.attributeName()));
|
|
3265
3272
|
for (const i of o.options) {
|
|
@@ -3276,46 +3283,60 @@ function et(o, e) {
|
|
|
3276
3283
|
}
|
|
3277
3284
|
return t;
|
|
3278
3285
|
}
|
|
3279
|
-
function
|
|
3286
|
+
function nt(o, e) {
|
|
3280
3287
|
return [...e, o];
|
|
3281
3288
|
}
|
|
3289
|
+
function xe(o) {
|
|
3290
|
+
const e = Number.parseInt(o, 10);
|
|
3291
|
+
if (!Number.isSafeInteger(e) || e <= 0) {
|
|
3292
|
+
throw new v("expected a positive integer");
|
|
3293
|
+
}
|
|
3294
|
+
return e;
|
|
3295
|
+
}
|
|
3296
|
+
function it(o) {
|
|
3297
|
+
const e = o.split(",").map((t) => t.trim()).filter((t) => t.length > 0);
|
|
3298
|
+
if (e.length === 0) {
|
|
3299
|
+
throw new v("expected at least one effort level");
|
|
3300
|
+
}
|
|
3301
|
+
return e;
|
|
3302
|
+
}
|
|
3282
3303
|
function J(o) {
|
|
3283
3304
|
if (o === "cn") return "cn";
|
|
3284
3305
|
if (o === "global") return "en";
|
|
3285
|
-
throw new
|
|
3306
|
+
throw new v('expected "cn" or "global"');
|
|
3286
3307
|
}
|
|
3287
|
-
function
|
|
3308
|
+
function rt(o) {
|
|
3288
3309
|
if (ne(o)) return o;
|
|
3289
|
-
throw new
|
|
3310
|
+
throw new v(`expected one of: ${R.join(", ")}`);
|
|
3290
3311
|
}
|
|
3291
|
-
function
|
|
3312
|
+
function ot(o) {
|
|
3292
3313
|
if (o === "token-plan") return "token_plan";
|
|
3293
3314
|
if (o === "api-key") return "minimax_api_key";
|
|
3294
|
-
throw new
|
|
3315
|
+
throw new v('expected "token-plan" or "api-key"');
|
|
3295
3316
|
}
|
|
3296
|
-
function
|
|
3317
|
+
function Pe(o) {
|
|
3297
3318
|
const e = o.trim().toLocaleLowerCase();
|
|
3298
3319
|
if (e === "official" || e === "local") return e;
|
|
3299
|
-
throw new
|
|
3320
|
+
throw new v('expected "official" or "local"');
|
|
3300
3321
|
}
|
|
3301
|
-
function
|
|
3322
|
+
function st(o) {
|
|
3302
3323
|
if (o === "add") return "Install";
|
|
3303
3324
|
if (o === "remove") return "Uninstall";
|
|
3304
3325
|
return o === "enable" ? "Enable" : "Disable";
|
|
3305
3326
|
}
|
|
3306
|
-
function
|
|
3327
|
+
function Ae(o) {
|
|
3307
3328
|
if (!o.runProvider) throw new Error("Provider management is unavailable.");
|
|
3308
3329
|
return o.runProvider;
|
|
3309
3330
|
}
|
|
3310
|
-
function
|
|
3331
|
+
function Ee(o) {
|
|
3311
3332
|
if (!o.runPlugin) throw new Error("Plugin management is unavailable.");
|
|
3312
3333
|
return o.runPlugin;
|
|
3313
3334
|
}
|
|
3314
|
-
function
|
|
3335
|
+
function Te(o) {
|
|
3315
3336
|
if (!o.runAcp) throw new Error("ACP server is unavailable.");
|
|
3316
3337
|
return o.runAcp;
|
|
3317
3338
|
}
|
|
3318
|
-
function
|
|
3339
|
+
function Se(o) {
|
|
3319
3340
|
if (!o.runTelemetry) throw new Error("Telemetry inspection is unavailable.");
|
|
3320
3341
|
return o.runTelemetry;
|
|
3321
3342
|
}
|
|
@@ -3323,23 +3344,23 @@ function Te(o) {
|
|
|
3323
3344
|
// packages/tui/src/cli/network-proxy.ts
|
|
3324
3345
|
var T = k(Q(), 1);
|
|
3325
3346
|
var C = k(Q(), 1);
|
|
3326
|
-
var
|
|
3327
|
-
function
|
|
3347
|
+
var at = ["localhost", "127.0.0.1", "::1"];
|
|
3348
|
+
function ut(o = process.env) {
|
|
3328
3349
|
const e = K(o, "ALL_PROXY", "all_proxy");
|
|
3329
3350
|
const t = K(o, "HTTP_PROXY", "http_proxy") ?? e;
|
|
3330
3351
|
const n = K(o, "HTTPS_PROXY", "https_proxy") ?? e ?? t;
|
|
3331
3352
|
if (!t && !n) return { mode: "direct" };
|
|
3332
|
-
|
|
3333
|
-
|
|
3353
|
+
Re(t);
|
|
3354
|
+
Re(n);
|
|
3334
3355
|
return {
|
|
3335
3356
|
mode: "proxy",
|
|
3336
3357
|
httpProxy: t?.value ?? "",
|
|
3337
3358
|
httpsProxy: n?.value ?? "",
|
|
3338
|
-
noProxy:
|
|
3359
|
+
noProxy: lt(o.NO_PROXY ?? o.no_proxy)
|
|
3339
3360
|
};
|
|
3340
3361
|
}
|
|
3341
|
-
function
|
|
3342
|
-
const e =
|
|
3362
|
+
function $e(o = {}) {
|
|
3363
|
+
const e = ut(o.environment);
|
|
3343
3364
|
if (e.mode === "direct") return e;
|
|
3344
3365
|
const t = o.createProxyDispatcher ?? ((i) => new X(i));
|
|
3345
3366
|
const n = t({
|
|
@@ -3348,7 +3369,7 @@ function Re(o = {}) {
|
|
|
3348
3369
|
noProxy: e.noProxy
|
|
3349
3370
|
});
|
|
3350
3371
|
(o.setGlobalDispatcher ?? T.setGlobalDispatcher)(n);
|
|
3351
|
-
(o.installFetch ??
|
|
3372
|
+
(o.installFetch ?? ct)();
|
|
3352
3373
|
return e;
|
|
3353
3374
|
}
|
|
3354
3375
|
function K(o, ...e) {
|
|
@@ -3358,7 +3379,7 @@ function K(o, ...e) {
|
|
|
3358
3379
|
}
|
|
3359
3380
|
return void 0;
|
|
3360
3381
|
}
|
|
3361
|
-
function
|
|
3382
|
+
function Re(o) {
|
|
3362
3383
|
if (!o) return;
|
|
3363
3384
|
let e;
|
|
3364
3385
|
try {
|
|
@@ -3370,18 +3391,18 @@ function ke(o) {
|
|
|
3370
3391
|
throw new Error(`${o.name} must be an http:// or https:// URL.`);
|
|
3371
3392
|
}
|
|
3372
3393
|
}
|
|
3373
|
-
function
|
|
3394
|
+
function lt(o) {
|
|
3374
3395
|
const e = [];
|
|
3375
3396
|
for (const t of (o ?? "").split(",")) {
|
|
3376
3397
|
const n = t.trim();
|
|
3377
3398
|
if (n && !e.includes(n)) e.push(n);
|
|
3378
3399
|
}
|
|
3379
|
-
for (const t of
|
|
3400
|
+
for (const t of at) {
|
|
3380
3401
|
if (!e.includes(t)) e.push(t);
|
|
3381
3402
|
}
|
|
3382
3403
|
return e.join(",");
|
|
3383
3404
|
}
|
|
3384
|
-
function
|
|
3405
|
+
function ct() {
|
|
3385
3406
|
T.install?.();
|
|
3386
3407
|
}
|
|
3387
3408
|
var X = class extends C.Dispatcher {
|
|
@@ -3401,7 +3422,7 @@ var X = class extends C.Dispatcher {
|
|
|
3401
3422
|
}
|
|
3402
3423
|
dispatch(e, t) {
|
|
3403
3424
|
const n = new URL(e.origin ?? "");
|
|
3404
|
-
if (
|
|
3425
|
+
if (dt(n, this.#r)) {
|
|
3405
3426
|
return this.#e.dispatch(e, t);
|
|
3406
3427
|
}
|
|
3407
3428
|
const i = n.protocol === "https:" ? this.#n : this.#t;
|
|
@@ -3424,11 +3445,11 @@ var X = class extends C.Dispatcher {
|
|
|
3424
3445
|
void r.then(i, i);
|
|
3425
3446
|
}
|
|
3426
3447
|
};
|
|
3427
|
-
function
|
|
3428
|
-
const t =
|
|
3448
|
+
function dt(o, e) {
|
|
3449
|
+
const t = Me(o.hostname);
|
|
3429
3450
|
const n = Number(o.port) || (o.protocol === "https:" ? 443 : 80);
|
|
3430
3451
|
for (const i of e.split(/[\s,]+/u)) {
|
|
3431
|
-
const r =
|
|
3452
|
+
const r = ht(i);
|
|
3432
3453
|
if (!r) continue;
|
|
3433
3454
|
if (r.hostname === "*") return true;
|
|
3434
3455
|
if (r.port !== void 0 && r.port !== n) continue;
|
|
@@ -3437,7 +3458,7 @@ function lt(o, e) {
|
|
|
3437
3458
|
}
|
|
3438
3459
|
return false;
|
|
3439
3460
|
}
|
|
3440
|
-
function
|
|
3461
|
+
function ht(o) {
|
|
3441
3462
|
let e = o.trim().toLowerCase();
|
|
3442
3463
|
if (!e) return void 0;
|
|
3443
3464
|
if (e === "*") return { hostname: "*", includeSubdomains: true };
|
|
@@ -3458,19 +3479,19 @@ function ct(o) {
|
|
|
3458
3479
|
}
|
|
3459
3480
|
const n = e.startsWith(".") || e.startsWith("*");
|
|
3460
3481
|
e = e.replace(/^\*?\./u, "");
|
|
3461
|
-
const i =
|
|
3482
|
+
const i = Me(e);
|
|
3462
3483
|
return i ? { hostname: i, port: t, includeSubdomains: n } : void 0;
|
|
3463
3484
|
}
|
|
3464
|
-
function
|
|
3485
|
+
function Me(o) {
|
|
3465
3486
|
return o.toLowerCase().replace(/^\[|\]$/gu, "");
|
|
3466
3487
|
}
|
|
3467
3488
|
|
|
3468
3489
|
// packages/tui/src/cli/main.ts
|
|
3469
|
-
var
|
|
3470
|
-
var
|
|
3471
|
-
async function
|
|
3490
|
+
var Ve = 250;
|
|
3491
|
+
var mt = "bari";
|
|
3492
|
+
async function en(o = {}) {
|
|
3472
3493
|
const e = o.processRef ?? process;
|
|
3473
|
-
e.title =
|
|
3494
|
+
e.title = mt;
|
|
3474
3495
|
const t = re(e.env);
|
|
3475
3496
|
const n = o.supportsNodeVersion ?? ((r) => ee(r));
|
|
3476
3497
|
if (!n(e.versions.node)) {
|
|
@@ -3483,27 +3504,27 @@ async function Qt(o = {}) {
|
|
|
3483
3504
|
}
|
|
3484
3505
|
let i;
|
|
3485
3506
|
try {
|
|
3486
|
-
(o.configureNetworkProxy ??
|
|
3507
|
+
(o.configureNetworkProxy ?? $e)({
|
|
3487
3508
|
environment: e.env
|
|
3488
3509
|
});
|
|
3489
|
-
const r = o.createProgram ??
|
|
3510
|
+
const r = o.createProgram ?? ke;
|
|
3490
3511
|
await r({
|
|
3491
|
-
version:
|
|
3512
|
+
version: y,
|
|
3492
3513
|
allowStartupEnvironmentSelection: o.allowStartupEnvironmentSelection,
|
|
3493
3514
|
launchTui: async ({
|
|
3494
3515
|
initialPrompt: s,
|
|
3495
|
-
sessionId:
|
|
3516
|
+
sessionId: l,
|
|
3496
3517
|
showSessionPicker: a,
|
|
3497
3518
|
continueLatestSession: c,
|
|
3498
3519
|
workspaceDir: d,
|
|
3499
3520
|
tuiMode: p,
|
|
3500
3521
|
lane: g
|
|
3501
3522
|
}) => {
|
|
3502
|
-
const
|
|
3503
|
-
await
|
|
3504
|
-
version:
|
|
3523
|
+
const u = o.launchTui ?? ft;
|
|
3524
|
+
await u({
|
|
3525
|
+
version: y,
|
|
3505
3526
|
...s ? { initialPrompt: s } : {},
|
|
3506
|
-
...
|
|
3527
|
+
...l ? { sessionId: l } : {},
|
|
3507
3528
|
...a ? { showSessionPicker: true } : {},
|
|
3508
3529
|
...c ? { continueLatestSession: true } : {},
|
|
3509
3530
|
...d ? { workspaceDir: d } : {},
|
|
@@ -3513,29 +3534,29 @@ async function Qt(o = {}) {
|
|
|
3513
3534
|
});
|
|
3514
3535
|
i = "force";
|
|
3515
3536
|
},
|
|
3516
|
-
runExec: async (s,
|
|
3517
|
-
const c = o.runExec ??
|
|
3537
|
+
runExec: async (s, l, a) => {
|
|
3538
|
+
const c = o.runExec ?? gt;
|
|
3518
3539
|
await c(
|
|
3519
3540
|
s,
|
|
3520
|
-
a ? { ...
|
|
3521
|
-
|
|
3541
|
+
a ? { ...l, lane: a } : l,
|
|
3542
|
+
y
|
|
3522
3543
|
);
|
|
3523
3544
|
i = "natural";
|
|
3524
3545
|
},
|
|
3525
3546
|
runAcp: async (s) => {
|
|
3526
|
-
const
|
|
3527
|
-
await
|
|
3547
|
+
const l = o.runAcp ?? _t;
|
|
3548
|
+
await l(y, s);
|
|
3528
3549
|
i = "natural";
|
|
3529
3550
|
},
|
|
3530
|
-
runLogin: async (s,
|
|
3531
|
-
const c = o.runLogin ??
|
|
3532
|
-
e.stdout.write(`${await c(s,
|
|
3551
|
+
runLogin: async (s, l, a) => {
|
|
3552
|
+
const c = o.runLogin ?? wt;
|
|
3553
|
+
e.stdout.write(`${await c(s, l, a)}
|
|
3533
3554
|
`);
|
|
3534
3555
|
i = "natural";
|
|
3535
3556
|
},
|
|
3536
3557
|
runLogout: async (s) => {
|
|
3537
|
-
const
|
|
3538
|
-
e.stdout.write(`${await
|
|
3558
|
+
const l = o.runLogout ?? yt;
|
|
3559
|
+
e.stdout.write(`${await l(s)}
|
|
3539
3560
|
`);
|
|
3540
3561
|
i = "natural";
|
|
3541
3562
|
},
|
|
@@ -3543,41 +3564,41 @@ async function Qt(o = {}) {
|
|
|
3543
3564
|
i = "natural";
|
|
3544
3565
|
const s = o.runUpdate;
|
|
3545
3566
|
if (s) {
|
|
3546
|
-
await s(
|
|
3567
|
+
await s(y);
|
|
3547
3568
|
return;
|
|
3548
3569
|
}
|
|
3549
3570
|
e.stdout.write(
|
|
3550
3571
|
"Updates are not available in this source distribution yet. Follow https://github.com/AkashaCorporation/Bari for new releases.\n"
|
|
3551
3572
|
);
|
|
3552
3573
|
},
|
|
3553
|
-
runProvider: async (s,
|
|
3554
|
-
const a = o.runProvider ??
|
|
3555
|
-
e.stdout.write(`${await a(s,
|
|
3574
|
+
runProvider: async (s, l) => {
|
|
3575
|
+
const a = o.runProvider ?? vt;
|
|
3576
|
+
e.stdout.write(`${await a(s, y, l)}
|
|
3556
3577
|
`);
|
|
3557
3578
|
i = "natural";
|
|
3558
3579
|
},
|
|
3559
|
-
runPlugin: async (s,
|
|
3560
|
-
const a = o.runPlugin ??
|
|
3561
|
-
e.stdout.write(`${await a(s,
|
|
3580
|
+
runPlugin: async (s, l) => {
|
|
3581
|
+
const a = o.runPlugin ?? bt;
|
|
3582
|
+
e.stdout.write(`${await a(s, y, l)}
|
|
3562
3583
|
`);
|
|
3563
3584
|
i = "natural";
|
|
3564
3585
|
},
|
|
3565
3586
|
runTelemetry: async (s) => {
|
|
3566
|
-
const
|
|
3567
|
-
e.stdout.write(await
|
|
3587
|
+
const l = o.runTelemetry ?? Ot;
|
|
3588
|
+
e.stdout.write(await l(s, y, e.env));
|
|
3568
3589
|
i = "natural";
|
|
3569
3590
|
}
|
|
3570
3591
|
}).parseAsync(e.argv, { from: "node" });
|
|
3571
3592
|
if (i) {
|
|
3572
3593
|
const s = typeof e.exitCode === "number" ? e.exitCode : 0;
|
|
3573
3594
|
await Promise.all([
|
|
3574
|
-
|
|
3595
|
+
He(
|
|
3575
3596
|
e.stdout,
|
|
3576
|
-
o.outputDrainTimeoutMs ??
|
|
3597
|
+
o.outputDrainTimeoutMs ?? Ve
|
|
3577
3598
|
),
|
|
3578
|
-
|
|
3599
|
+
He(
|
|
3579
3600
|
e.stderr,
|
|
3580
|
-
o.outputDrainTimeoutMs ??
|
|
3601
|
+
o.outputDrainTimeoutMs ?? Ve
|
|
3581
3602
|
)
|
|
3582
3603
|
]);
|
|
3583
3604
|
if ((o.platform ?? process.platform) === "win32" && i === "natural") {
|
|
@@ -3587,12 +3608,12 @@ async function Qt(o = {}) {
|
|
|
3587
3608
|
}
|
|
3588
3609
|
}
|
|
3589
3610
|
} catch (r) {
|
|
3590
|
-
e.stderr.write(`${await
|
|
3611
|
+
e.stderr.write(`${await pt(r)}
|
|
3591
3612
|
`);
|
|
3592
3613
|
e.exitCode = 1;
|
|
3593
3614
|
}
|
|
3594
3615
|
}
|
|
3595
|
-
async function
|
|
3616
|
+
async function pt(o) {
|
|
3596
3617
|
const e = ie(o);
|
|
3597
3618
|
if (!/better[-_]sqlite3/iu.test(e) || !/Could not locate the bindings file|Cannot find (?:module|package)|NODE_MODULE_VERSION|Module did not self-register/iu.test(
|
|
3598
3619
|
e
|
|
@@ -3600,7 +3621,7 @@ async function ht(o) {
|
|
|
3600
3621
|
return e;
|
|
3601
3622
|
}
|
|
3602
3623
|
const { buildMcodePackageManagerCommand: t } = await import("./install-source-RGPXVZMV.js");
|
|
3603
|
-
const n = t("npm-global",
|
|
3624
|
+
const n = t("npm-global", y);
|
|
3604
3625
|
return [
|
|
3605
3626
|
"Bari could not load its native SQLite dependency.",
|
|
3606
3627
|
"If npm reported blocked install scripts, the installation needs explicit script approval.",
|
|
@@ -3610,62 +3631,62 @@ async function ht(o) {
|
|
|
3610
3631
|
`Original error: ${e}`
|
|
3611
3632
|
].join("\n");
|
|
3612
3633
|
}
|
|
3613
|
-
function
|
|
3634
|
+
function He(o, e) {
|
|
3614
3635
|
if (o.destroyed || o.writableEnded) return Promise.resolve();
|
|
3615
3636
|
return new Promise((t) => {
|
|
3616
3637
|
let n = false;
|
|
3617
3638
|
let i;
|
|
3618
3639
|
const r = () => s(true);
|
|
3619
|
-
const s = (
|
|
3640
|
+
const s = (l = false) => {
|
|
3620
3641
|
if (n) return;
|
|
3621
3642
|
n = true;
|
|
3622
3643
|
if (i) clearTimeout(i);
|
|
3623
|
-
if (!
|
|
3644
|
+
if (!l) o.off?.("error", r);
|
|
3624
3645
|
t();
|
|
3625
3646
|
};
|
|
3626
3647
|
i = setTimeout(s, e);
|
|
3627
3648
|
i.unref?.();
|
|
3628
3649
|
o.once?.("error", r);
|
|
3629
3650
|
try {
|
|
3630
|
-
o.write("", (
|
|
3651
|
+
o.write("", (l) => s(Boolean(l)));
|
|
3631
3652
|
} catch {
|
|
3632
3653
|
s();
|
|
3633
3654
|
}
|
|
3634
3655
|
});
|
|
3635
3656
|
}
|
|
3636
|
-
async function
|
|
3637
|
-
const { launchTui: e } = await import("./launcher-
|
|
3657
|
+
async function ft(o) {
|
|
3658
|
+
const { launchTui: e } = await import("./launcher-2RK4KV7P.js");
|
|
3638
3659
|
await e(o);
|
|
3639
3660
|
}
|
|
3640
|
-
async function
|
|
3641
|
-
const { runTuiExecCommand: n } = await import("./run-exec-command-
|
|
3661
|
+
async function gt(o, e, t) {
|
|
3662
|
+
const { runTuiExecCommand: n } = await import("./run-exec-command-JPT52LH6.js");
|
|
3642
3663
|
await n(o, e, t);
|
|
3643
3664
|
}
|
|
3644
|
-
async function
|
|
3645
|
-
const { runTuiAcpCommand: t } = await import("./run-acp-command-
|
|
3665
|
+
async function _t(o, e) {
|
|
3666
|
+
const { runTuiAcpCommand: t } = await import("./run-acp-command-BVRIYLZR.js");
|
|
3646
3667
|
await t(o, {}, e);
|
|
3647
3668
|
}
|
|
3648
|
-
async function
|
|
3649
|
-
const { runTuiLogin: n } = await import("./auth-command-
|
|
3669
|
+
async function wt(o, e = true, t) {
|
|
3670
|
+
const { runTuiLogin: n } = await import("./auth-command-VD6TIEWH.js");
|
|
3650
3671
|
return n({ region: o, openBrowser: e, lane: t });
|
|
3651
3672
|
}
|
|
3652
|
-
async function
|
|
3653
|
-
const { runTuiLogout: e } = await import("./auth-command-
|
|
3673
|
+
async function yt(o) {
|
|
3674
|
+
const { runTuiLogout: e } = await import("./auth-command-VD6TIEWH.js");
|
|
3654
3675
|
return e({ region: o });
|
|
3655
3676
|
}
|
|
3656
|
-
async function
|
|
3657
|
-
const { runMcodeProviderCommand: n } = await import("./provider-command-
|
|
3677
|
+
async function vt(o, e, t) {
|
|
3678
|
+
const { runMcodeProviderCommand: n } = await import("./provider-command-K372FWES.js");
|
|
3658
3679
|
return n({ request: o, version: e, lane: t });
|
|
3659
3680
|
}
|
|
3660
|
-
async function
|
|
3661
|
-
const { runMcodePluginCommand: n } = await import("./plugin-command-
|
|
3681
|
+
async function bt(o, e, t) {
|
|
3682
|
+
const { runMcodePluginCommand: n } = await import("./plugin-command-UJGND47T.js");
|
|
3662
3683
|
return n({ request: o, version: e, lane: t });
|
|
3663
3684
|
}
|
|
3664
|
-
async function
|
|
3665
|
-
const { runMcodeTelemetryCommand: n } = await import("./telemetry-command-
|
|
3685
|
+
async function Ot(o, e, t) {
|
|
3686
|
+
const { runMcodeTelemetryCommand: n } = await import("./telemetry-command-UWZ3TQTS.js");
|
|
3666
3687
|
return n(o, e, { environment: t });
|
|
3667
3688
|
}
|
|
3668
3689
|
export {
|
|
3669
|
-
|
|
3670
|
-
|
|
3690
|
+
He as drainTuiOutput,
|
|
3691
|
+
en as runTuiCli
|
|
3671
3692
|
};
|