@pitboss/cli 0.1.0 → 0.1.1
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/dist/cli.js +12 -3
- package/package.json +2 -3
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
|
|
14709
|
+
import { join as join6 } 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);
|
|
@@ -19451,7 +19451,7 @@ async function run(opts) {
|
|
|
19451
19451
|
writeConfig({ apiUrl: api, apiToken: agent.token, agentId: agent.data.id, agentName: invite.name, repoId, specialization: invite.specialization ?? void 0 });
|
|
19452
19452
|
wroteCliConfig = invite.name;
|
|
19453
19453
|
} else {
|
|
19454
|
-
writeMcpConfig(dest, { command: "npx", args: ["-y",
|
|
19454
|
+
writeMcpConfig(dest, { command: "npx", args: ["-y", MCP_PACKAGE, "mcp"], env: env2 });
|
|
19455
19455
|
}
|
|
19456
19456
|
written.push(dest);
|
|
19457
19457
|
excludeIfUntracked(root, dest);
|
|
@@ -19499,6 +19499,14 @@ async function run(opts) {
|
|
|
19499
19499
|
console.log(source_default.dim(" A running MCP client keeps the tool schema it got at initialize.\n"));
|
|
19500
19500
|
}
|
|
19501
19501
|
|
|
19502
|
+
// 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
|
+
}
|
|
19509
|
+
|
|
19502
19510
|
// src/commands/watch.ts
|
|
19503
19511
|
function truncate(s, n) {
|
|
19504
19512
|
const clean = (s ?? "").replace(/\s+/g, " ").trim();
|
|
@@ -19628,12 +19636,13 @@ async function watchCommand(options) {
|
|
|
19628
19636
|
|
|
19629
19637
|
// src/index.ts
|
|
19630
19638
|
var pkg = JSON.parse(
|
|
19631
|
-
readFileSync5(
|
|
19639
|
+
readFileSync5(join6(__dirname, "../package.json"), "utf8")
|
|
19632
19640
|
);
|
|
19633
19641
|
var program2 = new Command();
|
|
19634
19642
|
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
19643
|
if (thisCommand.opts().input === false) process.env.RELAI_NO_INPUT = "1";
|
|
19636
19644
|
});
|
|
19645
|
+
program2.command("mcp", { hidden: true }).description("Run the MCP server on stdio (used by agent config, not by hand)").allowUnknownOption().action(mcpCommand);
|
|
19637
19646
|
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
19647
|
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
19648
|
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.1",
|
|
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",
|