taskplane 0.24.27 → 0.24.29

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 CHANGED
@@ -2012,7 +2012,12 @@ async function cmdInit(args) {
2012
2012
  );
2013
2013
 
2014
2014
  // CONTEXT.md — tasks area context
2015
- const tasksDir = path.join(configRepoRoot, vars.tasks_root);
2015
+ // tasks_root is workspace-relative (e.g., "shared-libs/task-management/...").
2016
+ // Strip the config repo prefix when resolving inside the config repo root.
2017
+ const tasksRootInRepo = vars.tasks_root.startsWith(configRepoName + "/")
2018
+ ? vars.tasks_root.slice(configRepoName.length + 1)
2019
+ : vars.tasks_root;
2020
+ const tasksDir = path.join(configRepoRoot, tasksRootInRepo);
2016
2021
  const contextSrc = fs.readFileSync(path.join(TEMPLATES_DIR, "tasks", "CONTEXT.md"), "utf-8");
2017
2022
  writeFile(
2018
2023
  path.join(tasksDir, "CONTEXT.md"),
@@ -885,11 +885,14 @@ export function applyGlobalPreferences(config: TaskplaneConfig, prefs: GlobalPre
885
885
  * workspace-only roots participate in config-root resolution.
886
886
  */
887
887
  export function hasConfigFiles(root: string): boolean {
888
+ // Check for actual project config files (not workspace YAML — that's a
889
+ // coordination file, not a project config). Without this distinction,
890
+ // workspace root's .pi/taskplane-workspace.yaml causes resolveConfigRoot
891
+ // to short-circuit before checking the pointer-resolved config root (#424).
888
892
  const files = [
889
893
  PROJECT_CONFIG_FILENAME,
890
894
  "task-runner.yaml",
891
895
  "task-orchestrator.yaml",
892
- "taskplane-workspace.yaml",
893
896
  ];
894
897
  for (const f of files) {
895
898
  if (existsSync(join(root, ".pi", f)) || existsSync(join(root, f))) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskplane",
3
- "version": "0.24.27",
3
+ "version": "0.24.29",
4
4
  "description": "AI agent orchestration for pi — parallel task execution with checkpoint discipline",
5
5
  "keywords": [
6
6
  "pi-package",