wogiflow 2.5.2 → 2.5.3
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/lib/workspace.js +14 -0
- package/package.json +1 -1
package/lib/workspace.js
CHANGED
|
@@ -991,6 +991,20 @@ async function initWorkspace(args) {
|
|
|
991
991
|
console.log('');
|
|
992
992
|
console.log('── Setting up workspace channels ────────────\n');
|
|
993
993
|
generateMemberMcpConfigs(existingWorkspaceRoot, existingConfig);
|
|
994
|
+
|
|
995
|
+
// Regenerate CLAUDE.md with channel-aware instructions
|
|
996
|
+
const manifestPath = path.join(existingWorkspaceRoot, WORKSPACE_DIR, 'state', 'workspace-manifest.json');
|
|
997
|
+
try {
|
|
998
|
+
if (fs.existsSync(manifestPath)) {
|
|
999
|
+
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf-8'));
|
|
1000
|
+
const claudeMd = generateWorkspaceClaudeMd(existingConfig, manifest);
|
|
1001
|
+
fs.writeFileSync(path.join(existingWorkspaceRoot, 'CLAUDE.md'), claudeMd);
|
|
1002
|
+
console.log(' ✓ CLAUDE.md (regenerated with channel dispatch instructions)');
|
|
1003
|
+
}
|
|
1004
|
+
} catch (_err) {
|
|
1005
|
+
console.log(' ⚠ Could not regenerate CLAUDE.md (run `flow workspace sync` to update)');
|
|
1006
|
+
}
|
|
1007
|
+
|
|
994
1008
|
console.log('');
|
|
995
1009
|
console.log('Channels enabled! Run `flow workspace start` from a member repo to begin.');
|
|
996
1010
|
return;
|