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.
@@ -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
- return JSON.parse(blob);
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-UYBLUYHN.js.map
31593
+ //# sourceMappingURL=chunk-7OHZAFND.js.map