vetgo-cli 0.0.0-stage → 0.3.31-fork.4

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.
Files changed (3) hide show
  1. package/README.md +10 -2
  2. package/bin/berth.js +31 -0
  3. package/package.json +35 -4
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # Temporary Holding Version
1
+ # vetgo-cli
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
+ Run coding agents on your own boxes, and watch them from your laptop. Vetgo is a fork of [Shipyard](https://github.com/cosscom/shipyard); source and docs at [tinhthanh/shipyard](https://github.com/tinhthanh/shipyard).
4
+
5
+ ```sh
6
+ npm install -g vetgo-cli
7
+ berth agent install # the laptop agent, started when you log in
8
+ berth add ssh USER@HOST # make a server a box
9
+ ```
10
+
11
+ This package gives the `berth` command on macOS and Linux (arm64 and x64). The desktop app for Windows is on the [releases page](https://github.com/tinhthanh/shipyard/releases).
package/bin/berth.js ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ // berth, from the package for this computer (vetgo-cli-<os>-<arch>), which
3
+ // npm installed beside this one as an optional dependency.
4
+ "use strict";
5
+ const { spawnSync } = require("node:child_process");
6
+ const fs = require("node:fs");
7
+
8
+ const arch = { arm64: "arm64", x64: "amd64" }[process.arch];
9
+ const pkg = `vetgo-cli-${process.platform}-${arch}`;
10
+ let bin;
11
+ try {
12
+ bin = require.resolve(`${pkg}/bin/berth`);
13
+ } catch {
14
+ console.error(`vetgo-cli: no berth for ${process.platform}/${process.arch} (${pkg} isn't installed).`);
15
+ console.error("It runs on macOS and Linux, arm64 and x64. If yours is one, reinstall without --no-optional / --omit=optional.");
16
+ process.exit(1);
17
+ }
18
+ try {
19
+ fs.accessSync(bin, fs.constants.X_OK);
20
+ } catch {
21
+ try {
22
+ fs.chmodSync(bin, 0o755);
23
+ } catch {}
24
+ }
25
+ const r = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
26
+ if (r.error) {
27
+ console.error(`vetgo-cli: ${r.error.message}`);
28
+ process.exit(1);
29
+ }
30
+ if (r.signal) process.kill(process.pid, r.signal);
31
+ process.exit(r.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
2
  "name": "vetgo-cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.31-fork.4",
4
+ "license": "MIT",
5
+ "homepage": "https://github.com/tinhthanh/shipyard",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tinhthanh/shipyard.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/tinhthanh/shipyard/issues"
12
+ },
13
+ "description": "Run coding agents on your own boxes: the berth CLI and laptop agent (a fork of Shipyard)",
14
+ "keywords": [
15
+ "coding-agents",
16
+ "claude-code",
17
+ "codex",
18
+ "ssh",
19
+ "tmux",
20
+ "developer-tools"
21
+ ],
22
+ "bin": {
23
+ "berth": "bin/berth.js"
24
+ },
25
+ "files": [
26
+ "bin"
27
+ ],
28
+ "engines": {
29
+ "node": ">=18"
30
+ },
31
+ "optionalDependencies": {
32
+ "vetgo-cli-darwin-arm64": "0.3.31-fork.4",
33
+ "vetgo-cli-darwin-amd64": "0.3.31-fork.4",
34
+ "vetgo-cli-linux-arm64": "0.3.31-fork.4",
35
+ "vetgo-cli-linux-amd64": "0.3.31-fork.4"
36
+ }
37
+ }