replicas-cli 0.2.530 → 0.2.532
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.cjs +36 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22704,6 +22704,35 @@ var EGRESS_WORKSPACE_SHELL_VARS = {
|
|
|
22704
22704
|
|
|
22705
22705
|
// ../shared/src/urls.ts
|
|
22706
22706
|
var DEFAULT_WEB_APP_URL = "https://tryreplicas.com";
|
|
22707
|
+
var HOME_PATH = "/home";
|
|
22708
|
+
var DASHBOARD_PATH = "/dashboard";
|
|
22709
|
+
var WEB_APP_PATHS = {
|
|
22710
|
+
home: HOME_PATH,
|
|
22711
|
+
onboarding: `${HOME_PATH}/onboarding`,
|
|
22712
|
+
workspaces: `${HOME_PATH}/workspace`,
|
|
22713
|
+
automations: `${HOME_PATH}/automations`,
|
|
22714
|
+
environment: `${HOME_PATH}/environment`,
|
|
22715
|
+
analytics: `${HOME_PATH}/analytics`,
|
|
22716
|
+
dashboard: DASHBOARD_PATH,
|
|
22717
|
+
agents: `${DASHBOARD_PATH}/agents`,
|
|
22718
|
+
integrations: `${DASHBOARD_PATH}/integrations`,
|
|
22719
|
+
integrationsGithub: `${DASHBOARD_PATH}/integrations/github`,
|
|
22720
|
+
integrationsGitlab: `${DASHBOARD_PATH}/integrations/gitlab`,
|
|
22721
|
+
settings: `${DASHBOARD_PATH}/settings`,
|
|
22722
|
+
billing: `${DASHBOARD_PATH}/billing`,
|
|
22723
|
+
members: `${DASHBOARD_PATH}/members`,
|
|
22724
|
+
"audit-logs": `${DASHBOARD_PATH}/audit-logs`,
|
|
22725
|
+
accountAgents: `${DASHBOARD_PATH}/account/agents`,
|
|
22726
|
+
accountProfile: `${DASHBOARD_PATH}/account/profile`,
|
|
22727
|
+
accountIntegrations: `${DASHBOARD_PATH}/account/integrations`,
|
|
22728
|
+
accountApiKeys: `${DASHBOARD_PATH}/account/api-keys`,
|
|
22729
|
+
accountPreferences: `${DASHBOARD_PATH}/account/preferences`,
|
|
22730
|
+
fullscreenWorkspaces: "/workspaces"
|
|
22731
|
+
};
|
|
22732
|
+
var LEGACY_WEB_APP_PATHS = {
|
|
22733
|
+
app: "/app",
|
|
22734
|
+
dashboardWorkspaces: `${DASHBOARD_PATH}/workspaces`
|
|
22735
|
+
};
|
|
22707
22736
|
function getWorkspaceDashboardUrl(workspaceId, options = {}) {
|
|
22708
22737
|
const { encodeWorkspaceId = true, mode, mediaId } = options;
|
|
22709
22738
|
const workspaceIdValue = encodeWorkspaceId ? encodeURIComponent(workspaceId) : workspaceId;
|
|
@@ -22711,7 +22740,7 @@ function getWorkspaceDashboardUrl(workspaceId, options = {}) {
|
|
|
22711
22740
|
if (mode) params.push(`mode=${encodeURIComponent(mode)}`);
|
|
22712
22741
|
if (mediaId) params.push(`media=${encodeURIComponent(mediaId)}`);
|
|
22713
22742
|
const query = params.length > 0 ? `?${params.join("&")}` : "";
|
|
22714
|
-
return
|
|
22743
|
+
return `${DEFAULT_WEB_APP_URL}${WEB_APP_PATHS.fullscreenWorkspaces}/${workspaceIdValue}${query}`;
|
|
22715
22744
|
}
|
|
22716
22745
|
function getOrganizationMediaPath(organizationId, mediaId) {
|
|
22717
22746
|
return `/organizations/${encodeURIComponent(organizationId)}/media/${encodeURIComponent(mediaId)}`;
|
|
@@ -24307,7 +24336,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
24307
24336
|
});
|
|
24308
24337
|
|
|
24309
24338
|
// ../shared/src/cli-version.ts
|
|
24310
|
-
var CLI_VERSION = "0.2.
|
|
24339
|
+
var CLI_VERSION = "0.2.532";
|
|
24311
24340
|
|
|
24312
24341
|
// ../shared/src/version.ts
|
|
24313
24342
|
function compareVersions(v1, v2) {
|
|
@@ -26577,12 +26606,12 @@ function parseSseChunk(chunk) {
|
|
|
26577
26606
|
}
|
|
26578
26607
|
async function readSseStream(body, onEvent, shouldContinue = () => true) {
|
|
26579
26608
|
const reader = body.getReader();
|
|
26580
|
-
const
|
|
26609
|
+
const decoder2 = new TextDecoder();
|
|
26581
26610
|
let buffer = "";
|
|
26582
26611
|
while (shouldContinue()) {
|
|
26583
26612
|
const { done, value } = await reader.read();
|
|
26584
26613
|
if (done) break;
|
|
26585
|
-
buffer +=
|
|
26614
|
+
buffer += decoder2.decode(value, { stream: true });
|
|
26586
26615
|
const chunks = buffer.split("\n\n");
|
|
26587
26616
|
buffer = chunks.pop() ?? "";
|
|
26588
26617
|
for (const chunk of chunks) {
|
|
@@ -26594,6 +26623,9 @@ async function readSseStream(body, onEvent, shouldContinue = () => true) {
|
|
|
26594
26623
|
}
|
|
26595
26624
|
}
|
|
26596
26625
|
|
|
26626
|
+
// ../shared/src/chat-transcript-pages.ts
|
|
26627
|
+
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
26628
|
+
|
|
26597
26629
|
// src/lib/monolith-url.ts
|
|
26598
26630
|
var MONOLITH_URL = process.env.REPLICAS_MONOLITH_URL || process.env.MONOLITH_URL || "https://api.tryreplicas.com";
|
|
26599
26631
|
|