@integrity-labs/agt-cli 0.28.71 → 0.28.72

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-4FLPEG4D.js";
40
+ } from "../chunk-IL4CR6YM.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -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.71" : "dev";
4780
+ var cliVersion = true ? "0.28.72" : "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.71" : "dev";
5794
+ var cliVersion2 = true ? "0.28.72" : "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) => {
@@ -5046,8 +5046,25 @@ function provisionOrientHook(codeName) {
5046
5046
  "# answered. Replay-enabled hosts get re-delivery (answering from the",
5047
5047
  "# details too would double-reply); replay-off hosts must act on the",
5048
5048
  "# details above \u2014 nothing else will ever re-deliver.",
5049
+ "# ENG-6540: resolve EFFECTIVE channel-replay the same way",
5050
+ "# resolveHostBooleanFlag does post-ENG-6503 (env override > manager flags",
5051
+ "# cache > off), so a CENTRAL flag flip (no env var set) still picks the",
5052
+ "# re-delivery copy \u2014 otherwise a flag-only flip leaves this reading the",
5053
+ '# unset env, prints "act on the queue now", and the agent double-replies',
5054
+ "# (answers from the details AND replay re-delivers).",
5055
+ "REPLAY_ON=false",
5056
+ 'case "${AGT_CHANNEL_REPLAY_ENABLED:-}" in',
5057
+ " true|1|yes|on) REPLAY_ON=true ;;",
5058
+ " false|0|no|off) REPLAY_ON=false ;;",
5059
+ " *)",
5060
+ ' FLAGS_CACHE="$(dirname "$AGENT_DIR")/flags-cache.json"',
5061
+ ` if [ -f "$FLAGS_CACHE" ] && [ "$(jq -r '.flags["channel-replay"] // empty' "$FLAGS_CACHE" 2>/dev/null || true)" = "true" ]; then`,
5062
+ " REPLAY_ON=true",
5063
+ " fi",
5064
+ " ;;",
5065
+ "esac",
5049
5066
  'if [ "$pending_total" -gt 0 ]; then',
5050
- ' if [ "${AGT_CHANNEL_REPLAY_ENABLED:-}" = "true" ] || [ "${AGT_CHANNEL_REPLAY_ENABLED:-}" = "1" ]; then',
5067
+ ' if [ "$REPLAY_ON" = "true" ]; then',
5051
5068
  ' echo "Respond \\"Ready.\\" once. The queued messages above will be re-delivered to you by the channel server within a few minutes \u2014 answer each as it arrives (acknowledge before tool use). Do not reply from the queue details directly; wait for the re-delivery."',
5052
5069
  " else",
5053
5070
  ` echo "Respond \\"Ready.\\" once, then immediately work through the queued messages above, oldest first \u2014 they are real user messages from before this session started and will NOT be re-delivered. Use the addressing ids with the matching channel reply tool (slack.reply with channel + thread_ts, telegram.reply with chat_id, etc.). If a queue detail lacks the message content, first try the channel's thread/history tools to read the conversation (Slack threads can be re-read); only if the content is truly unrecoverable, say so honestly in your reply and ask the user to resend."`,
@@ -7347,7 +7364,7 @@ function requireHost() {
7347
7364
  }
7348
7365
 
7349
7366
  // src/lib/api-client.ts
7350
- var agtCliVersion = true ? "0.28.71" : "dev";
7367
+ var agtCliVersion = true ? "0.28.72" : "dev";
7351
7368
  var lastConfigHash = null;
7352
7369
  function setConfigHash(hash) {
7353
7370
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8643,4 +8660,4 @@ export {
8643
8660
  managerInstallSystemUnitCommand,
8644
8661
  managerUninstallSystemUnitCommand
8645
8662
  };
8646
- //# sourceMappingURL=chunk-4FLPEG4D.js.map
8663
+ //# sourceMappingURL=chunk-IL4CR6YM.js.map