@integrity-labs/agt-cli 0.28.20 → 0.28.22

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-U6IPQT2J.js";
36
+ } from "../chunk-O2QKTUOE.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-3HZSMDEW.js";
63
+ } from "../chunk-SN2G4B2Z.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.20" : "dev";
4776
+ var cliVersion = true ? "0.28.22" : "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.20" : "dev";
5699
+ var cliVersion2 = true ? "0.28.22" : "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) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeModelAlias,
3
3
  isClaudeFastMode
4
- } from "./chunk-3HZSMDEW.js";
4
+ } from "./chunk-SN2G4B2Z.js";
5
5
  import {
6
6
  reapOrphanChannelMcps
7
7
  } from "./chunk-XWVM4KPK.js";
@@ -1487,4 +1487,4 @@ export {
1487
1487
  stopAllSessionsAndWait,
1488
1488
  getProjectDir
1489
1489
  };
1490
- //# sourceMappingURL=chunk-BKO5PJZ7.js.map
1490
+ //# sourceMappingURL=chunk-IHPN6AX7.js.map
@@ -14,7 +14,7 @@ import {
14
14
  registerFramework,
15
15
  resolveAvatarEnvUrl,
16
16
  wrapScheduledTaskPrompt
17
- } from "./chunk-3HZSMDEW.js";
17
+ } from "./chunk-SN2G4B2Z.js";
18
18
 
19
19
  // ../../packages/core/dist/integrations/registry.js
20
20
  var INTEGRATION_REGISTRY = [
@@ -4558,7 +4558,23 @@ function provisionStopHook(codeName) {
4558
4558
  ' local channel="$1" thread_ts="$2"',
4559
4559
  ' if [ -z "$channel" ]; then return; fi',
4560
4560
  " # If the agent DID call slack.reply this turn, no recovery needed.",
4561
- ` if echo "$TOOL_NAMES" | grep -qE '^slack\\.reply$'; then return; fi`,
4561
+ " # ENG-6387: match the namespaced transcript form mcp__slack__slack_reply",
4562
+ " # (Claude Code rewrites the registered `slack.reply` tool name to",
4563
+ " # `mcp__slack__slack_reply`). The bare `^slack\\.reply$` never matched a",
4564
+ " # real transcript, so this same-turn guard was dead in prod and only",
4565
+ " # masked by the MCP-side marker clear.",
4566
+ ` if echo "$TOOL_NAMES" | grep -qE '(^|__)slack[._]reply$'; then return; fi`,
4567
+ " # ENG-6387 \u2014 correlation + fail-silent. The single-turn check above is",
4568
+ " # not enough: a reply and trailing narration can straddle turns. If the",
4569
+ " # agent has slack.replied to a DIFFERENT thread than THIS marker anywhere",
4570
+ " # in the recent window, it is actively conversing elsewhere and its",
4571
+ " # trailing text is NOT a reliably-correlated ghost of this inbound \u2014",
4572
+ " # recovering it posts mis-correlated text (koda 2026-06-12: a DM marker",
4573
+ " # recovered with unrelated kickoff-thread narration). Stay silent: a",
4574
+ " # silent gap the operator re-pings beats wrong content that poisons trust.",
4575
+ " local replied_other",
4576
+ ` replied_other=$(tail -400 "$TRANSCRIPT_PATH" 2>/dev/null | jq -s --arg th "$thread_ts" '[ .[] | select((.type // .role)=="assistant") | (.message.content // .content // []) | (if type=="array" then . else [] end) | .[] | select((.type=="tool_use") and ((.name|tostring)|test("slack[._]reply$")) and (((.input.thread_ts // .input.message_ts // "")) as $t | ($t != $th and $t != ""))) ] | length' 2>/dev/null || true)`,
4577
+ ' if [ "${replied_other:-0}" -gt 0 ] 2>/dev/null; then return; fi',
4562
4578
  " # Find any marker for this channel+thread (in busy threads multiple",
4563
4579
  " # message_ts entries can be pending \u2014 recover the oldest, that's the",
4564
4580
  " # one closest to firing the timeout).",
@@ -8275,4 +8291,4 @@ export {
8275
8291
  managerInstallSystemUnitCommand,
8276
8292
  managerUninstallSystemUnitCommand
8277
8293
  };
8278
- //# sourceMappingURL=chunk-U6IPQT2J.js.map
8294
+ //# sourceMappingURL=chunk-O2QKTUOE.js.map