@abuaboud/box 0.7.14 → 0.7.16
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/cbox.mjs +11 -0
- package/package.json +1 -1
package/dist/cbox.mjs
CHANGED
|
@@ -1310,6 +1310,16 @@ async function setup() {
|
|
|
1310
1310
|
if (missing.length) miss(`Before @${brand.name} can start agents as you, ${missing.join(" and ")}: ${new URL("/boxes?new", load().server)}`);
|
|
1311
1311
|
else ok("Claude and GitHub are connected");
|
|
1312
1312
|
}
|
|
1313
|
+
async function submit(issues, o) {
|
|
1314
|
+
const env = await chooseEnvironment(o.env, gitRepo());
|
|
1315
|
+
const body = { envId: env.id, issues: issues.map((text) => {
|
|
1316
|
+
const [title, ...rest] = text.trim().split("\n");
|
|
1317
|
+
return { title: title.trim().slice(0, 200), prompt: rest.join("\n").trim() || title.trim() };
|
|
1318
|
+
}) };
|
|
1319
|
+
const { data } = await api("/api/issues", { method: "POST", body: JSON.stringify(body) });
|
|
1320
|
+
const width = Math.max(...data.map((s) => s.title.length)) + 2;
|
|
1321
|
+
for (const s of data) s.agent ? ok(`${s.title.padEnd(width)}${dim(`${s.agent} \xB7 ${s.url}`)}`) : miss(`${s.title.padEnd(width)}${dim(s.error ?? `already submitted \xB7 ${s.url}`)}`);
|
|
1322
|
+
}
|
|
1313
1323
|
var quiet = ["proxy", "sync"].includes(process.argv[2] ?? "");
|
|
1314
1324
|
if (quiet) console.log = console.error;
|
|
1315
1325
|
if (!quiet && !process.env.CBOX_UPDATED && !process.argv.slice(2).some((a) => ["-V", "--version", "-h", "--help", "help"].includes(a))) console.log(dim(`${brand.command} ${VERSION}`));
|
|
@@ -1323,6 +1333,7 @@ boxOptions(cli.command("new").description("always make a fresh agent")).action((
|
|
|
1323
1333
|
cli.command("ls").description("list your agents").action(ls);
|
|
1324
1334
|
cli.command("code [env]").description("open an environment's agents in one VS Code window, each a git worktree, and sync your saves").action((env) => code(env));
|
|
1325
1335
|
cli.command("rm <agent>").option("-f, --force", "delete even while someone is attached or Claude is working").description("delete an agent, pushing unpushed work to cb/<agent>").action(rm);
|
|
1336
|
+
cli.command("submit <issue...>").option("-e, --env <name>", "environment (default: this repo's, or asked)").description("start one agent per issue; the first line of each issue is its title").action(submit);
|
|
1326
1337
|
cli.command("setup").description(`send your skills, plugins and CLAUDE.md for @${brand.name} and webhooks, and check Claude and GitHub`).action(setup);
|
|
1327
1338
|
cli.command("login").option("--server <url>", `${brand.name} server`).description("sign in from the browser").action((o) => login(o.server));
|
|
1328
1339
|
cli.command("upgrade").description(`update ${brand.command} to the latest version now`).action(upgrade);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abuaboud/box",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.16",
|
|
4
4
|
"description": "skyfleet: Claude Code on your laptop, the work on a cloud dev machine (a ship) you reach as <name>.skyfleet, with your team databases through MCP.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|