@axiomatic-labs/claudeflow 2.13.108 → 2.13.109
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 +27 -0
- package/package.json +1 -1
package/lib/install.js
CHANGED
|
@@ -207,6 +207,33 @@ async function run() {
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
// Copy variant-switch CLI (claudeflow-mode.js + helpers used by the
|
|
211
|
+
// /claudeflow-mode slash command to rotate .claude/ between boost and
|
|
212
|
+
// normal variants).
|
|
213
|
+
const srcCli = path.join(srcClaudeflow, 'cli');
|
|
214
|
+
const dstCli = path.join(cwd, '.claudeflow', 'cli');
|
|
215
|
+
if (fs.existsSync(srcCli)) {
|
|
216
|
+
copyDirSync(srcCli, dstCli);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Copy variants (boost + normal). The /claudeflow-mode command rotates
|
|
220
|
+
// the active .claude/ between these. Each variant is a complete
|
|
221
|
+
// .claude/-shaped tree (skills, hooks, agents, commands, settings).
|
|
222
|
+
const srcVariants = path.join(srcClaudeflow, 'variants');
|
|
223
|
+
const dstVariants = path.join(cwd, '.claudeflow', 'variants');
|
|
224
|
+
if (fs.existsSync(srcVariants)) {
|
|
225
|
+
copyDirSync(srcVariants, dstVariants);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Copy active-mode marker only when the project doesn't have one yet.
|
|
229
|
+
// Preserves the user's current mode (boost | normal) across updates —
|
|
230
|
+
// overwriting would silently rotate them back to the shipped default.
|
|
231
|
+
const srcActiveMode = path.join(srcClaudeflow, 'active-mode');
|
|
232
|
+
const dstActiveMode = path.join(cwd, '.claudeflow', 'active-mode');
|
|
233
|
+
if (fs.existsSync(srcActiveMode) && !fs.existsSync(dstActiveMode)) {
|
|
234
|
+
fs.copyFileSync(srcActiveMode, dstActiveMode);
|
|
235
|
+
}
|
|
236
|
+
|
|
210
237
|
// Write version file
|
|
211
238
|
writeLocalVersion(version);
|
|
212
239
|
nextManagedPaths.add(normalizeRelativePath(path.join('.claudeflow', 'version')));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiomatic-labs/claudeflow",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.109",
|
|
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"
|