@integrity-labs/agt-cli 0.14.4 → 0.14.5

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
@@ -3717,7 +3717,7 @@ import { execFileSync, execSync } from "child_process";
3717
3717
  import { existsSync as existsSync5, realpathSync } from "fs";
3718
3718
  import chalk20 from "chalk";
3719
3719
  import ora15 from "ora";
3720
- var cliVersion = true ? "0.14.4" : "dev";
3720
+ var cliVersion = true ? "0.14.5" : "dev";
3721
3721
  async function fetchLatestVersion() {
3722
3722
  const host2 = getHost();
3723
3723
  if (!host2) return null;
@@ -4166,7 +4166,7 @@ function handleError(err) {
4166
4166
  }
4167
4167
 
4168
4168
  // src/bin/agt.ts
4169
- var cliVersion2 = true ? "0.14.4" : "dev";
4169
+ var cliVersion2 = true ? "0.14.5" : "dev";
4170
4170
  var program = new Command();
4171
4171
  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");
4172
4172
  program.hook("preAction", (thisCommand) => {
@@ -2908,15 +2908,14 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
2908
2908
  }
2909
2909
  const trackedFiles = frameworkAdapter.driftTrackedFiles();
2910
2910
  if (trackedFiles.length > 0 && existsSync(agentDir)) {
2911
- let hashes = writtenHashes.get(agent.agent_id);
2912
- if (!hashes) {
2913
- hashes = /* @__PURE__ */ new Map();
2914
- writtenHashes.set(agent.agent_id, hashes);
2915
- }
2911
+ const hashes = /* @__PURE__ */ new Map();
2916
2912
  for (const file of trackedFiles) {
2917
2913
  const h = hashFile(join2(agentDir, file));
2918
2914
  if (h) hashes.set(file, h);
2919
2915
  }
2916
+ writtenHashes.set(agent.agent_id, hashes);
2917
+ } else {
2918
+ writtenHashes.delete(agent.agent_id);
2920
2919
  }
2921
2920
  agentStates.push({
2922
2921
  agentId: agent.agent_id,