@integrity-labs/agt-cli 0.27.16 → 0.27.18

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.
@@ -15,7 +15,7 @@ import {
15
15
  provisionOrientHook,
16
16
  provisionStopHook,
17
17
  requireHost
18
- } from "../chunk-6D55CCVZ.js";
18
+ } from "../chunk-CDMAMIVX.js";
19
19
  import {
20
20
  getProjectDir as getProjectDir2,
21
21
  getReadyTasks,
@@ -3166,7 +3166,7 @@ var cachedFrameworkVersion = null;
3166
3166
  var lastVersionCheckAt = 0;
3167
3167
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
3168
3168
  var lastResponsivenessProbeAt = 0;
3169
- var agtCliVersion = true ? "0.27.16" : "dev";
3169
+ var agtCliVersion = true ? "0.27.18" : "dev";
3170
3170
  function resolveBrewPath(execFileSync4) {
3171
3171
  try {
3172
3172
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -4975,14 +4975,16 @@ async function processAgent(agent, agentStates) {
4975
4975
  } : void 0;
4976
4976
  const peersForHash = channelId === "telegram" ? extractCharterTelegramPeers(refreshData.charter?.raw_content ?? "", gateContext) : channelId === "slack" ? extractCharterSlackPeers(refreshData.charter?.raw_content ?? "", gateContext) : null;
4977
4977
  const sessionModeForHash = refreshData.agent.session_mode;
4978
- const CHANNEL_WRITE_VERSION = 5;
4978
+ const senderPolicyForHash = refreshData.sender_policy ?? null;
4979
+ const CHANNEL_WRITE_VERSION = 6;
4979
4980
  const configHash = createHash3("sha256").update(
4980
4981
  canonicalJson({
4981
4982
  writeVersion: CHANNEL_WRITE_VERSION,
4982
4983
  config: entry.config,
4983
4984
  team: teamSettingsForHash,
4984
4985
  peers: peersForHash,
4985
- sessionMode: sessionModeForHash ?? null
4986
+ sessionMode: sessionModeForHash ?? null,
4987
+ senderPolicy: senderPolicyForHash
4986
4988
  })
4987
4989
  ).digest("hex");
4988
4990
  const cacheKey = `${agent.agent_id}:${channelId}`;
@@ -5008,6 +5010,7 @@ async function processAgent(agent, agentStates) {
5008
5010
  const telegramPeerDisabled = channelId === "telegram" ? peerDisabledMode === "all" : void 0;
5009
5011
  const telegramPeers = channelId === "telegram" ? extractCharterTelegramPeers(refreshData.charter?.raw_content ?? "", gateContext) : void 0;
5010
5012
  const slackPeers = channelId === "slack" ? extractCharterSlackPeers(refreshData.charter?.raw_content ?? "", gateContext) : void 0;
5013
+ const senderPolicyForCall = channelId === "slack" || channelId === "msteams" ? refreshData.sender_policy ?? void 0 : void 0;
5011
5014
  frameworkAdapter.writeChannelCredentials(
5012
5015
  agent.code_name,
5013
5016
  channelId,
@@ -5019,7 +5022,8 @@ async function processAgent(agent, agentStates) {
5019
5022
  peerDisabled,
5020
5023
  telegramPeers,
5021
5024
  slackPeers,
5022
- agentTimezone
5025
+ agentTimezone,
5026
+ senderPolicy: senderPolicyForCall
5023
5027
  }
5024
5028
  );
5025
5029
  agentState.knownChannelConfigHashes.set(cacheKey, configHash);