@molecule/api-ai-tools 1.16.1 → 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/dist/trace-artifacts.d.ts +10 -0
- package/dist/trace-artifacts.d.ts.map +1 -1
- package/dist/trace-artifacts.js +124 -21
- package/package.json +1 -1
|
@@ -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,iGAAi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IAAI,CAUhF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
package/dist/trace-artifacts.js
CHANGED
|
@@ -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
|
|
4577
|
-
*
|
|
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
|
-
|
|
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 =
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
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
|
-
|
|
4595
|
-
if (text)
|
|
4596
|
-
return text;
|
|
4651
|
+
return (await readFile(path)) || '';
|
|
4597
4652
|
}
|
|
4598
4653
|
catch (_error) {
|
|
4599
|
-
|
|
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
|