outrunner 0.0.0-stage → 0.1.1

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
@@ -1,3 +1,19 @@
1
- # Temporary Holding Version
1
+ # outrunner
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Start using [Outrunner](https://app.outrunner.sh) from your terminal:
4
+
5
+ ```sh
6
+ npx outrunner@latest
7
+ ```
8
+
9
+ It signs the terminal in through your browser, offers to connect your Claude
10
+ subscription if Claude Code is on this computer, and then continues setting up
11
+ in the browser.
12
+
13
+ ```
14
+ outrunner sign in if needed, connect Claude, continue in the browser
15
+ outrunner login sign this terminal in
16
+ outrunner claude connect your Claude subscription (runs claude setup-token)
17
+ outrunner whoami show who this terminal is signed in as
18
+ outrunner logout sign this terminal out
19
+ ```
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+ // `npx outrunner`: run the Go CLI built for this computer. npm installs only
3
+ // the platform package whose `os` and `cpu` match (the optionalDependencies),
4
+ // so this finds it and hands over the terminal. scripts/build-cli.sh builds
5
+ // the packages.
6
+ import { spawnSync } from "node:child_process";
7
+ import { createRequire } from "node:module";
8
+ import path from "node:path";
9
+
10
+ const require = createRequire(import.meta.url);
11
+
12
+ // Each platform's package. Windows's is named for the OS: npm's spam check refused
13
+ // the name outrunner-win32-x64. Keep in step with scripts/build-cli.sh.
14
+ const PACKAGES = {
15
+ "darwin-arm64": "outrunner-darwin-arm64",
16
+ "darwin-x64": "outrunner-darwin-x64",
17
+ "linux-arm64": "outrunner-linux-arm64",
18
+ "linux-x64": "outrunner-linux-x64",
19
+ "win32-x64": "outrunner-windows-x64",
20
+ };
21
+ const pkg = PACKAGES[`${process.platform}-${process.arch}`] ?? `outrunner-${process.platform}-${process.arch}`;
22
+ const exe = process.platform === "win32" ? "outrunner.exe" : "outrunner";
23
+
24
+ let binary;
25
+ try {
26
+ binary = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), "bin", exe);
27
+ } catch {
28
+ console.error(
29
+ `outrunner: there is no build for ${process.platform} ${process.arch} (${pkg} isn't installed).\n` +
30
+ "If you installed with --no-optional or --omit=optional, install again without it.",
31
+ );
32
+ process.exit(1);
33
+ }
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}`);
38
+ process.exit(1);
39
+ }
40
+ if (result.signal) process.kill(process.pid, result.signal);
41
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,23 @@
1
1
  {
2
2
  "name": "outrunner",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Start using Outrunner from your terminal: sign in, connect Claude, and continue in the browser.",
5
+ "homepage": "https://app.outrunner.sh",
6
+ "license": "UNLICENSED",
7
+ "bin": {
8
+ "outrunner": "bin/outrunner.mjs"
9
+ },
10
+ "files": [
11
+ "bin/outrunner.mjs"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "optionalDependencies": {
17
+ "outrunner-darwin-arm64": "0.1.1",
18
+ "outrunner-darwin-x64": "0.1.1",
19
+ "outrunner-linux-arm64": "0.1.1",
20
+ "outrunner-linux-x64": "0.1.1",
21
+ "outrunner-windows-x64": "0.1.1"
22
+ }
23
+ }