replicas-cli 0.2.383 → 0.2.385
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 +27 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7645,10 +7645,25 @@ var AGENT_PROVIDER_OPTIONS = [
|
|
|
7645
7645
|
description: "Orchestrating agent that delegates to Claude Code, Codex, Cursor, and Opencode subagents"
|
|
7646
7646
|
}
|
|
7647
7647
|
];
|
|
7648
|
-
var VALID_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
7648
|
+
var VALID_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max", "ultra", "ultracode"];
|
|
7649
|
+
var STANDARD_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
7650
|
+
var THINKING_LEVELS_BY_AGENT = {
|
|
7651
|
+
claude: [...STANDARD_THINKING_LEVELS, "ultracode"],
|
|
7652
|
+
codex: [...STANDARD_THINKING_LEVELS, "ultra"],
|
|
7653
|
+
cursor: STANDARD_THINKING_LEVELS,
|
|
7654
|
+
opencode: STANDARD_THINKING_LEVELS,
|
|
7655
|
+
pi: STANDARD_THINKING_LEVELS,
|
|
7656
|
+
relay: [...STANDARD_THINKING_LEVELS, "ultracode"]
|
|
7657
|
+
};
|
|
7658
|
+
function getThinkingLevelOptions(provider) {
|
|
7659
|
+
return provider ? THINKING_LEVELS_BY_AGENT[provider] : VALID_THINKING_LEVELS;
|
|
7660
|
+
}
|
|
7649
7661
|
function isValidThinkingLevel(value) {
|
|
7650
7662
|
return VALID_THINKING_LEVELS.some((l) => l === value);
|
|
7651
7663
|
}
|
|
7664
|
+
function isProviderSpecificThinkingLevel(value) {
|
|
7665
|
+
return value === "ultra" || value === "ultracode";
|
|
7666
|
+
}
|
|
7652
7667
|
function getProviderDisplayName(provider, variant = "short") {
|
|
7653
7668
|
switch (provider) {
|
|
7654
7669
|
case "codex":
|
|
@@ -24360,7 +24375,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
24360
24375
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
24361
24376
|
|
|
24362
24377
|
// ../shared/src/cli-version.ts
|
|
24363
|
-
var CLI_VERSION = "0.2.
|
|
24378
|
+
var CLI_VERSION = "0.2.385";
|
|
24364
24379
|
|
|
24365
24380
|
// ../shared/src/version.ts
|
|
24366
24381
|
function compareVersions(v1, v2) {
|
|
@@ -24485,8 +24500,12 @@ function validateAgentSelection(body, existing) {
|
|
|
24485
24500
|
}
|
|
24486
24501
|
const thinkingLevel = body.thinking_level;
|
|
24487
24502
|
if (thinkingLevel !== void 0 && thinkingLevel !== null) {
|
|
24488
|
-
if (!
|
|
24489
|
-
return createErrorResult({ message: `
|
|
24503
|
+
if (!effectiveAgent && isProviderSpecificThinkingLevel(thinkingLevel)) {
|
|
24504
|
+
return createErrorResult({ message: `Cannot set ${thinkingLevel} without an agent_provider` });
|
|
24505
|
+
}
|
|
24506
|
+
if (!isValidThinkingLevel(thinkingLevel) || effectiveAgent && !getThinkingLevelOptions(effectiveAgent).includes(thinkingLevel)) {
|
|
24507
|
+
const validLevels = effectiveAgent ? getThinkingLevelOptions(effectiveAgent) : VALID_THINKING_LEVELS;
|
|
24508
|
+
return createErrorResult({ message: `Invalid thinking_level: must be one of ${validLevels.join(", ")}` });
|
|
24490
24509
|
}
|
|
24491
24510
|
}
|
|
24492
24511
|
return createSuccessResult({ agentProvider, model, thinkingLevel });
|
|
@@ -24551,6 +24570,10 @@ var GITLAB_TRIGGER = {
|
|
|
24551
24570
|
]
|
|
24552
24571
|
};
|
|
24553
24572
|
|
|
24573
|
+
// ../shared/src/routes/admin.ts
|
|
24574
|
+
var WEBHOOK_PROVIDERS = ["linear", "github", "gitlab", "slack", "e2b", "stripe", "sentry"];
|
|
24575
|
+
var WEBHOOK_PROVIDER_SET = new Set(WEBHOOK_PROVIDERS);
|
|
24576
|
+
|
|
24554
24577
|
// ../shared/src/display-message/types.ts
|
|
24555
24578
|
var BACKGROUND_TASK_SUBTYPES = /* @__PURE__ */ new Set([
|
|
24556
24579
|
"task_started",
|