@botbuddy/cli 1.8.2 → 1.8.3
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/pw.mjs +10 -0
- package/package.json +2 -1
- package/src/commands.mjs +2 -1
- package/src/pw/run.mjs +1 -1
package/bin/pw.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// BOT-1491: `pw` is the first-class short binary for the lock-gated Playwright
|
|
3
|
+
// lane driver. `bb-pw` remains a working alias (bin/bb-pw.mjs) and
|
|
4
|
+
// `botbuddy pw …` the subcommand — all three call the same runPw entrypoint.
|
|
5
|
+
import { runPw } from "../src/pw/run.mjs";
|
|
6
|
+
|
|
7
|
+
runPw(process.argv.slice(2)).then((code) => process.exit(code)).catch((error) => {
|
|
8
|
+
console.error(`pw: ${error?.message ?? error}`);
|
|
9
|
+
process.exit(1);
|
|
10
|
+
});
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botbuddy/cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "BotBuddy — Swarm coordination CLI for multi-agent workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"botbuddy": "./bin/botbuddy.mjs",
|
|
8
|
+
"pw": "./bin/pw.mjs",
|
|
8
9
|
"bb-pw": "./bin/bb-pw.mjs"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
package/src/commands.mjs
CHANGED
|
@@ -105,7 +105,8 @@ ${bold("AGENT WAITS")}
|
|
|
105
105
|
|
|
106
106
|
${bold("BROWSER LANES")}
|
|
107
107
|
pw <lane> <verb> [args…] Drive a lock-gated Playwright lane
|
|
108
|
-
|
|
108
|
+
(also the short ${cyan("pw")} binary, or ${cyan("bb-pw")} alias)
|
|
109
|
+
pw --help Show lane usage
|
|
109
110
|
|
|
110
111
|
${bold("OTHER")}
|
|
111
112
|
locks -m [--host name] Reserve typed local resources, including Playwright MCP lanes
|
package/src/pw/run.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { loadConfig, getConfig } from "../config.mjs";
|
|
|
11
11
|
// server-side, so the lane name bb-pw builds/matches/prints is the one the lock
|
|
12
12
|
// kernel actually stored ("jonos-mbp:8", not "Jonos-MBP.localdomain:8").
|
|
13
13
|
const hostFor = (env) => canonicalizeHostString(env.PLAYWRIGHT_MCP_HOST || env.HOSTNAME || os.hostname());
|
|
14
|
-
function help(out) { out.write("Usage:
|
|
14
|
+
function help(out) { out.write("Usage: pw [--profile <name>] [--session-id <id>] <lane> <verb> [args…]\n\nAliases: bb-pw <lane> <verb> [args…] · botbuddy pw <lane> <verb> [args…]\n (all three drive the same lock-gated Playwright lane)\n\n--session-id <id> accept a lane held by this arming-session agent id (from\n register_agent); defaults to $BOTBUDDY_SESSION_ID, then the\n id saved by `botbuddy register`.\n"); }
|
|
15
15
|
function redact(value, secretValues = []) { return secretValues.reduce((text, secret) => secret ? text.split(secret).join("[redacted]") : text, String(value ?? "")); }
|
|
16
16
|
// BOT-1488: the register_agent identity for this machine, persisted by
|
|
17
17
|
// `botbuddy register` into ~/.botbuddy/config.json. This is the SESSION agent
|