replicas-cli 0.2.135 → 0.2.136
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/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Replicas CLI
|
|
2
2
|
|
|
3
|
-
Official CLI for [Replicas](https://
|
|
3
|
+
Official CLI for [Replicas](https://tryreplicas.com) - manage cloud development workspaces with automatic SSH tunneling and an interactive terminal dashboard.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
curl -fsSL https://
|
|
8
|
+
curl -fsSL https://tryreplicas.com/install.sh | bash
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Or if you already have [Bun](https://bun.sh) installed:
|
|
@@ -94,7 +94,7 @@ startHook:
|
|
|
94
94
|
|
|
95
95
|
## Support
|
|
96
96
|
|
|
97
|
-
For issues or questions, visit [https://
|
|
97
|
+
For issues or questions, visit [https://tryreplicas.com](https://tryreplicas.com)
|
|
98
98
|
|
|
99
99
|
## License
|
|
100
100
|
|
|
@@ -7499,7 +7499,7 @@ function getWorkspaceDashboardUrl(workspaceId, options = {}) {
|
|
|
7499
7499
|
const { encodeWorkspaceId = true, mode } = options;
|
|
7500
7500
|
const workspaceIdValue = encodeWorkspaceId ? encodeURIComponent(workspaceId) : workspaceId;
|
|
7501
7501
|
const modeParam = mode ? `?mode=${encodeURIComponent(mode)}` : "";
|
|
7502
|
-
return `https://www.
|
|
7502
|
+
return `https://www.tryreplicas.com/workspaces/${workspaceIdValue}${modeParam}`;
|
|
7503
7503
|
}
|
|
7504
7504
|
var PR_URL_REGEX = /github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
|
|
7505
7505
|
function parsePrUrl(url) {
|
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setIdeCommand,
|
|
20
20
|
setOrganizationId,
|
|
21
21
|
writeConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DHY7NAYF.mjs";
|
|
23
23
|
import "./chunk-FFDYI4OH.mjs";
|
|
24
24
|
|
|
25
25
|
// src/index.ts
|
|
@@ -34,7 +34,7 @@ import open from "open";
|
|
|
34
34
|
import chalk from "chalk";
|
|
35
35
|
|
|
36
36
|
// src/lib/api.ts
|
|
37
|
-
var MONOLITH_URL = process.env.REPLICAS_MONOLITH_URL || "https://api.
|
|
37
|
+
var MONOLITH_URL = process.env.REPLICAS_MONOLITH_URL || "https://api.tryreplicas.com";
|
|
38
38
|
async function authenticatedFetch(url, options) {
|
|
39
39
|
const token = await getValidToken();
|
|
40
40
|
if (!token) {
|
|
@@ -135,7 +135,7 @@ async function ensureOrganization() {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
// src/commands/login.ts
|
|
138
|
-
var WEB_APP_URL = process.env.REPLICAS_WEB_URL || "https://
|
|
138
|
+
var WEB_APP_URL = process.env.REPLICAS_WEB_URL || "https://tryreplicas.com";
|
|
139
139
|
function generateState() {
|
|
140
140
|
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
141
141
|
}
|
|
@@ -453,7 +453,7 @@ Found ${response.workspaces.length} workspaces matching "${workspaceName}":`));
|
|
|
453
453
|
console.log(chalk4.gray(` Status: ${selectedWorkspace.status || "unknown"}`));
|
|
454
454
|
if (selectedWorkspace.status === "sleeping") {
|
|
455
455
|
throw new Error(
|
|
456
|
-
"Workspace is currently sleeping. Wake it using `replicas app` (press w on a sleeping workspace) or visit https://
|
|
456
|
+
"Workspace is currently sleeping. Wake it using `replicas app` (press w on a sleeping workspace) or visit https://tryreplicas.com"
|
|
457
457
|
);
|
|
458
458
|
}
|
|
459
459
|
console.log(chalk4.blue("\nRequesting SSH access token..."));
|
|
@@ -808,7 +808,7 @@ var AUTHORIZATION_ENDPOINT = "https://auth.openai.com/oauth/authorize";
|
|
|
808
808
|
var TOKEN_ENDPOINT = "https://auth.openai.com/oauth/token";
|
|
809
809
|
var CALLBACK_PORT = 1455;
|
|
810
810
|
var CALLBACK_PATH = "/auth/callback";
|
|
811
|
-
var WEB_APP_URL2 = process.env.REPLICAS_WEB_URL || "https://
|
|
811
|
+
var WEB_APP_URL2 = process.env.REPLICAS_WEB_URL || "https://tryreplicas.com";
|
|
812
812
|
function buildAuthorizationUrl(codeChallenge, state) {
|
|
813
813
|
const redirectUri = `http://localhost:${CALLBACK_PORT}${CALLBACK_PATH}`;
|
|
814
814
|
const params = new URLSearchParams({
|
|
@@ -1171,7 +1171,7 @@ function getDefaultConfig() {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
function getDefaultYamlContent() {
|
|
1173
1173
|
return `# Replicas workspace configuration
|
|
1174
|
-
# See: https://docs.
|
|
1174
|
+
# See: https://docs.tryreplicas.com/features/workspaces/repository-configuration
|
|
1175
1175
|
|
|
1176
1176
|
systemPrompt: |
|
|
1177
1177
|
Add custom instructions for coding agents here.
|
|
@@ -1241,7 +1241,7 @@ function initCommand(options) {
|
|
|
1241
1241
|
|
|
1242
1242
|
// src/lib/version-check.ts
|
|
1243
1243
|
import chalk13 from "chalk";
|
|
1244
|
-
var MONOLITH_URL2 = process.env.REPLICAS_MONOLITH_URL || "https://api.
|
|
1244
|
+
var MONOLITH_URL2 = process.env.REPLICAS_MONOLITH_URL || "https://api.tryreplicas.com";
|
|
1245
1245
|
var VERSION_CHECK_TIMEOUT = 2e3;
|
|
1246
1246
|
function compareVersions(v1, v2) {
|
|
1247
1247
|
const parts1 = v1.split(".").map(Number);
|
|
@@ -1268,7 +1268,7 @@ async function checkForUpdates(currentVersion) {
|
|
|
1268
1268
|
if (compareVersions(latestVersion, currentVersion) > 0) {
|
|
1269
1269
|
console.error(chalk13.yellow(`
|
|
1270
1270
|
Update available: ${currentVersion} \u2192 ${latestVersion}`));
|
|
1271
|
-
console.error(chalk13.cyan(`Run: curl -fsSL https://
|
|
1271
|
+
console.error(chalk13.cyan(`Run: curl -fsSL https://tryreplicas.com/install.sh | bash
|
|
1272
1272
|
`));
|
|
1273
1273
|
}
|
|
1274
1274
|
} catch {
|
|
@@ -2306,7 +2306,7 @@ Automation "${automationName}" (${id}) deleted.
|
|
|
2306
2306
|
import chalk17 from "chalk";
|
|
2307
2307
|
|
|
2308
2308
|
// src/lib/agent-api.ts
|
|
2309
|
-
var MONOLITH_URL3 = process.env.MONOLITH_URL || process.env.REPLICAS_MONOLITH_URL || "https://api.
|
|
2309
|
+
var MONOLITH_URL3 = process.env.MONOLITH_URL || process.env.REPLICAS_MONOLITH_URL || "https://api.tryreplicas.com";
|
|
2310
2310
|
var ENGINE_PORT = process.env.REPLICAS_ENGINE_PORT || "3737";
|
|
2311
2311
|
async function agentFetch(path5, options) {
|
|
2312
2312
|
const config2 = readAgentConfig();
|
|
@@ -2431,7 +2431,7 @@ async function previewRemoveCommand(workspaceId, options) {
|
|
|
2431
2431
|
// src/commands/media.ts
|
|
2432
2432
|
import fs3 from "fs";
|
|
2433
2433
|
import path4 from "path";
|
|
2434
|
-
var MONOLITH_URL4 = process.env.MONOLITH_URL || process.env.REPLICAS_MONOLITH_URL || "https://api.
|
|
2434
|
+
var MONOLITH_URL4 = process.env.MONOLITH_URL || process.env.REPLICAS_MONOLITH_URL || "https://api.tryreplicas.com";
|
|
2435
2435
|
var EXT_INFO = {
|
|
2436
2436
|
png: { kind: MEDIA_KIND.IMAGE, contentType: "image/png" },
|
|
2437
2437
|
jpg: { kind: MEDIA_KIND.IMAGE, contentType: "image/jpeg" },
|
|
@@ -2536,12 +2536,12 @@ async function interactiveCommand() {
|
|
|
2536
2536
|
);
|
|
2537
2537
|
}
|
|
2538
2538
|
console.log(chalk18.gray("Starting interactive mode..."));
|
|
2539
|
-
const { launchInteractive } = await import("./interactive-
|
|
2539
|
+
const { launchInteractive } = await import("./interactive-RRL7UK6W.mjs");
|
|
2540
2540
|
await launchInteractive();
|
|
2541
2541
|
}
|
|
2542
2542
|
|
|
2543
2543
|
// src/index.ts
|
|
2544
|
-
var CLI_VERSION = "0.2.
|
|
2544
|
+
var CLI_VERSION = "0.2.136";
|
|
2545
2545
|
var program = new Command();
|
|
2546
2546
|
program.name("replicas").description("CLI for managing Replicas workspaces").version(CLI_VERSION);
|
|
2547
2547
|
program.command("login").description("Authenticate with your Replicas account").action(async () => {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
parseAgentEvents,
|
|
14
14
|
parseSseChunk,
|
|
15
15
|
parseUserMessage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DHY7NAYF.mjs";
|
|
17
17
|
import "./chunk-FFDYI4OH.mjs";
|
|
18
18
|
|
|
19
19
|
// src/interactive/index.tsx
|
|
@@ -1982,7 +1982,7 @@ import React6, { useState as useState6, useMemo as useMemo5, useCallback as useC
|
|
|
1982
1982
|
import open from "open";
|
|
1983
1983
|
import { useKeyboard as useKeyboard4 } from "@opentui/react";
|
|
1984
1984
|
import { Fragment as Fragment4, jsx as jsx8, jsxs as jsxs8 } from "@opentui/react/jsx-runtime";
|
|
1985
|
-
var WEB_APP_URL = process.env.REPLICAS_WEB_URL || "https://
|
|
1985
|
+
var WEB_APP_URL = process.env.REPLICAS_WEB_URL || "https://tryreplicas.com";
|
|
1986
1986
|
function buildInteractiveItems(workspaceId, status, previews, wakingWorkspaceId) {
|
|
1987
1987
|
const items = [];
|
|
1988
1988
|
const hasAnyPr = status.repoStatuses?.some((repo) => repo.prUrls.length > 0);
|
|
@@ -2617,7 +2617,7 @@ var MOCK_CHATS = [
|
|
|
2617
2617
|
{ id: "mock-claude", provider: "claude", title: "Claude Code", createdAt: "", updatedAt: "", processing: false, parentChatId: null },
|
|
2618
2618
|
{ id: "mock-codex", provider: "codex", title: "Codex", createdAt: "", updatedAt: "", processing: false, parentChatId: null }
|
|
2619
2619
|
];
|
|
2620
|
-
var MONOLITH_URL = process.env.REPLICAS_MONOLITH_URL || "https://api.
|
|
2620
|
+
var MONOLITH_URL = process.env.REPLICAS_MONOLITH_URL || "https://api.tryreplicas.com";
|
|
2621
2621
|
var workspacePollingStarted = false;
|
|
2622
2622
|
var queryClient = new QueryClient({
|
|
2623
2623
|
defaultOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "replicas-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.136",
|
|
4
4
|
"description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"author": "Replicas",
|
|
30
30
|
"license": "MIT",
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://tryreplicas.com",
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "https://github.com/connortbot/replicas.git",
|