replicas-cli 0.2.384 → 0.2.386
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.mjs +25 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7604,6 +7604,7 @@ function createErrorResult(error51) {
|
|
|
7604
7604
|
|
|
7605
7605
|
// ../shared/src/agent.ts
|
|
7606
7606
|
var VALID_AGENT_PROVIDERS = ["claude", "codex", "cursor", "opencode", "pi", "relay"];
|
|
7607
|
+
var VALID_RELAY_SUBAGENT_PROVIDERS = VALID_AGENT_PROVIDERS;
|
|
7607
7608
|
var VALID_CODING_AGENT_PROVIDERS = VALID_AGENT_PROVIDERS.filter(
|
|
7608
7609
|
(provider) => provider !== "relay"
|
|
7609
7610
|
);
|
|
@@ -7645,10 +7646,25 @@ var AGENT_PROVIDER_OPTIONS = [
|
|
|
7645
7646
|
description: "Orchestrating agent that delegates to Claude Code, Codex, Cursor, and Opencode subagents"
|
|
7646
7647
|
}
|
|
7647
7648
|
];
|
|
7648
|
-
var VALID_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
7649
|
+
var VALID_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max", "ultra", "ultracode"];
|
|
7650
|
+
var STANDARD_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
7651
|
+
var THINKING_LEVELS_BY_AGENT = {
|
|
7652
|
+
claude: [...STANDARD_THINKING_LEVELS, "ultracode"],
|
|
7653
|
+
codex: [...STANDARD_THINKING_LEVELS, "ultra"],
|
|
7654
|
+
cursor: STANDARD_THINKING_LEVELS,
|
|
7655
|
+
opencode: STANDARD_THINKING_LEVELS,
|
|
7656
|
+
pi: STANDARD_THINKING_LEVELS,
|
|
7657
|
+
relay: [...STANDARD_THINKING_LEVELS, "ultracode"]
|
|
7658
|
+
};
|
|
7659
|
+
function getThinkingLevelOptions(provider) {
|
|
7660
|
+
return provider ? THINKING_LEVELS_BY_AGENT[provider] : VALID_THINKING_LEVELS;
|
|
7661
|
+
}
|
|
7649
7662
|
function isValidThinkingLevel(value) {
|
|
7650
7663
|
return VALID_THINKING_LEVELS.some((l) => l === value);
|
|
7651
7664
|
}
|
|
7665
|
+
function isProviderSpecificThinkingLevel(value) {
|
|
7666
|
+
return value === "ultra" || value === "ultracode";
|
|
7667
|
+
}
|
|
7652
7668
|
function getProviderDisplayName(provider, variant = "short") {
|
|
7653
7669
|
switch (provider) {
|
|
7654
7670
|
case "codex":
|
|
@@ -24306,6 +24322,7 @@ var EMPTY_AGENT_DEFAULT_SETTINGS = {
|
|
|
24306
24322
|
goal_mode: null,
|
|
24307
24323
|
fast_mode: null
|
|
24308
24324
|
};
|
|
24325
|
+
var DEFAULT_RELAY_SUBAGENT_PROVIDERS = [...VALID_RELAY_SUBAGENT_PROVIDERS];
|
|
24309
24326
|
var DEFAULT_USER_PREFERENCES = {
|
|
24310
24327
|
default_agent: "codex",
|
|
24311
24328
|
default_model: null,
|
|
@@ -24360,7 +24377,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
24360
24377
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
24361
24378
|
|
|
24362
24379
|
// ../shared/src/cli-version.ts
|
|
24363
|
-
var CLI_VERSION = "0.2.
|
|
24380
|
+
var CLI_VERSION = "0.2.386";
|
|
24364
24381
|
|
|
24365
24382
|
// ../shared/src/version.ts
|
|
24366
24383
|
function compareVersions(v1, v2) {
|
|
@@ -24485,8 +24502,12 @@ function validateAgentSelection(body, existing) {
|
|
|
24485
24502
|
}
|
|
24486
24503
|
const thinkingLevel = body.thinking_level;
|
|
24487
24504
|
if (thinkingLevel !== void 0 && thinkingLevel !== null) {
|
|
24488
|
-
if (!
|
|
24489
|
-
return createErrorResult({ message: `
|
|
24505
|
+
if (!effectiveAgent && isProviderSpecificThinkingLevel(thinkingLevel)) {
|
|
24506
|
+
return createErrorResult({ message: `Cannot set ${thinkingLevel} without an agent_provider` });
|
|
24507
|
+
}
|
|
24508
|
+
if (!isValidThinkingLevel(thinkingLevel) || effectiveAgent && !getThinkingLevelOptions(effectiveAgent).includes(thinkingLevel)) {
|
|
24509
|
+
const validLevels = effectiveAgent ? getThinkingLevelOptions(effectiveAgent) : VALID_THINKING_LEVELS;
|
|
24510
|
+
return createErrorResult({ message: `Invalid thinking_level: must be one of ${validLevels.join(", ")}` });
|
|
24490
24511
|
}
|
|
24491
24512
|
}
|
|
24492
24513
|
return createSuccessResult({ agentProvider, model, thinkingLevel });
|