replicas-engine 0.1.430 → 0.1.432
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 +11 -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-v3";
|
|
508
510
|
|
|
509
511
|
// ../shared/src/runtime-env.ts
|
|
510
512
|
function shellQuotePosix(value) {
|
|
@@ -2398,6 +2400,7 @@ var DEFAULT_USER_PREFERENCES = {
|
|
|
2398
2400
|
default_model: null,
|
|
2399
2401
|
cursor_models: null,
|
|
2400
2402
|
close_workspace_on_pr_close: true,
|
|
2403
|
+
close_workspace_on_pr_merge: true,
|
|
2401
2404
|
default_environment_id: null,
|
|
2402
2405
|
respond_to_ci_workflows: true,
|
|
2403
2406
|
respond_to_ci_checks: true,
|
|
@@ -8461,7 +8464,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
|
8461
8464
|
var MIN_CODEX_CLI_VERSION = "0.144.0";
|
|
8462
8465
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
8463
8466
|
var codexCliVersionEnsured = null;
|
|
8464
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
8467
|
+
var ENGINE_PACKAGE_VERSION = "0.1.432";
|
|
8465
8468
|
var INITIALIZE_METHOD = "initialize";
|
|
8466
8469
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
8467
8470
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -10987,6 +10990,7 @@ var OPENCODE_VARIANT_CANDIDATES_BY_THINKING_LEVEL = {
|
|
|
10987
10990
|
low: ["low"],
|
|
10988
10991
|
medium: ["medium"],
|
|
10989
10992
|
high: ["high"],
|
|
10993
|
+
xhigh: ["xhigh", "high"],
|
|
10990
10994
|
max: ["max", "xhigh", "high"]
|
|
10991
10995
|
};
|
|
10992
10996
|
async function opencodeConfig(model) {
|
|
@@ -11772,8 +11776,8 @@ You will also receive the chatId so you can send follow-up messages or clean up
|
|
|
11772
11776
|
cursorAvailable ? `Cursor: ${AGENT_MODELS.cursor.join(", ")}.` : null,
|
|
11773
11777
|
opencodeAvailable ? `Opencode: ${AGENT_MODELS.opencode.join(", ")}.` : null
|
|
11774
11778
|
].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."
|
|
11779
|
+
thinking_level: z.enum(VALID_THINKING_LEVELS).optional().describe(
|
|
11780
|
+
"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
11781
|
),
|
|
11778
11782
|
title: z.string().optional().describe("Optional title for the subagent chat (for identification)."),
|
|
11779
11783
|
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 +11844,8 @@ The tool blocks until the subagent completes and returns its response.`,
|
|
|
11840
11844
|
chatId: z.string().describe("The chat ID of the subagent (returned by spawn_agent)."),
|
|
11841
11845
|
message: z.string().describe("The follow-up message to send."),
|
|
11842
11846
|
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."
|
|
11847
|
+
thinking_level: z.enum(VALID_THINKING_LEVELS).optional().describe(
|
|
11848
|
+
"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
11849
|
),
|
|
11846
11850
|
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
11851
|
},
|
|
@@ -13996,7 +14000,7 @@ var sendMessageSchema = z2.object({
|
|
|
13996
14000
|
})
|
|
13997
14001
|
])
|
|
13998
14002
|
})).optional(),
|
|
13999
|
-
thinkingLevel: z2.enum(
|
|
14003
|
+
thinkingLevel: z2.enum(VALID_THINKING_LEVELS).optional(),
|
|
14000
14004
|
goalMode: z2.boolean().optional(),
|
|
14001
14005
|
fastMode: z2.boolean().optional(),
|
|
14002
14006
|
enableInteractiveTools: z2.boolean().optional(),
|