@sideboard-ai/cli 0.1.107 → 0.1.111

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 (2) hide show
  1. package/dist/index.js +9 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ async function main() {
115
115
  for (const w of s.warnings) console.log(chalk.yellow(` warning: ${w}`));
116
116
  }
117
117
  });
118
- program.command("new").description("Create a thread from branch, PR, or Linear ticket").requiredOption("--from <spec>", "branch:<name>|pr:<n>|ticket:<key>").requiredOption("--agent <agent>", "claude|codex|opencode|brightsy|cursor").option("--repo <path>", "repo path", process.cwd()).option("--title <title>", "thread title").action(async (opts) => {
118
+ program.command("new").description("Create a thread from branch, PR, or Linear ticket").requiredOption("--from <spec>", "branch:<name>|pr:<n>|ticket:<key>").requiredOption("--agent <agent>", "claude|codex|opencode|brightsy|cursor").option("--repo <path>", "repo path", process.cwd()).option("--title <title>", "thread title").option("--cowboy", "work on the project checkout (default branch); requires Settings \u2192 Advanced \u2192 Cowboy mode").action(async (opts) => {
119
119
  await orch.reconcile(opts.repo);
120
120
  const { sourceType, sourceRef } = parseFrom(opts.from);
121
121
  const agent = parseAgent(opts.agent);
@@ -132,7 +132,8 @@ async function main() {
132
132
  sourceRef,
133
133
  agent,
134
134
  repoPath,
135
- title: opts.title
135
+ title: opts.title,
136
+ cowboy: Boolean(opts.cowboy)
136
137
  });
137
138
  console.log(chalk.green(`Created ${thread.id.slice(0, 8)} ${thread.branchName}`));
138
139
  console.log(` worktree: ${thread.worktreePath}`);
@@ -408,14 +409,18 @@ ${preview.diffStat}`);
408
409
  return;
409
410
  }
410
411
  const ok = await confirm(
411
- opts.draft ? "Push and create/update DRAFT PR?" : "Push and create/update PR?"
412
+ preview.cowboy ? `Commit and push directly to ${preview.branch}?` : opts.draft ? "Push and create/update DRAFT PR?" : "Push and create/update PR?"
412
413
  );
413
414
  if (!ok) {
414
415
  console.log("Aborted");
415
416
  return;
416
417
  }
417
418
  const result = await orch.confirmLand(thread, { draft: Boolean(opts.draft) });
418
- console.log(chalk.green(`PR: ${result.prUrl}`));
419
+ if (result.prUrl) {
420
+ console.log(chalk.green(`PR: ${result.prUrl}`));
421
+ } else {
422
+ console.log(chalk.green(`Pushed ${preview.branch}`));
423
+ }
419
424
  });
420
425
  program.command("rm").argument("<thread>", "thread id/ref").option("--purge", "delete record too").option("--delete-branch", "also delete the git branch (with --purge)").action(async (thread, opts) => {
421
426
  if (opts.purge) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sideboard-ai/cli",
3
- "version": "0.1.107",
3
+ "version": "0.1.111",
4
4
  "description": "Sideboard CLI — agent-agnostic worktree orchestration (includes `sideboard mcp`)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  "chalk": "^5.4.1",
17
17
  "commander": "^13.1.0",
18
18
  "ora": "^8.2.0",
19
- "@sideboard-ai/core": "0.1.107"
19
+ "@sideboard-ai/core": "0.1.111"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^22.13.10",