@integrity-labs/agt-cli 0.19.20 → 0.19.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.
@@ -22,7 +22,7 @@ import {
22
22
  resolveChannels,
23
23
  resolveDmTarget,
24
24
  wrapScheduledTaskPrompt
25
- } from "../chunk-IWFXAB4O.js";
25
+ } from "../chunk-5WDQ5G5M.js";
26
26
  import {
27
27
  findTaskByTemplate,
28
28
  getProjectDir,
@@ -1991,7 +1991,7 @@ function clearAgentCaches(agentId, codeName) {
1991
1991
  var cachedFrameworkVersion = null;
1992
1992
  var lastVersionCheckAt = 0;
1993
1993
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
1994
- var agtCliVersion = true ? "0.19.20" : "dev";
1994
+ var agtCliVersion = true ? "0.19.21" : "dev";
1995
1995
  function resolveBrewPath(execFileSync3) {
1996
1996
  try {
1997
1997
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -3513,7 +3513,15 @@ async function processAgent(agent, agentStates) {
3513
3513
  crossTeamPeerIntraOrg: crossTeamData.organization?.cross_team_peer_intra_org ?? "unrestricted"
3514
3514
  } : void 0;
3515
3515
  const peersForHash = channelId === "telegram" ? extractCharterTelegramPeers(refreshData.charter?.raw_content ?? "", gateContext) : null;
3516
- const configHash = createHash2("sha256").update(canonicalJson({ config: entry.config, team: teamSettingsForHash, peers: peersForHash })).digest("hex");
3516
+ const CHANNEL_WRITE_VERSION = 2;
3517
+ const configHash = createHash2("sha256").update(
3518
+ canonicalJson({
3519
+ writeVersion: CHANNEL_WRITE_VERSION,
3520
+ config: entry.config,
3521
+ team: teamSettingsForHash,
3522
+ peers: peersForHash
3523
+ })
3524
+ ).digest("hex");
3517
3525
  const cacheKey = `${agent.agent_id}:${channelId}`;
3518
3526
  let onDiskPresent = true;
3519
3527
  try {