djournal 0.9.0 → 0.9.1

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.
@@ -476,7 +476,7 @@ function copyRecord(sourceRoot, target, relative, oldRecord, harness) {
476
476
  const absolute = resolveWithin(target, relative);
477
477
  const current = readOptional(absolute);
478
478
  if (oldRecord) {
479
- if (current === null || sha256(current) !== oldRecord.installedHash) {
479
+ if (current === null || (sha256(current) !== oldRecord.installedHash && !current.equals(source))) {
480
480
  throw new InstallerError(`modified installed asset: ${relative}`, "ASSET_CONFLICT");
481
481
  }
482
482
  } else if (current !== null && !current.equals(source)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djournal",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Durable project memory for coding agents, stored as linked Markdown",
5
5
  "type": "commonjs",
6
6
  "bin": {