@molecule/api-ai-tools 1.9.18 → 1.10.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.
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAE3E,OAAO,EACL,KAAK,mBAAmB,EAOzB,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;AAKD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAsCzD;AAED;;;;;;;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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQnE;AAuDD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,8BAA8B,0CAA0C,CAAA;AAErF;;;;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AAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,MAAM,GAAG,IAAI,CAKhB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAgBvC"}
package/dist/utilities.js CHANGED
@@ -350,6 +350,25 @@ const PRINTING_REPORTERS = new Set(['list', 'line', 'dot', 'basic', 'spec']);
350
350
  * edited `app/src` while the run was still walking — which voids the run.
351
351
  */
352
352
  export const PLAYWRIGHT_FAILURES_INLINE_ENV = 'PLAYWRIGHT_LIST_PRINT_FAILURES_INLINE';
353
+ /**
354
+ * Whether a command step only reports or discards the status of the steps before it: `echo EXIT
355
+ * $?`, `echo $?`, `printf …`, `true`, `exit 0`.
356
+ *
357
+ * The shape models and the platform's own re-run notes send routinely ends on one of these —
358
+ * `npx playwright test … > /tmp/pw.log 2>&1; echo EXIT $?` — and reading the split's last part as
359
+ * the run withheld the reporter, the inline-failure switch and `--retries=0` from every one of
360
+ * them: the log then carried `✘` rows and nothing else while the wait note promised each failure's
361
+ * error under them (xr-molecule-flash-m173 +17:07, +39:14). Whitespace and a group's closing
362
+ * punctuation are not part of the step; {@link streamingBackgroundCommand} strips those before
363
+ * asking, and strips them here too for the split it is given.
364
+ *
365
+ * @param step - One statement of the command, as the `&&`/`||`/`;` split left it.
366
+ * @returns True when the step runs nothing but a status report.
367
+ */
368
+ function isStatusOnlyStep(step) {
369
+ const text = step.replace(/[\s)}]+$/, '').trim();
370
+ return /^(?:echo|printf)\b/.test(text) || /^true$/.test(text) || /^exit(?:\s+\S+)?$/.test(text);
371
+ }
353
372
  /**
354
373
  * Rewrite a command about to run in the background so its log grows while it
355
374
  * runs. Two shapes left the log empty until exit, and an empty log is what
@@ -384,15 +403,19 @@ export const PLAYWRIGHT_FAILURES_INLINE_ENV = 'PLAYWRIGHT_LIST_PRINT_FAILURES_IN
384
403
  * is exactly when the executor reads the log, and without it a running log carries `✘` rows and
385
404
  * nothing else (xr-molecule-flash-m99 spent ~90 s on greps of one, then fixed what it guessed).
386
405
  *
387
- * Only the command's last step is touched, and only its reporter, and only when that step runs
388
- * something: `npx playwright test --list` takes two seconds and writes nothing per test, so
389
- * neither reporter nor `--retries=0` is added to it ({@link isPlaywrightRunCommand}).
406
+ * Only the step that runs the suite is touched, and only its reporter, and only when that step
407
+ * runs something: `npx playwright test --list` takes two seconds and writes nothing per test, so
408
+ * neither reporter nor `--retries=0` is added to it ({@link isPlaywrightRunCommand}). A trailing
409
+ * status step (`; echo EXIT $?`, `&& true`) is not the run and is skipped when the run step is
410
+ * found ({@link isStatusOnlyStep}); a run whose output is redirected to a file is still readable
411
+ * through that file, which the launch records as the task's own output.
390
412
  *
391
413
  * A command that starts the suite MORE THAN ONCE is not launched at all: every run it carries is
392
414
  * a whole walk of the same suite against the same app, and only the last step is rewritten, so the
393
415
  * earlier walks run unmeasured for nothing. X1 xr-molecule-flash-m157 (+14:02) chained two whole
394
416
  * walks of one 138-test suite with `;` — 4.5 minutes each — and the second measured nothing the
395
- * first had not. The platform already refuses a second CONCURRENT run against one app; this is the
417
+ * first had not. The platform refuses a second CONCURRENT run against one app and database by the
418
+ * ONE rule ({@link suiteRunInTheWay}) — for every pair, whatever uid a run mints — and this is the
396
419
  * same hazard inside one command ({@link suiteRunStatements}). `error` then carries the refusal,
397
420
  * naming each suite step and the ONE command to send instead (the last suite step, rewritten as
398
421
  * this function rewrites a run), and nothing is launched.
@@ -446,10 +469,15 @@ export function streamingBackgroundCommand(command, context) {
446
469
  }
447
470
  // The last step that RUNS something. A trailing group closer is punctuation, not a step: a
448
471
  // brace group writes it after a `;` (`{ …; }`), so reading the split's last part literally
449
- // made `}` the step and withheld every rewrite from a run inside a group.
472
+ // made `}` the step and withheld every rewrite from a run inside a group. A trailing status
473
+ // step is not the run either: `… > /tmp/pw.log 2>&1; echo EXIT $?` ends on the echo, and
474
+ // treating THAT as the run withheld the reporter, the inline-failure switch and `--retries=0`
475
+ // from the exact shape models and the platform's re-run notes send (xr-molecule-flash-m173
476
+ // +17:07, +39:14).
450
477
  const parts = out.split(/&&|\|\||;/);
451
478
  let stepIndex = parts.length - 1;
452
- while (stepIndex > 0 && /^[\s)}]*$/.test(parts[stepIndex] ?? ''))
479
+ while (stepIndex > 0 &&
480
+ (/^[\s)}]*$/.test(parts[stepIndex] ?? '') || isStatusOnlyStep(parts[stepIndex] ?? '')))
453
481
  stepIndex -= 1;
454
482
  const rawLastStep = parts[stepIndex] ?? '';
455
483
  // The step's own text, with the punctuation that closes the group it sits in taken off — the
@@ -459,8 +487,9 @@ export function streamingBackgroundCommand(command, context) {
459
487
  // A command that starts the suite more than once is not launched: each statement is a whole walk
460
488
  // of the same suite against the same app, only the last of them is rewritten, and the earlier
461
489
  // ones measure nothing the first did. X1 xr-molecule-flash-m157 (+14:02) chained two whole walks
462
- // of one 138-test suite with `;` (4.5 minutes each); the platform already refuses a second
463
- // CONCURRENT run against one app, and this is the same hazard inside one command. The reading is
490
+ // of one 138-test suite with `;` (4.5 minutes each); the platform refuses a second CONCURRENT
491
+ // run against one app and database by the ONE rule ({@link suiteRunInTheWay}) — for every pair,
492
+ // whatever uid a run mints — and this is the same hazard inside one command. The reading is
464
493
  // {@link repeatedSuiteRunError}'s, so a foreground `exec_command` refuses the same commands.
465
494
  const repeated = repeatedSuiteRunError(out);
466
495
  if (repeated)
@@ -469,9 +498,17 @@ export function streamingBackgroundCommand(command, context) {
469
498
  // "nothing is piped out of the last step" withheld the reporter, the inline-failure switch and
470
499
  // `--retries=0` from exactly the runs whose output was filtered (xr-molecule-flash-m101
471
500
  // +25:54); what the runner writes into its log does not depend on what reads the pipe. A
472
- // REDIRECT still sends the output somewhere this tool cannot read it (`> out.txt`); `2>&1` only
473
- // joins stderr to it.
474
- const finalPlaywrightRun = isPlaywrightRunCommand(lastStep) && !/>/.test(lastStep.replace(/\d?>&\d/g, ''));
501
+ // REDIRECT used to withhold them too (`> out.txt`), but a redirect to a FILE is readable: the
502
+ // launch records that file as the task's own output (`outputFileByTask`, resolved from this
503
+ // same reader) and every wait reads it back. `> /tmp/pw-full.log 2>&1; echo EXIT $?` is the
504
+ // shape models and the platform's re-run notes send, so a run whose own redirect target is the
505
+ // one the launch will read is a readable run (xr-molecule-flash-m173 +17:07, +39:14). A target
506
+ // that is not a file (`/dev/null`, `2>&1`) still leaves the output unreadable.
507
+ const runRedirect = outputRedirectTarget(lastStep);
508
+ const finalPlaywrightRun = isPlaywrightRunCommand(lastStep) &&
509
+ (runRedirect === null
510
+ ? !/>/.test(lastStep.replace(/\d?>&\d/g, ''))
511
+ : runRedirect === outputRedirectTarget(out));
475
512
  /**
476
513
  * Add a word to the suite runner's own arguments; false when the runner could not be placed.
477
514
  *
@@ -483,14 +520,17 @@ export function streamingBackgroundCommand(command, context) {
483
520
  * platform's runner shape (xr-molecule-flash-m129 +34:29); appending after a pipe hands the
484
521
  * word to the filter (m102's dangling `--trace` flag, in the same shape).
485
522
  *
486
- * A suite the parse could not place — one inside a nested `sh -c '<command>'` string, whose
487
- * offsets are positions in THAT string, or a runner that is not the command's last step — is
488
- * left exactly as written and the caller reports no rewrite. There is nowhere in this command
489
- * the word belongs, and guessing at the text is what produced both failures above.
523
+ * The suite's own segment is found wherever it sits ({@link lastSuiteRun}), because a trailing
524
+ * status step is not another command's output: in `… > /tmp/pw.log 2>&1; echo EXIT $?` the run
525
+ * is what the launcher measures, and the echo only repeats its status
526
+ * ({@link isStatusOnlyStep}). A suite the parse could not place — one inside a nested
527
+ * `sh -c '<command>'` string, whose offsets are positions in THAT string — is left exactly as
528
+ * written and the caller reports no rewrite. There is nowhere in this command the word
529
+ * belongs, and guessing at the text is what produced both failures above.
490
530
  */
491
531
  const addToRun = (flag) => {
492
- const pipeline = lastSuitePipeline(out);
493
- const runner = pipeline ? pipeline.located[pipeline.at] : undefined;
532
+ const run = lastSuiteRun(out);
533
+ const runner = run ? run.located[run.at] : undefined;
494
534
  if (!runner)
495
535
  return false;
496
536
  const at = statementArgumentEnd(out, runner.start, runner.end);
@@ -2344,10 +2384,21 @@ function failureBlockTests(text) {
2344
2384
  export const UNIVERSAL_CAUSE_FILES = 3;
2345
2385
  /**
2346
2386
  * How many tests a run must have walked — with nothing passing since its first failure — before
2347
- * "the page renders nothing" can be its one cause. A handful of failures is a handful of bugs;
2348
- * a page that never painted fails every spec that reaches it, and m141's walk had 36 by +20:30.
2349
- */
2350
- export const EMPTY_PAGE_CAUSE_TESTS = 15;
2387
+ * "the page renders nothing" can be its one cause.
2388
+ *
2389
+ * THREE, and the number is the cost of the alternative. The old floor of 15 was chosen when the
2390
+ * reading was only offered at a completed run; once it STOPS the walk, every test waited for is
2391
+ * a test whose result is thrown away, and a blank page costs its per-test budget each time
2392
+ * (m177: 18 tests, ~4.2 minutes, on a page whose thrown error was visible in the first
2393
+ * `pageerror`). Three is the smallest count that is not one page's own bug: the cause additionally
2394
+ * needs three DISTINCT spec files (`UNIVERSAL_CAUSE_FILES`, or the files a narrowed run selected),
2395
+ * each spec waiting for its OWN first element, and no test passing after the first failure. A page
2396
+ * that renders misses elements, but three unrelated specs in three files failing at three
2397
+ * different first locators with nothing passing in between is the page, not three bugs. At the
2398
+ * suite's own 5 s action timeout that verdict lands ~20 s into the walk, so the early stop costs
2399
+ * about one test's worth of time instead of fifteen.
2400
+ */
2401
+ export const EMPTY_PAGE_CAUSE_TESTS = 3;
2351
2402
  /**
2352
2403
  * A failure body whose whole complaint is a wait for an element the page never rendered:
2353
2404
  * Playwright's `waiting for locator(…)` call log, its `element(s) not found` line, or the
@@ -2371,22 +2422,32 @@ function pageErrorInLog(text) {
2371
2422
  return m?.[1]?.trim() || null;
2372
2423
  }
2373
2424
  /**
2374
- * The "nothing has passed and nothing renders" cause: every failure block the log has written is
2375
- * a locator wait, the run has walked at least {@link EMPTY_PAGE_CAUSE_TESTS} tests across the
2376
- * file threshold, and no test has passed since the first failure.
2425
+ * The "nothing has passed and nothing renders" cause: the run's FIRST consecutive failures — from
2426
+ * its first failed test, with no pass since — are all locator waits, at least
2427
+ * {@link EMPTY_PAGE_CAUSE_TESTS} of them across {@link UNIVERSAL_CAUSE_FILES} different spec
2428
+ * files, and each waits for its own spec's first element.
2429
+ *
2430
+ * The file span stays at {@link UNIVERSAL_CAUSE_FILES} whatever the run selected: "the page
2431
+ * renders nothing" is a claim about the APP, and one file's failures can be that file's own setup
2432
+ * (a broken login helper fails every test of one spec at its first locator). A run narrowed to one
2433
+ * or two files still has the signature and connection causes for a whole-run stop.
2434
+ *
2435
+ * Stops the walk as soon as that verdict is readable, not after a fixed floor of failures have
2436
+ * been burned: the page error arrives with the first test, so every further test only repeats it.
2377
2437
  *
2378
2438
  * This is ONE cause even though the signatures differ — each spec asks for its own first element
2379
2439
  * (`input[name="username"]`, `a.navbar-brand`, `h1`), so {@link repeatingFailure} cannot group
2380
2440
  * them and {@link universalCause}'s signature test cannot see the run is over. xr-molecule-flash-
2381
2441
  * m141 (+20:30) walked a built app that rendered nothing: 36 tests had failed, every one at its
2382
- * first locator, and the note told the run to keep walking for another ~9 minutes.
2442
+ * first locator, and the note told the run to keep walking for another ~9 minutes. xr-molecule-
2443
+ * flash-m177 (+08:38 → +12:52) repeated it: 18 tests, one whole walk, on a page whose
2444
+ * `PAGEERROR No 'auth-client' provider bonded` was in the log from the first one.
2383
2445
  *
2384
2446
  * @param text - The log (ANSI already stripped).
2385
- * @param threshold - The spec-file threshold this run is judged against ({@link universalCause}).
2386
2447
  * @param found - The repeating cause {@link repeatingFailure} found, when it found one.
2387
2448
  * @returns The cause, or null when the log is not this shape.
2388
2449
  */
2389
- function emptyPageCause(text, threshold, found) {
2450
+ function emptyPageCause(text, found) {
2390
2451
  const marks = resultMarks(text);
2391
2452
  const firstFailure = marks.indexOf('✘');
2392
2453
  if (firstFailure === -1 || marks.slice(firstFailure).includes('✓'))
@@ -2404,10 +2465,15 @@ function emptyPageCause(text, threshold, found) {
2404
2465
  // (which names the repeated error) says more than "the page renders nothing" would.
2405
2466
  if (found !== null && found.message !== null && found.count >= tests.length)
2406
2467
  return null;
2468
+ // The cause is the FIRST consecutive failures: `tests` starts at the first ✘ and no ✓ follows
2469
+ // it, so a page that has failed three tests in a row across three files has already said
2470
+ // everything the rest of the walk can say (m177 paid 4.2 minutes learning that).
2407
2471
  if (tests.length < EMPTY_PAGE_CAUSE_TESTS)
2408
2472
  return null;
2409
2473
  const files = [...new Set(tests.map((t) => specFile(t.where)).filter(Boolean))];
2410
- if (files.length < threshold)
2474
+ // The blank-page claim is cross-file by construction (see the doc): a selected-file count
2475
+ // below the span does not shrink it, it removes the claim.
2476
+ if (files.length < UNIVERSAL_CAUSE_FILES)
2411
2477
  return null;
2412
2478
  const pageError = pageErrorInLog(text);
2413
2479
  return {
@@ -2544,7 +2610,7 @@ export function universalCause(log, found, command) {
2544
2610
  const threshold = selected === null ? UNIVERSAL_CAUSE_FILES : Math.min(UNIVERSAL_CAUSE_FILES, selected);
2545
2611
  // Nothing has passed and nothing renders: EVERY spec so far is waiting for its own first
2546
2612
  // element, so the signatures differ while the cause does not (xr-molecule-flash-m141).
2547
- const emptyPage = emptyPageCause(text, threshold, found);
2613
+ const emptyPage = emptyPageCause(text, found);
2548
2614
  if (emptyPage)
2549
2615
  return emptyPage;
2550
2616
  if (!found)
@@ -2914,8 +2980,8 @@ function noBaseUrlConfigNote(causes, run, excluded) {
2914
2980
  * @param log - The finished run's output.
2915
2981
  * @param excluded - The test titles the request carves out, if the caller knows them.
2916
2982
  * @param run - How the run was started, when the caller knows it: the narrowed re-run is built
2917
- * from `command`/`cwd`/`config`, and `log` (the path the output was written to) is what the
2918
- * "left out" sentence greps when more causes exist than the result has room for.
2983
+ * from `command`/`cwd`/`config`/`env`, and `log` (the path the output was written to) is what
2984
+ * the "left out" sentence greps when more causes exist than the result has room for.
2919
2985
  * @returns The note, or null.
2920
2986
  */
2921
2987
  export function failureCausesNote(log, excluded = [], run, pageErrors = []) {
@@ -3115,7 +3181,9 @@ function omittedCausesRecap(omitted, run, excluded) {
3115
3181
  * refused while the run walks ({@link suiteRunInTheWay}).
3116
3182
  *
3117
3183
  * @param run - The run in flight: the command it was started with, as it was run, the directory
3118
- * that command ran in, and the config it loaded when the caller knows it.
3184
+ * that command ran in, the config it loaded when the caller knows it, and the settings the
3185
+ * request required and the run left out (`env`) — the re-run carries them, so it never
3186
+ * reproduces the configuration the run was measured under by mistake (m182).
3119
3187
  * @param locations - The failing `file:line`s to re-run, as the run's log printed them.
3120
3188
  * @param excluded - The test titles the request carves out: the re-run inverts them out
3121
3189
  * (`--grep-invert`) so it cannot report them again.
@@ -3127,7 +3195,7 @@ export function rerunOfRunningSuite(run, locations, excluded = []) {
3127
3195
  // The run's own directory is the base a relative failure location resolves against: the
3128
3196
  // reporter prints it from where the runner started, and Playwright matches file arguments
3129
3197
  // against absolute paths (xr-molecule-flash-m118 +16:34, m124 +18:38).
3130
- const scoped = scopedRerunCommand(run.command, locations, excluded, run.config, run.cwd);
3198
+ const scoped = scopedRerunCommand(run.command, locations, excluded, run.config, run.cwd, run.env ?? []);
3131
3199
  if (scoped === run.command)
3132
3200
  return null;
3133
3201
  if (!run.cwd || commandSegments(withoutHeredocs(run.command)).some((s) => s.program === 'cd'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai-tools",
3
- "version": "1.9.18",
3
+ "version": "1.10.0",
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",