How aperip-daedalus-foundation/ahcl-kit works
AHCL Kit is a cross-platform Rust CLI for initializing and maintaining AHCL project materials. The user workflow is to create and validate project configuration, initialize project/license state, resolve configured ecosystem dependencies, generate or check materials, and explicitly generate dependency or third-party evidence. The README documents Cargo and JavaScript lockfile support and dry-run/batch operation. Relationships inside unsampled areas are omitted unless the README or SOURCE INDEX supports them; paths identify the implementing modules or their enclosing subsystem directories.
Main entry points: dispatch.rs AHCL commands · adapter.rs JavaScript adapter · project.rs Project planning · parser.rs Config parser
Components 31
CLI workflow
- AHCL commands
crates/ahcl-kit-cli/src/dispatch.rs - Project discovery
crates/ahcl-kit-cli/src/discovery.rs - Batch commands
crates/ahcl-kit-cli/src/batch.rs - Command output
crates/ahcl-kit-cli/src/output.rs
Configuration
- Config parser
crates/ahcl-kit-config/src/parser.rs - Config schema
crates/ahcl-kit-config/src/schema.rs - Config bindings
crates/ahcl-kit-config/src/binding.rs - Config AST
crates/ahcl-kit-config/src/ast.rs - Config commands
crates/ahcl-kit-config/src
Dependency resolution
- Cargo adapter
crates/ahcl-kit-cargo/src/adapter.rs - Cargo settings
crates/ahcl-kit-cargo/src/settings.rs - Cargo graph
crates/ahcl-kit-cargo/src/graph.rs - Cargo evidence recovery
crates/ahcl-kit-cargo/src/upstream.rs - Upstream manifests
crates/ahcl-kit-cargo/src/upstream_manifest.rs - Upstream URL checks
crates/ahcl-kit-cargo/src/upstream_url.rs - JavaScript adapter
crates/ahcl-kit-javascript/src/adapter.rs - Normalized JS graph
crates/ahcl-kit-javascript/src/model.rs - npm lockfiles
crates/ahcl-kit-javascript/src/npm.rs - pnpm lockfiles
crates/ahcl-kit-javascript/src/pnpm.rs - Yarn lockfiles
crates/ahcl-kit-javascript/src/yarn.rs - Bun lockfiles
crates/ahcl-kit-javascript/src/bun.rs
Materials and evidence
- Project planning
crates/ahcl-kit-materials/src/project.rs - Document rendering
crates/ahcl-kit-materials/src/render.rs - Material application
crates/ahcl-kit-materials/src/apply.rs - Dependency report
crates/ahcl-kit-materials/src/dependencies.rs - Third-party evidence
crates/ahcl-kit-materials/src/third_party.rs
Shared services
- License download
crates/ahcl-kit-license/src/client.rs - License verification
crates/ahcl-kit-license/src/verify.rs - Safe filesystem
crates/ahcl-kit-fs/src/lib.rs
Other components
- Project maintainer
- Official license service
Connections 29
- Project maintainer → AHCL commands: runs commands
README.md - AHCL commands → Config commands: manages config
README.md - AHCL commands → Project planning: generates or checks
README.md - AHCL commands → License download: syncs license
README.md - AHCL commands → Dependency report: generates report
README.md - AHCL commands → Third-party evidence: generates evidence
README.md - AHCL commands → Project discovery: discovers project
README.md - AHCL commands → Batch commands: accepts batch input
README.md - Config parser → Config AST: builds AST
crates/ahcl-kit-config/src/parser.rs - Config parser → Config schema: uses schema
crates/ahcl-kit-config/src/parser.rs - Config parser → Config bindings: uses bindings
crates/ahcl-kit-config/src/parser.rs - Project planning → Document rendering: renders documents
crates/ahcl-kit-materials/src/project.rs - Project planning → Material application: plans writes
crates/ahcl-kit-materials/src/lib.rs - Project planning → Dependency report: includes report
crates/ahcl-kit-materials/src/lib.rs - Project planning → Third-party evidence: uses inventory
crates/ahcl-kit-materials/src/lib.rs - Third-party evidence → Dependency report: reads evidence
crates/ahcl-kit-materials/src/third_party.rs - Cargo adapter → Cargo settings: uses settings
crates/ahcl-kit-cargo/src/adapter.rs - Cargo adapter → Cargo graph: resolves graph
crates/ahcl-kit-cargo/src/adapter.rs - Cargo adapter → Cargo evidence recovery: recovers evidence
crates/ahcl-kit-cargo/src/adapter.rs - Cargo evidence recovery → Upstream manifests: checks manifests
crates/ahcl-kit-cargo/src/upstream.rs - Cargo evidence recovery → Upstream URL checks: checks URLs
crates/ahcl-kit-cargo/src/upstream.rs - JavaScript adapter → Normalized JS graph: normalizes graph
crates/ahcl-kit-javascript/src/adapter.rs - JavaScript adapter → npm lockfiles: parses npm
crates/ahcl-kit-javascript/src/adapter.rs - JavaScript adapter → pnpm lockfiles: parses pnpm
crates/ahcl-kit-javascript/src/adapter.rs - JavaScript adapter → Yarn lockfiles: parses Yarn
crates/ahcl-kit-javascript/src/adapter.rs - JavaScript adapter → Bun lockfiles: parses Bun
crates/ahcl-kit-javascript/src/adapter.rs - License download → Official license service: fetches license
crates/ahcl-kit-license/src/client.rs - License download → License verification: verifies response
crates/ahcl-kit-license/src/client.rs - Safe filesystem → Safe filesystem: provides safe I/O
crates/ahcl-kit-fs/src/lib.rs