replicas-cli 0.2.792 → 0.2.794

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 (2) hide show
  1. package/dist/index.cjs +24 -6
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22397,13 +22397,17 @@ var ENTERPRISE_PLAN = PLANS.enterprise;
22397
22397
  // ../shared/src/analytics/types.ts
22398
22398
  var credentialAccountSchema = external_exports.object({
22399
22399
  ownerName: external_exports.string().optional(),
22400
- email: external_exports.string().optional()
22400
+ email: external_exports.string().optional(),
22401
+ /** 1-based place in the owner's account pool, set only when the pool holds several accounts. */
22402
+ ordinal: external_exports.number().int().positive().optional()
22401
22403
  });
22402
22404
  var agentCredentialSnapshotSchema = external_exports.object({
22403
22405
  method: external_exports.enum(CREDENTIAL_METHOD),
22404
22406
  scope: external_exports.enum(CREDENTIAL_SCOPE),
22405
22407
  revision: external_exports.string().optional(),
22406
- account: credentialAccountSchema.optional()
22408
+ account: credentialAccountSchema.optional(),
22409
+ /** The `credentials` row, which tells apart accounts pooled under one method and scope. */
22410
+ credentialId: external_exports.string().optional()
22407
22411
  });
22408
22412
  function isAuthMethod(value) {
22409
22413
  return typeof value === "string" && Object.values(CREDENTIAL_METHOD).some((method) => method === value);
@@ -22415,7 +22419,7 @@ function isCredentialScope(value) {
22415
22419
  // ../shared/src/workspace-credentials.ts
22416
22420
  var WORKSPACE_CREDENTIAL_PROVIDERS = ["claude", "codex"];
22417
22421
  var workspaceCredentialProviderSchema = external_exports.enum(WORKSPACE_CREDENTIAL_PROVIDERS);
22418
- var workspaceCredentialSelectionSchema = agentCredentialSnapshotSchema.omit({ revision: true, account: true });
22422
+ var workspaceCredentialSelectionSchema = agentCredentialSnapshotSchema.omit({ revision: true, account: true, credentialId: true });
22419
22423
  var createWorkspaceCredentialSchema = workspaceCredentialSelectionSchema.extend({
22420
22424
  provider: external_exports.enum(VALID_AGENT_PROVIDERS)
22421
22425
  }).refine(({ provider, method }) => agentCredentialMethods(provider).includes(method), {
@@ -22814,6 +22818,12 @@ var agentQuotaExhaustedPayloadSchema = external_exports.object({
22814
22818
  forkTo: fallbackHarnessStepSchema.optional()
22815
22819
  });
22816
22820
 
22821
+ // ../shared/src/credential-pool.ts
22822
+ var MAX_CREDENTIAL_POOL_ACCOUNTS = 10;
22823
+ var reorderCredentialPoolSchema = external_exports.object({
22824
+ credential_ids: external_exports.array(external_exports.string().uuid()).min(1).max(MAX_CREDENTIAL_POOL_ACCOUNTS)
22825
+ });
22826
+
22817
22827
  // ../shared/src/event.ts
22818
22828
  var CLAUDE_PARTIAL_MESSAGE_EVENT_TYPE = "claude-partial-message";
22819
22829
  function coerceClaudePartialMessagePayload(payload) {
@@ -24537,7 +24547,9 @@ if (result.errors?.length) throw new Error(JSON.stringify(result.errors));
24537
24547
 
24538
24548
  The gateway refreshes expired credentials and retries authentication failures once. Check the response's \`errors\` field before using \`data\`.
24539
24549
 
24540
- Personal \u2192 Connections links a person's Linear identity for agent defaults and attribution. Its disconnected state does not mean the organization's Linear integration is disconnected, and connecting it does not refresh the organization's token. Only recommend reconnecting under Organization \u2192 Integrations when the gateway reports missing credentials or an unrecoverable OAuth failure. Report transient failures without asking the user to disconnect.
24550
+ Initiatives need the \`initiative:read\` scope, which organizations connected before it was requested do not have. If Linear answers \`Invalid scope\`, ask an admin to reconnect Linear under Organization \u2192 Integrations; retrying will not help.
24551
+
24552
+ Personal \u2192 Connections links a person's Linear identity for agent defaults and attribution. Its disconnected state does not mean the organization's Linear integration is disconnected, and connecting it does not refresh the organization's token. Only recommend reconnecting under Organization \u2192 Integrations when the gateway reports missing credentials or an unrecoverable OAuth failure, or when Linear answers \`Invalid scope\`. Report transient failures without asking the user to disconnect.
24541
24553
 
24542
24554
  ## Create a ticket
24543
24555
 
@@ -27990,7 +28002,7 @@ var headlessAgentRequestSchema = external_exports.object({
27990
28002
  });
27991
28003
 
27992
28004
  // ../shared/src/cli-version.ts
27993
- var CLI_VERSION = "0.2.792";
28005
+ var CLI_VERSION = "0.2.794";
27994
28006
 
27995
28007
  // ../shared/src/version.ts
27996
28008
  function compareVersions(v1, v2) {
@@ -28084,7 +28096,7 @@ var mothershipSlackSpawnRequestSchema = external_exports.object({
28084
28096
  message_ts: external_exports.string().describe("Timestamp of the Slack message that asked for the work (the envelope's `message_ts`). The server verifies this message and its author."),
28085
28097
  user_id: external_exports.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
28086
28098
  prompt: external_exports.string().describe("Complete task for the new workspace, written so it stands on its own."),
28087
- environment_id: external_exports.string().optional().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`. Pass it only when clearly confident it fits; omit it to let routing choose or ask the person.`)
28099
+ environment_id: external_exports.string().optional().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`. Pass it only when clearly confident it fits; omit it to let routing choose. If routing cannot choose, the call fails and nothing is posted, so pick one or ask the person.`)
28088
28100
  });
28089
28101
  var mothershipSlackRelayRequestSchema = external_exports.object({
28090
28102
  channel_id: slackChannelIdSchema,
@@ -29147,6 +29159,12 @@ function renderAuthFlowSuccess(providerLabel, summary, target) {
29147
29159
  import_chalk.default.bold(summary.email) + (summary.planType ? import_chalk.default.gray(` \xB7 ${summary.planType}`) : "")
29148
29160
  );
29149
29161
  }
29162
+ if (summary.accountOrdinal && summary.accountCount && summary.accountCount > 1) {
29163
+ field(
29164
+ "Account order",
29165
+ `${summary.accountOrdinal} of ${summary.accountCount}` + import_chalk.default.gray(" \xB7 Replicas moves to the next account when one hits its usage limit")
29166
+ );
29167
+ }
29150
29168
  console.log();
29151
29169
  }
29152
29170
  async function openForApproval(host, authUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.792",
3
+ "version": "0.2.794",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {