An open-source, faster Devin alternative
TypeScript
docs(agents): keep repository guidance reviewable
Igor Zalutskifce859212385
diff --git a/docs/agent-sessions/agents.mdx b/docs/agent-sessions/agents.mdxindex 02756ae6..7db82cb8 100644--- a/docs/agent-sessions/agents.mdx+++ b/docs/agent-sessions/agents.mdx@@ -6,14 +6,7 @@ description: "Reusable agent configuration"An **agent** is a reusable identity, runtime, model, and deployed behavior. Every [session](/agent-sessions/sessions) runs on an agent, so create one first, then start as many sessions on it as you like. For the built-in runtimes, behavior is `prompt` plus optional skills and is frozen into independently routable [revisions](/agent-sessions/revisions). A [Flue](/agent-sessions/flue) agent instead carries its instructions, tools, and packaged skills in a compiled Flue app.-<Note>- The [dashboard](https://app.opencomputer.dev) starts with **Import from- GitHub** and keeps **Configure manually** available. Repository import- recognizes a complete [Flue](/agent-sessions/flue) app; prompt- or skills-only- folders are not converted into an agent. You can also deploy a local Flue- checkout with `oc agent deploy`. Both Flue paths produce the same deployment- and revision history.-</Note>+<Note>The [dashboard](https://app.opencomputer.dev) starts with **Import from GitHub** and keeps **Configure manually** available. Repository import recognizes a complete [Flue](/agent-sessions/flue) app; prompt- or skills-only folders are not converted into an agent. You can also deploy a local Flue checkout with `oc agent deploy`. Both Flue paths produce the same deployment and revision history.</Note><CodeGroup>@@ -49,21 +42,18 @@ Content-Type: application/jsonPass your model `key` inline and it's stored as a [credential](/agent-sessions/credentials) and attached to the agent — sessions run the model on it. The provider is taken from `model` (Anthropic for `anthropic/…`, OpenAI for `openai/…`), so the key has to be for that provider. Already have a credential? Reference it with `credential: "cred_…"` instead. Or skip keys entirely with `credential: "managed"` to run the model **via OpenComputer, billed to your credits** (the default for new orgs). Omit both `key` and `credential` to use your org default. Optionally set default [`limits`](/agent-sessions/sessions#limits) (`tokens`/`turn_seconds`/`turns`) too; sessions inherit them.-<Tip>- Keep the org key and model key on your backend. Only return session-scoped- client tokens to browsers.-</Tip>+<Tip>Keep the org key and model key on your backend. Only return session-scoped client tokens to browsers.</Tip>## Start simple, add capability as you goFor a built-in runtime, the only behavior an agent needs is a **model** and a **prompt**. Everything beyond that is additive: reach for a rung only when you need it, and nothing earlier is undone. Flue has a separate [app deployment path](/agent-sessions/flue#add-opencomputer-to-a-flue-app).-| Rung | What you add | What you get |-| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |-| **Default agent** | `name` + `model` (+ a prompt) | a working agent on the default runtime — no setup |-| **+ Skills** | [`SKILL.md` folders](/agent-sessions/skills) (upload a `.zip`, or include in a repo) | reusable procedures the agent loads when relevant — still the default runtime |-| **+ Source-controlled deployment** | link a manually configured built-in agent to `prompt.md` + `skills/`, or import a complete Flue app from a self-contained npm root | versioned [deployments and revisions](/agent-sessions/revisions); Flue imports also include durable build logs |-| **+ Custom runtime** _(coming soon)_ | bring your own runtime image | full control of the execution environment |+| Rung | What you add | What you get |+|---|---|---|+| **Default agent** | `name` + `model` (+ a prompt) | a working agent on the default runtime — no setup |+| **+ Skills** | [`SKILL.md` folders](/agent-sessions/skills) (upload a `.zip`, or include in a repo) | reusable procedures the agent loads when relevant — still the default runtime |+| **+ Source-controlled deployment** | link a manually configured built-in agent to `prompt.md` + `skills/`, or import a complete Flue app from a self-contained npm root | versioned [deployments and revisions](/agent-sessions/revisions); Flue imports also include durable build logs |+| **+ Custom runtime** *(coming soon)* | bring your own runtime image | full control of the execution environment |At every built-in rung the agent is a small directory, at most `agent.toml` + `prompt.md` + `skills/`. You can stop at any rung; most agents never go past skills.diff --git a/docs/agent-sessions/api-reference.mdx b/docs/agent-sessions/api-reference.mdxindex c26439c1..cdf71ce1 100644--- a/docs/agent-sessions/api-reference.mdx+++ b/docs/agent-sessions/api-reference.mdx@@ -11,7 +11,7 @@ Each section toggles between the **TypeScript SDK** (`@opencomputer/sdk`), **RESimport { OpenComputer, connectSession } from "@opencomputer/sdk";const oc = new OpenComputer({ apiKey: process.env.OPENCOMPUTER_API_KEY! });-const session = await oc.sessions.get("ses_..."); // server, org key+const session = await oc.sessions.get("ses_..."); // server, org key// or, in a browser: await connectSession({ sessionId, clientToken })```@@ -22,13 +22,7 @@ oc agent deploy # deploy the agent directory in the cwdoc agent build --dir . --check-only --json # validate a Flue app without credentials or deployment```-<Note>- The SDK uses **camelCase** for fields and params (`last_turn` → `lastTurn`,- `idempotency_key` → `idempotencyKey`); the wire shapes below are raw JSON.- Opaque blobs — session `metadata`, event `refs`/`raw` — pass through- **verbatim**; everything else (incl. event `body`) is camelCased. The CLI- prints a table, or raw JSON with `--json`.-</Note>+<Note>The SDK uses **camelCase** for fields and params (`last_turn` → `lastTurn`, `idempotency_key` → `idempotencyKey`); the wire shapes below are raw JSON. Opaque blobs — session `metadata`, event `refs`/`raw` — pass through **verbatim**; everything else (incl. event `body`) is camelCased. The CLI prints a table, or raw JSON with `--json`.</Note>## Sessions@@ -36,47 +30,47 @@ oc agent build --dir . --check-only --json # validate a Flue app without creden<Tab title="TypeScript SDK">-| Call | Purpose |-| ------------------------------------------- | -------------------------------------------------------------- |-| `oc.sessions.create(params)` | Start a session → a `Session` handle (carries `.clientToken`). |-| `oc.sessions.get(id)` | Fetch a session. |-| `oc.sessions.list(params)` | List sessions (filtered, paginated). |-| `session.archive()` | Cancel any active turn, then close (read-only). |-| `session.cancel()` | Cooperatively stop the active turn (no-op if not running). |-| `session.result()` | `{ lastTurn, result? }` — the resolved final event. |-| `session.turns()` · `session.turn(id)` | Per-turn history: timing, error. |-| `session.sources` · `session.listSources()` | Source checkout status — create snapshot · live poll. |-| `session.mintClientToken(opts)` | Mint a client token. |+| Call | Purpose |+| --- | --- |+| `oc.sessions.create(params)` | Start a session → a `Session` handle (carries `.clientToken`). |+| `oc.sessions.get(id)` | Fetch a session. |+| `oc.sessions.list(params)` | List sessions (filtered, paginated). |+| `session.archive()` | Cancel any active turn, then close (read-only). |+| `session.cancel()` | Cooperatively stop the active turn (no-op if not running). |+| `session.result()` | `{ lastTurn, result? }` — the resolved final event. |+| `session.turns()` · `session.turn(id)` | Per-turn history: timing, error. |+| `session.sources` · `session.listSources()` | Source checkout status — create snapshot · live poll. |+| `session.mintClientToken(opts)` | Mint a client token. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ----------------------------------------------------------------- | ------------------------------------------------------------- |-| `POST /sessions` | Start a session → `{ session, client_token }`. |-| `GET /sessions/:id` | Fetch a session. |+| Method · Path | Purpose |+| --- | --- |+| `POST /sessions` | Start a session → `{ session, client_token }`. |+| `GET /sessions/:id` | Fetch a session. || `GET /sessions?status=&agent=&key=&after=&before=&limit=&cursor=` | List sessions (filtered, paginated; `cursor` = `nextCursor`). |-| `POST /sessions/:id/archive` | Cancel any active turn, then close (read-only). |-| `POST /sessions/:id/cancel` | Cooperatively stop the active turn (no-op if not running). |-| `GET /sessions/:id/result` | The result helper — `{ last_turn, result? }`. |-| `GET /sessions/:id/turns` · `…/turns/:turnId` | Per-turn history: timing, error. |-| `GET /sessions/:id/sources` | Source checkout status (`SourceSummary[]`). |-| `POST /sessions/:id/client-tokens` | Mint a client token. |+| `POST /sessions/:id/archive` | Cancel any active turn, then close (read-only). |+| `POST /sessions/:id/cancel` | Cooperatively stop the active turn (no-op if not running). |+| `GET /sessions/:id/result` | The result helper — `{ last_turn, result? }`. |+| `GET /sessions/:id/turns` · `…/turns/:turnId` | Per-turn history: timing, error. |+| `GET /sessions/:id/sources` | Source checkout status (`SourceSummary[]`). |+| `POST /sessions/:id/client-tokens` | Mint a client token. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| ------------------------------------------------------------------------ | -------------------------------------------------------------------------- |+| Command | Purpose |+| --- | --- || `oc session create --agent <id\|name> [--revision <n>] [--input <text>]` | Start a session (`--revision` pins a specific revision; default = active). |-| `oc session get <id>` | Fetch a session. |-| `oc session list [--agent <id>] [--status <s>]` | List sessions. |-| `oc session cancel <id>` | Cooperatively stop the active turn. |-| `oc session result <id>` | The resolved final result. |-| `oc session steer <id> <text>` | Send input to a running or waiting session. |-| _(archive · turns · sources · client tokens — REST/SDK only)_ | |+| `oc session get <id>` | Fetch a session. |+| `oc session list [--agent <id>] [--status <s>]` | List sessions. |+| `oc session cancel <id>` | Cooperatively stop the active turn. |+| `oc session result <id>` | The resolved final result. |+| `oc session steer <id> <text>` | Send input to a running or waiting session. |+| *(archive · turns · sources · client tokens — REST/SDK only)* | |</Tab>@@ -97,49 +91,49 @@ A built-in runtime session pins the agent's active revision for its whole life.**`Session`**-| Field | Type | Notes |-| ----------------------------------- | ---------- | ------------------------------------------------------------------------------------------ |-| `id` `status` `head` `input_cursor` | | id, [lifecycle](/agent-sessions/sessions#lifecycle) status, latest event seq, input cursor |-| `agent_id` `credential_id` | string | resolved + pinned at create |-| `agent_snapshot` | object | `{ prompt_hash, model, runtime, revision }` — `revision` = the pinned revision number |-| `last_turn` | `Turn`-ish | `{ id, state, yield_reason?, result_event_id? }` |-| `limits?` | object | `{ tokens?, turn_seconds?, turns? }` |-| `metadata?` | object | opaque app routing state |-| `key?` `created_at` | | get-or-create key, timestamp |+| Field | Type | Notes |+|---|---|---|+| `id` `status` `head` `input_cursor` | | id, [lifecycle](/agent-sessions/sessions#lifecycle) status, latest event seq, input cursor |+| `agent_id` `credential_id` | string | resolved + pinned at create |+| `agent_snapshot` | object | `{ prompt_hash, model, runtime, revision }` — `revision` = the pinned revision number |+| `last_turn` | `Turn`-ish | `{ id, state, yield_reason?, result_event_id? }` |+| `limits?` | object | `{ tokens?, turn_seconds?, turns? }` |+| `metadata?` | object | opaque app routing state |+| `key?` `created_at` | | get-or-create key, timestamp |**`Turn`**-| Field | Notes |-| ----------------------------- | ----------------------------- |-| `id` `state` | turn id, current state |-| `yield_reason?` | why it ended (below) |-| `result_event_id?` | the event carrying the result |-| `error?` | failure detail, if any |-| `started_at?` `completed_at?` | timing |+| Field | Notes |+|---|---|+| `id` `state` | turn id, current state |+| `yield_reason?` | why it ended (below) |+| `result_event_id?` | the event carrying the result |+| `error?` | failure detail, if any |+| `started_at?` `completed_at?` | timing |A turn's **`yield_reason`** tells you why it stopped:-| Value | Meaning |-| ----------------------------------------------------- | -------------------------------------------------------------- |-| `completed` | finished normally |-| `needs_input` | the agent asked a question — answer it by [steering](#steer) |-| `error` | the turn failed (see `error`) |+| Value | Meaning |+|---|---|+| `completed` | finished normally |+| `needs_input` | the agent asked a question — answer it by [steering](#steer) |+| `error` | the turn failed (see `error`) || `budget_exceeded` / `deadline_exceeded` / `max_turns` | a [limit](#sessions) tripped — tokens / wall-clock / auto-runs |-| `canceled` | you cancelled it |+| `canceled` | you cancelled it |**`SessionSource`** — one of two variants:-| Variant | Shape |-| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| Variant | Shape |+|---|---|| registered | `{ repo, ref, sha?, name? }` — `repo` is a `repo_…` id or `"owner/repo"`; App-backed auth. `sha` is **optional** (omit → control plane resolves `ref`→HEAD and pins it at create) |-| inline | `{ url, ref, sha, name?, auth }` — `sha` **required**; `auth = { type:"risky_short_lived_token", token, expires_at }` (can't refresh) |+| inline | `{ url, ref, sha, name?, auth }` — `sha` **required**; `auth = { type:"risky_short_lived_token", token, expires_at }` (can't refresh) |**`SourceSummary`** (sanitized; on create + `GET …/sources`)-| Field | Notes |-| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `name` `path` `sha` `resolved_sha?` | checkout identity + resolved commit |-| `status` | `pending · materializing · resolved · failed · unavailable · auth_required` |+| Field | Notes |+|---|---|+| `name` `path` `sha` `resolved_sha?` | checkout identity + resolved commit |+| `status` | `pending · materializing · resolved · failed · unavailable · auth_required` || `error_code?` `error_message?` `retryable?` | on failure — `source.`-prefixed, e.g. `source.auth_required` (App not installed), `source.repo_not_selected` (install doesn't cover the repo), `source.permission_missing`, `source.mint_failed`, `source.ref_not_found`, `source.sha_mismatch`. [Full list](/agent-sessions/repos) |## Events@@ -148,34 +142,34 @@ A turn's **`yield_reason`** tells you why it stopped:<Tab title="TypeScript SDK">-| Call | Purpose |-| -------------------------- | ----------------------------------------------------------- |-| `session.listEvents(opts)` | Read events since a cursor. |-| `session.events(opts)` | Live stream from a cursor — a self-resuming async iterator. |-| `session.event(id)` | Fetch one event (resolve `resultEventId`). |-| `session.eventContent(id)` | Fetch a blob-backed body (large outputs). |-| `session.messages(opts)` | User-message history. |+| Call | Purpose |+| --- | --- |+| `session.listEvents(opts)` | Read events since a cursor. |+| `session.events(opts)` | Live stream from a cursor — a self-resuming async iterator. |+| `session.event(id)` | Fetch one event (resolve `resultEventId`). |+| `session.eventContent(id)` | Fetch a blob-backed body (large outputs). |+| `session.messages(opts)` | User-message history. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| -------------------------------------------------- | ------------------------------ |-| `GET /sessions/:id/events?after=<seq>&level=<lvl>` | Read events since a cursor. |-| `GET /sessions/:id/events?…&stream=sse` | Live SSE stream from a cursor. |-| `GET /sessions/:id/events/:eventId` | Fetch one event. |-| `GET /sessions/:id/events/:eventId/content` | Fetch a blob-backed body. |-| `GET /sessions/:id/messages` | User-message history. |+| Method · Path | Purpose |+| --- | --- |+| `GET /sessions/:id/events?after=<seq>&level=<lvl>` | Read events since a cursor. |+| `GET /sessions/:id/events?…&stream=sse` | Live SSE stream from a cursor. |+| `GET /sessions/:id/events/:eventId` | Fetch one event. |+| `GET /sessions/:id/events/:eventId/content` | Fetch a blob-backed body. |+| `GET /sessions/:id/messages` | User-message history. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| -------------------------------------------------------------- | --------------------------- |+| Command | Purpose |+| --- | --- || `oc session logs <id> [--follow] [--level <lvl>] [--type <t>]` | Read or live-stream events. |-| _(single event · event content · messages — REST/SDK only)_ | |+| *(single event · event content · messages — REST/SDK only)* | |</Tab>@@ -185,13 +179,13 @@ Filter by `type` (exact or `prefix.*`), `turn_id`, `limit`. `after` resumes from**`Event`**-| Field | Notes |-| ---------------------------------------------- | -------------------------------------------------------------------------- |-| `id` `seq` `ts` `session` | id, monotonic seq, timestamp, session id |-| `actor` `type` `level` | source, event [type](/agent-sessions/events#event-shape), visibility level |-| `body` | the payload (camelCased; switch on `type`, don't parse prose) |-| `turn_id?` | the turn it belongs to |-| `content_ref?` `body_truncated?` `body_bytes?` | large bodies are offloaded — fetch via `…/events/:id/content` |+| Field | Notes |+|---|---|+| `id` `seq` `ts` `session` | id, monotonic seq, timestamp, session id |+| `actor` `type` `level` | source, event [type](/agent-sessions/events#event-shape), visibility level |+| `body` | the payload (camelCased; switch on `type`, don't parse prose) |+| `turn_id?` | the turn it belongs to |+| `content_ref?` `body_truncated?` `body_bytes?` | large bodies are offloaded — fetch via `…/events/:id/content` |## Steer@@ -199,24 +193,24 @@ Filter by `type` (exact or `prefix.*`), `turn_id`, `limit`. `after` resumes from<Tab title="TypeScript SDK">-| Call | Purpose |-| ----------------------------------------- | ------------------------------------------- |+| Call | Purpose |+| --- | --- || `session.steer(text, { idempotencyKey })` | Append an input message; wakes the session. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ----------------------------- | ------------------------------------------- |+| Method · Path | Purpose |+| --- | --- || `POST /sessions/:id/messages` | Append an input message; wakes the session. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| ------------------------------ | ------------------------------------------- |+| Command | Purpose |+| --- | --- || `oc session steer <id> <text>` | Append an input message; wakes the session. |</Tab>@@ -227,27 +221,27 @@ Body: `{ text, idempotency_key? }` or `{ envelope }`. Returns `202` (or `200` on## Watches-_Managed with the SDK (`session.watches.create/list/delete`), the CLI (`oc session watch/watches/unwatch`), or REST — authenticate with your **org API key** (server-side). The agent-facing path is the [`watch_pull_request`](/agent-sessions/runtime-tools#github-tools) runtime tool. Full guide: [Watches](/agent-sessions/watches)._+*Managed with the SDK (`session.watches.create/list/delete`), the CLI (`oc session watch/watches/unwatch`), or REST — authenticate with your **org API key** (server-side). The agent-facing path is the [`watch_pull_request`](/agent-sessions/runtime-tools#github-tools) runtime tool. Full guide: [Watches](/agent-sessions/watches).*-| Method · Path | Purpose |-| --------------------------------------- | ---------------------------------------------------------------------------------------------- |-| `POST /sessions/:id/watches` | Declare a watch → `201 { watch }`. Body: `{ type:"github_pr", repo?, pr?, wake_on, intent? }`. |-| `GET /sessions/:id/watches` | List watches → `{ data: [watch] }`. |-| `DELETE /sessions/:id/watches/:watchId` | Remove a watch → `{ ok: true }`. |+| Method · Path | Purpose |+| --- | --- |+| `POST /sessions/:id/watches` | Declare a watch → `201 { watch }`. Body: `{ type:"github_pr", repo?, pr?, wake_on, intent? }`. |+| `GET /sessions/:id/watches` | List watches → `{ data: [watch] }`. |+| `DELETE /sessions/:id/watches/:watchId` | Remove a watch → `{ ok: true }`. |`wake_on` is the wake condition (`checks` default · `review` · `comment` · `merge`); `intent` is the freeform "why," replayed on wake. `repo`/`pr` are optional — omitted, they resolve to the PR this session opened. A watch fires only on PRs the **same session** opened, on Connected-App (`oc_app`) repos. Limits: **10** active watches per session, **30-day** TTL (and never outlives the PR).**`Watch`**-| Field | Notes |-| --------------------------------------------- | ------------------------------------------------------------------------------------------------------- |-| `id` `type` | `wch_…`; `type` = `github_pr` |-| `repo` `pr` | watched repo · PR number |-| `wake_on` | wake condition: `checks` (default) · `review` (a review decision) · `comment` · `merge` (merged/closed) |-| `intent?` | freeform note ("why"), replayed on wake |-| `status` | `active · closed · revoked · auth_required` |-| `origin` | how it was declared (runtime tool / management API) |-| `last_snapshot_at?` `expires_at` `created_at` | last authoritative PR re-read · 30-day TTL lapse · timestamp |+| Field | Notes |+|---|---|+| `id` `type` | `wch_…`; `type` = `github_pr` |+| `repo` `pr` | watched repo · PR number |+| `wake_on` | wake condition: `checks` (default) · `review` (a review decision) · `comment` · `merge` (merged/closed) |+| `intent?` | freeform note ("why"), replayed on wake |+| `status` | `active · closed · revoked · auth_required` |+| `origin` | how it was declared (runtime tool / management API) |+| `last_snapshot_at?` `expires_at` `created_at` | last authoritative PR re-read · 30-day TTL lapse · timestamp |**Delivered events** — appended into the session log at level `user` with `source: "github"`, carrying a normalized summary (not the raw webhook): `github.pr.checks_completed` · `github.pr.review_submitted` · `github.pr.comment` · `github.pr.merged` · `github.pr.closed`.@@ -257,37 +251,37 @@ _Managed with the SDK (`session.watches.create/list/delete`), the CLI (`oc sessi<Tab title="TypeScript SDK">-| Call | Purpose |-| ---------------------------------------- | --------------------------------------------------------------------------- |-| `oc.agents.create(params)` | Create a reusable agent. |-| `oc.agents.repository.review(params)` | Resolve and interpret an exact repository source without running it. |-| `oc.agents.repository.import(params)` | Import an exact reviewed source and enqueue its first deployment. |-| `oc.agents.get(id)` · `oc.agents.list()` | Fetch / list. |-| `oc.agents.update(id, params)` | Update bindings (credential / limits) — `prompt`/`model` deploy a revision. |-| `oc.agents.delete(id)` | Delete an agent. |+| Call | Purpose |+| --- | --- |+| `oc.agents.create(params)` | Create a reusable agent. |+| `oc.agents.repository.review(params)` | Resolve and interpret an exact repository source without running it. |+| `oc.agents.repository.import(params)` | Import an exact reviewed source and enqueue its first deployment. |+| `oc.agents.get(id)` · `oc.agents.list()` | Fetch / list. |+| `oc.agents.update(id, params)` | Update bindings (credential / limits) — `prompt`/`model` deploy a revision. |+| `oc.agents.delete(id)` | Delete an agent. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| --------------------------------- | ------------------------------------------------------------------------------------------------- |-| `POST /agents` | Create a reusable agent. |-| `POST /agents/import` | Atomically create an agent from an exact reviewed GitHub source and enqueue its first deployment. |-| `GET /agents/:id` · `GET /agents` | Fetch / list. |-| `PATCH /agents/:id` | Update bindings; `prompt`/`model` deploy a revision. |-| `DELETE /agents/:id` | Delete an agent. |+| Method · Path | Purpose |+| --- | --- |+| `POST /agents` | Create a reusable agent. |+| `POST /agents/import` | Atomically create an agent from an exact reviewed GitHub source and enqueue its first deployment. |+| `GET /agents/:id` · `GET /agents` | Fetch / list. |+| `PATCH /agents/:id` | Update bindings; `prompt`/`model` deploy a revision. |+| `DELETE /agents/:id` | Delete an agent. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| -------------------------------------------------------------- | ------------------------ |+| Command | Purpose |+| --- | --- || `oc agent create <name> --model <m> [--runtime claude\|codex]` | Create a reusable agent. |-| `oc agent get <id\|name>` · `oc agent list` | Fetch / list. |-| `oc agent update <id> [--credential <c>] [--limits …]` | Update bindings. |-| `oc agent delete <id>` | Delete an agent. |+| `oc agent get <id\|name>` · `oc agent list` | Fetch / list. |+| `oc agent update <id> [--credential <c>] [--limits …]` | Update bindings. |+| `oc agent delete <id>` | Delete an agent. |</Tab>@@ -340,11 +334,7 @@ The response always includes repository identity, normalized `root`, `production```json Exact Flue review{- "repository": {- "id": "repo_...",- "full_name": "acme/agents",- "default_branch": "main"- },+ "repository": { "id": "repo_...", "full_name": "acme/agents", "default_branch": "main" },"root": "agents/support","production_ref": "main","sha": "0123456789abcdef0123456789abcdef01234567",@@ -360,18 +350,8 @@ The response always includes repository identity, normalized `root`, `production"profile": {"source_profile": "flue-app-v1","source_profile_version": 1,- "manifest": {- "schema_version": 1,- "entrypoint": "support-triage",- "model": "anthropic/claude-haiku-4-5",- "runtime": { "family": "flue", "type": "default" },- "vars": {}- },- "package": {- "name": "support-agent",- "node_engine": ">=22.19 <23",- "flue_cli": "^1.0.0"- },+ "manifest": { "schema_version": 1, "entrypoint": "support-triage", "model": "anthropic/claude-haiku-4-5", "runtime": { "family": "flue", "type": "default" }, "vars": {} },+ "package": { "name": "support-agent", "node_engine": ">=22.19 <23", "flue_cli": "^1.0.0" },"lockfile": { "version": 3 },"builder": { "node": "22.19.0" },"source": { "files": 12, "bytes": 4096 },@@ -487,32 +467,32 @@ the current active revision remains unchanged.<Tab title="TypeScript SDK">-| Call | Purpose |-| ------------------------------------------------------------------------- | --------------------------------------------- |-| `oc.agents.deployments.create(id, { input, activate?, idempotencyKey? })` | Deploy (`input.type: "inline" \| "github"`). |-| `oc.agents.deployments.list(id)` · `.get(id, depId)` | Deployment history · one deployment. |-| `oc.agents.deploy(dir)` _(Node)_ | Bundle a local directory → inline deployment. |+| Call | Purpose |+| --- | --- |+| `oc.agents.deployments.create(id, { input, activate?, idempotencyKey? })` | Deploy (`input.type: "inline" \| "github"`). |+| `oc.agents.deployments.list(id)` · `.get(id, depId)` | Deployment history · one deployment. |+| `oc.agents.deploy(dir)` *(Node)* | Bundle a local directory → inline deployment. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |-| `POST /agents/:id/deployments` | Deploy → `{ deployment }`. Body: `{ input, activate?=true, idempotency_key?, client_context? }`. |-| `GET /agents/:id/deployments?before=&limit=` | Newest-first history with an opaque `next_cursor`. |-| `GET /agents/:id/deployments/:deploymentId` | One attempt; poll asynchronous states until terminal. |-| `GET /agents/:id/deployments/:deploymentId/logs?after=&limit=` | Ordered durable log chunks with opaque resume cursors. |+| Method · Path | Purpose |+| --- | --- |+| `POST /agents/:id/deployments` | Deploy → `{ deployment }`. Body: `{ input, activate?=true, idempotency_key?, client_context? }`. |+| `GET /agents/:id/deployments?before=&limit=` | Newest-first history with an opaque `next_cursor`. |+| `GET /agents/:id/deployments/:deploymentId` | One attempt; poll asynchronous states until terminal. |+| `GET /agents/:id/deployments/:deploymentId/logs?after=&limit=` | Ordered durable log chunks with opaque resume cursors. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |-| `oc agent deploy [dir] [--agent <id\|name>] [--no-activate]` | Bundle a local directory → inline deployment. |+| Command | Purpose |+| --- | --- |+| `oc agent deploy [dir] [--agent <id\|name>] [--no-activate]` | Bundle a local directory → inline deployment. || `oc agent build --dir <dir> [--check-only] [--target cloudflare] [--output <dir>]` | Validate or build a Flue artifact without fetching, installing, authenticating, or deploying. |-| `oc agent deployments [--agent <id>]` · `oc agent deployments get <id>` | History · one deployment. |+| `oc agent deployments [--agent <id>]` · `oc agent deployments get <id>` | History · one deployment. |</Tab>@@ -528,18 +508,18 @@ and subsequent production-branch pushes deploy automatically. Flue has no previe**`Deployment`**-| Field | Notes |-| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `id` `created_at` `updated_at` | Attempt identity and timestamps. |-| `state` `phase` `terminal` | Internal state plus stable UI phase. Repository states: `accepted`, `queued`, `fetching`, `validating`, `installing`, `building`, `uploading`, `deploying`, `verifying`; terminals: `ready`, `failed`, `canceled`, `superseded`, `skipped`. |-| `result` `error_class` `error?` | Terminal outcome and bounded, redacted failure detail. |-| `revision_id` `revision?` `active` | Successful revision relation; absent for an unsuccessful attempt. |-| `source_relation?` | Repository id/name, path, production ref, exact SHA, and commit URL. |-| `build?` `configuration?` | Safe builder/artifact metadata and non-secret runtime configuration; variables are names only. |-| `timing` | Accepted/started/finished coordinates plus queue/run/total durations. |-| `log_bytes` `log_truncated` | Bounded log accounting. |-| `live_touched` `agent_live?` | Whether deployment crossed the live Worker boundary and the current guarded/verified state. |-| `allowed_actions` | Server-derived actions such as `view_commit`, `deploy_latest`, `open_agent`, or `start_session`. |+| Field | Notes |+|---|---|+| `id` `created_at` `updated_at` | Attempt identity and timestamps. |+| `state` `phase` `terminal` | Internal state plus stable UI phase. Repository states: `accepted`, `queued`, `fetching`, `validating`, `installing`, `building`, `uploading`, `deploying`, `verifying`; terminals: `ready`, `failed`, `canceled`, `superseded`, `skipped`. |+| `result` `error_class` `error?` | Terminal outcome and bounded, redacted failure detail. |+| `revision_id` `revision?` `active` | Successful revision relation; absent for an unsuccessful attempt. |+| `source_relation?` | Repository id/name, path, production ref, exact SHA, and commit URL. |+| `build?` `configuration?` | Safe builder/artifact metadata and non-secret runtime configuration; variables are names only. |+| `timing` | Accepted/started/finished coordinates plus queue/run/total durations. |+| `log_bytes` `log_truncated` | Bounded log accounting. |+| `live_touched` `agent_live?` | Whether deployment crossed the live Worker boundary and the current guarded/verified state. |+| `allowed_actions` | Server-derived actions such as `view_commit`, `deploy_latest`, `open_agent`, or `start_session`. |List returns `{ data, next_cursor }`. Log reads return`{ data: [{ seq, cursor, recorded_at, phase, stream, chunk }], next_cursor, has_more }`; treat `seq`@@ -553,31 +533,31 @@ responses, and operator telemetry are never projected through these APIs.<Tab title="TypeScript SDK">-| Call | Purpose |-| ---------------------------------------------- | -------------------------------------------------- |-| `oc.agents.revisions.list(id)` · `.get(id, n)` | History · one revision (+ skill manifest). |-| `oc.agents.revisions.activate(id, n)` | Set the active revision (rollback **or** promote). |-| `oc.agents.activations.list(id)` | Active-pointer audit log. |+| Call | Purpose |+| --- | --- |+| `oc.agents.revisions.list(id)` · `.get(id, n)` | History · one revision (+ skill manifest). |+| `oc.agents.revisions.activate(id, n)` | Set the active revision (rollback **or** promote). |+| `oc.agents.activations.list(id)` | Active-pointer audit log. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ------------------------------------------ | --------------------------------------------- |-| `GET /agents/:id/revisions` · `…/:rev` | History · one revision (+ skill manifest). |+| Method · Path | Purpose |+| --- | --- |+| `GET /agents/:id/revisions` · `…/:rev` | History · one revision (+ skill manifest). || `POST /agents/:id/revisions/:rev/activate` | Set the active revision (rollback / promote). |-| `GET /agents/:id/activations` | Active-pointer audit log. |+| `GET /agents/:id/activations` | Active-pointer audit log. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| ------------------------------------------------------------------ | --------------------------------------------- |-| `oc agent revisions [--agent <id>]` · `oc agent revisions get <n>` | History · one revision. |-| `oc agent rollback <n\|rev_…>` | Set the active revision (rollback / promote). |-| `oc agent activations` | Active-pointer audit log. |+| Command | Purpose |+| --- | --- |+| `oc agent revisions [--agent <id>]` · `oc agent revisions get <n>` | History · one revision. |+| `oc agent rollback <n\|rev_…>` | Set the active revision (rollback / promote). |+| `oc agent activations` | Active-pointer audit log. |</Tab>@@ -587,14 +567,14 @@ Revisions are **linear** (numbered, immutable). `:rev` is a `number` or `rev_…**`Revision`**-| Field | Notes |-| ----------------------------------- | -------------------------------------------------------------------- |-| `id` `number` `created_at` `active` | id, monotonic number, timestamp, is-active flag |-| `prompt` `model` | the behavior |-| `skill_bundle_digest?` | content-addressed skills bundle (`null` = no skills) |-| `digest` | behavior content hash (change detection) |-| `runtime_ref` | `floating` (latest shared runtime) — `pinned` later (custom runtime) |-| `files?` | `[{ path, mode, size }]` — only on `GET …/revisions/:rev` |+| Field | Notes |+|---|---|+| `id` `number` `created_at` `active` | id, monotonic number, timestamp, is-active flag |+| `prompt` `model` | the behavior |+| `skill_bundle_digest?` | content-addressed skills bundle (`null` = no skills) |+| `digest` | behavior content hash (change detection) |+| `runtime_ref` | `floating` (latest shared runtime) — `pinned` later (custom runtime) |+| `files?` | `[{ path, mode, size }]` — only on `GET …/revisions/:rev` |### Skills@@ -602,28 +582,28 @@ Revisions are **linear** (numbered, immutable). `:rev` is a `number` or `rev_…<Tab title="TypeScript SDK">-| Call | Purpose |-| ------------------------------- | ------------------------------------------------------------- |-| `oc.agents.skills.get(id)` | List the active revision's skills (name, description, files). |-| `oc.agents.skills.put(id, zip)` | Replace skills from a `.zip` → new revision. |-| `oc.agents.skills.delete(id)` | Remove all skills → new revision. |+| Call | Purpose |+| --- | --- |+| `oc.agents.skills.get(id)` | List the active revision's skills (name, description, files). |+| `oc.agents.skills.put(id, zip)` | Replace skills from a `.zip` → new revision. |+| `oc.agents.skills.delete(id)` | Remove all skills → new revision. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| --------------------------- | ------------------------------------------------------------------------------ |-| `GET /agents/:id/skills` | List the active revision's skills. |-| `PUT /agents/:id/skills` | Replace skills from a `.zip` (`Content-Type: application/zip`) → new revision. |-| `DELETE /agents/:id/skills` | Remove all skills → new revision. |+| Method · Path | Purpose |+| --- | --- |+| `GET /agents/:id/skills` | List the active revision's skills. |+| `PUT /agents/:id/skills` | Replace skills from a `.zip` (`Content-Type: application/zip`) → new revision. |+| `DELETE /agents/:id/skills` | Remove all skills → new revision. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| ----------------------- | -------------------------------------------------------------------------------- |+| Command | Purpose |+| --- | --- || `oc agent deploy <dir>` | Deploy a directory; a `skills/` folder inside it ships as skills → new revision. |Skills have no dedicated CLI verb yet — deploy a directory that contains a `skills/` folder, or use the REST endpoints / dashboard.@@ -640,31 +620,31 @@ A skill is a folder with a `SKILL.md`; PUT/DELETE are **deployments** (versioned<Tab title="TypeScript SDK">-| Call | Purpose |-| --------------------------------------------- | ----------------------------------------------- |-| `oc.agents.deploymentSource.link(id, params)` | Link a repo directory → push-to-deploy. |-| `oc.agents.deploymentSource.get(id)` | The link + status. |-| `oc.agents.deploymentSource.unlink(id)` | Remove the link (shared App webhook untouched). |+| Call | Purpose |+| --- | --- |+| `oc.agents.deploymentSource.link(id, params)` | Link a repo directory → push-to-deploy. |+| `oc.agents.deploymentSource.get(id)` | The link + status. |+| `oc.agents.deploymentSource.unlink(id)` | Remove the link (shared App webhook untouched). |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| -------------------------------------- | --------------------------------------------------------------------------------- |-| `POST /agents/:id/deployment-source` | Link a repo directory. Body: `{ repo, path, production_ref?, deploy_now?=true }`. |-| `GET /agents/:id/deployment-source` | The link + status. |-| `DELETE /agents/:id/deployment-source` | Remove the link. |+| Method · Path | Purpose |+| --- | --- |+| `POST /agents/:id/deployment-source` | Link a repo directory. Body: `{ repo, path, production_ref?, deploy_now?=true }`. |+| `GET /agents/:id/deployment-source` | The link + status. |+| `DELETE /agents/:id/deployment-source` | Remove the link. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| ---------------------------------------------------------------------- | ------------------------------------------ |-| `oc agent link <owner/repo> --path <p> [--branch <ref>] [--no-deploy]` | Link a repo directory. |-| `oc agent status [id\|name]` | The agent's active revision + link status. |-| `oc agent unlink` | Remove the link. |+| Command | Purpose |+| --- | --- |+| `oc agent link <owner/repo> --path <p> [--branch <ref>] [--no-deploy]` | Link a repo directory. |+| `oc agent status [id\|name]` | The agent's active revision + link status. |+| `oc agent unlink` | Remove the link. |</Tab>@@ -680,57 +660,57 @@ that deploy auto-activates. Repo/path are server-anchored to the link. Deploymen**`DeploymentSource`**-| Field | Notes |-| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `agent_id` `repo_id` `path` | the linked agent · repo · directory within it |-| `production_ref` | branch that auto-activates on push |-| `status` | `active`, or a problem: `source_profile_changed`, `path_missing`, `ref_missing` (production branch deleted), `auth_required`, `repo_not_selected`, `app_suspended`, `error` |-| `latest_seen_sha?` `active_deployed_sha?` | newest sha observed · sha behind the active revision |-| `source_profile?` `source_profile_version?` | server-selected repository interpretation pinned for this link (`flue-app-v1`, version `1`) |-| `review_fingerprint?` | digest of the latest accepted, exact-SHA reviewed plan; never source bytes or a credential |+| Field | Notes |+|---|---|+| `agent_id` `repo_id` `path` | the linked agent · repo · directory within it |+| `production_ref` | branch that auto-activates on push |+| `status` | `active`, or a problem: `source_profile_changed`, `path_missing`, `ref_missing` (production branch deleted), `auth_required`, `repo_not_selected`, `app_suspended`, `error` |+| `latest_seen_sha?` `active_deployed_sha?` | newest sha observed · sha behind the active revision |+| `source_profile?` `source_profile_version?` | server-selected repository interpretation pinned for this link (`flue-app-v1`, version `1`) |+| `review_fingerprint?` | digest of the latest accepted, exact-SHA reviewed plan; never source bytes or a credential |## Schedules-_Run an agent on a cron — each firing starts a session. Managed with the SDK, the `oc` CLI, or REST (org key). Full guide: [Schedules](/agent-sessions/schedules)._+*Run an agent on a cron — each firing starts a session. Managed with the SDK, the `oc` CLI, or REST (org key). Full guide: [Schedules](/agent-sessions/schedules).*<Tabs><Tab title="TypeScript SDK">-| Call | Purpose |-| -------------------------------------------------------- | ----------------------------------------------------------- |-| `oc.agents.schedules.create(id, params)` | Create a schedule (`{ name, cron, tz?, input, overlap? }`). |-| `oc.agents.schedules.list(id)` · `.get(id, sid)` | List / fetch. |-| `oc.agents.schedules.update(id, sid, params)` | Edit `cron`/`tz`/`input`/`overlap`, or `{ paused }`. |-| `oc.agents.schedules.delete(id, sid)` | Delete (run history kept). |-| `oc.agents.schedules.fire(id, sid)` | Fire now → a run; doesn't advance the cron. |-| `oc.agents.schedules.runs(id, sid, { cursor?, limit? })` | Run history (each carries `sessionId`). |+| Call | Purpose |+| --- | --- |+| `oc.agents.schedules.create(id, params)` | Create a schedule (`{ name, cron, tz?, input, overlap? }`). |+| `oc.agents.schedules.list(id)` · `.get(id, sid)` | List / fetch. |+| `oc.agents.schedules.update(id, sid, params)` | Edit `cron`/`tz`/`input`/`overlap`, or `{ paused }`. |+| `oc.agents.schedules.delete(id, sid)` | Delete (run history kept). |+| `oc.agents.schedules.fire(id, sid)` | Fire now → a run; doesn't advance the cron. |+| `oc.agents.schedules.runs(id, sid, { cursor?, limit? })` | Run history (each carries `sessionId`). |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ---------------------------------------------------- | ------------------------------------------------------------------------- |-| `POST /agents/:id/schedules` | Create → `201 { schedule }`. Body `{ name, cron, tz?, input, overlap? }`. |-| `GET /agents/:id/schedules` · `…/:sid` | List / fetch. |-| `PATCH /agents/:id/schedules/:sid` | Edit `cron`/`tz`/`input`/`overlap`, or `{ paused }`. |-| `DELETE /agents/:id/schedules/:sid` | Delete → `204` (runs kept). |-| `POST /agents/:id/schedules/:sid/fire` | Fire now → `201 { run }`; doesn't advance the cron. |-| `GET /agents/:id/schedules/:sid/runs?cursor=&limit=` | Run history → `{ runs, next_cursor }`. |+| Method · Path | Purpose |+| --- | --- |+| `POST /agents/:id/schedules` | Create → `201 { schedule }`. Body `{ name, cron, tz?, input, overlap? }`. |+| `GET /agents/:id/schedules` · `…/:sid` | List / fetch. |+| `PATCH /agents/:id/schedules/:sid` | Edit `cron`/`tz`/`input`/`overlap`, or `{ paused }`. |+| `DELETE /agents/:id/schedules/:sid` | Delete → `204` (runs kept). |+| `POST /agents/:id/schedules/:sid/fire` | Fire now → `201 { run }`; doesn't advance the cron. |+| `GET /agents/:id/schedules/:sid/runs?cursor=&limit=` | Run history → `{ runs, next_cursor }`. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| -------------------------------------------------------------------------------- | ------------------------------ |-| `oc agent schedule create <name> --agent <id> --cron <c> [--tz <z>] --input <s>` | Create a schedule. |-| `oc agent schedules [--agent <id>]` · `oc agent schedule get <name>` | List / fetch. |-| `oc agent schedule pause\|resume <name>` | Pause / resume. |-| `oc agent schedule delete <name>` | Delete. |-| `oc agent schedule fire <name>` | Fire now (prints the `ses_…`). |-| `oc agent schedule runs <name>` | Run history. |+| Command | Purpose |+| --- | --- |+| `oc agent schedule create <name> --agent <id> --cron <c> [--tz <z>] --input <s>` | Create a schedule. |+| `oc agent schedules [--agent <id>]` · `oc agent schedule get <name>` | List / fetch. |+| `oc agent schedule pause\|resume <name>` | Pause / resume. |+| `oc agent schedule delete <name>` | Delete. |+| `oc agent schedule fire <name>` | Fire now (prints the `ses_…`). |+| `oc agent schedule runs <name>` | Run history. |</Tab>@@ -740,14 +720,14 @@ _Run an agent on a cron — each firing starts a session. Managed with the SDK,**`Schedule`**-| Field | Notes |-| ------------------------------------ | ------------------------------------------------------------------------------------ |-| `id` `agent_id` | `sch_…` · the owning agent |-| `name` `cron` `tz?` `input` | handle (unique per agent) · 5-field cron · IANA tz · first message |-| `overlap` | `skip` (default) · `allow` |-| `state` | `active · paused · auto_paused` (five straight scheduled-firing failures auto-pause) |-| `next_fire_at` `last_fired_at?` | next occurrence · last fire |-| `consecutive_failures` `last_error?` | in-a-row enactment failures · last error (cleared on success) |+| Field | Notes |+|---|---|+| `id` `agent_id` | `sch_…` · the owning agent |+| `name` `cron` `tz?` `input` | handle (unique per agent) · 5-field cron · IANA tz · first message |+| `overlap` | `skip` (default) · `allow` |+| `state` | `active · paused · auto_paused` (five straight scheduled-firing failures auto-pause) |+| `next_fire_at` `last_fired_at?` | next occurrence · last fire |+| `consecutive_failures` `last_error?` | in-a-row enactment failures · last error (cleared on success) |**`Run`** — one per firing decision, newest-first: `srn_…` with `outcome` (`enacted` · `skipped` · `failed`), `scheduled_for?` (`null` for a manual fire), `fired_at`, `session_id?` (when enacted), `error?`. Chain `session_id` into `GET /sessions/:id`.@@ -762,21 +742,21 @@ context, not a redirect URL. Status responses never contain credentials.<Tab title="TypeScript SDK">-| Call | Purpose |-| -------------------------------------------------------------- | --------------------------------------------------------------- |-| `oc.agents.authorizeManagedSlack(id, { returnDeploymentId? })` | Start managed-app OAuth. |-| `oc.agents.getManagedSlack(id)` | Read workspace, app identity, state, and `openUrl`. |-| `oc.agents.disconnectManagedSlack(id)` | Stop routing this agent without uninstalling the workspace app. |+| Call | Purpose |+| --- | --- |+| `oc.agents.authorizeManagedSlack(id, { returnDeploymentId? })` | Start managed-app OAuth. |+| `oc.agents.getManagedSlack(id)` | Read workspace, app identity, state, and `openUrl`. |+| `oc.agents.disconnectManagedSlack(id)` | Stop routing this agent without uninstalling the workspace app. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ------------------------------------------ | --------------------------------------------------------- |+| Method · Path | Purpose |+| --- | --- || `POST /agents/:id/slack/managed/authorize` | Start managed-app OAuth; accepts `return_deployment_id?`. |-| `GET /agents/:id/slack/managed` | Read the managed connection. |-| `DELETE /agents/:id/slack/managed` | Disconnect the agent from the shared app. |+| `GET /agents/:id/slack/managed` | Read the managed connection. |+| `DELETE /agents/:id/slack/managed` | Disconnect the agent from the shared app. |</Tab>@@ -789,41 +769,41 @@ states expose only a stable `error_code`.Builder-owned Slack apps remain a separate resource and can overlap during anexplicit handoff:-| TypeScript SDK | REST API |-| ------------------------------------ | --------------------------------- |-| `oc.agents.slackManifest(id)` | `POST /agents/:id/slack/manifest` |-| `oc.agents.connectSlack(id, values)` | `POST /agents/:id/slack` |-| `oc.agents.getSlack(id)` | `GET /agents/:id/slack` |-| `oc.agents.disconnectSlack(id)` | `DELETE /agents/:id/slack` |+| TypeScript SDK | REST API |+| --- | --- |+| `oc.agents.slackManifest(id)` | `POST /agents/:id/slack/manifest` |+| `oc.agents.connectSlack(id, values)` | `POST /agents/:id/slack` |+| `oc.agents.getSlack(id)` | `GET /agents/:id/slack` |+| `oc.agents.disconnectSlack(id)` | `DELETE /agents/:id/slack` |See [Slack](/agent-sessions/slack) for installation, trust boundaries, andconversation behavior.## Destinations-_Webhooks are configured via SDK/REST (no `oc` command)._+*Webhooks are configured via SDK/REST (no `oc` command).*<Tabs><Tab title="TypeScript SDK">-| Call | Purpose |-| ------------------------------------------- | ------------------------------------------------------------------ |-| `session.destinations.create(params)` | Register a webhook destination. |-| `session.destinations.list()` · `.get(did)` | List / fetch. |-| `session.destinations.update(did, params)` | Pause/resume (`enabled`), retune `level`/`types`, rotate `secret`. |-| `session.destinations.delete(did)` | Remove. |+| Call | Purpose |+| --- | --- |+| `session.destinations.create(params)` | Register a webhook destination. |+| `session.destinations.list()` · `.get(did)` | List / fetch. |+| `session.destinations.update(did, params)` | Pause/resume (`enabled`), retune `level`/`types`, rotate `secret`. |+| `session.destinations.delete(did)` | Remove. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ------------------------------------------- | ------------------------------- |-| `POST /sessions/:id/destinations` | Register a webhook destination. |-| `GET /sessions/:id/destinations` · `…/:did` | List / fetch. |-| `PATCH /sessions/:id/destinations/:did` | Pause/resume, retune, rotate. |-| `DELETE /sessions/:id/destinations/:did` | Remove. |+| Method · Path | Purpose |+| --- | --- |+| `POST /sessions/:id/destinations` | Register a webhook destination. |+| `GET /sessions/:id/destinations` · `…/:did` | List / fetch. |+| `PATCH /sessions/:id/destinations/:did` | Pause/resume, retune, rotate. |+| `DELETE /sessions/:id/destinations/:did` | Remove. |</Tab>@@ -833,27 +813,27 @@ Destination body: `url`, `secret?`, `level?` (`user`), `types?[]`, `include_raw?## Deliveries-_Delivery records are read via SDK/REST (no `oc` command)._+*Delivery records are read via SDK/REST (no `oc` command).*<Tabs><Tab title="TypeScript SDK">-| Call | Purpose |-| ---------------------------------- | -------------------------------------------------------- |-| `session.deliveries.list(opts)` | List deliveries — status, attempts, last response/error. |-| `session.deliveries.get(id)` | One delivery, in detail. |-| `session.deliveries.redeliver(id)` | Re-send any delivery. |+| Call | Purpose |+| --- | --- |+| `session.deliveries.list(opts)` | List deliveries — status, attempts, last response/error. |+| `session.deliveries.get(id)` | One delivery, in detail. |+| `session.deliveries.redeliver(id)` | Re-send any delivery. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ----------------------------------------------------------------- | --------------------- |-| `GET /sessions/:id/deliveries?destination=&status=&after=&limit=` | List deliveries. |-| `GET /sessions/:id/deliveries/:id` | One delivery. |-| `POST /sessions/:id/deliveries/:id/redeliver` | Re-send any delivery. |+| Method · Path | Purpose |+| --- | --- |+| `GET /sessions/:id/deliveries?destination=&status=&after=&limit=` | List deliveries. |+| `GET /sessions/:id/deliveries/:id` | One delivery. |+| `POST /sessions/:id/deliveries/:id/redeliver` | Re-send any delivery. |</Tab>@@ -863,22 +843,22 @@ See [Webhooks](/agent-sessions/webhooks#signing-retries-and-dedupe) for signing,**`Destination`**-| Field | Notes |-| ----------------------------------------------- | -------------------------------------------------------------------- |-| `id` `session` `kind` `created_at` `updated_at` | |-| `url` | webhook target |-| `level` `types` | visibility threshold · event-type filter |-| `include_raw` `enabled` `has_secret` | include raw bodies · paused/active · whether a signing secret is set |-| `created_after_seq` | only events after this seq are delivered |+| Field | Notes |+|---|---|+| `id` `session` `kind` `created_at` `updated_at` | |+| `url` | webhook target |+| `level` `types` | visibility threshold · event-type filter |+| `include_raw` `enabled` `has_secret` | include raw bodies · paused/active · whether a signing secret is set |+| `created_after_seq` | only events after this seq are delivered |**`Delivery`**-| Field | Notes |-| ------------------------------------------------------ | ------------------------------------- |-| `id` `session` `destination` `created_at` `updated_at` | |-| `event_id` `event_seq` | the event delivered |-| `status` `attempts` `last_attempt_at` | delivery state, retry count, last try |-| `response_code?` `error?` | last response · failure detail |+| Field | Notes |+|---|---|+| `id` `session` `destination` `created_at` `updated_at` | |+| `event_id` `event_seq` | the event delivered |+| `status` `attempts` `last_attempt_at` | delivery state, retry count, last try |+| `response_code?` `error?` | last response · failure detail |## GitHub Apps and Repos@@ -888,36 +868,36 @@ A GitHub App lets OpenComputer mint short-lived, repo-scoped tokens; a **Repo**<Tab title="TypeScript SDK">-| Call | Purpose |-| -------------------------------------------------------------------------- | --------------------------------------------------------------------- |-| `oc.repos.create(params)` · `.get(id)` · `.list()` · `.update(id, params)` | Register / fetch / list / rename a repo. |-| `oc.github.apps.list()` | List GitHub Apps available to your org. |-| `oc.github.apps.register(params)` | Register your own App (`byo_stored_key` / `byo_broker`). |-| `oc.github.apps.createManifestUrl(params)` | One-click: a link to open; OpenComputer hosts the flow + key capture. |-| `oc.github.apps.createManifest/completeManifest(params)` | Developer-driven manifest flow. |-| `oc.github.apps.update(id, params)` · `delete(id)` | Update / rotate / remove an App. |-| `oc.github.installations.list()` | List installations visible to OpenComputer. |+| Call | Purpose |+| --- | --- |+| `oc.repos.create(params)` · `.get(id)` · `.list()` · `.update(id, params)` | Register / fetch / list / rename a repo. |+| `oc.github.apps.list()` | List GitHub Apps available to your org. |+| `oc.github.apps.register(params)` | Register your own App (`byo_stored_key` / `byo_broker`). |+| `oc.github.apps.createManifestUrl(params)` | One-click: a link to open; OpenComputer hosts the flow + key capture. |+| `oc.github.apps.createManifest/completeManifest(params)` | Developer-driven manifest flow. |+| `oc.github.apps.update(id, params)` · `delete(id)` | Update / rotate / remove an App. |+| `oc.github.installations.list()` | List installations visible to OpenComputer. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ---------------------------------------------------------------------------------- | ------------------------------------------- |-| `POST /repos` · `GET /repos/:id` · `GET /repos` · `PATCH /repos/:id` | Register / fetch / list / rename a repo. |-| `GET /github/apps` · `POST /github/apps` | List · register your own App. |-| `PATCH /github/apps/:id` · `DELETE /github/apps/:id` | Update / rotate / remove. |+| Method · Path | Purpose |+| --- | --- |+| `POST /repos` · `GET /repos/:id` · `GET /repos` · `PATCH /repos/:id` | Register / fetch / list / rename a repo. |+| `GET /github/apps` · `POST /github/apps` | List · register your own App. |+| `PATCH /github/apps/:id` · `DELETE /github/apps/:id` | Update / rotate / remove. || `POST /github/apps/manifest` · `…/manifest/start` · `…/callback` · `…/conversions` | Manifest flow (hosted or developer-driven). |-| `GET /github/installations` | List installations visible to OpenComputer. |+| `GET /github/installations` | List installations visible to OpenComputer. |</Tab><Tab title="oc CLI">-| Command | Purpose |-| ---------------------------------------------------------------------------------- | ------------------------------- |-| `oc repo add <owner/repo>` · `oc repo list` · `oc repo get <id>` | Register / list / fetch a repo. |-| _(App install + manifest — browser flow; manage in the dashboard or via SDK/REST)_ | |+| Command | Purpose |+| --- | --- |+| `oc repo add <owner/repo>` · `oc repo list` · `oc repo get <id>` | Register / list / fetch a repo. |+| *(App install + manifest — browser flow; manage in the dashboard or via SDK/REST)* | |</Tab>@@ -935,31 +915,31 @@ Repo = { id, provider, owner, repo, name?, created_at, updated_at }<Tab title="TypeScript SDK">-| Call | Purpose |-| ----------------------------------------------------- | -------------------- |-| `oc.credentials.create(params)` | Add a provider key. |-| `oc.credentials.list()` · `oc.credentials.delete(id)` | List / remove. |-| `oc.credentials.setDefault(params)` | Set the org default. |+| Call | Purpose |+| --- | --- |+| `oc.credentials.create(params)` | Add a provider key. |+| `oc.credentials.list()` · `oc.credentials.delete(id)` | List / remove. |+| `oc.credentials.setDefault(params)` | Set the org default. |</Tab><Tab title="REST API">-| Method · Path | Purpose |-| ---------------------------------------------- | --------------------------------------- |-| `POST /credentials` | Add a provider key. |-| `GET /credentials` · `DELETE /credentials/:id` | List / remove. |-| `PUT /credentials/default` | Set the org default (provider derived). |+| Method · Path | Purpose |+| --- | --- |+| `POST /credentials` | Add a provider key. |+| `GET /credentials` · `DELETE /credentials/:id` | List / remove. |+| `PUT /credentials/default` | Set the org default (provider derived). |</Tab><Tab title="oc CLI">-| Command | Purpose |-| -------------------------------------------------------- | -------------------- |-| `oc credential add --provider <p> --key <k> [--default]` | Add a provider key. |-| `oc credential list` · `oc credential remove <id>` | List / remove. |-| `oc credential set-default <id>` | Set the org default. |+| Command | Purpose |+| --- | --- |+| `oc credential add --provider <p> --key <k> [--default]` | Add a provider key. |+| `oc credential list` · `oc credential remove <id>` | List / remove. |+| `oc credential set-default <id>` | Set the org default. |</Tab>diff --git a/docs/agent-sessions/flue.mdx b/docs/agent-sessions/flue.mdxindex f4a7fc16..96387ff6 100644--- a/docs/agent-sessions/flue.mdx+++ b/docs/agent-sessions/flue.mdx@@ -5,10 +5,9 @@ description: "Deploy a Flue app as an OpenComputer agent"---<Note>- **Experimental.** The supported profile is intentionally narrow. It currently- covers direct text sessions on managed Anthropic models, with an optional- OpenComputer sandbox. Flue is pre-1.0, and each deployment includes the exact- Flue version installed in your app.+**Experimental.** The supported profile is intentionally narrow. It currently covers direct text+sessions on managed Anthropic models, with an optional OpenComputer sandbox. Flue is pre-1.0, and+each deployment includes the exact Flue version installed in your app.</Note>[Flue](https://flueframework.com) is a TypeScript framework for durable agents. OpenComputer runs the@@ -22,14 +21,14 @@ Starter: [`diggerhq/oc-flue-starter`](https://github.com/diggerhq/oc-flue-starteThe built-in runtimes run Claude Code, Codex, or pi as a managed coding agent. A Flue agent isdifferent: **your application is the runtime**. OpenComputer deploys and operates that app.-| Concern | Built-in runtimes | Flue |-| ------------------ | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |-| Agent loop | OpenComputer runs Claude Code, Codex, or pi | Your compiled Flue app contains the loop |-| Session compute | Managed per-session brain and workspace sandboxes | One deployed app, with one Durable Object instance per session |+| Concern | Built-in runtimes | Flue |+| --- | --- | --- |+| Agent loop | OpenComputer runs Claude Code, Codex, or pi | Your compiled Flue app contains the loop |+| Session compute | Managed per-session brain and workspace sandboxes | One deployed app, with one Durable Object instance per session || Conversation state | Checkpointed runtime files plus the OpenComputer event log | Flue stores its conversation in Durable Object SQLite; OpenComputer projects public milestones into its event log |-| Tools and skills | Platform tools plus uploaded `prompt.md` and `skills/` | `defineTool` code and packaged skill imports compiled into the Worker |-| Linux workspace | Part of the normal runtime | Absent by default; `ocSandbox` creates one only when an operation needs it |-| Deployment | Upload prompt, model, and skill configuration | Build and deploy the compiled app |+| Tools and skills | Platform tools plus uploaded `prompt.md` and `skills/` | `defineTool` code and packaged skill imports compiled into the Worker |+| Linux workspace | Part of the normal runtime | Absent by default; `ocSandbox` creates one only when an operation needs it |+| Deployment | Upload prompt, model, and skill configuration | Build and deploy the compiled app |Under the hood, OpenComputer runs Flue's Cloudflare target as an agent Worker and gives each sessionits own Durable Object. This architecture lets a Flue session start without provisioning a virtual@@ -107,11 +106,10 @@ OpenComputer sandbox. The build request carries no GitHub token, OpenComputer kecredential, Workers credential, or secret store.<Note>- Repository import creates the initial deployment from the selected production- branch. Each later push to that branch that touches the selected root- automatically creates another deployment for the new exact commit. Flue- ignores pushes to other branches because it has one live Worker and no- preview/staged Worker in the current profile.+Repository import creates the initial deployment from the selected production branch. Each later+push to that branch that touches the selected root automatically creates another deployment for the+new exact commit. Flue ignores pushes to other branches because it has one live Worker and no+preview/staged Worker in the current profile.</Note>The review step returns a receipt for the exact source plan. Import re-resolves GitHub authority and@@ -182,8 +180,8 @@ npm install @opencomputer/flueExport the OpenComputer route and register the managed model gateway inside your agent initializer:```ts src/agents/support-triage.ts-import { defineAgent, defineAgentProfile } from "@flue/runtime";-import { DEFAULT_MODEL, route, useOcGateway } from "@opencomputer/flue";+import { defineAgent, defineAgentProfile } from '@flue/runtime';+import { DEFAULT_MODEL, route, useOcGateway } from '@opencomputer/flue';export { route };@@ -192,8 +190,7 @@ export default defineAgent((ctx) => {return {profile: defineAgentProfile({- instructions:- "Triage customer requests and give the next concrete action.",+ instructions: 'Triage customer requests and give the next concrete action.',}),model: DEFAULT_MODEL,};@@ -204,7 +201,7 @@ Use the default hosting app, which mounts Flue's routes, the deployment health eOpenComputer telemetry:```ts src/app.ts-export { default } from "@opencomputer/flue/app";+export { default } from '@opencomputer/flue/app';```Declare the deployment target:@@ -226,14 +223,14 @@ choice when you do not need additional routes.## What `@opencomputer/flue` supplies-| Export | Purpose |-| ------------------------- | -------------------------------------------------------------------- |-| `useOcGateway(ctx)` | Registers the managed Anthropic endpoint inside the Flue initializer |-| `route` | Opts an agent into the HTTP transport used by managed dispatch |-| `DEFAULT_MODEL` | Selects the supported prompt-caching-safe default model |-| `@opencomputer/flue/app` | Provides Flue routes, `GET /health`, and telemetry wiring |-| `@opencomputer/flue/wire` | Adds telemetry when your project owns its hosting app |-| `ocSandbox(ctx.env)` | Adds an optional, demand-driven Linux shell and filesystem |+| Export | Purpose |+| --- | --- |+| `useOcGateway(ctx)` | Registers the managed Anthropic endpoint inside the Flue initializer |+| `route` | Opts an agent into the HTTP transport used by managed dispatch |+| `DEFAULT_MODEL` | Selects the supported prompt-caching-safe default model |+| `@opencomputer/flue/app` | Provides Flue routes, `GET /health`, and telemetry wiring |+| `@opencomputer/flue/wire` | Adds telemetry when your project owns its hosting app |+| `ocSandbox(ctx.env)` | Adds an optional, demand-driven Linux shell and filesystem |OpenComputer binds a platform-managed credential for its gateway during deployment. Your providerkey is not compiled into the app or exposed to the Worker.@@ -244,18 +241,16 @@ Custom `defineTool` handlers run inside the Worker. Import any data or templatesCloudflare build includes those files:```ts src/tools/lookup-order.ts-import { defineTool } from "@flue/runtime";-import * as v from "valibot";-import orders from "../data/orders.json" with { type: "json" };+import { defineTool } from '@flue/runtime';+import * as v from 'valibot';+import orders from '../data/orders.json' with { type: 'json' };export const lookupOrder = defineTool({- name: "lookup_order",- description: "Look up an order by id.",+ name: 'lookup_order',+ description: 'Look up an order by id.',input: v.object({ order_id: v.string() }),run({ input }) {- return (- (orders as Record<string, unknown>)[input.order_id] ?? { found: false }- );+ return (orders as Record<string, unknown>)[input.order_id] ?? { found: false };},});```@@ -285,13 +280,13 @@ optional OpenComputer sandbox follow the sandbox's separate network policy.Add `ocSandbox` only when the agent needs a Linux shell or durable files:```ts-import { defineAgent, defineAgentProfile } from "@flue/runtime";+import { defineAgent, defineAgentProfile } from '@flue/runtime';import {DEFAULT_MODEL,ocSandbox,route,useOcGateway,-} from "@opencomputer/flue";+} from '@opencomputer/flue';export { route };@@ -300,8 +295,7 @@ export default defineAgent((ctx) => {return {profile: defineAgentProfile({- instructions:- "Work in the sandbox only when a shell or file operation is needed.",+ instructions: 'Work in the sandbox only when a shell or file operation is needed.',}),model: DEFAULT_MODEL,sandbox: ocSandbox(ctx.env),@@ -377,7 +371,6 @@ Durable Object is not version-pinned and can also be affected by the Worker chanTo restore a known-good build, check out that source and run `oc agent deploy` again. Flue and DurableObject schema changes are forward-only, so do not downgrade across an incompatible Flue storageversion.-</Warning>## Session behaviordiff --git a/docs/agent-sessions/repos.mdx b/docs/agent-sessions/repos.mdxindex 37936f4f..abcbb565 100644--- a/docs/agent-sessions/repos.mdx+++ b/docs/agent-sessions/repos.mdx@@ -26,27 +26,26 @@ sandbox, and deploys the resulting artifact. Repository credentials reach neithe## Concepts-| Concept | Role | Boundary |-| ---------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------------------- |-| GitHub App | Mints operation-scoped GitHub tokens. | Not session refs. |-| Installation | GitHub account and repo selection. | The repos the App may work in. |-| Repo | A stable owner/repo handle. | No tokens, private keys, or session refs. |-| Source | `ref`, `sha`, and local name for one session. | Auth comes from your configured GitHub App (OpenComputer App by default) unless inline. |-| Git operations sandbox | Runs authenticated clone/fetch/publish work. | Separate from the agent; token lives only for one operation. |-| Deployment source | Repository, root, and production branch for one agent. | Resolves one exact commit; source auth is discarded before build code runs. |+| Concept | Role | Boundary |+| --- | --- | --- |+| GitHub App | Mints operation-scoped GitHub tokens. | Not session refs. |+| Installation | GitHub account and repo selection. | The repos the App may work in. |+| Repo | A stable owner/repo handle. | No tokens, private keys, or session refs. |+| Source | `ref`, `sha`, and local name for one session. | Auth comes from your configured GitHub App (OpenComputer App by default) unless inline. |+| Git operations sandbox | Runs authenticated clone/fetch/publish work. | Separate from the agent; token lives only for one operation. |+| Deployment source | Repository, root, and production branch for one agent. | Resolves one exact commit; source auth is discarded before build code runs. |<Note>- `Repo` and `Source` are provider-neutral: `provider`, `owner`, `repo`, `ref`,- `sha`. GitHub uses GitHub Apps as its auth surface. Other providers can add- their own auth surface while sessions continue to reference repos and sources- the same way.+`Repo` and `Source` are provider-neutral: `provider`, `owner`, `repo`, `ref`, `sha`.+GitHub uses GitHub Apps as its auth surface. Other providers can add their own auth+surface while sessions continue to reference repos and sources the same way.</Note>## How it worksEvery authenticated Git operation runs in its own **Git operations sandbox** — a minimalbox with `git` and nothing else, provisioned for that one operation and destroyed when it-finishes. Checkout and publish get _different_ boxes. Your agent's own sandboxes — the+finishes. Checkout and publish get *different* boxes. Your agent's own sandboxes — the**brain** that runs the loop and the **hands** sandbox that holds the files — are never oneof these: they hold no token and never run authenticated `git` or `gh`. Files and patchesmove between them through object storage, never next to a credential.@@ -166,12 +165,7 @@ the active revision stays live. Restore the Flue definition, or unlink the sourcnew agent. Unlinking stops push-to-deploy; it does not delete or convert the existing agent, revision,or sessions.-<Note>- The deployment repository is not a session working repository. Importing it- does not mount its files into later sessions or grant the running agent GitHub- access. Choose session [sources](#how-it-works) separately when an agent needs- code to work on.-</Note>+<Note>The deployment repository is not a session working repository. Importing it does not mount its files into later sessions or grant the running agent GitHub access. Choose session [sources](#how-it-works) separately when an agent needs code to work on.</Note>## Connecting GitHub@@ -179,21 +173,11 @@ Pick one. Either way, OpenComputer mints a fresh, repo-scoped token **per operatfor checkout, write only to publish) — the agent never holds one.<CardGroup cols={2}>- <Card- title="Install the OpenComputer App"- icon="github"- href="https://github.com/apps/opencomputerdev/installations/new"- >- Zero setup. Choose the repos and go — OpenComputer owns the key and mints- per operation.+ <Card title="Install the OpenComputer App" icon="github" href="https://github.com/apps/opencomputerdev/installations/new">+ Zero setup. Choose the repos and go — OpenComputer owns the key and mints per operation.</Card>- <Card- title="Create your own App"- icon="wand-magic-sparkles"- href="#bring-your-own-app"- >- GitHub creates it in a few clicks; OpenComputer federates it, so PRs come- from your identity.+ <Card title="Create your own App" icon="wand-magic-sparkles" href="#bring-your-own-app">+ GitHub creates it in a few clicks; OpenComputer federates it, so PRs come from your identity.</Card></CardGroup>@@ -202,11 +186,7 @@ for checkout, write only to publish) — the agent never holds one.Use your own GitHub App so PRs, comments, and statuses come from **your** identity. OpenComputerstores the key encrypted and signs the same per-operation tokens with it.-<Note>- [Watches](/agent-sessions/watches) currently require PRs opened through the- **OpenComputer** App — a PR published with a bring-your-own App isn't- watchable yet.-</Note>+<Note>[Watches](/agent-sessions/watches) currently require PRs opened through the **OpenComputer** App — a PR published with a bring-your-own App isn't watchable yet.</Note>**Create one** — `createManifestUrl` returns a link; open it and GitHub walks you throughcreating the App, then OpenComputer captures the key and registers it. (Creating an App is a@@ -215,9 +195,7 @@ GitHub-UI flow, so it's a link to open, not a pure API call.)<CodeGroup>```ts TypeScript SDK-const { startUrl } = await oc.github.apps.createManifestUrl({- name: "Your Agents",-});+const { startUrl } = await oc.github.apps.createManifestUrl({ name: "Your Agents" });// open startUrl → click "Create" on GitHub → done```@@ -236,11 +214,7 @@ Authorization: Bearer $OPENCOMPUTER_API_KEY<CodeGroup>```ts TypeScript SDK-await oc.github.apps.register({- mode: "byo_stored_key",- githubAppId: "123456",- privateKey: pem,-});+await oc.github.apps.register({ mode: "byo_stored_key", githubAppId: "123456", privateKey: pem });``````http REST API@@ -267,18 +241,16 @@ PRs**. Publishing requires a configured GitHub App — [install the OpenComputer<CodeGroup>```ts TypeScript SDK-sources: [- {- url: "https://github.com/acme/web.git",- ref: "refs/pull/42/head",- sha: "abc123…",- auth: {- type: "risky_short_lived_token",- token: "ghs_…",- expiresAt: "…",- },+sources: [{+ url: "https://github.com/acme/web.git",+ ref: "refs/pull/42/head",+ sha: "abc123…",+ auth: {+ type: "risky_short_lived_token",+ token: "ghs_…",+ expiresAt: "…",},-];+}]``````json REST API@@ -297,12 +269,11 @@ sources: [</CodeGroup><Warning>- The inline token is **checkout-only** — it checks the repo out once and is- then purged, so it **cannot publish or open PRs** (publishing requires a- configured GitHub App). It also **can't refresh**, so use it only for sessions- that finish within the token's life. OpenComputer rejects a far-future or- missing expiry and holds the token encrypted only until the first checkout,- then purges it. Use this only when a GitHub App is not configured.+The inline token is **checkout-only** — it checks the repo out once and is then purged, so+it **cannot publish or open PRs** (publishing requires a configured GitHub App). It also+**can't refresh**, so use it only for sessions that finish within the token's life.+OpenComputer rejects a far-future or missing expiry and holds the token encrypted only+until the first checkout, then purges it. Use this only when a GitHub App is not configured.</Warning>## Register a repo@@ -341,14 +312,12 @@ passed** — auth resolves through your configured GitHub App (the OpenComputerconst session = await oc.sessions.create({agent: agent.id,input: "Review this pull request.",- sources: [- {- repo: repo.id,- ref: "refs/pull/42/head",- sha: "abc123…",- name: "head",- },- ],+ sources: [{+ repo: repo.id,+ ref: "refs/pull/42/head",+ sha: "abc123…",+ name: "head",+ }],});// checked out at /workspace/sources/head before the first turn```