Skip to content

feat(architecture): extract code2toon package for TOON format parsing and diffing - #22

Merged
tom-sapletta-com merged 1 commit into
mainfrom
ticket/014-extract-code2toon-package
Oct 2, 2026
Merged

tom-sapletta-com merged 1 commit into
mainfrom
ticket/014-extract-code2toon-package

Conversation

@tom-sapletta-com

Copy link
Copy Markdown
Contributor

Summary

  • Extracted TOON (Topology Oriented Object Notation) specification, parser, validator, and diff engine into standalone package code2toon (v0.1.0) under packages/code2toon.
  • code2toon provides:
    • Strongly-typed models: ToonDocument, ToonHeader, FunctionEntry.
    • Multi-format parser: parse_toon_content, load_toon, load_toon_document, is_toon_file.
    • Structural schema validator: ToonValidator, validate_toon.
    • Architectural drift diffing engine: diff_toon, ToonDiffResult (tracks complexity delta, additions/removals, and resolved/introduced code smells).
  • Re-exported in code2llm/parsers/toon_parser.py with transparent fallback to embedded implementation if code2toon is not present.
  • Added code2toon to pyproject.toml optional dependencies ([project.optional-dependencies] toon) and dev dependencies.
  • Verified with 359/359 pytest tests passing.

… and diffing

Co-authored-by: Koru Agent <agent@coru.dev>
@tom-sapletta-com
tom-sapletta-com merged commit 5d3e145 into main Oct 2, 2026
1 of 3 checks passed
@tom-sapletta-com
tom-sapletta-com deleted the ticket/014-extract-code2toon-package branch October 2, 2026 22:35
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