outrunner 0.0.0-stage → 0.1.0
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 +18 -2
- package/bin/outrunner.mjs +32 -0
- package/package.json +21 -4
package/README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# outrunner
|
|
2
2
|
|
|
3
|
-
|
|
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,32 @@
|
|
|
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
|
+
const pkg = `outrunner-${process.platform}-${process.arch}`;
|
|
13
|
+
const exe = process.platform === "win32" ? "outrunner.exe" : "outrunner";
|
|
14
|
+
|
|
15
|
+
let binary;
|
|
16
|
+
try {
|
|
17
|
+
binary = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), "bin", exe);
|
|
18
|
+
} catch {
|
|
19
|
+
console.error(
|
|
20
|
+
`outrunner: there is no build for ${process.platform} ${process.arch} (${pkg} isn't installed).\n` +
|
|
21
|
+
"If you installed with --no-optional or --omit=optional, install again without it.",
|
|
22
|
+
);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
|
|
27
|
+
if (result.error) {
|
|
28
|
+
console.error(`outrunner: couldn't run ${binary}: ${result.error.message}`);
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
if (result.signal) process.kill(process.pid, result.signal);
|
|
32
|
+
process.exit(result.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "outrunner",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
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.0",
|
|
18
|
+
"outrunner-darwin-x64": "0.1.0",
|
|
19
|
+
"outrunner-linux-arm64": "0.1.0",
|
|
20
|
+
"outrunner-linux-x64": "0.1.0",
|
|
21
|
+
"outrunner-win32-x64": "0.1.0"
|
|
22
|
+
}
|
|
23
|
+
}
|