mindforge-cc 2.1.3 → 2.2.0
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/bin/installer-core.js +57 -6
- package/bin/wizard/theme.js +2 -2
- package/package.json +1 -1
package/bin/installer-core.js
CHANGED
|
@@ -22,6 +22,9 @@ const RUNTIMES = {
|
|
|
22
22
|
commandsSubdir: 'commands/mindforge',
|
|
23
23
|
entryFile: 'CLAUDE.md',
|
|
24
24
|
supportsSlash: true,
|
|
25
|
+
skillsSubdir: 'skills',
|
|
26
|
+
hooksSubdir: 'hooks',
|
|
27
|
+
personasSubdir: 'personas',
|
|
25
28
|
},
|
|
26
29
|
antigravity: {
|
|
27
30
|
displayName: 'Antigravity',
|
|
@@ -30,6 +33,9 @@ const RUNTIMES = {
|
|
|
30
33
|
commandsSubdir: 'workflows',
|
|
31
34
|
entryFile: 'CLAUDE.md',
|
|
32
35
|
supportsSlash: true,
|
|
36
|
+
skillsSubdir: 'skills',
|
|
37
|
+
hooksSubdir: 'hooks',
|
|
38
|
+
personasSubdir: 'personas',
|
|
33
39
|
},
|
|
34
40
|
cursor: {
|
|
35
41
|
displayName: 'Cursor',
|
|
@@ -38,6 +44,9 @@ const RUNTIMES = {
|
|
|
38
44
|
commandsSubdir: 'rules',
|
|
39
45
|
entryFile: '.cursorrules',
|
|
40
46
|
supportsSlash: false,
|
|
47
|
+
skillsSubdir: 'skills',
|
|
48
|
+
hooksSubdir: 'hooks',
|
|
49
|
+
personasSubdir: 'personas',
|
|
41
50
|
},
|
|
42
51
|
opencode: {
|
|
43
52
|
displayName: 'OpenCode',
|
|
@@ -46,6 +55,9 @@ const RUNTIMES = {
|
|
|
46
55
|
commandsSubdir: 'commands/mindforge',
|
|
47
56
|
entryFile: 'CLAUDE.md',
|
|
48
57
|
supportsSlash: true,
|
|
58
|
+
skillsSubdir: 'skills',
|
|
59
|
+
hooksSubdir: 'hooks',
|
|
60
|
+
personasSubdir: 'personas',
|
|
49
61
|
},
|
|
50
62
|
gemini: {
|
|
51
63
|
displayName: 'Gemini CLI',
|
|
@@ -54,6 +66,9 @@ const RUNTIMES = {
|
|
|
54
66
|
commandsSubdir: 'commands/mindforge',
|
|
55
67
|
entryFile: 'GEMINI.md',
|
|
56
68
|
supportsSlash: true,
|
|
69
|
+
skillsSubdir: 'skills',
|
|
70
|
+
hooksSubdir: 'hooks',
|
|
71
|
+
personasSubdir: 'personas',
|
|
57
72
|
},
|
|
58
73
|
copilot: {
|
|
59
74
|
displayName: 'GitHub Copilot',
|
|
@@ -265,8 +280,25 @@ async function install(runtime, scope, options = {}) {
|
|
|
265
280
|
|
|
266
281
|
if (dryRun) {
|
|
267
282
|
console.log('\n Would install:');
|
|
268
|
-
console.log(` ${cfg.entryFile} → ${path.join(baseDir, cfg.entryFile)}`);
|
|
269
|
-
|
|
283
|
+
console.log(` ${cfg.entryFile.padEnd(12)} → ${path.join(baseDir, cfg.entryFile)}`);
|
|
284
|
+
|
|
285
|
+
const cmdCountStr = `${fsu.listFiles(src('.agent', 'mindforge')).length} commands`.padEnd(12);
|
|
286
|
+
console.log(` ${cmdCountStr} → ${cmdsDir}`);
|
|
287
|
+
|
|
288
|
+
const assetMappings = [
|
|
289
|
+
{ key: 'skillsSubdir', src: src('.agent', 'skills'), label: 'skills' },
|
|
290
|
+
{ key: 'hooksSubdir', src: src('.agent', 'hooks'), label: 'hooks' },
|
|
291
|
+
{ key: 'personasSubdir', src: src('.mindforge', 'personas'), label: 'personas' }
|
|
292
|
+
];
|
|
293
|
+
|
|
294
|
+
assetMappings.forEach(asset => {
|
|
295
|
+
const subDir = cfg[asset.key];
|
|
296
|
+
if (subDir && fsu.exists(asset.src)) {
|
|
297
|
+
const count = fsu.listFiles(asset.src).length;
|
|
298
|
+
const countStr = `${count} ${asset.label}`.padEnd(12);
|
|
299
|
+
console.log(` ${countStr} → ${path.join(baseDir, subDir)}`);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
270
302
|
return;
|
|
271
303
|
}
|
|
272
304
|
|
|
@@ -355,6 +387,26 @@ async function install(runtime, scope, options = {}) {
|
|
|
355
387
|
}
|
|
356
388
|
}
|
|
357
389
|
|
|
390
|
+
// ── 2.1 Install Enterprise Assets (Skills, Hooks, Personas) ─────────────────
|
|
391
|
+
if (scope === 'local' && !selfInstall) {
|
|
392
|
+
const assetTypes = [
|
|
393
|
+
{ key: 'skillsSubdir', src: src('.agent', 'skills'), label: 'skills' },
|
|
394
|
+
{ key: 'hooksSubdir', src: src('.agent', 'hooks'), label: 'hooks' },
|
|
395
|
+
{ key: 'personasSubdir', src: src('.mindforge', 'personas'), label: 'personas' }
|
|
396
|
+
];
|
|
397
|
+
|
|
398
|
+
assetTypes.forEach(asset => {
|
|
399
|
+
const subDir = cfg[asset.key];
|
|
400
|
+
if (subDir && fsu.exists(asset.src)) {
|
|
401
|
+
const dstDir = path.join(baseDir, subDir);
|
|
402
|
+
fsu.ensureDir(dstDir);
|
|
403
|
+
// Use copyDir for the whole directory
|
|
404
|
+
fsu.copyDir(asset.src, dstDir, { excludePatterns: SENSITIVE_EXCLUDE });
|
|
405
|
+
Theme.printResolved(`${c.bold(asset.label.padEnd(10))} (Enterprise sync)`);
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
|
|
358
410
|
// ── 3. Framework files (local scope only, non-self-install) ─────────────────
|
|
359
411
|
if (scope === 'local' && !selfInstall) {
|
|
360
412
|
// .mindforge/ — framework engine files
|
|
@@ -544,10 +596,9 @@ async function run(args) {
|
|
|
544
596
|
const pJSON = JSON.parse(fsu.read(path.join(SOURCE_ROOT, 'package.json')));
|
|
545
597
|
|
|
546
598
|
// Print header and brand manifest
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
599
|
+
// Print header and brand manifest
|
|
600
|
+
Theme.printHeader(pJSON.version);
|
|
601
|
+
Theme.printBrandManifest();
|
|
551
602
|
// Check for updates only
|
|
552
603
|
if (isCheck) {
|
|
553
604
|
const { checkAndUpdate } = require('./updater/self-update');
|
package/bin/wizard/theme.js
CHANGED
|
@@ -50,7 +50,7 @@ const Theme = {
|
|
|
50
50
|
console.log(` ${this.colors.dim('│')} ${line.padEnd(74)} ${this.colors.dim('│')}`);
|
|
51
51
|
});
|
|
52
52
|
console.log(` ${this.colors.dim('│')} ${this.colors.bold(this.tagline.padEnd(74))} ${this.colors.dim('│')}`);
|
|
53
|
-
console.log(` ${this.colors.dim('│')} ${this.colors.dim(`RELEASE
|
|
53
|
+
console.log(` ${this.colors.dim('│')} ${this.colors.dim(`RELEASE v${subtitle}`.padEnd(74))} ${this.colors.dim('│')}`);
|
|
54
54
|
console.log(` ${this.colors.dim('└' + '─'.repeat(78) + '┘')}\n`);
|
|
55
55
|
},
|
|
56
56
|
|
|
@@ -59,7 +59,7 @@ const Theme = {
|
|
|
59
59
|
*/
|
|
60
60
|
printBrandManifest() {
|
|
61
61
|
console.log(` ${this.colors.dim('│')}`);
|
|
62
|
-
console.log(` ${this.colors.dim('│')} ${this.colors.green('🎉 V2.
|
|
62
|
+
console.log(` ${this.colors.dim('│')} ${this.colors.green('🎉 V2.2.0 IS HERE!')} Welcome to MindForge V2!`);
|
|
63
63
|
console.log(` ${this.colors.dim('│')}`);
|
|
64
64
|
console.log(` ${this.colors.dim('│')} ${this.colors.bold('THE PLATFORM VISION:')}`);
|
|
65
65
|
console.log(` ${this.colors.dim('│')} - Unified Enterprise Agentic Ecosystem`);
|