replicas-cli 0.2.135 → 0.2.137
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
|
|
|
@@ -7362,6 +7362,9 @@ function isAuthenticated() {
|
|
|
7362
7362
|
}
|
|
7363
7363
|
return true;
|
|
7364
7364
|
}
|
|
7365
|
+
function canCallOrgApi() {
|
|
7366
|
+
return isAuthenticated() || isAgentMode();
|
|
7367
|
+
}
|
|
7365
7368
|
function setOrganizationId(organizationId) {
|
|
7366
7369
|
const config = readConfig();
|
|
7367
7370
|
if (!config) {
|
|
@@ -7405,7 +7408,7 @@ function readAgentConfig() {
|
|
|
7405
7408
|
try {
|
|
7406
7409
|
const data = fs.readFileSync(CONFIG_FILE, "utf-8");
|
|
7407
7410
|
const parsed = JSON.parse(data);
|
|
7408
|
-
if (parsed.engine_secret && parsed.workspace_id
|
|
7411
|
+
if (parsed.engine_secret && parsed.workspace_id) {
|
|
7409
7412
|
return parsed;
|
|
7410
7413
|
}
|
|
7411
7414
|
return null;
|
|
@@ -7499,7 +7502,7 @@ function getWorkspaceDashboardUrl(workspaceId, options = {}) {
|
|
|
7499
7502
|
const { encodeWorkspaceId = true, mode } = options;
|
|
7500
7503
|
const workspaceIdValue = encodeWorkspaceId ? encodeURIComponent(workspaceId) : workspaceId;
|
|
7501
7504
|
const modeParam = mode ? `?mode=${encodeURIComponent(mode)}` : "";
|
|
7502
|
-
return `https://www.
|
|
7505
|
+
return `https://www.tryreplicas.com/workspaces/${workspaceIdValue}${modeParam}`;
|
|
7503
7506
|
}
|
|
7504
7507
|
var PR_URL_REGEX = /github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
|
|
7505
7508
|
function parsePrUrl(url) {
|
|
@@ -8729,6 +8732,7 @@ export {
|
|
|
8729
8732
|
writeConfig,
|
|
8730
8733
|
deleteConfig,
|
|
8731
8734
|
isAuthenticated,
|
|
8735
|
+
canCallOrgApi,
|
|
8732
8736
|
setOrganizationId,
|
|
8733
8737
|
getOrganizationId,
|
|
8734
8738
|
setIdeCommand,
|