replicas-cli 0.2.529 → 0.2.531

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 -5
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22583,6 +22583,7 @@ var PLANS = {
22583
22583
  "Unlimited automations",
22584
22584
  "Warm pools and warm hooks",
22585
22585
  "Higher API rate limits",
22586
+ "Access to a static egress IP",
22586
22587
  "Auto-upgraded sandbox resources (4 vCPU, 32 GB disk, 16 GB memory)",
22587
22588
  "Shared Slack support channel"
22588
22589
  ]
@@ -22679,12 +22680,13 @@ var EGRESS_PATHS = {
22679
22680
  /**
22680
22681
  * Under /run, which is tmpfs. The key therefore never touches disk and cannot
22681
22682
  * be carried into a filesystem snapshot or a paused sandbox's disk image. It
22682
- * does not survive a reboot either, which is correct: the monolith rewrites
22683
- * it on every resume, so a revoked credential cannot come back with the
22684
- * workspace.
22683
+ * does not survive a reboot either. A full-memory resume can reuse it only
22684
+ * while the root-owned revision still matches the current profile and the
22685
+ * running service and route are healthy.
22685
22686
  */
22686
22687
  CONFIG_DIR: "/run/replicas-egress",
22687
22688
  CONFIG_FILE: "/run/replicas-egress/config.json",
22689
+ REVISION_FILE: "/run/replicas-egress/revision",
22688
22690
  /** Persistent: this records the workspace's original resolver so the tunnel can put it back, and must outlive a reboot. */
22689
22691
  RESOLV_BACKUP: "/var/lib/replicas-egress-resolv.conf.orig",
22690
22692
  UNIT_FILE: `/etc/systemd/system/${EGRESS_TUNNEL_SERVICE}`,
@@ -22702,6 +22704,35 @@ var EGRESS_WORKSPACE_SHELL_VARS = {
22702
22704
 
22703
22705
  // ../shared/src/urls.ts
22704
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
+ };
22705
22736
  function getWorkspaceDashboardUrl(workspaceId, options = {}) {
22706
22737
  const { encodeWorkspaceId = true, mode, mediaId } = options;
22707
22738
  const workspaceIdValue = encodeWorkspaceId ? encodeURIComponent(workspaceId) : workspaceId;
@@ -22709,7 +22740,7 @@ function getWorkspaceDashboardUrl(workspaceId, options = {}) {
22709
22740
  if (mode) params.push(`mode=${encodeURIComponent(mode)}`);
22710
22741
  if (mediaId) params.push(`media=${encodeURIComponent(mediaId)}`);
22711
22742
  const query = params.length > 0 ? `?${params.join("&")}` : "";
22712
- return `https://tryreplicas.com/workspaces/${workspaceIdValue}${query}`;
22743
+ return `${DEFAULT_WEB_APP_URL}${WEB_APP_PATHS.fullscreenWorkspaces}/${workspaceIdValue}${query}`;
22713
22744
  }
22714
22745
  function getOrganizationMediaPath(organizationId, mediaId) {
22715
22746
  return `/organizations/${encodeURIComponent(organizationId)}/media/${encodeURIComponent(mediaId)}`;
@@ -24305,7 +24336,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
24305
24336
  });
24306
24337
 
24307
24338
  // ../shared/src/cli-version.ts
24308
- var CLI_VERSION = "0.2.529";
24339
+ var CLI_VERSION = "0.2.531";
24309
24340
 
24310
24341
  // ../shared/src/version.ts
24311
24342
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.529",
3
+ "version": "0.2.531",
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": {