replicas-cli 0.3.240 → 0.3.242

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 +14 -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.242";
31432
31434
  }
31433
31435
  });
31434
31436
 
@@ -31662,6 +31664,7 @@ var init_linear2 = __esm({
31662
31664
  init_agent();
31663
31665
  linearSessionMetadataSchema = external_exports.object({
31664
31666
  via_mothership: external_exports.boolean().optional(),
31667
+ attached: external_exports.boolean().optional(),
31665
31668
  issue_id: external_exports.string(),
31666
31669
  issue_identifier: external_exports.string(),
31667
31670
  issue_title: external_exports.string(),
@@ -37133,6 +37136,9 @@ function truncate2(text3, maxLength) {
37133
37136
  if (text3.length <= maxLength) return text3;
37134
37137
  return text3.substring(0, maxLength) + "...";
37135
37138
  }
37139
+ function formatAutoPause(automation2) {
37140
+ return `${AUTOMATION_AUTO_PAUSE_LABEL}${automation2.failing_cause ? `: ${automation2.failing_cause}` : ""}`;
37141
+ }
37136
37142
  function formatAgentSummary(automation2) {
37137
37143
  const parts = [];
37138
37144
  parts.push(automation2.agent_provider ? getProviderDisplayName(automation2.agent_provider) : "org default");
@@ -37167,6 +37173,9 @@ function printAutomation(automation2) {
37167
37173
  console.log(import_chalk26.default.gray(` Description: ${automation2.description}`));
37168
37174
  }
37169
37175
  console.log(import_chalk26.default.gray(` Enabled: ${automation2.enabled ? import_chalk26.default.green("yes") : import_chalk26.default.red("no")}`));
37176
+ if (automation2.auto_paused_at) {
37177
+ console.log(import_chalk26.default.yellow(` ${truncate2(formatAutoPause(automation2), 120)}`));
37178
+ }
37170
37179
  if (automation2.triggers.length > 0) {
37171
37180
  console.log(import_chalk26.default.gray(` Triggers: ${automation2.triggers.map(formatTrigger).join(", ")}`));
37172
37181
  }
@@ -37234,6 +37243,9 @@ Automation: ${automation2.name}
37234
37243
  console.log(import_chalk26.default.gray(` Description: ${automation2.description}`));
37235
37244
  }
37236
37245
  console.log(import_chalk26.default.gray(` Enabled: ${automation2.enabled ? import_chalk26.default.green("yes") : import_chalk26.default.red("no")}`));
37246
+ if (automation2.auto_paused_at) {
37247
+ console.log(import_chalk26.default.yellow(` ${formatAutoPause(automation2)}`));
37248
+ }
37237
37249
  if (automation2.triggers.length > 0) {
37238
37250
  console.log(import_chalk26.default.gray(` Triggers:`));
37239
37251
  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.242",
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": {