taskplane 0.2.1 → 0.2.2
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.
|
@@ -34,6 +34,7 @@ import { deleteBranchBestEffort, forceCleanupWorktree, formatPreflightResults, l
|
|
|
34
34
|
* @param onNotify - Callback for user-facing messages
|
|
35
35
|
* @param onMonitorUpdate - Optional callback for dashboard updates
|
|
36
36
|
* @param workspaceConfig - Workspace configuration for repo routing (null = repo mode)
|
|
37
|
+
* @param workspaceRoot - Workspace root for resolving task area paths (defaults to cwd)
|
|
37
38
|
*/
|
|
38
39
|
export async function executeOrchBatch(
|
|
39
40
|
args: string,
|
|
@@ -44,6 +45,7 @@ export async function executeOrchBatch(
|
|
|
44
45
|
onNotify: (message: string, level: "info" | "warning" | "error") => void,
|
|
45
46
|
onMonitorUpdate?: MonitorUpdateCallback,
|
|
46
47
|
workspaceConfig?: WorkspaceConfig | null,
|
|
48
|
+
workspaceRoot?: string,
|
|
47
49
|
): Promise<void> {
|
|
48
50
|
const repoRoot = cwd;
|
|
49
51
|
|
|
@@ -94,8 +96,10 @@ export async function executeOrchBatch(
|
|
|
94
96
|
return;
|
|
95
97
|
}
|
|
96
98
|
|
|
97
|
-
// Discovery
|
|
98
|
-
|
|
99
|
+
// Discovery — task area paths in task-runner.yaml are workspace-relative.
|
|
100
|
+
// In repo mode workspaceRoot === repoRoot, so this is always correct.
|
|
101
|
+
const discoveryRoot = workspaceRoot ?? cwd;
|
|
102
|
+
const discovery = runDiscovery(args, runnerConfig.task_areas, discoveryRoot, {
|
|
99
103
|
refreshDependencies: false,
|
|
100
104
|
dependencySource: orchConfig.dependencies.source,
|
|
101
105
|
useDependencyCache: orchConfig.dependencies.cache,
|
|
@@ -207,6 +207,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
207
207
|
if (changed) updateOrchWidget(); // Only refresh on actual state change
|
|
208
208
|
},
|
|
209
209
|
execCtx!.workspaceConfig,
|
|
210
|
+
execCtx!.workspaceRoot,
|
|
210
211
|
);
|
|
211
212
|
|
|
212
213
|
// Final widget update after batch completes
|
|
@@ -257,9 +258,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
257
258
|
if (!preflight.passed) return;
|
|
258
259
|
|
|
259
260
|
// ── Section 2: Discovery ─────────────────────────────────
|
|
260
|
-
// Discovery
|
|
261
|
-
//
|
|
262
|
-
const discovery = runDiscovery(cleanArgs, runnerConfig.task_areas, execCtx!.
|
|
261
|
+
// Discovery resolves task area paths relative to workspaceRoot (not repoRoot),
|
|
262
|
+
// because task_areas in task-runner.yaml are workspace-relative paths.
|
|
263
|
+
const discovery = runDiscovery(cleanArgs, runnerConfig.task_areas, execCtx!.workspaceRoot, {
|
|
263
264
|
refreshDependencies: hasRefresh,
|
|
264
265
|
dependencySource: orchConfig.dependencies.source,
|
|
265
266
|
useDependencyCache: orchConfig.dependencies.cache,
|
|
@@ -608,8 +609,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
608
609
|
}
|
|
609
610
|
|
|
610
611
|
// Run discovery (no preflight needed for deps view).
|
|
611
|
-
//
|
|
612
|
-
const discovery = runDiscovery(cleanArgs, runnerConfig.task_areas, execCtx!.
|
|
612
|
+
// Task area paths are workspace-relative, so use workspaceRoot.
|
|
613
|
+
const discovery = runDiscovery(cleanArgs, runnerConfig.task_areas, execCtx!.workspaceRoot, {
|
|
613
614
|
refreshDependencies: hasRefresh,
|
|
614
615
|
dependencySource: orchConfig.dependencies.source,
|
|
615
616
|
useDependencyCache: orchConfig.dependencies.cache,
|