gm-copilot-cli 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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: gm
3
- version: 2.0.244
3
+ version: 2.0.245
4
4
  description: State machine agent with hooks, skills, and automated git enforcement
5
5
  author: AnEntrypoint
6
6
  repository: https://github.com/AnEntrypoint/gm-copilot-cli
@@ -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/index.html CHANGED
@@ -18,7 +18,7 @@
18
18
  <script type="module">
19
19
  import { createElement as h, applyDiff, Fragment } from "webjsx";
20
20
  const PLATFORM_NAME="Copilot CLI",PLATFORM_TYPE="CLI Tool",PLATFORM_TYPE_COLOR="#3b82f6";
21
- const DESCRIPTION="State machine agent with hooks, skills, and automated git enforcement",VERSION="2.0.244";
21
+ const DESCRIPTION="State machine agent with hooks, skills, and automated git enforcement",VERSION="2.0.245";
22
22
  const GITHUB_URL="https://github.com/AnEntrypoint/gm-copilot-cli",BADGE_LABEL="copilot-cli";
23
23
  const FEATURES=[{"title":"State Machine","desc":"Immutable PLAN→EXECUTE→EMIT→VERIFY→COMPLETE phases with full mutable tracking"},{"title":"Semantic Search","desc":"Natural language codebase exploration via codesearch skill — no grep needed"},{"title":"Hooks","desc":"Pre-tool, session-start, prompt-submit, and stop hooks for full lifecycle control"},{"title":"Agents","desc":"gm, codesearch, and websearch agents pre-configured and ready to use"},{"title":"MCP Integration","desc":"Model Context Protocol server support built in"},{"title":"Auto-Recovery","desc":"Supervisor hierarchy ensures the system never crashes"}],INSTALL_STEPS=[{"desc":"Install via GitHub CLI","cmd":"gh extension install AnEntrypoint/gm-copilot-cli"},{"desc":"Restart your terminal — activates automatically"}];
24
24
  const CURRENT_PLATFORM="gm-copilot-cli";
package/manifest.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: gm
2
- version: 2.0.244
2
+ version: 2.0.245
3
3
  description: State machine agent with hooks, skills, and automated git enforcement
4
4
  author: AnEntrypoint
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-copilot-cli",
3
- "version": "2.0.244",
3
+ "version": "2.0.245",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/tools.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.244",
3
+ "version": "2.0.245",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "tools": [
6
6
  {