burhan-mop 0.1.4 → 0.1.5

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.
@@ -112,7 +112,16 @@ function copyPath(entry, source, target, force = false) {
112
112
  if (!existsSync(source)) return { entry, source, target, status: 'missing-source' };
113
113
  if (existsSync(target) && !force) return { entry, source, target, status: 'skipped-existing' };
114
114
  mkdirSync(dirname(target), { recursive: true });
115
- cpSync(source, target, { recursive: true, force: true });
115
+
116
+ const filterFn = (src, dest) => {
117
+ // Never overwrite an existing STATE.json, even during --force
118
+ if (src.endsWith('STATE.json') && existsSync(dest)) {
119
+ return false;
120
+ }
121
+ return true;
122
+ };
123
+
124
+ cpSync(source, target, { recursive: true, force: true, filter: filterFn });
116
125
  return { entry, source, target, status: 'installed' };
117
126
  }
118
127
 
package/README.bm.md CHANGED
@@ -142,7 +142,7 @@ dan merge hanya bila workflow selamat.
142
142
  | --- | --- |
143
143
  | npm package | [`burhan-mop`](https://www.npmjs.com/package/burhan-mop) |
144
144
  | command latest | `npx burhan-mop install` |
145
- | GitHub release | [`v0.1.4`](https://github.com/BURHANDEV-ENTERPRISE/BURHAN-MOP/releases/tag/v0.1.4) |
145
+ | GitHub release | [`v0.1.5`](https://github.com/BURHANDEV-ENTERPRISE/BURHAN-MOP/releases/tag/v0.1.5) |
146
146
  | Node | `>=20` |
147
147
 
148
148
  ## Links
package/README.md CHANGED
@@ -141,7 +141,7 @@ and merges only when the workflow is safe.
141
141
  | --- | --- |
142
142
  | npm package | [`burhan-mop`](https://www.npmjs.com/package/burhan-mop) |
143
143
  | latest command | `npx burhan-mop install` |
144
- | GitHub release | [`v0.1.4`](https://github.com/BURHANDEV-ENTERPRISE/BURHAN-MOP/releases/tag/v0.1.4) |
144
+ | GitHub release | [`v0.1.5`](https://github.com/BURHANDEV-ENTERPRISE/BURHAN-MOP/releases/tag/v0.1.5) |
145
145
  | Node | `>=20` |
146
146
 
147
147
  ## Links
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "burhan-mop",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "MOP portable agent memory core installer and CLI.",
5
5
  "type": "module",
6
6
  "author": "BURHANDEV ENTERPRISE",