promptgraph-mcp 2.9.38 → 2.9.39
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/commands/bundle.js +6 -0
- package/package.json +1 -1
package/commands/bundle.js
CHANGED
|
@@ -149,6 +149,12 @@ export default async function handler(args, bin) {
|
|
|
149
149
|
if (result?.error) { error(result.error); process.exit(1); }
|
|
150
150
|
if (result.gh_not_installed) {
|
|
151
151
|
console.log('\n' + result.instructions);
|
|
152
|
+
// Auto-open browser
|
|
153
|
+
try {
|
|
154
|
+
const openCmd = process.platform === 'win32' ? 'start' : process.platform === 'darwin' ? 'open' : 'xdg-open';
|
|
155
|
+
spawnSync(openCmd, [result.submit_url], { shell: true, stdio: 'ignore' });
|
|
156
|
+
console.log(chalk.green('\n✓ Opened in browser — just click "Submit new issue"'));
|
|
157
|
+
} catch {}
|
|
152
158
|
} else {
|
|
153
159
|
success(`Bundle proposed! Submit: ${result.submit_url}`);
|
|
154
160
|
}
|