replicas-engine 0.1.413 → 0.1.415

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 +24 -48
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -144,7 +144,10 @@ var CLAUDE_OPUS_4_8_BEDROCK_MODEL = "us.anthropic.claude-opus-4-8";
144
144
  var CLAUDE_SONNET_5_BEDROCK_MODEL = "anthropic.claude-sonnet-5";
145
145
  var CLAUDE_HAIKU_4_5_BEDROCK_MODEL = "us.anthropic.claude-haiku-4-5-20251001-v1:0";
146
146
  var DEFAULT_CLAUDE_MODEL = CLAUDE_OPUS_4_8_MODEL;
147
- var DEFAULT_CODEX_MODEL = "gpt-5.5";
147
+ var GPT_5_6_SOL_MODEL = "gpt-5.6-sol";
148
+ var GPT_5_6_TERRA_MODEL = "gpt-5.6-terra";
149
+ var GPT_5_6_LUNA_MODEL = "gpt-5.6-luna";
150
+ var DEFAULT_CODEX_MODEL = GPT_5_6_SOL_MODEL;
148
151
  var DEFAULT_CURSOR_MODEL = "composer-2.5";
149
152
  var DEFAULT_OPENCODE_MODEL = "z-ai/glm-5.2";
150
153
  function normalizeClaudeModel(model) {
@@ -187,10 +190,13 @@ function canUseClaudeFastMode(model) {
187
190
  }
188
191
  var AGENT_MODELS = {
189
192
  claude: [CLAUDE_FABLE_5_MODEL, DEFAULT_CLAUDE_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_4_5_MODEL],
190
- codex: [DEFAULT_CODEX_MODEL, "gpt-5.4", "gpt-5.4-mini", "gpt-5.3-codex", "gpt-5.2"],
193
+ codex: [DEFAULT_CODEX_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.2"],
191
194
  cursor: [
192
195
  CLAUDE_FABLE_5_MODEL,
193
196
  CLAUDE_OPUS_4_8_MODEL,
197
+ GPT_5_6_SOL_MODEL,
198
+ GPT_5_6_TERRA_MODEL,
199
+ GPT_5_6_LUNA_MODEL,
194
200
  "gpt-5.5",
195
201
  "composer-2.5",
196
202
  CLAUDE_SONNET_5_MODEL,
@@ -224,7 +230,10 @@ var MODEL_LABELS = {
224
230
  [CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
225
231
  [LEGACY_CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
226
232
  haiku: "Haiku 4.5",
227
- [DEFAULT_CODEX_MODEL]: "GPT-5.5",
233
+ [GPT_5_6_SOL_MODEL]: "GPT-5.6 Sol",
234
+ [GPT_5_6_TERRA_MODEL]: "GPT-5.6 Terra",
235
+ [GPT_5_6_LUNA_MODEL]: "GPT-5.6 Luna",
236
+ "gpt-5.5": "GPT-5.5",
228
237
  [DEFAULT_OPENCODE_MODEL]: "GLM 5.2 via OpenRouter",
229
238
  "minimax/minimax-m3": "MiniMax M3 via OpenRouter",
230
239
  "xiaomi/mimo-v2.5-pro": "MiMo V2.5 Pro via OpenRouter",
@@ -481,7 +490,7 @@ var WORKSPACE_SIZES = ["small", "large"];
481
490
  var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
482
491
 
483
492
  // ../shared/src/e2b.ts
484
- var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-09-v3";
493
+ var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-09-v4";
485
494
 
486
495
  // ../shared/src/runtime-env.ts
487
496
  function parsePosixEnvFile(content) {
@@ -1418,59 +1427,26 @@ var GOOGLE_ABILITY = {
1418
1427
 
1419
1428
  // ../shared/src/default-skills/replicas-agent/abilities/learnings.ts
1420
1429
  var SECTION6 = `### Learnings
1421
- Curated, human-approved organization knowledge that helps you execute correctly \u2014 conventions, gotchas, environment facts, and past user corrections that the codebase alone can't tell you.
1430
+ Propose additions, updates, or deletions to curated organization knowledge.
1422
1431
 
1423
- **Reference:** \`references/LEARNINGS.md\`
1424
-
1425
- Use this when:
1426
- - You are starting a substantive task and have gathered enough context to write a meaningful query
1427
- - A user corrects you about a durable fact, preference, or process worth keeping
1428
- - You find an existing learning contradicted by the current code or docs`;
1432
+ **Reference:** \`references/LEARNINGS.md\``;
1429
1433
  var REFERENCE6 = `# Learnings
1430
1434
 
1431
- Learnings are curated, human-approved knowledge entries your organization maintains: conventions, gotchas, environment facts, and process rules. Some entries always apply; contextual entries are retrieved by matching your query against their trigger descriptions.
1432
-
1433
- ## Reading Learnings
1434
-
1435
- \`\`\`bash
1436
- replicas learnings read --query "<enriched query>"
1437
- \`\`\`
1438
-
1439
- **When to read:** once you've collected enough context to write a meaningful query \u2014 typically after your first look at the relevant code. Don't wait until you're deep into execution; learnings are most valuable before you commit to an approach.
1440
-
1441
- **Enrich the query.** Use codebase specifics (feature area, module/component names), not the raw user request. Triggers describe *situations*, so a query grounded in what the task actually touches matches far better.
1442
-
1443
- Example: the user asks "remove the PRs chart projections". After locating the chart you know it lives in the platform admin dashboard, so query:
1444
-
1445
- \`\`\`bash
1446
- replicas learnings read --query "Remove the PRs chart in the platform admin dashboard"
1447
- \`\`\`
1448
-
1449
- This matches a learning triggered on "UI/UX work on the admin panel" that the raw request would have missed.
1450
-
1451
- Output is a list of blocks \u2014 id, name, and content. Use the ids to propose updates or deletions.
1452
-
1453
- ## Proposing changes
1435
+ Learnings are curated, human-approved knowledge entries your organization maintains: conventions, gotchas, environment facts, and process rules.
1454
1436
 
1455
1437
  All writes are proposals: a human reviews them in the dashboard, and nothing takes effect until approved.
1456
1438
 
1457
- \`\`\`bash
1458
- replicas learnings add --name "<short name>" --content "<the knowledge>" [--trigger "<when to surface it>"] [--always] [--global]
1459
- replicas learnings update <id> [--name "..."] [--content "..."] [--trigger "..."] [--always true|false]
1460
- replicas learnings delete <id>
1461
- \`\`\`
1462
-
1463
- \`--always\` marks an entry as always-returned (no trigger needed); \`--global\` proposes org-wide scope instead of this workspace's environment.
1439
+ Use \`replicas learnings --help\` and subcommand help such as \`replicas learnings add --help\`, \`replicas learnings update --help\`, or \`replicas learnings delete --help\` for current command syntax.
1464
1440
 
1465
1441
  **Be very conservative:**
1466
- - Propose \`add\` only for durable, org-useful facts: explicit user corrections, hard-won environment or process knowledge.
1442
+ - Propose \`add\` only for repeatable, org-useful facts likely to matter again: explicit user corrections, hard-won environment or process knowledge.
1467
1443
  - Never store task-specific details, anything derivable by reading the repo, or secrets/credentials.
1468
- - Propose \`update\` or \`delete\` when a learning is contradicted by the current code or docs \u2014 flag outdated knowledge instead of silently ignoring it.
1444
+ - Propose \`update\` or \`delete\` when a learning is contradicted by the current code or docs, especially if the outdated guidance would affect future repeated work.
1469
1445
  - Write narrow triggers describing when the entry should surface (e.g. "UI/UX work on the admin panel"), not vague topics.`;
1470
1446
  var LEARNINGS_ABILITY = {
1471
1447
  label: "Learnings",
1472
- description: "Fetch curated org knowledge and propose new learnings for human review.",
1473
- bullet: "- Fetching organization Learnings (curated, human-approved knowledge) before executing, or proposing new ones",
1448
+ description: "Propose changes to curated org knowledge for human review.",
1449
+ bullet: "- Proposing changes to organization Learnings (curated, human-approved knowledge)",
1474
1450
  section: SECTION6,
1475
1451
  referenceFile: { name: "LEARNINGS.md", content: REFERENCE6 }
1476
1452
  };
@@ -8249,7 +8225,7 @@ var AspClient = class {
8249
8225
  // src/managers/codex-asp/app-server-process.ts
8250
8226
  var DEFAULT_CODEX_BINARY = "codex";
8251
8227
  var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
8252
- var ENGINE_PACKAGE_VERSION = "0.1.413";
8228
+ var ENGINE_PACKAGE_VERSION = "0.1.415";
8253
8229
  var INITIALIZE_METHOD = "initialize";
8254
8230
  var INITIALIZED_NOTIFICATION = "initialized";
8255
8231
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -11463,7 +11439,7 @@ You will also receive the chatId so you can send follow-up messages or clean up
11463
11439
  prompt: z.string().describe("The full prompt/instructions for the subagent. Be detailed - it has no context from your conversation."),
11464
11440
  model: z.string().optional().describe([
11465
11441
  `Model override. Claude: ${AGENT_MODELS.claude.join(", ")} (opus is the default; sonnet is faster).`,
11466
- codexAvailable ? "Codex: gpt-5.5, gpt-5.4, gpt-5.3-codex, etc." : null,
11442
+ codexAvailable ? `Codex: ${AGENT_MODELS.codex.join(", ")}.` : null,
11467
11443
  cursorAvailable ? `Cursor: ${AGENT_MODELS.cursor.join(", ")}.` : null,
11468
11444
  opencodeAvailable ? `Opencode: ${AGENT_MODELS.opencode.join(", ")}.` : null
11469
11445
  ].filter(Boolean).join(" ")),
@@ -11705,7 +11681,7 @@ function getDelegationSection(codexAvailable, cursorAvailable, opencodeAvailable
11705
11681
  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).`;
11706
11682
  const claudeModelList = AGENT_MODELS.claude.join(", ");
11707
11683
  const extraAgentLines = [
11708
- 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.` : null,
11684
+ codexAvailable ? `Use provider 'codex' for heavy code writing, implementation, and large refactors. Suggested models: ${AGENT_MODELS.codex.join(", ")} (${AGENT_MODELS.codex[0]} is the default).` : null,
11709
11685
  opencodeAvailable ? `Use provider 'opencode' for cheaper routine implementation tasks through OpenRouter-backed open source models. Suggested models: ${AGENT_MODELS.opencode.join(", ")}.` : null,
11710
11686
  cursorAvailable ? `Use provider 'cursor' for fast iteration on code changes. Suggested models: ${AGENT_MODELS.cursor.join(", ")}.` : null
11711
11687
  ].filter(Boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.413",
3
+ "version": "0.1.415",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",