@integrity-labs/agt-cli 0.28.33 → 0.28.35

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.
@@ -2335,6 +2335,23 @@ var FLAG_REGISTRY = [
2335
2335
  // hosts/stages keep working until the env var is retired.
2336
2336
  envVar: "AGT_WORKFLOWS_ENABLED"
2337
2337
  },
2338
+ {
2339
+ key: "integration-connectivity-escalation",
2340
+ description: "Arm integration-connectivity escalation (ENG-5641). When on, the connectivity-monitor cron opens/closes integration_down alerts; when off it stays shadow \u2014 computes and logs what it WOULD page but opens nothing. Boolean gate; ships dark.",
2341
+ flagType: "boolean",
2342
+ // Declared safe value is `false` (shadow / no paging). It matches the cron's
2343
+ // compiled default since ENG-5641, so migrating the reader onto this flag
2344
+ // (ADR-0022) preserves fleet behaviour: escalation stays dark until an
2345
+ // operator deliberately arms it per-stage from the admin Feature Flags page.
2346
+ // `false` is also the fail-safe direction — a flag-DB read error must never
2347
+ // start paging on its own.
2348
+ defaultValue: false,
2349
+ // Migration override (ADR-0022): the pre-flags env gate stays the
2350
+ // highest-precedence operator override so existing
2351
+ // AUGMENTED_CONNECTIVITY_ESCALATION_ENABLED stages keep working until the
2352
+ // env var is retired.
2353
+ envVar: "AUGMENTED_CONNECTIVITY_ESCALATION_ENABLED"
2354
+ },
2338
2355
  {
2339
2356
  key: "projects-menu",
2340
2357
  description: "Show the Projects nav item in the webapp (ADR-0017 Projects soft launch, ENG-6342). Replaces the isAdmin/adminOnly gate with a per-org rollout flag.",
@@ -4756,13 +4773,18 @@ function parseResetDateTime(humanDate, now) {
4756
4773
  const isPm = timeMatch[3].toLowerCase() === "pm";
4757
4774
  hour = rawHour % 12 + (isPm ? 12 : 0);
4758
4775
  }
4759
- const SIX_DAYS_MS = 6 * 24 * 60 * 60 * 1e3;
4760
- const year = now.getUTCFullYear();
4761
- const candidate = new Date(Date.UTC(year, month, day, hour, minute));
4762
- if (candidate.getTime() < now.getTime() - SIX_DAYS_MS) {
4763
- return new Date(Date.UTC(year + 1, month, day, hour, minute));
4776
+ const baseYear = now.getUTCFullYear();
4777
+ let resolved = null;
4778
+ let bestDelta = Number.POSITIVE_INFINITY;
4779
+ for (const y of [baseYear - 1, baseYear, baseYear + 1]) {
4780
+ const candidate = new Date(Date.UTC(y, month, day, hour, minute));
4781
+ const delta = Math.abs(candidate.getTime() - now.getTime());
4782
+ if (delta < bestDelta) {
4783
+ bestDelta = delta;
4784
+ resolved = candidate;
4785
+ }
4764
4786
  }
4765
- return candidate;
4787
+ return resolved;
4766
4788
  }
4767
4789
 
4768
4790
  // ../../packages/core/dist/claude-code-usage/transcript-parser.js
@@ -5306,4 +5328,4 @@ export {
5306
5328
  coerceEnvValue,
5307
5329
  FLAGS_SCHEMA_VERSION
5308
5330
  };
5309
- //# sourceMappingURL=chunk-R5CP4WAO.js.map
5331
+ //# sourceMappingURL=chunk-DVAHAZQN.js.map