replicas-cli 0.3.239 → 0.3.241

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 +16 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -16998,12 +16998,14 @@ function toAutomationLifecyclePolicy(policy) {
16998
16998
  function lifecyclePolicySupportsAutoStop(policy) {
16999
16999
  return policy === "default";
17000
17000
  }
17001
- var AUTOMATION_DEBOUNCE_MAX_SECONDS, AUTOMATION_LIFECYCLE_POLICIES;
17001
+ var AUTOMATION_DEBOUNCE_MAX_SECONDS, AUTOMATION_LIFECYCLE_POLICIES, AUTOMATION_AUTO_PAUSE_DAYS, AUTOMATION_AUTO_PAUSE_LABEL;
17002
17002
  var init_types5 = __esm({
17003
17003
  "../shared/src/automations/types.ts"() {
17004
17004
  "use strict";
17005
17005
  AUTOMATION_DEBOUNCE_MAX_SECONDS = 24 * 60 * 60;
17006
17006
  AUTOMATION_LIFECYCLE_POLICIES = ["default", "archive_when_done", "sleep_when_done", "delete_when_done"];
17007
+ AUTOMATION_AUTO_PAUSE_DAYS = 7;
17008
+ AUTOMATION_AUTO_PAUSE_LABEL = `Paused after failing every run for ${AUTOMATION_AUTO_PAUSE_DAYS} days`;
17007
17009
  }
17008
17010
  });
17009
17011
 
@@ -17199,7 +17201,7 @@ function workspaceConfigWithCapabilities(config3, capabilities = {}) {
17199
17201
  function workspaceConfigWithPrFollowups(config3, prFollowups = config3?.capabilities?.pr_followups === true) {
17200
17202
  return workspaceConfigWithCapabilities(config3, { pr_followups: prFollowups });
17201
17203
  }
17202
- var WORKSPACE_STATUSES, STALE_PREPARING_MS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
17204
+ var WORKSPACE_STATUSES, SUPPORT_EMAIL, WORKSPACE_SANDBOX_LOST_MESSAGE, STALE_PREPARING_MS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
17203
17205
  var init_workspaces = __esm({
17204
17206
  "../shared/src/routes/workspaces.ts"() {
17205
17207
  "use strict";
@@ -17210,6 +17212,8 @@ var init_workspaces = __esm({
17210
17212
  init_pricing();
17211
17213
  init_mothership();
17212
17214
  WORKSPACE_STATUSES = ["active", "sleeping", "archived", "preparing", "error"];
17215
+ SUPPORT_EMAIL = "founders@replicas.dev";
17216
+ WORKSPACE_SANDBOX_LOST_MESSAGE = `This workspace can't be resumed because its sandbox was lost on our side. That shouldn't happen, and we're sorry. Please start a new workspace, and email ${SUPPORT_EMAIL} so we can look into it.`;
17213
17217
  STALE_PREPARING_MS = 10 * 6e4;
17214
17218
  WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
17215
17219
  DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
@@ -31426,7 +31430,7 @@ var CLI_VERSION;
31426
31430
  var init_cli_version = __esm({
31427
31431
  "../shared/src/cli-version.ts"() {
31428
31432
  "use strict";
31429
- CLI_VERSION = "0.3.239";
31433
+ CLI_VERSION = "0.3.241";
31430
31434
  }
31431
31435
  });
31432
31436
 
@@ -37131,6 +37135,9 @@ function truncate2(text3, maxLength) {
37131
37135
  if (text3.length <= maxLength) return text3;
37132
37136
  return text3.substring(0, maxLength) + "...";
37133
37137
  }
37138
+ function formatAutoPause(automation2) {
37139
+ return `${AUTOMATION_AUTO_PAUSE_LABEL}${automation2.failing_cause ? `: ${automation2.failing_cause}` : ""}`;
37140
+ }
37134
37141
  function formatAgentSummary(automation2) {
37135
37142
  const parts = [];
37136
37143
  parts.push(automation2.agent_provider ? getProviderDisplayName(automation2.agent_provider) : "org default");
@@ -37165,6 +37172,9 @@ function printAutomation(automation2) {
37165
37172
  console.log(import_chalk26.default.gray(` Description: ${automation2.description}`));
37166
37173
  }
37167
37174
  console.log(import_chalk26.default.gray(` Enabled: ${automation2.enabled ? import_chalk26.default.green("yes") : import_chalk26.default.red("no")}`));
37175
+ if (automation2.auto_paused_at) {
37176
+ console.log(import_chalk26.default.yellow(` ${truncate2(formatAutoPause(automation2), 120)}`));
37177
+ }
37168
37178
  if (automation2.triggers.length > 0) {
37169
37179
  console.log(import_chalk26.default.gray(` Triggers: ${automation2.triggers.map(formatTrigger).join(", ")}`));
37170
37180
  }
@@ -37232,6 +37242,9 @@ Automation: ${automation2.name}
37232
37242
  console.log(import_chalk26.default.gray(` Description: ${automation2.description}`));
37233
37243
  }
37234
37244
  console.log(import_chalk26.default.gray(` Enabled: ${automation2.enabled ? import_chalk26.default.green("yes") : import_chalk26.default.red("no")}`));
37245
+ if (automation2.auto_paused_at) {
37246
+ console.log(import_chalk26.default.yellow(` ${formatAutoPause(automation2)}`));
37247
+ }
37235
37248
  if (automation2.triggers.length > 0) {
37236
37249
  console.log(import_chalk26.default.gray(` Triggers:`));
37237
37250
  for (const trigger of automation2.triggers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.239",
3
+ "version": "0.3.241",
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": {