@molecule/api-ai-tools 1.14.5 → 1.14.6

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.
Files changed (2) hide show
  1. package/README.md +26 -7
  2. package/package.json +2 -2
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-25T20:03:24.838Z
6
+ Generated: 2026-10-26T04:22:08.815Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-ai-tools
@@ -2254,7 +2254,9 @@ Whether every one of the classified failures is a connection failure — the onl
2254
2254
  no response the app produced was measured.
2255
2255
 
2256
2256
  ```typescript
2257
- function allConnectionFailures(failures: readonly (RunFailureClass | null)[]): boolean
2257
+ function allConnectionFailures(
2258
+ failures: ReadonlyArray<RunFailureClass | null>,
2259
+ ): failures is ReadonlyArray<RunFailureClass & { kind: 'connection' }>
2258
2260
  ```
2259
2261
 
2260
2262
  - `failures` — The run's classifications, in printed order.
@@ -2370,7 +2372,13 @@ tools built outside this package get the same treatment as the ones built
2370
2372
  inside it.
2371
2373
 
2372
2374
  ```typescript
2373
- function guardAITool(tool: T, options?: GuardOptions): T
2375
+ function guardAITool<
2376
+ T extends {
2377
+ name: string
2378
+ parameters?: unknown
2379
+ execute: (input: unknown, ...rest: never[]) => Promise<unknown>
2380
+ },
2381
+ >(tool: T, options?: GuardOptions): T
2374
2382
  ```
2375
2383
 
2376
2384
  - `tool` — The tool to guard.
@@ -2818,7 +2826,10 @@ rows — the failures one causes the other cannot be told from real ones. A run
2818
2826
  suite is never in the way, and neither is one the candidate command stops first.
2819
2827
 
2820
2828
  ```typescript
2821
- function suiteRunInTheWay(candidate: { target: string }, inFlight: readonly T[]): T | null
2829
+ function suiteRunInTheWay<T extends SuiteRunInFlight>(
2830
+ candidate: { target: string },
2831
+ inFlight: readonly T[],
2832
+ ): T | null
2822
2833
  ```
2823
2834
 
2824
2835
  - `candidate` — The run about to start, by the app and database it would measure ({@link suiteCommandTarget}).
@@ -3597,7 +3608,12 @@ function streamingBackgroundCommand(
3597
3608
  command: string,
3598
3609
  context?: DiagnosisRunContext,
3599
3610
  reportPath?: string,
3600
- ): { command: string; changes: string[]; reportPath?: string; error?: string }
3611
+ ): {
3612
+ command: string
3613
+ changes: string[]
3614
+ reportPath?: string
3615
+ error?: string
3616
+ }
3601
3617
  ```
3602
3618
 
3603
3619
  - `command` — The command as the executor sent it.
@@ -3753,7 +3769,10 @@ bounded by `wait_for_task` and the turn's deadline — so the prefix only kills
3753
3769
  ({@link withoutTimeoutWrapper}).
3754
3770
 
3755
3771
  ```typescript
3756
- function withoutSuiteTimeout(command: string): { command: string; seconds: number | null }
3772
+ function withoutSuiteTimeout(command: string): {
3773
+ command: string
3774
+ seconds: number | null
3775
+ }
3757
3776
  ```
3758
3777
 
3759
3778
  - `command` — The shell command.
@@ -4985,7 +5004,7 @@ this package's own input normalization, keep symbol-keyed properties, so the hos
4985
5004
  survives the real launch path.
4986
5005
 
4987
5006
  ```typescript
4988
- const PLATFORM_PROOF: typeof PLATFORM_PROOF
5007
+ const PLATFORM_PROOF: unique symbol
4989
5008
  ```
4990
5009
 
4991
5010
  #### `SPLIT_WORK_ADVICE`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai-tools",
3
- "version": "1.14.5",
3
+ "version": "1.14.6",
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",
@@ -31,7 +31,7 @@
31
31
  "@molecule/api-ai": "^1.0.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@molecule/api-ai": "1.3.6",
34
+ "@molecule/api-ai": "1.4.0",
35
35
  "@types/node": "26.6.5",
36
36
  "esbuild": "0.28.2",
37
37
  "typescript": "6.0.3",