@parcha/agentrun-serve 0.1.0-beta.41 → 0.1.0-beta.42
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 +53 -0
- package/NOTICE +2 -0
- package/README.md +77 -12
- package/dist/agent-rows.d.ts +1 -1
- package/dist/agents-store.js +3 -1
- package/dist/calendar/address.d.ts +49 -0
- package/dist/calendar/address.js +153 -0
- package/dist/calendar/fetch.d.ts +24 -0
- package/dist/calendar/fetch.js +146 -0
- package/dist/calendar/ics-faux.d.ts +39 -0
- package/dist/calendar/ics-faux.js +236 -0
- package/dist/calendar/labels.d.ts +3 -0
- package/dist/calendar/labels.js +61 -0
- package/dist/calendar/names.d.ts +52 -0
- package/dist/calendar/names.js +54 -0
- package/dist/calendar/parse.d.ts +108 -0
- package/dist/calendar/parse.js +625 -0
- package/dist/calendar/routes.d.ts +17 -0
- package/dist/calendar/routes.js +81 -0
- package/dist/calendar/tools.d.ts +23 -0
- package/dist/calendar/tools.js +124 -0
- package/dist/cli.js +3 -1
- package/dist/computer-record.d.ts +55 -0
- package/dist/computer-record.js +315 -0
- package/dist/computer-setting.d.ts +1 -0
- package/dist/computer-setting.js +15 -2
- package/dist/computers.js +2 -14
- package/dist/console/assets/index-DYJ_wj27.js +711 -0
- package/dist/console/index.html +1 -1
- package/dist/eval-feed.d.ts +2 -2
- package/dist/eval-feed.js +9 -5
- package/dist/feed/parse.d.ts +3 -2
- package/dist/feed/parse.js +9 -18
- package/dist/feed/pointer.d.ts +2 -0
- package/dist/feed/pointer.js +17 -0
- package/dist/file-types.js +1 -0
- package/dist/host-command.d.ts +3 -0
- package/dist/host-command.js +18 -0
- package/dist/host.d.ts +3 -0
- package/dist/host.js +3 -0
- package/dist/learn/check.d.ts +14 -0
- package/dist/learn/check.js +194 -14
- package/dist/learn/compile.d.ts +48 -27
- package/dist/learn/compile.js +134 -101
- package/dist/learn/promote.d.ts +61 -5
- package/dist/learn/promote.js +12 -2
- package/dist/learning-setting.d.ts +23 -0
- package/dist/learning-setting.js +51 -0
- package/dist/learning-words.d.ts +3 -0
- package/dist/learning-words.js +3 -0
- package/dist/learning.d.ts +3 -2
- package/dist/learning.js +5 -3
- package/dist/mcp-oauth.d.ts +8 -0
- package/dist/mcp-oauth.js +7 -0
- package/dist/mcp-private-hosts.d.ts +13 -0
- package/dist/mcp-private-hosts.js +16 -0
- package/dist/openapi.d.ts +1 -0
- package/dist/openapi.js +105 -9
- package/dist/run-files.d.ts +6 -2
- package/dist/run-files.js +29 -7
- package/dist/run-learning-served.d.ts +1 -1
- package/dist/run-reads-over-store.d.ts +5 -1
- package/dist/run-reads-over-store.js +8 -4
- package/dist/run-recordings.d.ts +20 -0
- package/dist/run-recordings.js +133 -0
- package/dist/runner/adapter-loop.d.ts +1 -1
- package/dist/runner/adapter-loop.js +3 -6
- package/dist/runner/adapter-run-spec.d.ts +16 -1
- package/dist/runner/adapter-run-spec.js +20 -6
- package/dist/runner/beside.js +1 -1
- package/dist/runner/cli-run-spec.js +10 -7
- package/dist/runner/feedback-round.d.ts +9 -25
- package/dist/runner/feedback-round.js +22 -40
- package/dist/runner/learning-end.d.ts +17 -7
- package/dist/runner/learning-end.js +79 -53
- package/dist/runner/main.d.ts +11 -0
- package/dist/runner/main.js +29 -2
- package/dist/runner/mcp-run.d.ts +2 -2
- package/dist/runner/promotion.d.ts +36 -4
- package/dist/runner/promotion.js +280 -20
- package/dist/runner/reflect-hook.d.ts +5 -0
- package/dist/runner/reflect-hook.js +22 -14
- package/dist/runner/store-secrets.js +3 -1
- package/dist/runner/workflow-first.d.ts +0 -6
- package/dist/runner/workflow-first.js +7 -13
- package/dist/runs-over-store.d.ts +1 -1
- package/dist/sdk/runs.js +2 -1
- package/dist/secrets.js +2 -2
- package/dist/server.d.ts +4 -3
- package/dist/server.js +72 -11
- package/dist/store/agent-body.d.ts +5 -3
- package/dist/store/agent-body.js +14 -10
- package/dist/store-reads/learning.d.ts +1 -1
- package/dist/store-reads/loop.d.ts +1 -0
- package/dist/store-reads/loop.js +14 -4
- package/dist/store-view.d.ts +5 -0
- package/dist/store-view.js +4 -0
- package/dist/template-eval.d.ts +7 -0
- package/dist/template-eval.js +54 -6
- package/dist/templates.d.ts +3 -1
- package/dist/templates.js +14 -1
- package/dist/timeline/computer.js +2 -1
- package/dist/tool-list.js +1 -0
- package/dist/tools.d.ts +7 -0
- package/dist/tools.js +11 -0
- package/dist/trigger-feed.js +67 -18
- package/dist/validate.js +7 -2
- package/dist/workspace/computer-for-claim.d.ts +7 -0
- package/dist/workspace/computer-for-claim.js +12 -2
- package/dist/workspace/paths.d.ts +4 -0
- package/dist/workspace/paths.js +9 -0
- package/dist/workspace/resolve-computer.d.ts +3 -1
- package/launcher/agentrun-serve +31 -24
- package/package.json +10 -9
- package/templates/README.md +11 -2
- package/dist/console/assets/index-COGhx_2Z.js +0 -711
|
@@ -10,7 +10,8 @@ export type { ComputerSettingKind, KindCapabilities, ProviderEntry, ShellPlace }
|
|
|
10
10
|
/** An agent's computer setting. `image`: the one of the provider's configurations it selects; absent, the default. A
|
|
11
11
|
* sandbox's may ask for GPUs. `persistent`: the agent keeps its own computer between runs (agent-computer.ts). A
|
|
12
12
|
* desktop's or a phone's `surface` and `exec` go to the run's tools on the RunComputer (run-tools.ts); `exec: false`
|
|
13
|
-
* also mounts no folder in it and gives the run no shell.
|
|
13
|
+
* also mounts no folder in it and gives the run no shell. A desktop's or a phone's `record`: the claim records its
|
|
14
|
+
* screen (computer-for-claim.ts, computer-record.ts). */
|
|
14
15
|
export type ComputerSetting = {
|
|
15
16
|
readonly kind: string;
|
|
16
17
|
readonly provider?: string | null;
|
|
@@ -19,6 +20,7 @@ export type ComputerSetting = {
|
|
|
19
20
|
readonly persistent?: boolean;
|
|
20
21
|
readonly surface?: "code" | "tools";
|
|
21
22
|
readonly exec?: boolean;
|
|
23
|
+
readonly record?: boolean;
|
|
22
24
|
};
|
|
23
25
|
/** Whether a computer (or its setting) takes its agent's programs away: `exec: false`. Only a desktop or a phone takes
|
|
24
26
|
* `exec` (computer-setting.ts refuses it on any other kind at save), so a computer without programs is one of those. */
|
package/launcher/agentrun-serve
CHANGED
|
@@ -8,10 +8,13 @@
|
|
|
8
8
|
# Each secret named below that is set goes into one pipe as NAME=VALUE and a NUL, AGENTRUN_SECRETS_LEN bytes in all,
|
|
9
9
|
# on fd AGENTRUN_SECRETS_FD; the server reads exactly that many bytes first thing and closes the pipe. First, each
|
|
10
10
|
# secret moves out of the environment into this shell's own memory, so no process it starts (mktemp, mkfifo, rm, env)
|
|
11
|
-
# inherits one; only this launcher's own initial environment,
|
|
12
|
-
# pipe is a FIFO whose name is gone before any secret is written, and only this shell writes it, with its
|
|
13
|
-
# printf
|
|
14
|
-
#
|
|
11
|
+
# inherits one; only this launcher's own initial environment ever held them, and its writer's, a fork of it (below). The
|
|
12
|
+
# pipe is a FIFO whose name is gone before any secret is written, and only that fork of this shell writes it, with its
|
|
13
|
+
# builtin printf, as the server reads, so the secrets may come to any length; it is gone once the last byte is in the
|
|
14
|
+
# pipe, or at its next write once the server has exited without reading. `env -u` drops every name from what COMMAND
|
|
15
|
+
# inherits too. The condition:
|
|
16
|
+
# this runs before any run's process exists. A process of the same user started earlier could open the FIFO while it is
|
|
17
|
+
# named.
|
|
15
18
|
#
|
|
16
19
|
# AGENTRUN_SEAL_KEY, the key the server keeps every secret under (src/seal-key.ts), is one of them. Not set, the
|
|
17
20
|
# server keeps its own in seal/seal.key in its data directory, beside the store, made at its first start: this launcher
|
|
@@ -25,8 +28,7 @@
|
|
|
25
28
|
#
|
|
26
29
|
# ARCHIL_API_KEY, the Archil account key, and every computer provider's key from E2B_API_KEY to MODAL_TOKEN_SECRET
|
|
27
30
|
# (src/computer-keys.ts COMPUTER_KEY_NAMES): only the server's and the runner's own code reads one (the Archil claim,
|
|
28
|
-
# a computer's create), and no run is handed one.
|
|
29
|
-
# pipe holds (below), so save it in Settings -> Computers instead, or use an Ed25519 key.
|
|
31
|
+
# a computer's create), and no run is handed one.
|
|
30
32
|
#
|
|
31
33
|
# After MODAL_TOKEN_SECRET, the keys of pi-ai's other providers, which a pi run's model may need (GEMINI_API_KEY,
|
|
32
34
|
# DEEPSEEK_API_KEY, Bedrock's AWS keys, ...): the server holds each, and a run's process gets one over its pipe only when
|
|
@@ -34,7 +36,7 @@
|
|
|
34
36
|
# here. Any other variable named like a key (a KEY, TOKEN, SECRET, PASSWORD, PASSWD, PASS, PAT, CREDENTIAL, CREDENTIALS or
|
|
35
37
|
# DSN segment, or a last PWD after another) stays in the server's environment, as this list does not take it, and in no
|
|
36
38
|
# run's: name it here to keep it from the server's too.
|
|
37
|
-
SECRETS='AGENTRUN_TOKEN AGENTRUN_TOKENS AGENTRUN_API_KEY AGENTRUN_STORE_URL AGENT_MODEL_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY BROWSERBASE_API_KEY BROWSERBASE_PROJECT_ID KERNEL_API_KEY OPENROUTER_API_KEY TYPESAFE_API_KEY PARALLEL_API_KEY MONID_API_KEY AGENTRUN_SEAL_KEY ARCHIL_API_KEY E2B_API_KEY ORGO_API_KEY PHONE_HARNESS_API_KEY AGENT37_API_KEY AGENT37_SSH_KEY DAYTONA_API_KEY MODAL_TOKEN_ID MODAL_TOKEN_SECRET ANTHROPIC_AUTH_TOKEN ANTHROPIC_OAUTH_TOKEN AI_GATEWAY_API_KEY ANT_LING_API_KEY AWS_ACCESS_KEY_ID AWS_BEARER_TOKEN_BEDROCK AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AZURE_OPENAI_API_KEY BASETEN_API_KEY CEREBRAS_API_KEY CLOUDFLARE_API_KEY COPILOT_GITHUB_TOKEN DEEPSEEK_API_KEY FIREWORKS_API_KEY GEMINI_API_KEY GOOGLE_CLOUD_API_KEY GROQ_API_KEY HF_TOKEN KIMI_API_KEY META_API_KEY MINIMAX_API_KEY MINIMAX_CN_API_KEY MISTRAL_API_KEY MOONSHOT_API_KEY NVIDIA_API_KEY OPENCODE_API_KEY QWEN_TOKEN_PLAN_API_KEY QWEN_TOKEN_PLAN_CN_API_KEY RADIUS_API_KEY TOGETHER_API_KEY XAI_API_KEY XIAOMI_API_KEY XIAOMI_TOKEN_PLAN_AMS_API_KEY XIAOMI_TOKEN_PLAN_CN_API_KEY XIAOMI_TOKEN_PLAN_SGP_API_KEY ZAI_API_KEY ZAI_CODING_CN_API_KEY'
|
|
39
|
+
SECRETS='AGENTRUN_TOKEN AGENTRUN_TOKENS AGENTRUN_API_KEY AGENTRUN_STORE_URL AGENT_MODEL_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY BROWSERBASE_API_KEY BROWSERBASE_PROJECT_ID KERNEL_API_KEY OPENROUTER_API_KEY TYPESAFE_API_KEY PARALLEL_API_KEY MONID_API_KEY AGENTRUN_SEAL_KEY ARCHIL_API_KEY E2B_API_KEY ORGO_API_KEY PHONE_HARNESS_API_KEY AGENT37_API_KEY AGENT37_SSH_KEY DAYTONA_API_KEY BOXD_API_KEY MORPH_API_KEY CLOUDFLARE_RELAY_TOKEN FLY_API_TOKEN MODAL_TOKEN_ID MODAL_TOKEN_SECRET ANTHROPIC_AUTH_TOKEN ANTHROPIC_OAUTH_TOKEN AI_GATEWAY_API_KEY ANT_LING_API_KEY AWS_ACCESS_KEY_ID AWS_BEARER_TOKEN_BEDROCK AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AZURE_OPENAI_API_KEY BASETEN_API_KEY CEREBRAS_API_KEY CLOUDFLARE_API_KEY COPILOT_GITHUB_TOKEN DEEPSEEK_API_KEY FIREWORKS_API_KEY GEMINI_API_KEY GOOGLE_CLOUD_API_KEY GROQ_API_KEY HF_TOKEN KIMI_API_KEY META_API_KEY MINIMAX_API_KEY MINIMAX_CN_API_KEY MISTRAL_API_KEY MOONSHOT_API_KEY NVIDIA_API_KEY OPENCODE_API_KEY QWEN_TOKEN_PLAN_API_KEY QWEN_TOKEN_PLAN_CN_API_KEY RADIUS_API_KEY TOGETHER_API_KEY XAI_API_KEY XIAOMI_API_KEY XIAOMI_TOKEN_PLAN_AMS_API_KEY XIAOMI_TOKEN_PLAN_CN_API_KEY XIAOMI_TOKEN_PLAN_SGP_API_KEY ZAI_API_KEY ZAI_CODING_CN_API_KEY'
|
|
38
40
|
set -eu
|
|
39
41
|
# Each secret out of the environment and into an unexported variable of this shell (agentrun_secret_<NAME>).
|
|
40
42
|
for name in $SECRETS; do
|
|
@@ -53,14 +55,18 @@ locale=${LC_ALL-}
|
|
|
53
55
|
locale_set=${LC_ALL+x}
|
|
54
56
|
LC_ALL=C
|
|
55
57
|
|
|
56
|
-
# Every other
|
|
58
|
+
# Every other program this launcher runs, it runs here, before it writes a secret.
|
|
57
59
|
dir=$(mktemp -d "${TMPDIR:-/tmp}/agentrun-serve.XXXXXX")
|
|
58
60
|
mkfifo -m 600 "$dir/secrets"
|
|
59
|
-
|
|
61
|
+
# The server's end read-only on 3, the writer's write-only on 4: once the server is gone, no read end is left, and the
|
|
62
|
+
# writer's next write fails (EPIPE) rather than wait. Opened read-write first, so neither one-way open waits for the other.
|
|
63
|
+
exec 4<>"$dir/secrets"
|
|
64
|
+
exec 3<"$dir/secrets"
|
|
65
|
+
exec 4>"$dir/secrets"
|
|
60
66
|
rm -f "$dir/secrets"
|
|
61
67
|
rmdir "$dir"
|
|
62
68
|
|
|
63
|
-
# From here to the exec: this shell's builtins only.
|
|
69
|
+
# From here to the exec: this shell's builtins and forks of it only.
|
|
64
70
|
total=0
|
|
65
71
|
for name in $SECRETS; do
|
|
66
72
|
eval "given=\${agentrun_secret_$name+x}"
|
|
@@ -68,20 +74,21 @@ for name in $SECRETS; do
|
|
|
68
74
|
eval "value=\${agentrun_secret_$name}"
|
|
69
75
|
total=$((total + ${#name} + ${#value} + 2))
|
|
70
76
|
done
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
for name in $SECRETS; do
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
# The writer: a fork of this shell, so still its builtin printf, with the launcher's command line, which holds no secret.
|
|
78
|
+
# It writes beside the server rather than before it, so a pipe of any size is enough. It holds no read end of the pipe and none of the caller's stdio (a
|
|
79
|
+
# caller waiting for its output to end waits for the server alone). Forked twice, it belongs to init (in the image, tini)
|
|
80
|
+
# and is reaped there, never left a zombie under a server that reaps only its own children.
|
|
81
|
+
(
|
|
82
|
+
(
|
|
83
|
+
for name in $SECRETS; do
|
|
84
|
+
eval "given=\${agentrun_secret_$name+x}"
|
|
85
|
+
[ -n "$given" ] || continue
|
|
86
|
+
eval "value=\${agentrun_secret_$name}"
|
|
87
|
+
printf '%s=%s\000' "$name" "$value" >&4 || exit 1
|
|
88
|
+
done
|
|
89
|
+
) &
|
|
90
|
+
) 3<&- </dev/null >/dev/null 2>&1
|
|
91
|
+
exec 4>&-
|
|
85
92
|
if [ -n "$locale_set" ]; then LC_ALL=$locale; else unset LC_ALL; fi
|
|
86
93
|
|
|
87
94
|
if [ "${1-}" = "--" ]; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-serve",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.42",
|
|
4
4
|
"description": "The AgentRun server: the /v2 API and console over one store, with runners that run your agents; the deployable process of the AgentRun platform.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentrun",
|
|
@@ -54,20 +54,21 @@
|
|
|
54
54
|
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
55
55
|
"@modelcontextprotocol/client": "2.4.0",
|
|
56
56
|
"@modelcontextprotocol/server": "2.4.0",
|
|
57
|
-
"@parcha/agentrun-computer": "0.1.0-beta.
|
|
58
|
-
"@parcha/agentrun-decisions": "0.1.0-beta.
|
|
59
|
-
"@parcha/agentrun-dsl": "0.1.0-beta.
|
|
60
|
-
"@parcha/agentrun-harness-claude": "0.1.0-beta.
|
|
61
|
-
"@parcha/agentrun-harness-codex": "0.1.0-beta.
|
|
62
|
-
"@parcha/agentrun-jev": "0.1.0-beta.
|
|
63
|
-
"@parcha/agentrun-kernel": "0.1.0-beta.
|
|
64
|
-
"@parcha/pi-browser": "0.1.0-beta.
|
|
57
|
+
"@parcha/agentrun-computer": "0.1.0-beta.42",
|
|
58
|
+
"@parcha/agentrun-decisions": "0.1.0-beta.42",
|
|
59
|
+
"@parcha/agentrun-dsl": "0.1.0-beta.42",
|
|
60
|
+
"@parcha/agentrun-harness-claude": "0.1.0-beta.42",
|
|
61
|
+
"@parcha/agentrun-harness-codex": "0.1.0-beta.42",
|
|
62
|
+
"@parcha/agentrun-jev": "0.1.0-beta.42",
|
|
63
|
+
"@parcha/agentrun-kernel": "0.1.0-beta.42",
|
|
64
|
+
"@parcha/pi-browser": "0.1.0-beta.42",
|
|
65
65
|
"@secretlint/core": "13.1.0",
|
|
66
66
|
"@secretlint/profiler": "13.1.0",
|
|
67
67
|
"@secretlint/secretlint-rule-preset-recommend": "13.1.0",
|
|
68
68
|
"croner": "11.0.0",
|
|
69
69
|
"disk": "1.12.0",
|
|
70
70
|
"fast-xml-parser": "4.5.7",
|
|
71
|
+
"ical.js": "2.2.1",
|
|
71
72
|
"imapflow": "2.11.0",
|
|
72
73
|
"ipaddr.js": "2.5.0",
|
|
73
74
|
"mailparser": "3.14.3",
|
package/templates/README.md
CHANGED
|
@@ -103,7 +103,7 @@ Each `evals/<case>/` is one test of the package's agent. No eval runs on the ser
|
|
|
103
103
|
list), `mcp` (an `mcp` need's toolkit to a fixture file in the case that fakes it), `learning` (a folder of notes in the case
|
|
104
104
|
the agent starts with: `MEMORY.md` and its notes), `web` (fakes `web_search` and `web_fetch` for the case's runs),
|
|
105
105
|
`monid` (fakes the package's monid endpoints for the case's runs), `now` (the case's clock), `email` (a fake mailbox
|
|
106
|
-
for the case's runs).
|
|
106
|
+
for the case's runs), `calendar` (a fake calendar for the case's runs).
|
|
107
107
|
- `web: unavailable`: every `web_search` answers with the words a rate-limited free search answers with, and every
|
|
108
108
|
`web_fetch` fails as a page that never answers does; no call reaches the network. `web:` a fixture file in the case
|
|
109
109
|
answers from that file instead:
|
|
@@ -165,6 +165,15 @@ Each `evals/<case>/` is one test of the package's agent. No eval runs on the ser
|
|
|
165
165
|
in_reply_to and text), the ones it moved or labelled (`message_id`, before and after, labels), and those it sent
|
|
166
166
|
(SMTP). The package's `tools` must name an email tool; only the eval's own server honours `email`, so a case with
|
|
167
167
|
it refuses `--server`.
|
|
168
|
+
- `calendar: fixtures/work.ics`, an iCalendar file in the case: a fake calendar server on this machine's loopback serves
|
|
169
|
+
it (with an ETag, as a provider does), and its address is saved as the server's calendar (Settings → Calendar) for
|
|
170
|
+
the case's runs and removed after them, so no run reads a real calendar. `calendar_events` reads it as it reads a
|
|
171
|
+
real one: repeating events expanded in the window (RRULE, RDATE, EXDATE), a moved or cancelled instance as the file
|
|
172
|
+
says, each event in its own time zone. The window's clock is the case's `now`, so a case that asks for "this week"
|
|
173
|
+
sets `now:`; without it, the real clock. Its graders see each `calendar_events` call with its arguments and its
|
|
174
|
+
answer (the events), as any call. The package's `tools` must name `calendar_events`; only the eval's own server
|
|
175
|
+
honours `calendar`, so a case with it refuses `--server`, and `--on-data` is refused while DIR's server keeps a
|
|
176
|
+
calendar, which the fake would replace.
|
|
168
177
|
- `feed: fixtures/feed.json`, a fixture file in the case: each run gets fake feeds of its own on this machine's
|
|
169
178
|
loopback, so no run reads a real feed. The first URL the package's feed trigger names (filled from the case's
|
|
170
179
|
`parameters`, as the apply fills it) is read from a fake serving the fixture's items; each other URL it names reads an
|
|
@@ -233,7 +242,7 @@ case's `max_cost_usd`, and each `llm` grade is a run of its own, capped at $0.50
|
|
|
233
242
|
| `--case NAME` | A case to run; repeat it. Without one, every case. |
|
|
234
243
|
| `--runs N` | Runs of each case, in place of each case's `runs`. |
|
|
235
244
|
| `--server URL` | Run on that server instead, with its token as the CLI finds one (`AGENTRUN_API_KEY`, the CLI's config, or the data directory's for the server on this machine). The token goes to the runner over the launcher's pipe and is never printed. |
|
|
236
|
-
| `--on-data DIR` | Run the eval's own server on DIR, a stopped server's data folder, in place of a temp one: the runs use what that server keeps (its ChatGPT sign-in, so a package is measured on the owner's plan), and every case's fakes still bind (`now`, `email`, `web`, `monid`). The agents the eval made are archived there, and the folder stays, its tool settings as they were (the agent's own pin holds a pinned write, as on `--server`). Refused with `--server`, while another server holds DIR, when DIR's server has work of its own (an enabled trigger, a run not ended) that the eval's server and runner would take up,
|
|
245
|
+
| `--on-data DIR` | Run the eval's own server on DIR, a stopped server's data folder, in place of a temp one: the runs use what that server keeps (its ChatGPT sign-in, so a package is measured on the owner's plan), and every case's fakes still bind (`now`, `email`, `calendar`, `web`, `monid`). The agents the eval made are archived there, and the folder stays, its tool settings as they were (the agent's own pin holds a pinned write, as on `--server`). Refused with `--server`, while another server holds DIR, when DIR's server has work of its own (an enabled trigger, a run not ended) that the eval's server and runner would take up, for an email case when DIR's server keeps an email account, which the case's fake mailbox would replace, and for a calendar case when DIR's server keeps a calendar. A case that fakes an MCP server DIR's server keeps by the same name fails, as on `--server`. |
|
|
237
246
|
| `--grader-model PROVIDER/MODEL` | The `llm` graders' model. Absent: the server's default. |
|
|
238
247
|
| `--report FILE` | The whole report as JSON: per case, per run and per grader, its pass, its reason and its cost. A summary goes to stdout either way, progress to stderr. |
|
|
239
248
|
| `--faux MODULE` | Answer every model request from the module, as the server's `--faux` does: no key, no network. |
|