replicas-cli 0.2.683 → 0.2.685
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 +20 -3
- 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.
|
|
27374
|
+
var CLI_VERSION = "0.2.685";
|
|
27362
27375
|
|
|
27363
27376
|
// ../shared/src/version.ts
|
|
27364
27377
|
function compareVersions(v1, v2) {
|
|
@@ -30538,7 +30551,9 @@ async function automationCreateCommand(name, options) {
|
|
|
30538
30551
|
{ agentProvider: void 0, model: void 0 }
|
|
30539
30552
|
);
|
|
30540
30553
|
try {
|
|
30541
|
-
const envResponse = await orgAuthenticatedFetch(
|
|
30554
|
+
const envResponse = await orgAuthenticatedFetch(
|
|
30555
|
+
`/v1/environments?scope=${options.personal ? "all" : "org"}`
|
|
30556
|
+
);
|
|
30542
30557
|
const selectableEnvs = envResponse.environments;
|
|
30543
30558
|
if (selectableEnvs.length === 0) {
|
|
30544
30559
|
console.log(import_chalk18.default.red("No environments found. Please create an environment first."));
|
|
@@ -30861,7 +30876,9 @@ async function automationEditCommand(id, options) {
|
|
|
30861
30876
|
}
|
|
30862
30877
|
}
|
|
30863
30878
|
if (options.environment) {
|
|
30864
|
-
const envResp = await orgAuthenticatedFetch(
|
|
30879
|
+
const envResp = await orgAuthenticatedFetch(
|
|
30880
|
+
`/v1/environments?scope=${existing.automation.user_id ? "all" : "org"}`
|
|
30881
|
+
);
|
|
30865
30882
|
body.environment_id = resolveSelectableEnvironmentId(options.environment, envResp.environments);
|
|
30866
30883
|
}
|
|
30867
30884
|
if (lifecyclePolicy) {
|