@integrity-labs/agt-cli 0.28.50 → 0.28.52

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-ZBQ4C6EA.js";
40
+ } from "../chunk-GNRNPCJ6.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -64,7 +64,7 @@ import {
64
64
  renderTemplate,
65
65
  resolveChannels,
66
66
  serializeManifestForSlackCli
67
- } from "../chunk-MJKGJXKV.js";
67
+ } from "../chunk-WBZFCFU6.js";
68
68
 
69
69
  // src/bin/agt.ts
70
70
  import { join as join22 } from "path";
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.50" : "dev";
4780
+ var cliVersion = true ? "0.28.52" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5791,7 +5791,7 @@ function handleError(err) {
5791
5791
  }
5792
5792
 
5793
5793
  // src/bin/agt.ts
5794
- var cliVersion2 = true ? "0.28.50" : "dev";
5794
+ var cliVersion2 = true ? "0.28.52" : "dev";
5795
5795
  var program = new Command();
5796
5796
  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");
5797
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -22,7 +22,7 @@ import {
22
22
  resolveConnectivityProbe,
23
23
  worseConnectivityOutcome,
24
24
  wrapScheduledTaskPrompt
25
- } from "./chunk-MJKGJXKV.js";
25
+ } from "./chunk-WBZFCFU6.js";
26
26
 
27
27
  // ../../packages/core/dist/integrations/registry.js
28
28
  var INTEGRATION_REGISTRY = [
@@ -7355,7 +7355,7 @@ function requireHost() {
7355
7355
  }
7356
7356
 
7357
7357
  // src/lib/api-client.ts
7358
- var agtCliVersion = true ? "0.28.50" : "dev";
7358
+ var agtCliVersion = true ? "0.28.52" : "dev";
7359
7359
  var lastConfigHash = null;
7360
7360
  function setConfigHash(hash) {
7361
7361
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -7636,6 +7636,15 @@ var HostFlagStore = class {
7636
7636
  log;
7637
7637
  env;
7638
7638
  initialised = false;
7639
+ /**
7640
+ * Per-flag record of the heartbeat value we last warned about being masked by
7641
+ * an env override. Used to log the env-masking WARN only on *transition* (when
7642
+ * masking newly begins or the masked-over heartbeat value changes) rather than
7643
+ * on every heartbeat — a stable, intentional operator override (e.g. a canary
7644
+ * pin in `agt-manager.env`) otherwise re-logs the same WARN every ~90s forever
7645
+ * (ENG-6478). A key is deleted when masking stops, so a later re-mask warns again.
7646
+ */
7647
+ lastMaskWarn = /* @__PURE__ */ new Map();
7639
7648
  constructor(opts) {
7640
7649
  this.cachePath = opts.cachePath;
7641
7650
  this.log = opts.log ?? (() => {
@@ -7682,10 +7691,16 @@ var HostFlagStore = class {
7682
7691
  }
7683
7692
  if (definition.envVar) {
7684
7693
  const envValue = coerceEnvValue(definition, this.env[definition.envVar]);
7685
- if (envValue !== void 0 && after !== void 0 && envValue !== after) {
7686
- this.log(
7687
- `[flags] WARN env override ${definition.envVar}=${envValue} is masking heartbeat value ${after} for '${definition.key}' (env wins until unset)`
7688
- );
7694
+ const masking = envValue !== void 0 && after !== void 0 && envValue !== after;
7695
+ if (masking) {
7696
+ if (this.lastMaskWarn.get(definition.key) !== after) {
7697
+ this.log(
7698
+ `[flags] WARN env override ${definition.envVar}=${envValue} is masking heartbeat value ${after} for '${definition.key}' (env wins until unset)`
7699
+ );
7700
+ this.lastMaskWarn.set(definition.key, after);
7701
+ }
7702
+ } else {
7703
+ this.lastMaskWarn.delete(definition.key);
7689
7704
  }
7690
7705
  }
7691
7706
  }
@@ -8636,4 +8651,4 @@ export {
8636
8651
  managerInstallSystemUnitCommand,
8637
8652
  managerUninstallSystemUnitCommand
8638
8653
  };
8639
- //# sourceMappingURL=chunk-ZBQ4C6EA.js.map
8654
+ //# sourceMappingURL=chunk-GNRNPCJ6.js.map