How phyder-create/tool-flow works
tool-flow turns a user's natural-language request into a CLI command through intent matching, parameter extraction, IR normalization, tool selection, and template-based command construction. Its documented product capabilities cover image, PDF, and video operations, backed by JSON intent and tool catalogs. The sampled entry point establishes the runtime call order; parser, resolver, and builder excerpts show their respective catalog/config reads. The settings file mentioned by the resolver is absent from the supplied tree, so it is not represented.
Main entry points: main.py CLI entry · builder.py Command building · matcher.py Intent matching · resolver.py Tool resolution
Components 15
Command workflow
- CLI entry
main.py - Intent matching
core/matcher.py - Parameter parsing
core/parser.py - Supported extensions
config/supported_extension.py - IR construction
core/ir_builder.py - Tool resolution
core/resolver.py - Command building
core/builder.py
Operation catalogs
- Image operations
intents/image - PDF operations
intents/pdf - Video operations
intents/video
CLI integrations
- Image tool configs
tools/image - PDF tool configs
tools/pdf - Video tool configs
tools/video
Other components
- User
- CLI command
Connections 20
- User → CLI entry: enters request
README.md - CLI entry → Intent matching: matches intent
main.py - Intent matching → Parameter parsing: passes intent
main.py - Parameter parsing → Supported extensions: uses extensions
core/parser.py - Parameter parsing → IR construction: passes parameters
main.py - CLI entry → IR construction: builds IR
main.py - CLI entry → Tool resolution: resolves tool
main.py - CLI entry → Command building: builds command
main.py - Tool resolution → Command building: passes tool
main.py - Command building → CLI command: returns command
core/builder.py - CLI entry → CLI command: prints command
main.py - Intent matching → Image operations: loads intents
core/matcher.py - Intent matching → PDF operations: loads intents
core/matcher.py - Intent matching → Video operations: loads intents
core/matcher.py - Tool resolution → Image tool configs: loads tool configs
core/resolver.py - Tool resolution → PDF tool configs: loads tool configs
core/resolver.py - Tool resolution → Video tool configs: loads tool configs
core/resolver.py - Command building → Image tool configs: loads template config
core/builder.py - Command building → PDF tool configs: loads template config
core/builder.py - Command building → Video tool configs: loads template config
core/builder.py