@parcha/agentrun 0.4.2 → 0.4.3

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 CHANGED
@@ -12,8 +12,8 @@ It starts [AgentRun Server](https://github.com/Parcha-ai/agentrun/tree/main/pack
12
12
  7340 on this machine's loopback, keeps its data in `~/.agentrun`, prints the address the server says to open and opens
13
13
  it in your browser (`--no-open`, a CI run or a machine with no display skips that). The server,
14
14
  `@parcha/agentrun-serve`, is this package's one dependency, at its exact version, so `npx` installs the two together and
15
- each version of this command runs the server it was released with. Node.js 22.19 or newer on 22, or 24.2 or newer, on
16
- macOS or Linux.
15
+ each version of this command runs the server it was released with. Node.js 24.22.3 or newer, on macOS or Linux; an older
16
+ Node gets one line naming that floor.
17
17
 
18
18
  Where Docker answers on this machine, a new agent runs in a Docker box of its own with a shell, and a line on stderr,
19
19
  after the address, says so: `Boxes: docker (on by default; set AGENTRUN_BOXES to change).` Where it does not, that line says why
package/bin/agentrun.mjs CHANGED
@@ -1,16 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  // npx @parcha/agentrun: AgentRun Server on this machine with one command. Node first, in syntax any Node reads, so an old one
3
3
  // gets one plain line rather than a parse error; the repository's own rule (scripts/check-node.mjs). The floor is read from
4
- // this package's own engines field (">=MAJOR.MINOR.PATCH"), so the line never names another version than npm's.
4
+ // this package's own engines field (">=MAJOR.MINOR.PATCH"), so the line never names another version than npm's. The patch
5
+ // counts: the floor is a security release, and the releases before it on the same minor lack its fixes.
5
6
  import { readFileSync } from "node:fs";
6
7
 
7
8
  const engines = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).engines.node;
8
- const floor = /^>=(\d+)\.(\d+)\.\d+$/.exec(engines);
9
+ const floor = /^>=(\d+)\.(\d+)\.(\d+)$/.exec(engines);
9
10
  if (!floor) throw new Error(`this package's engines.node is ${JSON.stringify(engines)}, not ">=MAJOR.MINOR.PATCH"`);
10
- const [needMajor, needMinor] = [Number(floor[1]), Number(floor[2])];
11
- const [major, minor] = process.versions.node.split(".").map(Number);
12
- if (major < needMajor || (major === needMajor && minor < needMinor)) {
13
- console.error(`AgentRun needs Node.js ${needMajor}.${needMinor} or newer; you have v${process.versions.node}.`);
11
+ const need = floor.slice(1).map(Number);
12
+ const have = process.versions.node.split(".").map(Number);
13
+ const at = need.findIndex((part, i) => have[i] !== part);
14
+ if (at !== -1 && !(have[at] > need[at])) {
15
+ console.error(`AgentRun needs Node.js ${need.join(".")} or newer; you have v${process.versions.node}.`);
14
16
  process.exit(1);
15
17
  }
16
18
  import("../lib/start.mjs").then(({ main }) => main(process.argv.slice(2))).then((code) => { process.exitCode = code; });
@@ -1,5 +1,5 @@
1
1
  // Generated by scripts/generate-clients.mjs from the server's OpenAPI document. Do not edit: run node scripts/generate-clients.mjs.
2
- // SHA-256 of what the table is made of (operationsOf in scripts/generate-clients.mjs): 4ec85cda12e38aff6e89445ee59072bbeaf7374aed0b3a63910194668c50f3a0
2
+ // SHA-256 of what the table is made of (operationsOf in scripts/generate-clients.mjs): eb56df6f12cf742401981db05758a2cd4cc46ae46f71574560de499c8525ed54
3
3
  export const COMMANDS = [
4
4
  {
5
5
  "command": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
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",
@@ -16,13 +16,13 @@
16
16
  "NOTICE"
17
17
  ],
18
18
  "dependencies": {
19
- "@parcha/agentrun-serve": "0.1.0-beta.34"
19
+ "@parcha/agentrun-serve": "0.1.0-beta.35"
20
20
  },
21
21
  "scripts": {
22
22
  "test": "node --test 'test/*.test.mjs'"
23
23
  },
24
24
  "engines": {
25
- "node": ">=24.11.0"
25
+ "node": ">=24.22.3"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
@@ -3,7 +3,7 @@ name: agentrun-cli
3
3
  description: Drive an AgentRun server from a shell with the agentrun CLI. Make an agent from a definition file, start a run with a spend cap and wait for it, answer a run that asks a question, read the files it wrote and what it cost, save tool keys, and call any other route of the server. Use when asked to run or manage AgentRun agents from the terminal or a script, or for anything the server's MCP tools do not cover (files, tool keys, triggers, webhooks, revisions, learning).
4
4
  ---
5
5
  <!-- Generated by scripts/generate-clients.mjs from the server's OpenAPI document and its skill template. Do not edit: run node scripts/generate-clients.mjs. -->
6
- <!-- SHA-256 of what the command table is made of (operationsOf in scripts/generate-clients.mjs): 4ec85cda12e38aff6e89445ee59072bbeaf7374aed0b3a63910194668c50f3a0 -->
6
+ <!-- SHA-256 of what the command table is made of (operationsOf in scripts/generate-clients.mjs): eb56df6f12cf742401981db05758a2cd4cc46ae46f71574560de499c8525ed54 -->
7
7
 
8
8
  # AgentRun CLI
9
9
 
@@ -1,7 +1,7 @@
1
1
  # agentrun commands
2
2
 
3
3
  <!-- Generated by scripts/generate-clients.mjs from the server's OpenAPI document. Do not edit: run node scripts/generate-clients.mjs. -->
4
- <!-- SHA-256 of what the command table is made of (operationsOf in scripts/generate-clients.mjs): 4ec85cda12e38aff6e89445ee59072bbeaf7374aed0b3a63910194668c50f3a0 -->
4
+ <!-- SHA-256 of what the command table is made of (operationsOf in scripts/generate-clients.mjs): eb56df6f12cf742401981db05758a2cd4cc46ae46f71574560de499c8525ed54 -->
5
5
 
6
6
  Every command of the agentrun CLI, by group. Arguments in capitals are positional; every command also takes `--base-url URL`, `--data DIR` and `--help`. A body field with one value (a string, number or boolean) is a flag of its own, and `--body` gives the whole body. A positional argument is refused when it is or holds a `.` or `..` path segment; a file's PATH keeps its slashes, and no segment of it may be empty.
7
7