@parcha/agentrun 0.4.28 → 0.4.29

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/lib/harness.mjs CHANGED
@@ -1,6 +1,6 @@
1
- // `agentrun harness install goose|cursor` and `agentrun harness install --recipe FILE`: the harness its owner installs,
2
- // never a run (Goose; Cursor, on the owner's own Cursor API key; or an ACP agent a recipe file names:
3
- // HARNESS.md#a-recipe). The server installed with this command does it (agentrun-serve install-harness), as it runs
1
+ // `agentrun harness install goose|cursor|antigravity` and `agentrun harness install --recipe FILE`: the harness its owner
2
+ // installs, never a run (Goose; Cursor, on the owner's own Cursor API key; Google Antigravity, by the recipe AgentRun
3
+ // ships; or an ACP agent a recipe file names: HARNESS.md#a-recipe). The server installed with this command does it (agentrun-serve install-harness), as it runs
4
4
  // validate-template: the pinned archive downloaded, its sha256 checked, unpacked into DATA/harnesses/<id>, the binary's
5
5
  // sha256 checked (for Cursor, every file's too; for a recipe that pins none, the first one recorded), then put in place
6
6
  // read-only. DATA is this command's (~/.agentrun unless --data names one), the store `npx @parcha/agentrun` starts the
@@ -15,8 +15,8 @@ import { readFileSync } from "node:fs";
15
15
  import { homedir } from "node:os";
16
16
  import { join, resolve } from "node:path";
17
17
 
18
- /** The harnesses this command installs by name. */
19
- const INSTALLABLE = ["goose", "cursor"];
18
+ /** The harnesses this command installs by name: antigravity by the recipe AgentRun ships (the ACP package's). */
19
+ const INSTALLABLE = ["goose", "cursor", "antigravity"];
20
20
 
21
21
  /** A variable named like a credential (a KEY, TOKEN, SECRET, PASSWORD or CREDENTIAL(S) segment). */
22
22
  const KEY_NAMED = /(?:^|_)(?:KEY|TOKEN|TOKENS|SECRET|PASSWORD|CREDENTIALS?)(?:_|$)/i;
@@ -37,10 +37,10 @@ export const HARNESS_INSTALL = {
37
37
  command: ["harness", "install"],
38
38
  pathParams: ["harness"],
39
39
  argsOptional: true,
40
- summary: "Install a harness AgentRun runs only once its owner installs it (goose, cursor, or a recipe file's), then restart AgentRun",
40
+ summary: "Install a harness AgentRun runs only once its owner installs it (goose, cursor, antigravity, or a recipe file's), then restart AgentRun",
41
41
  help: [
42
42
  ["HARNESS", `the harness: ${INSTALLABLE.join(", ")}. Its pinned release is downloaded and checked by sha256 into DATA/harnesses/HARNESS; run again, it downloads nothing`],
43
- ["--recipe FILE", "in place of HARNESS: a recipe file (HARNESS.md#a-recipe), checked against its five rules before anything is downloaded"],
43
+ ["--recipe FILE", "in place of HARNESS: a recipe file (HARNESS.md#a-recipe), checked against its five rules before anything is downloaded; a recipe AgentRun ships by its name (antigravity), unless a file of that name is here (./NAME names it)"],
44
44
  ["--data DIR", "the data directory of the AgentRun it is for (default ~/.agentrun, where npx @parcha/agentrun keeps it)"],
45
45
  ],
46
46
  options: { recipe: { type: "string" } },
@@ -51,7 +51,7 @@ export const HARNESS_INSTALL = {
51
51
  const launcher = await launcherOf(cli, "installs a harness");
52
52
  // No key reaches the install: every variable named like one is left out of its environment.
53
53
  const keyless = Object.fromEntries(Object.entries(env).filter(([key]) => !KEY_NAMED.test(key)));
54
- const which = values.recipe === undefined ? [name] : ["--recipe", resolve(values.recipe)];
54
+ const which = values.recipe === undefined ? [name] : ["--recipe", values.recipe];
55
55
  return spawnSync(launcher, ["install-harness", ...which, "--data", dataOf(values, env)], { stdio: "inherit", env: keyless }).status ?? 1;
56
56
  },
57
57
  };
@@ -61,7 +61,7 @@ export const HARNESS_SIGN_IN = {
61
61
  pathParams: [],
62
62
  summary: "Sign a recipe's agent in to your own account with the agent's own sign-in, in this terminal (Antigravity's agy acp --login); a server you start with --harness-sign-in on your own machine then runs your own runs on it",
63
63
  help: [
64
- ["--recipe FILE", "the recipe file, whose signIn names the agent's own sign-in flags; its agent installed first with agentrun harness install --recipe FILE"],
64
+ ["--recipe FILE", "the recipe file, whose signIn names the agent's own sign-in flags, or a recipe AgentRun ships by its name (antigravity); its agent installed first with agentrun harness install"],
65
65
  ["--data DIR", "the data directory the recipe's agent was installed into (default ~/.agentrun)"],
66
66
  ],
67
67
  options: { recipe: { type: "string" } },
@@ -71,7 +71,7 @@ export const HARNESS_SIGN_IN = {
71
71
  // The agent prints where to sign in on this terminal itself, and keeps its sign-in in its own folder: no key is
72
72
  // needed, so none reaches it.
73
73
  const keyless = Object.fromEntries(Object.entries(env).filter(([key]) => !KEY_NAMED.test(key)));
74
- return spawnSync(launcher, ["sign-in-harness", "--recipe", resolve(values.recipe), "--data", dataOf(values, env)], { stdio: "inherit", env: keyless }).status ?? 1;
74
+ return spawnSync(launcher, ["sign-in-harness", "--recipe", values.recipe, "--data", dataOf(values, env)], { stdio: "inherit", env: keyless }).status ?? 1;
75
75
  },
76
76
  };
77
77
 
@@ -109,7 +109,7 @@ export const HARNESS_CHECK = {
109
109
  pathParams: [],
110
110
  summary: "Run a recipe's installed agent for real and check it (tools off, env allowlist, pins, limits, no side requests, resume, a denied call, an MCP tool): a JSON report and three facts. Real models cost money",
111
111
  help: [
112
- ["--recipe FILE", "the recipe file (HARNESS.md#a-recipe); its agent installed first with agentrun harness install --recipe FILE"],
112
+ ["--recipe FILE", "the recipe file (HARNESS.md#a-recipe), or a recipe AgentRun ships by its name (antigravity); its agent installed first with agentrun harness install"],
113
113
  ["--model PROVIDER/MODEL", "the run's model, for a recipe billed through the proxy (openrouter/anthropic/claude-haiku-4.5, anthropic/claude-haiku-4-5)"],
114
114
  ["--report FILE", "where the JSON report goes (default ./harness-check-ID.json)"],
115
115
  ["--cap USD", "the most the check may spend (default 0.25)"],
@@ -119,7 +119,7 @@ export const HARNESS_CHECK = {
119
119
  async run({ values, env, cli }) {
120
120
  if (values.recipe === undefined) throw cli.fail(2, "agentrun harness-check needs --recipe FILE.");
121
121
  const launcher = await launcherOf(cli, "checks a harness");
122
- const flags = ["--recipe", resolve(values.recipe), "--data", dataOf(values, env)];
122
+ const flags = ["--recipe", values.recipe, "--data", dataOf(values, env)];
123
123
  if (values.model !== undefined) flags.push("--model", values.model);
124
124
  if (values.report !== undefined) flags.push("--report", resolve(values.report));
125
125
  if (values.cap !== undefined) flags.push("--cap", values.cap);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun",
3
- "version": "0.4.28",
3
+ "version": "0.4.29",
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.60"
20
+ "@parcha/agentrun-serve": "0.1.0-beta.61"
21
21
  },
22
22
  "scripts": {
23
23
  "test": "node --test 'test/*.test.mjs'"
@@ -534,11 +534,11 @@ Route: `PUT /files/{file_id}`.
534
534
 
535
535
  ### `agentrun harness install HARNESS`
536
536
 
537
- Install a harness AgentRun runs only once its owner installs it (goose, cursor, or a recipe file's), then restart AgentRun.
537
+ Install a harness AgentRun runs only once its owner installs it (goose, cursor, antigravity, or a recipe file's), then restart AgentRun.
538
538
 
539
539
  Route: none, it runs on this machine.
540
540
 
541
- - `--recipe FILE` (string, this CLI's own): in place of HARNESS: a recipe file (HARNESS.md#a-recipe), checked against its five rules before anything is downloaded
541
+ - `--recipe FILE` (string, this CLI's own): in place of HARNESS: a recipe file (HARNESS.md#a-recipe), checked against its five rules before anything is downloaded; a recipe AgentRun ships by its name (antigravity), unless a file of that name is here (./NAME names it)
542
542
  - `--data DIR` (string, this CLI's own): the data directory of the AgentRun it is for (default ~/.agentrun, where npx @parcha/agentrun keeps it)
543
543
 
544
544
  ### `agentrun harness keys`
@@ -555,7 +555,7 @@ Sign a recipe's agent in to your own account with the agent's own sign-in, in th
555
555
 
556
556
  Route: none, it runs on this machine.
557
557
 
558
- - `--recipe FILE` (string, this CLI's own): the recipe file, whose signIn names the agent's own sign-in flags; its agent installed first with agentrun harness install --recipe FILE
558
+ - `--recipe FILE` (string, this CLI's own): the recipe file, whose signIn names the agent's own sign-in flags, or a recipe AgentRun ships by its name (antigravity); its agent installed first with agentrun harness install
559
559
  - `--data DIR` (string, this CLI's own): the data directory the recipe's agent was installed into (default ~/.agentrun)
560
560
 
561
561
  ## harness-check
@@ -566,7 +566,7 @@ Run a recipe's installed agent for real and check it (tools off, env allowlist,
566
566
 
567
567
  Route: none, it runs on this machine.
568
568
 
569
- - `--recipe FILE` (string, this CLI's own): the recipe file (HARNESS.md#a-recipe); its agent installed first with agentrun harness install --recipe FILE
569
+ - `--recipe FILE` (string, this CLI's own): the recipe file (HARNESS.md#a-recipe), or a recipe AgentRun ships by its name (antigravity); its agent installed first with agentrun harness install
570
570
  - `--model PROVIDER/MODEL` (string, this CLI's own): the run's model, for a recipe billed through the proxy (openrouter/anthropic/claude-haiku-4.5, anthropic/claude-haiku-4-5)
571
571
  - `--report FILE` (string, this CLI's own): where the JSON report goes (default ./harness-check-ID.json)
572
572
  - `--cap USD` (string, this CLI's own): the most the check may spend (default 0.25)