skillfish 1.0.37 → 1.0.38
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/dist/commands/submit.js +6 -3
- package/package.json +1 -1
package/dist/commands/submit.js
CHANGED
|
@@ -168,6 +168,7 @@ Examples:
|
|
|
168
168
|
skill: repo,
|
|
169
169
|
reason: submission?.error ?? 'Unknown error',
|
|
170
170
|
});
|
|
171
|
+
jsonOutput.success = false;
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
174
|
catch (err) {
|
|
@@ -188,17 +189,19 @@ Examples:
|
|
|
188
189
|
}
|
|
189
190
|
// Summary
|
|
190
191
|
if (jsonMode) {
|
|
191
|
-
outputJsonAndExit(EXIT_CODES.SUCCESS);
|
|
192
|
+
outputJsonAndExit(jsonOutput.failed.length > 0 ? EXIT_CODES.NETWORK_ERROR : EXIT_CODES.SUCCESS);
|
|
192
193
|
}
|
|
193
194
|
if (jsonOutput.submitted.length > 0) {
|
|
194
195
|
const skillCount = skills.length;
|
|
195
|
-
p.
|
|
196
|
+
p.log.success(pc.green(`Submitted! ${skillCount} skill${skillCount === 1 ? '' : 's'} will be reviewed (free queue — ~4–6 week wait).`));
|
|
197
|
+
p.outro(`Skip the queue and go live today with an official listing for $29:\n${pc.cyan('https://mcpmarket.com/submit')}`);
|
|
198
|
+
process.exit(EXIT_CODES.SUCCESS);
|
|
196
199
|
}
|
|
197
200
|
else {
|
|
198
201
|
const errorReason = jsonOutput.failed[0]?.reason ?? 'Submission failed';
|
|
199
202
|
p.outro(pc.red(errorReason));
|
|
203
|
+
process.exit(EXIT_CODES.NETWORK_ERROR);
|
|
200
204
|
}
|
|
201
|
-
process.exit(EXIT_CODES.SUCCESS);
|
|
202
205
|
});
|
|
203
206
|
// === Helper Functions ===
|
|
204
207
|
/**
|
package/package.json
CHANGED