Skip to content

Conversation

@pelikhan
Copy link
Contributor

@pelikhan pelikhan commented Sep 4, 2025

  • create-discussion safe output
  • create-pull-request-review-comment safe output
  • fix error code hiding with codex
  • precise error location from validation front matter
  • JSON repair when reading JSONL safe entries
  • run prettier to lint JavaScript

Copilot AI and others added 10 commits September 3, 2025 19:24
…nd validation support (#43)

* Initial plan

* Add create-discussion safe output type

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Convert create-discussion from GraphQL to REST API and remove discussions:write permission requirement

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add create-discussion validation support to collect_ndjson_output.cjs

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Revert package-lock.json name change from gh-aw-copilots back to gh-aw

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
…erated malformed JSON (#42)

* Initial plan

* Implement JSON repair capabilities for safe-output JSONL parser

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add comprehensive test coverage for JSON repair functionality

- Added 16 new test cases covering various JSON repair scenarios
- Tests include mixed quote types, bracket issues, Unicode chars, complex nesting
- Added graceful failure tests for edge cases beyond repair capabilities
- All 190 JavaScript tests now pass, including 41 JSONL parser tests
- Tests validate robustness of LLM-generated JSON handling

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Improve JSON parsing error handling: print to console and return undefined instead of throwing exceptions

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Refactor JSON parsing logic: streamline error handling and improve validation for output types

* Add JSON repair and parsing functions to handle malformed input

* Fix test cases for JSON repair functionality

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
@pelikhan pelikhan merged commit d847162 into githubnext:main Sep 4, 2025
12 checks passed
@pelikhan pelikhan deleted the pelikhan/create-discussions-pr-reviews branch September 4, 2025 12:57
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