replicas-cli 0.2.793 → 0.2.795
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 -4
- 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) {
|
|
@@ -27992,7 +28002,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
27992
28002
|
});
|
|
27993
28003
|
|
|
27994
28004
|
// ../shared/src/cli-version.ts
|
|
27995
|
-
var CLI_VERSION = "0.2.
|
|
28005
|
+
var CLI_VERSION = "0.2.795";
|
|
27996
28006
|
|
|
27997
28007
|
// ../shared/src/version.ts
|
|
27998
28008
|
function compareVersions(v1, v2) {
|
|
@@ -29149,6 +29159,12 @@ function renderAuthFlowSuccess(providerLabel, summary, target) {
|
|
|
29149
29159
|
import_chalk.default.bold(summary.email) + (summary.planType ? import_chalk.default.gray(` \xB7 ${summary.planType}`) : "")
|
|
29150
29160
|
);
|
|
29151
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
|
+
}
|
|
29152
29168
|
console.log();
|
|
29153
29169
|
}
|
|
29154
29170
|
async function openForApproval(host, authUrl) {
|