@clipboard-health/groundcrew 1.10.0 → 1.10.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.
@@ -1 +1 @@
1
- {"version":3,"file":"setupWorkspace.d.ts","sourceRoot":"","sources":["../../src/commands/setupWorkspace.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAa1B,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAgBD,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,wEAAwE;IACxE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAkED,wBAAsB,cAAc,CAClC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,qBAAqB,EAC9B,UAAU,GAAE,wBAA6B,GACxC,OAAO,CAAC,IAAI,CAAC,CA6Ef;AAuHD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GACjC,OAAO,CAAC,IAAI,CAAC,CAoBf"}
1
+ {"version":3,"file":"setupWorkspace.d.ts","sourceRoot":"","sources":["../../src/commands/setupWorkspace.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAa1B,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAgBD,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,wEAAwE;IACxE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAsED,wBAAsB,cAAc,CAClC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,qBAAqB,EAC9B,UAAU,GAAE,wBAA6B,GACxC,OAAO,CAAC,IAAI,CAAC,CA8Ef;AAuHD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GACjC,OAAO,CAAC,IAAI,CAAC,CAoBf"}
@@ -54,6 +54,9 @@ function stageLaunchScript(promptDir, command) {
54
54
  writeFileSync(launcherFile, `#!/usr/bin/env bash\n${command}\n`, { mode: 0o700 });
55
55
  return launcherFile;
56
56
  }
57
+ function stageWorkspaceLaunchCommand(promptDir, command) {
58
+ return `bash ${shellSingleQuote(stageLaunchScript(promptDir, command))}`;
59
+ }
57
60
  function stagePrompt(input) {
58
61
  const promptDir = mkdtempSync(join(tmpdir(), `groundcrew-${input.ticket}-`));
59
62
  const promptFile = join(promptDir, "prompt.txt");
@@ -109,12 +112,13 @@ export async function setupWorkspace(config, options, runOptions = {}) {
109
112
  const stagedPrompt = stagePrompt({ config, ticket, ticketDetails, worktreeName });
110
113
  promptDir = stagedPrompt.directory;
111
114
  const secretsFile = stageBuildSecrets(promptDir);
112
- const launchCmd = buildLaunchCommand({
115
+ const launchCommand = buildLaunchCommand({
113
116
  definition,
114
117
  promptFile: stagedPrompt.file,
115
118
  worktreeDir: launchDir,
116
119
  secretsFile,
117
120
  });
121
+ const launchCmd = stageWorkspaceLaunchCommand(promptDir, launchCommand);
118
122
  log("Opening workspace...");
119
123
  await workspaces.open(config, {
120
124
  name: ticket,
@@ -171,7 +175,7 @@ async function setupRemoteWorkspace(arguments_) {
171
175
  secretNames: config.remote.secretNames,
172
176
  ...(secretsFile === undefined ? {} : { secretsFile, remoteSecretsFile }),
173
177
  });
174
- const launchCmd = `bash ${shellSingleQuote(stageLaunchScript(promptDir, remoteLaunchCommand))}`;
178
+ const launchCmd = stageWorkspaceLaunchCommand(promptDir, remoteLaunchCommand);
175
179
  log("Opening workspace...");
176
180
  await workspaces.open(config, {
177
181
  name: ticket,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/groundcrew",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Linear-driven orchestrator that launches AI coding agents in git worktrees, with workspace lifecycle, remote runners, and usage tracking.",
5
5
  "keywords": [
6
6
  "agent",