@integrity-labs/agt-cli 0.28.34 → 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.
package/dist/bin/agt.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  success,
34
34
  table,
35
35
  warn
36
- } from "../chunk-DLCUI4J5.js";
36
+ } from "../chunk-5G4VLVFN.js";
37
37
  import {
38
38
  CHANNEL_REGISTRY,
39
39
  DEPLOYMENT_TEMPLATES,
@@ -60,7 +60,7 @@ import {
60
60
  renderTemplate,
61
61
  resolveChannels,
62
62
  serializeManifestForSlackCli
63
- } from "../chunk-R5CP4WAO.js";
63
+ } from "../chunk-DVAHAZQN.js";
64
64
 
65
65
  // src/bin/agt.ts
66
66
  import { join as join21 } from "path";
@@ -4773,7 +4773,7 @@ import { execFileSync, execSync } from "child_process";
4773
4773
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4774
4774
  import chalk18 from "chalk";
4775
4775
  import ora16 from "ora";
4776
- var cliVersion = true ? "0.28.34" : "dev";
4776
+ var cliVersion = true ? "0.28.35" : "dev";
4777
4777
  async function fetchLatestVersion() {
4778
4778
  const host2 = getHost();
4779
4779
  if (!host2) return null;
@@ -5696,7 +5696,7 @@ function handleError(err) {
5696
5696
  }
5697
5697
 
5698
5698
  // src/bin/agt.ts
5699
- var cliVersion2 = true ? "0.28.34" : "dev";
5699
+ var cliVersion2 = true ? "0.28.35" : "dev";
5700
5700
  var program = new Command();
5701
5701
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
5702
5702
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -14,7 +14,7 @@ import {
14
14
  registerFramework,
15
15
  resolveAvatarEnvUrl,
16
16
  wrapScheduledTaskPrompt
17
- } from "./chunk-R5CP4WAO.js";
17
+ } from "./chunk-DVAHAZQN.js";
18
18
 
19
19
  // ../../packages/core/dist/integrations/registry.js
20
20
  var INTEGRATION_REGISTRY = [
@@ -7266,7 +7266,7 @@ function requireHost() {
7266
7266
  }
7267
7267
 
7268
7268
  // src/lib/api-client.ts
7269
- var agtCliVersion = true ? "0.28.34" : "dev";
7269
+ var agtCliVersion = true ? "0.28.35" : "dev";
7270
7270
  var lastConfigHash = null;
7271
7271
  function setConfigHash(hash) {
7272
7272
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8326,4 +8326,4 @@ export {
8326
8326
  managerInstallSystemUnitCommand,
8327
8327
  managerUninstallSystemUnitCommand
8328
8328
  };
8329
- //# sourceMappingURL=chunk-DLCUI4J5.js.map
8329
+ //# sourceMappingURL=chunk-5G4VLVFN.js.map
@@ -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