mindforge-cc 1.0.2 → 1.0.3
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/CHANGELOG.md +5 -0
- package/README.md +2 -0
- package/bin/install.js +1 -1
- package/bin/installer-core.js +21 -3
- package/bin/wizard/environment-detector.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
All notable changes to MindForge are documented here.
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com).
|
|
5
5
|
|
|
6
|
+
## [1.0.3] — v1.0.3 Antigravity Agents Folder — 2026-03-22
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- Local Antigravity installs now target `agents/` by default (legacy `.agent/` detected and supported).
|
|
10
|
+
|
|
6
11
|
## [1.0.2] — v1.0.2 CLI Bin Fix — 2026-03-22
|
|
7
12
|
|
|
8
13
|
### Fixed
|
package/README.md
CHANGED
|
@@ -40,6 +40,8 @@ npx mindforge-cc@latest --claude --local
|
|
|
40
40
|
npx mindforge-cc@latest --antigravity --global
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
Local installs use `agents/` by default. Legacy `.agent/` is supported for existing projects.
|
|
44
|
+
|
|
43
45
|
### Both runtimes
|
|
44
46
|
```bash
|
|
45
47
|
npx mindforge-cc@latest --all --global
|
package/bin/install.js
CHANGED
|
@@ -85,7 +85,7 @@ function printHelp() {
|
|
|
85
85
|
|
|
86
86
|
RUNTIMES (pick one or use --all)
|
|
87
87
|
--claude Claude Code (~/.claude or .claude/)
|
|
88
|
-
--antigravity Antigravity (~/.gemini/antigravity or .agent/)
|
|
88
|
+
--antigravity Antigravity (~/.gemini/antigravity or agents/; .agent/ legacy)
|
|
89
89
|
--all Both runtimes
|
|
90
90
|
|
|
91
91
|
SCOPE
|
package/bin/installer-core.js
CHANGED
|
@@ -20,7 +20,7 @@ const RUNTIMES = {
|
|
|
20
20
|
},
|
|
21
21
|
antigravity: {
|
|
22
22
|
globalDir: path.join(os.homedir(), '.gemini', 'antigravity'),
|
|
23
|
-
localDir: '
|
|
23
|
+
localDir: 'agents',
|
|
24
24
|
commandsSubdir: 'mindforge',
|
|
25
25
|
entryFile: 'CLAUDE.md',
|
|
26
26
|
},
|
|
@@ -79,6 +79,24 @@ const SENSITIVE_EXCLUDE = [
|
|
|
79
79
|
|
|
80
80
|
const norm = p => path.normalize(p);
|
|
81
81
|
|
|
82
|
+
function resolveBaseDir(runtime, scope) {
|
|
83
|
+
const cfg = RUNTIMES[runtime];
|
|
84
|
+
if (scope === 'global') return norm(cfg.globalDir);
|
|
85
|
+
|
|
86
|
+
if (runtime === 'antigravity') {
|
|
87
|
+
const agentsDir = norm(path.join(process.cwd(), 'agents'));
|
|
88
|
+
const legacyAgentDir = norm(path.join(process.cwd(), '.agent'));
|
|
89
|
+
if (fsu.exists(agentsDir)) return agentsDir;
|
|
90
|
+
if (fsu.exists(legacyAgentDir)) {
|
|
91
|
+
console.log(` ℹ️ Detected legacy .agent/ — installing there for compatibility`);
|
|
92
|
+
return legacyAgentDir;
|
|
93
|
+
}
|
|
94
|
+
return agentsDir;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return norm(path.join(process.cwd(), cfg.localDir));
|
|
98
|
+
}
|
|
99
|
+
|
|
82
100
|
// ── CLAUDE.md safe copy ───────────────────────────────────────────────────────
|
|
83
101
|
function safeCopyClaude(src, dst, options = {}) {
|
|
84
102
|
const { force = false, verbose = false } = options;
|
|
@@ -131,7 +149,7 @@ function verifyInstall(baseDir, cmdsDir, runtime, scope) {
|
|
|
131
149
|
async function install(runtime, scope, options = {}) {
|
|
132
150
|
const { dryRun = false, force = false, verbose = false } = options;
|
|
133
151
|
const cfg = RUNTIMES[runtime];
|
|
134
|
-
const baseDir =
|
|
152
|
+
const baseDir = resolveBaseDir(runtime, scope);
|
|
135
153
|
const cmdsDir = norm(path.join(baseDir, cfg.commandsSubdir));
|
|
136
154
|
const selfInstall = isSelfInstall();
|
|
137
155
|
|
|
@@ -217,7 +235,7 @@ async function install(runtime, scope, options = {}) {
|
|
|
217
235
|
async function uninstall(runtime, scope, options = {}) {
|
|
218
236
|
const { dryRun = false } = options;
|
|
219
237
|
const cfg = RUNTIMES[runtime];
|
|
220
|
-
const baseDir =
|
|
238
|
+
const baseDir = resolveBaseDir(runtime, scope);
|
|
221
239
|
const cmdsDir = norm(path.join(baseDir, cfg.commandsSubdir));
|
|
222
240
|
const claudeMd = norm(path.join(baseDir, 'CLAUDE.md'));
|
|
223
241
|
|
|
@@ -26,7 +26,13 @@ async function detect() {
|
|
|
26
26
|
|
|
27
27
|
const runtimes = [];
|
|
28
28
|
if (fs.existsSync(path.join(home, '.claude')) || fs.existsSync(path.join(cwd, '.claude'))) runtimes.push('claude');
|
|
29
|
-
if (
|
|
29
|
+
if (
|
|
30
|
+
fs.existsSync(path.join(home, '.gemini', 'antigravity')) ||
|
|
31
|
+
fs.existsSync(path.join(cwd, '.agent')) ||
|
|
32
|
+
fs.existsSync(path.join(cwd, 'agents'))
|
|
33
|
+
) {
|
|
34
|
+
runtimes.push('antigravity');
|
|
35
|
+
}
|
|
30
36
|
|
|
31
37
|
let projectType = 'unknown';
|
|
32
38
|
const pkgPath = path.join(cwd, 'package.json');
|