agent-inspect 6.25.0 → 6.26.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.
@@ -13063,7 +13063,7 @@ var init_src = __esm({
13063
13063
  });
13064
13064
 
13065
13065
  // package.json
13066
- var version = "6.25.0";
13066
+ var version = "6.26.0";
13067
13067
 
13068
13068
  // packages/cli/src/list.ts
13069
13069
  init_advanced();
@@ -19791,9 +19791,9 @@ function unionCheckSelect(input3) {
19791
19791
  function resolvePreset(preset, context = {}) {
19792
19792
  if (preset === void 0 || preset.trim() === "") return void 0;
19793
19793
  const name = preset.trim().toLowerCase();
19794
- if (name !== "trajectory" && name !== "safety" && name !== "comprehensive") {
19794
+ if (name !== "trajectory" && name !== "safety" && name !== "comprehensive" && name !== "behavioral-session") {
19795
19795
  throw new Error(
19796
- `Unknown --preset "${preset}". Use trajectory, safety, or comprehensive.`
19796
+ `Unknown --preset "${preset}". Use trajectory, safety, comprehensive, or behavioral-session.`
19797
19797
  );
19798
19798
  }
19799
19799
  const trajectorySelect = [
@@ -19828,6 +19828,15 @@ function resolvePreset(preset, context = {}) {
19828
19828
  select: safetySelect
19829
19829
  };
19830
19830
  }
19831
+ if (name === "behavioral-session") {
19832
+ return {
19833
+ requireCompleted: true,
19834
+ enableSafetyRedaction: false,
19835
+ enableStructureRelationshipDefaults: false,
19836
+ select: ["run.requireCompleted", "outcome.status", "structure.orphan"],
19837
+ failOnObservation: "failed"
19838
+ };
19839
+ }
19831
19840
  const select = [.../* @__PURE__ */ new Set([...trajectorySelect, ...safetySelect])];
19832
19841
  return {
19833
19842
  requireCompleted: true,
@@ -20261,7 +20270,8 @@ function applyResolvedPreset(config, options, resolved) {
20261
20270
  config: { checks: checks2 },
20262
20271
  options: {
20263
20272
  ...options,
20264
- ...resolved.requireCompleted ? { requireCompleted: true } : {}
20273
+ ...resolved.requireCompleted ? { requireCompleted: true } : {},
20274
+ ...resolved.failOnObservation !== void 0 && (options.failOnObservation === void 0 || options.failOnObservation.trim() === "") ? { failOnObservation: resolved.failOnObservation } : {}
20265
20275
  }
20266
20276
  };
20267
20277
  }
@@ -20407,7 +20417,13 @@ function isSafetyFinding(ruleId) {
20407
20417
  }
20408
20418
  function printPresetClassSummary(result, preset) {
20409
20419
  const name = preset?.trim().toLowerCase();
20410
- if (name !== "trajectory" && name !== "safety" && name !== "comprehensive") {
20420
+ if (name !== "trajectory" && name !== "safety" && name !== "comprehensive" && name !== "behavioral-session") {
20421
+ return;
20422
+ }
20423
+ if (name === "behavioral-session") {
20424
+ console.log(
20425
+ `Behavioral session: ${result.status === "pass" ? "PASS" : "FAIL"} (outcomes scored; tool errors may be expected)`
20426
+ );
20411
20427
  return;
20412
20428
  }
20413
20429
  const hasSafetyFindings = result.findings.some(
@@ -26176,7 +26192,7 @@ function createCliProgram() {
26176
26192
  "run optional circuit rules (repeatable): same-tool-repetition, max-retries, ...",
26177
26193
  (value, previous = []) => [...previous, value]
26178
26194
  ).addOption(
26179
- new commander.Option("--preset <name>", "additive check preset").choices(["trajectory", "safety", "comprehensive"])
26195
+ new commander.Option("--preset <name>", "additive check preset").choices(["trajectory", "safety", "comprehensive", "behavioral-session"])
26180
26196
  ).addOption(
26181
26197
  new commander.Option(
26182
26198
  "--evidence-on <mode>",