promptgraph-mcp 2.9.37 → 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 -1
- package/marketplace.js +4 -3
- package/package.json +1 -1
package/commands/bundle.js
CHANGED
|
@@ -149,7 +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
|
-
|
|
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 {}
|
|
153
158
|
} else {
|
|
154
159
|
success(`Bundle proposed! Submit: ${result.submit_url}`);
|
|
155
160
|
}
|
package/marketplace.js
CHANGED
|
@@ -596,9 +596,10 @@ export async function publishBundle(bundleDef) {
|
|
|
596
596
|
success: true,
|
|
597
597
|
gh_not_installed: true,
|
|
598
598
|
instructions: [
|
|
599
|
-
|
|
600
|
-
`
|
|
601
|
-
'
|
|
599
|
+
`👉 Open this link and click "Submit new issue" (JSON is already filled in):`,
|
|
600
|
+
` ${issueUrl}`,
|
|
601
|
+
'',
|
|
602
|
+
' OR install gh CLI for one-command submit: https://cli.github.com',
|
|
602
603
|
...(repoWarnings.length ? ['', '⚠ Repo warnings (CI will re-check):', ...repoWarnings.map(w => ' - ' + w)] : []),
|
|
603
604
|
...(def.repo_url ? ['', 'Your repo will be validated by CI when submitted.'] : []),
|
|
604
605
|
].join('\n'),
|