gopeak 2.3.3 → 2.3.5

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/README.md CHANGED
@@ -14,6 +14,8 @@
14
14
 
15
15
  **GoPeak is an MCP server for Godot that lets AI assistants run, inspect, modify, and debug real projects end-to-end.**
16
16
 
17
+ > Discord community chat is temporarily unavailable while the invite link is refreshed. Please use GitHub Discussions in the meantime: https://github.com/HaD0Yun/Gopeak-godot-mcp/discussions
18
+
17
19
  ---
18
20
 
19
21
  ## Quick Start (3 Minutes)
@@ -37,6 +39,14 @@ npm install -g gopeak
37
39
  gopeak
38
40
  ```
39
41
 
42
+ Optional shell hooks for update notifications are now **opt-in**:
43
+
44
+ ```bash
45
+ gopeak setup
46
+ ```
47
+
48
+ > `gopeak setup` only modifies supported bash/zsh rc files when you run it explicitly. `npm install` no longer installs shell hooks automatically.
49
+
40
50
  ### 2) Add MCP client config
41
51
 
42
52
  ```json
@@ -166,6 +176,12 @@ npm install -g gopeak
166
176
  gopeak
167
177
  ```
168
178
 
179
+ Optional shell hooks for update notifications remain available via:
180
+
181
+ ```bash
182
+ gopeak setup
183
+ ```
184
+
169
185
  ### C) From source
170
186
 
171
187
  ```bash
@@ -199,10 +215,12 @@ GitHub Actions runs on push/PR and executes:
199
215
  2. `npx tsc --noEmit`
200
216
  3. `npm run smoke`
201
217
 
202
- Run the same checks locally:
218
+ Run the same checks locally before opening a PR:
203
219
 
204
220
  ```bash
205
221
  npm run ci
222
+ npm run test:dynamic-groups
223
+ npm run test:integration
206
224
  ```
207
225
 
208
226
  ---
@@ -5,7 +5,7 @@
5
5
  * with a precheck function that displays cached GoPeak update notifications.
6
6
  */
7
7
  import { existsSync, readFileSync, writeFileSync, appendFileSync } from 'fs';
8
- import { getShellRcFile, getShellName, getLocalVersion, ensureGopeakDir, ONBOARDING_SHOWN_FILE, STAR_PROMPTED_FILE, } from './utils.js';
8
+ import { getShellRcFile, getShellName, getLocalVersion, ensureGopeakDir, ONBOARDING_SHOWN_FILE, STAR_PROMPTED_FILE, supportsShellHooks, } from './utils.js';
9
9
  const MARKER_START = '# >>> GoPeak shell hooks >>>';
10
10
  const MARKER_END = '# <<< GoPeak shell hooks <<<';
11
11
  /** The shell hook block that gets appended to the RC file. */
@@ -55,6 +55,13 @@ function generateHookBlock() {
55
55
  }
56
56
  export async function setupShellHooks(args = []) {
57
57
  const silent = args.includes('--silent');
58
+ if (!supportsShellHooks()) {
59
+ if (!silent) {
60
+ console.log('ℹ️ GoPeak shell hooks are only installed for bash/zsh on Unix-like systems.');
61
+ console.log(' Skipping shell hook setup on this platform/shell.');
62
+ }
63
+ return;
64
+ }
58
65
  const rcFile = getShellRcFile();
59
66
  const shellName = getShellName();
60
67
  const log = silent ? (..._args) => { } : console.log.bind(console);
@@ -122,6 +122,11 @@ export function getShellName() {
122
122
  return 'zsh';
123
123
  return 'bash';
124
124
  }
125
+ export function supportsShellHooks(platform = process.platform, shell = process.env.SHELL ?? '') {
126
+ if (platform === 'win32')
127
+ return false;
128
+ return shell.includes('bash') || shell.includes('zsh');
129
+ }
125
130
  /* ------------------------------------------------------------------ */
126
131
  /* Command helpers */
127
132
  /* ------------------------------------------------------------------ */