@damper/cli 0.2.2 → 0.2.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/index.js +1 -1
- package/dist/services/worktree.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { startCommand } from './commands/start.js';
|
|
|
4
4
|
import { statusCommand } from './commands/status.js';
|
|
5
5
|
import { cleanupCommand } from './commands/cleanup.js';
|
|
6
6
|
import { setupCommand } from './commands/setup.js';
|
|
7
|
-
const VERSION = '0.2.
|
|
7
|
+
const VERSION = '0.2.3';
|
|
8
8
|
function showHelp() {
|
|
9
9
|
console.log(`
|
|
10
10
|
${pc.bold('@damper/cli')} - Agent orchestration for Damper tasks
|
|
@@ -156,8 +156,10 @@ export async function createWorktree(options) {
|
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
const projectName = getProjectName(projectRoot);
|
|
159
|
+
const shortTaskId = taskId.slice(0, 8);
|
|
159
160
|
const slug = slugify(taskTitle);
|
|
160
|
-
|
|
161
|
+
// Use short task ID for directory (keeps paths short), full slug for branch (more descriptive)
|
|
162
|
+
const worktreePath = path.resolve(projectRoot, '..', `${projectName}-${shortTaskId}`);
|
|
161
163
|
const branchName = `feature/${slug}`;
|
|
162
164
|
// Check if worktree directory already exists
|
|
163
165
|
if (fs.existsSync(worktreePath)) {
|