@mcpjam/cli 5.14.0 → 5.14.1
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/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import { selectPluginMcpServerMap, detectPluginMcpTransport } from '@mcpjam/sdk/
|
|
|
29
29
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
|
-
version: "5.14.
|
|
32
|
+
version: "5.14.1"};
|
|
33
33
|
function conformanceExitCode(result) {
|
|
34
34
|
if (result.outcome === "incomplete") return 3;
|
|
35
35
|
if (result.outcome === "failed") return 1;
|
|
@@ -12699,9 +12699,22 @@ function registerGoalsCommands(program) {
|
|
|
12699
12699
|
"Fan out across this project environment instead of the goal's authored targets (repeatable)",
|
|
12700
12700
|
collectRepeatable2,
|
|
12701
12701
|
[]
|
|
12702
|
+
).option(
|
|
12703
|
+
"--expected-sponsored <n>",
|
|
12704
|
+
"How many of this launch's conversations you expect to be sponsored (paid from MCPJam's allowance instead of your organization's credits). If the split differs the launch is refused with nothing created."
|
|
12702
12705
|
).action(
|
|
12703
12706
|
async (options, command) => {
|
|
12704
12707
|
const globalOptions = getGlobalOptions(command);
|
|
12708
|
+
let expectedSponsored;
|
|
12709
|
+
if (options.expectedSponsored !== void 0) {
|
|
12710
|
+
const raw = options.expectedSponsored.trim();
|
|
12711
|
+
expectedSponsored = /^\d+$/.test(raw) ? Number(raw) : Number.NaN;
|
|
12712
|
+
if (!Number.isSafeInteger(expectedSponsored)) {
|
|
12713
|
+
throw usageError(
|
|
12714
|
+
`--expected-sponsored must be a whole number, 0 or more (got "${options.expectedSponsored}")`
|
|
12715
|
+
);
|
|
12716
|
+
}
|
|
12717
|
+
}
|
|
12705
12718
|
const result = await runPlatformOperation(
|
|
12706
12719
|
platformOptionsOf(command),
|
|
12707
12720
|
globalOptions.timeout,
|
|
@@ -12714,7 +12727,8 @@ function registerGoalsCommands(program) {
|
|
|
12714
12727
|
// with the rest of the noun, and the conditional spread means
|
|
12715
12728
|
// a stale key would be dropped in silence rather than refused.
|
|
12716
12729
|
...foldSwarmRunId(options) ? { swarmRunId: foldSwarmRunId(options) } : {},
|
|
12717
|
-
...options.environment?.length ? { environmentIds: options.environment } : {}
|
|
12730
|
+
...options.environment?.length ? { environmentIds: options.environment } : {},
|
|
12731
|
+
...expectedSponsored !== void 0 ? { expectedSponsored } : {}
|
|
12718
12732
|
},
|
|
12719
12733
|
{ client, signal }
|
|
12720
12734
|
)
|