@the-vibe-company/armada 0.2.73 → 2.0.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/bin/armada.cjs ADDED
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env node
2
+ // The `armada` bin of the npm package. The CLI uses Bun APIs, so the package does not ship
3
+ // JavaScript to run: it ships one compiled binary per platform, each in its own package that
4
+ // npm and Bun install as an optional dependency matching `os` and `cpu`. This file finds that
5
+ // binary and runs it, under Node or Bun, with no postinstall script.
6
+ "use strict";
7
+
8
+ const { chmodSync } = require("node:fs");
9
+ const { spawnSync } = require("node:child_process");
10
+ const { name, version } = require("../package.json");
11
+
12
+ const SUPPORTED = ["linux-x64", "linux-arm64", "darwin-x64", "darwin-arm64"];
13
+
14
+ function fail(message) {
15
+ process.stderr.write(`armada: ${message}\n`);
16
+ process.exit(1);
17
+ }
18
+
19
+ const target = `${process.platform}-${process.arch}`;
20
+ if (!SUPPORTED.includes(target)) {
21
+ fail(`no armada binary for ${target}. Supported: ${SUPPORTED.join(", ")}.`);
22
+ }
23
+
24
+ const platformPackage = `${name}-${target}`;
25
+ let binary;
26
+ try {
27
+ binary = require.resolve(`${platformPackage}/bin/armada`);
28
+ } catch {
29
+ fail(
30
+ `${platformPackage}@${version} is not installed. It is an optional dependency of ${name}: ` +
31
+ "reinstall without --omit=optional (or --no-optional), on this machine, so the lockfile picks this platform.",
32
+ );
33
+ }
34
+
35
+ function run() {
36
+ return spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
37
+ }
38
+
39
+ let result = run();
40
+ if (result.error && result.error.code === "EACCES") {
41
+ chmodSync(binary, 0o755);
42
+ result = run();
43
+ }
44
+ if (result.error) fail(`could not run ${binary}: ${result.error.message}`);
45
+ if (result.signal) process.kill(process.pid, result.signal);
46
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,44 +1,40 @@
1
1
  {
2
2
  "name": "@the-vibe-company/armada",
3
- "version": "0.2.73",
4
- "type": "module",
5
- "description": "Run a fleet of coding agents on one project: the armada command line.",
3
+ "version": "2.0.0",
4
+ "description": "Launch coding agents (Claude Code, Codex) on boat.dev sandboxes: the armada command line.",
5
+ "keywords": [
6
+ "armada",
7
+ "agents",
8
+ "coding-agents",
9
+ "claude-code",
10
+ "codex",
11
+ "mcp",
12
+ "cli"
13
+ ],
6
14
  "license": "MIT",
7
15
  "homepage": "https://github.com/The-Vibe-Company/armada#readme",
16
+ "bugs": "https://github.com/The-Vibe-Company/armada/issues",
8
17
  "repository": {
9
18
  "type": "git",
10
19
  "url": "git+https://github.com/The-Vibe-Company/armada.git",
11
20
  "directory": "packages/cli"
12
21
  },
13
- "bugs": "https://github.com/The-Vibe-Company/armada/issues",
14
- "keywords": [
15
- "agents",
16
- "coding-agents",
17
- "linear",
18
- "github",
19
- "cli"
20
- ],
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
21
25
  "bin": {
22
- "armada": "dist/armada.js"
26
+ "armada": "bin/armada.cjs"
23
27
  },
24
28
  "files": [
25
- "dist"
29
+ "bin/armada.cjs"
26
30
  ],
27
31
  "engines": {
28
- "node": ">=22"
29
- },
30
- "publishConfig": {
31
- "access": "public"
32
- },
33
- "scripts": {
34
- "build": "node ../../scripts/plugin-catalog.ts && bun ../../scripts/bundle-skills.ts && bun build src/bin.ts --target node --outfile dist/armada.js && mkdir -p dist/plugin-fixtures && cp -R ../../packages/plugin-api/fixtures/. dist/plugin-fixtures/",
35
- "prepack": "bun run build && cp ../../README.md ../../LICENSE ."
32
+ "node": ">=18"
36
33
  },
37
- "devDependencies": {
38
- "@armada/plugin-api": "workspace:*",
39
- "@armada/protocol": "workspace:*",
40
- "ai": "7.0.156",
41
- "@armada/core": "workspace:*",
42
- "@armada/daemon": "workspace:*"
34
+ "optionalDependencies": {
35
+ "@the-vibe-company/armada-linux-x64": "2.0.0",
36
+ "@the-vibe-company/armada-linux-arm64": "2.0.0",
37
+ "@the-vibe-company/armada-darwin-x64": "2.0.0",
38
+ "@the-vibe-company/armada-darwin-arm64": "2.0.0"
43
39
  }
44
40
  }