@integrity-labs/agt-cli 0.28.550 → 0.28.552

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.
@@ -5608,7 +5608,7 @@ function exchangeFailureKind(err) {
5608
5608
  }
5609
5609
 
5610
5610
  // src/lib/api-client.ts
5611
- var agtCliVersion = true ? "0.28.550" : "dev";
5611
+ var agtCliVersion = true ? "0.28.552" : "dev";
5612
5612
  var lastConfigHash = null;
5613
5613
  function setConfigHash(hash) {
5614
5614
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8920,4 +8920,4 @@ export {
8920
8920
  managerInstallSystemUnitCommand,
8921
8921
  managerUninstallSystemUnitCommand
8922
8922
  };
8923
- //# sourceMappingURL=chunk-VSFKVITC.js.map
8923
+ //# sourceMappingURL=chunk-3R4LUCPB.js.map
@@ -53,7 +53,7 @@ import {
53
53
  safeWriteJsonAtomic,
54
54
  setConfigHash,
55
55
  tripClass
56
- } from "../chunk-VSFKVITC.js";
56
+ } from "../chunk-3R4LUCPB.js";
57
57
  import {
58
58
  getProjectDir as getProjectDir2,
59
59
  getReadyTasks,
@@ -6839,6 +6839,16 @@ function classifyPeerMessage(msg, cfg, self) {
6839
6839
  }
6840
6840
  const peer = cfg.peers.find((p) => p.bot_user_id === msg.user);
6841
6841
  if (!peer) {
6842
+ const thirdParty = cfg.third_party_bots?.find((b) => b.bot_user_id === msg.user);
6843
+ if (thirdParty) {
6844
+ if (cfg.peer_disabled_mode === "cross_team_only") {
6845
+ return { kind: "drop", reason: "peer_disabled_cross_team" };
6846
+ }
6847
+ if (thirdParty.channel_ids.includes(msg.channel)) {
6848
+ return { kind: "bot-ingress", bot: thirdParty };
6849
+ }
6850
+ return { kind: "drop", reason: "third_party_channel_not_allowlisted" };
6851
+ }
6842
6852
  return { kind: "drop", reason: "unknown_peer" };
6843
6853
  }
6844
6854
  if (peer.gate_path === null) {
@@ -10502,7 +10512,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
10502
10512
  var lastVersionCheckAt = 0;
10503
10513
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
10504
10514
  var lastResponsivenessProbeAt = 0;
10505
- var agtCliVersion = true ? "0.28.550" : "dev";
10515
+ var agtCliVersion = true ? "0.28.552" : "dev";
10506
10516
  function resolveBrewPath(execFileSync2) {
10507
10517
  try {
10508
10518
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();