@integrity-labs/agt-cli 0.28.743 → 0.28.744

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
@@ -41,7 +41,7 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-3YSX7UJQ.js";
44
+ } from "../chunk-LQMOIY3W.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.743" : "dev";
5470
+ var cliVersion = true ? "0.28.744" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6654,7 +6654,7 @@ function handleError(err) {
6654
6654
  }
6655
6655
 
6656
6656
  // src/bin/agt.ts
6657
- var cliVersion2 = true ? "0.28.743" : "dev";
6657
+ var cliVersion2 = true ? "0.28.744" : "dev";
6658
6658
  var program = new Command();
6659
6659
  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");
6660
6660
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6430,7 +6430,7 @@ function exchangeFailureKind(err) {
6430
6430
  }
6431
6431
 
6432
6432
  // src/lib/api-client.ts
6433
- var agtCliVersion = true ? "0.28.743" : "dev";
6433
+ var agtCliVersion = true ? "0.28.744" : "dev";
6434
6434
  var lastConfigHash = null;
6435
6435
  function setConfigHash(hash) {
6436
6436
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10476,4 +10476,4 @@ export {
10476
10476
  managerInstallSystemUnitCommand,
10477
10477
  managerUninstallSystemUnitCommand
10478
10478
  };
10479
- //# sourceMappingURL=chunk-3YSX7UJQ.js.map
10479
+ //# sourceMappingURL=chunk-LQMOIY3W.js.map
@@ -57,7 +57,7 @@ import {
57
57
  safeWriteJsonAtomic,
58
58
  setConfigHash,
59
59
  tripClass
60
- } from "../chunk-3YSX7UJQ.js";
60
+ } from "../chunk-LQMOIY3W.js";
61
61
  import {
62
62
  getProjectDir as getProjectDir2,
63
63
  getReadyTasks,
@@ -5640,15 +5640,15 @@ var BoardTokenCache = class {
5640
5640
  return null;
5641
5641
  }
5642
5642
  this.counts.unchanged += 1;
5643
- if (typeof res.board_token === "string" && res.board_token.length > 0) {
5644
- this.entries.set(agentId, { token: res.board_token, rows: held.rows });
5643
+ if (typeof res.payload_token === "string" && res.payload_token.length > 0) {
5644
+ this.entries.set(agentId, { token: res.payload_token, rows: held.rows });
5645
5645
  }
5646
5646
  return held.rows;
5647
5647
  }
5648
5648
  this.counts.full += 1;
5649
5649
  const rows = res.items ?? [];
5650
- if (typeof res.board_token === "string" && res.board_token.length > 0) {
5651
- this.entries.set(agentId, { token: res.board_token, rows });
5650
+ if (typeof res.payload_token === "string" && res.payload_token.length > 0) {
5651
+ this.entries.set(agentId, { token: res.payload_token, rows });
5652
5652
  } else {
5653
5653
  this.entries.delete(agentId);
5654
5654
  }
@@ -5737,7 +5737,7 @@ function resolveConditionalResponse(wire, hasCachedBody) {
5737
5737
  if (wire.unchanged === true) {
5738
5738
  return hasCachedBody ? { use: "cached" } : { use: "no-body" };
5739
5739
  }
5740
- const token = wire.payload_hash;
5740
+ const token = wire.payload_token;
5741
5741
  return {
5742
5742
  use: "wire",
5743
5743
  // An empty string is rejected as well as a non-string: it would round-trip
@@ -13175,7 +13175,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13175
13175
  var lastVersionCheckAt = 0;
13176
13176
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13177
13177
  var lastResponsivenessProbeAt = 0;
13178
- var agtCliVersion = true ? "0.28.743" : "dev";
13178
+ var agtCliVersion = true ? "0.28.744" : "dev";
13179
13179
  function resolveBrewPath(execFileSync3) {
13180
13180
  try {
13181
13181
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -20452,7 +20452,7 @@ async function downloadMemories(agent, memoryDir, log2, { force, configDir }) {
20452
20452
  const quoted = lastMemoriesBody.get(agent.agent_id);
20453
20453
  let wire = await api.post("/host/memories", {
20454
20454
  agent_id: agent.agent_id,
20455
- ...quoted ? { known_hash: quoted.hash } : {}
20455
+ ...quoted ? { known_token: quoted.hash } : {}
20456
20456
  });
20457
20457
  memoriesFetchGate.markFetched(agent.agent_id, memoriesToken);
20458
20458
  let held = stillHeld(quoted, lastMemoriesBody.get(agent.agent_id));