@anarchitects/governance-adapter-nx
v0.0.2
Published
Nx-specific Governance adapter that maps Nx workspace state into Governance Core contracts.
Readme
@anarchitects/governance-adapter-nx
@anarchitects/governance-adapter-nx is the Anarchitects Nx adapter boundary for the Governance ecosystem. It remains in anarchitects/anarchitecture-plugins because it owns Nx-specific workspace graph loading, metadata extraction, workspace normalization, Nx capability production, and mapping into published Governance Core contracts.
This package depends on the published @anarchitects/governance-core package. It must not depend on @anarchitects/nx-governance host internals, executors, generators, or plugin runtime modules. It also must not own standalone CLI behavior or TypeScript adapter behavior.
Public API
The public barrel intentionally exposes only adapter seams:
readWorkspaceGraphSnapshotreadWorkspaceGraphSnapshotFromJsonsummarizeWorkspaceGraphcreateNxCapabilityreadNxWorkspaceSnapshotcreateNxWorkspaceAdapterResultreadNxWorkspaceAdapterResultloadNxGovernanceWorkspaceContextresolveProjectTagsAndMetadata
Ownership Boundary
This package owns:
- Nx graph loading
- Nx metadata extraction
- CODEOWNERS-to-project ownership mapping
- Nx workspace normalization
- Nx-to-Core adapter result mapping
capability:nxproduction
This package does not own:
@anarchitects/nx-governancehost runtime orchestration- executors
- generators
- Project Crystal inference
- plugin runtime internals
Those remain in @anarchitects/nx-governance.
The split-boundary cleanup and release sequencing are tracked separately in Plugins #394 and #388.
Installation
Consumers should install the host package:
nx add @anarchitects/nx-governanceThe host package remains the user-facing Nx product surface. This adapter boundary exists so the host can consume a dedicated published Nx adapter package without embedding adapter implementation details.
