@axiomatic-labs/claudeflow 2.13.152 → 2.13.154

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 (2) hide show
  1. package/lib/install.js +17 -21
  2. package/package.json +1 -1
package/lib/install.js CHANGED
@@ -170,9 +170,10 @@ async function run() {
170
170
  materializeSharedAppendPrompt(cwd);
171
171
  ensureDefaultClaudeMdRules(cwd);
172
172
  propagateTemplateRules(cwd, srcTemplates);
173
- // After CLAUDE.md exists, sync the boost-mode addendum so the user does
174
- // not have to manually run /claudeflow-mode for the file to match the
175
- // current variant. Idempotent: runs every install/update.
173
+ // After CLAUDE.md exists, append the claudeflow addendum (the load-bearing
174
+ // rule "all code changes flow through /claudeflow-build" + mode-aware
175
+ // mandates). Idempotent: runs every install/update; the block lives
176
+ // between <!-- claudeflow:boost-mode:BEGIN/END --> markers.
176
177
  syncBoostAddendumOnInstall(cwd);
177
178
 
178
179
  // Copy template agents (only template-managed, preserve user agents)
@@ -969,9 +970,10 @@ function collectManagedPathsFromRelease(extractRoot) {
969
970
  destPrefix: '.claude/hooks',
970
971
  });
971
972
 
972
- // Claudeflow dirs: runtime, templates, docs, cli in .claudeflow/.
973
- // (variants/ removed in v2.13.148.)
974
- ['runtime', 'templates', 'docs', 'cli'].forEach((folder) => {
973
+ // Claudeflow dirs: runtime, templates, docs in .claudeflow/.
974
+ // (variants/ removed in v2.13.148. .claudeflow/cli/ removed in v2.13.153
975
+ // only held the now-deleted claudeflow-mode.js variant-switcher.)
976
+ ['runtime', 'templates', 'docs'].forEach((folder) => {
975
977
  addFilesFromDir(managed, extractRoot, path.join(srcClaudeflow, folder));
976
978
  });
977
979
 
@@ -1029,18 +1031,12 @@ function collectLegacyManagedPathsFromDisk(projectRoot) {
1029
1031
  // Claude Code native: hooks stay in .claude/
1030
1032
  addFilesFromDir(managed, projectRoot, path.join(claudeDir, 'hooks'));
1031
1033
 
1032
- // Claudeflow dirs: runtime, templates, docs, cli in .claudeflow/
1033
- // (variants/ removed in v2.13.148.)
1034
- ['runtime', 'templates', 'docs', 'cli'].forEach((folder) => {
1034
+ // Claudeflow dirs: runtime, templates, docs in .claudeflow/
1035
+ // (variants/ removed in v2.13.148. .claudeflow/cli/ removed in v2.13.153.)
1036
+ ['runtime', 'templates', 'docs'].forEach((folder) => {
1035
1037
  addFilesFromDir(managed, projectRoot, path.join(claudeflowDir, folder));
1036
1038
  });
1037
1039
 
1038
- // Root-level marker file for the active variant.
1039
- const activeModePath = path.join(claudeflowDir, 'active-mode');
1040
- if (fs.existsSync(activeModePath)) {
1041
- managed.add('.claudeflow/active-mode');
1042
- }
1043
-
1044
1040
  const skillsDir = path.join(claudeDir, 'skills');
1045
1041
  if (fs.existsSync(skillsDir)) {
1046
1042
  const entries = fs.readdirSync(skillsDir, { withFileTypes: true });
@@ -1297,12 +1293,12 @@ function copyDirSync(src, dst, skipNames) {
1297
1293
  }
1298
1294
  }
1299
1295
 
1300
- // Sync the boost-mode addendum into CLAUDE.md based on .claudeflow/active-mode.
1301
- // Idempotent: safe to call every install. When mode = boost, ensures the
1302
- // addendum block (between <!-- claudeflow:boost-mode:BEGIN/END --> markers)
1303
- // is at the end of CLAUDE.md, refreshing its contents if a stale version
1304
- // already exists. When mode = normal, strips the block if present so the
1305
- // user's CLAUDE.md is left untouched.
1296
+ // Append the claudeflow addendum to CLAUDE.md (idempotent).
1297
+ // The block between <!-- claudeflow:boost-mode:BEGIN/END --> markers carries
1298
+ // the load-bearing rule ("all code changes flow through /claudeflow-build")
1299
+ // plus mode-aware mandates. Re-runs on every install/update; refreshes a
1300
+ // stale block if present. Marker name preserved for backwards compatibility
1301
+ // with projects upgraded across the v2.13.148 variants-removal boundary.
1306
1302
  function syncBoostAddendumOnInstall(cwd) {
1307
1303
  // v2.13.152: in unified mode (mode is per-build, picked at /claudeflow-build
1308
1304
  // invocation), the addendum is always injected when CLAUDE.md exists. The
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiomatic-labs/claudeflow",
3
- "version": "2.13.152",
3
+ "version": "2.13.154",
4
4
  "description": "Claudeflow — AI-powered development toolkit for Claude Code. Skills, agents, hooks, and quality gates that ship production apps.",
5
5
  "bin": {
6
6
  "claudeflow": "./bin/cli.js"