gm-copilot-cli 2.0.191 → 2.0.193

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.191
3
+ version: 2.0.193
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
@@ -17,13 +17,16 @@ const allow = (additionalContext) => ({
17
17
  const deny = (reason) => isGemini
18
18
  ? { decision: 'deny', reason }
19
19
  : { hookSpecificOutput: { hookEventName: 'PreToolUse', permissionDecision: 'deny', permissionDecisionReason: reason } };
20
- const allowWithNoop = (context) => ({
21
- hookSpecificOutput: {
22
- hookEventName: 'PreToolUse',
23
- permissionDecision: 'allow',
24
- updatedInput: { command: `bun -e "process.stdout.write(${JSON.stringify(context)})"` }
25
- }
26
- });
20
+ const allowWithNoop = (context) => {
21
+ const b64 = Buffer.from(context, 'utf-8').toString('base64');
22
+ return {
23
+ hookSpecificOutput: {
24
+ hookEventName: 'PreToolUse',
25
+ permissionDecision: 'allow',
26
+ updatedInput: { command: `bun -e "process.stdout.write(Buffer.from('${b64}','base64').toString())"` }
27
+ }
28
+ };
29
+ };
27
30
 
28
31
  const run = () => {
29
32
  try {
@@ -162,13 +165,8 @@ const run = () => {
162
165
  result = spawnDirect('python3', ['-c', safeCode]);
163
166
  if (!result || result.startsWith('[spawn error:')) result = spawnDirect('python', ['-c', safeCode]);
164
167
  } else if (!lang || ['nodejs', 'typescript', 'deno'].includes(lang)) {
165
- const ext = lang === 'typescript' || lang === 'deno' ? 'ts' : 'mjs';
166
- const tmp = path.join(os.tmpdir(), `gm-exec-${Date.now()}.${ext}`);
167
168
  const wrapped = `const __result = await (async () => {\n${safeCode}\n})();\nif (__result !== undefined) { if (typeof __result === 'object') { console.log(JSON.stringify(__result, null, 2)); } else { console.log(__result); } }`;
168
- fs.writeFileSync(tmp, wrapped, 'utf-8');
169
- result = spawnDirect('bun', ['run', tmp]);
170
- try { fs.unlinkSync(tmp); } catch (e) {}
171
- if (result) result = result.split(tmp).join('<script>');
169
+ result = runWithFile(lang || 'nodejs', wrapped);
172
170
  } else if (lang === 'agent-browser') {
173
171
  result = spawnDirect('agent-browser', ['eval', '--stdin'], safeCode);
174
172
  } else {
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.191";
21
+ const DESCRIPTION="State machine agent with hooks, skills, and automated git enforcement",VERSION="2.0.193";
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.191
2
+ version: 2.0.193
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.191",
3
+ "version": "2.0.193",
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.191",
3
+ "version": "2.0.193",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "tools": [
6
6
  {