replicas-cli 0.3.457 → 0.3.459

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/index.cjs +32 -5
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22105,7 +22105,7 @@ function classifyCanvasFilename(filename) {
22105
22105
  const ext = idx === -1 ? "" : filename.slice(idx).toLowerCase();
22106
22106
  return CANVAS_KIND_BY_EXTENSION[ext] ?? (detectLanguageByPath(filename) ? { kind: "text", mimeType: "text/plain; charset=utf-8" } : { kind: "other", mimeType: "application/octet-stream" });
22107
22107
  }
22108
- var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_2_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_2_ASTRA_MODEL, GPT_6_ASTRA_MODEL, GPT_6_2_SOL_MODEL, GPT_6_1_SOL_MODEL, GPT_6_1_TERRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
22108
+ var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_2_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_2_ASTRA_MODEL, GPT_6_ASTRA_MODEL, GPT_6_2_SOL_MODEL, GPT_6_1_SOL_MODEL, GPT_6_1_TERRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, REPLICAS_MODEL_PROVIDERS, REPLICAS_MODELS, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
22109
22109
  var init_types4 = __esm({
22110
22110
  "../shared/src/engine/types.ts"() {
22111
22111
  "use strict";
@@ -22202,10 +22202,15 @@ var init_types4 = __esm({
22202
22202
  "gpt-5.4-mini": null,
22203
22203
  "gpt-5.2": null
22204
22204
  };
22205
+ REPLICAS_MODEL_PROVIDERS = ["openai", "anthropic"];
22206
+ REPLICAS_MODELS = {
22207
+ openai: Object.keys(CODEX_MODEL_MIN_SANDBOX_IMAGE),
22208
+ anthropic: [CLAUDE_OPUS_5_5_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_HAIKU_5_5_MODEL]
22209
+ };
22205
22210
  AGENT_MODELS = {
22206
22211
  claude: Object.keys(CLAUDE_MODEL_MIN_SANDBOX_IMAGE),
22207
22212
  codex: Object.keys(CODEX_MODEL_MIN_SANDBOX_IMAGE),
22208
- replicas: Object.keys(CODEX_MODEL_MIN_SANDBOX_IMAGE),
22213
+ replicas: [...REPLICAS_MODELS.openai, ...REPLICAS_MODELS.anthropic],
22209
22214
  cursor: [
22210
22215
  CLAUDE_FABLE_5_1_MODEL,
22211
22216
  CLAUDE_FABLE_5_MODEL,
@@ -38992,7 +38997,10 @@ var init_types8 = __esm({
38992
38997
  userId: external_exports.string().nullable(),
38993
38998
  messageId: external_exports.string().optional(),
38994
38999
  model: external_exports.string().optional(),
38995
- thinkingLevel: external_exports.enum(VALID_THINKING_LEVELS).optional()
39000
+ thinkingLevel: external_exports.enum(VALID_THINKING_LEVELS).optional(),
39001
+ instructionsHash: external_exports.string().optional(),
39002
+ /** Stored only on a message whose `instructionsHash` differs from the message before it; later ones find it by hash. */
39003
+ instructions: external_exports.object({ environmentSystemPrompt: external_exports.string().optional(), customInstructions: external_exports.string().optional() }).optional()
38996
39004
  }),
38997
39005
  interrupt: external_exports.looseObject({ userId: external_exports.string().nullable() })
38998
39006
  };
@@ -39032,6 +39040,7 @@ var init_worker_routes = __esm({
39032
39040
  "use strict";
39033
39041
  init_zod();
39034
39042
  init_types3();
39043
+ init_types4();
39035
39044
  harnessWorkerEngineRequestSchema = external_exports.object({
39036
39045
  /** The engine we were given didn't answer, so the monolith checks the provider instead of trusting the workspace's status. */
39037
39046
  unreachable: external_exports.boolean().optional()
@@ -39042,7 +39051,9 @@ var init_worker_routes = __esm({
39042
39051
  ]);
39043
39052
  harnessWorkerCredentialRequestSchema = external_exports.object({
39044
39053
  /** The credential the model rejected, so the monolith refreshes it or moves to the next one instead of handing it back. */
39045
- failedCredential: agentCredentialSnapshotSchema.optional()
39054
+ failedCredential: agentCredentialSnapshotSchema.optional(),
39055
+ // A worker from before Claude models sends none, and only ever calls OpenAI.
39056
+ modelProvider: external_exports.enum(REPLICAS_MODEL_PROVIDERS).default("openai")
39046
39057
  });
39047
39058
  harnessWorkerCredentialResponseSchema = external_exports.discriminatedUnion("method", [
39048
39059
  external_exports.object({ method: external_exports.literal("oauth"), accessToken: external_exports.string(), expiresAt: external_exports.string(), credential: agentCredentialSnapshotSchema }),
@@ -39115,7 +39126,7 @@ var CLI_VERSION;
39115
39126
  var init_cli_version = __esm({
39116
39127
  "../shared/src/cli-version.ts"() {
39117
39128
  "use strict";
39118
- CLI_VERSION = "0.3.457";
39129
+ CLI_VERSION = "0.3.459";
39119
39130
  }
39120
39131
  });
39121
39132
 
@@ -50273,6 +50284,21 @@ var init_media2 = __esm({
50273
50284
  }
50274
50285
  });
50275
50286
 
50287
+ // ../shared/src/replicas-instructions.ts
50288
+ var SUBAGENT_MCP_INSTRUCTIONS;
50289
+ var init_replicas_instructions = __esm({
50290
+ "../shared/src/replicas-instructions.ts"() {
50291
+ "use strict";
50292
+ init_environment2();
50293
+ init_learned_skills();
50294
+ init_memory();
50295
+ init_subagent_mcp();
50296
+ SUBAGENT_MCP_INSTRUCTIONS = `# Subagents
50297
+
50298
+ Native subagent tools are disabled in this workspace. To delegate work to a subagent, use the \`${SUBAGENT_MCP_SERVER_NAME}\` MCP server (\`${SUBAGENT_MCP_TOOLS.getProviders}\`, \`${SUBAGENT_MCP_TOOLS.spawnAgent}\`, \`${SUBAGENT_MCP_TOOLS.getAgent}\`, \`${SUBAGENT_MCP_TOOLS.waitAgent}\`, \`${SUBAGENT_MCP_TOOLS.messageAgent}\`, \`${SUBAGENT_MCP_TOOLS.deleteAgent}\`); your harness may prefix them, and Pi exposes them through its \`mcp\` gateway. Call \`${SUBAGENT_MCP_TOOLS.getProviders}\` before the first spawn. \`fork_turns\` sets inherited context: "all" (default), "none" (include every needed detail in the prompt), or "N" for the latest N user turns. \`${SUBAGENT_MCP_TOOLS.spawnAgent}\` and \`${SUBAGENT_MCP_TOOLS.messageAgent}\` block by default; pass \`blocking: false\` to keep working. A subagent you are not waiting on reports back when it finishes: its final response arrives as a \`<multitask_event>\` message once your turn ends, so end your turn instead of polling. Subagents share this workspace.`;
50299
+ }
50300
+ });
50301
+
50276
50302
  // ../shared/src/sse.ts
50277
50303
  function parseSseChunk(chunk) {
50278
50304
  let data = "";
@@ -50592,6 +50618,7 @@ var init_src = __esm({
50592
50618
  init_media2();
50593
50619
  init_memory();
50594
50620
  init_learned_skills();
50621
+ init_replicas_instructions();
50595
50622
  init_memory_safety();
50596
50623
  init_sse();
50597
50624
  init_login();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.457",
3
+ "version": "0.3.459",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {