@amerged/ohmyhost-cli 0.1.54 → 0.1.56

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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/dist/bin.js +1 -1
  3. package/dist/{chunk-ZEKUTE7M.js → chunk-HNFWXGDN.js} +511 -60
  4. package/dist/index.js +3 -1
  5. package/package.json +1 -1
  6. package/src/apps/product-cli/package.json +1 -1
  7. package/src/apps/product-cli/src/cli.ts +128 -25
  8. package/src/apps/product-cli/src/command.ts +143 -20
  9. package/src/apps/product-cli/src/index.ts +1 -0
  10. package/src/apps/product-cli/src/product-api.ts +75 -2
  11. package/src/apps/product-cli/src/repository-init.ts +46 -9
  12. package/src/apps/product-cli/src/runtime-contract.ts +52 -4
  13. package/src/packages/contracts/package.json +10 -0
  14. package/src/packages/contracts/src/database-events.ts +1 -0
  15. package/src/packages/contracts/src/database-migration-admission.ts +33 -3
  16. package/src/packages/contracts/src/database-migration-errors.ts +10 -2
  17. package/src/packages/contracts/src/feedback.ts +9 -0
  18. package/src/packages/contracts/src/framework-admission.ts +4 -0
  19. package/src/packages/contracts/src/framework-source-rules.ts +55 -0
  20. package/src/packages/contracts/src/operation-failure.ts +8 -0
  21. package/src/packages/contracts/src/organization-mcp-connections.ts +7 -0
  22. package/src/packages/contracts/src/problem-policy.ts +74 -2
  23. package/src/packages/contracts/src/project-exports.ts +30 -0
  24. package/src/packages/contracts/src/secret-names.ts +9 -2
  25. package/src/packages/contracts/src/wfp-dispatch.ts +43 -0
  26. package/src/packages/sdk-ts/package.json +1 -1
  27. package/src/packages/sdk-ts/src/generated/index.ts +39 -0
  28. package/src/packages/sdk-ts/src/generated/sdk.gen.ts +303 -13
  29. package/src/packages/sdk-ts/src/generated/types.gen.ts +460 -12
  30. package/src/packages/sdk-ts/src/managed-mail-response.ts +12 -0
  31. package/src/packages/sdk-ts/src/managed-mail.ts +10 -1
  32. package/src/packages/workos-auth-contracts/src/webhooks.ts +7 -0
package/dist/index.js CHANGED
@@ -68,6 +68,7 @@ import {
68
68
  parseCurrentIdentity,
69
69
  parseDevAccessState,
70
70
  parseDevAccessTicket,
71
+ parseGithubDisconnection,
71
72
  parseOperation,
72
73
  parseOperationEvent,
73
74
  parseOrganizationReferral,
@@ -102,7 +103,7 @@ import {
102
103
  selectWorkspace,
103
104
  verifiedUserId,
104
105
  workspaceOf
105
- } from "./chunk-ZEKUTE7M.js";
106
+ } from "./chunk-HNFWXGDN.js";
106
107
  import {
107
108
  CredentialStoreIntegrityError,
108
109
  CredentialStoreUnavailableError,
@@ -325,6 +326,7 @@ export {
325
326
  parseCurrentIdentity,
326
327
  parseDevAccessState,
327
328
  parseDevAccessTicket,
329
+ parseGithubDisconnection,
328
330
  parseOperation,
329
331
  parseOperationEvent,
330
332
  parseOrganizationReferral,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amerged/ohmyhost-cli",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/product-cli",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "private": true,
5
5
  "ohmyhost": {
6
6
  "deployment": "production",
@@ -39,7 +39,12 @@ import {
39
39
  assertProjectContext,
40
40
  assertProjectNotesReceipt,
41
41
  } from "@ohmyhost/contracts/project-context";
42
- import { assertProjectExport } from "@ohmyhost/contracts/project-exports";
42
+ import {
43
+ assertProjectExport,
44
+ assertProjectExportDownloadLink,
45
+ EXPORT_PASSWORD_MIN_CHARACTERS,
46
+ exportPasswordMeetsMinimum,
47
+ } from "@ohmyhost/contracts/project-exports";
43
48
  import { prepareUserTokenFile, UserTokenFileError } from "./user-token-file.js";
44
49
  import { parseUserApiKeyPage } from "@ohmyhost/contracts/user-api-keys";
45
50
  import { assertOrganizationCreditUsage } from "@ohmyhost/contracts/credit-pricing";
@@ -103,7 +108,10 @@ import {
103
108
  import {
104
109
  parseCloudflareDnsAuthorization,
105
110
  parseGithubConnectionAuthorization,
111
+ parseGithubDisconnection,
106
112
  parseGithubOrganizationConnectionStatus,
113
+ parseOrganizationMcpConnectionList,
114
+ parseOrganizationMcpConnectionRevocation,
107
115
  parseCloudflareDnsAuthorizationStatus,
108
116
  parseDeploymentPlan,
109
117
  parseProjectDataChangePlan,
@@ -347,10 +355,14 @@ const HELP_USAGE = Object.freeze({
347
355
  "github connect":
348
356
  "ohmyhost github connect --organization ULID --idempotency-key KEY --json (connect once, then link covered repositories without another browser consent)",
349
357
  "github status": "ohmyhost github status --organization ULID --json",
358
+ "github disconnect":
359
+ "ohmyhost github disconnect --organization ULID --yes --json (Owner only; revokes the workspace GitHub connection and every repository grant under it, so auto-deploy and linked sources stop at once; the GitHub App stays installed for other workspaces, and github connect starts a new connection)",
350
360
  "export create":
351
361
  "ohmyhost export create --project ULID --idempotency-key KEY --stdin --json (password on stdin only; one accepted SQL ZIP per project per 24 hours)",
352
362
  "export get":
353
- "ohmyhost export get EXPORT_ULID --project ULID --json (poll the original job; signed ZIP download lasts 24 hours)",
363
+ "ohmyhost export get EXPORT_ULID --project ULID --json (poll the original job: progress and error only, never a download URL; once it succeeds, run 'ohmyhost export download-link' for the signed 24-hour ZIP link)",
364
+ "export download-link":
365
+ "ohmyhost export download-link EXPORT_ULID --project ULID --json (signs one audited 24-hour link of a succeeded SQL ZIP; the URL is a secret, keep it out of files and notes; each call signs another link)",
354
366
  "credits account": "ohmyhost credits account --organization ULID --json",
355
367
  "referral link":
356
368
  "ohmyhost referral link --organization ULID --json (the workspace's link to share; a new user whose first workspace comes from it starts with 30 days of Paid and 1,000 credits, and its first payment gives this workspace 1,000 credits plus 30 days of Paid unless a subscription or an unbounded grant already covers it)",
@@ -374,6 +386,10 @@ const HELP_USAGE = Object.freeze({
374
386
  "ohmyhost organization list [--profile-name NAME] --json (the workspaces of the chosen login's user and the one that login is scoped to)",
375
387
  "organization use":
376
388
  "ohmyhost organization use --organization ULID [--profile-name NAME] --json (binds a login that has no organization yet; another organization needs its own login)",
389
+ "organization mcp-connections list":
390
+ "ohmyhost organization mcp-connections list --organization ULID --json (Owner only; lists each MCP client connected to this workspace and the member who connected it; disconnected consents are not listed)",
391
+ "organization mcp-connections revoke":
392
+ "ohmyhost organization mcp-connections revoke --organization ULID --connection UUID --yes --json (Owner only; disconnects one MCP client from this workspace only, and the member's other workspaces are unaffected; repeat until it answers revoked)",
377
393
  "operation get": "ohmyhost operation get OPERATION_ULID --json",
378
394
  "operation reconcile":
379
395
  "ohmyhost operation reconcile OPERATION_ULID --idempotency-key KEY --yes --json",
@@ -442,13 +458,13 @@ const HELP_USAGE = Object.freeze({
442
458
  "database webhook get":
443
459
  "ohmyhost database webhook get --project ULID [--environment dev|prod] --webhook ID --json",
444
460
  "database webhook delete":
445
- "ohmyhost database webhook delete --project ULID --environment dev|prod --webhook ID --yes --json",
461
+ "ohmyhost database webhook delete --project ULID --environment dev|prod --webhook ID [--idempotency-key KEY] --yes --json (a retry with the same key and request returns the stored answer; without a key each call is new)",
446
462
  "database webhook test":
447
- "ohmyhost database webhook test --project ULID --environment dev|prod --webhook ID --yes --json (sends one signed test request to the receiver; nothing is stored)",
463
+ "ohmyhost database webhook test --project ULID --environment dev|prod --webhook ID [--idempotency-key KEY] --yes --json (sends one signed test request to the receiver; nothing is stored; a retry with the same key and request returns the stored outcome without sending again)",
448
464
  "database webhook deliveries":
449
465
  "ohmyhost database webhook deliveries --project ULID [--environment dev|prod] [--webhook ID] [--limit 1..100] [--cursor CURSOR] --json",
450
466
  "database webhook replay":
451
- "ohmyhost database webhook replay --project ULID --environment dev|prod --delivery ID --yes --json",
467
+ "ohmyhost database webhook replay --project ULID --environment dev|prod --delivery ID [--idempotency-key KEY] --yes --json (a retry with the same key and request returns the stored answer without queuing another attempt)",
452
468
  "database schedule set":
453
469
  "ohmyhost database schedule set --project ULID --environment dev|prod --name NAME (--cron EXPR | --every-seconds N) --statements-file PATH [--timeout-ms N] [--enabled true|false] --yes --json (runs the statements in the file, a UTF-8 JSON array of 1 to 20 SQL strings, as the runtime role of the application; cron has five fields in UTC; every-seconds is 60 to 2678400; timeout-ms is 1000 to 30000, default 10000). A project whose Stop budget is reached has its schedules disabled automatically, within about an hour of the billed usage reaching the budget: the credit service does this after its hourly pgcf pass, and Continue budgets are never touched. While the budget is reached, schedule set with enabled true and schedule run are refused with project_budget_exceeded (HTTP 402). Re-enabling is manual: raise the budget (or wait for the next UTC month) and run database schedule set --enabled true again with the schedule body (read it with schedule get).",
454
470
  "database schedule list":
@@ -460,7 +476,7 @@ const HELP_USAGE = Object.freeze({
460
476
  "database schedule runs":
461
477
  "ohmyhost database schedule runs --project ULID [--environment dev|prod] --name NAME [--limit 1..50] --json",
462
478
  "database schedule run":
463
- "ohmyhost database schedule run --project ULID --environment dev|prod --name NAME --yes --json (queues one run now, in addition to the timer; refused with project_budget_exceeded (HTTP 402) while the project's Stop budget is reached)",
479
+ "ohmyhost database schedule run --project ULID --environment dev|prod --name NAME [--idempotency-key KEY] --yes --json (queues one run now, in addition to the timer; a retry with the same key and request returns the stored answer without a second run; refused with project_budget_exceeded (HTTP 402) while the project's Stop budget is reached)",
464
480
  "database executions":
465
481
  "ohmyhost database executions --project ULID [--environment dev|prod] --from ISO --to ISO --granularity hour|day [--limit 1..100] [--cursor CURSOR] --json (UTC timestamps like 2026-10-30T00:00:00.000Z aligned to the granularity, at most 31 days; counts schedule runs, webhook attempts and events per hour or day; these are counters only, executions have no price of their own and the awake compute time of the database is what is billed)",
466
482
  "database psql":
@@ -561,6 +577,8 @@ const HELP_USAGE = Object.freeze({
561
577
  "ohmyhost mail webhook verify --project ULID --environment ULID --idempotency-key KEY --json",
562
578
  "mail webhook disable":
563
579
  "ohmyhost mail webhook disable --project ULID --environment ULID --idempotency-key KEY --json",
580
+ "mail webhook rotate":
581
+ "ohmyhost mail webhook rotate --project ULID --environment ULID --idempotency-key KEY --yes --json (Owner only; issues a new signing secret for the same endpoint, stops the earlier secrets at once and ends receiving until the endpoint verifies the new one; the secret is returned once, so install it in Prod application secrets and never write it into files or notes)",
564
582
  "mail messages list":
565
583
  "ohmyhost mail messages list --project ULID --environment ULID [--after ULID] --json",
566
584
  "mail messages get":
@@ -639,11 +657,11 @@ export const invalidCommandAction = (argv: readonly string[], commandPrefix: str
639
657
  * (--yes but no key) may already have applied its change, so its state is read first. Any other
640
658
  * command only reads or signs in; it keeps the general advice.
641
659
  */
642
- const retryAdvice = (command: string): string => {
660
+ const retryAdvice = (command: string, keyed = true): string => {
643
661
  const usage = Object.hasOwn(HELP_USAGE, command)
644
662
  ? HELP_USAGE[command as CustomerCommandLabel]
645
663
  : "";
646
- if (usage.includes("--idempotency-key"))
664
+ if (keyed && usage.includes("--idempotency-key"))
647
665
  return "run the same command again with the same --idempotency-key; the change may already have been applied, and a new key could apply it twice";
648
666
  if (usage.includes("--yes"))
649
667
  return "this command has no idempotency key and the change may already have been applied; check its current state first with the matching list or get command (for example database access list --project ULID --json), and run the command again only if the change is not there";
@@ -651,18 +669,18 @@ const retryAdvice = (command: string): string => {
651
669
  };
652
670
 
653
671
  /** The next step after an unexpected client failure; the stderr diagnostic line identifies it. */
654
- export const internalErrorAction = (command: string): string =>
655
- `The ohmyhost client stopped on an unexpected error; the stderr line starting with [ohmyhost: identifies it. Compare 'ohmyhost --version' with https://ohmyho.st/client-release.json and install the published client if it is older, then ${retryAdvice(command)}. If the current client fails the same way, report it with feedback submit (kind bug, error code internal_error) and quote that stderr line.`;
672
+ export const internalErrorAction = (command: string, keyed = true): string =>
673
+ `The ohmyhost client stopped on an unexpected error; the stderr line starting with [ohmyhost: identifies it. Compare 'ohmyhost --version' with https://ohmyho.st/client-release.json and install the published client if it is older, then ${retryAdvice(command, keyed)}. If the current client fails the same way, report it with feedback submit (kind bug, error code internal_error) and quote that stderr line.`;
656
674
 
657
675
  /** The local credential store or saved-login index failed; a sandbox is the usual cause. */
658
676
  export const CREDENTIAL_STORE_UNAVAILABLE_ACTION =
659
677
  "This computer's credential store (for example macOS Keychain or Windows Credential Manager) or the saved-login list in ~/.ohmyhost/profiles could not be read or written; nothing was changed. If the agent runs in a sandbox, run the command with access to them before asking the customer to sign in again. If the store is locked, ask the customer to unlock it, then run the command again. On a server, container or CI runner without a credential store, do not run login: load OHMYHOST_TOKEN from a private env file with a token from the portal's API Tokens page.";
660
678
 
661
- const responseContractAction = (command: string): string =>
662
- `The ohmyho.st API answered in a form this client version does not accept, usually because the client is older than the service. Compare 'ohmyhost --version' with https://ohmyho.st/client-release.json; if it is older, install the published CLI and MCP and reload MCP. Then ${retryAdvice(command)}. If the current version answers this too, report it with feedback submit (kind bug, error code response_contract_invalid).`;
679
+ const responseContractAction = (command: string, keyed = true): string =>
680
+ `The ohmyho.st API answered in a form this client version does not accept, usually because the client is older than the service. Compare 'ohmyhost --version' with https://ohmyho.st/client-release.json; if it is older, install the published CLI and MCP and reload MCP. Then ${retryAdvice(command, keyed)}. If the current version answers this too, report it with feedback submit (kind bug, error code response_contract_invalid).`;
663
681
 
664
- const requestTimeoutAction = (command: string): string =>
665
- `The ohmyho.st API did not answer within 30 seconds; ${retryAdvice(command)}.`;
682
+ const requestTimeoutAction = (command: string, keyed = true): string =>
683
+ `The ohmyho.st API did not answer within 30 seconds; ${retryAdvice(command, keyed)}.`;
666
684
 
667
685
  const LOGOUT_UNCONFIRMED_ACTION =
668
686
  "The saved login was removed from this computer, but ohmyho.st did not confirm that its session ended. Running logout again cannot retry this, because the login is gone; do not sign in again just to revoke it. Tell the customer the session end was not confirmed.";
@@ -856,6 +874,48 @@ export class ProductCli {
856
874
  }),
857
875
  });
858
876
  }
877
+ if (command.kind === "github-disconnect") {
878
+ const api = await this.authenticatedApi(command.credentialStore, signal);
879
+ const github = parseGithubDisconnection(await api.disconnectGithub(command.organizationId));
880
+ if (
881
+ github.connection !== null &&
882
+ github.connection.organization_id !== command.organizationId
883
+ )
884
+ throw new ResponseContractError();
885
+ return success(name, {
886
+ status: github.status,
887
+ github,
888
+ ...(github.status === "connected"
889
+ ? {}
890
+ : { next_action: this.githubConnectAction(command.organizationId) }),
891
+ });
892
+ }
893
+ if (command.kind === "organization-mcp-connections-list") {
894
+ const api = await this.authenticatedApi(command.credentialStore, signal);
895
+ const page = parseOrganizationMcpConnectionList(
896
+ await api.listOrganizationMcpConnections(command.organizationId),
897
+ );
898
+ return success(name, { status: "listed", connections: page.connections });
899
+ }
900
+ if (command.kind === "organization-mcp-connection-revoke") {
901
+ const api = await this.authenticatedApi(command.credentialStore, signal);
902
+ const revocation = parseOrganizationMcpConnectionRevocation(
903
+ await api.revokeOrganizationMcpConnection({
904
+ organizationId: command.organizationId,
905
+ connectionId: command.connectionId,
906
+ }),
907
+ );
908
+ return success(name, {
909
+ status: revocation.state,
910
+ revocation,
911
+ ...(revocation.state === "revoked"
912
+ ? {}
913
+ : {
914
+ next_action:
915
+ "Repeat this exact command until status is revoked; the client's active provider use is still draining.",
916
+ }),
917
+ });
918
+ }
859
919
  if (command.kind === "whoami") return await this.getCurrentIdentity(command, signal);
860
920
  if (
861
921
  command.kind === "token-create" ||
@@ -1044,7 +1104,11 @@ export class ProductCli {
1044
1104
  if (command.kind === "export-create") {
1045
1105
  const api = await this.authenticatedApi(command.credentialStore, signal);
1046
1106
  const password = await this.dependencies.readSecretValue(signal);
1047
- if (password.trim().length === 0 || new TextEncoder().encode(password).length > 1024)
1107
+ if (
1108
+ password.trim().length === 0 ||
1109
+ new TextEncoder().encode(password).length > 1024 ||
1110
+ !exportPasswordMeetsMinimum(password)
1111
+ )
1048
1112
  throw new SecretInputError();
1049
1113
  const operation = parseOperation(
1050
1114
  await api.createProjectExport({
@@ -1064,6 +1128,15 @@ export class ProductCli {
1064
1128
  assertProjectExport(result);
1065
1129
  return success("export get", { status: result.state, export: result });
1066
1130
  }
1131
+ if (command.kind === "export-download-link") {
1132
+ const api = await this.authenticatedApi(command.credentialStore, signal);
1133
+ const link = await api.createProjectExportDownloadLink({
1134
+ projectId: command.projectId,
1135
+ exportId: command.exportId,
1136
+ });
1137
+ assertProjectExportDownloadLink(link);
1138
+ return success("export download-link", { status: "succeeded", download_link: link });
1139
+ }
1067
1140
  if (command.kind === "feedback-status") {
1068
1141
  const api = await this.authenticatedApi(command.credentialStore, signal);
1069
1142
  const feedback = await api.getFeedback(command.feedbackId, command.cursor);
@@ -1328,7 +1401,14 @@ export class ProductCli {
1328
1401
  profileLimitAction(this.dependencies.commandPrefix),
1329
1402
  );
1330
1403
  this.recordDiagnostic(diagnosticDescriptor(error, signal));
1331
- return classifyFailure(name, error, signal, this.context());
1404
+ return classifyFailure(
1405
+ name,
1406
+ error,
1407
+ signal,
1408
+ this.context(),
1409
+ // A mutation parsed without its optional --idempotency-key has no key to repeat with.
1410
+ !("idempotencyKey" in command && command.idempotencyKey === null),
1411
+ );
1332
1412
  }
1333
1413
  }
1334
1414
 
@@ -2113,6 +2193,7 @@ export class ProductCli {
2113
2193
  projectId: command.projectId,
2114
2194
  environment: command.environment,
2115
2195
  webhookId: command.webhookId,
2196
+ ...(command.idempotencyKey === null ? {} : { idempotencyKey: command.idempotencyKey }),
2116
2197
  });
2117
2198
  return success("database webhook delete", { status: "succeeded", deleted });
2118
2199
  }
@@ -2126,6 +2207,7 @@ export class ProductCli {
2126
2207
  projectId: command.projectId,
2127
2208
  environment: command.environment,
2128
2209
  webhookId: command.webhookId,
2210
+ ...(command.idempotencyKey === null ? {} : { idempotencyKey: command.idempotencyKey }),
2129
2211
  });
2130
2212
  return success("database webhook test", { status: "succeeded", result });
2131
2213
  }
@@ -2158,6 +2240,7 @@ export class ProductCli {
2158
2240
  projectId: command.projectId,
2159
2241
  environment: command.environment,
2160
2242
  deliveryId: command.deliveryId,
2243
+ ...(command.idempotencyKey === null ? {} : { idempotencyKey: command.idempotencyKey }),
2161
2244
  });
2162
2245
  return success("database webhook replay", { status: "succeeded", replay });
2163
2246
  }
@@ -2239,6 +2322,7 @@ export class ProductCli {
2239
2322
  projectId: command.projectId,
2240
2323
  environment: command.environment,
2241
2324
  name: command.name,
2325
+ ...(command.idempotencyKey === null ? {} : { idempotencyKey: command.idempotencyKey }),
2242
2326
  });
2243
2327
  return success("database schedule run", { status: "succeeded", run });
2244
2328
  }
@@ -3258,6 +3342,7 @@ const classifyFailure = (
3258
3342
  error: unknown,
3259
3343
  signal: AbortSignal,
3260
3344
  actingAs?: Readonly<Record<string, unknown>>,
3345
+ keyed = true,
3261
3346
  ): CliResult => {
3262
3347
  if (error instanceof LocalSourcePublicationError)
3263
3348
  return failure(
@@ -3276,16 +3361,16 @@ const classifyFailure = (
3276
3361
  130,
3277
3362
  "command_cancelled",
3278
3363
  true,
3279
- `The command was stopped by an interrupt or termination signal, for example the shell's command timeout, before it finished; ${retryAdvice(command)}. Give login and commands with --wait or --follow several minutes, or run them in the background.`,
3364
+ `The command was stopped by an interrupt or termination signal, for example the shell's command timeout, before it finished; ${retryAdvice(command, keyed)}. Give login and commands with --wait or --follow several minutes, or run them in the background.`,
3280
3365
  );
3281
3366
  }
3282
3367
  if (isTimeout(error)) {
3283
- return failure(command, 8, "request_timeout", true, requestTimeoutAction(command));
3368
+ return failure(command, 8, "request_timeout", true, requestTimeoutAction(command, keyed));
3284
3369
  }
3285
3370
  // A retryable request_timeout is a token refresh that timed out inside this command; the logout
3286
3371
  // timeout is not retryable and keeps its own advice.
3287
3372
  if (error instanceof ProductCliFailure && error.code === "request_timeout" && error.retryable) {
3288
- return failure(command, 8, "request_timeout", true, requestTimeoutAction(command));
3373
+ return failure(command, 8, "request_timeout", true, requestTimeoutAction(command, keyed));
3289
3374
  }
3290
3375
  if (error instanceof ProductCliFailure) {
3291
3376
  return failure(
@@ -3304,7 +3389,7 @@ const classifyFailure = (
3304
3389
  "secret_input_invalid",
3305
3390
  false,
3306
3391
  command === "export create"
3307
- ? "Pipe the ZIP password through standard input: non-blank UTF-8 of at most 1024 bytes. A final line break becomes part of the password."
3392
+ ? `Pipe the ZIP password through standard input: at least ${EXPORT_PASSWORD_MIN_CHARACTERS} characters, non-blank UTF-8 of at most 1024 bytes. A final line break becomes part of the password.`
3308
3393
  : "Pipe a non-empty UTF-8 value of at most 5120 bytes through standard input.",
3309
3394
  );
3310
3395
  }
@@ -3345,7 +3430,13 @@ const classifyFailure = (
3345
3430
  );
3346
3431
  }
3347
3432
  if (error instanceof ResponseContractError) {
3348
- return failure(command, 7, "response_contract_invalid", false, responseContractAction(command));
3433
+ return failure(
3434
+ command,
3435
+ 7,
3436
+ "response_contract_invalid",
3437
+ false,
3438
+ responseContractAction(command, keyed),
3439
+ );
3349
3440
  }
3350
3441
  if (error instanceof PublicResponseTooLargeError) {
3351
3442
  return failure(
@@ -3378,12 +3469,18 @@ const classifyFailure = (
3378
3469
  7,
3379
3470
  "response_contract_invalid",
3380
3471
  false,
3381
- responseContractAction(command),
3472
+ responseContractAction(command, keyed),
3382
3473
  );
3383
3474
  }
3384
3475
  }
3385
3476
  if (looksLikeRemoteObject(error)) {
3386
- return failure(command, 7, "response_contract_invalid", false, responseContractAction(command));
3477
+ return failure(
3478
+ command,
3479
+ 7,
3480
+ "response_contract_invalid",
3481
+ false,
3482
+ responseContractAction(command, keyed),
3483
+ );
3387
3484
  }
3388
3485
  if (error instanceof NetworkTransportError) {
3389
3486
  return failure(
@@ -3391,10 +3488,10 @@ const classifyFailure = (
3391
3488
  8,
3392
3489
  "network_error",
3393
3490
  true,
3394
- `The request did not reach the ohmyho.st API, or its answer was cut off. If the agent runs in a sandbox without network access, run the command with network access. Otherwise ${retryAdvice(command)}.`,
3491
+ `The request did not reach the ohmyho.st API, or its answer was cut off. If the agent runs in a sandbox without network access, run the command with network access. Otherwise ${retryAdvice(command, keyed)}.`,
3395
3492
  );
3396
3493
  }
3397
- return failure(command, 1, "internal_error", false, internalErrorAction(command));
3494
+ return failure(command, 1, "internal_error", false, internalErrorAction(command, keyed));
3398
3495
  };
3399
3496
 
3400
3497
  /** A 409 idempotency_key_reused problem, with what its answer carries. */
@@ -3631,6 +3728,7 @@ const parsedCommandName = (command: ProductCliCommand): CommandLabel => {
3631
3728
  if (command.kind === "source-read") return `source ${command.action}`;
3632
3729
  if (command.kind === "export-create") return "export create";
3633
3730
  if (command.kind === "export-get") return "export get";
3731
+ if (command.kind === "export-download-link") return "export download-link";
3634
3732
  if (command.kind === "token-create") return "token create";
3635
3733
  if (command.kind === "token-list") return "token list";
3636
3734
  if (command.kind === "token-revoke") return "token revoke";
@@ -3657,6 +3755,11 @@ const parsedCommandName = (command: ProductCliCommand): CommandLabel => {
3657
3755
  if (command.kind === "organization-use") return "organization use";
3658
3756
  if (command.kind === "github-connect") return "github connect";
3659
3757
  if (command.kind === "github-status") return "github status";
3758
+ if (command.kind === "github-disconnect") return "github disconnect";
3759
+ if (command.kind === "organization-mcp-connections-list")
3760
+ return "organization mcp-connections list";
3761
+ if (command.kind === "organization-mcp-connection-revoke")
3762
+ return "organization mcp-connections revoke";
3660
3763
  if (command.kind === "project-list") return "project list";
3661
3764
  if (command.kind === "database-compute-set") return "database compute set";
3662
3765
  if (command.kind === "database-compute-get") return "database compute get";