@integrity-labs/agt-cli 0.28.19 → 0.28.21

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeModelAlias,
3
3
  isClaudeFastMode
4
- } from "./chunk-6UXSC4TR.js";
4
+ } from "./chunk-3HZSMDEW.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-5DIMLYS5.js.map
1490
+ //# sourceMappingURL=chunk-BKO5PJZ7.js.map
@@ -14,7 +14,7 @@ import {
14
14
  registerFramework,
15
15
  resolveAvatarEnvUrl,
16
16
  wrapScheduledTaskPrompt
17
- } from "./chunk-6UXSC4TR.js";
17
+ } from "./chunk-3HZSMDEW.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-MGE73AKK.js.map
8294
+ //# sourceMappingURL=chunk-NGZVHSI3.js.map