@integrity-labs/agt-cli 0.28.524 → 0.28.525

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
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-QYQR4BWM.js";
43
+ } from "../chunk-NFBAZOKX.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -4834,7 +4834,7 @@ import { execFileSync, execSync } from "child_process";
4834
4834
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4835
4835
  import chalk18 from "chalk";
4836
4836
  import ora16 from "ora";
4837
- var cliVersion = true ? "0.28.524" : "dev";
4837
+ var cliVersion = true ? "0.28.525" : "dev";
4838
4838
  async function fetchLatestVersion() {
4839
4839
  const host2 = getHost();
4840
4840
  if (!host2) return null;
@@ -6006,7 +6006,7 @@ function handleError(err) {
6006
6006
  }
6007
6007
 
6008
6008
  // src/bin/agt.ts
6009
- var cliVersion2 = true ? "0.28.524" : "dev";
6009
+ var cliVersion2 = true ? "0.28.525" : "dev";
6010
6010
  var program = new Command();
6011
6011
  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");
6012
6012
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -5317,7 +5317,7 @@ function exchangeFailureKind(err) {
5317
5317
  }
5318
5318
 
5319
5319
  // src/lib/api-client.ts
5320
- var agtCliVersion = true ? "0.28.524" : "dev";
5320
+ var agtCliVersion = true ? "0.28.525" : "dev";
5321
5321
  var lastConfigHash = null;
5322
5322
  function setConfigHash(hash) {
5323
5323
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8629,4 +8629,4 @@ export {
8629
8629
  managerInstallSystemUnitCommand,
8630
8630
  managerUninstallSystemUnitCommand
8631
8631
  };
8632
- //# sourceMappingURL=chunk-QYQR4BWM.js.map
8632
+ //# sourceMappingURL=chunk-NFBAZOKX.js.map
@@ -53,7 +53,7 @@ import {
53
53
  safeWriteJsonAtomic,
54
54
  setConfigHash,
55
55
  tripClass
56
- } from "../chunk-QYQR4BWM.js";
56
+ } from "../chunk-NFBAZOKX.js";
57
57
  import {
58
58
  getProjectDir as getProjectDir2,
59
59
  getReadyTasks,
@@ -6448,6 +6448,11 @@ function isAppMentionEcho(evt, botUserId) {
6448
6448
  return false;
6449
6449
  return typeof evt.text === "string" && evt.text.includes(`<@${botUserId}>`);
6450
6450
  }
6451
+ function slackInboundDedupId(evt) {
6452
+ if (!evt.channel || !evt.ts)
6453
+ return null;
6454
+ return `${evt.channel}:${evt.ts}:${evt.type ?? "unknown"}`;
6455
+ }
6451
6456
  function extractAugmentedSlackLabel(evt) {
6452
6457
  if (evt.metadata?.event_type !== "augmented_agent_message")
6453
6458
  return null;
@@ -6866,7 +6871,7 @@ async function dispatchSlackInbound(event, ctx) {
6866
6871
  if (isAppMentionEcho(event, ctx.botUserId ?? null)) {
6867
6872
  return "dropped_echo";
6868
6873
  }
6869
- const dedupKey = event.channel && event.ts ? `${event.channel}:${event.ts}` : null;
6874
+ const dedupKey = slackInboundDedupId(event);
6870
6875
  if (dedupKey) {
6871
6876
  if (ctx.seen.has(dedupKey)) return "dropped_duplicate";
6872
6877
  ctx.seen.add(dedupKey);
@@ -10167,7 +10172,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
10167
10172
  var lastVersionCheckAt = 0;
10168
10173
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
10169
10174
  var lastResponsivenessProbeAt = 0;
10170
- var agtCliVersion = true ? "0.28.524" : "dev";
10175
+ var agtCliVersion = true ? "0.28.525" : "dev";
10171
10176
  function resolveBrewPath(execFileSync2) {
10172
10177
  try {
10173
10178
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -11597,7 +11602,7 @@ async function pollCycle() {
11597
11602
  collectResponsivenessProbes,
11598
11603
  collectPanelessActivityProbes,
11599
11604
  getResponsivenessIntervalMs
11600
- } = await import("../responsiveness-probe-KW7KQJUY.js");
11605
+ } = await import("../responsiveness-probe-MWTX6VNY.js");
11601
11606
  const probeIntervalMs = getResponsivenessIntervalMs();
11602
11607
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
11603
11608
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -11661,7 +11666,7 @@ async function pollCycle() {
11661
11666
  collectResponsivenessProbes,
11662
11667
  livePendingInboundOldestAgeSeconds,
11663
11668
  parkPendingInbound
11664
- } = await import("../responsiveness-probe-KW7KQJUY.js");
11669
+ } = await import("../responsiveness-probe-MWTX6VNY.js");
11665
11670
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
11666
11671
  const wedgeNow = /* @__PURE__ */ new Date();
11667
11672
  const liveAgents = agentState.persistentSessionAgents;