taskplane 0.1.4 → 0.1.5
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/bin/taskplane.mjs +7 -3
- package/package.json +1 -1
package/bin/taskplane.mjs
CHANGED
|
@@ -215,7 +215,7 @@ orchestrator:
|
|
|
215
215
|
integration_branch: "${vars.integration_branch}"
|
|
216
216
|
batch_id_format: "timestamp"
|
|
217
217
|
spawn_mode: "subprocess"
|
|
218
|
-
tmux_prefix: "
|
|
218
|
+
tmux_prefix: "${vars.tmux_prefix}"
|
|
219
219
|
|
|
220
220
|
dependencies:
|
|
221
221
|
source: "prompt"
|
|
@@ -419,12 +419,14 @@ async function cmdInit(args) {
|
|
|
419
419
|
|
|
420
420
|
function getPresetVars(preset, projectRoot) {
|
|
421
421
|
const dirName = path.basename(projectRoot);
|
|
422
|
+
const slug = slugify(dirName);
|
|
422
423
|
const { test: test_cmd, build: build_cmd } = detectStack(projectRoot);
|
|
423
424
|
return {
|
|
424
425
|
project_name: dirName,
|
|
425
426
|
integration_branch: "main",
|
|
426
427
|
max_lanes: 3,
|
|
427
|
-
worktree_prefix: `${
|
|
428
|
+
worktree_prefix: `${slug}-wt`,
|
|
429
|
+
tmux_prefix: `${slug}-orch`,
|
|
428
430
|
tasks_root: "taskplane-tasks",
|
|
429
431
|
default_area: "general",
|
|
430
432
|
default_prefix: "TP",
|
|
@@ -447,11 +449,13 @@ async function getInteractiveVars(projectRoot) {
|
|
|
447
449
|
const test_cmd = await ask("Test command (agents run this to verify work — blank to skip)", detected.test || "");
|
|
448
450
|
const build_cmd = await ask("Build command (agents run this after tests — blank to skip)", detected.build || "");
|
|
449
451
|
|
|
452
|
+
const slug = slugify(project_name);
|
|
450
453
|
return {
|
|
451
454
|
project_name,
|
|
452
455
|
integration_branch,
|
|
453
456
|
max_lanes,
|
|
454
|
-
worktree_prefix: `${
|
|
457
|
+
worktree_prefix: `${slug}-wt`,
|
|
458
|
+
tmux_prefix: `${slug}-orch`,
|
|
455
459
|
tasks_root,
|
|
456
460
|
default_area,
|
|
457
461
|
default_prefix,
|