@sideboard-ai/cli 0.1.349 → 0.1.350

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 +13 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -75,11 +75,16 @@ async function confirm(question) {
75
75
  });
76
76
  }
77
77
  function parseAgent(raw) {
78
+ if (raw === "gemini" || raw === "copilot" || raw === "acp") return "acp";
78
79
  if (raw === "claude" || raw === "codex" || raw === "opencode" || raw === "brightsy" || raw === "cursor") {
79
80
  return raw;
80
81
  }
81
82
  throw new Error(`Unknown agent: ${raw}`);
82
83
  }
84
+ function parseAcpHarness(raw) {
85
+ if (raw === "gemini" || raw === "copilot") return raw;
86
+ return void 0;
87
+ }
83
88
  function parseFrom(raw) {
84
89
  const idx = raw.indexOf(":");
85
90
  if (idx === -1) throw new Error(`--from must be branch:<name>|pr:<n>|ticket:<key>, got ${raw}`);
@@ -106,7 +111,7 @@ async function main() {
106
111
  const ok = s.installed && s.authenticated;
107
112
  const mark = ok ? chalk.green("\u2713") : chalk.red("\u2717");
108
113
  console.log(
109
- `${mark} ${chalk.bold(s.agent)} installed=${s.installed} auth=${s.authenticated} linearMcp=${s.linearMcp}`
114
+ `${mark} ${chalk.bold(s.label ?? s.agent)} installed=${s.installed} auth=${s.authenticated} linearMcp=${s.linearMcp}`
110
115
  );
111
116
  if (s.reason) console.log(chalk.yellow(` ${s.reason}`));
112
117
  for (const w of s.warnings) console.log(chalk.yellow(` warning: ${w}`));
@@ -114,10 +119,11 @@ async function main() {
114
119
  });
115
120
  program.command("new").description(
116
121
  "Create a thread from branch, PR, or ticket (empty ticket prompt starts \u201CResolve this issue.\u201D)"
117
- ).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) => {
122
+ ).requiredOption("--from <spec>", "branch:<name>|pr:<n>|ticket:<key>").requiredOption("--agent <agent>", "claude|codex|opencode|brightsy|cursor|gemini|copilot").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) => {
118
123
  await orch.reconcile(opts.repo);
119
124
  const { sourceType, sourceRef } = parseFrom(opts.from);
120
125
  const agent = parseAgent(opts.agent);
126
+ const acpHarness = parseAcpHarness(opts.agent);
121
127
  const repoPath = await resolveRepoRoot(opts.repo);
122
128
  console.log(chalk.dim(`Creating ${sourceType} thread in ${repoPath}\u2026`));
123
129
  const hook = settingsSourceLabel(repoPath);
@@ -130,15 +136,16 @@ async function main() {
130
136
  sourceType,
131
137
  sourceRef,
132
138
  agent,
139
+ ...acpHarness ? { acpHarness } : {},
133
140
  repoPath,
134
141
  title: opts.title,
135
142
  cowboy: Boolean(opts.cowboy)
136
143
  });
137
144
  console.log(chalk.green(`Created ${thread.id.slice(0, 8)} ${thread.branchName}`));
138
145
  console.log(` worktree: ${thread.worktreePath}`);
139
- console.log(` agent: ${thread.agent}`);
146
+ console.log(` agent: ${thread.acpHarness ?? thread.agent}`);
140
147
  });
141
- program.command("adopt").description("Adopt an existing worktree or import from Conductor").argument("[path]", "worktree path").option("--agent <agent>", "claude|codex|opencode|brightsy|cursor", "claude").option("--from-conductor", "import from Conductor DB").option("--all", "import all Conductor workspaces").option("--id <id>", "Conductor workspace id").action(async (path, opts) => {
148
+ program.command("adopt").description("Adopt an existing worktree or import from Conductor").argument("[path]", "worktree path").option("--agent <agent>", "claude|codex|opencode|brightsy|cursor|gemini|copilot", "claude").option("--from-conductor", "import from Conductor DB").option("--all", "import all Conductor workspaces").option("--id <id>", "Conductor workspace id").action(async (path, opts) => {
142
149
  if (opts.fromConductor) {
143
150
  const workspaces = orch.listConductor();
144
151
  if (opts.all) {
@@ -184,7 +191,8 @@ async function main() {
184
191
  if (!path) throw new Error("Provide a worktree path or --from-conductor");
185
192
  const t = await orch.adopt({
186
193
  worktreePath: path,
187
- agent: parseAgent(opts.agent)
194
+ agent: parseAgent(opts.agent),
195
+ ...parseAcpHarness(opts.agent) ? { acpHarness: parseAcpHarness(opts.agent) } : {}
188
196
  });
189
197
  console.log(chalk.green(`Adopted ${t.id.slice(0, 8)} ${t.branchName}`));
190
198
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sideboard-ai/cli",
3
- "version": "0.1.349",
3
+ "version": "0.1.350",
4
4
  "description": "Sideboard CLI — agent-agnostic worktree orchestration (includes `sideboard mcp`)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",