gsxdsm
171aaa2432
FN-7722: route Grok execution through CLI with NDJSON streaming
Switches the Grok runtime plugin to execute prompts via the Grok CLI, parsing its NDJSON stream output instead of the previous invocation path.
- Add cli-stream.ts to spawn and stream the Grok CLI process
- Add stream-parser.ts to parse NDJSON CLI output into runtime events
- Rework runtime-adapter.ts to route execution through CLI streaming
- Extend types.ts with CLI stream/NDJSON event types
- Add docs/grok-cli-contract.md documenting the CLI streaming contract
- Add/update tests for stream-parser and runtime-adapter
- Update plugin README with CLI streaming details
- Add changeset for the Grok CLI streaming change
Files changed:
.changeset/fn-7722-grok-cli-streaming.md | 7 +
docs/grok-cli-contract.md | 200 +++++++++++++++++++++
plugins/fusion-plugin-grok-runtime/README.md | 28 +++
.../src/__tests__/runtime-adapter.test.ts | 135 ++++++++++++--
.../src/__tests__/stream-parser.test.ts | 79 ++++++++
.../fusion-plugin-grok-runtime/src/cli-stream.ts | 52 ++++++
.../src/runtime-adapter.ts | 182 ++++++++++++++++---
.../src/stream-parser.ts | 54 ++++++
plugins/fusion-plugin-grok-runtime/src/types.ts | 120 +++++++++++++
9 files changed, 816 insertions(+), 41 deletions(-)
Fusion-Task-Id: FN-7722
Fusion-Task-Lineage: c5f33e9d-0032-432b-88b5-4ad8d786d67e
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-09 19:58:04 -07:00
..
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 23:39:34 -07:00
2026-07-08 22:30:29 -07:00
2026-07-08 16:27:10 -07:00
2026-07-01 20:40:02 -07:00
2026-07-08 16:27:10 -07:00
2026-07-09 19:58:04 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-07-08 16:27:10 -07:00
2026-04-09 20:19:43 -07:00