maxsimcli 4.15.3 → 4.15.4
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/dist/assets/CHANGELOG.md +7 -0
- package/dist/assets/hooks/maxsim-statusline.cjs +46 -7
- package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
- package/dist/assets/templates/references/git-planning-commit.md +1 -1
- package/dist/assets/templates/references/questioning.md +1 -1
- package/dist/assets/templates/templates/codebase/structure.md +1 -1
- package/dist/assets/templates/templates/milestone-archive.md +3 -3
- package/dist/assets/templates/workflows/batch.md +2 -3
- package/dist/assets/templates/workflows/diagnose-issues.md +6 -6
- package/dist/assets/templates/workflows/discovery-phase.md +6 -7
- package/dist/assets/templates/workflows/discuss-phase.md +8 -11
- package/dist/assets/templates/workflows/execute-phase.md +5 -49
- package/dist/assets/templates/workflows/execute-plan.md +0 -6
- package/dist/assets/templates/workflows/go.md +2 -2
- package/dist/assets/templates/workflows/help.md +1 -1
- package/dist/assets/templates/workflows/init-existing.md +0 -5
- package/dist/assets/templates/workflows/new-milestone.md +2 -7
- package/dist/assets/templates/workflows/new-project.md +0 -5
- package/dist/assets/templates/workflows/quick.md +0 -1
- package/dist/assets/templates/workflows/sdd.md +0 -2
- package/dist/assets/templates/workflows/settings.md +2 -7
- package/dist/assets/templates/workflows/verify-work.md +2 -16
- package/dist/cli.cjs +11 -56
- package/dist/cli.cjs.map +1 -1
- package/dist/core-D5zUr9cb.cjs.map +1 -1
- package/dist/install.cjs +10 -26
- package/dist/install.cjs.map +1 -1
- package/dist/mcp-server.cjs +2 -38
- package/dist/mcp-server.cjs.map +1 -1
- package/dist/skills-CjFWZIGM.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/assets/templates/references/dashboard-bridge.md +0 -59
- package/dist/assets/templates/workflows/plan-phase.md +0 -501
package/dist/mcp-server.cjs
CHANGED
|
@@ -27022,23 +27022,6 @@ async function findPhaseInternal(cwd, phase) {
|
|
|
27022
27022
|
} catch (e) {
|
|
27023
27023
|
debugLog("find-phase-async-archive-search-failed", e);
|
|
27024
27024
|
}
|
|
27025
|
-
const milestonesDir = planningPath(cwd, "milestones");
|
|
27026
|
-
if (!await pathExistsInternal(milestonesDir)) return null;
|
|
27027
|
-
try {
|
|
27028
|
-
const archiveDirs = (await node_fs.promises.readdir(milestonesDir, { withFileTypes: true })).filter((e) => e.isDirectory() && /^v[\d.]+-phases$/.test(e.name)).map((e) => e.name).sort().reverse();
|
|
27029
|
-
for (const archiveName of archiveDirs) {
|
|
27030
|
-
const versionMatch = archiveName.match(/^(v[\d.]+)-phases$/);
|
|
27031
|
-
if (!versionMatch) continue;
|
|
27032
|
-
const version = versionMatch[1];
|
|
27033
|
-
const result = await searchPhaseInDir(node_path.default.join(milestonesDir, archiveName), node_path.default.join(".planning", "milestones", archiveName), normalized);
|
|
27034
|
-
if (result) {
|
|
27035
|
-
result.archived = version;
|
|
27036
|
-
return result;
|
|
27037
|
-
}
|
|
27038
|
-
}
|
|
27039
|
-
} catch (e) {
|
|
27040
|
-
debugLog("find-phase-async-milestone-search-failed", e);
|
|
27041
|
-
}
|
|
27042
27025
|
return null;
|
|
27043
27026
|
}
|
|
27044
27027
|
async function getArchivedPhaseDirs(cwd) {
|
|
@@ -27059,25 +27042,6 @@ async function getArchivedPhaseDirs(cwd) {
|
|
|
27059
27042
|
} catch (e) {
|
|
27060
27043
|
debugLog("get-archived-phase-dirs-async-archive-failed", e);
|
|
27061
27044
|
}
|
|
27062
|
-
const milestonesDir = planningPath(cwd, "milestones");
|
|
27063
|
-
try {
|
|
27064
|
-
const phaseDirs = (await node_fs.promises.readdir(milestonesDir, { withFileTypes: true })).filter((e) => e.isDirectory() && /^v[\d.]+-phases$/.test(e.name)).map((e) => e.name).sort().reverse();
|
|
27065
|
-
for (const archiveName of phaseDirs) {
|
|
27066
|
-
const versionMatch = archiveName.match(/^(v[\d.]+)-phases$/);
|
|
27067
|
-
if (!versionMatch) continue;
|
|
27068
|
-
const version = versionMatch[1];
|
|
27069
|
-
const archiveMilestonePath = node_path.default.join(milestonesDir, archiveName);
|
|
27070
|
-
const dirs = await listSubDirs(archiveMilestonePath, true);
|
|
27071
|
-
for (const dir of dirs) results.push({
|
|
27072
|
-
name: dir,
|
|
27073
|
-
milestone: version,
|
|
27074
|
-
basePath: node_path.default.join(".planning", "milestones", archiveName),
|
|
27075
|
-
fullPath: node_path.default.join(archiveMilestonePath, dir)
|
|
27076
|
-
});
|
|
27077
|
-
}
|
|
27078
|
-
} catch (e) {
|
|
27079
|
-
debugLog("get-archived-phase-dirs-async-failed", e);
|
|
27080
|
-
}
|
|
27081
27045
|
return results;
|
|
27082
27046
|
}
|
|
27083
27047
|
|
|
@@ -33790,7 +33754,7 @@ async function phaseAddCore(cwd, description, options) {
|
|
|
33790
33754
|
await node_fs.promises.mkdir(dirPath, { recursive: true });
|
|
33791
33755
|
await node_fs.promises.writeFile(node_path.default.join(dirPath, ".gitkeep"), "");
|
|
33792
33756
|
if (options?.includeStubs) await scaffoldPhaseStubs(dirPath, paddedNum, description);
|
|
33793
|
-
const phaseEntry = `\n### Phase ${newPhaseNum}: ${description}\n\n**Goal:** [To be planned]\n**Requirements**: TBD\n**Depends on:** Phase ${maxPhase}\n**Plans:** 0 plans\n\nPlans:\n- [ ] TBD (run /maxsim:plan
|
|
33757
|
+
const phaseEntry = `\n### Phase ${newPhaseNum}: ${description}\n\n**Goal:** [To be planned]\n**Requirements**: TBD\n**Depends on:** Phase ${maxPhase}\n**Plans:** 0 plans\n\nPlans:\n- [ ] TBD (run /maxsim:plan ${newPhaseNum} to break down)\n`;
|
|
33794
33758
|
let updatedContent;
|
|
33795
33759
|
const lastSeparator = content.lastIndexOf("\n---");
|
|
33796
33760
|
if (lastSeparator > 0) updatedContent = content.slice(0, lastSeparator) + phaseEntry + content.slice(lastSeparator);
|
|
@@ -33834,7 +33798,7 @@ async function phaseInsertCore(cwd, afterPhase, description, options) {
|
|
|
33834
33798
|
await node_fs.promises.mkdir(dirPath, { recursive: true });
|
|
33835
33799
|
await node_fs.promises.writeFile(node_path.default.join(dirPath, ".gitkeep"), "");
|
|
33836
33800
|
if (options?.includeStubs) await scaffoldPhaseStubs(dirPath, decimalPhase, description);
|
|
33837
|
-
const phaseEntry = `\n### Phase ${decimalPhase}: ${description} (INSERTED)\n\n**Goal:** [Urgent work - to be planned]\n**Requirements**: TBD\n**Depends on:** Phase ${afterPhase}\n**Plans:** 0 plans\n\nPlans:\n- [ ] TBD (run /maxsim:plan
|
|
33801
|
+
const phaseEntry = `\n### Phase ${decimalPhase}: ${description} (INSERTED)\n\n**Goal:** [Urgent work - to be planned]\n**Requirements**: TBD\n**Depends on:** Phase ${afterPhase}\n**Plans:** 0 plans\n\nPlans:\n- [ ] TBD (run /maxsim:plan ${decimalPhase} to break down)\n`;
|
|
33838
33802
|
const headerPattern = new RegExp(`(#{2,4}\\s*Phase\\s+0*${afterPhaseEscaped}:[^\\n]*\\n)`, "i");
|
|
33839
33803
|
const headerMatch = content.match(headerPattern);
|
|
33840
33804
|
if (!headerMatch) throw new Error(`Could not find Phase ${afterPhase} header`);
|