taskplane 0.24.12 → 0.24.14

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.
@@ -1968,8 +1968,15 @@ export function buildExecutionUnit(
1968
1968
  const segmentId = task.task.activeSegmentId ?? null;
1969
1969
  const id = segmentId ?? task.taskId;
1970
1970
 
1971
- const packet = task.task.packetTaskPath
1972
- ? resolvePacketPaths(task.task.packetTaskPath)
1971
+ // Use absolute packetTaskPath ONLY when the packet home repo differs from
1972
+ // the execution repo (cross-repo segment). When they're the same repo,
1973
+ // resolve packet paths inside the worktree so .DONE, STATUS.md etc. are
1974
+ // written to the worktree (not the original repo outside the worktree).
1975
+ const useAbsolutePacketPath = task.task.packetTaskPath
1976
+ && packetHomeRepoId !== executionRepoId;
1977
+
1978
+ const packet = useAbsolutePacketPath
1979
+ ? resolvePacketPaths(task.task.packetTaskPath!)
1973
1980
  : {
1974
1981
  promptPath: resolved.taskFolderResolved + "/PROMPT.md",
1975
1982
  statusPath: resolved.statusPath,
@@ -8,7 +8,7 @@ import { parseDependencyReference } from "./discovery.ts";
8
8
  import { resolveOperatorId } from "./naming.ts";
9
9
  import { AllocationError, buildSegmentId, getTaskDurationMinutes } from "./types.ts";
10
10
  import type { AllocatedLane, AllocatedTask, AllocateLanesResult, AllocationErrorCode, DependencyGraph, DiscoveryError, GraphValidationResult, LaneAssignment, OrchestratorConfig, ParsedTask, TaskSegmentPlan, TaskSegmentPlanMap, WaveAssignment, WaveComputationResult, WorkspaceConfig, WorktreeInfo } from "./types.ts";
11
- import { getCurrentBranch } from "./git.ts";
11
+ import { getCurrentBranch, runGit } from "./git.ts";
12
12
  import { ensureLaneWorktrees, removeAllWorktrees, removeWorktree } from "./worktree.ts";
13
13
 
14
14
  // ── Dependency Graph Construction ────────────────────────────────────
@@ -575,10 +575,13 @@ export function resolveBaseBranch(
575
575
  if (batchBaseBranch.startsWith("orch/") && repoId) {
576
576
  try {
577
577
  const check = runGit(["rev-parse", "--verify", `refs/heads/${batchBaseBranch}`], repoRoot);
578
+ console.error(`[resolveBaseBranch] repoId=${repoId} batchBaseBranch=${batchBaseBranch} repoRoot=${repoRoot} check.ok=${check.ok}`);
578
579
  if (check.ok) {
579
580
  return batchBaseBranch;
580
581
  }
581
- } catch { /* orch branch doesn't exist in this repo — fall through */ }
582
+ } catch (err) {
583
+ console.error(`[resolveBaseBranch] repoId=${repoId} batchBaseBranch=${batchBaseBranch} THREW: ${err}`);
584
+ }
582
585
  }
583
586
 
584
587
  // Step 1: Detect current branch of this specific repo.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskplane",
3
- "version": "0.24.12",
3
+ "version": "0.24.14",
4
4
  "description": "AI agent orchestration for pi — parallel task execution with checkpoint discipline",
5
5
  "keywords": [
6
6
  "pi-package",