agentv 4.5.1 → 4.5.2
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/{chunk-BQC2CDLN.js → chunk-HF5UGZSZ.js} +159 -119
- package/dist/chunk-HF5UGZSZ.js.map +1 -0
- package/dist/{chunk-5DEZ72J3.js → chunk-OIBYQMCK.js} +2 -2
- package/dist/{chunk-5DEZ72J3.js.map → chunk-OIBYQMCK.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{interactive-OG7ZJIHG.js → interactive-BOJUYBJS.js} +2 -2
- package/dist/studio/assets/{index-zWHsVvgi.js → index-C7TnyYee.js} +1 -1
- package/dist/studio/assets/{index-D-gfAa3s.js → index-vn54AYtS.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/package.json +1 -1
- package/dist/chunk-BQC2CDLN.js.map +0 -1
- /package/dist/{interactive-OG7ZJIHG.js.map → interactive-BOJUYBJS.js.map} +0 -0
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
validateFileReferences,
|
|
25
25
|
validateTargetsFile,
|
|
26
26
|
writeArtifactsFromResults
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OIBYQMCK.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_CATEGORY,
|
|
30
30
|
PASS_THRESHOLD,
|
|
@@ -53,7 +53,10 @@ import {
|
|
|
53
53
|
} from "./chunk-7DRAXDVC.js";
|
|
54
54
|
import {
|
|
55
55
|
__commonJS,
|
|
56
|
+
__esm,
|
|
57
|
+
__export,
|
|
56
58
|
__require,
|
|
59
|
+
__toCommonJS,
|
|
57
60
|
__toESM
|
|
58
61
|
} from "./chunk-5H446C7X.js";
|
|
59
62
|
|
|
@@ -278,7 +281,7 @@ var require_ms = __commonJS({
|
|
|
278
281
|
var require_common = __commonJS({
|
|
279
282
|
"../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
|
|
280
283
|
"use strict";
|
|
281
|
-
function setup(
|
|
284
|
+
function setup(env3) {
|
|
282
285
|
createDebug.debug = createDebug;
|
|
283
286
|
createDebug.default = createDebug;
|
|
284
287
|
createDebug.coerce = coerce;
|
|
@@ -287,8 +290,8 @@ var require_common = __commonJS({
|
|
|
287
290
|
createDebug.enabled = enabled;
|
|
288
291
|
createDebug.humanize = require_ms();
|
|
289
292
|
createDebug.destroy = destroy;
|
|
290
|
-
Object.keys(
|
|
291
|
-
createDebug[key] =
|
|
293
|
+
Object.keys(env3).forEach((key) => {
|
|
294
|
+
createDebug[key] = env3[key];
|
|
292
295
|
});
|
|
293
296
|
createDebug.names = [];
|
|
294
297
|
createDebug.skips = [];
|
|
@@ -623,118 +626,153 @@ var require_browser = __commonJS({
|
|
|
623
626
|
}
|
|
624
627
|
});
|
|
625
628
|
|
|
626
|
-
// ../../node_modules/.bun/
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
const prefix = flag2.startsWith("-") ? "" : flag2.length === 1 ? "-" : "--";
|
|
632
|
-
const position = argv.indexOf(prefix + flag2);
|
|
633
|
-
const terminatorPosition = argv.indexOf("--");
|
|
634
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
635
|
-
};
|
|
636
|
-
}
|
|
629
|
+
// ../../node_modules/.bun/supports-color@10.2.2/node_modules/supports-color/index.js
|
|
630
|
+
var supports_color_exports = {};
|
|
631
|
+
__export(supports_color_exports, {
|
|
632
|
+
createSupportsColor: () => createSupportsColor2,
|
|
633
|
+
default: () => supports_color_default2
|
|
637
634
|
});
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
635
|
+
import process3 from "node:process";
|
|
636
|
+
import os2 from "node:os";
|
|
637
|
+
import tty2 from "node:tty";
|
|
638
|
+
function hasFlag2(flag2, argv = globalThis.Deno ? globalThis.Deno.args : process3.argv) {
|
|
639
|
+
const prefix = flag2.startsWith("-") ? "" : flag2.length === 1 ? "-" : "--";
|
|
640
|
+
const position = argv.indexOf(prefix + flag2);
|
|
641
|
+
const terminatorPosition = argv.indexOf("--");
|
|
642
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
643
|
+
}
|
|
644
|
+
function envForceColor2() {
|
|
645
|
+
if (!("FORCE_COLOR" in env2)) {
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
if (env2.FORCE_COLOR === "true") {
|
|
649
|
+
return 1;
|
|
650
|
+
}
|
|
651
|
+
if (env2.FORCE_COLOR === "false") {
|
|
652
|
+
return 0;
|
|
653
|
+
}
|
|
654
|
+
if (env2.FORCE_COLOR.length === 0) {
|
|
655
|
+
return 1;
|
|
656
|
+
}
|
|
657
|
+
const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
658
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
return level;
|
|
662
|
+
}
|
|
663
|
+
function translateLevel2(level) {
|
|
664
|
+
if (level === 0) {
|
|
665
|
+
return false;
|
|
666
|
+
}
|
|
667
|
+
return {
|
|
668
|
+
level,
|
|
669
|
+
hasBasic: true,
|
|
670
|
+
has256: level >= 2,
|
|
671
|
+
has16m: level >= 3
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
675
|
+
const noFlagForceColor = envForceColor2();
|
|
676
|
+
if (noFlagForceColor !== void 0) {
|
|
677
|
+
flagForceColor2 = noFlagForceColor;
|
|
678
|
+
}
|
|
679
|
+
const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
680
|
+
if (forceColor === 0) {
|
|
681
|
+
return 0;
|
|
682
|
+
}
|
|
683
|
+
if (sniffFlags) {
|
|
684
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
685
|
+
return 3;
|
|
652
686
|
}
|
|
653
|
-
if ("
|
|
654
|
-
|
|
655
|
-
forceColor = 1;
|
|
656
|
-
} else if (env2.FORCE_COLOR === "false") {
|
|
657
|
-
forceColor = 0;
|
|
658
|
-
} else {
|
|
659
|
-
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
660
|
-
}
|
|
687
|
+
if (hasFlag2("color=256")) {
|
|
688
|
+
return 2;
|
|
661
689
|
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
690
|
+
}
|
|
691
|
+
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
|
|
692
|
+
return 1;
|
|
693
|
+
}
|
|
694
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
695
|
+
return 0;
|
|
696
|
+
}
|
|
697
|
+
const min = forceColor || 0;
|
|
698
|
+
if (env2.TERM === "dumb") {
|
|
699
|
+
return min;
|
|
700
|
+
}
|
|
701
|
+
if (process3.platform === "win32") {
|
|
702
|
+
const osRelease = os2.release().split(".");
|
|
703
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
704
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
672
705
|
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
705
|
-
}
|
|
706
|
-
if (env2.COLORTERM === "truecolor") {
|
|
707
|
-
return 3;
|
|
708
|
-
}
|
|
709
|
-
if ("TERM_PROGRAM" in env2) {
|
|
710
|
-
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
711
|
-
switch (env2.TERM_PROGRAM) {
|
|
712
|
-
case "iTerm.app":
|
|
713
|
-
return version >= 3 ? 3 : 2;
|
|
714
|
-
case "Apple_Terminal":
|
|
715
|
-
return 2;
|
|
716
|
-
}
|
|
706
|
+
return 1;
|
|
707
|
+
}
|
|
708
|
+
if ("CI" in env2) {
|
|
709
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
|
|
710
|
+
return 3;
|
|
711
|
+
}
|
|
712
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
713
|
+
return 1;
|
|
714
|
+
}
|
|
715
|
+
return min;
|
|
716
|
+
}
|
|
717
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
718
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
719
|
+
}
|
|
720
|
+
if (env2.COLORTERM === "truecolor") {
|
|
721
|
+
return 3;
|
|
722
|
+
}
|
|
723
|
+
if (env2.TERM === "xterm-kitty") {
|
|
724
|
+
return 3;
|
|
725
|
+
}
|
|
726
|
+
if (env2.TERM === "xterm-ghostty") {
|
|
727
|
+
return 3;
|
|
728
|
+
}
|
|
729
|
+
if (env2.TERM === "wezterm") {
|
|
730
|
+
return 3;
|
|
731
|
+
}
|
|
732
|
+
if ("TERM_PROGRAM" in env2) {
|
|
733
|
+
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
734
|
+
switch (env2.TERM_PROGRAM) {
|
|
735
|
+
case "iTerm.app": {
|
|
736
|
+
return version >= 3 ? 3 : 2;
|
|
717
737
|
}
|
|
718
|
-
|
|
738
|
+
case "Apple_Terminal": {
|
|
719
739
|
return 2;
|
|
720
740
|
}
|
|
721
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
722
|
-
return 1;
|
|
723
|
-
}
|
|
724
|
-
if ("COLORTERM" in env2) {
|
|
725
|
-
return 1;
|
|
726
|
-
}
|
|
727
|
-
return min;
|
|
728
741
|
}
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
742
|
+
}
|
|
743
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
744
|
+
return 2;
|
|
745
|
+
}
|
|
746
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
747
|
+
return 1;
|
|
748
|
+
}
|
|
749
|
+
if ("COLORTERM" in env2) {
|
|
750
|
+
return 1;
|
|
751
|
+
}
|
|
752
|
+
return min;
|
|
753
|
+
}
|
|
754
|
+
function createSupportsColor2(stream, options = {}) {
|
|
755
|
+
const level = _supportsColor2(stream, {
|
|
756
|
+
streamIsTTY: stream && stream.isTTY,
|
|
757
|
+
...options
|
|
758
|
+
});
|
|
759
|
+
return translateLevel2(level);
|
|
760
|
+
}
|
|
761
|
+
var env2, flagForceColor2, supportsColor2, supports_color_default2;
|
|
762
|
+
var init_supports_color = __esm({
|
|
763
|
+
"../../node_modules/.bun/supports-color@10.2.2/node_modules/supports-color/index.js"() {
|
|
764
|
+
"use strict";
|
|
765
|
+
({ env: env2 } = process3);
|
|
766
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
767
|
+
flagForceColor2 = 0;
|
|
768
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
769
|
+
flagForceColor2 = 1;
|
|
732
770
|
}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
771
|
+
supportsColor2 = {
|
|
772
|
+
stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
|
|
773
|
+
stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
|
|
737
774
|
};
|
|
775
|
+
supports_color_default2 = supportsColor2;
|
|
738
776
|
}
|
|
739
777
|
});
|
|
740
778
|
|
|
@@ -742,7 +780,7 @@ var require_supports_color = __commonJS({
|
|
|
742
780
|
var require_node = __commonJS({
|
|
743
781
|
"../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/node.js"(exports, module) {
|
|
744
782
|
"use strict";
|
|
745
|
-
var
|
|
783
|
+
var tty3 = __require("tty");
|
|
746
784
|
var util = __require("util");
|
|
747
785
|
exports.init = init;
|
|
748
786
|
exports.log = log;
|
|
@@ -757,8 +795,8 @@ var require_node = __commonJS({
|
|
|
757
795
|
);
|
|
758
796
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
759
797
|
try {
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
798
|
+
const supportsColor3 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
799
|
+
if (supportsColor3 && (supportsColor3.stderr || supportsColor3).level >= 2) {
|
|
762
800
|
exports.colors = [
|
|
763
801
|
20,
|
|
764
802
|
21,
|
|
@@ -860,7 +898,7 @@ var require_node = __commonJS({
|
|
|
860
898
|
return obj;
|
|
861
899
|
}, {});
|
|
862
900
|
function useColors() {
|
|
863
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
901
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty3.isatty(process.stderr.fd);
|
|
864
902
|
}
|
|
865
903
|
function formatArgs(args) {
|
|
866
904
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -1592,8 +1630,8 @@ function fullFlag(config) {
|
|
|
1592
1630
|
}
|
|
1593
1631
|
const defaults = [];
|
|
1594
1632
|
if (config.env) {
|
|
1595
|
-
const
|
|
1596
|
-
defaults.push(`env: ${config.env}${
|
|
1633
|
+
const env3 = process.env[config.env] === void 0 ? "" : `=${source_default.italic(process.env[config.env])}`;
|
|
1634
|
+
defaults.push(`env: ${config.env}${env3}`);
|
|
1597
1635
|
}
|
|
1598
1636
|
if (config.defaultValue) {
|
|
1599
1637
|
try {
|
|
@@ -2210,8 +2248,8 @@ function fullOption(config) {
|
|
|
2210
2248
|
usage += ` <${displayName}>`;
|
|
2211
2249
|
const defaults = [];
|
|
2212
2250
|
if (config.env) {
|
|
2213
|
-
const
|
|
2214
|
-
defaults.push(`env: ${config.env}${
|
|
2251
|
+
const env3 = process.env[config.env] === void 0 ? "" : `=${source_default.italic(process.env[config.env])}`;
|
|
2252
|
+
defaults.push(`env: ${config.env}${env3}`);
|
|
2215
2253
|
}
|
|
2216
2254
|
if (config.defaultValue) {
|
|
2217
2255
|
try {
|
|
@@ -3964,7 +4002,7 @@ var evalRunCommand = command({
|
|
|
3964
4002
|
},
|
|
3965
4003
|
handler: async (args) => {
|
|
3966
4004
|
if (args.evalPaths.length === 0 && process.stdin.isTTY) {
|
|
3967
|
-
const { launchInteractiveWizard } = await import("./interactive-
|
|
4005
|
+
const { launchInteractiveWizard } = await import("./interactive-BOJUYBJS.js");
|
|
3968
4006
|
await launchInteractiveWizard();
|
|
3969
4007
|
return;
|
|
3970
4008
|
}
|
|
@@ -4848,15 +4886,15 @@ function loadEnvFile(dir) {
|
|
|
4848
4886
|
while (true) {
|
|
4849
4887
|
const candidate = join4(current, ".env");
|
|
4850
4888
|
if (existsSync3(candidate)) {
|
|
4851
|
-
const
|
|
4889
|
+
const env3 = {};
|
|
4852
4890
|
for (const line of readFileSync4(candidate, "utf8").split("\n")) {
|
|
4853
4891
|
const trimmed = line.trim();
|
|
4854
4892
|
if (!trimmed || trimmed.startsWith("#")) continue;
|
|
4855
4893
|
const eqIdx = trimmed.indexOf("=");
|
|
4856
4894
|
if (eqIdx === -1) continue;
|
|
4857
|
-
|
|
4895
|
+
env3[trimmed.slice(0, eqIdx).trim()] = trimmed.slice(eqIdx + 1).trim();
|
|
4858
4896
|
}
|
|
4859
|
-
return
|
|
4897
|
+
return env3;
|
|
4860
4898
|
}
|
|
4861
4899
|
const parent = dirname2(current);
|
|
4862
4900
|
if (parent === current) break;
|
|
@@ -8464,6 +8502,7 @@ var app = subcommands({
|
|
|
8464
8502
|
pipeline: pipelineCommand,
|
|
8465
8503
|
results: resultsCommand,
|
|
8466
8504
|
self: selfCommand,
|
|
8505
|
+
serve: resultsServeCommand,
|
|
8467
8506
|
studio: resultsServeCommand,
|
|
8468
8507
|
trace: traceCommand,
|
|
8469
8508
|
transpile: transpileCommand,
|
|
@@ -8482,6 +8521,7 @@ var TOP_LEVEL_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
8482
8521
|
"pipeline",
|
|
8483
8522
|
"results",
|
|
8484
8523
|
"self",
|
|
8524
|
+
"serve",
|
|
8485
8525
|
"studio",
|
|
8486
8526
|
"trace",
|
|
8487
8527
|
"transpile",
|
|
@@ -8529,4 +8569,4 @@ export {
|
|
|
8529
8569
|
preprocessArgv,
|
|
8530
8570
|
runCli
|
|
8531
8571
|
};
|
|
8532
|
-
//# sourceMappingURL=chunk-
|
|
8572
|
+
//# sourceMappingURL=chunk-HF5UGZSZ.js.map
|