@ancha-labs/cli 0.1.5 → 0.1.6

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.
@@ -911,9 +911,18 @@ function originLabel(origin) {
911
911
  return [SOURCES[origin.source] ?? String(origin.source), String(origin.target ?? "").toLowerCase(), commit].filter(Boolean).join(" \xB7 ");
912
912
  }
913
913
  function result(run) {
914
- const counts = batchCounts(run), rate = run.summary?.pass_rate;
914
+ const counts = batchCounts(run), summary = run.summary;
915
915
  if (!terminal(run.status)) return run.status === "queued" && run.queue ? queueLabel(run.queue) : `${counts.finished} / ${counts.total} finished`;
916
- return typeof rate === "number" ? `${Math.round(rate * 100)}% passed` : `${counts.total} ${counts.total === 1 ? "attempt" : "attempts"}`;
916
+ const tasks = run.tasks ?? [], attempts = run.attempts ?? [];
917
+ const verified = summary?.verdictVersion === 2 ? summary.counts : void 0;
918
+ const requested = verified?.requested ?? (tasks.length && tasks.every((task) => Number.isSafeInteger(task.attempts) && task.attempts > 0) ? tasks.reduce((sum2, task) => sum2 + task.attempts, 0) : void 0);
919
+ const passed = verified?.passed ?? attempts.filter((attempt) => attempt.outcome === "passed").length;
920
+ const invalid = verified?.invalid ?? attempts.filter((attempt) => attempt.outcome === "invalid").length;
921
+ const skipped = verified?.skipped ?? attempts.filter((attempt) => attempt.outcome === "skipped").length;
922
+ const graded = typeof summary?.pass_rate === "number" || attempts.some((attempt) => ["passed", "failed"].includes(attempt.outcome));
923
+ const detail = `${invalid ? ` \xB7 ${invalid} invalid` : ""}${skipped ? ` \xB7 ${skipped} skipped` : ""}`;
924
+ if (graded) return `${requested ? `${Math.round(passed / requested * 100)}% passed` : "Unverified rate \xB7 rerun"}${detail}`;
925
+ return `${requested ?? counts.total} ${(requested ?? counts.total) === 1 ? "attempt" : "attempts"}${detail}`;
917
926
  }
918
927
  function row(run) {
919
928
  const date = new Date(run.createdAt), when = Number.isFinite(date.getTime()) ? date.toLocaleString(void 0, { month: "short", day: "numeric", hour: "numeric", minute: "2-digit" }) : "";
@@ -943,13 +952,14 @@ function attemptOutcome(attempt) {
943
952
  if (attempt.outcome === "passed") return { key: "passed", label: "Passed", tone: "pass", mark: "\u2713" };
944
953
  if (attempt.outcome === "failed") return { key: "failed", label: "Failed", tone: "fail", mark: "\u2717" };
945
954
  if (attempt.outcome === "invalid") return { key: "invalid", label: "Invalid \xB7 harness", tone: "invalid", mark: "?" };
955
+ if (attempt.outcome === "skipped") return { key: "skipped", label: "Skipped", tone: "neutral", mark: "\u25C7" };
946
956
  return { key: "ungraded", label: "Ungraded", tone: "neutral", mark: "\u2013" };
947
957
  }
948
958
  var invalidReasons = { capture_timeout: "Collecting the final tool state timed out", capture_failed: "Collecting the final tool state failed" };
949
959
  function invalidNote(attempt) {
950
960
  if (attempt.outcome !== "invalid") return "";
951
961
  const reason = invalidReasons[String(attempt.invalidReason)] ?? "The harness could not finish this attempt";
952
- return `<p class="aw-invalid-note">${h(reason)}, so this attempt is left out of the success rate. The agent itself finished.</p>`;
962
+ return `<p class="aw-invalid-note">${h(reason)}, so this attempt is invalid and cannot count as passed. It remains in the requested-attempt denominator.</p>`;
953
963
  }
954
964
  var startingSeen = /* @__PURE__ */ new Map();
955
965
  function startingSince(attempt) {
@@ -968,12 +978,12 @@ function queueLine(batch) {
968
978
  const blocking = batch.queue.blockingRun;
969
979
  return `<p class="aw-queue" role="status">${h(queueLabel(batch.queue))}.${blocking ? ` ${navLink(String(blocking.name ?? "Another run"), "/playgrounds/" + encodeURIComponent(String(blocking.id)))} is using this workspace's runner.` : ""}</p>`;
970
980
  }
971
- function executionSummary(attempts) {
981
+ function executionSummary(attempts, requested = attempts.length) {
972
982
  const finished = attempts.filter((a) => ["completed", "error", "stopped"].includes(a.status));
973
983
  const durations = finished.map(attemptMs).filter((ms) => ms !== void 0).sort((x, y) => x - y);
974
984
  const passed = attempts.filter((a) => a.outcome === "passed").length, failed = attempts.filter((a) => a.outcome === "failed").length, invalid = attempts.filter((a) => a.outcome === "invalid").length;
975
985
  return {
976
- total: attempts.length,
986
+ total: requested,
977
987
  completed: attempts.filter((a) => a.status === "completed").length,
978
988
  active: attempts.filter((a) => ["starting", "running"].includes(a.status)).length,
979
989
  starting: attempts.filter((a) => a.status === "starting").length,
@@ -994,14 +1004,14 @@ var percent = (part, whole) => whole ? `${Math.round(part / whole * 100)}%` : "\
994
1004
  var duration = (ms) => ms === void 0 ? "\u2014" : ms < 1e4 ? `${(ms / 1e3).toFixed(1)}s` : ms < 12e4 ? `${Math.round(ms / 1e3)}s` : `${Math.round(ms / 6e4)}m`;
995
1005
  var medianTime = (attempts) => duration(executionSummary(attempts).medianMs);
996
1006
  var hasChecks = (tasks) => Array.isArray(tasks) && tasks.some((task) => Array.isArray(task?.checks) && task.checks.length > 0);
997
- function summaryWidgets(attempts, checked = false) {
998
- const s = executionSummary(attempts);
1007
+ function summaryWidgets(attempts, checked = false, requested = attempts.length) {
1008
+ const s = executionSummary(attempts, requested);
999
1009
  const cell2 = (label2, value, note, tone2 = "") => `<div class="rs-stat${tone2 ? " " + tone2 : ""}"><span>${h(label2)}</span><strong>${h(value)}</strong><small>${h(note)}</small></div>`;
1000
1010
  const progress = s.active || s.queued ? [s.active - s.starting && `${s.active - s.starting} running`, s.starting && `${s.starting} starting`, s.queued && `${s.queued} queued`].filter(Boolean).join(" \xB7 ") : s.error ? `${s.error} ended with an error` : s.total ? "All finished" : "No attempts yet";
1001
- const invalid = s.invalid ? `${s.invalid} invalid (harness), left out` : "";
1002
- const rate = s.graded ? [`${s.passed} of ${s.graded} passed`, invalid].filter(Boolean).join(" \xB7 ") : !s.total ? "No attempts yet" : !checked ? "Add checks to a task to grade it" : s.active || s.queued ? "Graded as attempts finish" : invalid || "No attempt could be graded";
1003
- const tone = !s.graded ? "" : s.passed === s.graded ? "pass" : s.passed ? "mixed" : "fail";
1004
- return `<section class="run-summary" aria-label="Summary"><div class="rs-stats">${cell2("Success rate", percent(s.passed, s.graded), rate, tone)}${cell2("Finished", `${s.finished}/${s.total}`, progress)}${cell2("Tool calls", String(s.toolCalls), s.finished ? `${(s.toolCalls / s.finished).toFixed(1)} per attempt` : "\u2014")}${cell2("Median time", duration(s.medianMs), "per attempt")}</div>${progressBar(attempts)}</section>`;
1011
+ const invalid = s.invalid ? `${s.invalid} invalid (harness), not passed` : "";
1012
+ const rate = s.graded ? [`${s.passed} of ${s.total} requested passed`, invalid].filter(Boolean).join(" \xB7 ") : !s.total ? "No attempts yet" : !checked ? "Add checks to a task to grade it" : s.active || s.queued ? "Graded as attempts finish" : invalid || "No attempt could be graded";
1013
+ const tone = !s.graded ? "" : s.passed === s.total ? "pass" : s.passed ? "mixed" : "fail";
1014
+ return `<section class="run-summary" aria-label="Summary"><div class="rs-stats">${cell2("Success rate", s.graded ? percent(s.passed, s.total) : "\u2014", rate, tone)}${s.invalid ? cell2("Invalid", String(s.invalid), "Harness failures; not passed", "invalid") : ""}${cell2("Finished", `${s.finished}/${s.total}`, progress)}${cell2("Tool calls", String(s.toolCalls), s.finished ? `${(s.toolCalls / s.finished).toFixed(1)} per attempt` : "\u2014")}${cell2("Median time", duration(s.medianMs), "per attempt")}</div>${progressBar(attempts)}</section>`;
1005
1015
  }
1006
1016
  function attemptState(attempt) {
1007
1017
  const outcome = attemptOutcome(attempt);
@@ -1013,9 +1023,9 @@ function progressBar(attempts) {
1013
1023
  const s = executionSummary(attempts), label2 = `${s.finished} of ${s.total} attempts finished${s.graded ? `, ${s.passed} passed, ${s.failed} failed` : ""}${s.invalid ? `, ${s.invalid} invalid` : ""}`;
1014
1024
  return `<div class="run-progress" role="img" aria-label="${h(label2)}" title="${h(label2)}">${attempts.map((a) => `<span class="seg ${attemptState(a)}"></span>`).join("")}</div>`;
1015
1025
  }
1016
- function taskOutcome(attempts, checked = false) {
1017
- const s = executionSummary(attempts);
1018
- if (s.graded) return { value: percent(s.passed, s.graded), note: `${s.passed} of ${s.graded} passed${s.invalid ? ` \xB7 ${s.invalid} invalid` : ""}`, tone: s.passed === s.graded ? "pass" : s.passed ? "mixed" : "fail" };
1026
+ function taskOutcome(attempts, checked = false, requested = attempts.length) {
1027
+ const s = executionSummary(attempts, requested);
1028
+ if (s.graded) return { value: percent(s.passed, s.total), note: `${s.passed} of ${s.total} requested passed${s.invalid ? ` \xB7 ${s.invalid} invalid` : ""}`, tone: s.passed === s.total ? "pass" : s.passed ? "mixed" : "fail" };
1019
1029
  if (!s.total) return { value: "\u2014", note: "No attempts", tone: "neutral" };
1020
1030
  if (s.invalid && !s.active && !s.queued) return { value: "\u2014", note: `${s.invalid} invalid (harness)`, tone: "neutral" };
1021
1031
  return { value: `${s.finished}/${s.total}`, note: s.active ? "running" : s.queued ? "queued" : checked ? "finished \xB7 not graded" : "finished \xB7 no checks", tone: "neutral" };
@@ -1057,7 +1067,7 @@ function checksView(attempt, jump = () => void 0) {
1057
1067
  }).join("")}</ul></section>`;
1058
1068
  }
1059
1069
  function widgets(attempts, tasks) {
1060
- return summaryWidgets(attempts, hasChecks(tasks));
1070
+ return summaryWidgets(attempts, hasChecks(tasks), tasks.reduce((sum2, task) => sum2 + (Number(task.attempts) || attempts.filter((attempt) => attempt.taskId === task.id).length), 0));
1061
1071
  }
1062
1072
  function errorMessage(value) {
1063
1073
  if (!value) return "";
@@ -1110,7 +1120,7 @@ function renderRunOverview(batch, actionsHtml = "", options = {}) {
1110
1120
  const shown = selected ? tasks.filter((t) => t.id === selected.id) : tasks;
1111
1121
  if (!shown.length) return "";
1112
1122
  return `<section class="aw-task-section">${groups.length > 1 ? `<header class="aw-entry-header"><h2>${h(entry?.agentName ?? entry?.name ?? "Agent")}</h2><span>${h(entry?.world?.name ?? entry?.test?.world?.name ?? "")}</span></header>` : ""}<div class="aw-section-heading"><h2>${selected ? "Attempts" : "Tasks"}</h2>${!selected ? `<span>${tasks.length}</span>` : ""}</div>${selected ? `<section class="aw-task-description"><p>${h(selected.prompt)}</p></section>` : ""}<div class="aw-task-table"><div class="aw-table-head" aria-hidden="true"><span>Task</span><span>Result</span><span>Attempts</span><span>Median</span><span></span></div>${shown.map((task) => {
1113
- const taskAttempts = attempts.filter((a) => a.taskId === task.id), index = tasks.indexOf(task), first = taskAttempts[0], outcome = taskOutcome(taskAttempts, hasChecks([task]));
1123
+ const taskAttempts = attempts.filter((a) => a.taskId === task.id), index = tasks.indexOf(task), first = taskAttempts[0], outcome = taskOutcome(taskAttempts, hasChecks([task]), Number(task.attempts) || taskAttempts.length);
1114
1124
  const href2 = taskHref(batch, task, first ? { attempt: first.id } : {});
1115
1125
  return `<article class="aw-task-row"><div class="aw-task-name">${navLink(taskDisplayName(task, index), href2)}${!selected ? `<p class="aw-prompt-excerpt">${h(task.prompt)}</p>` : ""}</div><div class="aw-task-outcome ${outcome.tone}"><strong>${h(outcome.value)}</strong><span>${h(outcome.note)}</span></div>${taskAttempts.length ? markers(batch, task, taskAttempts) : '<p class="quiet-empty">No attempts recorded.</p>'}<span class="aw-task-time">${h(medianTime(taskAttempts))}</span><a data-nav class="aw-row-open" href="${h(href2)}" aria-label="Open ${h(taskDisplayName(task, index))}"></a>${selected ? comparisonForm(batch, task, taskAttempts) : ""}</article>`;
1116
1126
  }).join("")}</div></section>`;
@@ -1368,10 +1378,10 @@ function mountWorldWorkspace(node, options) {
1368
1378
  function render() {
1369
1379
  if (disposed) return;
1370
1380
  const currentRuns = selected ? setupRuns(runs, selected) : [], run = currentRuns[0], attempts = run?.attempts ?? [], tasks = selected?.tasks ?? [], choices = worldSetups(tests, world.id, agentId);
1371
- node.innerHTML = `<div class="ww-workspace"><header class="ww-header"><h1>${h(world.name)}</h1><div class="ww-world-actions"><label class="ww-agent-select">Agent<select data-ww-select="agent"><option value="" disabled>Choose agent</option>${agents.map((a) => `<option value="${h(a.id)}" ${a.id === agentId ? "selected" : ""}>${h(agentLabel(a, agents))}</option>`).join("")}</select></label><button type="button" data-ww="configure">Configure</button>${selected ? options.runActions?.(selected.id) ?? button("Run tasks", "run-saved-test", selected.id, "primary") : ""}</div></header>${peopleSection(world)}<p class="ww-error" role="alert" ${error ? "" : "hidden"}>${h(error)}</p>${errors.map((e) => `<p class="ww-error" role="alert">${h(e.message)}</p>`).join("")}${!loaded ? '<p role="status">Loading tasks\u2026</p>' : ""}${choices.length > 1 ? `<label class="ww-setup-select">Configuration<select data-ww-select="test">${!selected ? '<option value="" selected disabled>New configuration</option>' : ""}${choices.map((t) => `<option value="${h(t.id)}" ${t.id === selected?.id ? "selected" : ""}>${h(t.name)}</option>`).join("")}</select></label>` : ""}${loaded && configure ? configuration2() : loaded ? `${summaryWidgets(attempts, hasChecks(run?.tasks ?? tasks))}<div class="ww-section-heading"><h2>Tasks${tasks.length ? ` <span class="ww-task-count">${tasks.length}</span>` : ""}</h2><div class="actions">${worldHistory(runs, world.id, agentId || void 0).length || selected ? `<button type="button" data-ww="history" aria-expanded="${showHistory}">History</button>` : ""}<button type="button" data-ww="configure">${tasks.length ? "Edit tasks" : "Add tasks"}</button></div></div>${tasks.length ? `<section class="ww-task-table"><div class="ww-table-head"><span>Task</span><span>Result</span><span>Attempts</span><span>Median</span><span></span></div>${tasks.map((task, index) => {
1381
+ node.innerHTML = `<div class="ww-workspace"><header class="ww-header"><h1>${h(world.name)}</h1><div class="ww-world-actions"><label class="ww-agent-select">Agent<select data-ww-select="agent"><option value="" disabled>Choose agent</option>${agents.map((a) => `<option value="${h(a.id)}" ${a.id === agentId ? "selected" : ""}>${h(agentLabel(a, agents))}</option>`).join("")}</select></label><button type="button" data-ww="configure">Configure</button>${selected ? options.runActions?.(selected.id) ?? button("Run tasks", "run-saved-test", selected.id, "primary") : ""}</div></header>${peopleSection(world)}<p class="ww-error" role="alert" ${error ? "" : "hidden"}>${h(error)}</p>${errors.map((e) => `<p class="ww-error" role="alert">${h(e.message)}</p>`).join("")}${!loaded ? '<p role="status">Loading tasks\u2026</p>' : ""}${choices.length > 1 ? `<label class="ww-setup-select">Configuration<select data-ww-select="test">${!selected ? '<option value="" selected disabled>New configuration</option>' : ""}${choices.map((t) => `<option value="${h(t.id)}" ${t.id === selected?.id ? "selected" : ""}>${h(t.name)}</option>`).join("")}</select></label>` : ""}${loaded && configure ? configuration2() : loaded ? `${summaryWidgets(attempts, hasChecks(run?.tasks ?? tasks), run?.summary?.counts?.requested ?? attempts.length)}<div class="ww-section-heading"><h2>Tasks${tasks.length ? ` <span class="ww-task-count">${tasks.length}</span>` : ""}</h2><div class="actions">${worldHistory(runs, world.id, agentId || void 0).length || selected ? `<button type="button" data-ww="history" aria-expanded="${showHistory}">History</button>` : ""}<button type="button" data-ww="configure">${tasks.length ? "Edit tasks" : "Add tasks"}</button></div></div>${tasks.length ? `<section class="ww-task-table"><div class="ww-table-head"><span>Task</span><span>Result</span><span>Attempts</span><span>Median</span><span></span></div>${tasks.map((task, index) => {
1372
1382
  const list4 = attempts.filter((a) => a.taskId === task.id), taskURL = run ? `/playgrounds/${enc(run.id)}?task=${enc(task.id)}${list4[0] ? "&attempt=" + enc(list4[0].id) : ""}` : "";
1373
1383
  return `<article class="ww-task-row"><div class="ww-task-identity">${taskURL ? `<a data-nav class="ww-task-name" href="${taskURL}"><span class="ww-ordinal">${index + 1}</span><strong>${h(label(task, index))}</strong></a>` : `<strong class="ww-task-name"><span class="ww-ordinal">${index + 1}</span>${h(label(task, index))}</strong>`}<p class="ww-task-prompt" title="${h(task.prompt)}">${h(task.prompt)}</p></div>${(() => {
1374
- const o = taskOutcome(list4, hasChecks([task]));
1384
+ const o = taskOutcome(list4, hasChecks([task]), Number(task.attempts) || list4.length);
1375
1385
  return `<div class="ww-rate ${o.tone}"><strong>${h(o.value)}</strong><span>${h(o.note)}</span></div>`;
1376
1386
  })()}<div class="ww-attempt-marks" role="group" aria-label="Attempts for ${h(label(task, index))}">${list4.map((a) => {
1377
1387
  const o = attemptOutcome(a);
@@ -285,6 +285,8 @@ main{margin:10px 10px 10px 240px;padding:24px 28px 36px;min-height:calc(100vh -
285
285
  .rs-stat>strong{font-size:22px;font-weight:600;line-height:1.2;letter-spacing:-.01em;color:var(--ink);font-variant-numeric:tabular-nums}
286
286
  .rs-stat>small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
287
287
  .rs-stat.pass>strong{color:var(--pass)}.rs-stat.fail>strong{color:var(--fail)}.rs-stat.mixed>strong{color:#9a6b1f}
288
+ .rs-stat.invalid>strong{color:var(--fail)}
289
+ @media(min-width:701px){.rs-stats:has(.rs-stat.invalid){grid-template-columns:repeat(5,minmax(0,1fr))}}
288
290
  .run-summary .run-progress{height:auto;gap:3px;margin:0;padding:0 20px 16px;border-radius:0;background:none;overflow:visible}
289
291
  .run-summary .run-progress .seg{height:4px;border-radius:2px}
290
292
  .aw-section-heading{justify-content:flex-start;gap:8px;margin:0 0 10px}
package/lib/mcp-entry.mjs CHANGED
@@ -18,9 +18,9 @@ var __commonJS = (cb, mod) => function __require2() {
18
18
  throw mod = 0, e;
19
19
  }
20
20
  };
21
- var __export = (target, all) => {
22
- for (var name3 in all)
23
- __defProp(target, name3, { get: all[name3], enumerable: true });
21
+ var __export = (target, all2) => {
22
+ for (var name3 in all2)
23
+ __defProp(target, name3, { get: all2[name3], enumerable: true });
24
24
  };
25
25
  var __copyProps = (to, from, except, desc) => {
26
26
  if (from && typeof from === "object" || typeof from === "function") {
@@ -7377,11 +7377,11 @@ var __getOwnPropNames2 = Object.getOwnPropertyNames;
7377
7377
  var __getProtoOf2 = Object.getPrototypeOf;
7378
7378
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
7379
7379
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
7380
- var __exportAll = (all, symbols) => {
7380
+ var __exportAll = (all2, symbols) => {
7381
7381
  let target = {};
7382
- for (var name3 in all) {
7382
+ for (var name3 in all2) {
7383
7383
  __defProp2(target, name3, {
7384
- get: all[name3],
7384
+ get: all2[name3],
7385
7385
  enumerable: true
7386
7386
  });
7387
7387
  }
@@ -44348,11 +44348,11 @@ var __getOwnPropNames3 = Object.getOwnPropertyNames;
44348
44348
  var __getProtoOf3 = Object.getPrototypeOf;
44349
44349
  var __hasOwnProp3 = Object.prototype.hasOwnProperty;
44350
44350
  var __commonJSMin2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
44351
- var __exportAll2 = (all, symbols) => {
44351
+ var __exportAll2 = (all2, symbols) => {
44352
44352
  let target = {};
44353
- for (var name3 in all) {
44353
+ for (var name3 in all2) {
44354
44354
  __defProp3(target, name3, {
44355
- get: all[name3],
44355
+ get: all2[name3],
44356
44356
  enumerable: true
44357
44357
  });
44358
44358
  }
@@ -57313,6 +57313,68 @@ var AnchaError = class extends Error {
57313
57313
  }
57314
57314
  };
57315
57315
 
57316
+ // packages/core/src/execution-support.ts
57317
+ var all = { local: true, container: true, managed: true };
57318
+ var sceneOnly = { local: true, container: true, managed: false };
57319
+ var EXECUTION_SUPPORT = {
57320
+ "input.scene": { ...sceneOnly, reason: "scene worlds cannot be imported without changing their semantics" },
57321
+ "input.test": { ...sceneOnly, reason: "local test worlds cannot be equated with saved managed worlds" },
57322
+ "input.managed-task": { local: false, container: false, managed: true, reason: "explicit saved-world tasks use runs start or the console" },
57323
+ "managed.world-reference": { local: false, container: false, managed: true, reason: "an explicit reference to an existing managed world, not an imported local world" },
57324
+ "id": all,
57325
+ "title": all,
57326
+ "task": sceneOnly,
57327
+ "start.task": all,
57328
+ "attempts": all,
57329
+ "twins": sceneOnly,
57330
+ "world": sceneOnly,
57331
+ "start_time": sceneOnly,
57332
+ "time_scale": sceneOnly,
57333
+ "seed": sceneOnly,
57334
+ "world_rules": sceneOnly,
57335
+ "people": sceneOnly,
57336
+ "until": sceneOnly,
57337
+ "deadline": sceneOnly,
57338
+ "start.message": sceneOnly,
57339
+ "pass": sceneOnly,
57340
+ "scene.timeout": sceneOnly,
57341
+ "test.timeout": all,
57342
+ "checks.state": all,
57343
+ "checks.trace": all,
57344
+ "checks.process": all,
57345
+ "checks.judge": sceneOnly,
57346
+ "agent.input.command": all,
57347
+ "agent.input.per_event": sceneOnly,
57348
+ "agent.input.events": { local: true, container: false, managed: false },
57349
+ "agent.input.http": all,
57350
+ "agent.endpoint": { local: true, container: false, managed: false },
57351
+ "agent.slack_transport.feed": sceneOnly,
57352
+ "agent.slack_transport.http": { local: true, container: false, managed: false },
57353
+ "agent.slack_transport.socket": { local: true, container: false, managed: false },
57354
+ "agent.env": sceneOnly,
57355
+ "agent.pass_env": sceneOnly,
57356
+ "agent.execution": sceneOnly,
57357
+ "judge": sceneOnly,
57358
+ "min_pass_rate": sceneOnly,
57359
+ "--agent": all,
57360
+ "--trials": all,
57361
+ "--parallel": all,
57362
+ "--idempotency-key": all,
57363
+ "--on": all,
57364
+ "--json": all,
57365
+ "--agent-url": { local: true, container: false, managed: false },
57366
+ "--compare": sceneOnly,
57367
+ "--min-pass-rate": sceneOnly,
57368
+ "--strict": sceneOnly,
57369
+ "--seed": sceneOnly,
57370
+ "--out": sceneOnly,
57371
+ "--detach": sceneOnly,
57372
+ "--pass-env": sceneOnly,
57373
+ "--inherit-env": sceneOnly,
57374
+ "--upload": sceneOnly,
57375
+ "--upload-required": sceneOnly
57376
+ };
57377
+
57316
57378
  // packages/core/src/duration.ts
57317
57379
  var DURATION_RE = /^(-?)(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;
57318
57380
  var MS_PER = { d: 864e5, h: 36e5, m: 6e4, s: 1e3, ms: 1 };
@@ -60272,15 +60334,15 @@ var NotionSeedSchema = external_exports.strictObject({
60272
60334
  databases: external_exports.array(database).max(200).default([])
60273
60335
  }).superRefine((seed2, ctx) => {
60274
60336
  const issue2 = (path2, message4) => ctx.addIssue({ code: "custom", path: path2, message: message4 });
60275
- const users = /* @__PURE__ */ new Set(), pages = /* @__PURE__ */ new Set(), all = /* @__PURE__ */ new Set();
60337
+ const users = /* @__PURE__ */ new Set(), pages = /* @__PURE__ */ new Set(), all2 = /* @__PURE__ */ new Set();
60276
60338
  seed2.users.forEach((u, i) => {
60277
60339
  if (users.has(u.ref)) issue2(["users", i, "ref"], "duplicate user ref");
60278
60340
  users.add(u.ref);
60279
60341
  });
60280
60342
  const declare = (r, path2) => {
60281
60343
  if (r === void 0) return;
60282
- if (all.has(r) || users.has(r)) issue2(path2, `duplicate ref ${r}`);
60283
- all.add(r);
60344
+ if (all2.has(r) || users.has(r)) issue2(path2, `duplicate ref ${r}`);
60345
+ all2.add(r);
60284
60346
  };
60285
60347
  seed2.pages.forEach((p2, i) => {
60286
60348
  declare(p2.ref, ["pages", i, "ref"]);