@integrity-labs/agt-cli 0.10.3 → 0.10.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.
@@ -10,7 +10,7 @@ import {
10
10
  provisionStopHook,
11
11
  requireHost,
12
12
  resolveChannels
13
- } from "../chunk-6YGOQRAR.js";
13
+ } from "../chunk-CVQD6XGB.js";
14
14
  import {
15
15
  findTaskByTemplate,
16
16
  getProjectDir,
@@ -1530,7 +1530,18 @@ async function processAgent(agent, agentStates) {
1530
1530
  for (const artifact of artifacts) {
1531
1531
  const filePath = join(agentDir, artifact.relativePath);
1532
1532
  const newHash = sha256(artifact.content);
1533
- const existingHash = hashFile(filePath);
1533
+ let existingHash;
1534
+ if (artifact.relativePath === "CLAUDE.md") {
1535
+ try {
1536
+ const existing = readFileSync(filePath, "utf-8");
1537
+ const stripped = existing.replace(new RegExp(`${SKILLS_INDEX_START}[\\s\\S]*?${SKILLS_INDEX_END}`), "").trimEnd();
1538
+ existingHash = sha256(stripped);
1539
+ } catch {
1540
+ existingHash = null;
1541
+ }
1542
+ } else {
1543
+ existingHash = hashFile(filePath);
1544
+ }
1534
1545
  if (newHash !== existingHash) {
1535
1546
  changedFiles.push(artifact);
1536
1547
  }