@parcha/agentrun 0.4.31 → 0.4.32
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/README.md +3 -0
- package/install.sh +2 -1
- package/lib/commands.generated.mjs +6 -0
- package/lib/service.mjs +5 -1
- package/package.json +2 -2
- package/skills/agentrun-cli/references/commands.md +1 -0
package/README.md
CHANGED
|
@@ -150,6 +150,9 @@ Where a new agent that names no place goes, by mode:
|
|
|
150
150
|
is `null`. So is `agentrun deploy` of a package that names no `tools` and no `computer` list, at its preview: name its tools
|
|
151
151
|
(`tools: []` keeps the runner) or its computer list.
|
|
152
152
|
- In Mode 2, where the runner's shell is Archil's serverless exec, it is not refused: it runs on the runner, as before.
|
|
153
|
+
- In Mode 2 on an Archil region with no serverless exec (`gcp-us-central1`), bash needs a box. A new agent with a shell
|
|
154
|
+
tool and no computer is refused at its create and at `agentrun deploy`: "bash needs a box (a sandbox computer): …".
|
|
155
|
+
Give it a sandbox computer, or leave `bash` out of its tools.
|
|
153
156
|
|
|
154
157
|
A Docker box's image is built on its first run, which shows that on its timeline. `AGENTRUN_BOXES=none` turns boxes off.
|
|
155
158
|
|
package/install.sh
CHANGED
|
@@ -880,7 +880,8 @@ services:
|
|
|
880
880
|
AGENTRUN_TOKEN: ${AGENTRUN_TOKEN:?run the installer again}
|
|
881
881
|
AGENTRUN_PUBLIC_URL: ${AGENTRUN_PUBLIC_URL:?run the installer again}
|
|
882
882
|
restart: unless-stopped
|
|
883
|
-
|
|
883
|
+
# At least a signed-in server's stop bound (27 s: a ChatGPT plan renewal saves its new pair), as the quickstart's.
|
|
884
|
+
stop_grace_period: 35s
|
|
884
885
|
volumes:
|
|
885
886
|
agentrun-data:
|
|
886
887
|
EOF
|
|
@@ -3574,6 +3574,12 @@ export const COMMANDS = [
|
|
|
3574
3574
|
"required": true,
|
|
3575
3575
|
"description": "At most `limits.max_message_chars`. Not only whitespace."
|
|
3576
3576
|
},
|
|
3577
|
+
{
|
|
3578
|
+
"name": "said",
|
|
3579
|
+
"type": "string",
|
|
3580
|
+
"required": false,
|
|
3581
|
+
"description": "The person's own words, when `content` is a host's text around them (a preamble, an earlier report, turn instructions): what the run's learning keeps of this message (the one line it appends to the agent's corrections.md, and the follow-up in its compile turn's traces), in place of `content`. The model gets `content` only, never `said`; `said` need not appear inside it. Absent, learning keeps `content`, as before. 422 `input_invalid` at `said`, nothing written: reason `wrong_type` when it is not a string, `empty` when it is empty after trimming, `too_long` past 4000 characters, counted in Unicode code points (an emoji is one). Text shaped like a secret is not refused here: the learning's checks refuse its line, as any correction's. Offered where `features.messages.said` is true."
|
|
3582
|
+
},
|
|
3577
3583
|
{
|
|
3578
3584
|
"name": "model_key",
|
|
3579
3585
|
"type": "string",
|
package/lib/service.mjs
CHANGED
|
@@ -27,7 +27,9 @@ const xml = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(
|
|
|
27
27
|
const unxml = (text) => text.replace(/"/g, '"').replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&");
|
|
28
28
|
|
|
29
29
|
/** The LaunchAgent: started at login (RunAtLoad), started again when it exits with a failure (KeepAlive), its output in
|
|
30
|
-
* `log`, with the PATH of the shell that installed it (launchd's own has no Homebrew, so no docker) and `env`.
|
|
30
|
+
* `log`, with the PATH of the shell that installed it (launchd's own has no Homebrew, so no docker) and `env`. A stop
|
|
31
|
+
* gets 35 s before launchd's SIGKILL (ExitTimeOut; its default is 20 s): a signed-in server's stop takes up to 27 s, and
|
|
32
|
+
* a ChatGPT renewal its runner sends (served at most 4 s into the stop) up to 25 s more to save its new pair. */
|
|
31
33
|
export function plistText({ program, args, path, log, env = {} }) {
|
|
32
34
|
const strings = [program, ...args].map((arg) => ` <string>${xml(arg)}</string>`).join("\n");
|
|
33
35
|
const vars = Object.entries({ PATH: path, ...env }).map(([key, value]) => ` <key>${xml(key)}</key>\n <string>${xml(value)}</string>`).join("\n");
|
|
@@ -52,6 +54,8 @@ ${vars}
|
|
|
52
54
|
<key>SuccessfulExit</key>
|
|
53
55
|
<false/>
|
|
54
56
|
</dict>
|
|
57
|
+
<key>ExitTimeOut</key>
|
|
58
|
+
<integer>35</integer>
|
|
55
59
|
<key>StandardOutPath</key>
|
|
56
60
|
<string>${xml(log)}</string>
|
|
57
61
|
<key>StandardErrorPath</key>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.32",
|
|
4
4
|
"description": "AgentRun, the open-source platform that supercharges your agents (self-improvement, durable execution and a control plane on top of your favorite agent harness), on this machine with one command: npx @parcha/agentrun",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"NOTICE"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@parcha/agentrun-serve": "0.1.0-beta.
|
|
20
|
+
"@parcha/agentrun-serve": "0.1.0-beta.64"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"test": "node --test 'test/*.test.mjs'"
|
|
@@ -1131,6 +1131,7 @@ Route: `POST /runs/{run_id}/messages`.
|
|
|
1131
1131
|
|
|
1132
1132
|
- `--idempotency-key STRING` (string): Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first answer with `Idempotent-Replayed: true`; another body is `409 idempotency_mismatch`; a retry while the first is in flight is `409 idempotency_in_progress`. Keys are scoped to the credential's account and the route.
|
|
1133
1133
|
- `--content STRING` (string, required): At most `limits.max_message_chars`. Not only whitespace.
|
|
1134
|
+
- `--said STRING` (string): The person's own words, when `content` is a host's text around them (a preamble, an earlier report, turn instructions): what the run's learning keeps of this message (the one line it appends to the agent's corrections.md, and the follow-up in its compile turn's traces), in place of `content`. The model gets `content` only, never `said`; `said` need not appear inside it. Absent, learning keeps `content`, as before. 422 `input_invalid` at `said`, nothing written: reason `wrong_type` when it is not a string, `empty` when it is empty after trimming, `too_long` past 4000 characters, counted in Unicode code points (an emoji is one). Text shaped like a secret is not refused here: the learning's checks refuse its line, as any correction's. Offered where `features.messages.said` is true.
|
|
1134
1135
|
- `--model-key STRING` (string): The run's own model key: a key for the model gateway at AGENT_MODEL_BASE_URL, such as a LiteLLM virtual key minted for this run, which every model request tied to the run carries in place of the server's own key (its turns, its subagents, its learned workflows' nodes, a workflow's model nodes, its end-of-run compile turn, and the learning work it starts: a learned workflow's check replay runs and an audit's shadow run). AgentRun never mints, lists or revokes it. Sealed into the run's launch bound to the gateway's origin, read at each claim (a reclaim after a crash among them), erased from the store by the write that ends the run's turn. A replay or shadow run the run starts while its claim holds the key takes a copy sealed for that run alone, erased by the write that ends that run (or its purge): such a run starts at the run's end, capped at its share of what the run's cap leaves then (none left: it is dropped, nothing spent), and it is listed in the run's `learning_work` until it ends; revoke the key once the run is terminal and `learning_work.state` is not `running`. Never in its saved body, its timeline, its view, a log or an Idempotency-Key's fingerprint (a retry with a new key answers the first request's run, its first key kept). The harness, its tools and its sandbox never see it. 422 `invalid` at `model_key` for a key under 8 characters (no cut could hold it) or one with a character that is not visible ASCII (a space, a control character, anything past ASCII); 422 at `model_key` when the run's model never goes to that gateway (no AGENT_MODEL_BASE_URL here, a native run, or a model routed elsewhere). Absent, the run spends on the server's key for its route; where the server holds none (no AGENT_MODEL_API_KEY, none saved in Settings), a start without it is 422 `model_key_required`, never a failure at its first model call. On a message it replaces the run's key from the run's next model request on, a turn still going included, and it is the first key of a run that started on the server's (mint one per turn); a message without one keeps the key the run holds, which is none once its last turn ended: then, where the server holds no key for the run's model, the message is 422 `model_key_required` and nothing is written.
|
|
1135
1136
|
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
1136
1137
|
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|