@molecule/api-ai-tools 1.17.8 → 1.17.10

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-11-08T00:13:16.790Z
6
+ Generated: 2026-11-09T14:59:02.031Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-ai-tools
@@ -6042,7 +6042,11 @@ Peer dependencies:
6042
6042
  execution. `commandStepView` reads the active step for diagnostics; `logicalCommandText`
6043
6043
  exposes the planned commands for static classification. Preserve the descriptor when
6044
6044
  wrapping again. The metadata is advisory and never establishes a completed test result.
6045
- - **`yieldOnFirstFailureFor`** can yield one still-running deployed task's concrete diagnostic; callers opt out after a prior wait result or unknown history.
6045
+ - **`yieldOnFirstFailureFor`** lets `wait_for_task` yield new final-failure causes from a
6046
+ still-running deployed task. Fix while it walks; once every known cause is fixed, deploy
6047
+ now, let the task keep finding causes until the deploy lands and stops it, then collect
6048
+ its stopped or completed result with `wait_for_task`. A local diagnostic tests mutable
6049
+ source: collect or stop it before editing that source, since edits invalidate its result.
6046
6050
  - **`wait_for_task` state probes report current progress without guessing log growth.**
6047
6051
  A call shorter than one normal two-second poll omits both growth and no-growth
6048
6052
  claims; task age, log counters and time-left estimates remain available.
package/dist/index.d.ts CHANGED
@@ -35,7 +35,11 @@
35
35
  * execution. `commandStepView` reads the active step for diagnostics; `logicalCommandText`
36
36
  * exposes the planned commands for static classification. Preserve the descriptor when
37
37
  * wrapping again. The metadata is advisory and never establishes a completed test result.
38
- * - **`yieldOnFirstFailureFor`** can yield one still-running deployed task's concrete diagnostic; callers opt out after a prior wait result or unknown history.
38
+ * - **`yieldOnFirstFailureFor`** lets `wait_for_task` yield new final-failure causes from a
39
+ * still-running deployed task. Fix while it walks; once every known cause is fixed, deploy
40
+ * now, let the task keep finding causes until the deploy lands and stops it, then collect
41
+ * its stopped or completed result with `wait_for_task`. A local diagnostic tests mutable
42
+ * source: collect or stop it before editing that source, since edits invalidate its result.
39
43
  * - **`wait_for_task` state probes report current progress without guessing log growth.**
40
44
  * A call shorter than one normal two-second poll omits both growth and no-growth
41
45
  * claims; task age, log counters and time-left estimates remain available.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8KG;AAEH,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,oCAAoC,CAAA;AAClD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkLG;AAEH,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,oCAAoC,CAAA;AAClD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -35,7 +35,11 @@
35
35
  * execution. `commandStepView` reads the active step for diagnostics; `logicalCommandText`
36
36
  * exposes the planned commands for static classification. Preserve the descriptor when
37
37
  * wrapping again. The metadata is advisory and never establishes a completed test result.
38
- * - **`yieldOnFirstFailureFor`** can yield one still-running deployed task's concrete diagnostic; callers opt out after a prior wait result or unknown history.
38
+ * - **`yieldOnFirstFailureFor`** lets `wait_for_task` yield new final-failure causes from a
39
+ * still-running deployed task. Fix while it walks; once every known cause is fixed, deploy
40
+ * now, let the task keep finding causes until the deploy lands and stops it, then collect
41
+ * its stopped or completed result with `wait_for_task`. A local diagnostic tests mutable
42
+ * source: collect or stop it before editing that source, since edits invalidate its result.
39
43
  * - **`wait_for_task` state probes report current progress without guessing log growth.**
40
44
  * A call shorter than one normal two-second poll omits both growth and no-growth
41
45
  * claims; task age, log counters and time-left estimates remain available.
package/dist/tools.js CHANGED
@@ -3802,7 +3802,7 @@ export function buildTools(backend, config) {
3802
3802
  // deployed run it belongs to can no longer pass and a local edit cannot void a green
3803
3803
  // proof. Keep discovering causes during the repair, then replace the failed build:
3804
3804
  // waiting after its known causes were fixed cost l1671 another 295 s without learning
3805
- // another cause. Retirement must precede replacement so no walk mixes builds or data.
3805
+ // another cause. The landed deploy stops this walk before the next one starts.
3806
3806
  note: localDiagnostic
3807
3807
  ? 'A test in this local diagnostic has failed on its final attempt. This is partial ' +
3808
3808
  'output, not a completed result; the task is still running against mutable local source. ' +
@@ -3827,9 +3827,9 @@ export function buildTools(backend, config) {
3827
3827
  'pass. This is partial log output, not a completed result: leave the task running while you fix ' +
3828
3828
  'and collect any new causes it exposes. Local edits do not change this deployed ' +
3829
3829
  'build, so start on this failure now: read the failing spec and the code it drives, ' +
3830
- 'and fix it while the run keeps walking. Once every known cause is fixed, deploy now ' +
3831
- 'rather than waiting for this failed walk to finish. The deploy must retire this task before replacing the build; ' +
3832
- 'collect its stopped or completed result with `wait_for_task`. Do not start a second test run while this task is running. ' +
3830
+ 'and fix it while the run keeps walking. Once every known cause is fixed, deploy now; ' +
3831
+ 'the task keeps finding causes until the deploy lands and stops it, then collect its stopped or completed result ' +
3832
+ 'with `wait_for_task`. Do not start a second test run while this task is running. ' +
3833
3833
  'Its remaining tests stay unmeasured; hand-back still requires the full supplied suite against the new deployed build to pass with its own settings.',
3834
3834
  };
3835
3835
  }
package/dist/utilities.js CHANGED
@@ -2784,7 +2784,7 @@ export function runningLogReadCommand(log, own) {
2784
2784
  * read did not run, so nothing may be said about the log).
2785
2785
  */
2786
2786
  export function parseRunningLogRead(stdout) {
2787
- const sized = /^\s*(\d+)\s*\n/.exec(stdout);
2787
+ const sized = /^[\t ]*(\d+)[\t ]*\r?\n/.exec(stdout);
2788
2788
  if (sized === null)
2789
2789
  return null;
2790
2790
  return { text: stdout.slice(sized[0].length), bytes: Number(sized[1]) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai-tools",
3
- "version": "1.17.8",
3
+ "version": "1.17.10",
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",