replicas-cli 0.3.672 → 0.3.674

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 +36 -6
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -20983,7 +20983,7 @@ function isReplicasModel(model2) {
20983
20983
  function replicasChatModel(model2) {
20984
20984
  return model2 && RETIRED_REPLICAS_MODELS[model2] || model2;
20985
20985
  }
20986
- 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;
20986
+ 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, FUSION_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;
20987
20987
  var init_models2 = __esm({
20988
20988
  "../shared/src/harness/models.ts"() {
20989
20989
  "use strict";
@@ -21000,6 +21000,7 @@ var init_models2 = __esm({
21000
21000
  OPEN_GLM_5_3_MODEL = "glm-5.3";
21001
21001
  OPEN_GLM_5_3_FLASH_MODEL = "glm-5.3-flash";
21002
21002
  GEMINI_4_NEON_MODEL = "gemini-4-neon";
21003
+ FUSION_MODEL = "fusion";
21003
21004
  REPLICAS_MODEL_PROVIDERS = ["openai", "anthropic", "baseten", "openrouter", "google-vertex", "open"];
21004
21005
  SERVICE_TIERS = ["default", "fast", "ultrafast"];
21005
21006
  DEEPSEEK_V4_1_FLASH_HOSTS = {
@@ -21060,6 +21061,13 @@ var init_models2 = __esm({
21060
21061
  cost: { input: 3, output: 15, cacheRead: 0.15, cacheWrite: 0 },
21061
21062
  priceVersion: "2026-11-24",
21062
21063
  speeds: { fast: 1.8 }
21064
+ },
21065
+ // Each call is recorded and priced as the model that made it, so this only names the lead's provider and prices.
21066
+ [FUSION_MODEL]: {
21067
+ label: "Fusion",
21068
+ provider: "google-vertex",
21069
+ cost: { input: 3, output: 15, cacheRead: 0.15, cacheWrite: 0 },
21070
+ priceVersion: "2026-11-27"
21063
21071
  }
21064
21072
  };
21065
21073
  CATALOG_IDS = Object.keys(REPLICAS_MODEL_CATALOG).filter(isReplicasModel);
@@ -26112,7 +26120,7 @@ Every Replicas workspace is a remote Linux VM. Repositories are cloned under \`~
26112
26120
 
26113
26121
  Hooks run with \`bash -lc\` from \`~/workspaces\` (the parent of every repository checkout), so start scripts with \`cd ~/workspaces/<repo-name>\`. A repository may also ship its own \`replicas.json\` / \`replicas.yaml\` with \`startHook\`, \`warmHook\`, and \`systemPrompt\`; repository hooks run after the environment hooks. Prefer proposing environment hooks unless the repository already manages its own.
26114
26122
 
26115
- Forks inherit everything their parent sets; never propose putting repository-specific setup in an environment other environments fork from.
26123
+ Forks inherit everything their parent sets; never propose putting repository-specific setup in an environment other environments fork from. When asked to move an existing environment into YAML/JSON or Git management, follow *Environment configuration as code* in \`REPLICAS.md\`: export its own settings, preserve inheritance and secrets, then preview before applying. Do not replace that migration with a fresh setup proposal or duplicate its hooks.
26116
26124
 
26117
26125
  ## Progress and the setup run
26118
26126
 
@@ -28447,7 +28455,7 @@ Use this when:
28447
28455
  - The user asks you to come back to something later ("check back on this in a week", "remind me tomorrow", "tell me when CI is green") \u2014 schedule a follow-up (see *Follow-ups and reminders*)
28448
28456
  - The user asks you to manage environments, environment variables, or environment files
28449
28457
  - The user asks "what envs / repos / automations do I have?"
28450
- - The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\` in a repo
28458
+ - The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\`, migrate an existing environment to configuration, or preview/apply its settings
28451
28459
  - You need to run a long-lived service (dev server, daemon) \u2014 always use \`replicas service start\` so it survives workspace sleep/wake
28452
28460
  - The user asks you to change how their Replicas app looks (theme, colors, accent) \u2014 use \`replicas theme set\` (see *Themes*)`;
28453
28461
  REFERENCE13 = `# Replicas (in-workspace CLI)
@@ -28522,7 +28530,8 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
28522
28530
  | "Also run this PR automation on every push" | \`replicas automation edit <id> --keep-triggers --trigger-github pull_request.synchronize --trigger-github-repos acme/web\` |
28523
28531
  | "What repos are connected?" | \`replicas repos\` |
28524
28532
  | "Make my Replicas dark / purple / match these colors" | \`replicas theme set ...\` (see *Themes*) |
28525
- | "Set up a \`replicas.json\` in this repo" | \`replicas init\` (\`-y\` for YAML) |
28533
+ | "Set up a \`replicas.json\` in this repo" | \`replicas init\` (\`-y\` for YAML); preserve existing repository hooks |
28534
+ | "Move my existing environment into code" | Export its own settings first, then use \`replicas environment config preview\` and \`apply\` (see *Environment configuration as code*) |
28526
28535
 
28527
28536
  ## Environments
28528
28537
 
@@ -28759,7 +28768,28 @@ If the org hasn't connected GitHub or GitLab yet, point the user at the integrat
28759
28768
 
28760
28769
  ## \`replicas.json\` / \`replicas.yaml\`
28761
28770
 
28762
- \`replicas init\` creates a starter config in the current directory. \`-y\` writes YAML, \`-f\` overwrites an existing file. This file controls per-repo workspace setup (warm hooks, start hooks, organization scoping for GitHub triggers). When the user asks to "set up Replicas in this repo", run \`replicas init\` and then edit the generated file based on what they need.
28771
+ \`replicas init\` creates a starter config in the current directory. \`-y\` writes YAML, \`-f\` overwrites an existing file. Preserve an existing file rather than overwriting it. Supported root filenames are \`replicas.json\`, \`replicas.yaml\`, and \`replicas.yml\`, in that precedence order.
28772
+
28773
+ ### Environment configuration as code
28774
+
28775
+ Read https://docs.replicas.dev/features/environment-configuration for the format and migration guide. Check \`replicas environment config --help\` before running commands; there is no CLI \`config export\` command. This feature requires access for the workspace's organization.
28776
+
28777
+ For an existing environment, use \`replicas environment get <env>\` and \`replicas environment config get <env>\` to identify the target and existing source. Export its **own** settings with authenticated \`GET /v1/environments/<id>/config-source/export\`. Do not reconstruct configuration from flattened effective settings, copy inherited parent values, or ask the user to retype settings. The exporter returns \`{ environment, warnings }\`. In a workspace, use the existing workspace authentication for this product API; do not ask for a new API key:
28778
+
28779
+ \`\`\`bash
28780
+ umask 077
28781
+ curl --fail-with-body --silent --show-error \\
28782
+ "\${REPLICAS_MONOLITH_URL:-$MONOLITH_URL}/v1/environments/$environment_id/config-source/export" \\
28783
+ -H "Authorization: Bearer $REPLICAS_ENGINE_SECRET" \\
28784
+ -H "X-Workspace-Id: \${REPLICAS_WORKSPACE_ID:-$WORKSPACE_ID}" \\
28785
+ --output /tmp/environment-export.json
28786
+ \`\`\`
28787
+
28788
+ Set \`environment_id\` from the resolved target, never a guessed ID. Read export warnings and literal values privately before committing; do not print the response or disclose secrets. Follow the canonical guide for file format, preview/apply, Git linking, source transitions, ownership, and hook behavior.
28789
+
28790
+ Apply only within the user's authorized scope. Investigate unexpected updates or removals during adoption, and do not disconnect an existing source unless the user requested that transition. Verify a clean subsequent preview, preserved parent/repository setup steps, and intact unrelated UI-managed settings.
28791
+
28792
+ Request missing secret values through \`replicas environment vars request\`; it loads this workspace only. Store them as sensitive variables on the target environment through its variables API before applying; never put them in configuration or print them.
28763
28793
 
28764
28794
  For linked Git environment configuration, automatic apply is opt-in: \`replicas environment config auto-apply <env> on\` enables applying default-branch pushes, and \`off\` restores manual review/apply. Enable it only when the user asks. Local-file sources do not auto-apply. Validation or missing-secret failures preserve applied settings and appear in \`replicas environment config get <env>\` as \`last_error\`; fix the source/secrets and sync or push again. This uses repository webhook events and applies configuration directly without starting an agent workspace.
28765
28795
 
@@ -43514,7 +43544,7 @@ var CLI_VERSION;
43514
43544
  var init_cli_version = __esm({
43515
43545
  "../shared/src/cli-version.ts"() {
43516
43546
  "use strict";
43517
- CLI_VERSION = "0.3.672";
43547
+ CLI_VERSION = "0.3.674";
43518
43548
  }
43519
43549
  });
43520
43550
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.672",
3
+ "version": "0.3.674",
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": {