@integrity-labs/agt-cli 0.10.28 → 0.10.29
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-
|
|
13
|
+
} from "../chunk-6FGQFBJU.js";
|
|
14
14
|
import {
|
|
15
15
|
findTaskByTemplate,
|
|
16
16
|
getProjectDir,
|
|
@@ -1681,18 +1681,24 @@ async function processAgent(agent, agentStates) {
|
|
|
1681
1681
|
mkdirSync(agentDir, { recursive: true });
|
|
1682
1682
|
for (const artifact of artifacts) {
|
|
1683
1683
|
const filePath = join2(agentDir, artifact.relativePath);
|
|
1684
|
-
const newHash = sha256(artifact.content);
|
|
1685
1684
|
let existingHash;
|
|
1685
|
+
let newHash;
|
|
1686
1686
|
if (artifact.relativePath === "CLAUDE.md") {
|
|
1687
|
+
const stripDynamicSections = (s) => {
|
|
1688
|
+
let out = s.replace(new RegExp(`${SKILLS_INDEX_START}[\\s\\S]*?${SKILLS_INDEX_END}`), "");
|
|
1689
|
+
out = out.replace(/## Integrations[\s\S]*?(?=## Rules)/, "");
|
|
1690
|
+
return out.trimEnd();
|
|
1691
|
+
};
|
|
1692
|
+
newHash = sha256(stripDynamicSections(artifact.content));
|
|
1687
1693
|
try {
|
|
1688
1694
|
const projectClaudeMd = join2(config.configDir, agent.code_name, "project", "CLAUDE.md");
|
|
1689
1695
|
const existing = readFileSync(projectClaudeMd, "utf-8");
|
|
1690
|
-
|
|
1691
|
-
existingHash = sha256(stripped);
|
|
1696
|
+
existingHash = sha256(stripDynamicSections(existing));
|
|
1692
1697
|
} catch {
|
|
1693
1698
|
existingHash = null;
|
|
1694
1699
|
}
|
|
1695
1700
|
} else {
|
|
1701
|
+
newHash = sha256(artifact.content);
|
|
1696
1702
|
existingHash = hashFile(filePath);
|
|
1697
1703
|
}
|
|
1698
1704
|
if (newHash !== existingHash) {
|