replicas-cli 0.2.208 → 0.2.210
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.
- package/dist/index.mjs +19 -30
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7598,25 +7598,13 @@ var SANDBOX_LIFECYCLE = {
|
|
|
7598
7598
|
AUTO_DELETE_MINUTES: -1,
|
|
7599
7599
|
SSH_TOKEN_EXPIRATION_MINUTES: 3 * 60
|
|
7600
7600
|
};
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
};
|
|
7609
|
-
}
|
|
7610
|
-
var DAYTONA_PATHS = buildPaths("/home/ubuntu");
|
|
7611
|
-
var E2B_PATHS = buildPaths("/home/user");
|
|
7612
|
-
function getSandboxPaths(providerId) {
|
|
7613
|
-
switch (providerId) {
|
|
7614
|
-
case "daytona":
|
|
7615
|
-
return DAYTONA_PATHS;
|
|
7616
|
-
case "e2b":
|
|
7617
|
-
return E2B_PATHS;
|
|
7618
|
-
}
|
|
7619
|
-
}
|
|
7601
|
+
var SANDBOX_PATHS = {
|
|
7602
|
+
HOME_DIR: "/home/user",
|
|
7603
|
+
WORKSPACES_DIR: "/home/user/workspaces",
|
|
7604
|
+
REPLICAS_DIR: "/home/user/.replicas",
|
|
7605
|
+
REPLICAS_FILES_DIR: "/home/user/.replicas/files",
|
|
7606
|
+
REPLICAS_RUNTIME_ENV_FILE: "/home/user/.replicas/runtime-env.sh"
|
|
7607
|
+
};
|
|
7620
7608
|
var WORKSPACE_SIZES = ["small", "large"];
|
|
7621
7609
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
7622
7610
|
|
|
@@ -8943,6 +8931,9 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
8943
8931
|
// ../shared/src/replicas-config.ts
|
|
8944
8932
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
8945
8933
|
|
|
8934
|
+
// ../shared/src/cli-version.ts
|
|
8935
|
+
var CLI_VERSION = "0.2.210";
|
|
8936
|
+
|
|
8946
8937
|
// ../shared/src/engine/environment.ts
|
|
8947
8938
|
var DESKTOP_NOVNC_PORT = 6080;
|
|
8948
8939
|
function getDesktopViewerUrl(publicUrl) {
|
|
@@ -8968,6 +8959,7 @@ function getInitialChatId(chats, preferredProvider = "claude") {
|
|
|
8968
8959
|
}
|
|
8969
8960
|
var CLAUDE_OPUS_1M_MODEL = "opus[1m]";
|
|
8970
8961
|
var LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
|
|
8962
|
+
var DEFAULT_CODEX_MODEL = "gpt-5.5";
|
|
8971
8963
|
function normalizeClaudeModel(model) {
|
|
8972
8964
|
if (model === LEGACY_CLAUDE_OPUS_1M_MODEL) {
|
|
8973
8965
|
return CLAUDE_OPUS_1M_MODEL;
|
|
@@ -8976,7 +8968,7 @@ function normalizeClaudeModel(model) {
|
|
|
8976
8968
|
}
|
|
8977
8969
|
var AGENT_MODELS = {
|
|
8978
8970
|
claude: [CLAUDE_OPUS_1M_MODEL, "sonnet", "haiku"],
|
|
8979
|
-
codex: [
|
|
8971
|
+
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"],
|
|
8980
8972
|
relay: [CLAUDE_OPUS_1M_MODEL, "sonnet"]
|
|
8981
8973
|
};
|
|
8982
8974
|
var MODEL_LABELS = {
|
|
@@ -8985,7 +8977,7 @@ var MODEL_LABELS = {
|
|
|
8985
8977
|
[CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
|
|
8986
8978
|
[LEGACY_CLAUDE_OPUS_1M_MODEL]: "Opus 4.8 (1M)",
|
|
8987
8979
|
haiku: "Haiku 4.5",
|
|
8988
|
-
|
|
8980
|
+
[DEFAULT_CODEX_MODEL]: "GPT-5.5",
|
|
8989
8981
|
"gpt-5.4": "GPT-5.4",
|
|
8990
8982
|
"gpt-5.4-mini": "GPT-5.4 Mini",
|
|
8991
8983
|
"gpt-5.3-codex": "GPT-5.3 Codex",
|
|
@@ -11022,7 +11014,7 @@ async function codeCommand(workspaceName) {
|
|
|
11022
11014
|
proxyCommand: sshProxyCommand
|
|
11023
11015
|
});
|
|
11024
11016
|
console.log(chalk6.green(`\u2713 SSH config entry created: ${hostAlias}`));
|
|
11025
|
-
const paths =
|
|
11017
|
+
const paths = SANDBOX_PATHS;
|
|
11026
11018
|
const remotePath = repoName ? `${paths.WORKSPACES_DIR}/${repoName}` : paths.HOME_DIR;
|
|
11027
11019
|
const ideCommand = getIdeCommand();
|
|
11028
11020
|
const fullCommand = `${ideCommand} --remote ssh-remote+${hostAlias} ${remotePath}`;
|
|
@@ -13474,7 +13466,9 @@ function useCreateWorkspace() {
|
|
|
13474
13466
|
};
|
|
13475
13467
|
}
|
|
13476
13468
|
);
|
|
13477
|
-
|
|
13469
|
+
waitForWorkspaceActive(workspace.id).catch((error) => {
|
|
13470
|
+
console.error("Workspace failed to become active:", error);
|
|
13471
|
+
});
|
|
13478
13472
|
},
|
|
13479
13473
|
onSettled: () => {
|
|
13480
13474
|
auth.queryClient.invalidateQueries({ queryKey: ["workspaces", orgId] });
|
|
@@ -13495,10 +13489,9 @@ function useWaitForWorkspaceActive() {
|
|
|
13495
13489
|
),
|
|
13496
13490
|
staleTime: Infinity
|
|
13497
13491
|
});
|
|
13498
|
-
auth.queryClient.invalidateQueries({ queryKey: ["workspaces", orgId] });
|
|
13499
13492
|
return result.workspace;
|
|
13500
|
-
}
|
|
13501
|
-
|
|
13493
|
+
} finally {
|
|
13494
|
+
auth.queryClient.invalidateQueries({ queryKey: ["workspaces", orgId] });
|
|
13502
13495
|
}
|
|
13503
13496
|
}, [auth, orgFetch, orgId]);
|
|
13504
13497
|
}
|
|
@@ -16923,7 +16916,6 @@ Repository start hooks (${response.repositories.length}):
|
|
|
16923
16916
|
}
|
|
16924
16917
|
|
|
16925
16918
|
// src/index.ts
|
|
16926
|
-
var CLI_VERSION = "0.2.208";
|
|
16927
16919
|
function parseBooleanOption(value) {
|
|
16928
16920
|
if (value === "true") return true;
|
|
16929
16921
|
if (value === "false") return false;
|
|
@@ -17630,6 +17622,3 @@ var versionCheckPromise = checkForUpdates(CLI_VERSION);
|
|
|
17630
17622
|
program.parse();
|
|
17631
17623
|
versionCheckPromise.catch(() => {
|
|
17632
17624
|
});
|
|
17633
|
-
export {
|
|
17634
|
-
CLI_VERSION
|
|
17635
|
-
};
|