@integrity-labs/agt-cli 0.28.316 → 0.28.317

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
@@ -38,7 +38,7 @@ import {
38
38
  success,
39
39
  table,
40
40
  warn
41
- } from "../chunk-J6H7R3Y4.js";
41
+ } from "../chunk-OYOZL3N4.js";
42
42
  import {
43
43
  CHANNEL_REGISTRY,
44
44
  DEFAULT_FRAMEWORK,
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
4826
4826
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4827
4827
  import chalk18 from "chalk";
4828
4828
  import ora16 from "ora";
4829
- var cliVersion = true ? "0.28.316" : "dev";
4829
+ var cliVersion = true ? "0.28.317" : "dev";
4830
4830
  async function fetchLatestVersion() {
4831
4831
  const host2 = getHost();
4832
4832
  if (!host2) return null;
@@ -5843,7 +5843,7 @@ function handleError(err) {
5843
5843
  }
5844
5844
 
5845
5845
  // src/bin/agt.ts
5846
- var cliVersion2 = true ? "0.28.316" : "dev";
5846
+ var cliVersion2 = true ? "0.28.317" : "dev";
5847
5847
  var program = new Command();
5848
5848
  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");
5849
5849
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -5900,7 +5900,7 @@ function requireHost() {
5900
5900
  }
5901
5901
 
5902
5902
  // src/lib/api-client.ts
5903
- var agtCliVersion = true ? "0.28.316" : "dev";
5903
+ var agtCliVersion = true ? "0.28.317" : "dev";
5904
5904
  var lastConfigHash = null;
5905
5905
  function setConfigHash(hash) {
5906
5906
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8278,4 +8278,4 @@ export {
8278
8278
  managerInstallSystemUnitCommand,
8279
8279
  managerUninstallSystemUnitCommand
8280
8280
  };
8281
- //# sourceMappingURL=chunk-J6H7R3Y4.js.map
8281
+ //# sourceMappingURL=chunk-OYOZL3N4.js.map
@@ -39,7 +39,7 @@ import {
39
39
  requireHost,
40
40
  safeWriteJsonAtomic,
41
41
  setConfigHash
42
- } from "../chunk-J6H7R3Y4.js";
42
+ } from "../chunk-OYOZL3N4.js";
43
43
  import {
44
44
  getProjectDir as getProjectDir2,
45
45
  getReadyTasks,
@@ -7087,7 +7087,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
7087
7087
  var lastVersionCheckAt = 0;
7088
7088
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
7089
7089
  var lastResponsivenessProbeAt = 0;
7090
- var agtCliVersion = true ? "0.28.316" : "dev";
7090
+ var agtCliVersion = true ? "0.28.317" : "dev";
7091
7091
  function resolveBrewPath(execFileSync2) {
7092
7092
  try {
7093
7093
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -16461,6 +16461,10 @@ import { createHash as createHash2, randomUUID as randomUUID2 } from "crypto";
16461
16461
  // src/slack-thread-store.ts
16462
16462
  import { mkdirSync as mkdirSync3, readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
16463
16463
  import { dirname as dirname2 } from "path";
16464
+ function isParticipatingThread(entry) {
16465
+ if (!entry) return false;
16466
+ return entry.bot_posted === true || entry.involvement === "mentioned" || entry.involvement === "started";
16467
+ }
16464
16468
  var FILE_VERSION = 1;
16465
16469
  var DEFAULT_TTL_DAYS = 30;
16466
16470
  var DEFAULT_MIN_INTERVAL_MS = 1e3;
@@ -20956,14 +20960,18 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
20956
20960
  mode: bindingMode,
20957
20961
  args: { inbound_id, channel, thread_ts, message_ts, proactive },
20958
20962
  registry: slackInboundRegistry,
20959
- // ENG-7409: the persisted bot_posted thread-participation signal (survives
20960
- // restart via loadThreadStore). A reply into a thread the agent has posted
20961
- // in is a legitimate follow-up, so it must not be flagged unknown_target
20962
- // even when no live inbound marker survives - this is what stops warn from
20963
- // nagging (and enforce from blocking) ordinary in-thread conversation.
20963
+ // ENG-7409 + ENG-7782: the persisted thread-participation signal (survives
20964
+ // restart via loadThreadStore). A reply into a thread the agent has posted in
20965
+ // (bot_posted) OR was @-mentioned into / owns the root of (involvement) is a
20966
+ // legitimate follow-up, so it must not be flagged unknown_target even when no
20967
+ // live inbound marker survives - this is what stops warn from nagging (and
20968
+ // enforce from blocking) ordinary in-thread conversation. Keying on bot_posted
20969
+ // ALONE previously deadlocked the FIRST reply into a mention-followed thread
20970
+ // (bot_posted is only set after a successful reply), which enforce blocked as
20971
+ // unknown_target - see isParticipatingThread.
20964
20972
  knownThread: (c, t) => {
20965
20973
  const k = buildThreadKey(c, t);
20966
- return !!k && !!trackedThreads.get(k)?.bot_posted;
20974
+ return !!k && isParticipatingThread(trackedThreads.get(k));
20967
20975
  }
20968
20976
  });
20969
20977
  recordReplyBindingClassification(SLACK_AGENT_DIR, "slack", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.316",
3
+ "version": "0.28.317",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {