replicas-engine 0.1.169 → 0.1.170
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 +32 -4
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -375,7 +375,7 @@ function parseReplicasConfigString(content, filename) {
|
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
// ../shared/src/engine/environment.ts
|
|
378
|
-
var DAYTONA_SNAPSHOT_ID = "14-05-2026-royal-york-
|
|
378
|
+
var DAYTONA_SNAPSHOT_ID = "14-05-2026-royal-york-v15";
|
|
379
379
|
|
|
380
380
|
// ../shared/src/engine/types.ts
|
|
381
381
|
var DEFAULT_CHAT_TITLES = {
|
|
@@ -383,6 +383,33 @@ var DEFAULT_CHAT_TITLES = {
|
|
|
383
383
|
codex: "Codex",
|
|
384
384
|
relay: "Relay"
|
|
385
385
|
};
|
|
386
|
+
var CLAUDE_OPUS_1M_MODEL = "opus[1m]";
|
|
387
|
+
var LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
|
|
388
|
+
function normalizeClaudeModel(model) {
|
|
389
|
+
if (model === LEGACY_CLAUDE_OPUS_1M_MODEL) {
|
|
390
|
+
return CLAUDE_OPUS_1M_MODEL;
|
|
391
|
+
}
|
|
392
|
+
return model;
|
|
393
|
+
}
|
|
394
|
+
var MODEL_LABELS = {
|
|
395
|
+
sonnet: "Sonnet 4.5",
|
|
396
|
+
opus: "Opus 4.7",
|
|
397
|
+
[CLAUDE_OPUS_1M_MODEL]: "Opus 4.7 (1M)",
|
|
398
|
+
[LEGACY_CLAUDE_OPUS_1M_MODEL]: "Opus 4.7 (1M)",
|
|
399
|
+
haiku: "Haiku 4.5",
|
|
400
|
+
"gpt-5.5": "GPT-5.5",
|
|
401
|
+
"gpt-5.4": "GPT-5.4",
|
|
402
|
+
"gpt-5.4-mini": "GPT-5.4 Mini",
|
|
403
|
+
"gpt-5.3-codex": "GPT-5.3 Codex",
|
|
404
|
+
"gpt-5.3-codex-spark": "GPT-5.3 Codex Spark",
|
|
405
|
+
"gpt-5.2-codex": "GPT-5.2 Codex",
|
|
406
|
+
"gpt-5.2": "GPT-5.2",
|
|
407
|
+
"gpt-5.1-codex-max": "GPT-5.1 Codex Max",
|
|
408
|
+
"gpt-5.1-codex": "GPT-5.1 Codex",
|
|
409
|
+
"gpt-5.1": "GPT-5.1",
|
|
410
|
+
"gpt-5-codex": "GPT-5 Codex",
|
|
411
|
+
"gpt-5": "GPT-5"
|
|
412
|
+
};
|
|
386
413
|
var IMAGE_MEDIA_TYPES = ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
387
414
|
|
|
388
415
|
// ../shared/src/routes/workspaces.ts
|
|
@@ -3017,6 +3044,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
3017
3044
|
append: combinedInstructions
|
|
3018
3045
|
};
|
|
3019
3046
|
const queryEnv = buildClaudeAgentEnv(this.envOverrides);
|
|
3047
|
+
const resolvedModel = normalizeClaudeModel(model) || CLAUDE_OPUS_1M_MODEL;
|
|
3020
3048
|
const response = query({
|
|
3021
3049
|
prompt: promptStream,
|
|
3022
3050
|
options: {
|
|
@@ -3030,7 +3058,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
|
|
|
3030
3058
|
systemPrompt,
|
|
3031
3059
|
...this.mcpServersConfig ? { mcpServers: this.mcpServersConfig } : {},
|
|
3032
3060
|
env: queryEnv,
|
|
3033
|
-
model:
|
|
3061
|
+
model: resolvedModel,
|
|
3034
3062
|
...thinkingLevel ? { effort: thinkingLevel } : {}
|
|
3035
3063
|
}
|
|
3036
3064
|
});
|
|
@@ -3781,7 +3809,7 @@ You will also receive the chatId so you can send follow-up messages or clean up
|
|
|
3781
3809
|
{
|
|
3782
3810
|
provider: providerEnum.describe(providerDesc),
|
|
3783
3811
|
prompt: z.string().describe("The full prompt/instructions for the subagent. Be detailed - it has no context from your conversation."),
|
|
3784
|
-
model: z.string().optional().describe(codexAvailable ? "Model override. Claude: opus, sonnet, haiku. Codex: gpt-5.5, gpt-5.4, gpt-5.3-codex, etc." : "Model override. Claude: opus, sonnet, haiku."),
|
|
3812
|
+
model: z.string().optional().describe(codexAvailable ? "Model override. Claude: opus[1m] (default, 1M context, use for very large codebases or huge context tasks), sonnet, haiku. Codex: gpt-5.5, gpt-5.4, gpt-5.3-codex, etc." : "Model override. Claude: opus[1m] (default, 1M context, use for very large codebases or huge context tasks), sonnet, haiku."),
|
|
3785
3813
|
thinking_level: z.enum(["low", "medium", "high", "max"]).optional().describe(
|
|
3786
3814
|
"Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, max = maximum effort. Defaults: Claude = high, Codex = medium."
|
|
3787
3815
|
),
|
|
@@ -4020,7 +4048,7 @@ function getDelegationSection(codexAvailable) {
|
|
|
4020
4048
|
const spawnDesc = `Create a new subagent with a specific provider (${providerList}), send it a prompt, and wait for its response. Returns the chatId and the agent's final response. You can set a custom timeout via the timeout_minutes parameter (default: 10 minutes).`;
|
|
4021
4049
|
const agentSelectionLines = codexAvailable ? `Use provider 'codex' for heavy code writing, implementation, and large refactors. Suggested models: gpt-5.5 (default), gpt-5.4, gpt-5.3-codex.
|
|
4022
4050
|
|
|
4023
|
-
Use provider 'claude' for codebase exploration, code review, planning, complex debugging, and tasks requiring nuanced architectural understanding. Suggested models: opus (default), sonnet (faster).` : `Use provider 'claude' for all tasks including code writing, codebase exploration, code review, planning, complex debugging, and tasks requiring nuanced architectural understanding. Suggested models: opus (default), sonnet (faster).`;
|
|
4051
|
+
Use provider 'claude' for codebase exploration, code review, planning, complex debugging, and tasks requiring nuanced architectural understanding. Suggested models: opus[1m] (default, 1M context window, use for very large codebases), sonnet (faster).` : `Use provider 'claude' for all tasks including code writing, codebase exploration, code review, planning, complex debugging, and tasks requiring nuanced architectural understanding. Suggested models: opus[1m] (default, 1M context window, use for very large codebases), sonnet (faster).`;
|
|
4024
4052
|
return `# Delegation
|
|
4025
4053
|
|
|
4026
4054
|
You have three subagent tools for spawning and managing agents that run in separate context windows:
|