replicas-cli 0.2.571 → 0.2.573
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.cjs +11 -4
- 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.
|
|
24458
|
+
var CLI_VERSION = "0.2.573";
|
|
24451
24459
|
|
|
24452
24460
|
// ../shared/src/version.ts
|
|
24453
24461
|
function compareVersions(v1, v2) {
|
|
@@ -24770,7 +24778,6 @@ var HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
|
|
|
24770
24778
|
["xero", "xero", "OAUTH2", false, "business", "Xero"],
|
|
24771
24779
|
["brex", "brex", "API_KEY", false, "business", "Brex"],
|
|
24772
24780
|
["buffer", "buffer", "OAUTH2", false, "business", "Buffer"],
|
|
24773
|
-
["docusign", "docusign", "OAUTH2", false, "business", "DocuSign"],
|
|
24774
24781
|
["canva", "canva", "OAUTH2", true, "productivity", "Canva"],
|
|
24775
24782
|
["webflow", "webflow", "API_KEY", false, "business", "Webflow"],
|
|
24776
24783
|
["firecrawl", "firecrawl", "API_KEY", false, "data", "Firecrawl"],
|
|
@@ -24946,8 +24953,8 @@ function validateAgentSelection(body, existing, modelCatalogs = {}) {
|
|
|
24946
24953
|
if (!effectiveAgent) {
|
|
24947
24954
|
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
24955
|
}
|
|
24949
|
-
const allowed =
|
|
24950
|
-
if (!
|
|
24956
|
+
const allowed = getAgentModelOptions(effectiveAgent, modelCatalogs);
|
|
24957
|
+
if (!isAgentModelAllowed(effectiveAgent, model, modelCatalogs)) {
|
|
24951
24958
|
return createErrorResult({ message: `Invalid model "${model}" for agent ${effectiveAgent}. Valid models: ${allowed.join(", ")}` });
|
|
24952
24959
|
}
|
|
24953
24960
|
}
|