replicas-engine 0.1.104 → 0.1.106
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 +24 -6
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -1097,7 +1097,7 @@ function parseReplicasConfigString(content, filename) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
1099
|
// ../shared/src/engine/environment.ts
|
|
1100
|
-
var DAYTONA_SNAPSHOT_ID = "
|
|
1100
|
+
var DAYTONA_SNAPSHOT_ID = "15-04-2026-thinking-level-v1";
|
|
1101
1101
|
|
|
1102
1102
|
// ../shared/src/engine/types.ts
|
|
1103
1103
|
var DEFAULT_CHAT_TITLES = {
|
|
@@ -2473,7 +2473,8 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
2473
2473
|
model,
|
|
2474
2474
|
customInstructions,
|
|
2475
2475
|
images,
|
|
2476
|
-
permissionMode
|
|
2476
|
+
permissionMode,
|
|
2477
|
+
thinkingLevel
|
|
2477
2478
|
} = request;
|
|
2478
2479
|
const linearSessionId = ENGINE_ENV.LINEAR_SESSION_ID;
|
|
2479
2480
|
if (!message || !message.trim()) {
|
|
@@ -2533,7 +2534,8 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
2533
2534
|
systemPrompt,
|
|
2534
2535
|
...this.mcpServersConfig ? { mcpServers: this.mcpServersConfig } : {},
|
|
2535
2536
|
env: queryEnv,
|
|
2536
|
-
model: model || "opus"
|
|
2537
|
+
model: model || "opus",
|
|
2538
|
+
...thinkingLevel ? { effort: thinkingLevel } : {}
|
|
2537
2539
|
}
|
|
2538
2540
|
});
|
|
2539
2541
|
this.activeQuery = response;
|
|
@@ -2765,7 +2767,8 @@ var CodexManager = class extends CodingAgentManager {
|
|
|
2765
2767
|
model,
|
|
2766
2768
|
customInstructions,
|
|
2767
2769
|
images,
|
|
2768
|
-
permissionMode
|
|
2770
|
+
permissionMode,
|
|
2771
|
+
thinkingLevel
|
|
2769
2772
|
} = request;
|
|
2770
2773
|
const linearSessionId = ENGINE_ENV.LINEAR_SESSION_ID;
|
|
2771
2774
|
let tempImagePaths = [];
|
|
@@ -2780,12 +2783,14 @@ var CodexManager = class extends CodingAgentManager {
|
|
|
2780
2783
|
await this.updateCodexConfig(developerInstructions);
|
|
2781
2784
|
const sandboxMode = "danger-full-access";
|
|
2782
2785
|
const webSearchMode = "live";
|
|
2786
|
+
const codexReasoningEffort = thinkingLevel ? thinkingLevel === "max" ? "xhigh" : thinkingLevel : void 0;
|
|
2783
2787
|
const threadOptions = {
|
|
2784
2788
|
workingDirectory: this.workingDirectory,
|
|
2785
2789
|
skipGitRepoCheck: true,
|
|
2786
2790
|
sandboxMode,
|
|
2787
2791
|
model: model || DEFAULT_MODEL,
|
|
2788
|
-
webSearchMode
|
|
2792
|
+
webSearchMode,
|
|
2793
|
+
...codexReasoningEffort ? { modelReasoningEffort: codexReasoningEffort } : {}
|
|
2789
2794
|
};
|
|
2790
2795
|
abortController = new AbortController();
|
|
2791
2796
|
this.activeAbortController = abortController;
|
|
@@ -3106,6 +3111,9 @@ You will also receive the chatId so you can send follow-up messages or clean up
|
|
|
3106
3111
|
provider: providerEnum.describe(providerDesc),
|
|
3107
3112
|
prompt: z.string().describe("The full prompt/instructions for the subagent. Be detailed - it has no context from your conversation."),
|
|
3108
3113
|
model: z.string().optional().describe(codexAvailable ? "Model override. Claude: opus, sonnet, haiku. Codex: gpt-5.4, gpt-5.3-codex, etc." : "Model override. Claude: opus, sonnet, haiku."),
|
|
3114
|
+
thinking_level: z.enum(["low", "medium", "high", "max"]).optional().describe(
|
|
3115
|
+
"Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, max = maximum effort. Defaults: Claude = high, Codex = medium."
|
|
3116
|
+
),
|
|
3109
3117
|
title: z.string().optional().describe("Optional title for the subagent chat (for identification)."),
|
|
3110
3118
|
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.")
|
|
3111
3119
|
},
|
|
@@ -3132,6 +3140,9 @@ You will also receive the chatId so you can send follow-up messages or clean up
|
|
|
3132
3140
|
if (args.model) {
|
|
3133
3141
|
msgBody.model = args.model;
|
|
3134
3142
|
}
|
|
3143
|
+
if (args.thinking_level) {
|
|
3144
|
+
msgBody.thinkingLevel = args.thinking_level;
|
|
3145
|
+
}
|
|
3135
3146
|
const sendRes = await engineFetch(`/chats/${chatId}/messages`, {
|
|
3136
3147
|
method: "POST",
|
|
3137
3148
|
body: JSON.stringify(msgBody)
|
|
@@ -3168,6 +3179,9 @@ The tool blocks until the subagent completes and returns its response.`,
|
|
|
3168
3179
|
chatId: z.string().describe("The chat ID of the subagent (returned by spawn_agent)."),
|
|
3169
3180
|
message: z.string().describe("The follow-up message to send."),
|
|
3170
3181
|
model: z.string().optional().describe("Optional model override for this message."),
|
|
3182
|
+
thinking_level: z.enum(["low", "medium", "high", "max"]).optional().describe(
|
|
3183
|
+
"Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, max = maximum effort. Defaults: Claude = high, Codex = medium."
|
|
3184
|
+
),
|
|
3171
3185
|
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.")
|
|
3172
3186
|
},
|
|
3173
3187
|
async (args) => {
|
|
@@ -3176,6 +3190,9 @@ The tool blocks until the subagent completes and returns its response.`,
|
|
|
3176
3190
|
if (args.model) {
|
|
3177
3191
|
msgBody.model = args.model;
|
|
3178
3192
|
}
|
|
3193
|
+
if (args.thinking_level) {
|
|
3194
|
+
msgBody.thinkingLevel = args.thinking_level;
|
|
3195
|
+
}
|
|
3179
3196
|
const sendRes = await engineFetch(`/chats/${args.chatId}/messages`, {
|
|
3180
3197
|
method: "POST",
|
|
3181
3198
|
body: JSON.stringify(msgBody)
|
|
@@ -4287,7 +4304,8 @@ var sendMessageSchema = z2.object({
|
|
|
4287
4304
|
url: z2.string().url()
|
|
4288
4305
|
})
|
|
4289
4306
|
])
|
|
4290
|
-
})).optional()
|
|
4307
|
+
})).optional(),
|
|
4308
|
+
thinkingLevel: z2.enum(["low", "medium", "high", "max"]).optional()
|
|
4291
4309
|
});
|
|
4292
4310
|
function jsonError(message, details) {
|
|
4293
4311
|
return { error: message, details };
|