-
Notifications
You must be signed in to change notification settings - Fork 6
T8 #1633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… response handling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds support for the TOON format (a structured data serialization format) as both an input and output option throughout the OpenAF ecosystem. The changes introduce the TOON library, integrate it into the OpenAF core functionality, and update completion scripts to recognize the new format.
Changes:
- Added toon.js library (v2.1.0) as an external dependency
- Integrated TOON format support into OpenAF core APIs (AF.toTOON, AF.fromTOON, $path functions)
- Updated oafp tool to support TOON as input (in=toon) and output (out=toon) format
- Added TOON format to shell completion scripts and metadata
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| versionsAndDeps.json | Adds toon.js library as external dependency with version 2.1.0 |
| js/toon.js | New minified TOON library file for encoding/decoding TOON format |
| js/repack.js | Adds loadTOON() call to shared archive initialization sequence |
| js/owrap.template.js | Adds $toTOON helper function to Handlebars templates |
| js/owrap.oJob.js | Adds "python" to supported job languages list |
| js/owrap.ai.js | Adds jsonPromptWithStatsRaw and promptJSONWithStatsRaw methods |
| js/openaf.js | Implements AF.toTOON/fromTOON methods, loadTOON function, $path integration, and $output support |
| js/oafp.js | Adds TOON input/output format handling and version update |
| complete/completion_oafp.yaml | Adds in=toon and out=toon completion metadata |
| complete/completion_oafp.sh | Adds in=toon and out=toon shell completion support |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request adds support for a new "TOON" format as both an input and output option in the completion scripts and their metadata. The changes ensure that the
toonformat is recognized, handled, and documented consistently alongside other supported formats.Input and output format support:
toonas a supported input format, including flag handling, argument parsing, and help text incompletion_oafp.sh. [1] [2] [3]toonas a supported output format, including flag handling, argument parsing, and help text incompletion_oafp.sh. [1] [2] [3]Metadata/documentation updates:
in=toonandout=toonoptions in the completion metadata filecompletion_oafp.yaml, including descriptions for both. [1] [2]