@pitboss/cli 0.1.1 → 0.1.2

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 +2 -2
  2. package/dist/cli.js +14 -10
  3. package/package.json +5 -1
package/README.md CHANGED
@@ -11,8 +11,8 @@ short code, and waits. You approve in the browser, choosing which agents to
11
11
  connect and what each one does. It then writes each runtime's MCP config and
12
12
  has the agents message each other to prove it works.
13
13
 
14
- This package also ships the MCP server as `pitboss-mcp`, so an onboarded agent
15
- can never run a build older than the CLI that configured it.
14
+ This package also ships the MCP server, run as `pitboss mcp`, so an onboarded
15
+ agent can never run a build older than the CLI that configured it.
16
16
 
17
17
  ---
18
18
 
package/dist/cli.js CHANGED
@@ -14706,7 +14706,7 @@ var require_lib3 = __commonJS({
14706
14706
 
14707
14707
  // src/index.ts
14708
14708
  import { readFileSync as readFileSync5 } from "node:fs";
14709
- import { join as join6 } from "node:path";
14709
+ import { dirname as dirname4, join as join5 } from "node:path";
14710
14710
 
14711
14711
  // ../../node_modules/.pnpm/commander@12.1.0/node_modules/commander/esm.mjs
14712
14712
  var import_index = __toESM(require_commander(), 1);
@@ -19195,7 +19195,7 @@ ${source_default.cyan(JSON.stringify({
19195
19195
  mcpServers: {
19196
19196
  relai: {
19197
19197
  command: "npx",
19198
- args: ["@getrelai/mcp-server"],
19198
+ args: ["-y", "@pitboss/cli", "mcp"],
19199
19199
  env: {
19200
19200
  API_URL: apiUrl,
19201
19201
  API_SECRET: token2,
@@ -19266,9 +19266,14 @@ function mergeMcpServer(existing, name, entry) {
19266
19266
  };
19267
19267
  }
19268
19268
 
19269
+ // src/lib/mcp-entry.ts
19270
+ var MCP_SERVER_ENTRY = {
19271
+ command: "npx",
19272
+ args: ["-y", "@pitboss/cli", "mcp"]
19273
+ };
19274
+
19269
19275
  // src/commands/join.ts
19270
19276
  var DEFAULT_API = "https://api.pitboss.dev";
19271
- var MCP_PACKAGE = "@pitboss/cli";
19272
19277
  function git(args, cwd) {
19273
19278
  try {
19274
19279
  return execFileSync2("git", args, { cwd, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim();
@@ -19451,7 +19456,7 @@ async function run(opts) {
19451
19456
  writeConfig({ apiUrl: api, apiToken: agent.token, agentId: agent.data.id, agentName: invite.name, repoId, specialization: invite.specialization ?? void 0 });
19452
19457
  wroteCliConfig = invite.name;
19453
19458
  } else {
19454
- writeMcpConfig(dest, { command: "npx", args: ["-y", MCP_PACKAGE, "mcp"], env: env2 });
19459
+ writeMcpConfig(dest, { ...MCP_SERVER_ENTRY, env: env2 });
19455
19460
  }
19456
19461
  written.push(dest);
19457
19462
  excludeIfUntracked(root, dest);
@@ -19500,11 +19505,8 @@ async function run(opts) {
19500
19505
  }
19501
19506
 
19502
19507
  // src/commands/mcp.ts
19503
- import { spawn as spawn2 } from "node:child_process";
19504
- import { join as join5 } from "node:path";
19505
- function mcpCommand() {
19506
- const child = spawn2(process.execPath, [join5(__dirname, "mcp.js"), ...process.argv.slice(3)], { stdio: "inherit" });
19507
- child.on("exit", (code, signal) => process.exit(signal ? 1 : code ?? 0));
19508
+ async function mcpCommand() {
19509
+ await import(new URL("mcp.js", import.meta.url).href);
19508
19510
  }
19509
19511
 
19510
19512
  // src/commands/watch.ts
@@ -19635,8 +19637,10 @@ async function watchCommand(options) {
19635
19637
  }
19636
19638
 
19637
19639
  // src/index.ts
19640
+ import { fileURLToPath } from "node:url";
19641
+ var __here = dirname4(fileURLToPath(import.meta.url));
19638
19642
  var pkg = JSON.parse(
19639
- readFileSync5(join6(__dirname, "../package.json"), "utf8")
19643
+ readFileSync5(join5(__here, "../package.json"), "utf8")
19640
19644
  );
19641
19645
  var program2 = new Command();
19642
19646
  program2.name("pitboss").description("Coordinate your coding agents from the terminal").version(pkg.version).option("--no-input", "Never prompt; require values via flags").hook("preAction", (thisCommand) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pitboss/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "Connect your coding agents to a pitboss instance",
6
6
  "keywords": [
@@ -46,5 +46,9 @@
46
46
  "tsx": "^4.22.4",
47
47
  "typescript": "^5.4.0",
48
48
  "vitest": "^3.2.7"
49
+ },
50
+ "type": "module",
51
+ "engines": {
52
+ "node": ">=20.12"
49
53
  }
50
54
  }