outrunner 0.1.4 → 0.1.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Outrunner, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -16,4 +16,30 @@ outrunner login sign this terminal in
16
16
  outrunner claude connect your Claude subscription (runs claude setup-token)
17
17
  outrunner whoami show who this terminal is signed in as
18
18
  outrunner logout sign this terminal out
19
+ outrunner triage add a work item to your triage
19
20
  ```
21
+
22
+ ## Sessions from a terminal, a script or CI
23
+
24
+ The same commands drive cloud sessions through [the API](https://github.com/outrunner-sh/outrunner/blob/main/docs/api.md),
25
+ signed in with `outrunner login` or with `OUTRUNNER_API_KEY` set:
26
+
27
+ ```
28
+ outrunner create --repo acme/web "fix the flaky checkout test" --wait
29
+ outrunner list [--project acme/web] [--status ready]
30
+ outrunner get <id>
31
+ outrunner send <id> "also add a test" --wait
32
+ outrunner read <id>
33
+ outrunner wait <id> [--after <event>] [--timeout 30m]
34
+ outrunner delete <id> --yes
35
+ ```
36
+
37
+ Each takes `--org <name>` and `--json`; `outrunner <command> --help` says more.
38
+
39
+ ## Google Cloud sandboxes
40
+
41
+ Run `npx outrunner@latest sandbox connect gcp` to connect a billing-enabled
42
+ Google Cloud project. Requires gcloud and permission to configure IAM and
43
+ networking. The wizard uses keyless federation, verifies a temporary VM,
44
+ and asks before selecting GCP for new sessions. See
45
+ [the setup and teardown guide](https://github.com/outrunner-sh/outrunner/blob/main/docs/gcp-sandboxes.md).
package/bin/outrunner.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  // the platform package whose `os` and `cpu` match (the optionalDependencies),
4
4
  // so this finds it and hands over the terminal. scripts/build-cli.sh builds
5
5
  // the packages.
6
- import { spawnSync } from "node:child_process";
6
+ import { spawn } from "node:child_process";
7
7
  import { createRequire } from "node:module";
8
8
  import path from "node:path";
9
9
 
@@ -32,10 +32,30 @@ try {
32
32
  process.exit(1);
33
33
  }
34
34
 
35
- const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
36
- if (result.error) {
37
- console.error(`outrunner: couldn't run ${binary}: ${result.error.message}`);
35
+ const child = spawn(binary, process.argv.slice(2), { stdio: "inherit" });
36
+
37
+ // A signal sent to this launcher alone (a closed terminal, a supervisor's
38
+ // SIGTERM) goes on to the CLI, which would otherwise outlive it, still
39
+ // waiting on its sign-in port. Ctrl-C reaches both already, through the
40
+ // terminal's process group: this only keeps the launcher waiting for the
41
+ // CLI to finish with it.
42
+ const forward = {
43
+ SIGINT: () => {},
44
+ SIGTERM: () => child.kill("SIGTERM"),
45
+ SIGHUP: () => child.kill("SIGHUP"),
46
+ };
47
+ for (const [signal, handler] of Object.entries(forward)) process.on(signal, handler);
48
+
49
+ child.on("error", (error) => {
50
+ console.error(`outrunner: couldn't run ${binary}: ${error.message}`);
38
51
  process.exit(1);
39
- }
40
- if (result.signal) process.kill(process.pid, result.signal);
41
- process.exit(result.status ?? 1);
52
+ });
53
+ child.on("exit", (code, signal) => {
54
+ if (signal) {
55
+ // Die the way it did, for the shell to see.
56
+ for (const [name, handler] of Object.entries(forward)) process.off(name, handler);
57
+ process.kill(process.pid, signal);
58
+ return;
59
+ }
60
+ process.exit(code ?? 1);
61
+ });
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "outrunner",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Start using Outrunner from your terminal: sign in, connect Claude, and continue in the browser.",
5
5
  "homepage": "https://app.outrunner.sh",
6
- "license": "UNLICENSED",
6
+ "author": "Outrunner, Inc.",
7
+ "license": "MIT",
7
8
  "bin": {
8
9
  "outrunner": "bin/outrunner.mjs"
9
10
  },
@@ -14,10 +15,15 @@
14
15
  "node": ">=18"
15
16
  },
16
17
  "optionalDependencies": {
17
- "outrunner-darwin-arm64": "0.1.4",
18
- "outrunner-darwin-x64": "0.1.4",
19
- "outrunner-linux-arm64": "0.1.4",
20
- "outrunner-linux-x64": "0.1.4",
21
- "outrunner-windows-x64": "0.1.4"
18
+ "outrunner-darwin-arm64": "0.1.5",
19
+ "outrunner-darwin-x64": "0.1.5",
20
+ "outrunner-linux-arm64": "0.1.5",
21
+ "outrunner-linux-x64": "0.1.5",
22
+ "outrunner-windows-x64": "0.1.5"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/outrunner-sh/outrunner.git",
27
+ "directory": "cli-npm"
22
28
  }
23
29
  }