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.
Files changed (33) hide show
  1. package/dist/assets/CHANGELOG.md +7 -0
  2. package/dist/assets/hooks/maxsim-statusline.cjs +46 -7
  3. package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
  4. package/dist/assets/templates/references/git-planning-commit.md +1 -1
  5. package/dist/assets/templates/references/questioning.md +1 -1
  6. package/dist/assets/templates/templates/codebase/structure.md +1 -1
  7. package/dist/assets/templates/templates/milestone-archive.md +3 -3
  8. package/dist/assets/templates/workflows/batch.md +2 -3
  9. package/dist/assets/templates/workflows/diagnose-issues.md +6 -6
  10. package/dist/assets/templates/workflows/discovery-phase.md +6 -7
  11. package/dist/assets/templates/workflows/discuss-phase.md +8 -11
  12. package/dist/assets/templates/workflows/execute-phase.md +5 -49
  13. package/dist/assets/templates/workflows/execute-plan.md +0 -6
  14. package/dist/assets/templates/workflows/go.md +2 -2
  15. package/dist/assets/templates/workflows/help.md +1 -1
  16. package/dist/assets/templates/workflows/init-existing.md +0 -5
  17. package/dist/assets/templates/workflows/new-milestone.md +2 -7
  18. package/dist/assets/templates/workflows/new-project.md +0 -5
  19. package/dist/assets/templates/workflows/quick.md +0 -1
  20. package/dist/assets/templates/workflows/sdd.md +0 -2
  21. package/dist/assets/templates/workflows/settings.md +2 -7
  22. package/dist/assets/templates/workflows/verify-work.md +2 -16
  23. package/dist/cli.cjs +11 -56
  24. package/dist/cli.cjs.map +1 -1
  25. package/dist/core-D5zUr9cb.cjs.map +1 -1
  26. package/dist/install.cjs +10 -26
  27. package/dist/install.cjs.map +1 -1
  28. package/dist/mcp-server.cjs +2 -38
  29. package/dist/mcp-server.cjs.map +1 -1
  30. package/dist/skills-CjFWZIGM.cjs.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/assets/templates/references/dashboard-bridge.md +0 -59
  33. package/dist/assets/templates/workflows/plan-phase.md +0 -501
package/dist/install.cjs CHANGED
@@ -7253,12 +7253,6 @@ function processAttribution(content, attribution) {
7253
7253
  return content.replace(/Co-Authored-By:.*$/gim, `Co-Authored-By: ${safeAttribution}`);
7254
7254
  }
7255
7255
  /**
7256
- * Build a hook command path using forward slashes for cross-platform compatibility.
7257
- */
7258
- function buildHookCommand(configDir, hookName) {
7259
- return `node "${configDir.replace(/\\/g, "/") + "/hooks/" + hookName}"`;
7260
- }
7261
- /**
7262
7256
  * Read and parse settings.json, returning empty object if it doesn't exist.
7263
7257
  */
7264
7258
  function readSettings(settingsPath) {
@@ -7316,16 +7310,6 @@ function getGlobalDir(explicitDir = null) {
7316
7310
  return node_path.join(node_os.homedir(), ".claude");
7317
7311
  }
7318
7312
  /**
7319
- * Get the config directory path relative to home for hook templating.
7320
- * Used for path.join(homeDir, '<configDir>', ...) replacement in hooks.
7321
- *
7322
- * @deprecated Global install is no longer supported in v5.0+.
7323
- * TODO: Remove when hooks.ts no longer needs global/local distinction.
7324
- */
7325
- function getConfigDirFromHome(_isGlobal) {
7326
- return "'.claude'";
7327
- }
7328
- /**
7329
7313
  * Get the local directory name
7330
7314
  */
7331
7315
  function getDirName() {
@@ -7556,7 +7540,7 @@ function cleanupOrphanedHooks(settings) {
7556
7540
  /**
7557
7541
  * Install hook files and configure settings.json
7558
7542
  */
7559
- function installHookFiles(targetDir, isGlobal, failures) {
7543
+ function installHookFiles(targetDir, failures) {
7560
7544
  let hooksSrc = null;
7561
7545
  const bundledHooksDir = node_path.resolve(__dirname, "assets", "hooks");
7562
7546
  if (node_fs.existsSync(bundledHooksDir)) hooksSrc = bundledHooksDir;
@@ -7569,7 +7553,7 @@ function installHookFiles(targetDir, isGlobal, failures) {
7569
7553
  const hooksDest = node_path.join(targetDir, "hooks");
7570
7554
  node_fs.mkdirSync(hooksDest, { recursive: true });
7571
7555
  const hookEntries = node_fs.readdirSync(hooksSrc);
7572
- const configDirReplacement = getConfigDirFromHome(isGlobal);
7556
+ const configDirReplacement = "'.claude'";
7573
7557
  for (const entry of hookEntries) {
7574
7558
  const srcFile = node_path.join(hooksSrc, entry);
7575
7559
  if (node_fs.statSync(srcFile).isFile() && entry.endsWith(".cjs") && !entry.includes(".d.")) {
@@ -7590,13 +7574,13 @@ function installHookFiles(targetDir, isGlobal, failures) {
7590
7574
  /**
7591
7575
  * Configure hooks and statusline in settings.json
7592
7576
  */
7593
- function configureSettingsHooks(targetDir, isGlobal) {
7577
+ function configureSettingsHooks(targetDir) {
7594
7578
  const dirName = getDirName();
7595
7579
  const settingsPath = node_path.join(targetDir, "settings.json");
7596
7580
  const settings = cleanupOrphanedHooks(readSettings(settingsPath));
7597
- const statuslineCommand = isGlobal ? buildHookCommand(targetDir, "maxsim-statusline.js") : "node " + dirName + "/hooks/maxsim-statusline.js";
7598
- const updateCheckCommand = isGlobal ? buildHookCommand(targetDir, "maxsim-check-update.js") : "node " + dirName + "/hooks/maxsim-check-update.js";
7599
- const syncReminderCommand = isGlobal ? buildHookCommand(targetDir, "maxsim-sync-reminder.js") : "node " + dirName + "/hooks/maxsim-sync-reminder.js";
7581
+ const statuslineCommand = "node " + dirName + "/hooks/maxsim-statusline.js";
7582
+ const updateCheckCommand = "node " + dirName + "/hooks/maxsim-check-update.js";
7583
+ const syncReminderCommand = "node " + dirName + "/hooks/maxsim-sync-reminder.js";
7600
7584
  if (!settings.hooks) settings.hooks = {};
7601
7585
  const installHooks = settings.hooks;
7602
7586
  if (!installHooks.SessionStart) installHooks.SessionStart = [];
@@ -7658,7 +7642,7 @@ async function handleStatusline(settings, isInteractive, forceStatusline) {
7658
7642
  /**
7659
7643
  * Apply statusline config, then print completion message
7660
7644
  */
7661
- function finishInstall(settingsPath, settings, statuslineCommand, shouldInstallStatusline, isGlobal = true) {
7645
+ function finishInstall(settingsPath, settings, statuslineCommand, shouldInstallStatusline) {
7662
7646
  if (shouldInstallStatusline) {
7663
7647
  settings.statusLine = {
7664
7648
  type: "command",
@@ -8304,7 +8288,7 @@ async function install() {
8304
8288
  node_fs.copyFileSync(mcpSrc, mcpDest);
8305
8289
  console.log(` ${chalk.green("✓")} Installed mcp-server.cjs`);
8306
8290
  } else console.warn(` ${chalk.yellow("!")} mcp-server.cjs not found -- MCP server not installed`);
8307
- installHookFiles(targetDir, false, failures);
8291
+ installHookFiles(targetDir, failures);
8308
8292
  const mcpJsonPath = node_path.join(process.cwd(), ".mcp.json");
8309
8293
  let mcpConfig = {};
8310
8294
  let skipMcpConfig = false;
@@ -8345,7 +8329,7 @@ async function install() {
8345
8329
  writeManifest(targetDir);
8346
8330
  console.log(` ${chalk.green("✓")} Wrote file manifest (${MANIFEST_NAME})`);
8347
8331
  reportLocalPatches(targetDir);
8348
- const { settingsPath, settings, statuslineCommand } = configureSettingsHooks(targetDir, false);
8332
+ const { settingsPath, settings, statuslineCommand } = configureSettingsHooks(targetDir);
8349
8333
  return {
8350
8334
  settingsPath,
8351
8335
  settings,
@@ -8392,7 +8376,7 @@ async function installForClaude(isInteractive) {
8392
8376
  env["CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS"] = "1";
8393
8377
  result.settings.env = env;
8394
8378
  }
8395
- finishInstall(result.settingsPath, result.settings, result.statuslineCommand, shouldInstallStatusline, false);
8379
+ finishInstall(result.settingsPath, result.settings, result.statuslineCommand, shouldInstallStatusline);
8396
8380
  }
8397
8381
  const subcommand = argv._[0];
8398
8382
  (async () => {