Add support for native IR input format - #64
Merged
Merged
Conversation
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.
This pull request introduces support for native Graph IR JSON as an explicit input format for Threat Thinker, enabling users to bypass diagram parsing and directly provide a structured architecture model. The changes update CLI options, documentation, and internal input handling to integrate this new format alongside existing diagram types.
Native IR support and input handling:
--irCLI flag and input format for native Graph IR JSON, allowing users to supply explicit architecture models without diagram syntax. Updates include parsing logic, CLI argument handling, and error messages for unsupported formats. (src/threat_thinker/main.py,src/threat_thinker/input_loader.py, [1] [2] [3] [4] [5]main.py. (src/threat_thinker/main.py,src/threat_thinker/input_loader.py, [1] [2]Documentation and example updates:
docs/ir.md, docs/ir.mdR1-R239)--irflag and native IR input, clarifying autodetection rules and supported formats. (docs/cli.md,docs/README.md, [1] [2] [3]README.md,docs/design.md, [1] [2] [3] [4]Examples and API changes:
examples/diagrams/ir/system.ir.json, examples/diagrams/ir/system.ir.jsonR1-R55)irinput type for API requests. (examples/demo-app/proxy/main.py, examples/demo-app/proxy/main.pyR49)