agentv 3.13.2 → 3.13.3

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.
@@ -22,7 +22,7 @@ import {
22
22
  validateFileReferences,
23
23
  validateTargetsFile,
24
24
  writeArtifactsFromResults
25
- } from "./chunk-4Z5E5CYT.js";
25
+ } from "./chunk-PACTPWEN.js";
26
26
  import {
27
27
  createBuiltinRegistry,
28
28
  executeScript,
@@ -4185,7 +4185,7 @@ var evalRunCommand = command({
4185
4185
  },
4186
4186
  handler: async (args) => {
4187
4187
  if (args.evalPaths.length === 0 && process.stdin.isTTY) {
4188
- const { launchInteractiveWizard } = await import("./interactive-HVKLYGRX.js");
4188
+ const { launchInteractiveWizard } = await import("./interactive-OMJAMCQP.js");
4189
4189
  await launchInteractiveWizard();
4190
4190
  return;
4191
4191
  }
@@ -5543,8 +5543,8 @@ var resultsCommand = subcommands({
5543
5543
  import { existsSync as existsSync4, readFileSync as readFileSync6, writeFileSync as writeFileSync3 } from "node:fs";
5544
5544
  import path8 from "node:path";
5545
5545
  import { Hono } from "hono";
5546
- function feedbackPath(cwd) {
5547
- return path8.join(cwd, "feedback.json");
5546
+ function feedbackPath(resultDir) {
5547
+ return path8.join(resultDir, "feedback.json");
5548
5548
  }
5549
5549
  function readFeedback(cwd) {
5550
5550
  const fp = feedbackPath(cwd);
@@ -5562,13 +5562,13 @@ function writeFeedback(cwd, data) {
5562
5562
  writeFileSync3(feedbackPath(cwd), `${JSON.stringify(data, null, 2)}
5563
5563
  `, "utf8");
5564
5564
  }
5565
- function createApp(results, cwd) {
5565
+ function createApp(results, resultDir) {
5566
5566
  const app2 = new Hono();
5567
5567
  app2.get("/", (c3) => {
5568
5568
  return c3.html(generateServeHtml(results));
5569
5569
  });
5570
5570
  app2.get("/api/feedback", (c3) => {
5571
- const data = readFeedback(cwd);
5571
+ const data = readFeedback(resultDir);
5572
5572
  return c3.json(data);
5573
5573
  });
5574
5574
  app2.post("/api/feedback", async (c3) => {
@@ -5591,7 +5591,7 @@ function createApp(results, cwd) {
5591
5591
  return c3.json({ error: "Each review must have test_id and comment strings" }, 400);
5592
5592
  }
5593
5593
  }
5594
- const existing = readFeedback(cwd);
5594
+ const existing = readFeedback(resultDir);
5595
5595
  const now = (/* @__PURE__ */ new Date()).toISOString();
5596
5596
  for (const review of incoming) {
5597
5597
  const newReview = {
@@ -5606,7 +5606,7 @@ function createApp(results, cwd) {
5606
5606
  existing.reviews.push(newReview);
5607
5607
  }
5608
5608
  }
5609
- writeFeedback(cwd, existing);
5609
+ writeFeedback(resultDir, existing);
5610
5610
  return c3.json(existing);
5611
5611
  });
5612
5612
  return app2;
@@ -6230,11 +6230,12 @@ var resultsServeCommand = command({
6230
6230
  const listenPort = port ?? 3117;
6231
6231
  try {
6232
6232
  const { results, sourceFile } = await loadResults(source, cwd);
6233
- const app2 = createApp(results, cwd);
6233
+ const resultDir = path8.dirname(path8.resolve(sourceFile));
6234
+ const app2 = createApp(results, resultDir);
6234
6235
  console.log(`Serving ${results.length} result(s) from ${sourceFile}`);
6235
6236
  console.log(`Dashboard: http://localhost:${listenPort}`);
6236
6237
  console.log(`Feedback API: http://localhost:${listenPort}/api/feedback`);
6237
- console.log(`Feedback file: ${feedbackPath(cwd)}`);
6238
+ console.log(`Feedback file: ${feedbackPath(resultDir)}`);
6238
6239
  console.log("Press Ctrl+C to stop");
6239
6240
  const { serve: startServer } = await import("@hono/node-server");
6240
6241
  startServer({
@@ -7765,4 +7766,4 @@ export {
7765
7766
  preprocessArgv,
7766
7767
  runCli
7767
7768
  };
7768
- //# sourceMappingURL=chunk-X2343WOK.js.map
7769
+ //# sourceMappingURL=chunk-TGCWIHBH.js.map