bpmax-cli 0.1.44-beta.23 → 0.1.44-beta.25

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/dist/bin.js CHANGED
@@ -469,7 +469,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
469
469
  // package.json
470
470
  var package_default = {
471
471
  name: "bpmax-cli",
472
- version: "0.1.44-beta.23",
472
+ version: "0.1.44-beta.25",
473
473
  description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
474
474
  type: "module",
475
475
  bin: {
@@ -4273,9 +4273,23 @@ function looksLikeParseEvalFunctionBody(script) {
4273
4273
  }
4274
4274
  function addCodeModeMessageScriptError(errors, pathName) {
4275
4275
  errors.push(
4276
- `${pathName} is code-mode message content but is not a parseEvalFunction body; wrap literal text as a JS return script, for example: return "\u8BF7\u5904\u7406..."; use return ""; to suppress default message sending.`
4276
+ `${pathName} is code-mode message content but is not a parseEvalFunction body; code-mode scripts must return a complete message object, for example: return { title: "...", content: [...], actions: [...], messageType: "step" }; use return ""; only to suppress outbound messages entirely.`
4277
4277
  );
4278
4278
  }
4279
+ function returnsBareNonEmptyString(script) {
4280
+ if (/\breturn\s+[{(]/.test(script)) {
4281
+ return false;
4282
+ }
4283
+ const matches = script.match(/\breturn\s+"([^"]*)"/);
4284
+ if (matches && matches[1] !== "") {
4285
+ return true;
4286
+ }
4287
+ const singleMatches = script.match(/\breturn\s+'([^']*)'/);
4288
+ if (singleMatches && singleMatches[1] !== "") {
4289
+ return true;
4290
+ }
4291
+ return false;
4292
+ }
4279
4293
  function validateCodeModeMessageScript(errors, pathName, value) {
4280
4294
  if (value === void 0 || value === null || value === "") {
4281
4295
  errors.push(
@@ -4285,6 +4299,12 @@ function validateCodeModeMessageScript(errors, pathName, value) {
4285
4299
  }
4286
4300
  if (typeof value !== "string" || !looksLikeParseEvalFunctionBody(value)) {
4287
4301
  addCodeModeMessageScriptError(errors, pathName);
4302
+ return;
4303
+ }
4304
+ if (returnsBareNonEmptyString(value)) {
4305
+ errors.push(
4306
+ `${pathName} is code-mode message content but returns a bare string; code-mode scripts must return a complete message object { title, content, actions: [{ type: "link", text, url, m_url }], messageType: "step" }. A non-empty bare string is treated as truthy and enters sendMessage but cannot render as a card. Only return ""; suppresses outbound messages.`
4307
+ );
4288
4308
  }
4289
4309
  }
4290
4310
  function validateCodeModeMessageActionUrl(errors, pathName, value) {
@@ -5215,12 +5235,12 @@ function extractEmbeddedSubformOrder(template, field) {
5215
5235
  return flattenFieldOrder(rows);
5216
5236
  }
5217
5237
  function ordersMismatch(orders) {
5218
- const comparable = orders.filter((order) => order.length > 0);
5219
- if (comparable.length <= 1) {
5238
+ const comparable2 = orders.filter((order) => order.length > 0);
5239
+ if (comparable2.length <= 1) {
5220
5240
  return false;
5221
5241
  }
5222
- const first = JSON.stringify(comparable[0]);
5223
- return comparable.some((order) => JSON.stringify(order) !== first);
5242
+ const first = JSON.stringify(comparable2[0]);
5243
+ return comparable2.some((order) => JSON.stringify(order) !== first);
5224
5244
  }
5225
5245
  async function inspectFormTemplate(config, profile, id, options = {}) {
5226
5246
  const exported = await exportConfigDomain(
@@ -6806,8 +6826,8 @@ async function readBackConfigDomain(profile, domain, id, definition) {
6806
6826
  };
6807
6827
  }
6808
6828
  function comparableSubmitPayload(domain, value, options) {
6809
- const comparable = domain === "form-template" && options.ignoreServerFields ? stripServerFilledFields(value, FORM_TEMPLATE_SERVER_FIELD_KEYS) : value;
6810
- return buildDomainSubmitPayload(domain, comparable);
6829
+ const comparable2 = domain === "form-template" && options.ignoreServerFields ? stripServerFilledFields(value, FORM_TEMPLATE_SERVER_FIELD_KEYS) : value;
6830
+ return buildDomainSubmitPayload(domain, comparable2);
6811
6831
  }
6812
6832
  function diffMismatchCount(diff) {
6813
6833
  const counts = isRecord3(diff?.counts) ? diff.counts : {};
@@ -8477,7 +8497,7 @@ async function submitPluginConfigDomain(profile, domain, id, submitFile, confirm
8477
8497
  }
8478
8498
  const endpoint = mode === "create" ? resolved.adapter.endpoints?.create : resolved.adapter.endpoints?.update;
8479
8499
  const method = endpoint?.method || (mode === "create" ? "POST" : "PUT");
8480
- const pathValue = mode === "create" ? endpointPath(endpoint, void 0, resolved.adapter.plugin_key, "create") : endpointPath(endpoint, id, resolved.adapter.plugin_key, "update");
8500
+ const pathValue2 = mode === "create" ? endpointPath(endpoint, void 0, resolved.adapter.plugin_key, "create") : endpointPath(endpoint, id, resolved.adapter.plugin_key, "update");
8481
8501
  const expectedConfirm = `submit plugin ${domain} ${id}`;
8482
8502
  let currentHash = null;
8483
8503
  if (mode !== "create") {
@@ -8493,7 +8513,7 @@ async function submitPluginConfigDomain(profile, domain, id, submitFile, confirm
8493
8513
  domain,
8494
8514
  plugin: resolved.plugin,
8495
8515
  id,
8496
- endpoint: pathValue,
8516
+ endpoint: pathValue2,
8497
8517
  method,
8498
8518
  payload: submit.payload,
8499
8519
  current_hash: currentHash,
@@ -8503,7 +8523,7 @@ async function submitPluginConfigDomain(profile, domain, id, submitFile, confirm
8503
8523
  const response = await apiRequest(
8504
8524
  createApiClient(profile),
8505
8525
  method,
8506
- pathValue,
8526
+ pathValue2,
8507
8527
  { data: submit.payload, capability: capabilityFor(resolved.adapter, mode === "create" ? "create" : "update") }
8508
8528
  );
8509
8529
  const readbackId = mode === "create" ? String(responseId(response) ?? id) : id;
@@ -8514,7 +8534,7 @@ async function submitPluginConfigDomain(profile, domain, id, submitFile, confirm
8514
8534
  plugin: resolved.plugin,
8515
8535
  id,
8516
8536
  created_id: mode === "create" ? responseId(response) ?? null : null,
8517
- endpoint: pathValue,
8537
+ endpoint: pathValue2,
8518
8538
  method,
8519
8539
  response,
8520
8540
  readback_hash: readback ? hashJson(readback) : null
@@ -10587,6 +10607,9 @@ function numberValue(value, fallback) {
10587
10607
  const next = Number(value);
10588
10608
  return Number.isFinite(next) ? next : fallback;
10589
10609
  }
10610
+ function arrayValue2(value) {
10611
+ return Array.isArray(value) ? value : [];
10612
+ }
10590
10613
  function timestampSlug() {
10591
10614
  return (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
10592
10615
  }
@@ -10623,6 +10646,96 @@ function stepEvidenceFile(files, stepId, kind) {
10623
10646
  const pattern = new RegExp(`(?:^|-)step-${escapeRegExp2(stepId)}-${kind}\\.json$`);
10624
10647
  return files.find((file) => pattern.test(file));
10625
10648
  }
10649
+ function comparable(value) {
10650
+ return JSON.stringify(value);
10651
+ }
10652
+ function valuesEqual(left, right) {
10653
+ return comparable(left) === comparable(right);
10654
+ }
10655
+ function pathValue(source, dottedPath) {
10656
+ return dottedPath.split(".").reduce((current, segment) => {
10657
+ if (!isRecord8(current)) {
10658
+ return void 0;
10659
+ }
10660
+ return current[segment];
10661
+ }, source);
10662
+ }
10663
+ function normalizeExpectedChecks(value) {
10664
+ if (!Array.isArray(value)) {
10665
+ return [];
10666
+ }
10667
+ return value.filter(isRecord8).map((item) => ({
10668
+ ...stringValue3(item.name) ? { name: stringValue3(item.name) } : {},
10669
+ path: stringValue3(item.path) ?? "",
10670
+ op: stringValue3(item.op) ?? "equals",
10671
+ ...Object.prototype.hasOwnProperty.call(item, "value") ? { value: item.value } : {},
10672
+ ...Array.isArray(item.values) ? { values: item.values } : {}
10673
+ })).filter((item) => item.path);
10674
+ }
10675
+ function expectationTarget(context, requirements) {
10676
+ return {
10677
+ context: {
10678
+ current_user_can_process: context.current_user_can_process,
10679
+ identity_unverified: context.identity_unverified,
10680
+ step_finished: context.step_finished,
10681
+ current_user_reason: context.current_user_reason,
10682
+ actions: context.actions.map((action) => action.action),
10683
+ action_labels: context.actions.map((action) => action.label),
10684
+ owner_sources: context.owner_diagnostics.owner_sources
10685
+ },
10686
+ requirements: {
10687
+ can_submit: requirements.can_submit,
10688
+ required_fields: requirements.required_inputs.map((field) => field.key).filter(Boolean),
10689
+ optional_fields: requirements.optional_inputs.map((field) => field.key).filter(Boolean),
10690
+ missing_fields: requirements.missing_required_inputs.map((field) => field.key).filter(Boolean),
10691
+ blocking_reasons: requirements.blocking_reasons
10692
+ }
10693
+ };
10694
+ }
10695
+ function evaluateExpectedChecks(checks, target) {
10696
+ return checks.map((check) => {
10697
+ const actual = pathValue(target, check.path);
10698
+ const expected = Object.prototype.hasOwnProperty.call(check, "value") ? check.value : check.values;
10699
+ let ok = false;
10700
+ if (check.op === "equals") {
10701
+ ok = valuesEqual(actual, check.value);
10702
+ } else if (check.op === "not_equals") {
10703
+ ok = !valuesEqual(actual, check.value);
10704
+ } else if (check.op === "one_of") {
10705
+ ok = arrayValue2(check.values).some((value) => valuesEqual(actual, value));
10706
+ } else if (check.op === "includes") {
10707
+ ok = arrayValue2(actual).some((value) => valuesEqual(value, check.value));
10708
+ } else if (check.op === "includes_all") {
10709
+ ok = arrayValue2(check.value).every((expectedValue) => arrayValue2(actual).some((value) => valuesEqual(value, expectedValue)));
10710
+ } else if (check.op === "empty") {
10711
+ ok = Array.isArray(actual) ? actual.length === 0 : actual === void 0 || actual === null || actual === "";
10712
+ } else if (check.op === "not_empty") {
10713
+ ok = Array.isArray(actual) ? actual.length > 0 : actual !== void 0 && actual !== null && actual !== "";
10714
+ } else if (check.op === "matches") {
10715
+ ok = typeof actual === "string" && typeof check.value === "string" && new RegExp(check.value).test(actual);
10716
+ }
10717
+ return {
10718
+ ok,
10719
+ name: check.name ?? `${check.path} ${check.op}`,
10720
+ path: check.path,
10721
+ op: check.op,
10722
+ expected,
10723
+ actual
10724
+ };
10725
+ });
10726
+ }
10727
+ function buildExpectedChecks(options) {
10728
+ const requiredFields = options.requirements.required_inputs.map((field) => field.key).filter(Boolean);
10729
+ const missingFields = options.successfulSubmit ? [] : options.requirements.missing_required_inputs.map((field) => field.key).filter(Boolean);
10730
+ return [
10731
+ ...typeof options.context?.current_user_can_process === "boolean" ? [{ name: "current user can process step", path: "context.current_user_can_process", op: "equals", value: true }] : [],
10732
+ ...typeof options.context?.identity_unverified === "boolean" ? [{ name: "identity evidence remains available", path: "context.identity_unverified", op: "equals", value: false }] : [],
10733
+ ...typeof options.context?.step_finished === "boolean" ? [{ name: "step is still open", path: "context.step_finished", op: "equals", value: false }] : [],
10734
+ { name: "required field shape is compatible", path: "requirements.required_fields", op: "includes_all", value: requiredFields },
10735
+ { name: "missing fields are within recorded range", path: "requirements.missing_fields", op: "equals", value: missingFields },
10736
+ ...options.action ? [{ name: "cached action is still available", path: "context.actions", op: "includes", value: options.action }] : []
10737
+ ];
10738
+ }
10626
10739
  function flowCachePath(profileName, flowId) {
10627
10740
  return path9.join(cacheRoot(), "profiles", safeSegment(profileName), "flows", `${safeSegment(flowId)}.json`);
10628
10741
  }
@@ -10681,7 +10794,8 @@ function normalizeStepPlan(input, defaults) {
10681
10794
  ...stringValue3(input.target_step ?? input.targetStep) ? { target_step: stringValue3(input.target_step ?? input.targetStep) } : {},
10682
10795
  ...stringValue3(input.comments) ?? defaults.comments ? { comments: stringValue3(input.comments) ?? defaults.comments } : {},
10683
10796
  urgency: numberValue(input.urgency, defaults.urgency),
10684
- data
10797
+ data,
10798
+ expected_checks: normalizeExpectedChecks(input.expected_checks ?? input.expectedChecks)
10685
10799
  };
10686
10800
  }
10687
10801
  function buildStepRunPlans(options) {
@@ -10708,6 +10822,46 @@ function buildSubmitPayload(projectId, plan) {
10708
10822
  urgency: plan.urgency
10709
10823
  };
10710
10824
  }
10825
+ function dataProfilePath(input) {
10826
+ if (!input?.startsWith("@")) {
10827
+ return void 0;
10828
+ }
10829
+ return path9.resolve(input.slice(1));
10830
+ }
10831
+ function refreshedStepTemplate(options) {
10832
+ return {
10833
+ name: options.name ?? `step-${options.plan.step_id}`,
10834
+ project_id: options.projectId,
10835
+ step_id: options.plan.step_id,
10836
+ generated_at: (/* @__PURE__ */ new Date()).toISOString(),
10837
+ submit_mode: "cli_step_safe_chain",
10838
+ cache_policy: {
10839
+ validate_before_reuse: true,
10840
+ refresh_when_stale: true
10841
+ },
10842
+ expected_checks: buildExpectedChecks({
10843
+ context: options.context,
10844
+ requirements: options.requirements,
10845
+ action: options.plan.action,
10846
+ successfulSubmit: options.requirements.missing_required_inputs.length === 0
10847
+ }),
10848
+ required_fields: options.requirements.required_inputs.map((field) => field.key).filter(Boolean),
10849
+ missing_fields_at_record_time: options.requirements.missing_required_inputs.map((field) => field.key).filter(Boolean),
10850
+ variables: Object.keys(options.plan.data).filter((key) => !["project_id", "action", "urgency"].includes(key)),
10851
+ payload_template: options.plan.data,
10852
+ source_evidence: {
10853
+ evidence_dir: path9.resolve(options.evidenceDir),
10854
+ context: path9.basename(options.contextFile)
10855
+ }
10856
+ };
10857
+ }
10858
+ async function writeRefreshedCache(file, template) {
10859
+ const out = path9.resolve(file);
10860
+ await mkdir8(path9.dirname(out), { recursive: true });
10861
+ await writeFile8(out, `${JSON.stringify(redactAuditValue(template), null, 2)}
10862
+ `, "utf8");
10863
+ return out;
10864
+ }
10711
10865
  function blockedReason(context, canSubmit) {
10712
10866
  if (context.identity_unverified) {
10713
10867
  return "identity_unverified";
@@ -10803,11 +10957,12 @@ function recordKey(record, index) {
10803
10957
  }
10804
10958
  function registerE2eCommands(program2) {
10805
10959
  const e2e = program2.command("e2e").description("BPMAX E2E acceleration helpers with evidence-first safety gates");
10806
- e2e.command("step-run").description("Run one or more BPMAX step safe-chain submissions with evidence files").requiredOption("--project-id <projectId>", "Project id").option("--step-id <stepId>", "Step id for single-step mode").option("--action <action>", "Step action", "approve").option("--data <json>", "Single-step submit data JSON or @file").option("--data-profile <json>", "Reusable step profile JSON or @file; supports steps[] or steps object").option("--comments <comments>", "Step comments").option("--urgency <urgency>", "Urgency value", "1").option("--confirm <confirmation>", "Actually submit; otherwise dry-run only").option("--profile <profile>", "Profile name").option("--evidence-dir <dir>", "Evidence directory", `.codex/tmp/e2e/${timestampSlug()}`).option("--format <format>", "Output format", "json").action(async (options) => {
10960
+ e2e.command("step-run").description("Run one or more BPMAX step safe-chain submissions with evidence files").requiredOption("--project-id <projectId>", "Project id").option("--step-id <stepId>", "Step id for single-step mode").option("--action <action>", "Step action", "approve").option("--data <json>", "Single-step submit data JSON or @file").option("--data-profile <json>", "Reusable step profile JSON or @file; supports steps[] or steps object").option("--auto-refresh-cache", "Write a refreshed cache template when expected checks are missing or stale").option("--cache-out <file>", "Refreshed cache template output; defaults to --data-profile @file when possible").option("--comments <comments>", "Step comments").option("--urgency <urgency>", "Urgency value", "1").option("--confirm <confirmation>", "Actually submit; otherwise dry-run only").option("--profile <profile>", "Profile name").option("--evidence-dir <dir>", "Evidence directory", `.codex/tmp/e2e/${timestampSlug()}`).option("--format <format>", "Output format", "json").action(async (options) => {
10807
10961
  const config = await loadConfig();
10808
10962
  const profile = resolveProfile(config, options.profile);
10809
10963
  const client = createApiClient(profile);
10810
10964
  const data = options.data ? await parseJsonInput(options.data, "--data") : {};
10965
+ const profilePath = dataProfilePath(options.dataProfile);
10811
10966
  const dataProfile = options.dataProfile ? await parseJsonFileOrInput(options.dataProfile, "--data-profile") : null;
10812
10967
  const plans = buildStepRunPlans({
10813
10968
  stepId: options.stepId,
@@ -10836,6 +10991,46 @@ function registerE2eCommands(program2) {
10836
10991
  ...context,
10837
10992
  requirements
10838
10993
  });
10994
+ if (options.dataProfile) {
10995
+ const target = expectationTarget(context, requirements);
10996
+ const checkResults = evaluateExpectedChecks(plan.expected_checks, target);
10997
+ const failedChecks = checkResults.filter((check) => !check.ok);
10998
+ const missingChecks = plan.expected_checks.length === 0;
10999
+ if (missingChecks || failedChecks.length > 0) {
11000
+ stopped = true;
11001
+ const refreshOut = options.cacheOut ?? profilePath;
11002
+ let refreshedCacheFile;
11003
+ let refreshedTemplate;
11004
+ if (options.autoRefreshCache) {
11005
+ if (!refreshOut) {
11006
+ throw new Error("e2e step-run --auto-refresh-cache requires --cache-out when --data-profile is not an @file path.");
11007
+ }
11008
+ refreshedTemplate = refreshedStepTemplate({
11009
+ name: plan.label ?? `step-${plan.step_id}`,
11010
+ projectId: options.projectId,
11011
+ plan,
11012
+ context,
11013
+ requirements,
11014
+ evidenceDir,
11015
+ contextFile
11016
+ });
11017
+ refreshedCacheFile = await writeRefreshedCache(refreshOut, refreshedTemplate);
11018
+ }
11019
+ steps.push({
11020
+ step_id: plan.step_id,
11021
+ action: plan.action,
11022
+ status: "cache_stale",
11023
+ cache_status: missingChecks ? "missing_expected_checks" : "expected_checks_failed",
11024
+ expected_check_results: checkResults,
11025
+ failed_checks: failedChecks,
11026
+ evidence: { context: contextFile },
11027
+ ...refreshedCacheFile ? { refreshed_cache_file: refreshedCacheFile } : {},
11028
+ ...refreshedTemplate ? { refreshed_template: refreshedTemplate } : {},
11029
+ next_action: refreshedCacheFile ? "Review the refreshed cache template, fill any new missing required fields, then rerun e2e step-run." : "Rebuild this step cache with --auto-refresh-cache before continuing."
11030
+ });
11031
+ continue;
11032
+ }
11033
+ }
10839
11034
  const request = {
10840
11035
  method: "PUT",
10841
11036
  path: `/step/${plan.step_id}`,
@@ -10887,7 +11082,7 @@ function registerE2eCommands(program2) {
10887
11082
  });
10888
11083
  }
10889
11084
  printResult(options.format, {
10890
- ok: steps.every((step) => step.status !== "blocked"),
11085
+ ok: steps.every((step) => step.status !== "blocked" && step.status !== "cache_stale"),
10891
11086
  dry_run: !options.confirm,
10892
11087
  project_id: options.projectId,
10893
11088
  profile: profile.name,
@@ -11028,6 +11223,16 @@ function registerE2eCommands(program2) {
11028
11223
  const requiredInputs = Array.isArray(requirements.required_inputs) ? requirements.required_inputs.filter(isRecord8) : [];
11029
11224
  const missingInputs = Array.isArray(requirements.missing_required_inputs) ? requirements.missing_required_inputs.filter(isRecord8) : [];
11030
11225
  const requestData = isRecord8(submit?.request) && isRecord8(submit.request.data) ? submit.request.data : {};
11226
+ const recordedAction = stringValue3(requestData.action);
11227
+ const expectedChecks = buildExpectedChecks({
11228
+ context,
11229
+ requirements: {
11230
+ required_inputs: requiredInputs,
11231
+ missing_required_inputs: submitFile ? [] : missingInputs
11232
+ },
11233
+ action: recordedAction,
11234
+ successfulSubmit: Boolean(submitFile)
11235
+ });
11031
11236
  const hasStepEvidence = Boolean(inferredStepId || contextFile || submitFile);
11032
11237
  const evidenceFiles = files.filter((file) => /\.(json|txt|png|jpe?g|webp)$/i.test(file)).sort();
11033
11238
  if (!hasStepEvidence) {
@@ -11046,8 +11251,13 @@ function registerE2eCommands(program2) {
11046
11251
  ...inferredStepId ? { step_id: inferredStepId } : {},
11047
11252
  generated_at: (/* @__PURE__ */ new Date()).toISOString(),
11048
11253
  submit_mode: "cli_step_safe_chain",
11254
+ cache_policy: {
11255
+ validate_before_reuse: true,
11256
+ refresh_when_stale: true
11257
+ },
11258
+ expected_checks: expectedChecks,
11049
11259
  required_fields: requiredInputs.map((field) => field.key).filter(Boolean),
11050
- missing_fields_at_record_time: missingInputs.map((field) => field.key).filter(Boolean),
11260
+ missing_fields_at_record_time: (submitFile ? [] : missingInputs).map((field) => field.key).filter(Boolean),
11051
11261
  variables: Object.keys(requestData).filter((key) => !["project_id", "action", "urgency"].includes(key)),
11052
11262
  payload_template: requestData,
11053
11263
  source_evidence: {
@@ -13334,7 +13544,7 @@ var schemaEntries = [
13334
13544
  { name: "config.repository.sync", description: "Run platform sysconfigdiff pullcommit/extract/pushcommit steps.", method: "POST", path: "/api/config_repository/:env?action=sync" },
13335
13545
  { name: "config.latest.pull", description: "Sync latest BPMAX sysconfig repositories for a configured environment.", method: "external", path: "external:sysconfigdiff + git" },
13336
13546
  { name: "config.e2e.run", description: "Run BPMAX config end-to-end validation orchestration.", method: "local+remote", path: "cli:e2e" },
13337
- { name: "e2e.step_run", description: "Run BPMAX step safe-chain submissions with evidence files.", method: "GET/PUT", path: "/api/project/:id + /api/step/:id" },
13547
+ { name: "e2e.step_run", description: "Run BPMAX step safe-chain submissions with evidence files, expected-check validation, and stale-cache refresh.", method: "GET/PUT", path: "/api/project/:id + /api/step/:id" },
13338
13548
  { name: "e2e.create_page_submit", description: "Prepare real-browser BPMAX create-page submission scripts from handoff URLs.", method: "local+browser", path: "cli:e2e create-page-submit" },
13339
13549
  { name: "e2e.cache", description: "Inspect and refresh local BPMAX E2E runtime cache.", method: "GET/local", path: "/api/flow/:id + .codex/cache/bpmax-e2e" },
13340
13550
  { name: "e2e.browser_template", description: "Generate Playwright templates for real BPMAX browser evidence runs.", method: "local", path: ".codex/e2e-scripts" },