replicas-engine 0.1.288 → 0.1.289

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/src/index.js +12 -4
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -286,7 +286,7 @@ var WORKSPACE_SIZES = ["small", "large"];
286
286
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
287
287
 
288
288
  // ../shared/src/e2b.ts
289
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-09-v2";
289
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-09-v3";
290
290
 
291
291
  // ../shared/src/runtime-env.ts
292
292
  function parsePosixEnvFile(content) {
@@ -1991,6 +1991,7 @@ var DEFAULT_CHAT_TITLES = {
1991
1991
  };
1992
1992
  var CLAUDE_OPUS_1M_MODEL = "opus[1m]";
1993
1993
  var LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
1994
+ var CLAUDE_FABLE_5_MODEL = "claude-fable-5";
1994
1995
  var DEFAULT_CODEX_MODEL = "gpt-5.5";
1995
1996
  function normalizeClaudeModel(model) {
1996
1997
  if (model === LEGACY_CLAUDE_OPUS_1M_MODEL) {
@@ -1998,11 +1999,17 @@ function normalizeClaudeModel(model) {
1998
1999
  }
1999
2000
  return model;
2000
2001
  }
2002
+ var AGENT_MODELS = {
2003
+ claude: [CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_MODEL, "sonnet", "haiku"],
2004
+ codex: [DEFAULT_CODEX_MODEL, "gpt-5.4", "gpt-5.4-mini", "gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2-codex", "gpt-5.2", "gpt-5.1-codex-max", "gpt-5.1-codex", "gpt-5.1", "gpt-5-codex", "gpt-5"],
2005
+ relay: [CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_MODEL, "sonnet"]
2006
+ };
2001
2007
  var MODEL_LABELS = {
2002
2008
  sonnet: "Sonnet 4.5",
2003
2009
  opus: "Opus 4.8",
2004
2010
  [CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
2005
2011
  [LEGACY_CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
2012
+ [CLAUDE_FABLE_5_MODEL]: "Fable 5",
2006
2013
  haiku: "Haiku 4.5",
2007
2014
  [DEFAULT_CODEX_MODEL]: "GPT-5.5",
2008
2015
  "gpt-5.4": "GPT-5.4",
@@ -6587,7 +6594,7 @@ var AspClient = class {
6587
6594
  // src/managers/codex-asp/app-server-process.ts
6588
6595
  var DEFAULT_CODEX_BINARY = "codex";
6589
6596
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
6590
- var ENGINE_PACKAGE_VERSION = "0.1.288";
6597
+ var ENGINE_PACKAGE_VERSION = "0.1.289";
6591
6598
  var INITIALIZE_METHOD = "initialize";
6592
6599
  var INITIALIZED_NOTIFICATION = "initialized";
6593
6600
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -8370,7 +8377,7 @@ You will also receive the chatId so you can send follow-up messages or clean up
8370
8377
  {
8371
8378
  provider: providerEnum.describe(providerDesc),
8372
8379
  prompt: z.string().describe("The full prompt/instructions for the subagent. Be detailed - it has no context from your conversation."),
8373
- 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."),
8380
+ model: z.string().optional().describe(codexAvailable ? `Model override. Claude: ${AGENT_MODELS.claude.join(", ")} (opus[1m] is the default, 1M context, use for very large codebases or huge context tasks). Codex: gpt-5.5, gpt-5.4, gpt-5.3-codex, etc.` : `Model override. Claude: ${AGENT_MODELS.claude.join(", ")} (opus[1m] is the default, 1M context, use for very large codebases or huge context tasks).`),
8374
8381
  thinking_level: z.enum(["low", "medium", "high", "max"]).optional().describe(
8375
8382
  "Controls how much thinking/reasoning the subagent applies. low = light thinking, medium = moderate, high = deep reasoning, max = maximum effort. Defaults: Claude = high, Codex = medium."
8376
8383
  ),
@@ -8607,9 +8614,10 @@ function getUsingToolsSection() {
8607
8614
  function getDelegationSection(codexAvailable) {
8608
8615
  const providerList = codexAvailable ? "claude, codex, or relay" : "claude or relay";
8609
8616
  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).`;
8617
+ const claudeModelList = AGENT_MODELS.claude.join(", ");
8610
8618
  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.
8611
8619
 
8612
- 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).`;
8620
+ Use provider 'claude' for codebase exploration, code review, planning, complex debugging, and tasks requiring nuanced architectural understanding. Suggested models: ${claudeModelList} (opus[1m] is the default, 1M context window, use for very large codebases; sonnet is 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: ${claudeModelList} (opus[1m] is the default, 1M context window, use for very large codebases; sonnet is faster).`;
8613
8621
  return `# Delegation
8614
8622
 
8615
8623
  You have three subagent tools for spawning and managing agents that run in separate context windows:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.288",
3
+ "version": "0.1.289",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",