@integrity-labs/agt-cli 0.28.116 → 0.28.117

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.
@@ -22,7 +22,7 @@ import {
22
22
  resolveConnectivityProbe,
23
23
  worseConnectivityOutcome,
24
24
  wrapScheduledTaskPrompt
25
- } from "./chunk-63VABDNF.js";
25
+ } from "./chunk-4GZLRVHO.js";
26
26
 
27
27
  // ../../packages/core/dist/integrations/registry.js
28
28
  var INTEGRATION_REGISTRY = [
@@ -5270,18 +5270,25 @@ function provisionOrientHook(codeName) {
5270
5270
  "# details above \u2014 nothing else will ever re-deliver.",
5271
5271
  "# ENG-6540: resolve EFFECTIVE channel-replay the same way",
5272
5272
  "# resolveHostBooleanFlag does post-ENG-6503 (env override > manager flags",
5273
- "# cache > off), so a CENTRAL flag flip (no env var set) still picks the",
5274
- "# re-delivery copy \u2014 otherwise a flag-only flip leaves this reading the",
5275
- '# unset env, prints "act on the queue now", and the agent double-replies',
5276
- "# (answers from the details AND replay re-delivers).",
5277
- "REPLAY_ON=false",
5273
+ "# cache > compiled default), so a CENTRAL flag flip (no env var set) still",
5274
+ "# picks the right copy - otherwise a flag-only flip leaves this reading the",
5275
+ "# unset env, prints the wrong instruction, and the agent double-replies",
5276
+ "# (answers from the details AND replay re-delivers) or drops a message.",
5277
+ "# ENG-6683: the compiled default is true (replay is permanently enabled",
5278
+ "# fleet-wide); it must match channelReplayEnabled()'s default so the two",
5279
+ '# never disagree. Only an explicit cache "false" (or env off) turns it off.',
5280
+ "REPLAY_ON=true",
5278
5281
  'case "${AGT_CHANNEL_REPLAY_ENABLED:-}" in',
5279
5282
  " true|1|yes|on) REPLAY_ON=true ;;",
5280
5283
  " false|0|no|off) REPLAY_ON=false ;;",
5281
5284
  " *)",
5285
+ " # No env override: the heartbeat-cache value wins if present, else the",
5286
+ " # compiled default (true). Read WITHOUT jq's // operator - `false // x`",
5287
+ " # collapses a boolean false to the alternative, so an explicit cache",
5288
+ ' # "false" (the kill switch) would be indistinguishable from "absent".',
5282
5289
  ' FLAGS_CACHE="$(dirname "$AGENT_DIR")/flags-cache.json"',
5283
- ` if [ -f "$FLAGS_CACHE" ] && [ "$(jq -r '.flags["channel-replay"] // empty' "$FLAGS_CACHE" 2>/dev/null || true)" = "true" ]; then`,
5284
- " REPLAY_ON=true",
5290
+ ` if [ -f "$FLAGS_CACHE" ] && [ "$(jq -r '.flags["channel-replay"]' "$FLAGS_CACHE" 2>/dev/null || echo null)" = "false" ]; then`,
5291
+ " REPLAY_ON=false",
5285
5292
  " fi",
5286
5293
  " ;;",
5287
5294
  "esac",
@@ -7625,7 +7632,7 @@ function requireHost() {
7625
7632
  }
7626
7633
 
7627
7634
  // src/lib/api-client.ts
7628
- var agtCliVersion = true ? "0.28.116" : "dev";
7635
+ var agtCliVersion = true ? "0.28.117" : "dev";
7629
7636
  var lastConfigHash = null;
7630
7637
  function setConfigHash(hash) {
7631
7638
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8922,4 +8929,4 @@ export {
8922
8929
  managerInstallSystemUnitCommand,
8923
8930
  managerUninstallSystemUnitCommand
8924
8931
  };
8925
- //# sourceMappingURL=chunk-HTZD2336.js.map
8932
+ //# sourceMappingURL=chunk-L232TEQA.js.map