promptgraph-mcp 2.9.42 → 2.9.43

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/commands/bundle.js +25 -6
  2. package/package.json +1 -1
@@ -148,17 +148,36 @@ export default async function handler(args, bin) {
148
148
  fs.unlinkSync(tmp);
149
149
  if (result?.error) { error(result.error); process.exit(1); }
150
150
  if (result.gh_not_installed) {
151
- console.log('\n' + result.instructions);
152
- // Auto-open browser
151
+ const bodyText = 'Bundle definition:\n\n```json\n' + json + '\n```';
152
+
153
+ // Copy body to clipboard
154
+ let copied = false;
153
155
  try {
154
156
  if (process.platform === 'win32') {
155
- spawnSync('powershell', ['-NoProfile', '-Command', `Start-Process '${result.submit_url}'`], { stdio: 'ignore' });
157
+ const r = spawnSync('powershell', ['-NoProfile', '-Command', `Set-Clipboard -Value ${JSON.stringify(bodyText)}`], { stdio: 'pipe' });
158
+ copied = r.status === 0;
159
+ } else if (process.platform === 'darwin') {
160
+ const r = spawnSync('pbcopy', [], { input: bodyText, stdio: ['pipe','ignore','ignore'] });
161
+ copied = r.status === 0;
162
+ }
163
+ } catch {}
164
+
165
+ // Open browser
166
+ try {
167
+ if (process.platform === 'win32') {
168
+ spawnSync('powershell', ['-NoProfile', '-Command', `Start-Process 'https://github.com/NeiP4n/promptgraph-registry/issues/new'`], { stdio: 'ignore' });
156
169
  } else {
157
- const openCmd = process.platform === 'darwin' ? 'open' : 'xdg-open';
158
- spawnSync(openCmd, [result.submit_url], { stdio: 'ignore' });
170
+ spawnSync(process.platform === 'darwin' ? 'open' : 'xdg-open', ['https://github.com/NeiP4n/promptgraph-registry/issues/new'], { stdio: 'ignore' });
159
171
  }
160
- console.log(chalk.green('\n✓ Opened in browser — just click "Submit new issue"'));
161
172
  } catch {}
173
+
174
+ console.log(chalk.bold('\n👉 Browser opened → github.com/NeiP4n/promptgraph-registry/issues/new'));
175
+ console.log(' Title: ' + chalk.cyan('Bundle: ' + name));
176
+ if (copied) {
177
+ console.log(chalk.green('✓ Description copied to clipboard — paste (Ctrl+V) into the body field, then Submit'));
178
+ } else {
179
+ console.log(chalk.yellow('\nPaste this into the body:\n') + chalk.gray(bodyText));
180
+ }
162
181
  } else {
163
182
  success(`Bundle proposed! Submit: ${result.submit_url}`);
164
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "2.9.42",
3
+ "version": "2.9.43",
4
4
  "files": [
5
5
  "*.js",
6
6
  "commands/",