@plexus-ms/cli-ci 0.115.0 → 0.117.0

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/plx-ci.js +25 -20
  2. package/package.json +2 -2
package/dist/plx-ci.js CHANGED
@@ -7462,6 +7462,23 @@ function body(step) {
7462
7462
  }
7463
7463
  }
7464
7464
 
7465
+ // ../lib/dist/train.js
7466
+ var PRIMITIVES = "primitives";
7467
+ var COMPENDIUM = "compendium";
7468
+ var TRAIN_REPOS = [
7469
+ PRIMITIVES,
7470
+ "preset-repo-turbo",
7471
+ "preset-app-nextjs",
7472
+ "preset-repo-operations",
7473
+ COMPENDIUM
7474
+ ];
7475
+ var PHASES = [[PRIMITIVES], TRAIN_REPOS.filter((r) => r !== PRIMITIVES)];
7476
+ var UsageError = class extends Error {
7477
+ };
7478
+
7479
+ // ../lib/dist/consumers.js
7480
+ var PRESETS = TRAIN_REPOS.filter((r) => r.startsWith("preset-"));
7481
+
7465
7482
  // ../lib/dist/context.js
7466
7483
  var Context = class {
7467
7484
  dryRun;
@@ -7600,21 +7617,6 @@ var import_yaml3 = __toESM(require_dist(), 1);
7600
7617
  // ../lib/dist/deployTargets.js
7601
7618
  var import_yaml4 = __toESM(require_dist(), 1);
7602
7619
  import { join } from "node:path";
7603
-
7604
- // ../lib/dist/train.js
7605
- var PRIMITIVES = "primitives";
7606
- var TRAIN_REPOS = [
7607
- PRIMITIVES,
7608
- "preset-repo-turbo",
7609
- "preset-app-nextjs",
7610
- "preset-repo-operations",
7611
- "compendium"
7612
- ];
7613
- var PHASES = [[PRIMITIVES], TRAIN_REPOS.filter((r) => r !== PRIMITIVES)];
7614
- var UsageError = class extends Error {
7615
- };
7616
-
7617
- // ../lib/dist/deployTargets.js
7618
7620
  var VARS_DIRS = ["group_vars", "host_vars"];
7619
7621
  var DEFAULT_ENVIRONMENT = "production";
7620
7622
  function parseInventoryFile(path2, text) {
@@ -7680,11 +7682,14 @@ async function readDeployTargets(ctx, inventory) {
7680
7682
  return selectDeployTargets(files);
7681
7683
  }
7682
7684
 
7683
- // ../lib/dist/ship.js
7684
- var DEFAULT_WAIT = { interval: 15e3, timeout: 20 * 6e4 };
7685
+ // ../lib/dist/need.js
7686
+ var DAY = 24 * 60 * 60 * 1e3;
7685
7687
 
7686
7688
  // ../lib/dist/update.js
7687
- var PRESETS = TRAIN_REPOS.filter((r) => r.startsWith("preset-"));
7689
+ var TRAINS = `plexus-ms/${COMPENDIUM}`;
7690
+
7691
+ // ../lib/dist/ship.js
7692
+ var DEFAULT_WAIT = { interval: 15e3, timeout: 20 * 6e4 };
7688
7693
 
7689
7694
  // src/program.ts
7690
7695
  import { createRequire } from "node:module";
@@ -12444,11 +12449,11 @@ async function createInstances(ctx, exo, github, legs, shared) {
12444
12449
  // src/core/sweepInstances.ts
12445
12450
  var REMIND_AFTER_DAYS = 7;
12446
12451
  var DELETE_KEPT_AFTER_DAYS = 14;
12447
- var DAY = 864e5;
12452
+ var DAY2 = 864e5;
12448
12453
  function verdictOn(instance, now) {
12449
12454
  const kept = instance.labels[KEPT_LABEL];
12450
12455
  if (kept !== void 0) {
12451
- const days = (now.getTime() - Date.parse(kept)) / DAY;
12456
+ const days = (now.getTime() - Date.parse(kept)) / DAY2;
12452
12457
  if (days >= DELETE_KEPT_AFTER_DAYS)
12453
12458
  return { action: "remove", reason: `kept since ${kept}, ${DELETE_KEPT_AFTER_DAYS} days` };
12454
12459
  if (days >= REMIND_AFTER_DAYS && days < REMIND_AFTER_DAYS + 1) return { action: "remind" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexus-ms/cli-ci",
3
- "version": "0.115.0",
3
+ "version": "0.117.0",
4
4
  "description": "plx-ci, the CI verbs of Plexus: throwaway runners on a cloud, a registry on object storage, reproducible image builds, and their teardown",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "node": ">=24.22.1"
24
24
  },
25
25
  "dependencies": {
26
- "@plexus-ms/lib": "0.115.0",
26
+ "@plexus-ms/lib": "0.117.0",
27
27
  "commander": "^15.0.0",
28
28
  "yaml": "^2.9.1"
29
29
  },