feat(FN-3330): add wait_for_completion polling for research runs in extensi

Adds `wait_for_completion` polling support for research runs in the CLI extension, along with tests covering the research status schema and wait behavior, and ships a patch changeset for `@runfusion/fusion`.

Fusion-Task-Id: FN-3330
This commit is contained in:
Fusion
2026-05-04 17:57:17 -07:00
committed by gsxdsm
parent e71e848059
commit 69c75feaea
4 changed files with 158 additions and 7 deletions

View File

@@ -370,6 +370,8 @@ Start a bounded research run and optionally wait for findings.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | ✓ | Research query or question |
| `wait_for_completion` | boolean | — | Wait for the run to complete before returning (default: false) |
| `max_wait_ms` | number | — | Max wait time when wait_for_completion=true (default: 90000, capped by settings) |
### fn_research_list
@@ -377,7 +379,7 @@ List recent research runs.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `status` | string(enum) | — | |
| `status` | string(enum) | — | Filter by run status |
| `limit` | number | — | Max runs to return (default: 10) |
### fn_research_get