Skip to content

Mode watch (streaming SSE)

Mode watch (streaming SSE). Cette page décrit un composant d’architecture Commander. Le texte ci-dessous reprend la structure du monorepo en français opérationnel ; les blocs de code restent en anglais.

Usage

bash
npx tsx packages/core/src/cliEntry.ts watch "investigate this production bug"

Événements

TypeDescription
task.startDébut
deliberationAnalyse de complexité
topology.selectTopologie choisie
agent.spawnAgent créé
tool.call / tool.resultTool
verificationPorte de qualité
checkpointCheckpoint
task.complete / task.errorFin

Consommer

bash
npx tsx packages/core/src/cliEntry.ts watch "debug" | jq '.type'
typescript
const unsub = client.onEvent((e) => console.log(e.type, e.data));
await client.run('debug the failing test');
bash
curl -N -H "Accept: text/event-stream" -H "Authorization: Bearer $TOKEN" \
  -d '{"task":"debug","stream":true}' http://localhost:4000/execute

Cas d’usage : dashboards CI, UIs custom, debug multi-agents, audit.

Lié

MIT — Conçu pour l’orchestration multi-agents.