replicas-cli 0.2.571 → 0.2.572

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 +11 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -7819,6 +7819,7 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
7819
7819
  { method: CREDENTIAL_METHOD.OPENROUTER, credentialType: CREDENTIAL_TYPE.OPENROUTER_API_KEY }
7820
7820
  ],
7821
7821
  [AGENT.PI]: [
7822
+ { method: CREDENTIAL_METHOD.OPENCODE_GO, credentialType: CREDENTIAL_TYPE.OPENCODE_GO_API_KEY },
7822
7823
  { method: CREDENTIAL_METHOD.ASTER, credentialType: CREDENTIAL_TYPE.ASTER_API_KEY },
7823
7824
  { method: CREDENTIAL_METHOD.OPENROUTER, credentialType: CREDENTIAL_TYPE.OPENROUTER_API_KEY }
7824
7825
  ]
@@ -22523,6 +22524,13 @@ var AGENT_MODELS = {
22523
22524
  pi: [...OPENROUTER_MODELS, ...ASTER_MODELS],
22524
22525
  relay: [CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_MODEL]
22525
22526
  };
22527
+ function getAgentModelOptions(provider, overrides) {
22528
+ const override = overrides?.[provider];
22529
+ return override?.length ? override : AGENT_MODELS[provider];
22530
+ }
22531
+ function isAgentModelAllowed(provider, model, overrides) {
22532
+ return overrides?.[provider] === null || getAgentModelOptions(provider, overrides).includes(model);
22533
+ }
22526
22534
  var MODEL_LABELS = {
22527
22535
  fable: "Fable 5",
22528
22536
  [CLAUDE_FABLE_5_MODEL]: "Fable 5",
@@ -24447,7 +24455,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
24447
24455
  });
24448
24456
 
24449
24457
  // ../shared/src/cli-version.ts
24450
- var CLI_VERSION = "0.2.571";
24458
+ var CLI_VERSION = "0.2.572";
24451
24459
 
24452
24460
  // ../shared/src/version.ts
24453
24461
  function compareVersions(v1, v2) {
@@ -24946,8 +24954,8 @@ function validateAgentSelection(body, existing, modelCatalogs = {}) {
24946
24954
  if (!effectiveAgent) {
24947
24955
  return createErrorResult({ message: "Cannot set model without an agent_provider (the model would be applied against the org default agent and may not be valid for it)" });
24948
24956
  }
24949
- const allowed = modelCatalogs[effectiveAgent] ?? AGENT_MODELS[effectiveAgent];
24950
- if (!allowed.includes(model)) {
24957
+ const allowed = getAgentModelOptions(effectiveAgent, modelCatalogs);
24958
+ if (!isAgentModelAllowed(effectiveAgent, model, modelCatalogs)) {
24951
24959
  return createErrorResult({ message: `Invalid model "${model}" for agent ${effectiveAgent}. Valid models: ${allowed.join(", ")}` });
24952
24960
  }
24953
24961
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.571",
3
+ "version": "0.2.572",
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": {