agentgui 1.0.36 → 1.0.37

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.
Files changed (2) hide show
  1. package/bin/gmgui.cjs +6 -11
  2. package/package.json +1 -1
package/bin/gmgui.cjs CHANGED
@@ -65,14 +65,9 @@ async function gmgui(args = []) {
65
65
  }
66
66
  }
67
67
 
68
- // Run if this file is executed directly (works with symlinks, npm, npx)
69
- const isBinFile = process.argv[1].endsWith('gmgui.cjs') ||
70
- process.argv[1].endsWith('gmgui.js') ||
71
- process.argv[1].endsWith('/gmgui') ||
72
- process.argv[1].includes('bin/gmgui');
73
- if (isBinFile) {
74
- gmgui(process.argv.slice(2)).catch(err => {
75
- console.error(err.message);
76
- process.exit(1);
77
- });
78
- }
68
+ // Always run when executed as a bin file (this file should only be used that way)
69
+ // Works with npm, npx, bunx, and direct execution
70
+ gmgui(process.argv.slice(2)).catch(err => {
71
+ console.error(err.message);
72
+ process.exit(1);
73
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",