@integrity-labs/agt-cli 0.14.2 → 0.14.4
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
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
resolveChannels,
|
|
33
33
|
serializeManifestForSlackCli,
|
|
34
34
|
setActiveTeam
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-UZVDDDH2.js";
|
|
36
36
|
|
|
37
37
|
// src/bin/agt.ts
|
|
38
38
|
import { join as join11 } from "path";
|
|
@@ -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.
|
|
3720
|
+
var cliVersion = true ? "0.14.4" : "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.
|
|
4169
|
+
var cliVersion2 = true ? "0.14.4" : "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) => {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolveChannels,
|
|
19
19
|
resolveDmTarget,
|
|
20
20
|
wrapScheduledTaskPrompt
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-UZVDDDH2.js";
|
|
22
22
|
import {
|
|
23
23
|
findTaskByTemplate,
|
|
24
24
|
getProjectDir,
|
|
@@ -2151,9 +2151,9 @@ async function processAgent(agent, agentStates) {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
lastProvisionAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
2153
2153
|
knownVersions.set(agent.agent_id, { charterVersion, toolsVersion });
|
|
2154
|
-
const
|
|
2154
|
+
const trackedFiles2 = frameworkAdapter.driftTrackedFiles();
|
|
2155
2155
|
const hashes = /* @__PURE__ */ new Map();
|
|
2156
|
-
for (const file of
|
|
2156
|
+
for (const file of trackedFiles2) {
|
|
2157
2157
|
const h = hashFile(join2(agentDir, file));
|
|
2158
2158
|
if (h) hashes.set(file, h);
|
|
2159
2159
|
}
|
|
@@ -2906,6 +2906,18 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
|
|
|
2906
2906
|
log(`Memory sync failed for '${agent.code_name}': ${err.message}`);
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
+
const trackedFiles = frameworkAdapter.driftTrackedFiles();
|
|
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
|
+
}
|
|
2916
|
+
for (const file of trackedFiles) {
|
|
2917
|
+
const h = hashFile(join2(agentDir, file));
|
|
2918
|
+
if (h) hashes.set(file, h);
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2909
2921
|
agentStates.push({
|
|
2910
2922
|
agentId: agent.agent_id,
|
|
2911
2923
|
codeName: agent.code_name,
|