gm-cc 2.0.244 → 2.0.245
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "AnEntrypoint"
|
|
5
5
|
},
|
|
6
6
|
"description": "State machine agent with hooks, skills, and automated git enforcement",
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.245",
|
|
8
8
|
"metadata": {
|
|
9
9
|
"description": "State machine agent with hooks, skills, and automated git enforcement"
|
|
10
10
|
},
|
|
@@ -124,12 +124,27 @@ function loadLangPlugins(projectDir) {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
// Helper: run a local binary (falls back to bunx if not installed)
|
|
127
|
+
function pkgEntry(name) {
|
|
128
|
+
try {
|
|
129
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(TOOLS_DIR, 'node_modules', name, 'package.json'), 'utf8'));
|
|
130
|
+
const binVal = pkg.bin;
|
|
131
|
+
const rel = typeof binVal === 'string' ? binVal : (binVal?.[name] || Object.values(binVal || {})[0]);
|
|
132
|
+
if (rel) return path.join(TOOLS_DIR, 'node_modules', name, rel);
|
|
133
|
+
} catch {}
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
|
|
127
137
|
function runLocal(name, args, opts = {}) {
|
|
138
|
+
if (IS_WIN) {
|
|
139
|
+
const entry = pkgEntry(name);
|
|
140
|
+
if (entry && fs.existsSync(entry)) {
|
|
141
|
+
return spawnSync('bun', [entry, ...args], { encoding: 'utf8', windowsHide: true, timeout: 65000, ...opts });
|
|
142
|
+
}
|
|
143
|
+
}
|
|
128
144
|
const bin = localBin(name);
|
|
129
145
|
if (fs.existsSync(bin)) {
|
|
130
146
|
return spawnSync(bin, args, { encoding: 'utf8', windowsHide: true, timeout: 65000, ...opts });
|
|
131
147
|
}
|
|
132
|
-
// Fallback to bunx
|
|
133
148
|
return spawnSync('bun', ['x', name, ...args], { encoding: 'utf8', windowsHide: true, timeout: 65000, ...opts });
|
|
134
149
|
}
|
|
135
150
|
|
|
@@ -13,7 +13,23 @@ function localBin(name) {
|
|
|
13
13
|
return path.join(TOOLS_DIR, 'node_modules', '.bin', name + ext);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
function pkgEntry(name) {
|
|
17
|
+
try {
|
|
18
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(TOOLS_DIR, 'node_modules', name, 'package.json'), 'utf8'));
|
|
19
|
+
const binVal = pkg.bin;
|
|
20
|
+
const rel = typeof binVal === 'string' ? binVal : (binVal?.[name] || Object.values(binVal || {})[0]);
|
|
21
|
+
if (rel) return path.join(TOOLS_DIR, 'node_modules', name, rel);
|
|
22
|
+
} catch {}
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
|
|
16
26
|
function runLocal(name, args, opts = {}) {
|
|
27
|
+
if (IS_WIN) {
|
|
28
|
+
const entry = pkgEntry(name);
|
|
29
|
+
if (entry && fs.existsSync(entry)) {
|
|
30
|
+
return spawnSync('bun', [entry, ...args], { encoding: 'utf8', windowsHide: true, timeout: 30000, ...opts });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
17
33
|
const bin = localBin(name);
|
|
18
34
|
if (fs.existsSync(bin)) {
|
|
19
35
|
return spawnSync(bin, args, { encoding: 'utf8', windowsHide: true, timeout: 30000, ...opts });
|
package/package.json
CHANGED