agentv 3.12.0 → 3.13.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/README.md +5 -6
- package/dist/{chunk-VLOFRXH4.js → chunk-6H4IAXQH.js} +13 -41
- package/dist/chunk-6H4IAXQH.js.map +1 -0
- package/dist/{chunk-UYBLUYHN.js → chunk-7OHZAFND.js} +18 -16
- package/dist/chunk-7OHZAFND.js.map +1 -0
- package/dist/{chunk-2ELQ6F3C.js → chunk-DJU4C6NS.js} +13 -21
- package/dist/chunk-DJU4C6NS.js.map +1 -0
- package/dist/cli.js +3 -4
- package/dist/cli.js.map +1 -1
- package/dist/{dist-L6R5HJ72.js → dist-SMKOBBFB.js} +2 -6
- package/dist/index.js +3 -4
- package/dist/{interactive-5X62YEEX.js → interactive-RV664PCR.js} +3 -4
- package/dist/{interactive-5X62YEEX.js.map → interactive-RV664PCR.js.map} +1 -1
- package/dist/templates/.agentv/config.yaml +4 -13
- package/dist/templates/.agentv/targets.yaml +0 -16
- package/package.json +1 -1
- package/dist/chunk-2ELQ6F3C.js.map +0 -1
- package/dist/chunk-NR7QVL75.js +0 -122
- package/dist/chunk-NR7QVL75.js.map +0 -1
- package/dist/chunk-UYBLUYHN.js.map +0 -1
- package/dist/chunk-VLOFRXH4.js.map +0 -1
- package/dist/simple-trace-file-exporter-CRIO5HDZ-QYYT2QQT.js +0 -9
- package/dist/simple-trace-file-exporter-CRIO5HDZ-QYYT2QQT.js.map +0 -1
- package/dist/templates/.agentv/.env.example +0 -23
- /package/dist/{dist-L6R5HJ72.js.map → dist-SMKOBBFB.js.map} +0 -0
|
@@ -14856,12 +14856,6 @@ function parseExecutionDefaults(raw, configPath) {
|
|
|
14856
14856
|
} else if (obj.verbose !== void 0) {
|
|
14857
14857
|
logWarning(`Invalid execution.verbose in ${configPath}, expected boolean`);
|
|
14858
14858
|
}
|
|
14859
|
-
const traceFile = obj.trace_file;
|
|
14860
|
-
if (typeof traceFile === "string" && traceFile.trim().length > 0) {
|
|
14861
|
-
result.trace_file = traceFile.trim();
|
|
14862
|
-
} else if (traceFile !== void 0) {
|
|
14863
|
-
logWarning(`Invalid execution.trace_file in ${configPath}, expected non-empty string`);
|
|
14864
|
-
}
|
|
14865
14859
|
if (typeof obj.keep_workspaces === "boolean") {
|
|
14866
14860
|
result.keep_workspaces = obj.keep_workspaces;
|
|
14867
14861
|
} else if (obj.keep_workspaces !== void 0) {
|
|
@@ -23614,10 +23608,26 @@ function extractJsonBlob(text2) {
|
|
|
23614
23608
|
const match = text2.match(/\{[\s\S]*\}/);
|
|
23615
23609
|
return match?.[0];
|
|
23616
23610
|
}
|
|
23611
|
+
function repairSchemaNearBooleanFields(text2) {
|
|
23612
|
+
return text2.replace(
|
|
23613
|
+
/("passed"\s*:\s*)(?:"([^"]+)"|([A-Za-z_][A-Za-z0-9_-]*))/gi,
|
|
23614
|
+
(_match, prefix, quotedValue, bareValue) => {
|
|
23615
|
+
const value = (quotedValue ?? bareValue ?? "").trim().toLowerCase();
|
|
23616
|
+
if (value === "true") {
|
|
23617
|
+
return `${prefix}true`;
|
|
23618
|
+
}
|
|
23619
|
+
if (value === "false") {
|
|
23620
|
+
return `${prefix}false`;
|
|
23621
|
+
}
|
|
23622
|
+
return `${prefix}false`;
|
|
23623
|
+
}
|
|
23624
|
+
);
|
|
23625
|
+
}
|
|
23617
23626
|
function parseJsonFromText(text2) {
|
|
23618
23627
|
const cleaned = typeof text2 === "string" ? text2.replace(/```json\n?|```/g, "").trim() : "";
|
|
23619
23628
|
const blob = extractJsonBlob(cleaned) ?? cleaned;
|
|
23620
|
-
|
|
23629
|
+
const repaired = repairSchemaNearBooleanFields(blob);
|
|
23630
|
+
return JSON.parse(repaired);
|
|
23621
23631
|
}
|
|
23622
23632
|
function isNonEmptyString(value) {
|
|
23623
23633
|
return typeof value === "string" && value.trim().length > 0;
|
|
@@ -30717,8 +30727,6 @@ var AgentVConfigSchema = external_exports2.object({
|
|
|
30717
30727
|
agentTimeoutMs: external_exports2.number().int().min(0).optional(),
|
|
30718
30728
|
/** Enable verbose logging */
|
|
30719
30729
|
verbose: external_exports2.boolean().optional(),
|
|
30720
|
-
/** Write human-readable trace JSONL to this path (supports {timestamp} placeholder) */
|
|
30721
|
-
traceFile: external_exports2.string().optional(),
|
|
30722
30730
|
/** Always keep temp workspaces after eval */
|
|
30723
30731
|
keepWorkspaces: external_exports2.boolean().optional(),
|
|
30724
30732
|
/** Write OTLP JSON trace to this path (supports {timestamp} placeholder) */
|
|
@@ -31006,12 +31014,6 @@ var OtelTraceExporter = class {
|
|
|
31006
31014
|
new SimpleSpanProcessor(new OtlpJsonFileExporter2(this.options.otlpFilePath))
|
|
31007
31015
|
);
|
|
31008
31016
|
}
|
|
31009
|
-
if (this.options.traceFilePath) {
|
|
31010
|
-
const { SimpleTraceFileExporter: SimpleTraceFileExporter2 } = await import("./simple-trace-file-exporter-CRIO5HDZ-QYYT2QQT.js");
|
|
31011
|
-
processors.push(
|
|
31012
|
-
new SimpleSpanProcessor(new SimpleTraceFileExporter2(this.options.traceFilePath))
|
|
31013
|
-
);
|
|
31014
|
-
}
|
|
31015
31017
|
if (processors.length === 0) {
|
|
31016
31018
|
return false;
|
|
31017
31019
|
}
|
|
@@ -31588,4 +31590,4 @@ export {
|
|
|
31588
31590
|
OtelStreamingObserver,
|
|
31589
31591
|
createAgentKernel
|
|
31590
31592
|
};
|
|
31591
|
-
//# sourceMappingURL=chunk-
|
|
31593
|
+
//# sourceMappingURL=chunk-7OHZAFND.js.map
|