replicas-cli 0.2.684 → 0.2.686

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 +14 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -7930,6 +7930,9 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
7930
7930
  { method: CREDENTIAL_METHOD.OPENROUTER, credentialType: CREDENTIAL_TYPE.OPENROUTER_API_KEY }
7931
7931
  ]
7932
7932
  };
7933
+ function agentCredentialMethods(agent) {
7934
+ return AGENT_CREDENTIAL_METHODS_IN_ORDER[agent].map((entry) => entry.method);
7935
+ }
7933
7936
 
7934
7937
  // ../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
7935
7938
  var external_exports = {};
@@ -22458,6 +22461,16 @@ function isCredentialScope(value) {
22458
22461
  return typeof value === "string" && CREDENTIAL_SCOPES.some((scope) => scope === value);
22459
22462
  }
22460
22463
 
22464
+ // ../shared/src/workspace-credentials.ts
22465
+ var WORKSPACE_CREDENTIAL_PROVIDERS = ["claude", "codex"];
22466
+ var workspaceCredentialProviderSchema = external_exports.enum(WORKSPACE_CREDENTIAL_PROVIDERS);
22467
+ var workspaceCredentialSelectionSchema = agentCredentialSnapshotSchema.omit({ revision: true });
22468
+ var switchWorkspaceCredentialSchema = workspaceCredentialSelectionSchema.extend({
22469
+ provider: workspaceCredentialProviderSchema
22470
+ }).refine(({ provider, method }) => agentCredentialMethods(provider).includes(method), {
22471
+ message: "This authentication method is not supported by this agent"
22472
+ });
22473
+
22461
22474
  // ../shared/src/fallback-chains.ts
22462
22475
  var fallbackHarnessStepSchema = external_exports.object({
22463
22476
  kind: external_exports.literal("harness"),
@@ -27358,7 +27371,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27358
27371
  });
27359
27372
 
27360
27373
  // ../shared/src/cli-version.ts
27361
- var CLI_VERSION = "0.2.684";
27374
+ var CLI_VERSION = "0.2.686";
27362
27375
 
27363
27376
  // ../shared/src/version.ts
27364
27377
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.684",
3
+ "version": "0.2.686",
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": {