forgedock 1.1.9 → 1.1.10

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.
Files changed (2) hide show
  1. package/bin/journey.mjs +18 -3
  2. package/package.json +1 -1
package/bin/journey.mjs CHANGED
@@ -1254,9 +1254,24 @@ export async function forge(ctx) {
1254
1254
  }
1255
1255
  }
1256
1256
  } else {
1257
- if (barShown) { w.write("\x1b[1A\x1b[2K"); barShown = false; }
1258
- w.write(` WARNING: ${rel} is a regular file — skipping (remove it manually to let ForgeDock manage it)\n`);
1259
- skipped++;
1257
+ // Regular file not in manifest — could be a copy from a pre-manifest
1258
+ // ForgeDock version, or a user-owned file. Content-compare: if it
1259
+ // matches source exactly, adopt it into the manifest silently (it was
1260
+ // ours). If it differs, leave it untouched — it may be user-customized.
1261
+ let adopted = false;
1262
+ try {
1263
+ const [src, dst] = await Promise.all([readFile(file), readFile(target)]);
1264
+ if (src.equals(dst)) {
1265
+ recordCopy(rel);
1266
+ skipped++;
1267
+ adopted = true;
1268
+ }
1269
+ } catch { /* readFile failure — fall through to warning */ }
1270
+ if (!adopted) {
1271
+ if (barShown) { w.write("\x1b[1A\x1b[2K"); barShown = false; }
1272
+ w.write(` WARNING: ${rel} is a regular file — skipping (remove it manually to let ForgeDock manage it)\n`);
1273
+ skipped++;
1274
+ }
1260
1275
  }
1261
1276
  } catch (err) {
1262
1277
  if (err.code !== "ENOENT") throw err;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgedock",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Autonomous dev pipeline for Claude Code. GitHub as institutional memory — every issue, PR, and annotation survives context resets and makes the next agent smarter.",
5
5
  "bin": {
6
6
  "forgedock": "bin/forgedock.mjs"