replicas-cli 0.2.384 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +23 -4
  2. 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.384";
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 (!isValidThinkingLevel(thinkingLevel)) {
24489
- return createErrorResult({ message: `Invalid thinking_level: must be one of ${VALID_THINKING_LEVELS.join(", ")}` });
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.384",
3
+ "version": "0.2.385",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {