@pitboss/cli 0.1.0 → 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.
- package/README.md +2 -2
- package/dist/cli.js +18 -5
- package/package.json +6 -3
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
|
|
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 join5 } 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: ["@
|
|
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, {
|
|
19459
|
+
writeMcpConfig(dest, { ...MCP_SERVER_ENTRY, env: env2 });
|
|
19455
19460
|
}
|
|
19456
19461
|
written.push(dest);
|
|
19457
19462
|
excludeIfUntracked(root, dest);
|
|
@@ -19499,6 +19504,11 @@ async function run(opts) {
|
|
|
19499
19504
|
console.log(source_default.dim(" A running MCP client keeps the tool schema it got at initialize.\n"));
|
|
19500
19505
|
}
|
|
19501
19506
|
|
|
19507
|
+
// src/commands/mcp.ts
|
|
19508
|
+
async function mcpCommand() {
|
|
19509
|
+
await import(new URL("mcp.js", import.meta.url).href);
|
|
19510
|
+
}
|
|
19511
|
+
|
|
19502
19512
|
// src/commands/watch.ts
|
|
19503
19513
|
function truncate(s, n) {
|
|
19504
19514
|
const clean = (s ?? "").replace(/\s+/g, " ").trim();
|
|
@@ -19627,13 +19637,16 @@ async function watchCommand(options) {
|
|
|
19627
19637
|
}
|
|
19628
19638
|
|
|
19629
19639
|
// src/index.ts
|
|
19640
|
+
import { fileURLToPath } from "node:url";
|
|
19641
|
+
var __here = dirname4(fileURLToPath(import.meta.url));
|
|
19630
19642
|
var pkg = JSON.parse(
|
|
19631
|
-
readFileSync5(join5(
|
|
19643
|
+
readFileSync5(join5(__here, "../package.json"), "utf8")
|
|
19632
19644
|
);
|
|
19633
19645
|
var program2 = new Command();
|
|
19634
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) => {
|
|
19635
19647
|
if (thisCommand.opts().input === false) process.env.RELAI_NO_INPUT = "1";
|
|
19636
19648
|
});
|
|
19649
|
+
program2.command("mcp", { hidden: true }).description("Run the MCP server on stdio (used by agent config, not by hand)").allowUnknownOption().action(mcpCommand);
|
|
19637
19650
|
program2.command("join").description("Connect this machine's agents: opens a code you approve in the browser").option("--api <url>", "API base URL of your pitboss instance (defaults to the hosted one)").action(joinCommand);
|
|
19638
19651
|
program2.command("init").description("Alias for `join`, kept so existing docs keep working").option("--api <url>", "relai API base URL (defaults to the hosted one)").action(joinCommand);
|
|
19639
19652
|
program2.command("status").description("Show your agent info, online agents, task summary, and unread count").action(statusCommand);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pitboss/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Connect your coding agents to a pitboss instance",
|
|
6
6
|
"keywords": [
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"bin": {
|
|
29
|
-
"pitboss": "dist/cli.js"
|
|
30
|
-
"pitboss-mcp": "dist/mcp.js"
|
|
29
|
+
"pitboss": "dist/cli.js"
|
|
31
30
|
},
|
|
32
31
|
"files": [
|
|
33
32
|
"dist",
|
|
@@ -47,5 +46,9 @@
|
|
|
47
46
|
"tsx": "^4.22.4",
|
|
48
47
|
"typescript": "^5.4.0",
|
|
49
48
|
"vitest": "^3.2.7"
|
|
49
|
+
},
|
|
50
|
+
"type": "module",
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=20.12"
|
|
50
53
|
}
|
|
51
54
|
}
|