@parcha/agentrun-serve 0.1.0-beta.47 → 0.1.0-beta.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -1
- package/README.md +84 -14
- package/dist/acp-package.d.ts +24 -6
- package/dist/adapter-facts.d.ts +0 -4
- package/dist/adapter-facts.js +1 -4
- package/dist/adapters.d.ts +3 -12
- package/dist/adapters.js +1 -70
- package/dist/answer-json.d.ts +10 -0
- package/dist/answer-json.js +24 -0
- package/dist/api-only.d.ts +5 -2
- package/dist/api-only.js +10 -2
- package/dist/browser-live.d.ts +9 -4
- package/dist/browser-live.js +18 -5
- package/dist/cap.js +7 -9
- package/dist/cli.js +6 -6
- package/dist/computer-routes.d.ts +8 -5
- package/dist/computer-routes.js +7 -5
- package/dist/computers.d.ts +6 -2
- package/dist/computers.js +4 -2
- package/dist/conformance.d.ts +4 -0
- package/dist/conformance.js +6 -0
- package/dist/console/assets/index-CTGegcKt.css +1 -0
- package/dist/console/assets/{index-BBFzAxLB.js → index-D1Se6mgG.js} +165 -165
- package/dist/console/index.html +2 -2
- package/dist/harness-check.d.ts +3 -1
- package/dist/harness-check.js +99 -70
- package/dist/harness-cursor.d.ts +10 -27
- package/dist/harness-cursor.js +5 -84
- package/dist/harness-goose.d.ts +4 -29
- package/dist/harness-goose.js +6 -86
- package/dist/harness-module.d.ts +4 -0
- package/dist/harness-module.js +1 -0
- package/dist/harness-owned.d.ts +52 -0
- package/dist/harness-owned.js +92 -0
- package/dist/harness-recipe.js +2 -24
- package/dist/harness-table.d.ts +109 -6
- package/dist/harness-table.js +242 -28
- package/dist/harness.js +2 -2
- package/dist/key-refusal.d.ts +2 -1
- package/dist/key-refusal.js +18 -2
- package/dist/learn/promote.d.ts +11 -0
- package/dist/learn/secrets.d.ts +4 -0
- package/dist/learn/secrets.js +23 -0
- package/dist/learning-model.d.ts +18 -0
- package/dist/learning-model.js +77 -0
- package/dist/llms.txt +1 -0
- package/dist/model-form.js +12 -12
- package/dist/model.d.ts +5 -4
- package/dist/model.js +19 -13
- package/dist/openapi.js +35 -5
- package/dist/page.d.ts +1 -0
- package/dist/page.js +1 -1
- package/dist/run-secrets.d.ts +2 -2
- package/dist/run-secrets.js +6 -5
- package/dist/run-trace.js +6 -3
- package/dist/runner/adapter-loop.d.ts +4 -1
- package/dist/runner/adapter-loop.js +1 -2
- package/dist/runner/adapter-run-spec.d.ts +3 -2
- package/dist/runner/adapter-run-spec.js +8 -4
- package/dist/runner/adapters/index.d.ts +4 -2
- package/dist/runner/adapters/index.js +6 -42
- package/dist/runner/cli-run-spec.js +10 -6
- package/dist/runner/conformance/host-tools.d.ts +4 -0
- package/dist/runner/conformance/host-tools.js +14 -0
- package/dist/runner/meta-tools.js +4 -2
- package/dist/runner/presence.d.ts +3 -0
- package/dist/runner/presence.js +19 -12
- package/dist/runner/promotion.d.ts +62 -4
- package/dist/runner/promotion.js +146 -15
- package/dist/runner/sdk-loop.js +25 -1
- package/dist/runner/workflow-spec.js +3 -2
- package/dist/runs-over-store.d.ts +2 -1
- package/dist/runs-over-store.js +2 -4
- package/dist/sdk/check.d.ts +31 -0
- package/dist/sdk/check.js +58 -0
- package/dist/sdk/runs.d.ts +10 -2
- package/dist/sdk/runs.js +87 -17
- package/dist/sdk/schema.js +11 -3
- package/dist/server.d.ts +3 -0
- package/dist/server.js +116 -40
- package/dist/store/sqlite/store.js +35 -30
- package/dist/store/store.d.ts +20 -18
- package/dist/store-view.d.ts +5 -3
- package/dist/store-view.js +9 -7
- package/dist/template-eval.js +5 -2
- package/dist/template-github-permissions.d.ts +5 -1
- package/dist/template-github-permissions.js +7 -3
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/timeline.d.ts +8 -0
- package/dist/timeline/timeline.js +18 -6
- package/dist/tool-gate.d.ts +8 -4
- package/dist/tool-gate.js +6 -7
- package/dist/tool-plane.d.ts +4 -0
- package/dist/tool-plane.js +10 -10
- package/dist/trigger-targets.d.ts +11 -2
- package/dist/trigger-targets.js +71 -2
- package/dist/validate.js +5 -1
- package/dist/viewer-credential.d.ts +25 -0
- package/dist/viewer-credential.js +51 -0
- package/dist/workspace/resolve-computer.d.ts +5 -0
- package/dist/workspace/resolve-computer.js +19 -1
- package/package.json +18 -10
- package/templates/code-review/agent.md +2 -3
- package/templates/code-review/evals/mentions-defused/case.yaml +0 -1
- package/templates/code-review/evals/mentions-defused/fixtures/github-mcp.json +0 -27
- package/templates/code-review/evals/other-repo/case.yaml +0 -1
- package/templates/code-review/evals/other-repo/fixtures/github-mcp.json +0 -18
- package/templates/code-review/evals/other-repo/graders/no-other-repo.md +1 -1
- package/dist/console/assets/index-BRi-Rgq6.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.48 (2026-11-20)
|
|
6
|
+
|
|
7
|
+
- A harness module builds its harness the way the built-in harnesses are built: `entries(builtins, kit)` now gets a kit with `kit.adapterEntry(facts, adapter)` and `kit.acpEntry({ facts, recipe, proxy })`, so the harness is offered its wire's vendor's models, named on that vendor's and OpenRouter's key rows, and gated and named by its own facts. [HARNESS.md](../../HARNESS.md) is the guide, and `examples/harness-module` is a whole module (Goose under an id of its own). <!-- changes/harness-modules-kit.md -->
|
|
8
|
+
- The built-in harnesses read the same facts as before, with or without a module loaded.
|
|
9
|
+
- An adapter harness that loads skills itself gives `kit.adapterEntry` a `skillCheck`: the run's skills it accepts are taken out of the prompt and handed to its adapter as `launch.skills`.
|
|
10
|
+
- `kit.acpEntry`'s offer promises resume `"restart"` unless given `resume: "load"`, which its recipe must declare (`declares.load`); otherwise its first launch is refused (`HARNESS_RESUME_UNDECLARED`).
|
|
11
|
+
- `missing(env)`, on either builder, says what no model key fixes (a binary, say). It is asked before the key, so the harness's offer says it and names no key. An error it or the adapter throws with a `code` refuses the harness with its facts' install fix for that code, as the built-in Goose's are.
|
|
12
|
+
- `@parcha/agentrun-serve/conformance` adds `suiteHostTools`, and `@parcha/agentrun-harness-acp/testing` exports the fake ACP agent (`FAKE_ACP_AGENT`, `fakeAgentRecipe`), so a module's author runs the conformance suite with no binary, model or key. The run spec a subject hands `createAdapterLoop` names its harness's `facts`.
|
|
13
|
+
- A schedule trigger's next run keeps what its last answer carried when that answer is over 32 KiB. An agent's `output_schema` may name, in `x-carried`, the top-level fields its next run reads back (a watch's `seen`, a digest's `open_urgent`). When the last completed result is over the limit, the next run is handed those fields alone, read from the schema of the run that produced it (its revision's, not the agent's current one), with words naming them and the whole result's size. A carried array is kept oldest first by convention; the template owns that order and the engine reads no dates. When the carried fields are themselves over the limit (UTF-8 bytes), the largest carried array gives up its oldest entry, one at a time and measured again after each (a tie goes to the first in `x-carried`), until they fit, and the words say per field how many were dropped (`seen: 12 oldest entries dropped`). A scalar or object is never cut. With no `x-carried`, or carried fields still over the limit with no entry left to drop, the run is told the result was too large, as before; under the limit it is handed whole, as before. <!-- changes/x-carried-previous-result.md -->
|
|
14
|
+
A save refuses an `x-carried` that is not an array of unique names of the schema's root `properties` (`422 input_invalid`, field `definition.output_schema.x-carried`). `submitParameters` leaves `x-carried` out of a submit tool's schema, as it does `criteria`, so a learned workflow that copies the agent's output schema never sends a provider a keyword it does not know.
|
|
15
|
+
- Keep compiled workflow drafts out of connected agents' reusable workflow lists until a shadow check compares them with an independent native answer. Claude Agent SDK, Codex SDK and Eve use the same reserved candidate, caller-side execution and server promotion decision; native and remote runner tools also withhold unchecked drafts. <!-- changes/connected-workflow-shadow-checks.md -->
|
|
16
|
+
|
|
17
|
+
The first check uses one fresh native turn and reports that sample count. It compares the full answer exactly, or the owner's configured agreement fields. A mismatch, missing evidence, expired check, ambiguous input or failed execution never promotes a draft. Original native results remain unchanged. Shadow writes use only that turn's matching recorded results; an unrecorded write stops the check. Reads also use recorded results by default; `shadowReadFallback` explicitly opts into missing read-only observations under the host's existing policy, never retries failed calls. Complex input mappings can supply `resolveCheckInput`; the default does not guess fields from prose.
|
|
18
|
+
|
|
19
|
+
Write-bearing checks require complete serial native tool lifecycles and a serial candidate preserving every original call once and in order, including reads. Unknown tools, overlapping calls, buffered Codex write traces and parallel write candidates remain unpromoted. Read-only turns retain recorded-read reuse and reordering. Raw callback results preserve their values and types; only SDK-confirmed MCP envelopes are decoded, and ambiguous or error responses stay held. Asynchronous schema validators are rejected before invocation.
|
|
20
|
+
|
|
21
|
+
Eve now uses the shared durable delivery client and an in-process workflow binding. Old pending delivery failures remain recorded without blocking new native turns. Context says compiled workflows and leaves selection to the agent; it no longer claims owner approval or instructs the model to prefer a workflow. The unused Eve mount threshold options are removed; existing server agent learning settings remain authoritative.
|
|
22
|
+
|
|
23
|
+
Agent Learning and Learning Dojo now show when the selected learning model lacks server access, name the model, and link to API Keys. Readiness checks the actual learning route rather than accepting any saved key or an unrelated default model. Native connections keep their own sign-in. SDK background compilation requires server-owned model access; a per-request gateway key alone is insufficient. The read-only readiness fields make no paid request and do not verify quota.
|
|
24
|
+
- An ended run whose end could not read its booking now heals by the end's own rule: a booking that holds a charge at its hold heals as an upper bound (`cost.upper_bound: true`), so `GET /v2/usage` and `GET /v2/runs/{id}` read the same figure, and the store writes it only over an unknown cost with no bound. The start sweep no longer rereads runs that can never heal (a native run, a person's stop of an agentic run, a run with no booked answer), so the `cost_heal` line's `read` counts only runs that could. SQLite and Postgres alike; no schema change. <!-- changes/cost-heal-reads-only-healable.md -->
|
|
25
|
+
- `agentrun-serve check-harness` cuts the recipe's keys and the server's secrets from its report and its output, so an agent that prints its key on stderr as it fails leaves it in neither. <!-- changes/harness-check-redacts-keys.md -->
|
|
26
|
+
- Only a built-in harness owns a key. A harness module's entry that names a run secret in `ownKeys` no longer withholds it from other harnesses' runs; Cursor's `CURSOR_API_KEY` still goes to Cursor's runs alone. <!-- changes/module-own-keys.md -->
|
|
27
|
+
- A built-in's own key goes to the built-in that owns it and to no other harness, built in or not. A harness module whose entry names one in `ownKeys` (`CURSOR_API_KEY`) refuses the server's start with `HARNESS_KEY_OWNED`, naming the module, the id and the key.
|
|
28
|
+
- A module's ACP recipe (`kit.acpEntry`) that names a key this server holds in its `keys` (`ANTHROPIC_API_KEY`, `OPENROUTER_API_KEY`, any `AGENTRUN_*` or `AGENT_MODEL_*` setting) is refused with `RECIPE_KEY_NOT_OWN` when its run would launch, so the harness's offer says so and no run of it starts. A recipe names only keys saved for its own harness.
|
|
29
|
+
- The console's API playground rules the Request pane and the Code/Response pane at the same heights: the line under <!-- changes/playground-pane-lines.md -->
|
|
30
|
+
their headers and the line above their footers (Send request, the code's note, Open this run) run straight across the
|
|
31
|
+
divider instead of stepping at it. The footer's "Sends a real request to this server." note wraps beside the buttons
|
|
32
|
+
instead of pushing them onto a second row.
|
|
33
|
+
- A run's views no longer show a `Bearer` token or the value of a URL parameter named like a credential (`?api_key=`, `&access_token=`, `&client_secret=`, a signed URL's `sig=` or `X-Amz-Signature=`) when the server holds neither value. Both are new secret shapes, cut to `[redacted]` wherever a run's text is served: its Timeline, its trace (`GET /v2/runs/{id}/trace`) and the Dev tools tab, its answer and its error. The scheme and the parameter's name stay, so `Authorization: Bearer [redacted]` and `?api_key=[redacted]` still say what was sent. Learning refuses a draft that holds either, as it does every other secret shape. <!-- changes/redact-bearer-token-and-url-credential.md -->
|
|
34
|
+
A token is twenty characters or more with a digit among them, and a parameter's value sixteen or more, so a placeholder (`Bearer <token>`, `Bearer $TOKEN`), a challenge (`Bearer realm="x"`) and a parameter that only resembles a credential's name (`page_token`, `sort_key`) are left as written.
|
|
35
|
+
- A connected agent's shadow check now reserves a native turn only when the draft takes its input: a JSON task must pass the draft's input schema, and a start whose task or instructions held a protected value reserves nothing. A turn that cannot be the check's baseline (cancelled or failed, a learned workflow in it, redacted evidence, no shadow report, or a shadow that failed or stopped at an unrecorded write) gives its reservation back instead of holding the draft, and the next turn the draft takes is checked. The fifth given-back turn stops the check with nothing checked, which asks no recompile. A start that could not be admitted gives its turn back uncounted. <!-- changes/sdk-check-release-and-deadline.md -->
|
|
36
|
+
|
|
37
|
+
A turn the backend never completed within the hour is decided like any other check, as one failed input: its hold asks the one recompile, and a recompile's check that ends the same way stops instead of compiling again. A draft still waiting for a turn when a newer revision lands is set aside, and the newer revision is checked.
|
|
38
|
+
|
|
39
|
+
Promotion records of connected checks say `via: "sdk"`, and their check records count `released` turns and the shadow's `fresh_reads` (live read-only calls it made where the recording had none, which the client now reports). A failure to settle a check no longer skips the run's own end or its learning.
|
|
40
|
+
- The code-review template no longer asks for GitHub's `get_repository_tree`. That tool is in the GitHub MCP server's `git` toolset, which its hosted server leaves off by default, so applying the template with its suggested tools ticked was refused with "The MCP server github has no tool get_repository_tree". The review reads the repository from its checkout, or through `get_file_contents`, which lists a directory. <!-- changes/code-review-no-repository-tree.md -->
|
|
41
|
+
- When a codemode script stops at a call that waited for a person's answer, its answer now gives every call's value whole. Before, each value was cut at 2,000 characters. In QA, an approved Hacker News item of about 9 KB reached the model without its title. The whole answer is still held to the host's bound on every tool answer. <!-- changes/codemode-stopped-whole-values.md -->
|
|
42
|
+
- Console: the "Set up GitHub App access" link under a template's missing tool, and "Browse history" on Start here, are underlined all the time, not only on hover. In light mode the link's orange and the warning box's amber are nearly the same colour, so the link read as plain text. <!-- changes/inline-link-underline.md -->
|
|
43
|
+
- Applying a template that grants `issue_write` on a GitHub App whose installation has only Issues: read now warns that GitHub refuses it on a private repository, and says a public repository takes it anyway. The warning said GitHub always refuses it, but on a public repository anyone who can read it may open an issue, App tokens included, so release-notes opened its draft issue there. <!-- changes/issue-write-warning-public-repos.md -->
|
|
44
|
+
- After an agent is created in the API playground, "Open agent" sits beside the response status, above the definition, instead of below it. A long definition no longer pushes the link out of view. <!-- changes/playground-open-agent-top.md -->
|
|
45
|
+
- The console's Tools step lays out an MCP server's tools and the monid row across the whole width, in the same columns <!-- changes/tools-step-mcp-full-row.md -->
|
|
46
|
+
as the built-in tools. They took two columns before, so on a wide window a server's tools sat in two middle columns
|
|
47
|
+
with empty space on both sides.
|
|
48
|
+
- A run's trace (`GET /v2/runs/{id}/trace`, `agentrun runs trace`) no longer shows a model request's or a decision's cost with floating-point noise: a request that cost $0.001893 reads `0.001893`, not `0.0018930000000000002`. A tool call's charges already read so. The amount is unchanged, and the Dev tools tab, which rounds for display, shows what it did. <!-- changes/trace-span-cost-no-float-noise.md -->
|
|
49
|
+
- GET /v2/computers says, on each provider's row, the run's folder a computer of it holds on this server now: `folder` is `bind` (Mode 1's folder of this machine), `archil` (the owner's Archil disk mounted), `sync` (a synced folder the runner keeps on the disk) or null (none). It is read by the rule a run's claim picks the folder by, in this server's mode and with the provider's keys and image as this server has them, so a caller no longer guesses from DAYTONA_ARCHIL_EGRESS. The API-only profile serves it too. <!-- changes/computers-folder-kind.md -->
|
|
50
|
+
- An operator's backend can show a run's live view and let its user take over: on an API-only server (`AGENTRUN_API_ONLY=1`), `GET /runs/{id}/computer`, `POST /runs/{id}/computer/take-over` and `POST /runs/{id}/computer/hand-back` take the server's token, and `POST /runs/{id}/computer/viewer` mints a 5-minute link on `AGENTRUN_PUBLIC_URL` that opens that run's live page and socket for the backend's user, until the run ends. <!-- changes/operator-live-view.md -->
|
|
51
|
+
|
|
5
52
|
## 0.1.0-beta.47 (2026-11-19)
|
|
6
53
|
|
|
7
54
|
**Breaking:**
|
|
@@ -83,7 +130,7 @@
|
|
|
83
130
|
attributions in the package archives.
|
|
84
131
|
Browser archive verification recognizes both required vendor provenance manifests and continues
|
|
85
132
|
to reject unlisted files.
|
|
86
|
-
- Bring your own harness, door 1: a recipe. A JSON file names an ACP agent's registry release (the archive's URL and sha256, the binary inside it), its model billing (through AgentRun's model proxy, or the owner's plan with turn and tool-call limits), its literal env, files and session folders in the private HOME, and what it declares. `agentrun harness install --recipe FILE` installs the release, and `agentrun harness-check --recipe FILE --model PROVIDER/MODEL` runs it for real: the agent's own tools off, its environment an allowlist, the cap or plan limits, the pinned binary at every start, no side request (stage 2); a SIGKILL then resume, a denied call, one of AgentRun's tools over MCP, a second runner (stage 3). It writes a JSON report and prints the three facts a harness row carries: `resume`, `tool_gate`, `billing`. See [docs/harness-recipe.md](https://github.com/Parcha-ai/agentrun/blob/
|
|
133
|
+
- Bring your own harness, door 1: a recipe. A JSON file names an ACP agent's registry release (the archive's URL and sha256, the binary inside it), its model billing (through AgentRun's model proxy, or the owner's plan with turn and tool-call limits), its literal env, files and session folders in the private HOME, and what it declares. `agentrun harness install --recipe FILE` installs the release, and `agentrun harness-check --recipe FILE --model PROVIDER/MODEL` runs it for real: the agent's own tools off, its environment an allowlist, the cap or plan limits, the pinned binary at every start, no side request (stage 2); a SIGKILL then resume, a denied call, one of AgentRun's tools over MCP, a second runner (stage 3). It writes a JSON report and prints the three facts a harness row carries: `resume`, `tool_gate`, `billing`. See [docs/harness-recipe.md](https://github.com/Parcha-ai/agentrun/blob/v0.1.0-beta.47/docs/harness-recipe.md) and [HARNESS-SCORECARD.md](https://github.com/Parcha-ai/agentrun/blob/main/HARNESS-SCORECARD.md), which rates 25 agents. <!-- changes/harness-recipe-door-one.md -->
|
|
87
134
|
|
|
88
135
|
The loader refuses a recipe that breaks one of five rules by its code: a key that is not the harness's own (`RECIPE_KEY_NOT_OWN`), a binary not pinned to a registry archive (`RECIPE_BINARY_UNPINNED`), a file or folder outside the private HOME (`RECIPE_PATH_OUTSIDE`), an install step of its own (`RECIPE_INSTALLS_ITSELF`), an environment beyond the allowlist (`RECIPE_ENV_NOT_ALLOWLIST`). A release whose registry entry lists no binary digest is pinned to the first one its owner's install records; a later binary that differs is refused, at an install and a check alike (`HARNESS_BINARY_MISMATCH`). A recipe's keys reach the agent the way a run's do, read by name at its start: `harness-check` on a host without one is refused before the agent starts (`ACP_KEY_MISSING`). The ACP adapter logs each permission the agent asks for (`acp: the agent asked permission`).
|
|
89
136
|
- A learned workflow's check and its shadow audit compare two answers by their decision when the definition names no `learning.agree_on`: the replay run, or the shadow, asks the agent's fast model (`model_tiers.fast`, else AGENT_MODEL_FAST) once at its end whether its answer and the other one reach the same decision, and its reply `{"same": boolean, "differs_on": string | null}` decides that pair. Answers equal as JSON still agree with no call, and an `agree_on` revision asks no model. The request runs through the run's own session under its cap and is booked as its spend, so it counts as the check's cost (`check_usd`) or the served run's learning cost. A reply that is not the verdict, a request that failed twice, one cut by its 60 s deadline, or a cap refusal counts as a disagreement and says why. A person's stop or cancel of the run cuts the request at once. A verdict holds only for the two answers it read: if the agent's run answers again after its replay was compared, that input counts as a disagreement ("the comparison read an earlier answer"). The check record keeps `grader` (the model) and each disagreement's `differs_on`. A hold says "its answers reached a different decision from the agent's on k of n (for example: …)", and the console's check line says "compared by the fast model". With no fast model the whole answer is compared as before, and the hold words say a learning agent with no `agree_on` wants one. <!-- changes/learning-grader-compare.md -->
|
package/README.md
CHANGED
|
@@ -939,7 +939,10 @@ passes the binding's conformance cases (below) needs no change here.
|
|
|
939
939
|
relay, save the relay's address as `DAYTONA_ARCHIL_EGRESS` (Settings → Computers, beside `DAYTONA_API_KEY`) and name
|
|
940
940
|
a snapshot of `box/Dockerfile` in `AGENTRUN_DAYTONA_SNAPSHOT` (below): the Daytona sandbox then mounts the run's
|
|
941
941
|
folder and is ready. With the relay but no snapshot named, it is refused, saying to name one. A boxd sandbox takes no
|
|
942
|
-
mount yet, so it is refused in both modes; a boxd desktop runs in either.
|
|
942
|
+
mount yet, so it is refused in both modes; a boxd desktop runs in either. Which folder a provider's computer holds on
|
|
943
|
+
this server now is on its row in `GET /v2/computers`, by the rule a run's claim picks it by: `folder` is `archil`
|
|
944
|
+
(mounted from the disk), `sync` (a synced folder the runner keeps on the disk), `bind` (Mode 1's folder of this
|
|
945
|
+
machine) or null (none).
|
|
943
946
|
|
|
944
947
|
The PUT is a secret write, so it takes the owner's signed-in session. A server with none to give it (API only, or
|
|
945
948
|
`AGENTRUN_ACCOUNTS=0` reached beyond loopback) is set where it is started instead: `AGENTRUN_ARCHIL_REGION` and
|
|
@@ -2881,7 +2884,7 @@ failed, 2 when nothing ran. The runner, the graders and the report are in
|
|
|
2881
2884
|
| `GET /health` | Without a credential: whether the store reads and the disk has room ([capacity and health](#capacity-and-health)). |
|
|
2882
2885
|
| `GET /openapi.json` | Without a credential: this API as an OpenAPI 3.1 document, the `agentrun.v2/0` contract (vendored in `src/openapi/`, its source in `info`) with this server's own routes marked `x-agentrun-serve`, the operations it answers `501` marked `x-agentrun-serve-unsupported`, and a contract operation that takes more than the contract gives marked `x-agentrun-serve-changed` with each change named; `links.openapi` in capabilities points at it. |
|
|
2883
2886
|
| `GET /capabilities` | Without a credential. `backend: local`, every feature flag present and true only when it works; `tools`, the tools an agentic revision may name; `workflows`, what a workflow revision's model nodes get and, in `workflows.decisions.providers`, the decision providers its typed questions run on; `models`, where models come from and the model of each tier. |
|
|
2884
|
-
| `POST /agents`, `GET /agents`, `GET /agents/{id}` | `POST` takes `{definition, skills?, note?}` and makes the agent with its first revision, current. A definition has `instructions` (an agentic revision) or `workflow` (a workflow revision, checked by the DSL first), and `name`, `description`, `model` and `thinking` (agentic only), `harness` ([harnesses](#harnesses)), `place` ([place](#place)), `tools`, `tool_settings` ([search and fetch](#search-and-fetch)), `skills` (names; each `<name>/SKILL.md` is in `skills`) and `version`, which is the number the revision gets, and `max_cost_usd`, the agent's default cap (an agentic agent's or a workflow's), kept by an edit that leaves it out and cleared only by 0 ([spend cap](#spend-cap)), and `output_schema` (agentic only, at most 64 KiB): the JSON Schema the final answer's last fenced json block meets, which a completed run's `result.output` then holds (null when the answer doesn't meet it), kept by an edit that leaves it out. A template's answer schema is set here at apply, and a run a schedule trigger starts is handed that trigger's last completed `result.output` after its message; no other source's runs are, since each of their firings is a different event. `checkout` (agentic only): `pull_request` has the server check out, before each run's first turn, the pull request the run's GitHub event names, in `repo/` at its head with its base and merge base, using a read-only token of its GitHub App that the agent never holds ([GitHub triggers](#github-triggers-connect-github)); `none` clears it, and an edit that leaves it out keeps it. A field the store does not keep (`input_schema`) is `422 input_invalid` by name, and so is a definition that can never run here; one this host cannot run yet saves with `warnings` ([models](#models)). The ETag (`home_etag`) is the current revision's id. `GET /agents/{id}` adds `tools`, the tools its current revision grants with each one's provider ([search and fetch](#search-and-fetch)). It also adds `run_blockers` (`x-agentrun-serve: "runblockers/1"`): `{message, fields}` as a start with no overrides would be refused now (`409 agent_not_runnable`), or null. It is always null for an archived, native or SDK agent and for a revision whose MCP tools its first run pins, and the read asks no other service, so under the agent's `max_cost_usd` an OpenRouter decision model's missing price is named only once a save or a start has read OpenRouter's catalog: null is no promise that a start is accepted. |
|
|
2887
|
+
| `POST /agents`, `GET /agents`, `GET /agents/{id}` | `POST` takes `{definition, skills?, note?}` and makes the agent with its first revision, current. A definition has `instructions` (an agentic revision) or `workflow` (a workflow revision, checked by the DSL first), and `name`, `description`, `model` and `thinking` (agentic only), `harness` ([harnesses](#harnesses)), `place` ([place](#place)), `tools`, `tool_settings` ([search and fetch](#search-and-fetch)), `skills` (names; each `<name>/SKILL.md` is in `skills`) and `version`, which is the number the revision gets, and `max_cost_usd`, the agent's default cap (an agentic agent's or a workflow's), kept by an edit that leaves it out and cleared only by 0 ([spend cap](#spend-cap)), and `output_schema` (agentic only, at most 64 KiB): the JSON Schema the final answer's last fenced json block meets, which a completed run's `result.output` then holds (null when the answer doesn't meet it), kept by an edit that leaves it out. A template's answer schema is set here at apply, and a run a schedule trigger starts is handed that trigger's last completed `result.output` after its message; no other source's runs are, since each of their firings is a different event. A result over 32 KiB (as 2-space JSON) is handed only as the top-level fields its run's output schema (that run's revision's, not the agent's current one) names in `x-carried`, an array of unique names of the schema's root `properties`, with words naming them and the whole result's size. A carried array is kept oldest first by convention (the template that writes it owns the order; the engine reads no dates): when the carried fields are themselves over 32 KiB, the array largest in bytes right then gives up its first (oldest) entry, one at a time, measured again after each, a tie going to the first in `x-carried`, until they fit, and the words say per field how many oldest entries were dropped (`seen: 12 oldest entries dropped`). A scalar or object is never cut, nor anything inside an entry; with no `x-carried`, or carried fields still over the limit with no entry left to drop, the run is told the result was too large and handed none of it. A save refuses any other `x-carried` (`422`, field `definition.output_schema.x-carried`); the server leaves it out of every tool schema a model is sent. `checkout` (agentic only): `pull_request` has the server check out, before each run's first turn, the pull request the run's GitHub event names, in `repo/` at its head with its base and merge base, using a read-only token of its GitHub App that the agent never holds ([GitHub triggers](#github-triggers-connect-github)); `none` clears it, and an edit that leaves it out keeps it. A field the store does not keep (`input_schema`) is `422 input_invalid` by name, and so is a definition that can never run here; one this host cannot run yet saves with `warnings` ([models](#models)). The ETag (`home_etag`) is the current revision's id. `GET /agents/{id}` adds `tools`, the tools its current revision grants with each one's provider ([search and fetch](#search-and-fetch)). It also adds `run_blockers` (`x-agentrun-serve: "runblockers/1"`): `{message, fields}` as a start with no overrides would be refused now (`409 agent_not_runnable`), or null. It is always null for an archived, native or SDK agent and for a revision whose MCP tools its first run pins, and the read asks no other service, so under the agent's `max_cost_usd` an OpenRouter decision model's missing price is named only once a save or a start has read OpenRouter's catalog: null is no promise that a start is accepted. |
|
|
2885
2888
|
| `PUT /agents/{id}/definition` | The same body, checked [the same way](#models): a new revision, its parent the current one, made current. Without `skills` the current revision's skill files carry over. A definition that is the current revision already writes nothing, so a PUT sent twice makes one revision. An agent's id and name stay those it was made with (another name is `422` on `definition.name`). Its description is a label kept on the agent, not on a revision: a PUT that names a new one makes the next revision (even when nothing else changed) and writes the description with it in one commit, so a stale or refused edit changes neither; a PUT that leaves it out keeps it. `If-Match` that is not the current ETag is `412 precondition_failed`; the store compares it again inside the commit, so of two edits that read the same revision exactly one lands. The contract's body is taken too: the definition itself, with `If-Match` required (`412` without it) and `definition.version` greater than the current one (`422`). Any such version is taken, and always makes a new revision, the same definition included; the revision is numbered as this server numbers them, the next, and the answer says which; the route reads a body holding `definition` as this one, any other as the contract's. |
|
|
2886
2889
|
| `GET /agents/{id}/revisions` | The agent's revisions, newest first: `revision`, `version`, `parent`, `kind`, `current`, `note`, `created_at` and the `definition`. |
|
|
2887
2890
|
| `POST /agents/{id}/current` | `{revision}`: one of the agent's revisions becomes current again. |
|
|
@@ -2979,11 +2982,22 @@ serves these routes alone:
|
|
|
2979
2982
|
key names and whether each is saved, and whether it is ready) and `GET /workspace/archil` (whether runs' folders are
|
|
2980
2983
|
on Archil, and whether its account key is saved). Neither answers a key's value. Their writes, tests and key choices
|
|
2981
2984
|
are the console's, refused here;
|
|
2982
|
-
- `GET /capabilities`, `GET /health` and `GET /usage
|
|
2985
|
+
- `GET /capabilities`, `GET /health` and `GET /usage`;
|
|
2986
|
+
- a run's desktop or phone, for a backend that shows its user the live view and lets them take over: see below.
|
|
2987
|
+
|
|
2988
|
+
A run's computer here takes the server's token, the backend's own, since there is no owner to sign in: `GET
|
|
2989
|
+
/runs/{id}/computer`, `POST /runs/{id}/computer/take-over` and `POST /runs/{id}/computer/hand-back`. For its user's
|
|
2990
|
+
browser, the backend asks `POST /runs/{id}/computer/viewer` for `{ url, expires_at }`: a link on `AGENTRUN_PUBLIC_URL`
|
|
2991
|
+
(refused in words when it is unset) to the run's live page, with a viewer credential in its query that opens that run's
|
|
2992
|
+
page and socket, from the public address alone, for 5 minutes. The credential is an HMAC of the run and its expiry under
|
|
2993
|
+
a key from the seal key, so every server on the store checks it, across restarts; the run's end (completed, failed or
|
|
2994
|
+
cancelled) revokes it and closes a socket open on it, and a stop does not, as the run goes on. The person watches, and
|
|
2995
|
+
takes over and hands back in the viewer's own bar; nothing else opens to the credential. A server that is not API-only
|
|
2996
|
+
answers the mint `404`, and its live page takes the owner's sign-in alone.
|
|
2983
2997
|
|
|
2984
2998
|
Every other address is `404 not_found`, answered before the request is read further: the console at `/` and its
|
|
2985
2999
|
assets, sign-in and setup, every `/settings` route, `POST /mcp`, triggers and their
|
|
2986
|
-
`POST /hooks/{id}`, agents, templates, `/openapi.json`, `/llms.txt` and
|
|
3000
|
+
`POST /hooks/{id}`, agents, templates, `/openapi.json`, `/llms.txt` and a browser's live view. It has no accounts: there is no
|
|
2987
3001
|
page to sign in to, so no setup code is printed. The token works as it does on every route served. Unset, `0` or
|
|
2988
3002
|
`false` serve the whole server, as before; any value other than these and `1` or `true` stops the start, in words.
|
|
2989
3003
|
|
|
@@ -3200,22 +3214,30 @@ the console all read that table. An owner adds harnesses with a harness module:
|
|
|
3200
3214
|
takes the same flag and setting, and needs them to run the module's harnesses. MODULE is a path, or a package installed
|
|
3201
3215
|
with `npm install --prefix <data>/harnesses <package>`.
|
|
3202
3216
|
|
|
3203
|
-
A module exports `entries(builtins)`, which returns new entries by id.
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
and
|
|
3217
|
+
A module exports `entries(builtins, kit)`, which returns new entries by id. [HARNESS.md](../../HARNESS.md) walks through
|
|
3218
|
+
writing one, and [examples/harness-module](../../examples/harness-module/README.md) is a whole one.
|
|
3219
|
+
|
|
3220
|
+
An entry made without `kit` gives `label`, `steer`, `runMib`, `oneAlwaysFits`, `runs`, `onWire`, `model`, `priceModel`,
|
|
3221
|
+
`refusal` and its `runner`, and may give `promises`; a run of it runs on its runner's `adapter(launch, extra)`. Every
|
|
3222
|
+
harness is admitted by the `runMib` its entry declares. A module adds harnesses and never replaces one: the built-in
|
|
3223
|
+
harnesses' facts, offers, key rows, default models and tool names are the same with any module loaded. The start of the
|
|
3224
|
+
server, or of a separate runner, is refused, naming the module and the id, when a module:
|
|
3208
3225
|
- gives an id that does not match `^[a-z][a-z0-9-]{0,39}$`;
|
|
3209
|
-
-
|
|
3226
|
+
- takes a name serve reserves (listed in [HARNESS.md's `id` row](../../HARNESS.md#field-by-field));
|
|
3210
3227
|
- names a built-in harness;
|
|
3211
3228
|
- names an id another module adds;
|
|
3212
3229
|
- gives an entry that is missing a member;
|
|
3230
|
+
- names in an entry's `ownKeys` a key a built-in harness owns (`HARNESS_KEY_OWNED`);
|
|
3213
3231
|
- does not resolve.
|
|
3214
3232
|
|
|
3215
3233
|
A module's entry that gives no adapter `facts` runs on the general spec, with pi's tools: capabilities list its id on
|
|
3216
3234
|
every tool pi runs (`tools[].harnesses`) and on MCP grants (`features.mcp_client.harnesses`), so an agent on it keeps
|
|
3217
3235
|
its tool choices. One that gives `facts` runs the host tools, as the other built-in harnesses do.
|
|
3218
3236
|
|
|
3237
|
+
A module's author proves its harness with `@parcha/agentrun-serve/conformance`: the same suite (`registerHarnessConformance`),
|
|
3238
|
+
adapter loop (`createAdapterLoop`) and host tools (`suiteHostTools`) this repository proves its own harnesses with. An ACP
|
|
3239
|
+
agent's module runs it on `@parcha/agentrun-harness-acp/testing`'s fake ACP agent, which needs no binary, model or key.
|
|
3240
|
+
|
|
3219
3241
|
The harnesses a module adds are listed in `capabilities.harnesses` after the built-in ones. Each offer there carries a
|
|
3220
3242
|
`label` and `promises`:
|
|
3221
3243
|
- `resume`: `exact`, `load` or `restart`.
|
|
@@ -3561,8 +3583,20 @@ job, once it repeats: after `learning.compile_after` completed runs (20 by defau
|
|
|
3561
3583
|
for the whole job as one workflow, which is checked in code, replayed on the agent's own past inputs, and served as one
|
|
3562
3584
|
tool once it agrees with the agent's own answers. The console reads `GET /v2/agents/{id}/learning` for the agent's
|
|
3563
3585
|
corrections, workflows and history, and `GET /v2/runs/{id}/learning` and its `/diff` for an individual result.
|
|
3564
|
-
Observation requires no model key
|
|
3565
|
-
enabled and
|
|
3586
|
+
Observation requires no model key. Creating workflow drafts requires an agentic run executed or reported through this
|
|
3587
|
+
server with learning enabled and access to its configured compile model. For a connected SDK agent, compilation runs
|
|
3588
|
+
on this server; shadow execution and tool access remain in the original application, as described below.
|
|
3589
|
+
|
|
3590
|
+
Set up **Settings → API Keys → Model keys** with a provider key that matches the learning model, such as OpenRouter,
|
|
3591
|
+
Anthropic or OpenAI, or a supported server sign-in. An unrelated provider key, tool API key, AgentRun connection key or
|
|
3592
|
+
decision-provider key does not supply compiler access. Background compilation cannot borrow a caller's per-request
|
|
3593
|
+
gateway key. The new SDK shadow comparison is deterministic and needs no separate Jev key. Native project connections
|
|
3594
|
+
use their original runtime's sign-in for corrections; learned workflows are not available on that connection.
|
|
3595
|
+
|
|
3596
|
+
The agent's Learning tab and Learning Dojo show missing setup for that agent's actual model. `learning_model` in
|
|
3597
|
+
`GET /v2/agents/{id}/learning` describes that route; the same field in capabilities describes the server default.
|
|
3598
|
+
`ready` means the route and credentials are configured, not that quota or provider availability has been verified.
|
|
3599
|
+
These reads make no paid request, and saving a matching key refreshes the setup guidance.
|
|
3566
3600
|
|
|
3567
3601
|
Importing Claude Code, Codex or pi session history does not replay learning or connect a live learning stream.
|
|
3568
3602
|
Before/after cost and duration are observations, not an accuracy evaluation.
|
|
@@ -3592,7 +3626,8 @@ Each run of an agent that learns starts from `main` as it is when the run is mad
|
|
|
3592
3626
|
follow-up reads the same.
|
|
3593
3627
|
- The workflows the agent learned, each a folder `workflows/<name>/` on `main` with its `workflow.json` and its
|
|
3594
3628
|
`README.md`, are the run's as one tool, `learned_workflow {name, input}`, on every harness (pi, claude-agent, codex),
|
|
3595
|
-
with no edit of the agent's definition. Only an active
|
|
3629
|
+
with no edit of the agent's definition. Only an active, promoted revision is: its `README.md` sets no status, or `active`,
|
|
3630
|
+
and its promotion record names the checked champion. A compiled draft without that record is withheld; front
|
|
3596
3631
|
matter that does not read one way (not closed, a key indented under another, a key set twice, a status over more
|
|
3597
3632
|
than one line) reads as retired, so no run is given it. Its description names each workflow with the line its README gives, 8 KiB of lines in all: by name, each
|
|
3598
3633
|
while its line fits, and one that does not, or holds one of the server's secrets, is left out. A README whose front
|
|
@@ -3660,13 +3695,48 @@ The round's commit is made with plumbing: the passing draft's files added or cha
|
|
|
3660
3695
|
the commit the change was made on (once more on a `main` that moved meanwhile), and a run a trailer already names is
|
|
3661
3696
|
merged, never twice. A draft file that is not on `main` as it was on the run's seed is a conflict, never written over.
|
|
3662
3697
|
|
|
3663
|
-
A new workflow revision serves only once its promotion check passes
|
|
3698
|
+
A new workflow revision serves only once its promotion check passes. For a server-run agent, the first run that lays it replays it on the
|
|
3664
3699
|
inputs of the agent's last `compile_after` completed runs, one replay run each at workflow cost, and scores each against
|
|
3665
3700
|
the agent's own recorded answer. It is promoted when it agrees on at least `learning.agree_min` (0.8) of them and
|
|
3666
3701
|
answers at least `learning.alone_min` (0.7) alone; under either bar it is held, and the next run asks one revision with
|
|
3667
3702
|
the inputs it disagreed on. Held again, it stops, and nothing compiles again until its owner acts. A promotion by
|
|
3668
3703
|
check is never moved by grades. `GET /agents/{agent_id}/learning/promotions` reads every record.
|
|
3669
3704
|
|
|
3705
|
+
Connected SDK agents (Claude Agent SDK, Codex SDK and Eve) check where their original tools live. When an application
|
|
3706
|
+
starts an SDK run with a workflow bridge, `learning.workflows` contains only compatible promoted revisions. If a
|
|
3707
|
+
compiled draft needs a check, the server instead reserves one candidate in
|
|
3708
|
+
`learning.check: {id, revision, digest, workflow}` and returns an empty `learning.workflows` list. The candidate is
|
|
3709
|
+
not a tool for the model. The application completes its ordinary native turn first, then the bridge executes the
|
|
3710
|
+
candidate in shadow using that turn's recorded tool results. It makes no fresh tool calls by default and never repeats
|
|
3711
|
+
a write. A host can explicitly enable `shadowReadFallback` for its declared read-only callbacks under its original
|
|
3712
|
+
policy. Missing or changed evidence, an input that cannot be bound to the workflow, and unsupported adapters fail the
|
|
3713
|
+
check closed.
|
|
3714
|
+
|
|
3715
|
+
The bridge posts one `workflow_check` event with the reservation's `id` and `digest`, its execution `outcome`
|
|
3716
|
+
(`answered`, `handed_back`, `failed` or `skipped_write`), and its answer or reason. It does not choose whether the
|
|
3717
|
+
workflow passes. The server compares the answer with the immutable native completion and applies the same
|
|
3718
|
+
`agree_min` and `alone_min` promotion policy. This initial SDK check uses **one independent native turn** (`n: 1`),
|
|
3719
|
+
not the server-run agent's historical replay set. Agreement is whole-answer equality (JSON values or trimmed text), or equality of the owner's
|
|
3720
|
+
configured `agree_on` fields; there is no semantic model grader on this path. A paraphrase can therefore be held even
|
|
3721
|
+
when a person would consider it equivalent.
|
|
3722
|
+
|
|
3723
|
+
A start reserves a check only on a turn that can be its baseline: a JSON object task must pass the draft's input
|
|
3724
|
+
schema (a prose task's input is resolved by the bridge), and a start whose task or instructions held a protected value
|
|
3725
|
+
reserves nothing. A reserved turn that still cannot be the baseline (cancelled or failed, incomplete, redacted or
|
|
3726
|
+
workflow-assisted evidence, no `workflow_check` report, or a shadow that `failed` or `skipped_write`) gives the
|
|
3727
|
+
reservation back: the record stays `replaying` with no `runs`, counts it in `check.released`, and the next turn the
|
|
3728
|
+
draft takes is checked. The fifth given-back turn stops the check with nothing checked (no recompile). A turn the
|
|
3729
|
+
backend never completes within an hour is decided as one failed input through the same check, so its hold asks the
|
|
3730
|
+
one recompile and a recompile's check that ends the same way stops. Connected checks' records say `via: "sdk"`;
|
|
3731
|
+
`check.fresh_reads` counts the shadow's `shadowReadFallback` reads.
|
|
3732
|
+
|
|
3733
|
+
Concurrent starts reserve at most one check per workflow; retries keep the same reservation, and a late report cannot
|
|
3734
|
+
replace a recorded decision.
|
|
3735
|
+
An older checked champion can still serve while a newer revision is checking or held, except on the independent
|
|
3736
|
+
check turn itself. Learning Off returns neither workflows nor a check. Without a workflow bridge the application gets
|
|
3737
|
+
no workflow to execute. The application's tools, model callbacks and credentials stay in its process; the server receives
|
|
3738
|
+
evidence and the shadow result through the run-scoped SDK credential.
|
|
3739
|
+
|
|
3670
3740
|
The run's `learning` (on `GET /runs/{run_id}`, and `{state, reason, detail}` in run lists, the detail cut to 140
|
|
3671
3741
|
characters and no time) says how it went: `seeded`, then `reflecting` during its end step, and `merged`, or `dropped`
|
|
3672
3742
|
with a reason from a closed list (`seed_failed`, `no_budget`, `unknown_cost`, `cancelled`, `crashed`, `reflect_failed`,
|
package/dist/acp-package.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AdapterFacts, AgentAdapter } from "@parcha/agentrun-kernel";
|
|
2
|
+
import type { AcpRecipe } from "@parcha/agentrun-harness-acp";
|
|
2
3
|
export declare const ACP_PACKAGE = "@parcha/agentrun-harness-acp";
|
|
3
4
|
/** One platform's release of an ACP agent, as the pin holds it (the package's AcpArchivePin). */
|
|
4
5
|
export type AcpRelease = {
|
|
@@ -37,16 +38,33 @@ export type AcpPackage = {
|
|
|
37
38
|
readonly maxToolCalls: number;
|
|
38
39
|
}): string;
|
|
39
40
|
cursorAdapter(options: Record<string, unknown>): AgentAdapter;
|
|
40
|
-
/** Cursor's
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
/** Cursor's recipe for a run: its launcher, the run's limits, and its model (none: Cursor's own default). */
|
|
42
|
+
cursorRecipe(options: {
|
|
43
|
+
command: string;
|
|
44
|
+
limits: {
|
|
45
|
+
readonly maxTurns: number;
|
|
46
|
+
readonly maxToolCalls: number;
|
|
47
|
+
};
|
|
48
|
+
model?: string;
|
|
49
|
+
}): AcpRecipe;
|
|
50
|
+
/** The folder Cursor was installed into, from its launcher's path and the pin's `cmd`; undefined when it is not there. */
|
|
51
|
+
cursorRootOf(binary: string, cmd: string): string | undefined;
|
|
46
52
|
/** The form a model id an ACP agent lists takes (Cursor's `gpt-5.4-nano[reasoning=medium]` among them). */
|
|
47
53
|
readonly MODEL_ID: RegExp;
|
|
48
54
|
acpPlatform(): string | undefined;
|
|
55
|
+
/** `pin`'s release for `platform` (default this host's) with its binary's digest, and its tree's when `tree`; undefined
|
|
56
|
+
* where none is pinned so. */
|
|
57
|
+
pinnedRelease(pin: AcpPin, platform?: string, tree?: boolean): (AcpRelease & {
|
|
58
|
+
readonly binarySha256: string;
|
|
59
|
+
}) | undefined;
|
|
49
60
|
gooseAdapter(options: Record<string, unknown>): AgentAdapter;
|
|
61
|
+
/** Any ACP agent's adapter, from its recipe (a harness module's, harness-table.ts acpEntry). */
|
|
62
|
+
acpAdapter(options: Record<string, unknown>): AgentAdapter;
|
|
63
|
+
/** The model proxy on Anthropic's Messages, Goose's policy (a recipe's under harness-check). */
|
|
64
|
+
gooseProxy(options: Record<string, unknown>): (session: unknown) => Promise<{
|
|
65
|
+
env: Record<string, string>;
|
|
66
|
+
close(): Promise<void>;
|
|
67
|
+
}>;
|
|
50
68
|
verifyPinnedBinary(path: string, sha256: string): void;
|
|
51
69
|
verifyPinnedBinaryAsync(path: string, sha256: string): Promise<void>;
|
|
52
70
|
treeDigest(root: string): Promise<string>;
|
package/dist/adapter-facts.d.ts
CHANGED
|
@@ -7,7 +7,3 @@ export declare const GOOSE_FACTS: AdapterFacts | undefined;
|
|
|
7
7
|
/** Cursor's facts (the same package's), or undefined where it is not beside serve. Listed, as Goose is, only while its
|
|
8
8
|
* owner has installed it; billed to the owner's Cursor plan (its wire `plan`), never to a model key of ours. */
|
|
9
9
|
export declare const CURSOR_FACTS: AdapterFacts | undefined;
|
|
10
|
-
/** Every adapter harness's facts: the built-in ones, then Goose's and Cursor's where their package is. */
|
|
11
|
-
export declare const EVERY_ADAPTER_FACTS: readonly AdapterFacts[];
|
|
12
|
-
/** The facts of the adapter harness `id`, built-in, Goose or Cursor; undefined for pi and for an id no adapter states. */
|
|
13
|
-
export declare const adapterFactsOf: (id: string) => AdapterFacts | undefined;
|
package/dist/adapter-facts.js
CHANGED
|
@@ -10,7 +10,4 @@ export const GOOSE_FACTS = acpPackage()?.gooseFacts;
|
|
|
10
10
|
/** Cursor's facts (the same package's), or undefined where it is not beside serve. Listed, as Goose is, only while its
|
|
11
11
|
* owner has installed it; billed to the owner's Cursor plan (its wire `plan`), never to a model key of ours. */
|
|
12
12
|
export const CURSOR_FACTS = acpPackage()?.cursorFacts;
|
|
13
|
-
|
|
14
|
-
export const EVERY_ADAPTER_FACTS = Object.freeze([...ADAPTER_FACTS, ...(GOOSE_FACTS ? [GOOSE_FACTS] : []), ...(CURSOR_FACTS ? [CURSOR_FACTS] : [])]);
|
|
15
|
-
/** The facts of the adapter harness `id`, built-in, Goose or Cursor; undefined for pi and for an id no adapter states. */
|
|
16
|
-
export const adapterFactsOf = (id) => EVERY_ADAPTER_FACTS.find((facts) => facts.id === id);
|
|
13
|
+
// A harness's facts by id are its table entry's (harness-table.ts factsOf), so a module's harness is read as a built-in is.
|
package/dist/adapters.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { AdapterFacts, AgentAdapter, SessionSpec } from "@parcha/agentrun-k
|
|
|
2
2
|
import { type HarnessPins, type LoadedSdk } from "./harness-install.js";
|
|
3
3
|
import { type HarnessEntry } from "./harness-table.js";
|
|
4
4
|
import type { ModelRef } from "./model.js";
|
|
5
|
+
import { type InstallFix } from "./provider.js";
|
|
5
6
|
import type { SkillCheck, SkillFiles } from "./skills.js";
|
|
6
7
|
/** Whether this server runs from npx's cache (`npx @parcha/agentrun-serve`), where there is no project to install a
|
|
7
8
|
* package into: npm keeps what npx runs under `<npm cache>/_npx/<hash>/node_modules`. Read from where this file is, not
|
|
@@ -53,6 +54,8 @@ export declare const HARNESS_LOG_EVENT = "harness";
|
|
|
53
54
|
* place, or one serve holds, never reaches the log.
|
|
54
55
|
*/
|
|
55
56
|
export declare function harnessLog(harness: string, env: NodeJS.ProcessEnv, write?: (line: string) => void): (message: string, fields?: Record<string, unknown>) => void;
|
|
57
|
+
/** What an adapter's own setup error says installing fixes, by the code its facts name for each: none for any other error. */
|
|
58
|
+
export declare function fixOf(facts: AdapterFacts, error: unknown): InstallFix | undefined;
|
|
56
59
|
/** The reason the start's probe gives for `error`: its message, ending with the restart (RESTART) where installing is
|
|
57
60
|
* the fix. A message whose install line is npx's has no `fix`: running that line is the restart. */
|
|
58
61
|
export declare function startReason(error: unknown): string;
|
|
@@ -148,18 +151,6 @@ export declare function codexOf(env: NodeJS.ProcessEnv, needs: AdapterNeeds, loa
|
|
|
148
151
|
* its wire's do (providerFor): serve's gateway (AGENT_MODEL_BASE_URL), OpenAI or OpenRouter, on the Responses API,
|
|
149
152
|
* through the adapter's proxy. */
|
|
150
153
|
export declare function opencodeOf(env: NodeJS.ProcessEnv, needs: AdapterNeeds, load?: () => Promise<typeof import("./harness-opencode/index.js")>, npx?: boolean): Promise<AgentAdapter>;
|
|
151
|
-
/** Goose's adapter (its package's gooseAdapter, acp-package.ts), on the binary its owner installed into the data's
|
|
152
|
-
* harnesses directory (`agentrun harness install goose`, harness-goose.ts) and from nowhere else: not there, or not the
|
|
153
|
-
* pinned binary, it says that command, and nothing here installs it. Its model goes where claude-agent's does (the host's
|
|
154
|
-
* Anthropic Messages provider, providerFor), through a model proxy of its own, priced and capped as every run is. */
|
|
155
|
-
export declare function gooseOf(env: NodeJS.ProcessEnv, needs: AdapterNeeds): Promise<AgentAdapter>;
|
|
156
|
-
/** Cursor's adapter (its package's cursorAdapter, acp-package.ts), on the release its owner installed into the data's
|
|
157
|
-
* harnesses directory (`agentrun harness install cursor`, harness-cursor.ts), its launcher and every file beside it the
|
|
158
|
-
* pinned ones, and on its owner's Cursor API key (CURSOR_API_KEY), which the adapter reads by name from `env` at each
|
|
159
|
-
* start and hands to Cursor's process alone. Its model is Cursor's, billed to the owner's Cursor plan: no proxy and no
|
|
160
|
-
* price of ours; the run stops at the owner's turn and tool-call limits (cursorLimitsOf). `cursor/default` runs Cursor's
|
|
161
|
-
* own default model. */
|
|
162
|
-
export declare function cursorOf(env: NodeJS.ProcessEnv, needs: AdapterNeeds): Promise<AgentAdapter>;
|
|
163
154
|
/** Why `harness` cannot run here, or undefined when it can (its entry's refusal): its package and pins, its provider, and
|
|
164
155
|
* the adapter's own check of the model `given` names (with none, a model of its wire's vendor: whether it runs here at
|
|
165
156
|
* all). `atStart`: asked by the start's probe, whose offers hold until a restart, so a reason installing fixes ends
|
package/dist/adapters.js
CHANGED
|
@@ -139,7 +139,7 @@ export function harnessLog(harness, env, write = (line) => void process.stderr.w
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
/** What an adapter's own setup error says installing fixes, by the code its facts name for each: none for any other error. */
|
|
142
|
-
function fixOf(facts, error) {
|
|
142
|
+
export function fixOf(facts, error) {
|
|
143
143
|
const code = error?.code;
|
|
144
144
|
return code === facts.install.codes.install ? "install" : code === facts.install.codes.pins ? "pins" : undefined;
|
|
145
145
|
}
|
|
@@ -369,75 +369,6 @@ export async function opencodeOf(env, needs, load = () => import("./harness-open
|
|
|
369
369
|
const skills = needs.skills && servedSkills(needs.skills);
|
|
370
370
|
return opencode.openCodeAdapter({ model: provider.modelId, provider: { origin: provider.origin, credential: provider.credential }, price: priceOf({ ...needs, model: provider.priceModel }), log: harnessLog(openCodeFacts.id, env), ...(needs.confine ? { confine: needs.confine } : {}), ...(skills?.length ? { skills } : {}), ...(standIn ? { standIn } : {}) });
|
|
371
371
|
}
|
|
372
|
-
/** Goose's adapter (its package's gooseAdapter, acp-package.ts), on the binary its owner installed into the data's
|
|
373
|
-
* harnesses directory (`agentrun harness install goose`, harness-goose.ts) and from nowhere else: not there, or not the
|
|
374
|
-
* pinned binary, it says that command, and nothing here installs it. Its model goes where claude-agent's does (the host's
|
|
375
|
-
* Anthropic Messages provider, providerFor), through a model proxy of its own, priced and capped as every run is. */
|
|
376
|
-
export async function gooseOf(env, needs) {
|
|
377
|
-
const [{ acpPackage }, { gooseMissing, GOOSE_ID }] = await Promise.all([import("./acp-package.js"), import("./harness-goose.js")]);
|
|
378
|
-
const acp = acpPackage();
|
|
379
|
-
// What no key fixes is said first, as claudeOf does: the binary, checked off the event loop.
|
|
380
|
-
const found = await gooseMissing(env);
|
|
381
|
-
if ("missing" in found)
|
|
382
|
-
throw new HarnessUnavailable(found.missing.message, acp && fixOf(acp.gooseFacts, found.missing));
|
|
383
|
-
if (!acp)
|
|
384
|
-
throw new HarnessUnavailable("Goose's adapter is not installed beside this server");
|
|
385
|
-
const facts = acp.gooseFacts;
|
|
386
|
-
const provider = providerFor(facts.wire, env, needs.model, GOOSE_ID);
|
|
387
|
-
// A person's Claude Code login is its CLI's alone (claude-login.ts): Goose's requests never go on it.
|
|
388
|
-
if (provider.login)
|
|
389
|
-
throw new HarnessUnavailable("Goose runs on a model key: Claude Code's login on this machine is its CLI's alone.", undefined, ["ANTHROPIC_API_KEY", "OPENROUTER_API_KEY"]);
|
|
390
|
-
try {
|
|
391
|
-
return acp.gooseAdapter({
|
|
392
|
-
binary: found.binary, sha256: found.sha256, model: provider.modelId,
|
|
393
|
-
provider: { origin: provider.origin, credential: provider.credential, ...(provider.auth ? { auth: provider.auth } : {}) },
|
|
394
|
-
price: priceOf({ ...needs, model: provider.priceModel }), log: harnessLog(GOOSE_ID, env),
|
|
395
|
-
...(needs.confine ? { confine: needs.confine } : {}),
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
catch (error) {
|
|
399
|
-
throw new HarnessUnavailable(error.message, fixOf(facts, error));
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
/** Cursor's adapter (its package's cursorAdapter, acp-package.ts), on the release its owner installed into the data's
|
|
403
|
-
* harnesses directory (`agentrun harness install cursor`, harness-cursor.ts), its launcher and every file beside it the
|
|
404
|
-
* pinned ones, and on its owner's Cursor API key (CURSOR_API_KEY), which the adapter reads by name from `env` at each
|
|
405
|
-
* start and hands to Cursor's process alone. Its model is Cursor's, billed to the owner's Cursor plan: no proxy and no
|
|
406
|
-
* price of ours; the run stops at the owner's turn and tool-call limits (cursorLimitsOf). `cursor/default` runs Cursor's
|
|
407
|
-
* own default model. */
|
|
408
|
-
export async function cursorOf(env, needs) {
|
|
409
|
-
const [{ acpPackage }, { cursorMissing, cursorLimitsOf, CURSOR_DEFAULT_MODEL, CURSOR_ID, CURSOR_KEY, CURSOR_PROVIDER }] = await Promise.all([import("./acp-package.js"), import("./harness-cursor.js")]);
|
|
410
|
-
const acp = acpPackage();
|
|
411
|
-
// What no key fixes is said first, as gooseOf does: the release, checked off the event loop.
|
|
412
|
-
const found = await cursorMissing(env);
|
|
413
|
-
if ("missing" in found)
|
|
414
|
-
throw new HarnessUnavailable(found.missing.message, acp && fixOf(acp.cursorFacts, found.missing));
|
|
415
|
-
if (!acp)
|
|
416
|
-
throw new HarnessUnavailable("Cursor's adapter is not installed beside this server");
|
|
417
|
-
const facts = acp.cursorFacts;
|
|
418
|
-
if (needs.model.provider !== CURSOR_PROVIDER)
|
|
419
|
-
throw new HarnessUnavailable(`${facts.label} runs Cursor's models, named ${CURSOR_PROVIDER}/<model-id>; the run's model is ${needs.model.provider}/${needs.model.modelId}.`);
|
|
420
|
-
if (!env[CURSOR_KEY])
|
|
421
|
-
throw new HarnessUnavailable(`${facts.label} runs on your Cursor API key, and ${CURSOR_KEY} is not set where AgentRun starts: set it there (it is handed to Cursor's runs alone), then restart AgentRun.`);
|
|
422
|
-
let limits;
|
|
423
|
-
try {
|
|
424
|
-
limits = cursorLimitsOf(acp, env);
|
|
425
|
-
}
|
|
426
|
-
catch (error) {
|
|
427
|
-
throw new HarnessUnavailable(error.message);
|
|
428
|
-
}
|
|
429
|
-
const model = needs.model.modelId === CURSOR_DEFAULT_MODEL ? undefined : needs.model.modelId;
|
|
430
|
-
try {
|
|
431
|
-
return acp.cursorAdapter({
|
|
432
|
-
binary: found.binary, limits, env, log: harnessLog(CURSOR_ID, env),
|
|
433
|
-
...(model ? { model } : {}),
|
|
434
|
-
...(needs.confine ? { confine: needs.confine } : {}),
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
catch (error) {
|
|
438
|
-
throw new HarnessUnavailable(error.message, fixOf(facts, error));
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
372
|
/** Why `harness` cannot run here, or undefined when it can (its entry's refusal): its package and pins, its provider, and
|
|
442
373
|
* the adapter's own check of the model `given` names (with none, a model of its wire's vendor: whether it runs here at
|
|
443
374
|
* all). `atStart`: asked by the start's probe, whose offers hold until a restart, so a reason installing fixes ends
|
package/dist/answer-json.d.ts
CHANGED
|
@@ -53,4 +53,14 @@ export declare function answerAsServed(output: string, schema: unknown): {
|
|
|
53
53
|
} | {
|
|
54
54
|
why: string;
|
|
55
55
|
};
|
|
56
|
+
/** The output-schema annotation naming the top-level fields of an answer that its agent's next run reads back: a list of
|
|
57
|
+
* the root's property names (a scheduled watch's `seen`, a digest's `open_urgent`). The runtime reads it alone: when a
|
|
58
|
+
* trigger's last completed result is too large to hand whole, its next run is handed those fields
|
|
59
|
+
* (trigger-targets.ts previousResultOf). Never a tool's schema keyword: dsl submitParameters leaves it out. */
|
|
60
|
+
export declare const X_CARRIED = "x-carried";
|
|
61
|
+
/** Why `schema`'s `x-carried` is not a list of unique names of the root's `properties`; undefined when it is, or absent. */
|
|
62
|
+
export declare function carriedProblem(schema: Record<string, unknown>): string | undefined;
|
|
63
|
+
/** The fields `schema` names in `x-carried`, when it names a list of them (one saved before the save checked it may not):
|
|
64
|
+
* undefined for none. */
|
|
65
|
+
export declare function carriedFields(schema: unknown): readonly string[] | undefined;
|
|
56
66
|
export {};
|
package/dist/answer-json.js
CHANGED
|
@@ -138,3 +138,27 @@ export function answerAsServed(output, schema) {
|
|
|
138
138
|
const problems = compiled.check(shapes.find(isObject) ?? shapes[0]);
|
|
139
139
|
return { why: `its answer does not meet the agent's output schema: ${problems.slice(0, 3).join("; ")}` };
|
|
140
140
|
}
|
|
141
|
+
/** The output-schema annotation naming the top-level fields of an answer that its agent's next run reads back: a list of
|
|
142
|
+
* the root's property names (a scheduled watch's `seen`, a digest's `open_urgent`). The runtime reads it alone: when a
|
|
143
|
+
* trigger's last completed result is too large to hand whole, its next run is handed those fields
|
|
144
|
+
* (trigger-targets.ts previousResultOf). Never a tool's schema keyword: dsl submitParameters leaves it out. */
|
|
145
|
+
export const X_CARRIED = "x-carried";
|
|
146
|
+
/** Why `schema`'s `x-carried` is not a list of unique names of the root's `properties`; undefined when it is, or absent. */
|
|
147
|
+
export function carriedProblem(schema) {
|
|
148
|
+
const carried = schema[X_CARRIED];
|
|
149
|
+
if (carried === undefined)
|
|
150
|
+
return undefined;
|
|
151
|
+
if (!Array.isArray(carried) || !carried.every((name) => typeof name === "string" && name !== ""))
|
|
152
|
+
return "is a list of the names of the root's properties";
|
|
153
|
+
if (new Set(carried).size !== carried.length)
|
|
154
|
+
return "names a property twice";
|
|
155
|
+
const properties = isObject(schema.properties) ? schema.properties : {};
|
|
156
|
+
const unknown = carried.filter((name) => !Object.hasOwn(properties, name));
|
|
157
|
+
return unknown.length ? `names ${unknown.map((name) => JSON.stringify(name)).join(", ")}, which the root's properties have no field for` : undefined;
|
|
158
|
+
}
|
|
159
|
+
/** The fields `schema` names in `x-carried`, when it names a list of them (one saved before the save checked it may not):
|
|
160
|
+
* undefined for none. */
|
|
161
|
+
export function carriedFields(schema) {
|
|
162
|
+
const carried = isObject(schema) ? schema[X_CARRIED] : undefined;
|
|
163
|
+
return Array.isArray(carried) && carried.length > 0 && carried.every((name) => typeof name === "string") ? carried : undefined;
|
|
164
|
+
}
|
package/dist/api-only.d.ts
CHANGED
|
@@ -7,13 +7,16 @@ export declare const API_ONLY_ENV = "AGENTRUN_API_ONLY";
|
|
|
7
7
|
* - listComputers, getWorkspaceArchil: the two reads a backend checks before it launches, naming keys and never a
|
|
8
8
|
* value; their writes and tests stay the console's.
|
|
9
9
|
* - getAgentArchil, deleteAgentArchil, deleteAgent: an agent's disk and the delete of an agent its inline runs made,
|
|
10
|
-
* which the backend that made it sends.
|
|
10
|
+
* which the backend that made it sends.
|
|
11
|
+
* - getRunComputer, takeOverRunComputer, handBackRunComputer, createRunComputerViewer: a run's computer, its take-over
|
|
12
|
+
* and hand-back, and its viewer credential's mint (viewer-credential.ts), by the server's token, the backend's own;
|
|
13
|
+
* the live page and socket take that credential. */
|
|
11
14
|
export declare const API_ONLY_ROUTES: ReadonlySet<string>;
|
|
12
15
|
/** Whether `env` turns the profile on: `1` or `true` on; unset, empty, `0` or `false` off. Any other value is refused in
|
|
13
16
|
* words (a TypeError), so a typo never leaves the console open on a server meant to be API-only. */
|
|
14
17
|
export declare function apiOnlyFrom(env?: NodeJS.ProcessEnv): boolean;
|
|
15
18
|
/** Whether an API-only server serves `method` on `raw` (the path as sent, its query cut): a /v2 path one of
|
|
16
|
-
* API_ONLY_ROUTES matches for that method (HEAD as GET). */
|
|
19
|
+
* API_ONLY_ROUTES matches for that method (HEAD as GET), or a GET of a run's computer live view. */
|
|
17
20
|
export declare function servedApiOnly(routes: readonly Route[], method: string | undefined, raw: string): boolean;
|
|
18
21
|
/** The refusal's words for `raw` on an API-only server. */
|
|
19
22
|
export declare const apiOnlyRefusal: (raw: string) => string;
|
package/dist/api-only.js
CHANGED
|
@@ -6,9 +6,13 @@ export const API_ONLY_ENV = "AGENTRUN_API_ONLY";
|
|
|
6
6
|
* - listComputers, getWorkspaceArchil: the two reads a backend checks before it launches, naming keys and never a
|
|
7
7
|
* value; their writes and tests stay the console's.
|
|
8
8
|
* - getAgentArchil, deleteAgentArchil, deleteAgent: an agent's disk and the delete of an agent its inline runs made,
|
|
9
|
-
* which the backend that made it sends.
|
|
9
|
+
* which the backend that made it sends.
|
|
10
|
+
* - getRunComputer, takeOverRunComputer, handBackRunComputer, createRunComputerViewer: a run's computer, its take-over
|
|
11
|
+
* and hand-back, and its viewer credential's mint (viewer-credential.ts), by the server's token, the backend's own;
|
|
12
|
+
* the live page and socket take that credential. */
|
|
10
13
|
export const API_ONLY_ROUTES = new Set([
|
|
11
14
|
"createRun", "createInlineRun", "getComputerDaemon",
|
|
15
|
+
"getRunComputer", "takeOverRunComputer", "handBackRunComputer", "createRunComputerViewer",
|
|
12
16
|
"listComputers", "getWorkspaceArchil",
|
|
13
17
|
"getAgentArchil", "deleteAgentArchil", "deleteAgent",
|
|
14
18
|
"getRun", "listRuns", "listAllRuns", "getTimeline",
|
|
@@ -27,13 +31,17 @@ export function apiOnlyFrom(env = process.env) {
|
|
|
27
31
|
return false;
|
|
28
32
|
throw new TypeError(`${API_ONLY_ENV} is 1 (serve the run API only) or 0 (the whole server), not ${JSON.stringify(env[API_ONLY_ENV])}`);
|
|
29
33
|
}
|
|
34
|
+
/** A run's computer live view: its page, files and socket, which take the viewer credential alone here (server.ts). */
|
|
35
|
+
const COMPUTER_LIVE = /^\/v2\/runs\/[^/]+\/computer\/live\//;
|
|
30
36
|
/** Whether an API-only server serves `method` on `raw` (the path as sent, its query cut): a /v2 path one of
|
|
31
|
-
* API_ONLY_ROUTES matches for that method (HEAD as GET). */
|
|
37
|
+
* API_ONLY_ROUTES matches for that method (HEAD as GET), or a GET of a run's computer live view. */
|
|
32
38
|
export function servedApiOnly(routes, method, raw) {
|
|
33
39
|
if (!raw.startsWith("/v2/"))
|
|
34
40
|
return false;
|
|
35
41
|
const path = raw.slice(3);
|
|
36
42
|
const asked = method === "HEAD" ? "GET" : method;
|
|
43
|
+
if (asked === "GET" && COMPUTER_LIVE.test(raw))
|
|
44
|
+
return true;
|
|
37
45
|
return routes.some((route) => API_ONLY_ROUTES.has(route.name) && route.method === asked && route.pattern.test(path));
|
|
38
46
|
}
|
|
39
47
|
/** The refusal's words for `raw` on an API-only server. */
|
package/dist/browser-live.d.ts
CHANGED
|
@@ -101,13 +101,18 @@ export declare function serveViewerFile(req: IncomingMessage, res: ServerRespons
|
|
|
101
101
|
/** How often an open viewer's session is checked again. A reset-password run in another process and a cookie past its end
|
|
102
102
|
* are seen by no call in this one, so a viewer they end closes within this. */
|
|
103
103
|
export declare const LIVE_RECHECK_MS = 2000;
|
|
104
|
-
/** The viewers' sockets open now, each with the check of
|
|
105
|
-
*
|
|
106
|
-
*
|
|
104
|
+
/** The viewers' sockets open now, each with the check of what let it in: the owner's sessions, or on an API-only server
|
|
105
|
+
* the viewer credential's run not ended (viewer-credential.ts), read from the store. A socket whose check no longer holds,
|
|
106
|
+
* or fails, is destroyed, which takes its way to the run with it (proxyLiveUpgrade): at once on `recheck()` (a sign-out or
|
|
107
|
+
* a password set in this process; a store read as soon as it answers), else within LIVE_RECHECK_MS. A socket has one
|
|
108
|
+
* store read in flight at most: a slow store is not asked again for it until that read answers. The timer runs only
|
|
109
|
+
* while a viewer is open. */
|
|
107
110
|
export declare class OpenViewers {
|
|
108
111
|
private readonly open;
|
|
112
|
+
/** The sockets whose store read is in flight. */
|
|
113
|
+
private readonly reading;
|
|
109
114
|
private timer;
|
|
110
|
-
watch(socket: Duplex, admitted: () => boolean): void;
|
|
115
|
+
watch(socket: Duplex, admitted: () => boolean | Promise<boolean>): void;
|
|
111
116
|
recheck(): void;
|
|
112
117
|
/** The server closes: every viewer goes. */
|
|
113
118
|
close(): void;
|