@axiomatic-labs/claudeflow 2.12.135 → 2.12.137
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/lib/install.js +14 -0
- package/package.json +1 -1
package/lib/install.js
CHANGED
|
@@ -149,6 +149,7 @@ async function run() {
|
|
|
149
149
|
copyDirSync(srcTemplates, dstTemplates);
|
|
150
150
|
}
|
|
151
151
|
materializeSharedAppendPrompt(cwd);
|
|
152
|
+
propagateTemplateRules(cwd, srcTemplates);
|
|
152
153
|
|
|
153
154
|
// Copy template agents (only template-managed, preserve user agents)
|
|
154
155
|
const srcAgents = path.join(srcClaude, 'agents');
|
|
@@ -834,6 +835,19 @@ function pruneLegacyTemplateRules(projectRoot) {
|
|
|
834
835
|
}
|
|
835
836
|
}
|
|
836
837
|
|
|
838
|
+
function propagateTemplateRules(projectRoot, srcTemplates) {
|
|
839
|
+
const srcRulesDir = path.join(srcTemplates, 'rules');
|
|
840
|
+
if (!fs.existsSync(srcRulesDir)) return;
|
|
841
|
+
const dstRulesDir = path.join(projectRoot, '.claude', 'rules');
|
|
842
|
+
fs.mkdirSync(dstRulesDir, { recursive: true });
|
|
843
|
+
for (const filename of fs.readdirSync(srcRulesDir)) {
|
|
844
|
+
if (!filename.endsWith('.md')) continue;
|
|
845
|
+
const dstPath = path.join(dstRulesDir, filename);
|
|
846
|
+
if (fs.existsSync(dstPath)) continue; // no-clobber: preserve project-specific or user rules
|
|
847
|
+
fs.copyFileSync(path.join(srcRulesDir, filename), dstPath);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
837
851
|
function materializeSharedAppendPrompt(projectRoot) {
|
|
838
852
|
const templatePath = path.join(projectRoot, SHARED_APPEND_PROMPT_TEMPLATE);
|
|
839
853
|
if (!fs.existsSync(templatePath)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiomatic-labs/claudeflow",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.137",
|
|
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"
|