fix(natives): resolve @claude-flow/security & aidefence when npm nests instead of hoisting - #101
Merged
Merged
Conversation
…s instead of hoisting securityPresent()/aidefencePresent() only checked the top level of ruflo/node_modules, so a false WARN/fail could appear on a status panel when a version conflict left npm nesting the package under @claude-flow/cli/node_modules instead of hoisting it — the package was present, just not where the shallow check looked. Also refreshes package.json's description to reflect the multi-host (Claude/Codex/OpenCode) execution routing shipped through alpha.30.
…ptions Stuart Kerr's RuvNet Brain (github.com/stuinfla/ruvnet-brain) is a managed subsystem ak setup installs and ak sync keeps current, but it was missing from the prior-art credits and from the npm/GitHub-facing descriptions alongside ruflo and agentic-qe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
securityPresent()/aidefencePresent()only checked the top level ofruflo/node_modules, producing a false WARN on the diagnostic panel when npm nests@claude-flow/security(oraidefence) under@claude-flow/cli/node_modulesinstead of hoisting it.claudeFlowPackagePresent()which checks both the top-level and known nested location, mirroring the existingrufloMemoryContexts()consumer-list pattern.package.json's description to reflect the multi-host (Claude/Codex/OpenCode) execution routing shipped through alpha.30.Test plan
node --test tests/kit/natives.test.mjs— new hermetic regression tests (hoisted / nested-under-cli / absent) passpnpm test— full suite (1159 tests) passespnpm run check— typecheck + lint + markdown lint + build + test all pass