@molecule/api-ai-tools 1.16.0 → 1.16.2

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/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-31T01:10:46.602Z
6
+ Generated: 2026-11-03T19:00:07.291Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-ai-tools
@@ -4718,10 +4718,10 @@ function missingHeaderNote(log: string, pageErrors?: readonly CausePageErrors[])
4718
4718
 
4719
4719
  **Returns:** The sentence, or null when the failures do not share a missing landmark.
4720
4720
 
4721
- #### `failureCausesNote(log, excluded, run)`
4721
+ #### `failureCausesNote(log, excluded, run, pageErrors, regressedSpecs, displayedLog)`
4722
4722
 
4723
- The one-line-per-cause summary of a finished run's failures, or null when the run named fewer
4724
- than two of them.
4723
+ The one-line-per-cause summary of a run's failures, or null when the run named none,
4724
+ or named one in a short log returned whole to the reader.
4725
4725
 
4726
4726
  This is what makes a run worth finishing: every cause the run found, in the result the
4727
4727
  executor reads, so one round of fixes covers all of them rather than the one cause a run
@@ -4752,12 +4752,16 @@ function failureCausesNote(
4752
4752
  },
4753
4753
  pageErrors?: readonly CausePageErrors[],
4754
4754
  regressedSpecs?: readonly string[],
4755
+ displayedLog?: string,
4755
4756
  ): string | null
4756
4757
  ```
4757
4758
 
4758
- - `log` — The finished run's output.
4759
+ - `log` — The diagnostic log, which may be a running or explicitly clipped read.
4759
4760
  - `excluded` — The test titles the request carves out, if the caller knows them.
4760
4761
  - `run` — How the run was started, when the caller knows it: the narrowed re-run is built from `command`/`cwd`/`config`/`env`, and `log` (the path the output was written to) is what the "left out" sentence greps when more causes exist than the result has room for.
4762
+ - `pageErrors` — Page evidence for the tests whose failures are being summarized.
4763
+ - `regressedSpecs` — Specs whose selector contracts were broken by subsequent edits.
4764
+ - `displayedLog` — The log text returned to the reader, when different from the diagnostic log (for example a running task's failure headings and tail). A short diagnostic read does not prove that this separate display delivered its error, so it also gets a single recap.
4761
4765
 
4762
4766
  **Returns:** The note, or null.
4763
4767
 
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AA2B9C,OAAO,EAIL,KAAK,mBAAmB,EAEzB,MAAM,wBAAwB,CAAA;AAsC/B;;;;;;;;;;GAUG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,KAAK,CAAC,EACnD,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAmB9B;AAuLD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAahG;AAwdD,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAkInE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAEA,CAAA;AAE9B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,QAI6C,CAAA;AA0DlF;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAUhE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGtE;AAED;;;;;;;;;;;;GAYG;AACH,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BAAgB,EAAE,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,EAAE,CA6pGxF"}
package/dist/tools.js CHANGED
@@ -1290,6 +1290,48 @@ export function buildTools(backend, config) {
1290
1290
  result = redactSecrets(result);
1291
1291
  return result;
1292
1292
  }
1293
+ /**
1294
+ * Build a finished command's causes before either output cut, using the same request scope
1295
+ * and redaction for foreground, quick detached completions and completed waits.
1296
+ *
1297
+ * @param output - The command's whole diagnostic output.
1298
+ * @param run - The original invocation and log path, when known.
1299
+ * @returns A sanitized recap, or null when no recap is needed.
1300
+ */
1301
+ async function finishedFailureCauses(output, run) {
1302
+ const excluded = excludedTestTitles?.() ?? [];
1303
+ let note = failureCausesNote(output, excluded, run);
1304
+ if (note === null)
1305
+ return null;
1306
+ let env = [];
1307
+ if (run && requiredSuiteEnv) {
1308
+ try {
1309
+ env = (await requiredSuiteEnv(run.command, run.cwd)) ?? [];
1310
+ }
1311
+ catch (_error) {
1312
+ // Request context is optional; an unreadable context leaves the original invocation.
1313
+ }
1314
+ }
1315
+ if (run && env.length > 0)
1316
+ note = failureCausesNote(output, excluded, { ...run, env });
1317
+ return note === null ? null : sanitizeOutput(note);
1318
+ }
1319
+ /**
1320
+ * Keep a bounded failure recap whole when execution advice shares its result.
1321
+ *
1322
+ * @param notes - The result's notes, in their original order.
1323
+ * @param causes - The failure recap, when present among the notes.
1324
+ * @returns The note fields, separating execution advice if combining it would cut a re-run.
1325
+ */
1326
+ function finishedNotes(notes, causes) {
1327
+ const present = notes.filter((note) => Boolean(note));
1328
+ if (present.length === 0)
1329
+ return {};
1330
+ const note = present.join(' ');
1331
+ return causes !== null && note.length > TOOL_RESULT_CHARS
1332
+ ? { note: causes, executionNote: present.filter((part) => part !== causes).join(' ') }
1333
+ : { note };
1334
+ }
1293
1335
  /**
1294
1336
  * Sanitize FILE CONTENT for return to the model. Unlike {@link sanitizeOutput},
1295
1337
  * this uses the code-safe redactor for ordinary source files — the name-keyed
@@ -3049,6 +3091,11 @@ export function buildTools(backend, config) {
3049
3091
  const graceReport = streaming.reportPath === undefined
3050
3092
  ? null
3051
3093
  : await readPlaywrightRunReport(backend, streaming.reportPath, sanitizeOutput);
3094
+ const causes = await finishedFailureCauses(output, {
3095
+ command: streaming.command,
3096
+ cwd,
3097
+ log: ownFile ?? log,
3098
+ });
3052
3099
  if (cut) {
3053
3100
  return {
3054
3101
  stdout,
@@ -3071,6 +3118,7 @@ export function buildTools(backend, config) {
3071
3118
  ? SUITE_OVER_BUDGET_ADVICE
3072
3119
  : SPLIT_WORK_ADVICE}`),
3073
3120
  ...(graceReport === null ? {} : { runReport: graceReport }),
3121
+ ...(causes === null ? {} : { note: causes }),
3074
3122
  };
3075
3123
  }
3076
3124
  // The exit file holds the PIPELINE's code: when a stage this rewrite could not
@@ -3091,6 +3139,7 @@ export function buildTools(backend, config) {
3091
3139
  ...(budgetNote ? [budgetNote] : []),
3092
3140
  ...streaming.changes,
3093
3141
  ...(exitNote === null ? [] : [exitNote]),
3142
+ ...(causes === null ? [] : [causes]),
3094
3143
  ];
3095
3144
  return {
3096
3145
  stdout,
@@ -3098,7 +3147,7 @@ export function buildTools(backend, config) {
3098
3147
  exitCode: reported,
3099
3148
  ...(pipeNote === null ? {} : { exitCodeNote: pipeNote }),
3100
3149
  ...(output.length > MAX_OUTPUT_SIZE ? { truncated: true, fullOutput: log } : {}),
3101
- ...(notes.length ? { note: notes.join(' ') } : {}),
3150
+ ...finishedNotes(notes, causes),
3102
3151
  ...suiteBudgetField(budget),
3103
3152
  ...(graceReport === null ? {} : { runReport: graceReport }),
3104
3153
  };
@@ -3217,6 +3266,9 @@ export function buildTools(backend, config) {
3217
3266
  : sanitizeOutput;
3218
3267
  const stdout = grade(truncateMiddle(result.stdout, MAX_OUTPUT_SIZE));
3219
3268
  const stderr = sanitizeOutput(truncateMiddle(result.stderr, MAX_OUTPUT_SIZE));
3269
+ const causes = isSuiteRunCommand(command)
3270
+ ? await finishedFailureCauses(`${result.stdout}\n${result.stderr}`, { command, cwd })
3271
+ : null;
3220
3272
  // Whether the stdout above is a middle cut of what the command printed. Said on the
3221
3273
  // result because a reader that records what this call DELIVERED cannot otherwise tell
3222
3274
  // a whole file from a holed one, and must not point at a holed output as "already
@@ -3275,6 +3327,7 @@ export function buildTools(backend, config) {
3275
3327
  : SPLIT_WORK_ADVICE),
3276
3328
  ...(runReport === null ? {} : { runReport }),
3277
3329
  ...(stdoutTruncated ? { stdoutTruncated: true } : {}),
3330
+ ...(causes === null ? {} : { note: causes }),
3278
3331
  };
3279
3332
  }
3280
3333
  // A pipeline reports its LAST stage's code: `tsc | head` says 0 beside a printed type
@@ -3289,11 +3342,7 @@ export function buildTools(backend, config) {
3289
3342
  ...(exitCodeNote === null ? {} : { exitCodeNote }),
3290
3343
  ...(peekedTask?.slice.trim() ? { outputSoFar: sanitizeOutput(peekedTask.slice) } : {}),
3291
3344
  ...suiteBudgetField(budget),
3292
- ...(sleepNote || ceilingNote || traced.change || budgetNote
3293
- ? {
3294
- note: [sleepNote, ceilingNote, traced.change, budgetNote].filter(Boolean).join(' '),
3295
- }
3296
- : {}),
3345
+ ...finishedNotes([sleepNote, ceilingNote, traced.change, budgetNote, causes], causes),
3297
3346
  ...(runReport === null ? {} : { runReport }),
3298
3347
  ...(stdoutTruncated ? { stdoutTruncated: true } : {}),
3299
3348
  };
@@ -3878,15 +3927,12 @@ export function buildTools(backend, config) {
3878
3927
  // configuration again (m182: the request names `TEST_MODE=fullstack`, the run and its
3879
3928
  // re-run both omitted it, and the walk measured the `spa` suite). The consumer's reading,
3880
3929
  // asked once per finished run; a failure to read answers "nothing required".
3881
- const requiredEnv = run && requiredSuiteEnv
3882
- ? ((await requiredSuiteEnv(run.command, run.cwd).catch(() => [])) ?? [])
3883
- : [];
3884
3930
  // The tests the request excludes are not causes to fix, and the re-run below inverts them
3885
3931
  // out — a result must never ask the executor to fix a test it also says does not count.
3886
3932
  // The log's own path rides along so a recap that leaves causes out can hand over the ONE
3887
3933
  // grep that prints their bodies: the stdout above is cut in the middle, so the log is where
3888
3934
  // they still are whole.
3889
- const causes = failureCausesNote(output, excludedTestTitles?.() ?? [], run ? { ...run, log: ownFile ?? log, env: requiredEnv } : undefined);
3935
+ const causes = await finishedFailureCauses(output, run ? { ...run, log: ownFile ?? log } : undefined);
3890
3936
  // A backgrounded run is under no tool budget, and the exit file hands back the PIPELINE's
3891
3937
  // code — so a suite killed at a `timeout 280` the command carried behind a `| tail` reports
3892
3938
  // 0 here too. The run's start is in its own id ({@link taskStartedAt}), so the bound it used
@@ -3906,7 +3952,7 @@ export function buildTools(backend, config) {
3906
3952
  exitCode: cut.exitCode,
3907
3953
  waitedMs,
3908
3954
  cutRun: cut,
3909
- note: [cutRunSentence(cut), causes].filter((n) => Boolean(n)).join(' '),
3955
+ ...finishedNotes([cutRunSentence(cut), causes], causes),
3910
3956
  stdout: sanitizeOutput(truncateMiddle(output, MAX_OUTPUT_SIZE)),
3911
3957
  ...(output.length > MAX_OUTPUT_SIZE ? { truncated: true, fullOutput: log } : {}),
3912
3958
  ...(runReport === null ? {} : { runReport }),
@@ -3940,13 +3986,7 @@ export function buildTools(backend, config) {
3940
3986
  status: 'completed',
3941
3987
  exitCode: reported,
3942
3988
  waitedMs,
3943
- ...(causes || noCodeNote || endedNote
3944
- ? {
3945
- note: [causes, noCodeNote, endedNote]
3946
- .filter((n) => Boolean(n))
3947
- .join(' '),
3948
- }
3949
- : {}),
3989
+ ...finishedNotes([causes, noCodeNote, endedNote], causes),
3950
3990
  stdout: sanitizeOutput(truncateMiddle(output, MAX_OUTPUT_SIZE)),
3951
3991
  ...(output.length > MAX_OUTPUT_SIZE ? { truncated: true, fullOutput: log } : {}),
3952
3992
  ...(runReport === null ? {} : { runReport }),
@@ -887,6 +887,16 @@ export interface DiagnosisTraceRewrite {
887
887
  * `--retries=0` (`@molecule/api-ai-tools` `streamingBackgroundCommand`), so its retry trace would
888
888
  * never happen. A run that pins `--retries=0` itself is in the same position, whatever its target.
889
889
  *
890
+ * A proof-capable run is left alone WHATEVER its config traces. `--trace` is a per-run override of
891
+ * the suite's own `use.trace` (Playwright merges the CLI's `use` into every project's), and a test
892
+ * record carries the project settings it ran under: a run with the flag is not the suite's own
893
+ * measurement, so it can never count as deployed proof. Added to a deployed walk, the flag made the
894
+ * walk unprovable, and the platform's own answer — "run the current selection" — was a command this
895
+ * same rewrite then flagged again: X1 P140–P173 had 22 deployed walks the executor started, and
896
+ * not one moved the native proof counts (xr-molecule-flash-l1255 walked 73/73 green twice, at
897
+ * +18.2 and +22.9, and neither counted). A failure in a suite that keeps no trace at all is still
898
+ * readable: the platform's re-run note carries `--trace=on` for a run that left none.
899
+ *
890
900
  * @param args - The command, the directory it starts in, and the backend's file read.
891
901
  * @returns The command to run and the sentence to report, or the command unchanged.
892
902
  */
@@ -1 +1 @@
1
- {"version":3,"file":"trace-artifacts.d.ts","sourceRoot":"","sources":["../src/trace-artifacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAMH,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC3B,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,iGAAiG;IACjG,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,O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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmHG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,MAAM,EAAE,MAAM,EACd,eAAe,GAAE,SAAS,MAAM,EAAO,EACvC,WAAW,GAAE,SAAS,MAAM,EAAO,EACnC,MAAM,GAAE,cAAmB,GAC1B,MAAM,GAAG,IAAI,CA+gBf;AAaD;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAG9D;AAyBD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,iFAAiF;AACjF,eAAO,MAAM,oBAAoB,8BAA8B,CAAA;AA4M/D,oGAAoG;AACpG,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,4EAA4E;IAC5E,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAC5C,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAmCjC"}
@@ -4568,38 +4568,132 @@ function under(base, path) {
4568
4568
  return path;
4569
4569
  return `${base.replace(/\/+$/, '')}/${path.replace(/^\.\//, '')}`;
4570
4570
  }
4571
+ /**
4572
+ * The relative modules a config's text imports — `import { baseConfig } from './playwright.base'`,
4573
+ * `require('../playwright.base.cjs')` — in the order it names them. A package import
4574
+ * (`@playwright/test`) is not a file of the suite and is never followed.
4575
+ *
4576
+ * @param text - A config's source.
4577
+ * @returns The relative specifiers.
4578
+ */
4579
+ function relativeImports(text) {
4580
+ const out = [];
4581
+ for (const m of text.matchAll(/\bfrom\s+['"](\.\.?\/[^'"\n]+)['"]|\b(?:require|import)\(\s*['"](\.\.?\/[^'"\n]+)['"]\s*\)/g)) {
4582
+ const specifier = m[1] ?? m[2];
4583
+ if (specifier && !out.includes(specifier))
4584
+ out.push(specifier);
4585
+ }
4586
+ return out;
4587
+ }
4588
+ /** The file names an extensionless import can be, in the order Playwright's loader tries them. */
4589
+ const MODULE_SUFFIXES = ['.ts', '.mts', '.js', '.mjs', '.cjs'];
4590
+ /** At most this many config candidates are read: the `.ts`, `.mts` and `.js` names in two directories. */
4591
+ const CONFIG_READS = 6;
4592
+ /** At most this many reads are spent following a config's imports. */
4593
+ const IMPORT_READS = 6;
4594
+ /** The directory part of an absolute path. */
4595
+ function directoryOf(path) {
4596
+ const at = path.lastIndexOf('/');
4597
+ return at <= 0 ? '/' : path.slice(0, at);
4598
+ }
4599
+ /** An absolute path with its `.` and `..` segments resolved. */
4600
+ function normalizedPath(path) {
4601
+ const out = [];
4602
+ for (const part of path.split('/')) {
4603
+ if (!part || part === '.')
4604
+ continue;
4605
+ if (part === '..')
4606
+ out.pop();
4607
+ else
4608
+ out.push(part);
4609
+ }
4610
+ return `/${out.join('/')}`;
4611
+ }
4571
4612
  /**
4572
4613
  * The config a Playwright command reads, read from the backend — the file its own `--config`
4573
4614
  * names (resolved against the directory the command starts in, then against each `cd` it does
4574
- * first), else the first `playwright.config.*` in those directories.
4615
+ * first), else the first `playwright.config.*` in those directories — followed by the text of
4616
+ * every relative module it imports, so a config that spreads a base it imports is read with that
4617
+ * base's settings in it.
4618
+ *
4619
+ * A config that imports its settings is the common shape, not an edge: a wrapper written beside an
4620
+ * app imports the supplied suite's base and spreads it (`...baseConfig`), so the wrapper's own text
4621
+ * carries no `trace:` at all. Read alone, a base that traces `on-first-retry` was reported as a
4622
+ * config that "sets none" (X1 xr-molecule-flash-l1255 +18.2, whose base sets
4623
+ * `trace: 'on-first-retry'`).
4575
4624
  *
4576
- * Best-effort and bounded: at most four candidate files are read, and a read that fails is a
4577
- * config that records nothing — the caller's `--trace` flag is what makes a missing trace
4578
- * impossible either way.
4625
+ * Best-effort and bounded: at most {@link CONFIG_READS} candidate configs and {@link IMPORT_READS}
4626
+ * imported files are read, two levels deep, and a read that fails is a file that records nothing — the caller's
4627
+ * `--trace` flag is what makes a missing trace impossible either way.
4579
4628
  *
4580
4629
  * @param command - The shell command.
4581
4630
  * @param cwd - The directory the command starts in.
4582
4631
  * @param readFile - The backend's file read.
4583
- * @returns The config's text, or '' when none could be read.
4632
+ * @returns The config's text with its imports' text after it, or '' when none could be read.
4584
4633
  */
4585
4634
  async function readRunConfig(command, cwd, readFile) {
4586
- const bases = [cwd, ...cdDirectories(command).map((dir) => under(cwd, dir))].slice(0, 2);
4635
+ // Playwright resolves its config from the directory it runs in — the one the command changes
4636
+ // into — so that directory is tried first, then the one the command starts in. The names are
4637
+ // tried name by name across both, so the budget below reaches `playwright.config.ts` in each
4638
+ // instead of spending every read on the first directory's five spellings (a run that did
4639
+ // `cd /srv/shop && npx playwright test` never had `/srv/shop/playwright.config.ts` read).
4640
+ const changedInto = cdDirectories(command).map((dir) => under(cwd, dir))[0];
4641
+ const bases = changedInto && changedInto !== cwd ? [changedInto, cwd] : [cwd];
4587
4642
  const config = /(?:^|[\s;&|(])--config(?:=|\s+)(?:'([^']+)'|"([^"]+)"|([^\s;&|)]+))/.exec(command);
4588
4643
  const explicit = config?.[1] ?? config?.[2] ?? config?.[3] ?? null;
4589
- const candidates = explicit
4590
- ? bases.map((base) => under(base, explicit))
4591
- : bases.flatMap((base) => CONFIG_NAMES.map((name) => `${base.replace(/\/+$/, '')}/${name}`));
4592
- for (const candidate of candidates.slice(0, 4)) {
4644
+ const candidates = [
4645
+ ...new Set(explicit
4646
+ ? bases.map((base) => under(base, explicit))
4647
+ : CONFIG_NAMES.flatMap((name) => bases.map((base) => `${base.replace(/\/+$/, '')}/${name}`))),
4648
+ ];
4649
+ const read = async (path) => {
4593
4650
  try {
4594
- const text = await readFile(candidate);
4595
- if (text)
4596
- return text;
4651
+ return (await readFile(path)) || '';
4597
4652
  }
4598
4653
  catch (_error) {
4599
- continue;
4654
+ // A file that cannot be read is one that records nothing (see above).
4655
+ return '';
4656
+ }
4657
+ };
4658
+ let found = null;
4659
+ for (const candidate of candidates.slice(0, CONFIG_READS)) {
4660
+ const text = await read(candidate);
4661
+ if (text) {
4662
+ found = { path: normalizedPath(candidate), text };
4663
+ break;
4664
+ }
4665
+ }
4666
+ if (!found)
4667
+ return '';
4668
+ const texts = [found.text];
4669
+ const seen = new Set([found.path]);
4670
+ let reads = 0;
4671
+ let level = [found];
4672
+ for (let depth = 0; depth < 2 && level.length > 0; depth++) {
4673
+ const next = [];
4674
+ for (const file of level) {
4675
+ for (const specifier of relativeImports(file.text)) {
4676
+ const target = normalizedPath(`${directoryOf(file.path)}/${specifier}`);
4677
+ const names = /\.[cm]?[jt]s$/.test(target)
4678
+ ? [target]
4679
+ : MODULE_SUFFIXES.map((suffix) => `${target}${suffix}`);
4680
+ for (const name of names) {
4681
+ if (seen.has(name) || reads >= IMPORT_READS)
4682
+ continue;
4683
+ reads++;
4684
+ const text = await read(name);
4685
+ if (!text)
4686
+ continue;
4687
+ seen.add(name);
4688
+ texts.push(text);
4689
+ next.push({ path: name, text });
4690
+ break;
4691
+ }
4692
+ }
4600
4693
  }
4694
+ level = next;
4601
4695
  }
4602
- return '';
4696
+ return texts.join('\n');
4603
4697
  }
4604
4698
  /**
4605
4699
  * The command a Playwright run needs to leave a readable trace behind, when the suite's config
@@ -4628,6 +4722,16 @@ async function readRunConfig(command, cwd, readFile) {
4628
4722
  * `--retries=0` (`@molecule/api-ai-tools` `streamingBackgroundCommand`), so its retry trace would
4629
4723
  * never happen. A run that pins `--retries=0` itself is in the same position, whatever its target.
4630
4724
  *
4725
+ * A proof-capable run is left alone WHATEVER its config traces. `--trace` is a per-run override of
4726
+ * the suite's own `use.trace` (Playwright merges the CLI's `use` into every project's), and a test
4727
+ * record carries the project settings it ran under: a run with the flag is not the suite's own
4728
+ * measurement, so it can never count as deployed proof. Added to a deployed walk, the flag made the
4729
+ * walk unprovable, and the platform's own answer — "run the current selection" — was a command this
4730
+ * same rewrite then flagged again: X1 P140–P173 had 22 deployed walks the executor started, and
4731
+ * not one moved the native proof counts (xr-molecule-flash-l1255 walked 73/73 green twice, at
4732
+ * +18.2 and +22.9, and neither counted). A failure in a suite that keeps no trace at all is still
4733
+ * readable: the platform's re-run note carries `--trace=on` for a run that left none.
4734
+ *
4631
4735
  * @param args - The command, the directory it starts in, and the backend's file read.
4632
4736
  * @returns The command to run and the sentence to report, or the command unchanged.
4633
4737
  */
@@ -4638,16 +4742,15 @@ export async function diagnosisTraceCommand(args) {
4638
4742
  // Only a Playwright run leaves a trace to read.
4639
4743
  if (!isPlaywrightRunCommand(args.command))
4640
4744
  return unchanged;
4745
+ // A proof-capable run keeps the suite's own tracing and retries: the graded measurement is the
4746
+ // suite's own settings, and a flag here would make the run's records unprovable (see above). No
4747
+ // config needs reading to know that.
4748
+ if (suiteCommandTarget(args.command) !== 'local' && !namesNoRetries(args.command))
4749
+ return unchanged;
4641
4750
  const config = await readRunConfig(args.command, args.cwd, args.readFile);
4642
4751
  if (suiteRecordsTraces(config))
4643
4752
  return unchanged;
4644
- // A proof-capable run keeps the suite's own tracing and retries: its retry trace is the artifact
4645
- // a failure is read from, and recording every action would change what the measurement says.
4646
4753
  const retryTrace = suiteTracesOnRetry(config);
4647
- if (retryTrace !== null &&
4648
- suiteCommandTarget(args.command) !== 'local' &&
4649
- !namesNoRetries(args.command))
4650
- return unchanged;
4651
4754
  // The flag goes into the Playwright step's own argument list, at the end of it — an option of
4652
4755
  // the run itself, whatever the command opens with, whatever pipes or redirects its output, and
4653
4756
  // before the `)` that may close a subshell around it. Appended at the end of the whole command
@@ -1417,8 +1417,8 @@ export declare function requiredLandmark(selector: string): RequiredLandmark | n
1417
1417
  */
1418
1418
  export declare function missingHeaderNote(log: string, pageErrors?: readonly CausePageErrors[]): string | null;
1419
1419
  /**
1420
- * The one-line-per-cause summary of a finished run's failures, or null when the run named fewer
1421
- * than two of them.
1420
+ * The one-line-per-cause summary of a run's failures, or null when the run named none,
1421
+ * or named one in a short log returned whole to the reader.
1422
1422
  *
1423
1423
  * This is what makes a run worth finishing: every cause the run found, in the result the
1424
1424
  * executor reads, so one round of fixes covers all of them rather than the one cause a run
@@ -1436,11 +1436,16 @@ export declare function missingHeaderNote(log: string, pageErrors?: readonly Cau
1436
1436
  * configuration failure, said in one line ({@link noBaseUrlConfigNote}) rather than a list that
1437
1437
  * reads as ten defects in the app.
1438
1438
  *
1439
- * @param log - The finished run's output.
1439
+ * @param log - The diagnostic log, which may be a running or explicitly clipped read.
1440
1440
  * @param excluded - The test titles the request carves out, if the caller knows them.
1441
1441
  * @param run - How the run was started, when the caller knows it: the narrowed re-run is built
1442
1442
  * from `command`/`cwd`/`config`/`env`, and `log` (the path the output was written to) is what
1443
1443
  * the "left out" sentence greps when more causes exist than the result has room for.
1444
+ * @param pageErrors - Page evidence for the tests whose failures are being summarized.
1445
+ * @param regressedSpecs - Specs whose selector contracts were broken by subsequent edits.
1446
+ * @param displayedLog - The log text returned to the reader, when different from the diagnostic
1447
+ * log (for example a running task's failure headings and tail). A short diagnostic read does
1448
+ * not prove that this separate display delivered its error, so it also gets a single recap.
1444
1449
  * @returns The note, or null.
1445
1450
  */
1446
1451
  export declare function failureCausesNote(log: string, excluded?: readonly string[], run?: {
@@ -1456,7 +1461,7 @@ export declare function failureCausesNote(log: string, excluded?: readonly strin
1456
1461
  * the failure alone would certify a tree it never measured, and the specs selecting the
1457
1462
  * element the edit removed were never walked (a real tree shipped that).
1458
1463
  */
1459
- regressedSpecs?: readonly string[]): string | null;
1464
+ regressedSpecs?: readonly string[], displayedLog?: string): string | null;
1460
1465
  /**
1461
1466
  * The command that re-runs the tests at `locations` the way the run IN FLIGHT ran them: the same
1462
1467
  * invocation, in the same directory, narrowed to those tests — or null when the running command
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAG3E,OAAO,EACL,KAAK,mBAAmB,EAGxB,KAAK,aAAa,EAMnB,MAAM,oBAAoB,CAAA;AAE3B;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAS5C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,GAAG,MAAM,KAAG,MAEE,CAAA;AAuGhD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAK/C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAaD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKhF;AAgFD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE7D;AAyFD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAUpF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAElE;AAED;;;;;;;;;;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GAAG,IAAI,CAgBvC"}
package/dist/utilities.js CHANGED
@@ -4027,7 +4027,9 @@ function noBaseUrlConfigNote(causes, run, excluded) {
4027
4027
  // to find instead of repeating the mistake.
4028
4028
  const rerun = run && config ? rerunOfRunningSuite(run, locations, excluded) : null;
4029
4029
  const command = rerun ?? (run && config ? withSuiteConfig(run.command, config) : null);
4030
- return (`Every one of these ${total} failures is the same configuration failure, not a result about ` +
4030
+ return boundedFailureRecap((total === 1
4031
+ ? 'This failure is a configuration failure, not a result about '
4032
+ : `Every one of these ${total} failures is the same configuration failure, not a result about `) +
4031
4033
  `the app: the run loaded no base URL, so every \`page.goto\` was refused with ` +
4032
4034
  `\`Cannot navigate to invalid URL\` before a page opened. Nothing here is a defect to fix. ` +
4033
4035
  (config
@@ -4035,7 +4037,9 @@ function noBaseUrlConfigNote(causes, run, excluded) {
4035
4037
  `it; this command left it out. `
4036
4038
  : 'The app’s own Playwright config (the one that sets `use.baseURL`) has to be passed ' +
4037
4039
  'with `--config`; this command names none. ') +
4038
- (command ? `Send exactly this: \`${command}\`` : ''));
4040
+ (command !== null && command.length > FAILURE_CAUSES_CHARS && locations.length > 0
4041
+ ? `Failing tests: ${locations.join(', ')}. `
4042
+ : ''), failureRerunSentence(command, 'Send exactly this: '));
4039
4043
  }
4040
4044
  /**
4041
4045
  * A selector that names the page's navigation landmark: the `nav` tag, a `navbar`/`nav-*` class,
@@ -4210,8 +4214,8 @@ export function missingHeaderNote(log, pageErrors = []) {
4210
4214
  return null;
4211
4215
  }
4212
4216
  /**
4213
- * The one-line-per-cause summary of a finished run's failures, or null when the run named fewer
4214
- * than two of them.
4217
+ * The one-line-per-cause summary of a run's failures, or null when the run named none,
4218
+ * or named one in a short log returned whole to the reader.
4215
4219
  *
4216
4220
  * This is what makes a run worth finishing: every cause the run found, in the result the
4217
4221
  * executor reads, so one round of fixes covers all of them rather than the one cause a run
@@ -4229,11 +4233,16 @@ export function missingHeaderNote(log, pageErrors = []) {
4229
4233
  * configuration failure, said in one line ({@link noBaseUrlConfigNote}) rather than a list that
4230
4234
  * reads as ten defects in the app.
4231
4235
  *
4232
- * @param log - The finished run's output.
4236
+ * @param log - The diagnostic log, which may be a running or explicitly clipped read.
4233
4237
  * @param excluded - The test titles the request carves out, if the caller knows them.
4234
4238
  * @param run - How the run was started, when the caller knows it: the narrowed re-run is built
4235
4239
  * from `command`/`cwd`/`config`/`env`, and `log` (the path the output was written to) is what
4236
4240
  * the "left out" sentence greps when more causes exist than the result has room for.
4241
+ * @param pageErrors - Page evidence for the tests whose failures are being summarized.
4242
+ * @param regressedSpecs - Specs whose selector contracts were broken by subsequent edits.
4243
+ * @param displayedLog - The log text returned to the reader, when different from the diagnostic
4244
+ * log (for example a running task's failure headings and tail). A short diagnostic read does
4245
+ * not prove that this separate display delivered its error, so it also gets a single recap.
4237
4246
  * @returns The note, or null.
4238
4247
  */
4239
4248
  export function failureCausesNote(log, excluded = [], run, pageErrors = [],
@@ -4243,10 +4252,14 @@ export function failureCausesNote(log, excluded = [], run, pageErrors = [],
4243
4252
  * the failure alone would certify a tree it never measured, and the specs selecting the
4244
4253
  * element the edit removed were never walked (a real tree shipped that).
4245
4254
  */
4246
- regressedSpecs = []) {
4255
+ regressedSpecs = [], displayedLog = log) {
4247
4256
  const { causes, ignored, flaky } = groupFailures(log, excluded, pageErrors);
4248
4257
  const total = causes.reduce((n, c) => n + c.tests.length, 0);
4249
- if (total < 2)
4258
+ // A short log needs no single recap only when it is also the displayed log. A long log MAY
4259
+ // lose the inline error to the host's middle cut; the 100 KB formatter may instead preserve
4260
+ // its failure blocks, and a mid-run caller displays a separate slice. Neither the log's length
4261
+ // nor a single failure establishes where the displayed output was cut.
4262
+ if (total === 0 || (total === 1 && log.length <= TOOL_RESULT_CHARS && displayedLog === log))
4250
4263
  return null;
4251
4264
  // One cause that is not in the app: every failure is the browser refusing a navigation with no
4252
4265
  // base URL. The list shape is what m113 read as ten causes, so it is never printed for this.
@@ -4271,7 +4284,7 @@ regressedSpecs = []) {
4271
4284
  // cause and it is the server — so the note leads with the browser's own line, not a fix round.
4272
4285
  const networkError = NETWORK_ERROR_TEXT.exec(log)?.[0];
4273
4286
  if (networkError !== undefined && everyCauseIsNavigationTimeout(causes)) {
4274
- return (`${total} failure${total === 1 ? '' : 's'} in this run, and every one is a \`page.goto\` ` +
4287
+ return boundedFailureRecap(`${total} failure${total === 1 ? '' : 's'} in this run, and every one is a \`page.goto\` ` +
4275
4288
  `that never loaded while the browser reported \`${networkError}\` — the document request ` +
4276
4289
  `itself failed, so none of these is the app’s code or a selector. Fix the server first` +
4277
4290
  (networkError === 'net::ERR_CONTENT_DECODING_FAILED'
@@ -4279,8 +4292,7 @@ regressedSpecs = []) {
4279
4292
  '`vite preview` over a build must be started with ' +
4280
4293
  '`MOL_E2E_PREVIEW_PLUGIN=0 npx vite preview --host 127.0.0.1 --port 4173 --strictPort`'
4281
4294
  : ' (what the run hit, and why it refused the connection)') +
4282
- (rerun ? `. Then send exactly this: \`${rerun}\`` : '') +
4283
- (locations.length > 0 ? `. Failing tests: ${locations.join(', ')}.` : ''));
4295
+ (locations.length > 0 ? `. Failing tests: ${locations.join(', ')}.` : ''), failureRerunSentence(rerun, '. Then send exactly this: '));
4284
4296
  }
4285
4297
  const ignoredTitles = [...new Set(ignored.map((t) => t.title || t.where).filter(Boolean))];
4286
4298
  const flakyTitles = [...new Set(flaky.map((t) => t.where || t.title).filter(Boolean))];
@@ -4291,7 +4303,7 @@ regressedSpecs = []) {
4291
4303
  const connections = causes.filter((cause) => cause.kind === 'connection');
4292
4304
  if (causes.length > 0 && connections.length === causes.length) {
4293
4305
  const at = [...new Set(connections.flatMap((c) => c.tests.map((t) => t.where)).filter(Boolean))];
4294
- return (`${total} failure${total === 1 ? '' : 's'} in this run, and every one is a CONNECTION error — ` +
4306
+ return boundedFailureRecap(`${total} failure${total === 1 ? '' : 's'} in this run, and every one is a CONNECTION error — ` +
4295
4307
  `the requests never reached the app, so nothing here is an app-code cause${at.length ? `: ${at.join(', ')}` : ''}. ` +
4296
4308
  `Send the same file${at.length === 1 ? '' : 's'} once more as ${at.length === 1 ? 'it is' : 'they are'}; ` +
4297
4309
  "if the failure repeats, read the app's own log (`read_logs`) — a connection error is never a " +
@@ -4318,17 +4330,19 @@ regressedSpecs = []) {
4318
4330
  `first ${clipped[1]} ${clipped[2]} were clipped, so a cause that failed earlier is ` +
4319
4331
  `missing here. Fix every cause below${connections.length > 0 ? ' the app’s code can produce, and re-send the connection error once as it is' : ''}, ` +
4320
4332
  `and read the whole run log before concluding:\n`
4321
- : `${total} failure${total === 1 ? '' : 's'} in this run, grouped by cause — fix every cause ` +
4322
- `below${connections.length > 0 ? ' the app’s code can produce, and re-send the connection error once as it is' : ' before the next deploy'}:\n`);
4333
+ : total === 1
4334
+ ? `1 failure in this run — fix this cause before the next deploy:\n`
4335
+ : `${total} failures in this run, grouped by cause — fix every cause ` +
4336
+ `below${connections.length > 0 ? ' the app’s code can produce, and re-send the connection error once as it is' : ' before the next deploy'}:\n`);
4323
4337
  // The flaky sentence sits before the ignored one: the ignored sentence is the LAST thing the
4324
4338
  // note says, and callers assert on that ending.
4325
- const tail = (rerun ? ` Re-run just these once they are fixed: \`${rerun}\`` : '') +
4339
+ const tail = failureRerunSentence(rerun, ' Re-run just these once they are fixed: ') +
4326
4340
  (flakyTitles.length
4327
4341
  ? ' Flaky (failed once, passed on the config retry — the runner counts these as flaky, not ' +
4328
- `as failures): ${flakyTitles.join(', ')}.`
4342
+ `as failures): ${failureTitlesRecap(flakyTitles)}.`
4329
4343
  : '') +
4330
4344
  (ignoredTitles.length
4331
- ? ` Ignored (excluded by the request): ${ignoredTitles.join(', ')}.`
4345
+ ? ` Ignored (excluded by the request): ${failureTitlesRecap(ignoredTitles)}.`
4332
4346
  : '') +
4333
4347
  (connections.length > 0
4334
4348
  ? ` The connection error is not app code: send that file once more as it is, and if it repeats, ` +
@@ -4350,7 +4364,59 @@ regressedSpecs = []) {
4350
4364
  lines.push(line);
4351
4365
  used += line.length + 1;
4352
4366
  }
4353
- return `${header}${lines.join('\n')}${omittedCausesRecap(causes.slice(lines.length), run, excluded)}${tail}`;
4367
+ const recap = `${header}${lines.join('\n')}${omittedCausesRecap(causes.slice(lines.length), run, excluded)}`;
4368
+ return boundedFailureRecap(recap, tail);
4369
+ }
4370
+ /**
4371
+ * Keep a recap and its complete re-run/annotations within the reader's string-field budget.
4372
+ *
4373
+ * @param recap - The error and diagnostic detail, shortened explicitly when necessary.
4374
+ * @param tail - The bounded command and annotations, reserved whole.
4375
+ * @returns The bounded note.
4376
+ */
4377
+ function boundedFailureRecap(recap, tail = '') {
4378
+ // One large signature or title can exceed the budget even on the first cause. Keep both ends
4379
+ // of that recap (error and location/evidence), reserving the complete re-run and annotations.
4380
+ const available = TOOL_RESULT_CHARS - tail.length;
4381
+ if (recap.length <= available)
4382
+ return `${recap}${tail}`;
4383
+ const marker = '\n… (recap shortened; read the full log for the remaining detail) …\n';
4384
+ const head = Math.floor((available - marker.length) * 0.6);
4385
+ return `${recap.slice(0, head)}${marker}${recap.slice(-(available - marker.length - head))}${tail}`;
4386
+ }
4387
+ /**
4388
+ * Deliver a complete narrowed command, or explicitly omit one too large for the recap's budget.
4389
+ *
4390
+ * @param command - The composed command, or null when no re-run can be composed.
4391
+ * @param prefix - The sentence introducing a usable command.
4392
+ * @returns The command sentence or an honest omission, never a partial shell command.
4393
+ */
4394
+ function failureRerunSentence(command, prefix) {
4395
+ if (command === null)
4396
+ return '';
4397
+ return command.length <= FAILURE_CAUSES_CHARS
4398
+ ? `${prefix}\`${command}\``
4399
+ : ' The narrowed re-run command was omitted to keep the recap within one tool result; ' +
4400
+ 'use the original invocation restricted to the failing locations.';
4401
+ }
4402
+ /**
4403
+ * Bound ancillary flaky/excluded names so they cannot displace the actionable error or re-run.
4404
+ *
4405
+ * @param titles - The deduplicated names or locations, in log order.
4406
+ * @returns Whole names that fit, followed by an explicit count of names left out.
4407
+ */
4408
+ function failureTitlesRecap(titles) {
4409
+ const kept = [];
4410
+ for (const title of titles) {
4411
+ if ([...kept, title].join(', ').length > 700)
4412
+ break;
4413
+ kept.push(title);
4414
+ }
4415
+ const omitted = titles.length - kept.length;
4416
+ return (kept.join(', ') +
4417
+ (omitted
4418
+ ? `${kept.length ? ', ' : ''}… (${omitted} ${kept.length ? 'more ' : ''}${omitted === 1 ? 'name' : 'names'} omitted)`
4419
+ : ''));
4354
4420
  }
4355
4421
  /**
4356
4422
  * One cause's line in a finished run's recap: its signature, the tests it hit, and the first
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai-tools",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "description": "Shared AI agent tools with backend abstraction for sandbox and local execution",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",