taskplane 0.24.26 → 0.24.28
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 -2
- package/package.json +1 -1
package/bin/taskplane.mjs
CHANGED
|
@@ -910,7 +910,7 @@ function generateWorkspaceYaml(repoNames, defaultRepo, tasksRoot) {
|
|
|
910
910
|
const reposBlock = repoNames
|
|
911
911
|
.map((name) => ` ${name}:\n path: "${name}"`)
|
|
912
912
|
.join("\n");
|
|
913
|
-
return `repos:\n${reposBlock}\nrouting:\n tasks_root: "${tasksRoot}"\n default_repo: "${defaultRepo}"\n`;
|
|
913
|
+
return `repos:\n${reposBlock}\nrouting:\n tasks_root: "${tasksRoot}"\n default_repo: "${defaultRepo}"\n task_packet_repo: "${defaultRepo}"\n`;
|
|
914
914
|
}
|
|
915
915
|
|
|
916
916
|
function readWorkspaceJson(configRepoRoot) {
|
|
@@ -2012,7 +2012,12 @@ async function cmdInit(args) {
|
|
|
2012
2012
|
);
|
|
2013
2013
|
|
|
2014
2014
|
// CONTEXT.md — tasks area context
|
|
2015
|
-
|
|
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"),
|