wogiflow 1.5.4 → 1.5.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.
- package/package.json +1 -1
- package/scripts/postinstall.js +23 -0
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -270,6 +270,24 @@ function copyScriptsFromPackage() {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Copy WogiFlow-managed .workflow/ subdirectories from package to project
|
|
275
|
+
* These are package-owned (bridges, templates, agents) and always overwritten on update.
|
|
276
|
+
* Without this, `npx flow bridge sync` fails because .workflow/bridges/ doesn't exist.
|
|
277
|
+
*/
|
|
278
|
+
function copyWorkflowManagedDirs() {
|
|
279
|
+
const managedDirs = ['bridges', 'templates', 'agents'];
|
|
280
|
+
|
|
281
|
+
for (const subdir of managedDirs) {
|
|
282
|
+
const src = path.join(PACKAGE_ROOT, '.workflow', subdir);
|
|
283
|
+
const dest = path.join(WORKFLOW_DIR, subdir);
|
|
284
|
+
|
|
285
|
+
if (fs.existsSync(src)) {
|
|
286
|
+
copyDir(src, dest, false);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
273
291
|
/**
|
|
274
292
|
* Check if we should be completely silent (CI only)
|
|
275
293
|
*/
|
|
@@ -301,6 +319,11 @@ function main() {
|
|
|
301
319
|
// This ensures scripts are updated when running npm install/update
|
|
302
320
|
copyScriptsFromPackage();
|
|
303
321
|
|
|
322
|
+
// Copy WogiFlow-managed .workflow/ subdirectories (bridges, templates, agents)
|
|
323
|
+
// These are needed for bridge sync, CLAUDE.md generation, and agent definitions.
|
|
324
|
+
// Always overwrite — these are package-managed, not user-customizable.
|
|
325
|
+
copyWorkflowManagedDirs();
|
|
326
|
+
|
|
304
327
|
// Create marker for AI to detect (unless already initialized)
|
|
305
328
|
createPendingSetupMarker();
|
|
306
329
|
|