replicas-engine 0.1.430 → 0.1.431
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/src/index.js +10 -7
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -32,10 +32,12 @@ var VALID_AGENT_PROVIDERS = ["claude", "codex", "cursor", "opencode", "relay"];
|
|
|
32
32
|
var VALID_CODING_AGENT_PROVIDERS = VALID_AGENT_PROVIDERS.filter(
|
|
33
33
|
(provider) => provider !== "relay"
|
|
34
34
|
);
|
|
35
|
+
var VALID_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
35
36
|
var CODEX_REASONING_EFFORT_BY_THINKING_LEVEL = {
|
|
36
37
|
low: "low",
|
|
37
38
|
medium: "medium",
|
|
38
39
|
high: "high",
|
|
40
|
+
xhigh: "xhigh",
|
|
39
41
|
max: "xhigh"
|
|
40
42
|
};
|
|
41
43
|
function codexReasoningEffortForThinkingLevel(thinkingLevel) {
|
|
@@ -504,7 +506,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
504
506
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
505
507
|
|
|
506
508
|
// ../shared/src/e2b.ts
|
|
507
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-14-
|
|
509
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-14-v2";
|
|
508
510
|
|
|
509
511
|
// ../shared/src/runtime-env.ts
|
|
510
512
|
function shellQuotePosix(value) {
|
|
@@ -8461,7 +8463,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
|
8461
8463
|
var MIN_CODEX_CLI_VERSION = "0.144.0";
|
|
8462
8464
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
8463
8465
|
var codexCliVersionEnsured = null;
|
|
8464
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
8466
|
+
var ENGINE_PACKAGE_VERSION = "0.1.431";
|
|
8465
8467
|
var INITIALIZE_METHOD = "initialize";
|
|
8466
8468
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
8467
8469
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -10987,6 +10989,7 @@ var OPENCODE_VARIANT_CANDIDATES_BY_THINKING_LEVEL = {
|
|
|
10987
10989
|
low: ["low"],
|
|
10988
10990
|
medium: ["medium"],
|
|
10989
10991
|
high: ["high"],
|
|
10992
|
+
xhigh: ["xhigh", "high"],
|
|
10990
10993
|
max: ["max", "xhigh", "high"]
|
|
10991
10994
|
};
|
|
10992
10995
|
async function opencodeConfig(model) {
|
|
@@ -11772,8 +11775,8 @@ You will also receive the chatId so you can send follow-up messages or clean up
|
|
|
11772
11775
|
cursorAvailable ? `Cursor: ${AGENT_MODELS.cursor.join(", ")}.` : null,
|
|
11773
11776
|
opencodeAvailable ? `Opencode: ${AGENT_MODELS.opencode.join(", ")}.` : null
|
|
11774
11777
|
].filter(Boolean).join(" ")),
|
|
11775
|
-
thinking_level: z.enum(
|
|
11776
|
-
"Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, max = maximum effort. Defaults: Claude = high, Codex = medium, Cursor = medium, Opencode = medium."
|
|
11778
|
+
thinking_level: z.enum(VALID_THINKING_LEVELS).optional().describe(
|
|
11779
|
+
"Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, xhigh = extended effort, max = maximum effort. Defaults: Claude = high, Codex = medium, Cursor = medium, Opencode = medium."
|
|
11777
11780
|
),
|
|
11778
11781
|
title: z.string().optional().describe("Optional title for the subagent chat (for identification)."),
|
|
11779
11782
|
timeout_minutes: z.number().positive().optional().describe("Timeout in minutes for the subagent to complete (default: 10). Set higher for large tasks to avoid losing work.")
|
|
@@ -11840,8 +11843,8 @@ The tool blocks until the subagent completes and returns its response.`,
|
|
|
11840
11843
|
chatId: z.string().describe("The chat ID of the subagent (returned by spawn_agent)."),
|
|
11841
11844
|
message: z.string().describe("The follow-up message to send."),
|
|
11842
11845
|
model: z.string().optional().describe("Optional model override for this message."),
|
|
11843
|
-
thinking_level: z.enum(
|
|
11844
|
-
"Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, max = maximum effort. Defaults: Claude = high, Codex = medium, Cursor = medium, Opencode = medium."
|
|
11846
|
+
thinking_level: z.enum(VALID_THINKING_LEVELS).optional().describe(
|
|
11847
|
+
"Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, xhigh = extended effort, max = maximum effort. Defaults: Claude = high, Codex = medium, Cursor = medium, Opencode = medium."
|
|
11845
11848
|
),
|
|
11846
11849
|
timeout_minutes: z.number().positive().optional().describe("Timeout in minutes for the subagent to complete (default: 10). Set higher for large tasks to avoid losing work.")
|
|
11847
11850
|
},
|
|
@@ -13996,7 +13999,7 @@ var sendMessageSchema = z2.object({
|
|
|
13996
13999
|
})
|
|
13997
14000
|
])
|
|
13998
14001
|
})).optional(),
|
|
13999
|
-
thinkingLevel: z2.enum(
|
|
14002
|
+
thinkingLevel: z2.enum(VALID_THINKING_LEVELS).optional(),
|
|
14000
14003
|
goalMode: z2.boolean().optional(),
|
|
14001
14004
|
fastMode: z2.boolean().optional(),
|
|
14002
14005
|
enableInteractiveTools: z2.boolean().optional(),
|