Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Merge pull request #3703 from ruvnet/fix/3698-plugin-beta-feedback

rUv090c88cf2ab7
diff --cc plugins/ruflo-mods/hooks/session.ts
index be577e196e,d463d41b16..313afac51d
--- a/plugins/ruflo-mods/hooks/session.ts
+++ b/plugins/ruflo-mods/hooks/session.ts
@@@ -44,14 -43,17 +44,18 @@@ function hasClassicStatusLine(settings
* hooks through the process environment; register `/ruflo-mods`. Any failure
* leaves the mod owning nothing, so every classic hook keeps running.
*/
-export function registerSession(on: On, state: ModState, options: ModOptions) {
+export function registerSession(on: On, state: ModState, options: ModOptions, guidance?: GuidanceHooks) {
on('session.start', async ($, e, next) => {
state.root = await $.session.root()
+ // A user-scoped install loads in every project. Existing Ruflo state is
+ // the opt-in boundary: a missing, unreadable or non-directory path must
+ // neither own project events nor be created by the display heartbeat.
+ const project = await $.fs.stat(under(state, '.claude-flow')).then(stat => stat.kind === 'dir').catch(() => false)
const settings = await $.settings.read()
- state.owned = new Set(ownedEvents(settings, await helperHonours($)))
+ state.owned = new Set(project ? ownedEvents(settings, await helperHonours($)) : [])
await $.env.set('RUFLO_MODS_OWNS', state.owned.size ? [...state.owned].join(',') : undefined)
state.statusLine = options.statusLine && !hasClassicStatusLine(settings)
+ guidance?.start()
redraw(state)
await $.command
.register({ name: 'ruflo-mods', description: 'Same as /ruflo mods: what this session routed, recorded and tightened' })