replicas-cli 0.3.627 → 0.3.638

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 +35 -20
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -20976,7 +20976,7 @@ function isReplicasModel(model2) {
20976
20976
  function replicasChatModel(model2) {
20977
20977
  return model2 && RETIRED_REPLICAS_MODELS[model2] || model2;
20978
20978
  }
20979
- var GPT_6_2_SOL_MODEL, GPT_6_1_SOL_MODEL, GPT_6_1_TERRA_MODEL, GPT_6_2_ASTRA_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_FABLE_5_2_MODEL, DEEPSEEK_V4_1_FLASH_MODEL, OPEN_DEEPSEEK_V4_1_FLASH_MODEL, OPEN_DEEPSEEK_V4_PRO_MODEL, OPEN_GLM_5_3_MODEL, OPEN_GLM_5_3_FLASH_MODEL, GEMINI_4_NEON_MODEL, REPLICAS_MODEL_PROVIDERS, DEEPSEEK_V4_1_FLASH_HOSTS, REPLICAS_MODEL_CATALOG, CATALOG_IDS, OPEN_MODEL_CATALOG, catalogModels, REPLICAS_MODELS, RETIRED_REPLICAS_MODELS;
20979
+ var GPT_6_2_SOL_MODEL, GPT_6_1_SOL_MODEL, GPT_6_1_TERRA_MODEL, GPT_6_2_ASTRA_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_FABLE_5_2_MODEL, DEEPSEEK_V4_1_FLASH_MODEL, OPEN_DEEPSEEK_V4_1_FLASH_MODEL, OPEN_DEEPSEEK_V4_PRO_MODEL, OPEN_GLM_5_3_MODEL, OPEN_GLM_5_3_FLASH_MODEL, GEMINI_4_NEON_MODEL, REPLICAS_MODEL_PROVIDERS, SERVICE_TIERS, DEEPSEEK_V4_1_FLASH_HOSTS, REPLICAS_MODEL_CATALOG, CATALOG_IDS, OPEN_MODEL_CATALOG, catalogModels, REPLICAS_MODELS, RETIRED_REPLICAS_MODELS;
20980
20980
  var init_models2 = __esm({
20981
20981
  "../shared/src/harness/models.ts"() {
20982
20982
  "use strict";
@@ -20994,9 +20994,10 @@ var init_models2 = __esm({
20994
20994
  OPEN_GLM_5_3_FLASH_MODEL = "glm-5.3-flash";
20995
20995
  GEMINI_4_NEON_MODEL = "gemini-4-neon";
20996
20996
  REPLICAS_MODEL_PROVIDERS = ["openai", "anthropic", "baseten", "openrouter", "google-vertex", "open"];
20997
+ SERVICE_TIERS = ["default", "fast", "ultrafast"];
20997
20998
  DEEPSEEK_V4_1_FLASH_HOSTS = {
20998
- // Baseten's standard endpoint (https://www.baseten.co/pricing, also in its /v1/models), which charges no cache writes.
20999
- baseten: { provider: "baseten", cost: { input: 0.3, output: 1.2, cacheRead: 7e-3, cacheWrite: 0 }, priceVersion: "2026-11-21" },
20999
+ // Baseten's standard endpoint (https://www.baseten.co/pricing, also in its /v1/models), which charges no cache writes. Fast is its -Fast endpoint.
21000
+ baseten: { provider: "baseten", cost: { input: 0.3, output: 1.2, cacheRead: 7e-3, cacheWrite: 0 }, priceVersion: "2026-11-24", speeds: { fast: 2 } },
21000
21001
  // The hosts the worker pins OpenRouter to (https://openrouter.ai/api/v1/models/deepseek/deepseek-v4.1-flash-1017/endpoints).
21001
21002
  // Recorded cost is the one OpenRouter reports for each call; this only prices calls cut off before it arrives.
21002
21003
  openrouter: { provider: "openrouter", cost: { input: 0.3, output: 1.2, cacheRead: 6e-3, cacheWrite: 0 }, priceVersion: "2026-11-24" }
@@ -21006,45 +21007,52 @@ var init_models2 = __esm({
21006
21007
  label: "GPT-6.2 Sol",
21007
21008
  provider: "openai",
21008
21009
  cost: { input: 2, output: 10, cacheRead: 0.1, cacheWrite: 2.5, tiers: [{ inputTokensAbove: 272e3, input: 4, output: 15, cacheRead: 0.2, cacheWrite: 5 }] },
21009
- priceVersion: "2026-11-19"
21010
+ priceVersion: "2026-11-24",
21011
+ speeds: { fast: 2, ultrafast: 3 }
21010
21012
  },
21011
21013
  [GPT_6_1_SOL_MODEL]: {
21012
21014
  label: "GPT-6.1 Sol",
21013
21015
  provider: "openai",
21014
21016
  cost: { input: 2, output: 10, cacheRead: 0.1, cacheWrite: 2.5, tiers: [{ inputTokensAbove: 272e3, input: 4, output: 15, cacheRead: 0.2, cacheWrite: 5 }] },
21015
- priceVersion: "2026-11-19"
21017
+ priceVersion: "2026-11-24",
21018
+ speeds: { fast: 2, ultrafast: 6 }
21016
21019
  },
21017
21020
  [GPT_6_1_TERRA_MODEL]: {
21018
21021
  label: "GPT-6.1 Terra",
21019
21022
  provider: "openai",
21020
21023
  cost: { input: 1, output: 5, cacheRead: 0.05, cacheWrite: 1.25, tiers: [{ inputTokensAbove: 272e3, input: 2, output: 7.5, cacheRead: 0.1, cacheWrite: 2.5 }] },
21021
- priceVersion: "2026-11-19"
21024
+ priceVersion: "2026-11-24",
21025
+ speeds: { fast: 2 }
21022
21026
  },
21023
21027
  [GPT_6_2_ASTRA_MODEL]: {
21024
21028
  label: "GPT-6.2 Astra",
21025
21029
  provider: "openai",
21026
21030
  cost: { input: 8, output: 40, cacheRead: 0.4, cacheWrite: 10, tiers: [{ inputTokensAbove: 272e3, input: 16, output: 60, cacheRead: 0.8, cacheWrite: 20 }] },
21027
- priceVersion: "2026-11-19"
21031
+ priceVersion: "2026-11-24",
21032
+ speeds: { fast: 2, ultrafast: 3 }
21028
21033
  },
21029
21034
  [CLAUDE_OPUS_5_5_MODEL]: {
21030
21035
  label: "Opus 5.5",
21031
21036
  provider: "anthropic",
21032
21037
  cost: { input: 4, output: 20, cacheRead: 0.2, cacheWrite: 5 },
21033
- priceVersion: "2026-11-19"
21038
+ priceVersion: "2026-11-24",
21039
+ speeds: { fast: 2 }
21034
21040
  },
21035
21041
  [CLAUDE_FABLE_5_2_MODEL]: {
21036
21042
  label: "Fable 5.2",
21037
21043
  provider: "anthropic",
21038
21044
  cost: { input: 8, output: 40, cacheRead: 0.2, cacheWrite: 10 },
21039
- priceVersion: "2026-11-19"
21045
+ priceVersion: "2026-11-24",
21046
+ speeds: { fast: 2 }
21040
21047
  },
21041
21048
  [DEEPSEEK_V4_1_FLASH_MODEL]: { label: "DeepSeek V4.1 Flash", ...DEEPSEEK_V4_1_FLASH_HOSTS.openrouter },
21042
- // https://cloud.google.com/vertex-ai/generative-ai/pricing. Caching is implicit and its writes are free.
21049
+ // https://cloud.google.com/vertex-ai/generative-ai/pricing. Caching is implicit and its writes are free. Fast is Priority PayGo.
21043
21050
  [GEMINI_4_NEON_MODEL]: {
21044
21051
  label: "Gemini 4 Neon",
21045
21052
  provider: "google-vertex",
21046
21053
  cost: { input: 3, output: 15, cacheRead: 0.15, cacheWrite: 0 },
21047
- priceVersion: "2026-11-21"
21054
+ priceVersion: "2026-11-24",
21055
+ speeds: { fast: 1.8 }
21048
21056
  }
21049
21057
  };
21050
21058
  CATALOG_IDS = Object.keys(REPLICAS_MODEL_CATALOG).filter(isReplicasModel);
@@ -23921,7 +23929,7 @@ var init_pixel_crew = __esm({
23921
23929
  });
23922
23930
 
23923
23931
  // ../shared/src/routes/manager.ts
23924
- var avatarColorSchema, MANAGER_AVATAR_BACKGROUNDS, MANAGER_AVATAR_PRIMARIES, managerPresetAvatarSchema, managerEmojiAvatarSchema, managerChosenAvatarSchema, managerAvatarSchema, setUpManagerTextingRequestSchema, linearRuleFields, withLabelIds, managerLinearRuleSchema, SUBAGENT_SERVICE_TIERS, managerSubagentSettingsSchema, QUEUE_SECTIONS, MANAGER_QUEUE_GROUPS, MANAGER_SHIPPING_LOOKBACK_MS;
23932
+ var avatarColorSchema, MANAGER_AVATAR_BACKGROUNDS, MANAGER_AVATAR_PRIMARIES, managerPresetAvatarSchema, managerEmojiAvatarSchema, managerChosenAvatarSchema, managerAvatarSchema, setUpManagerTextingRequestSchema, linearRuleFields, withLabelIds, managerLinearRuleSchema, managerSubagentSettingsSchema, QUEUE_SECTIONS, MANAGER_QUEUE_GROUPS, MANAGER_SHIPPING_LOOKBACK_MS;
23925
23933
  var init_manager = __esm({
23926
23934
  "../shared/src/routes/manager.ts"() {
23927
23935
  "use strict";
@@ -23933,6 +23941,7 @@ var init_manager = __esm({
23933
23941
  init_design_tokens();
23934
23942
  init_pixel_crew();
23935
23943
  init_urls();
23944
+ init_models2();
23936
23945
  avatarColorSchema = external_exports.union([external_exports.literal("theme"), external_exports.string().regex(/^#[0-9a-f]{6}$/i)]);
23937
23946
  MANAGER_AVATAR_BACKGROUNDS = [
23938
23947
  ["Forest", PALETTE_COLORS.light.default.foreground],
@@ -23981,12 +23990,11 @@ var init_manager = __esm({
23981
23990
  return { ...rest, label_ids: [label_id] };
23982
23991
  };
23983
23992
  managerLinearRuleSchema = external_exports.preprocess(withLabelIds, linearRuleFields);
23984
- SUBAGENT_SERVICE_TIERS = ["default", "fast", "ultrafast"];
23985
23993
  managerSubagentSettingsSchema = external_exports.object({
23986
23994
  coding_agent: external_exports.enum(VALID_AGENT_PROVIDERS),
23987
23995
  model: external_exports.string().nullable(),
23988
23996
  thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable(),
23989
- service_tier: external_exports.enum(SUBAGENT_SERVICE_TIERS),
23997
+ service_tier: external_exports.enum(SERVICE_TIERS),
23990
23998
  goal_mode: external_exports.boolean()
23991
23999
  });
23992
24000
  QUEUE_SECTIONS = [
@@ -28280,6 +28288,8 @@ The user gets a form above the chat composer in Replicas, where they can paste a
28280
28288
 
28281
28289
  In workspaces started from Slack, Linear, or an automation, nobody may be watching Replicas, so the command returns right away with a link to the form; share it where you are talking with the user. If the values don't arrive in time, the request stays open. Either way you get a message when the user saves; run the same command again then. If a saved value is wrong, for example the service rejects it, add \`--replace\` to ask for a new one.
28282
28290
 
28291
+ A value that starts with \`replicas_ph_\` is a proxied secret. Use it as the real key: Replicas swaps in the real value on HTTPS requests to the hosts the user bound it to, and it works nowhere else, including inside Docker containers.
28292
+
28283
28293
  ### Environment files
28284
28294
 
28285
28295
  Files materialize on the workspace filesystem when a workspace starts, at the destination path you specify. Use this for things like \`.env\` files at the repo root, dotfiles in \`~\`, prompt files for agents, etc.
@@ -42025,13 +42035,14 @@ var init_slash_commands = __esm({
42025
42035
  "use strict";
42026
42036
  init_agent();
42027
42037
  init_types4();
42038
+ init_models2();
42028
42039
  init_environment();
42029
42040
  SIDE_CHAT_COMMANDS = ["/btw", "/side"];
42030
42041
  SLASH_COMMANDS = [
42031
42042
  {
42032
42043
  command: "/fast",
42033
42044
  description: "Use the fast service tier for future turns.",
42034
- providers: ["claude", "codex"]
42045
+ providers: ["claude", "codex", "replicas"]
42035
42046
  },
42036
42047
  {
42037
42048
  command: "/goal",
@@ -42750,6 +42761,7 @@ var init_types8 = __esm({
42750
42761
  init_zod();
42751
42762
  init_agent();
42752
42763
  init_v1();
42764
+ init_models2();
42753
42765
  HARNESS_THREAD_STATUSES = ["idle", "working", "error"];
42754
42766
  textSchema = external_exports.looseObject({ type: external_exports.literal("text"), text: external_exports.string() });
42755
42767
  imageSchema = external_exports.looseObject({ type: external_exports.literal("image"), data: external_exports.string(), mimeType: external_exports.string() });
@@ -42810,6 +42822,7 @@ var init_types8 = __esm({
42810
42822
  agentOutcome: harnessAgentOutcomeSchema.optional(),
42811
42823
  model: external_exports.string().optional(),
42812
42824
  thinkingLevel: external_exports.enum(VALID_THINKING_LEVELS).optional(),
42825
+ serviceTier: external_exports.enum(SERVICE_TIERS).exclude(["default"]).optional(),
42813
42826
  instructionsHash: external_exports.string().optional(),
42814
42827
  queued: external_exports.boolean().optional(),
42815
42828
  /** Stored only on a message whose `instructionsHash` differs from the message before it; later ones find it by hash. */
@@ -43136,7 +43149,7 @@ var CLI_VERSION;
43136
43149
  var init_cli_version = __esm({
43137
43150
  "../shared/src/cli-version.ts"() {
43138
43151
  "use strict";
43139
- CLI_VERSION = "0.3.627";
43152
+ CLI_VERSION = "0.3.638";
43140
43153
  }
43141
43154
  });
43142
43155
 
@@ -57285,6 +57298,7 @@ function printVariable(v2) {
57285
57298
  console.log(import_chalk21.default.white(` ${v2.key}`));
57286
57299
  console.log(import_chalk21.default.gray(` ID: ${v2.id}`));
57287
57300
  console.log(import_chalk21.default.gray(` Value: ${v2.value}`));
57301
+ if (v2.proxy_hosts.length > 0) console.log(import_chalk21.default.gray(` Proxied to: ${v2.proxy_hosts.join(", ")}`));
57288
57302
  console.log(import_chalk21.default.gray(` Updated: ${formatDate(v2.updated_at)}`));
57289
57303
  console.log();
57290
57304
  }
@@ -57309,7 +57323,7 @@ Variables (${environment_variables.length}):
57309
57323
  for (const v2 of environment_variables) printVariable(v2);
57310
57324
  });
57311
57325
  }
57312
- async function envVarsSetCommand(envIdOrName, key2, value) {
57326
+ async function envVarsSetCommand(envIdOrName, key2, value, options) {
57313
57327
  ensureOrgApiAuthenticated();
57314
57328
  const id = await resolveEnvironmentId(envIdOrName);
57315
57329
  const existing = await orgAuthenticatedFetch(
@@ -57317,7 +57331,7 @@ async function envVarsSetCommand(envIdOrName, key2, value) {
57317
57331
  );
57318
57332
  const match = existing.environment_variables.find((v2) => v2.key === key2);
57319
57333
  if (match) {
57320
- const body3 = { value };
57334
+ const body3 = { value, proxy_hosts: options.proxyHost };
57321
57335
  const response2 = await orgAuthenticatedFetch(
57322
57336
  `/v1/environments/${id}/variables/${match.id}`,
57323
57337
  { method: "PATCH", body: body3 }
@@ -57330,7 +57344,8 @@ Updated variable ${environment_variable.key}.
57330
57344
  const body2 = {
57331
57345
  environment_id: id,
57332
57346
  key: key2,
57333
- value
57347
+ value,
57348
+ proxy_hosts: options.proxyHost
57334
57349
  };
57335
57350
  const response = await orgAuthenticatedFetch(
57336
57351
  `/v1/environments/${id}/variables`,
@@ -62237,7 +62252,7 @@ var init_src2 = __esm({
62237
62252
  envConfig.command("disconnect <env>").description("Disconnect Git configuration and preserve current settings").option("-y, --yes", "Disconnect without a confirmation prompt").action(run(environmentConfigDisconnectCommand));
62238
62253
  envVars = environment.command("vars").description("Manage environment variables");
62239
62254
  envVars.command("list <env>").description("List variables in an environment (values masked by default)").option("--reveal", "Show full variable values instead of masking them").action(run(envVarsListCommand));
62240
- envVars.command("set <env> <key> <value>").description("Create or update a variable").action(run(envVarsSetCommand));
62255
+ envVars.command("set <env> <key> <value>").description("Create or update a variable").option("--proxy-host <hosts...>", "Keep the value out of workspaces: they get a placeholder, swapped for the value only on HTTPS requests to these hosts").action(run(envVarsSetCommand));
62241
62256
  envVars.command("delete <env> <key-or-id>").description("Delete a variable by key or ID").option("-f, --force", "Skip confirmation prompt").action(run(envVarsDeleteCommand));
62242
62257
  if (isAgentMode()) {
62243
62258
  envVars.command("request [keys...]").description("Ask the user for variables and load them into this workspace").option("-r, --reason <text>", "One sentence on what the values are for, shown to the user").option("--optional <keys>", "Comma-separated keys to ask for that the user may leave empty (repeatable)", (value, previous) => [...previous, value], []).option("--replace", "Ask for new values even if the keys are already set, for example when a saved key is rejected").option("-t, --timeout <duration>", "How long to wait for the user, for example 90s or 10m (default 10m)").option("--no-wait", "Return right after asking instead of waiting for the user").action(run(envVarsRequestCommand));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.627",
3
+ "version": "0.3.638",
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": {