Skip to content

fix(natives): resolve @claude-flow/security & aidefence when npm nests instead of hoisting - #101

Merged
pacphi merged 2 commits into
mainfrom
fix/claude-flow-package-presence-hoist
Jul 31, 2026
Merged

fix(natives): resolve @claude-flow/security & aidefence when npm nests instead of hoisting#101
pacphi merged 2 commits into
mainfrom
fix/claude-flow-package-presence-hoist

Conversation

@pacphi

@pacphi pacphi commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • securityPresent()/aidefencePresent() only checked the top level of ruflo/node_modules, producing a false WARN on the diagnostic panel when npm nests @claude-flow/security (or aidefence) under @claude-flow/cli/node_modules instead of hoisting it.
  • Adds claudeFlowPackagePresent() which checks both the top-level and known nested location, mirroring the existing rufloMemoryContexts() consumer-list pattern.
  • Refreshes 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) pass
  • pnpm test — full suite (1159 tests) passes
  • pnpm run check — typecheck + lint + markdown lint + build + test all pass

pacphi added 2 commits July 30, 2026 19:39
…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.
@pacphi
pacphi merged commit 58fdf55 into main Jul 31, 2026
11 checks passed
@pacphi
pacphi deleted the fix/claude-flow-package-presence-hoist branch July 31, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant