@integrity-labs/agt-cli 0.10.9 → 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.
- package/dist/bin/agt.js +101 -48
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-PZG4XPJV.js → chunk-KZ7Y55HJ.js} +4 -3
- package/dist/{chunk-PZG4XPJV.js.map → chunk-KZ7Y55HJ.js.map} +1 -1
- package/dist/lib/manager-worker.js +5 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
provisionStopHook,
|
|
11
11
|
requireHost,
|
|
12
12
|
resolveChannels
|
|
13
|
-
} from "../chunk-
|
|
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
|
-
|
|
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(
|
|
954
|
+
writeFileSync(getStateFile(), JSON.stringify(msg.state, null, 2));
|
|
953
955
|
} catch {
|
|
954
956
|
}
|
|
955
957
|
}
|