replicas-cli 0.3.240 → 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 +13 -2
  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
 
@@ -31428,7 +31430,7 @@ var CLI_VERSION;
31428
31430
  var init_cli_version = __esm({
31429
31431
  "../shared/src/cli-version.ts"() {
31430
31432
  "use strict";
31431
- CLI_VERSION = "0.3.239";
31433
+ CLI_VERSION = "0.3.241";
31432
31434
  }
31433
31435
  });
31434
31436
 
@@ -37133,6 +37135,9 @@ function truncate2(text3, maxLength) {
37133
37135
  if (text3.length <= maxLength) return text3;
37134
37136
  return text3.substring(0, maxLength) + "...";
37135
37137
  }
37138
+ function formatAutoPause(automation2) {
37139
+ return `${AUTOMATION_AUTO_PAUSE_LABEL}${automation2.failing_cause ? `: ${automation2.failing_cause}` : ""}`;
37140
+ }
37136
37141
  function formatAgentSummary(automation2) {
37137
37142
  const parts = [];
37138
37143
  parts.push(automation2.agent_provider ? getProviderDisplayName(automation2.agent_provider) : "org default");
@@ -37167,6 +37172,9 @@ function printAutomation(automation2) {
37167
37172
  console.log(import_chalk26.default.gray(` Description: ${automation2.description}`));
37168
37173
  }
37169
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
+ }
37170
37178
  if (automation2.triggers.length > 0) {
37171
37179
  console.log(import_chalk26.default.gray(` Triggers: ${automation2.triggers.map(formatTrigger).join(", ")}`));
37172
37180
  }
@@ -37234,6 +37242,9 @@ Automation: ${automation2.name}
37234
37242
  console.log(import_chalk26.default.gray(` Description: ${automation2.description}`));
37235
37243
  }
37236
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
+ }
37237
37248
  if (automation2.triggers.length > 0) {
37238
37249
  console.log(import_chalk26.default.gray(` Triggers:`));
37239
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.240",
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": {