@mcpjam/cli 5.8.0 → 5.10.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
@@ -9,9 +9,9 @@ import { mkdir, writeFile, readFile, chmod, rename, rm, open, unlink, stat } fro
9
9
  import { spawn } from 'child_process';
10
10
  import { createRequire } from 'module';
11
11
  import os, { homedir, tmpdir } from 'os';
12
- import { RUN_LAUNCH_HEADERS, getRegistryDirectoryServerOperation, listOrganizationsOperation, listProjectsOperation, createProjectOperation, updateProjectOperation, deleteProjectOperation, connectProjectServerOperation, getProjectServerConnectionStatusOperation, cancelProjectServerConnectionOperation, listChatSessionsOperation, resolveProject, sendChatMessageOperation, createTunnelOperation, listEvalSuiteRunsOperation, listEvalSuiteRevisionsOperation, runEvalSuiteOperation, getEvalRunOperation, getEvalRunRouteFactsOperation, getEvalRunServerFactsOperation, proposeEvalDescriptionRewriteOperation, startEvalDescriptionExperimentOperation, getEvalDescriptionExperimentOperation, cancelEvalRunOperation, backtestEvalRunOperation, requestEvalRunJudgeOperation, listEvalRunIterationsOperation, getEvalIterationTraceOperation, getEvalRunStepsOperation, getEvalSuiteOperation, updateEvalSuiteOperation, deleteEvalSuiteOperation, setEvalSuiteScheduleOperation, setEvalSuiteEnvironmentsOperation, listEvalCasesOperation, getEvalCaseOperation, createEvalCaseOperation, updateEvalCaseOperation, deleteEvalCaseOperation, generateEvalCasesOperation, createClientOperation, updateClientOperation, setClientServersOperation, duplicateClientOperation, createEnvironmentOperation, ensureAdhocEnvironmentOperation, nameEnvironmentOperation, updateEnvironmentOperation, createSecretOperation, updateSecretOperation, createImageOperation, validateImageBlueprintOperation, updateImageOperation, listTraceDestinationsOperation, getTraceDestinationOperation, createTraceDestinationOperation, updateTraceDestinationOperation, deleteTraceDestinationOperation, testTraceDestinationOperation, pauseTraceDestinationOperation, resumeTraceDestinationOperation, backfillTraceDestinationOperation, listTraceDestinationBackfillsOperation, runOperationWithPermalinks, withPermalinkEnvelope, PlatformApiError, installRegistryServerOperation, installRegistryDirectoryServerOperation, getProjectServerOperation, DEFAULT_PLATFORM_API_BASE_URL, projectResolutionError, listProjectServersOperation, createProjectServerOperation, updateProjectServerOperation, deleteProjectServerOperation, showServersOperation, driveChatSessionBrowserOperation, observeChatSessionBrowserOperation, isPlatformApiError, createEvalSuiteOperation, listEvalSuitesOperation, buildAppPermalink, listEvalSuiteStageAnalyticsOperation, getEvalRunStageAnalyticsOperation, listEvalGithubReposOperation, connectEvalGithubRepoOperation, resolveEnvironmentOperation, listClientsOperation, getClientOperation, deleteClientOperation, listEnvironmentsOperation, getEnvironmentOperation, getEnvironmentCapabilitiesOperation, archiveEnvironmentOperation, restoreEnvironmentOperation, listSecretsOperation, getSecretOperation, deleteSecretOperation, listImagesOperation, getImageOperation, buildImageOperation, listImageBuildsOperation, useImageOperation, resetComputerOperation, promoteImageOperation, deleteImageOperation, listProjectSkillsOperation, getProjectSkillOperation, listJourneysOperation, listJourneyRunsOperation, getJourneyRunOperation, launchJourneyRunOperation, cancelJourneyRunOperation, listJourneyRunSessionsOperation, listScenariosOperation, getScenarioOperation, publishScenarioOperation, unpublishScenarioOperation, PlatformApiClient, platformBrowserToolPolicySchema, listServerToolsOperation, runEvalCaseOperation, getCapabilitiesOperation, searchSessionsOperation, getChatSessionOperation, getChatSessionTraceOperation, listPersonasOperation, getPersonaOperation, createPersonaOperation, updatePersonaOperation, deletePersonaOperation, generatePersonasOperation, getJourneyOperation, createJourneyOperation, updateJourneyOperation, archiveJourneyOperation, generateJourneysOperation, getSwarmOverviewOperation, getJourneyRunScorecardOperation, listSwarmFindingsOperation, dismissSwarmFindingOperation, undismissSwarmFindingOperation, getWaveInsightsOperation, requestWaveInsightsOperation, cancelWaveInsightsOperation, listSwarmsOperation, getSwarmOperation, createSwarmOperation, updateSwarmOperation, archiveSwarmOperation, getUserTestingScenarioOperation, listUserTestingSessionsOperation, getUserTestingSessionOperation, getUserTestingMetricsOperation, getUserTestingUsageOperation, listUserTestingFindingsOperation, getUserTestingSignalsOperation, getUserTestingInsightsOperation, requestUserTestingInsightsOperation, cancelUserTestingInsightsOperation, dismissUserTestingFindingOperation, undismissUserTestingFindingOperation, updateUserTestingScenarioOperation, setUserTestingGuestExecutionOperation, rotateUserTestingLinkOperation, upsertUserTestingMemberOperation, removeUserTestingMemberOperation, rebindUserTestingScenarioOperation, startClaudeReadinessRunOperation, startOpenAIReadinessRunOperation, getReadinessRunOperation, listReadinessRunsOperation, cancelReadinessRunOperation, getReadinessReportOperation, listRegistryDirectorySourcesOperation, searchRegistryDirectoryOperation, listRegistryServersOperation, listRegistryConnectionsOperation, uninstallRegistryServerOperation } from '@mcpjam/sdk/platform';
12
+ import { RUN_LAUNCH_HEADERS, getRegistryDirectoryServerOperation, listOrganizationsOperation, listProjectsOperation, createProjectOperation, updateProjectOperation, deleteProjectOperation, connectProjectServerOperation, getProjectServerConnectionStatusOperation, cancelProjectServerConnectionOperation, listChatSessionsOperation, resolveProject, sendChatMessageOperation, createTunnelOperation, listEvalSuiteRunsOperation, listEvalSuiteRevisionsOperation, runEvalSuiteOperation, getEvalRunOperation, getEvalRunRouteFactsOperation, getEvalRunServerFactsOperation, proposeEvalDescriptionRewriteOperation, startEvalDescriptionExperimentOperation, getEvalDescriptionExperimentOperation, cancelEvalRunOperation, backtestEvalRunJudgeOperation, backtestEvalRunOperation, requestEvalRunJudgeOperation, listEvalRunIterationsOperation, getEvalIterationTraceOperation, getEvalRunStepsOperation, getEvalSuiteOperation, updateEvalSuiteOperation, deleteEvalSuiteOperation, setEvalSuiteScheduleOperation, setEvalSuiteEnvironmentsOperation, listEvalCasesOperation, getEvalCaseOperation, createEvalCaseOperation, updateEvalCaseOperation, deleteEvalCaseOperation, generateEvalCasesOperation, createClientOperation, updateClientOperation, setClientServersOperation, duplicateClientOperation, createEnvironmentOperation, ensureAdhocEnvironmentOperation, nameEnvironmentOperation, updateEnvironmentOperation, createSecretOperation, updateSecretOperation, createImageOperation, validateImageBlueprintOperation, updateImageOperation, listTraceDestinationsOperation, getTraceDestinationOperation, createTraceDestinationOperation, updateTraceDestinationOperation, deleteTraceDestinationOperation, testTraceDestinationOperation, pauseTraceDestinationOperation, resumeTraceDestinationOperation, backfillTraceDestinationOperation, listTraceDestinationBackfillsOperation, runOperationWithPermalinks, withPermalinkEnvelope, PlatformApiError, installRegistryServerOperation, installRegistryDirectoryServerOperation, getProjectServerOperation, DEFAULT_PLATFORM_API_BASE_URL, projectResolutionError, listProjectServersOperation, createProjectServerOperation, updateProjectServerOperation, deleteProjectServerOperation, showServersOperation, driveChatSessionBrowserOperation, observeChatSessionBrowserOperation, isPlatformApiError, describePlatformRefusal, platformRefusalHint, createEvalSuiteOperation, listEvalSuitesOperation, buildAppPermalink, listEvalSuiteStageAnalyticsOperation, getEvalRunStageAnalyticsOperation, listEvalGithubReposOperation, connectEvalGithubRepoOperation, resolveEnvironmentOperation, listClientsOperation, getClientOperation, deleteClientOperation, listEnvironmentsOperation, getEnvironmentOperation, getEnvironmentCapabilitiesOperation, archiveEnvironmentOperation, restoreEnvironmentOperation, listSecretsOperation, getSecretOperation, deleteSecretOperation, listImagesOperation, getImageOperation, buildImageOperation, listImageBuildsOperation, useImageOperation, resetComputerOperation, promoteImageOperation, deleteImageOperation, listProjectSkillsOperation, getProjectSkillOperation, listJourneysOperation, listJourneyRunsOperation, getJourneyRunOperation, launchJourneyRunOperation, cancelJourneyRunOperation, listJourneyRunSessionsOperation, listScenariosOperation, getScenarioOperation, publishScenarioOperation, unpublishScenarioOperation, PlatformApiClient, platformBrowserToolPolicySchema, listServerToolsOperation, runEvalCaseOperation, getCapabilitiesOperation, searchSessionsOperation, getChatSessionOperation, getChatSessionTraceOperation, listPersonasOperation, getPersonaOperation, createPersonaOperation, updatePersonaOperation, deletePersonaOperation, generatePersonasOperation, getJourneyOperation, createJourneyOperation, updateJourneyOperation, archiveJourneyOperation, generateJourneysOperation, getSwarmOverviewOperation, getJourneyRunScorecardOperation, listSwarmFindingsOperation, dismissSwarmFindingOperation, undismissSwarmFindingOperation, getWaveInsightsOperation, requestWaveInsightsOperation, cancelWaveInsightsOperation, listSwarmsOperation, getSwarmOperation, createSwarmOperation, updateSwarmOperation, archiveSwarmOperation, getUserTestingScenarioOperation, listUserTestingSessionsOperation, getUserTestingSessionOperation, getUserTestingMetricsOperation, getUserTestingUsageOperation, listUserTestingFindingsOperation, getUserTestingSignalsOperation, getUserTestingInsightsOperation, requestUserTestingInsightsOperation, cancelUserTestingInsightsOperation, dismissUserTestingFindingOperation, undismissUserTestingFindingOperation, updateUserTestingScenarioOperation, setUserTestingGuestExecutionOperation, rotateUserTestingLinkOperation, upsertUserTestingMemberOperation, removeUserTestingMemberOperation, rebindUserTestingScenarioOperation, startClaudeReadinessRunOperation, startOpenAIReadinessRunOperation, getReadinessRunOperation, listReadinessRunsOperation, cancelReadinessRunOperation, getReadinessReportOperation, listRegistryDirectorySourcesOperation, searchRegistryDirectoryOperation, listRegistryServersOperation, listRegistryConnectionsOperation, uninstallRegistryServerOperation } from '@mcpjam/sdk/platform';
13
13
  import { isDeepStrictEqual } from 'util';
14
- import { composeSuiteGateWithBaseReport, EVAL_SUITE_SCHEMA_VERSION, EVAL_SUITE_SCHEMA_VERSIONS, MAX_BATCH_CREATE_CASES, filterSuppressedSuiteAssertions, evalSuiteFileSchema, MAX_IMPORT_NOTE_CHARS, isOpaqueId } from '@mcpjam/sdk/contract';
14
+ import { swarmVerdictLabel, composeSuiteGateWithBaseReport, EVAL_SUITE_SCHEMA_VERSION, EVAL_SUITE_SCHEMA_VERSIONS, MAX_BATCH_CREATE_CASES, filterSuppressedSuiteAssertions, evalSuiteFileSchema, MAX_IMPORT_NOTE_CHARS, isOpaqueId } from '@mcpjam/sdk/contract';
15
15
  import { HOST_TEMPLATES, HOST_TEMPLATE_IDS, seedHostTemplate } from '@mcpjam/sdk/host-config/templates';
16
16
  import { setTimeout as setTimeout$1 } from 'timers/promises';
17
17
  import http from 'http';
@@ -28,7 +28,7 @@ import { PostHog } from 'posthog-node';
28
28
 
29
29
  // package.json
30
30
  var package_default = {
31
- version: "5.8.0"};
31
+ version: "5.10.0"};
32
32
  function conformanceExitCode(result) {
33
33
  if (result.outcome === "incomplete") return 3;
34
34
  if (result.outcome === "failed") return 1;
@@ -4206,6 +4206,15 @@ function toCliError(error) {
4206
4206
  error.details
4207
4207
  );
4208
4208
  }
4209
+ const refusal = describePlatformRefusal(error);
4210
+ if (refusal) {
4211
+ return cliError(
4212
+ error.code,
4213
+ `${error.message} ${platformRefusalHint(refusal)}`,
4214
+ 1,
4215
+ { ...error.details ?? {}, refusal }
4216
+ );
4217
+ }
4209
4218
  const message = error.code === "UNAUTHORIZED" ? `${error.message} Run \`mcpjam cloud login\` or pass a valid sk_ API key.` : error.message;
4210
4219
  return cliError(error.code, message, 1, error.details);
4211
4220
  }
@@ -5912,14 +5921,6 @@ function suiteLevelFindings(detail, cases, environment) {
5912
5921
  )
5913
5922
  );
5914
5923
  }
5915
- if (settings.judge?.autoRun === true) {
5916
- findings.push(
5917
- unsupported(
5918
- ["settings", "judge"],
5919
- "suite automatically runs LLM-as-judge grading, and a suite file has no judge vocabulary. Exporting it would produce a file that grades with deterministic assertions alone."
5920
- )
5921
- );
5922
- }
5923
5924
  return findings;
5924
5925
  }
5925
5926
  function caseLevelFindings(evalCase, index, suiteChecks) {
@@ -6122,6 +6123,17 @@ function buildSuiteFileFromPlatform(input, options = {}) {
6122
6123
  } : {}
6123
6124
  },
6124
6125
  defaults: {
6126
+ ...detail.settings.judge ? {
6127
+ judge: {
6128
+ enabled: detail.settings.judge.enabled,
6129
+ ...detail.settings.judge.model != null ? { model: detail.settings.judge.model } : {},
6130
+ ...detail.settings.judge.autoRun !== void 0 ? { autoRun: detail.settings.judge.autoRun } : {},
6131
+ ...detail.settings.judge.threshold !== void 0 ? { threshold: detail.settings.judge.threshold } : {},
6132
+ ...detail.settings.judge.role !== void 0 ? { role: detail.settings.judge.role } : {},
6133
+ ...detail.settings.judge.severity !== void 0 ? { severity: detail.settings.judge.severity } : {},
6134
+ ...detail.settings.judge.rubric !== void 0 ? { rubric: detail.settings.judge.rubric } : {}
6135
+ }
6136
+ } : {},
6125
6137
  model: suiteModel,
6126
6138
  ...hoistedProvider === void 0 ? {} : { provider: hoistedProvider },
6127
6139
  ...executionConfig.systemPrompt === void 0 ? {} : { systemPrompt: executionConfig.systemPrompt },
@@ -6144,6 +6156,7 @@ function buildSuiteFileFromPlatform(input, options = {}) {
6144
6156
  // import status for it would assert a faithfulness claim about a mapping
6145
6157
  // that never happened.
6146
6158
  cases: cases.map((evalCase, index) => ({
6159
+ ...evalCase.judge !== void 0 ? { judge: evalCase.judge } : {},
6147
6160
  id: caseIds[index],
6148
6161
  title: evalCase.title,
6149
6162
  ...evalCase.intent === void 0 ? {} : { intent: evalCase.intent },
@@ -6294,12 +6307,15 @@ function caseCountAndRules(vocabulary, testCase, mode) {
6294
6307
  }
6295
6308
  function fileCaseToCreateBody(testCase, vocabulary = 1) {
6296
6309
  return {
6310
+ ...testCase.judge === void 0 ? {} : { judge: testCase.judge },
6297
6311
  id: testCase.id,
6298
6312
  title: testCase.title,
6299
6313
  ...testCase.intent !== void 0 ? { intent: testCase.intent } : {},
6300
6314
  ...testCase.kind !== void 0 ? { kind: testCase.kind } : {},
6301
6315
  steps: testCase.steps,
6302
- ...testCase.suppressedSuiteStandardCheckIds !== void 0 ? { suppressedSuiteStandardCheckIds: testCase.suppressedSuiteStandardCheckIds } : {},
6316
+ ...testCase.suppressedSuiteStandardCheckIds !== void 0 ? {
6317
+ suppressedSuiteStandardCheckIds: testCase.suppressedSuiteStandardCheckIds
6318
+ } : {},
6303
6319
  ...caseCountAndRules(vocabulary, testCase, "create"),
6304
6320
  passThreshold: testCase.passThreshold,
6305
6321
  ...testCase.expectedOutput !== void 0 ? { expectedOutput: testCase.expectedOutput } : {},
@@ -6315,13 +6331,16 @@ function fileCaseToCreateBody(testCase, vocabulary = 1) {
6315
6331
  }
6316
6332
  function fileCaseToUpdateBody(testCase, previousSuppression, vocabulary = 1) {
6317
6333
  return {
6334
+ judge: testCase.judge ?? null,
6318
6335
  title: testCase.title,
6319
6336
  // A file re-sync is authoritative: unlike an ordinary PATCH, a missing
6320
6337
  // label must clear the old one rather than preserve stale attribution.
6321
6338
  intent: testCase.intent ?? null,
6322
6339
  kind: testCase.kind ?? null,
6323
6340
  steps: testCase.steps,
6324
- ...testCase.suppressedSuiteStandardCheckIds !== void 0 || previousSuppression?.length ? { suppressedSuiteStandardCheckIds: testCase.suppressedSuiteStandardCheckIds ?? [] } : {},
6341
+ ...testCase.suppressedSuiteStandardCheckIds !== void 0 || previousSuppression?.length ? {
6342
+ suppressedSuiteStandardCheckIds: testCase.suppressedSuiteStandardCheckIds ?? []
6343
+ } : {},
6325
6344
  ...caseCountAndRules(vocabulary, testCase, "update"),
6326
6345
  passThreshold: testCase.passThreshold,
6327
6346
  expectedOutput: testCase.expectedOutput ?? "",
@@ -6847,6 +6866,7 @@ async function executeEvalRunFromFile(context, params) {
6847
6866
  {
6848
6867
  projectId: project.id,
6849
6868
  body: {
6869
+ judge: authored.defaults.judge ?? null,
6850
6870
  declaredSuiteId: authored.suite.id,
6851
6871
  name: authored.suite.name,
6852
6872
  ...authored.suite.description !== void 0 ? { description: authored.suite.description } : {},
@@ -10480,7 +10500,7 @@ function registerEvalCommands(program) {
10480
10500
  );
10481
10501
  addProjectOption(
10482
10502
  descriptionExperiment.command("propose").description(
10483
- "Draft a rewritten tool description from a finished run's failed trials. Spends a small model budget; poll `description-experiment get` rather than re-proposing."
10503
+ "Draft a rewritten tool description from a finished run's failed trials. Included with MCPJam; no customer credits consumed; subject to MCPJam's daily analysis budget. Poll `description-experiment get` rather than re-proposing."
10484
10504
  ).requiredOption("--run <id>", "Source eval run ID").requiredOption("--tool <name>", "Catalog tool name to rewrite").option("--case <id...>", "Limit evidence to these case ids")
10485
10505
  ).action(
10486
10506
  async (options, command) => {
@@ -10582,6 +10602,27 @@ function registerEvalCommands(program) {
10582
10602
  );
10583
10603
  }
10584
10604
  );
10605
+ addProjectOption(
10606
+ evals.command("judge-backtest").description(
10607
+ "Preview draft grading instructions on recorded evidence (uses credits)"
10608
+ ).requiredOption("--run <id>", "Terminal eval run ID").requiredOption(
10609
+ "--json <request>",
10610
+ "JSON or @file with rubric and optional continuation"
10611
+ )
10612
+ ).action(
10613
+ async (options, command) => {
10614
+ const body = new JsonInputContext().parseJsonInputRecord(
10615
+ options.json,
10616
+ "--json"
10617
+ );
10618
+ const input = validateOpInput(
10619
+ backtestEvalRunJudgeOperation,
10620
+ { ...body, runId: options.run, project: options.project },
10621
+ { projectOptional: true }
10622
+ );
10623
+ await executeOp(backtestEvalRunJudgeOperation, input, options, command);
10624
+ }
10625
+ );
10585
10626
  addProjectOption(
10586
10627
  evals.command("backtest").description(
10587
10628
  "Preview assertion changes on stored evidence without changing results"
@@ -10620,7 +10661,7 @@ function registerEvalCommands(program) {
10620
10661
  evals.command("judge").description(
10621
10662
  "Grade a finished eval run with LLM as Judge (SPENDS your model budget)"
10622
10663
  ).requiredOption("--run <id>", "Eval run ID (from `eval run`)")
10623
- ).option("--force", "Re-grade a run that already has a judge result").option(
10664
+ ).option("--scope <all|failed>", "Regrade all or retry only failed grading").option("--force", "Re-grade a run that already has a judge result").option(
10624
10665
  "--enable",
10625
10666
  "Grade this run even though the judge was off when it ran"
10626
10667
  ).option("--judge-model <id>", "Judge model for this run only").option("--judge-threshold <0-1>", "Pass threshold for this run only").action(
@@ -10630,6 +10671,10 @@ function registerEvalCommands(program) {
10630
10671
  requestEvalRunJudgeOperation,
10631
10672
  {
10632
10673
  runId: options.run,
10674
+ // Preserved when explicitly supplied, even empty: dropping an
10675
+ // empty value would silently grade everything when the person
10676
+ // asked for something and mistyped it.
10677
+ ...options.scope !== void 0 ? { scope: options.scope } : {},
10633
10678
  ...options.project === void 0 ? {} : { project: options.project },
10634
10679
  ...options.force ? { force: true } : {},
10635
10680
  ...options.enable ? { enable: true } : {},
@@ -11464,7 +11509,7 @@ ${summary}
11464
11509
  }
11465
11510
  );
11466
11511
  cases.command("generate").description(
11467
- "AI-generate test cases from the suite's tools (spends credits)"
11512
+ "AI-generate test cases from the suite's tools (included with MCPJam; no customer credits consumed; counts against the organization's daily generation quota)"
11468
11513
  ).requiredOption("--suite <id-or-name>", "Eval suite name or ID").option("--project <id-or-name>", PROJECT_OPT).option("--mode <normal|negative>", "Generation mode (default normal)").option(
11469
11514
  "--server <id-or-name...>",
11470
11515
  "Servers to discover tools from (default: suite's)"
@@ -12256,7 +12301,10 @@ function registerJourneysCommands(program) {
12256
12301
  { client, signal }
12257
12302
  )
12258
12303
  );
12259
- writeResult(result, globalOptions.format);
12304
+ writeResult(
12305
+ globalOptions.format === "human" ? { ...result, items: result.items.map((row) => ({ ...row, goalResult: swarmVerdictLabel(row.verdict) })) } : result,
12306
+ globalOptions.format
12307
+ );
12260
12308
  }
12261
12309
  );
12262
12310
  return journeys;
@@ -13745,7 +13793,7 @@ function registerSwarmAuthoringCommands(program, journeys) {
13745
13793
  addGroundingOptions(
13746
13794
  addProjectOption(
13747
13795
  personas.command("generate").description(
13748
- "Draft candidate personas with a model, grounded in what the project's servers do. SAVES NOTHING \u2014 pipe what you want into `personas create`. Spends."
13796
+ "Draft candidate personas with a model, grounded in what the project's servers do. SAVES NOTHING \u2014 pipe what you want into `personas create`. Included with MCPJam; no customer credits consumed; counts against the organization's daily generation quota."
13749
13797
  ).option("--persona-count <n>", "Draft a slate of N personas.")
13750
13798
  )
13751
13799
  ),
@@ -13878,7 +13926,7 @@ function registerSwarmAuthoringCommands(program, journeys) {
13878
13926
  addGroundingOptions(
13879
13927
  addProjectOption(
13880
13928
  journeys.command("generate").description(
13881
- "Draft candidate journeys for a persona with a model. The persona is passed BY VALUE and does not have to exist yet, because the create flow drafts both before saving either. SAVES NOTHING; spends."
13929
+ "Draft candidate journeys for a persona with a model. The persona is passed BY VALUE and does not have to exist yet, because the create flow drafts both before saving either. SAVES NOTHING; included with MCPJam (no customer credits consumed) and counts against the organization's daily generation quota."
13882
13930
  ).requiredOption("--persona-name <name>").requiredOption("--persona-role <role>").option("--persona-notes <text>")
13883
13931
  )
13884
13932
  ),
@@ -13960,10 +14008,10 @@ function registerSwarmAuthoringCommands(program, journeys) {
13960
14008
  bindOperation(
13961
14009
  addProjectOption(
13962
14010
  journeys.command("request-insights").description(
13963
- "Ask a model to analyze a whole wave. Returns immediately as pending; poll `journeys insights`. SPENDS against a daily budget shared with user-testing insights. Read the scorecards first \u2014 they are free and usually explain the failure."
14011
+ "Ask a model to analyze a whole wave. Returns immediately as pending; poll `journeys insights`. Included with MCPJam \u2014 no credits are consumed; it counts against a daily insight quota shared with user-testing insights. Read the scorecards first \u2014 they cost no quota and usually explain the failure."
13964
14012
  ).requiredOption("--wave <id>", "Wave ID").option(
13965
14013
  "--force",
13966
- "Regenerate over a wave that already has insights. Spends again."
14014
+ "Regenerate over a wave that already has insights. Takes another slice of the daily insight quota."
13967
14015
  )
13968
14016
  ),
13969
14017
  requestWaveInsightsOperation,
@@ -13976,7 +14024,7 @@ function registerSwarmAuthoringCommands(program, journeys) {
13976
14024
  bindOperation(
13977
14025
  addProjectOption(
13978
14026
  journeys.command("cancel-insights").description(
13979
- "Stop an in-flight insights generation. The recovery path for a wave stuck pending \u2014 without it the only way forward is --force, which spends again."
14027
+ "Stop an in-flight insights generation. The recovery path for a wave stuck pending \u2014 without it the only way forward is --force, which takes another slice of the daily insight quota."
13980
14028
  ).requiredOption("--wave <id>", "Wave ID")
13981
14029
  ),
13982
14030
  cancelWaveInsightsOperation,
@@ -15657,7 +15705,7 @@ function registerUserTestingCommands(program) {
15657
15705
  scenarioCommand(
15658
15706
  group,
15659
15707
  "request-insights",
15660
- "Ask a model to analyze the current window. Returns pending; poll `insights`. SPENDS against a daily budget shared with swarm insights. A 409 means the window has not been mined yet \u2014 wait rather than retrying in a loop."
15708
+ "Ask a model to analyze the current window. Returns pending; poll `insights`. Included with MCPJam \u2014 no credits are consumed; it counts against a daily insight quota shared with swarm insights. A 409 means the window has not been mined yet \u2014 wait rather than retrying in a loop."
15661
15709
  ).option("--force", "Regenerate over a window that already has insights."),
15662
15710
  requestUserTestingInsightsOperation,
15663
15711
  (options) => ({
@@ -15670,7 +15718,7 @@ function registerUserTestingCommands(program) {
15670
15718
  scenarioCommand(
15671
15719
  group,
15672
15720
  "cancel-insights",
15673
- "Stop an in-flight generation. The recovery path for a window stuck pending \u2014 without it the only way forward is --force, which spends again."
15721
+ "Stop an in-flight generation. The recovery path for a window stuck pending \u2014 without it the only way forward is --force, which takes another slice of the daily insight quota."
15674
15722
  ).requiredOption("--window <id>", "Window ID"),
15675
15723
  cancelUserTestingInsightsOperation,
15676
15724
  (options) => ({