@integrity-labs/agt-cli 0.10.10 → 0.10.11

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.
@@ -10,7 +10,7 @@ import {
10
10
  provisionStopHook,
11
11
  requireHost,
12
12
  resolveChannels
13
- } from "../chunk-PZG4XPJV.js";
13
+ } from "../chunk-KZ7Y55HJ.js";
14
14
  import {
15
15
  findTaskByTemplate,
16
16
  getProjectDir,
@@ -945,11 +945,13 @@ function freePort(codeName) {
945
945
  saveGatewayPorts(ports);
946
946
  }
947
947
  }
948
- var STATE_FILE = join2(process.env["HOME"] ?? "/tmp", ".augmented", "manager-state.json");
948
+ function getStateFile() {
949
+ return join2(config?.configDir ?? join2(process.env["HOME"] ?? "/tmp", ".augmented"), "manager-state.json");
950
+ }
949
951
  function send(msg) {
950
952
  if (msg.type === "state-update") {
951
953
  try {
952
- writeFileSync(STATE_FILE, JSON.stringify(msg.state, null, 2));
954
+ writeFileSync(getStateFile(), JSON.stringify(msg.state, null, 2));
953
955
  } catch {
954
956
  }
955
957
  }