@@ -26,14 +26,14 @@ packages, all ESM, all strictly typed against TypeScript 5.6 with
2626Full docs live in [ ` docs/ ` ] ( ./docs/ ) . Start with
2727[ getting-started] ( ./docs/getting-started.md ) or jump to a guide:
2828
29- | Guide | Spec | | Guide | Spec |
30- | --- | --- | --- | --- | --- |
31- | [ Sessions] ( ./docs/guides/sessions.md ) | §6 | | [ Delegation] ( ./docs/guides/delegation.md ) | §10 |
32- | [ Resume] ( ./docs/guides/resume.md ) | §6.3 | | [ Observability] ( ./docs/guides/observability.md ) | §11 |
33- | [ Authentication] ( ./docs/guides/auth.md ) | §6.1 | | [ Errors] ( ./docs/guides/errors.md ) | §12 |
34- | [ Jobs] ( ./docs/guides/jobs.md ) | §7 | | [ Vendor extensions] ( ./docs/guides/vendor-extensions.md ) | §15 |
35- | [ Job events] ( ./docs/guides/job-events.md ) | §8 | | [ Recipes] ( ./docs/recipes.md ) | — |
36- | [ Leases] ( ./docs/guides/leases.md ) | §9 | | [ Troubleshooting] ( ./docs/troubleshooting.md ) | — |
29+ | Guide | Spec | | Guide | Spec |
30+ | ----------------------------------------- | ---- | --- | ------------------------------------------------------- | - --- |
31+ | [ Sessions] ( ./docs/guides/sessions.md ) | §6 | | [ Delegation] ( ./docs/guides/delegation.md ) | §10 |
32+ | [ Resume] ( ./docs/guides/resume.md ) | §6.3 | | [ Observability] ( ./docs/guides/observability.md ) | §11 |
33+ | [ Authentication] ( ./docs/guides/auth.md ) | §6.1 | | [ Errors] ( ./docs/guides/errors.md ) | §12 |
34+ | [ Jobs] ( ./docs/guides/jobs.md ) | §7 | | [ Vendor extensions] ( ./docs/guides/vendor-extensions.md ) | §15 |
35+ | [ Job events] ( ./docs/guides/job-events.md ) | §8 | | [ Recipes] ( ./docs/recipes.md ) | — |
36+ | [ Leases] ( ./docs/guides/leases.md ) | §9 | | [ Troubleshooting] ( ./docs/troubleshooting.md ) | — |
3737
3838## Install
3939
@@ -180,16 +180,16 @@ Every event the runtime emits to the client is one `job.event` envelope
180180whose ` payload.kind ` is one of eight reserved values or a vendor
181181` x-vendor.* ` extension:
182182
183- | Kind | Body shape | Purpose |
184- | -------------- | ------------------------------------------------ | --------------------------------------------------- |
185- | ` log ` | ` { level, message, attributes? } ` | Plain log line. |
186- | ` thought ` | ` { text } ` | Model reasoning / internal monologue. |
187- | ` tool_call ` | ` { tool, args, call_id } ` | Agent invoked a tool. |
188- | ` tool_result ` | ` { call_id, result? \| error? } ` | Result for a ` tool_call ` . |
189- | ` status ` | ` { phase, message? } ` | Lifecycle hint (e.g., ` running ` , ` fetching ` ). |
190- | ` metric ` | ` { name, value, unit?, attributes? } ` | Numeric measurement. |
191- | ` artifact_ref ` | ` { uri, content_type, byte_size?, sha256? } ` | Reference to an artifact (storage is out of scope). |
192- | ` delegate ` | ` { delegate_id, agent, input, lease_request? } ` | Initiate a child job. |
183+ | Kind | Body shape | Purpose |
184+ | -------------- | ----------------------------------------------- | --------------------------------------------------- |
185+ | ` log ` | ` { level, message, attributes? } ` | Plain log line. |
186+ | ` thought ` | ` { text } ` | Model reasoning / internal monologue. |
187+ | ` tool_call ` | ` { tool, args, call_id } ` | Agent invoked a tool. |
188+ | ` tool_result ` | ` { call_id, result? \| error? } ` | Result for a ` tool_call ` . |
189+ | ` status ` | ` { phase, message? } ` | Lifecycle hint (e.g., ` running ` , ` fetching ` ). |
190+ | ` metric ` | ` { name, value, unit?, attributes? } ` | Numeric measurement. |
191+ | ` artifact_ref ` | ` { uri, content_type, byte_size?, sha256? } ` | Reference to an artifact (storage is out of scope). |
192+ | ` delegate ` | ` { delegate_id, agent, input, lease_request? } ` | Initiate a child job. |
193193
194194Sequence numbers are session-scoped (§8.3): one counter across all
195195concurrent jobs in the session. Replay across a resume preserves
@@ -227,7 +227,9 @@ client re-issues `session.hello` carrying:
227227
228228``` ts
229229{
230- resume : { session_id , resume_token , last_event_seq }
230+ resume : {
231+ (session_id , resume_token , last_event_seq );
232+ }
231233}
232234```
233235
0 commit comments