@mcpjam/cli 5.12.1 → 5.13.0

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Command, CommanderError, Option } from 'commander';
3
3
  import { realpathSync, readFileSync, existsSync, mkdirSync, writeFileSync, unlinkSync, statSync, closeSync, renameSync, lstatSync, openSync } from 'fs';
4
4
  import { pathToFileURL } from 'url';
5
- import { loadEvalSuiteFile, createSuiteFileRunner, runSuiteFile, SuiteFileRunError, formatLocalEvalRunSummary, renderStructuredRunJson, probeMcpServer, redactForTelemetry, runServerDoctor, collectServerSnapshot, serializeStableServerSnapshot, serializeServerSnapshot, buildServerDiffReport, classifyMcpHeader, validateToolCallResult, isCallToolResultError, buildToolCallValidationReport, listResources, readResource, listServerSkillCatalog, getVerifiedServerSkill, isServerSkillRefusalError, readVerifiedServerSkillFile, SubscriptionCoordinator, listTools, listPrompts, getPrompt, MCPAppsConformanceTest, scoreFromAppsResult, MCPAppsConformanceSuite, MCPTasksConformanceTest, scoreFromTasksResult, runOAuthLogin, OAuthConformanceTest, scoreFromOAuthResult, OAuthConformanceSuite, runXaaFlow, MCPConformanceTest, scoreFromProtocolResult, MCPConformanceSuite, runConformance, isConformanceReportingConfigured, reportConformanceRun, reportConformanceRunSafely, OPENAI_SUBMISSION_MODES, renderStructuredRunJUnitXml, renderStructuredRunHtml, withEphemeralClient, diffServerSnapshots, ServerSnapshotFormatError, DEFAULT_SUBSCRIPTION_RECONNECT_POLICY, isKnownProtocolVersion, describeConformanceScore, toConformanceReport, buildConformanceRunReport, renderConformanceReportJUnitXml, renderConformanceReportJson, formatOAuthConformanceHuman, formatOAuthConformanceSuiteHuman, fetchOAuthMetadata, executeOAuthProxy, executeDebugOAuthProxy, normalizeRegistrationStrategy, normalizeXaaClientAuth, normalizeIdentityAssertionFormat, IDENTITY_ASSERTION_FORMATS, XAA_CONFIDENTIAL_CIMD_ORIGIN, getLocalConfidentialCimdProvider, MCP_PROTOCOL_VERSIONS, gatherClaudeReadinessEvidence, gradeClaudeReadiness, gatherOpenAIReadinessEvidence, xmldomParseXml, gradeOpenAIReadiness, openUrlInBrowser, buildEvalRunReport, GATE_WAIVER_MAX_REASON_LENGTH, GATE_WAIVER_REASON_NOTICE, MCPClientManager, withSkillsExtensionCapability, detectCiMetadata, MCP_SKILLS_EXTENSION_ID, decodeMcpHeaderValue, canDeclareTasksExtension, createStrictElicitationContentValidator, MCP_APPS_CHECK_CATEGORIES, MCP_APPS_CHECK_IDS, MCP_TASKS_CHECK_CATEGORIES, MCP_TASKS_CHECK_IDS, OAuthProxyError, isLoopbackHost, MCP_CHECK_CATEGORIES, MCP_CHECK_IDS, OPENAI_SUBMISSION_MODE_SHAPES, createDirectoryPluginFileSource, collectZipArchiveObservations, createZipPluginFileSource, generateRandomString, generateCodeChallenge, createInteractiveAuthorizationSession, declareEvalSuiteFileValidity, formatEvalRunDecisionSummary, gateOutcomeVerdict, applyGateWaiver, formatGateReport, formatGateWaiverLine, detectFlakyCases, evaluateCompareGates, buildRunCompareReport, formatSuiteFileFindings, serializeEvalSuiteFile, MAX_SUITE_FILE_BYTES, buildCorpus, HostedOnlyCaseError, verifyCorpusLock, TaskLifecycleEngine, driveTaskToTerminal, extensionTaskToObservation, legacyTaskToObservation, canonicalDigest, readEvalRunDecisionSummary as readEvalRunDecisionSummary$1, buildEvalRunDecisionSummary, evaluateGates, gateInputFromPlatformRun, isGateWaiverInForce, calculateLatencyStats, CORPUS_LOCK_VERSION, suiteFilePointer, passRateFractionFromPercent, DEFAULT_MIN_EFFECT_SIZE, DEFAULT_MIN_SAMPLE_SIZE, planPlatformSuiteGradingUpdate, isUnknownTaskError, isMCPTasksWireError, LEGACY_TASK_STATUSES } from '@mcpjam/sdk';
5
+ import { MODEL_REASONING_EFFORTS, loadEvalSuiteFile, createSuiteFileRunner, runSuiteFile, SuiteFileRunError, formatLocalEvalRunSummary, renderStructuredRunJson, probeMcpServer, redactForTelemetry, runServerDoctor, collectServerSnapshot, serializeStableServerSnapshot, serializeServerSnapshot, buildServerDiffReport, classifyMcpHeader, validateToolCallResult, isCallToolResultError, buildToolCallValidationReport, listResources, readResource, listServerSkillCatalog, getVerifiedServerSkill, isServerSkillRefusalError, readVerifiedServerSkillFile, SubscriptionCoordinator, listTools, listPrompts, getPrompt, MCPAppsConformanceTest, scoreFromAppsResult, MCPAppsConformanceSuite, MCPTasksConformanceTest, scoreFromTasksResult, runOAuthLogin, OAuthConformanceTest, scoreFromOAuthResult, OAuthConformanceSuite, runXaaFlow, MCPConformanceTest, scoreFromProtocolResult, MCPConformanceSuite, runConformance, isConformanceReportingConfigured, reportConformanceRun, reportConformanceRunSafely, OPENAI_SUBMISSION_MODES, renderStructuredRunJUnitXml, renderStructuredRunHtml, withEphemeralClient, diffServerSnapshots, ServerSnapshotFormatError, DEFAULT_SUBSCRIPTION_RECONNECT_POLICY, isKnownProtocolVersion, describeConformanceScore, toConformanceReport, buildConformanceRunReport, renderConformanceReportJUnitXml, renderConformanceReportJson, formatOAuthConformanceHuman, formatOAuthConformanceSuiteHuman, fetchOAuthMetadata, executeOAuthProxy, executeDebugOAuthProxy, normalizeRegistrationStrategy, normalizeXaaClientAuth, normalizeIdentityAssertionFormat, IDENTITY_ASSERTION_FORMATS, XAA_CONFIDENTIAL_CIMD_ORIGIN, getLocalConfidentialCimdProvider, MCP_PROTOCOL_VERSIONS, gatherClaudeReadinessEvidence, gradeClaudeReadiness, gatherOpenAIReadinessEvidence, xmldomParseXml, gradeOpenAIReadiness, openUrlInBrowser, buildEvalRunReport, GATE_WAIVER_MAX_REASON_LENGTH, GATE_WAIVER_REASON_NOTICE, MCPClientManager, withSkillsExtensionCapability, detectCiMetadata, MCP_SKILLS_EXTENSION_ID, decodeMcpHeaderValue, canDeclareTasksExtension, createStrictElicitationContentValidator, MCP_APPS_CHECK_CATEGORIES, MCP_APPS_CHECK_IDS, MCP_TASKS_CHECK_CATEGORIES, MCP_TASKS_CHECK_IDS, OAuthProxyError, isLoopbackHost, MCP_CHECK_CATEGORIES, MCP_CHECK_IDS, OPENAI_SUBMISSION_MODE_SHAPES, createDirectoryPluginFileSource, collectZipArchiveObservations, createZipPluginFileSource, generateRandomString, generateCodeChallenge, createInteractiveAuthorizationSession, declareEvalSuiteFileValidity, formatEvalRunDecisionSummary, gateOutcomeVerdict, applyGateWaiver, formatGateReport, formatGateWaiverLine, detectFlakyCases, evaluateCompareGates, buildRunCompareReport, formatSuiteFileFindings, serializeEvalSuiteFile, MAX_SUITE_FILE_BYTES, buildCorpus, HostedOnlyCaseError, verifyCorpusLock, TaskLifecycleEngine, driveTaskToTerminal, extensionTaskToObservation, legacyTaskToObservation, canonicalDigest, readEvalRunDecisionSummary as readEvalRunDecisionSummary$1, buildEvalRunDecisionSummary, evaluateGates, gateInputFromPlatformRun, isGateWaiverInForce, calculateLatencyStats, CORPUS_LOCK_VERSION, suiteFilePointer, passRateFractionFromPercent, DEFAULT_MIN_EFFECT_SIZE, DEFAULT_MIN_SAMPLE_SIZE, planPlatformSuiteGradingUpdate, isUnknownTaskError, isMCPTasksWireError, LEGACY_TASK_STATUSES } from '@mcpjam/sdk';
6
6
  import path7, { join, dirname, basename, resolve } from 'path';
7
7
  import { randomUUID, randomBytes, createHash } from 'crypto';
8
8
  import { mkdir, writeFile, readFile, chmod, rename, rm, open, unlink, stat } from 'fs/promises';
@@ -29,7 +29,7 @@ import { selectPluginMcpServerMap, detectPluginMcpTransport } from '@mcpjam/sdk/
29
29
 
30
30
  // package.json
31
31
  var package_default = {
32
- version: "5.12.1"};
32
+ version: "5.13.0"};
33
33
  function conformanceExitCode(result) {
34
34
  if (result.outcome === "incomplete") return 3;
35
35
  if (result.outcome === "failed") return 1;
@@ -4939,6 +4939,34 @@ function registerCloudLinkCommands(cloud) {
4939
4939
  }
4940
4940
  );
4941
4941
  }
4942
+ var EFFORT_LEVELS_NOTE = `(${MODEL_REASONING_EFFORTS.join(
4943
+ " | "
4944
+ )}). Which levels a model accepts is \`supportedReasoningEfforts\` in \`mcpjam models list\`; one the route cannot apply is refused, never dropped.`;
4945
+ var EFFORT_FLAG_DESCRIPTION = `Set the reasoning effort ${EFFORT_LEVELS_NOTE} Only edits the effort on an existing model selection (refused when there is none); use --model-selection to set a model and effort together.`;
4946
+ var REQUEST_EFFORT_FLAG_DESCRIPTION = `Reasoning effort ${EFFORT_LEVELS_NOTE}`;
4947
+ function parseEffortFlag(value, flag = "--effort") {
4948
+ const effort = value.trim().toLowerCase();
4949
+ if (!MODEL_REASONING_EFFORTS.includes(effort)) {
4950
+ throw usageError(
4951
+ `${flag} expects one of ${MODEL_REASONING_EFFORTS.join(
4952
+ ", "
4953
+ )}, got "${value}".`
4954
+ );
4955
+ }
4956
+ return effort;
4957
+ }
4958
+ function effortShorthand(options) {
4959
+ if (options.effort !== void 0 && options.clearEffort) {
4960
+ throw usageError("Provide either --effort or --clear-effort, not both.");
4961
+ }
4962
+ if (options.clearEffort) return null;
4963
+ return options.effort !== void 0 ? parseEffortFlag(options.effort) : void 0;
4964
+ }
4965
+ function parseModelSelectionFlag(value, flag = "--model-selection") {
4966
+ return parseJsonInputRecord(value, flag);
4967
+ }
4968
+
4969
+ // src/commands/environments.ts
4942
4970
  function validateInput(op, raw) {
4943
4971
  const parsed = op.inputSchema.safeParse(raw);
4944
4972
  if (!parsed.success) {
@@ -5103,12 +5131,15 @@ function registerEnvironmentsCommands(program) {
5103
5131
  ).option("--project <id-or-name>", "Project name or ID").option("--name <name>", "Display name for the new environment").option("--host-id <id>", "ID of the host this environment runs against").option("--description <text>", "Optional description").option(
5104
5132
  "--model <id>",
5105
5133
  "Model this environment runs, overriding the model pinned on its host. Omit to inherit the host's. Stored verbatim \u2014 pass exactly the id the provider request should carry"
5134
+ ).option(
5135
+ "--model-selection <json>",
5136
+ "Whole saved model selection behind the override (source, connection, settings.reasoningEffort), as JSON (or @file, or -). Must be for the model named; sent alone it pins its own model."
5106
5137
  ).option(
5107
5138
  "--sandbox-image <id>",
5108
5139
  "Project-shared sandbox image (see `mcpjam cloud images`) to pin: eval runs boot a fresh sandbox from it"
5109
5140
  ).option(
5110
5141
  "--file <path>",
5111
- "Environment JSON file with any of name/hostId/description/serverAttachmentId/modelId/skillSelection/secretSelection/pluginVersionIds/sandboxImageId (or - for stdin)"
5142
+ "Environment JSON file with any of name/hostId/description/serverAttachmentId/modelId/modelSelection/skillSelection/secretSelection/pluginVersionIds/sandboxImageId (or - for stdin)"
5112
5143
  ).option("--json <json>", "Inline environment JSON (or @file, or -)").action(
5113
5144
  async (options, command) => {
5114
5145
  const globalOptions = getGlobalOptions(command);
@@ -5138,6 +5169,7 @@ function registerEnvironmentsCommands(program) {
5138
5169
  ...options.hostId !== void 0 ? { hostId: options.hostId } : {},
5139
5170
  ...options.description !== void 0 ? { description: options.description } : {},
5140
5171
  ...options.model !== void 0 ? { modelId: options.model } : {},
5172
+ ...options.modelSelection !== void 0 ? { modelSelection: parseModelSelectionFlag(options.modelSelection) } : {},
5141
5173
  ...options.sandboxImage !== void 0 ? { sandboxImageId: options.sandboxImage } : {}
5142
5174
  });
5143
5175
  const result = await runPlatformOperation(
@@ -5160,6 +5192,9 @@ function registerEnvironmentsCommands(program) {
5160
5192
  ).option(
5161
5193
  "--model <id>",
5162
5194
  "Model to run instead of the host's pinned one (stored verbatim)"
5195
+ ).option(
5196
+ "--model-selection <json>",
5197
+ "Whole saved model selection (source, connection, settings.reasoningEffort), as JSON (or @file, or -). Different efforts of one model are different environments."
5163
5198
  ).option(
5164
5199
  "--computer <id-or-name>",
5165
5200
  "Project-shared sandbox image to pin, so runs boot a fresh computer from it"
@@ -5186,6 +5221,7 @@ function registerEnvironmentsCommands(program) {
5186
5221
  host: options.host,
5187
5222
  ...options.serverGroup !== void 0 ? { serverGroup: options.serverGroup } : {},
5188
5223
  ...options.model !== void 0 ? { model: options.model } : {},
5224
+ ...options.modelSelection !== void 0 ? { modelSelection: parseModelSelectionFlag(options.modelSelection) } : {},
5189
5225
  ...options.computer !== void 0 ? { computer: options.computer } : {},
5190
5226
  ...options.skill?.length ? { skills: { mode: "explicit", skillIds: options.skill } } : {},
5191
5227
  ...options.secret?.length ? { secrets: { mode: "explicit", secretIds: options.secret } } : {}
@@ -5241,6 +5277,12 @@ function registerEnvironmentsCommands(program) {
5241
5277
  ).option(
5242
5278
  "--clear-model",
5243
5279
  "Clear the model override so the environment inherits its host's model again"
5280
+ ).option(
5281
+ "--model-selection <json>",
5282
+ "Whole saved model selection for the override (source, connection, settings.reasoningEffort), as JSON (or @file, or -). Must be for the model named."
5283
+ ).option("--effort <level>", EFFORT_FLAG_DESCRIPTION).option(
5284
+ "--clear-effort",
5285
+ "Remove the reasoning effort from the environment's model selection"
5244
5286
  ).option(
5245
5287
  "--sandbox-image <id>",
5246
5288
  `New sandbox-image pin (clear via --json '{"sandboxImageId": null}')`
@@ -5251,6 +5293,7 @@ function registerEnvironmentsCommands(program) {
5251
5293
  async (options, command) => {
5252
5294
  const globalOptions = getGlobalOptions(command);
5253
5295
  const body = loadJsonObject(options) ?? {};
5296
+ const reasoningEffort = effortShorthand(options);
5254
5297
  if (options.model !== void 0 && options.clearModel) {
5255
5298
  throw usageError("Provide either --model or --clear-model, not both.");
5256
5299
  }
@@ -5284,6 +5327,8 @@ function registerEnvironmentsCommands(program) {
5284
5327
  // both this command and the API already accept; neither is removed.
5285
5328
  ...options.clearModel ? { modelId: null } : {},
5286
5329
  ...options.model !== void 0 ? { modelId: options.model } : {},
5330
+ ...options.modelSelection !== void 0 ? { modelSelection: parseModelSelectionFlag(options.modelSelection) } : {},
5331
+ ...reasoningEffort !== void 0 ? { reasoningEffort } : {},
5287
5332
  ...options.sandboxImage !== void 0 ? { sandboxImageId: options.sandboxImage } : {}
5288
5333
  });
5289
5334
  const result = await runPlatformOperation(
@@ -8119,7 +8164,13 @@ function composeField(options) {
8119
8164
  const composeClient = options.composeClient ?? options.composeHost;
8120
8165
  const clientFlag = options.composeHost !== void 0 ? "--compose-host" : "--compose-client";
8121
8166
  const models = Array.isArray(options.composeModel) ? options.composeModel : options.composeModel ? [options.composeModel] : void 0;
8122
- const refinements = options.composeComputer !== void 0 || models !== void 0 || (options.composeServer?.length ?? 0) > 0 || options.composeServerGroup !== void 0 || options.composeHostServers === true || (options.composeSkill?.length ?? 0) > 0 || (options.composeSecret?.length ?? 0) > 0 || options.withClientDefault === true || options.saveTargets === true;
8167
+ const modelSelections = (Array.isArray(options.composeModelSelection) ? options.composeModelSelection : options.composeModelSelection !== void 0 ? [options.composeModelSelection] : []).map(
8168
+ (raw) => (
8169
+ // The server validates the selection; the flag parser only guarantees JSON.
8170
+ parseModelSelectionFlag(raw, "--compose-model-selection")
8171
+ )
8172
+ );
8173
+ const refinements = options.composeComputer !== void 0 || models !== void 0 || modelSelections.length > 0 || (options.composeServer?.length ?? 0) > 0 || options.composeServerGroup !== void 0 || options.composeHostServers === true || (options.composeSkill?.length ?? 0) > 0 || (options.composeSecret?.length ?? 0) > 0 || options.withClientDefault === true || options.saveTargets === true;
8123
8174
  if (!composeClient) {
8124
8175
  if (refinements) {
8125
8176
  throw usageError(
@@ -8150,6 +8201,7 @@ function composeField(options) {
8150
8201
  ...options.composeServerGroup !== void 0 ? { serverGroup: options.composeServerGroup } : {},
8151
8202
  ...selectorField("server", "servers", options.composeServer),
8152
8203
  ...models !== void 0 ? { models } : {},
8204
+ ...modelSelections.length > 0 ? { modelSelections } : {},
8153
8205
  ...options.withClientDefault === true ? { includeClientDefault: true } : {},
8154
8206
  ...options.saveTargets === true ? { saveTargets: true } : {},
8155
8207
  ...options.composeComputer !== void 0 ? { computer: options.composeComputer } : {},
@@ -8572,6 +8624,10 @@ function buildSuiteUpdateInput(options) {
8572
8624
  exec.systemPrompt = options.systemPrompt;
8573
8625
  if (options.temperature !== void 0)
8574
8626
  exec.temperature = Number(options.temperature);
8627
+ if (options.modelSelection !== void 0)
8628
+ exec.modelSelection = parseModelSelectionFlag(options.modelSelection);
8629
+ const reasoningEffort = effortShorthand(options);
8630
+ if (reasoningEffort !== void 0) exec.reasoningEffort = reasoningEffort;
8575
8631
  if (Object.keys(exec).length > 0) input.executionConfig = exec;
8576
8632
  const settings = { ...input.settings ?? {} };
8577
8633
  const edit = applyGradingFlags(options, settings);
@@ -10004,6 +10060,9 @@ function registerEvalCommands(program) {
10004
10060
  ).option(
10005
10061
  "--compose-model <id...>",
10006
10062
  "Model(s) to run on the composed stack. Replaces the client default unless --with-client-default is set."
10063
+ ).option(
10064
+ "--compose-model-selection <json...>",
10065
+ "A whole saved model selection (source, connection, settings.reasoningEffort) as JSON (or @file, or -): one cell for its model, at its effort. Alongside --compose-model. Repeat it to add several selections for one model (e.g. at low and at high) \u2014 each distinct selection is its own cell."
10007
10066
  ).option(
10008
10067
  "--with-client-default",
10009
10068
  "Also launch an inherit cell that uses each client's pinned model, alongside --compose-model"
@@ -11318,7 +11377,13 @@ ${summary}
11318
11377
  ).option(
11319
11378
  "--client <id-or-name...>",
11320
11379
  "Replace client attachments (by name or ID)"
11321
- ).option("--host <id-or-name...>", "Deprecated alias for --client").option("--model <id>", "Execution model id").option("--system-prompt <text>", "Execution system prompt").option("--temperature <n>", "Execution temperature").option(
11380
+ ).option("--host <id-or-name...>", "Deprecated alias for --client").option("--model <id>", "Execution model id").option(
11381
+ "--model-selection <json>",
11382
+ "Whole saved model selection for the suite (source, connection, settings.reasoningEffort), as JSON (or @file, or -). Must be for --model when both are given."
11383
+ ).option("--effort <level>", EFFORT_FLAG_DESCRIPTION).option(
11384
+ "--clear-effort",
11385
+ "Remove the reasoning effort from the suite's model selection"
11386
+ ).option("--system-prompt <text>", "Execution system prompt").option("--temperature <n>", "Execution temperature").option(
11322
11387
  "--min-accuracy <pct>",
11323
11388
  "Suite accuracy threshold: one percentage, 0\u2013100, over the whole run"
11324
11389
  ).option(
@@ -11516,6 +11581,9 @@ ${summary}
11516
11581
  ).option(
11517
11582
  "--compose-model <id>",
11518
11583
  "One model to run this case on. A matrix of models is suite-level (`eval run`) only."
11584
+ ).option(
11585
+ "--compose-model-selection <json>",
11586
+ "One whole saved model selection (source, connection, settings.reasoningEffort) as JSON (or @file, or -) to run this case on, at its effort."
11519
11587
  ).option(
11520
11588
  "--compose-server <id-or-name...>",
11521
11589
  "Server(s) to pin on the composed stack. Snapshots them into a server group, so the run keeps testing these servers even if the host's own server list changes later. Mutually exclusive with --compose-server-group."
@@ -11822,6 +11890,10 @@ var SETTABLE_FIELDS = {
11822
11890
  unsettable: false,
11823
11891
  note: "a client cannot be edited into one that pins no model"
11824
11892
  },
11893
+ // A whole selection as JSON (source, connection, settings.reasoningEffort).
11894
+ // `--unset modelSelection` drops the saved selection and keeps the bare
11895
+ // `modelId`. For just the effort on an existing selection use --effort.
11896
+ modelSelection: { kind: "json", unsettable: true },
11825
11897
  // Required-resettable: --unset resets to the canonical default.
11826
11898
  systemPrompt: { kind: "string", unsettable: true },
11827
11899
  temperature: { kind: "number", unsettable: true },
@@ -12000,6 +12072,9 @@ function registerClientsCommands(program) {
12000
12072
  ).option(
12001
12073
  "--unset <key...>",
12002
12074
  "Clear an optional field to absent, or reset a required one to its default. Repeatable"
12075
+ ).option("--effort <level>", EFFORT_FLAG_DESCRIPTION).option(
12076
+ "--clear-effort",
12077
+ "Remove the reasoning effort from the client's model selection"
12003
12078
  ).option(
12004
12079
  "--file <path>",
12005
12080
  "Replacement client config v2 JSON (or - for stdin)"
@@ -12011,6 +12086,7 @@ function registerClientsCommands(program) {
12011
12086
  const globalOptions = getGlobalOptions(command);
12012
12087
  const config = loadConfigObject(options);
12013
12088
  const set = buildSetBlock(options.set, options.unset);
12089
+ const reasoningEffort = effortShorthand(options);
12014
12090
  if (config !== void 0 && set !== void 0) {
12015
12091
  throw usageError(
12016
12092
  "Use either --set/--unset (named fields) or --file/--json (whole-config replacement), not both."
@@ -12023,7 +12099,8 @@ function registerClientsCommands(program) {
12023
12099
  ...options.expectedName !== void 0 ? { expectedName: options.expectedName } : {},
12024
12100
  ...options.expectedConfigId !== void 0 ? { expectedConfigId: options.expectedConfigId } : {},
12025
12101
  ...config !== void 0 ? { config } : {},
12026
- ...set !== void 0 ? { set } : {}
12102
+ ...set !== void 0 ? { set } : {},
12103
+ ...reasoningEffort !== void 0 ? { reasoningEffort } : {}
12027
12104
  });
12028
12105
  const result = await runPlatformOperation(
12029
12106
  platformOptionsOf(command),
@@ -14124,7 +14201,10 @@ function registerSessionsCommands(program) {
14124
14201
  ).option("--max-steps <n>", "Maximum engine steps this turn (1-16)").option(
14125
14202
  "--max-tool-calls <n>",
14126
14203
  "Cap the tool calls this turn may make. 0 answers without tools."
14127
- ).option("--temperature <n>", "Sampling temperature (0-2)")
14204
+ ).option("--temperature <n>", "Sampling temperature (0-2)").option(
14205
+ "--effort <level>",
14206
+ `${REQUEST_EFFORT_FLAG_DESCRIPTION} First turn only: pinned to the session, refused on a continuation. Replaces the temperature, so it cannot be combined with --temperature.`
14207
+ )
14128
14208
  )
14129
14209
  ),
14130
14210
  {
@@ -14155,7 +14235,8 @@ function registerSessionsCommands(program) {
14155
14235
  "--max-tool-calls",
14156
14236
  { min: 0, max: 16 }
14157
14237
  ),
14158
- temperature: parseFloatOption(options.temperature)
14238
+ temperature: parseFloatOption(options.temperature),
14239
+ reasoningEffort: options.effort !== void 0 ? parseEffortFlag(options.effort) : void 0
14159
14240
  }),
14160
14241
  // A Playground turn runs a model, and often tools with it. The 30s program
14161
14242
  // default expired mid-turn while the turn kept running and spending, which