@dhananjay_kaushik/claude-orchestrator 0.1.1 → 0.1.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/dist/cli.js CHANGED
@@ -1,9 +1,11 @@
1
+ import { createRequire } from 'node:module';
1
2
  import { Command } from 'commander';
3
+ const { version } = createRequire(import.meta.url)('../package.json');
2
4
  export const program = new Command();
3
5
  program
4
6
  .name('claude-orchestrator')
5
7
  .description('Stateful Workflow Engine on top of Claude Code')
6
- .version('0.1.0')
8
+ .version(version)
7
9
  .option('-c, --config <path>', 'path to config file')
8
10
  .option('-v, --verbose', 'enable verbose logging');
9
11
  import { runInitCommand } from './commands/init.js';
@@ -51,6 +51,7 @@ export async function createWorktree(worktreePath, branchName, baseBranch, cwd =
51
51
  catch {
52
52
  // Ignore error
53
53
  }
54
+ await execa('git', ['worktree', 'prune'], { cwd });
54
55
  try {
55
56
  if (branchExists) {
56
57
  await execa('git', ['worktree', 'add', worktreePath, branchName], { cwd });
@@ -60,7 +61,7 @@ export async function createWorktree(worktreePath, branchName, baseBranch, cwd =
60
61
  }
61
62
  }
62
63
  catch (error) {
63
- if (!error.message.includes('already exists')) {
64
+ if (!error.message.includes('already exists') && !error.message.includes('already used by worktree')) {
64
65
  throw error;
65
66
  }
66
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhananjay_kaushik/claude-orchestrator",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Stateful Workflow Engine on top of Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,14 +13,6 @@
13
13
  "README.md",
14
14
  "LICENSE"
15
15
  ],
16
- "scripts": {
17
- "build": "tsc -p tsconfig.build.json",
18
- "typecheck": "tsc --noEmit",
19
- "lint": "eslint .",
20
- "format": "prettier --write .",
21
- "test": "vitest run",
22
- "prepublishOnly": "npm run build"
23
- },
24
16
  "keywords": [
25
17
  "claude",
26
18
  "orchestrator",
@@ -59,5 +51,12 @@
59
51
  "execa": "^9.6.1",
60
52
  "picocolors": "^1.1.1",
61
53
  "zod": "^4.4.3"
54
+ },
55
+ "scripts": {
56
+ "build": "tsc -p tsconfig.build.json",
57
+ "typecheck": "tsc --noEmit",
58
+ "lint": "eslint .",
59
+ "format": "prettier --write .",
60
+ "test": "vitest run"
62
61
  }
63
- }
62
+ }