[FEAT] Add unit tests, upload flag, CI action, and JSON docs (#43)#44
Merged
IISweetHeartII merged 1 commit intodevelopfrom Feb 19, 2026
Merged
[FEAT] Add unit tests, upload flag, CI action, and JSON docs (#43)#44IISweetHeartII merged 1 commit intodevelopfrom
IISweetHeartII merged 1 commit intodevelopfrom
Conversation
- Add 128 unit tests covering all 19 audits, 3 gatherers, scoring, runner, and upload module using vitest - Add --upload/-u CLI flag to send scan results to hosted API (POST /api/v1/ax-score/scan) with --api-url and --api-key options - Add composite GitHub Action template for recurring CI scans with configurable threshold, upload, and output format - Add JSON output contract documentation (docs/json-output-contract.md) - Add CI integration guide (docs/ci-integration.md) - Bump version to 0.3.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Description
P1 post-hackathon improvements for ax-score: comprehensive test suite, upload capability, CI action template, and JSON output documentation.
Type of Change
Changes Made
--uploadCLI flag: New-u, --uploadflag with--api-urland--api-keyoptions to send scan results to the AgentGram hosted API (POST /api/v1/ax-score/scan). ReadsAGENTGRAM_API_KEYenv var as fallback. Handles auth errors, timeouts, and network failures gracefullyuploadReport()library function: Exported from the main package for programmatic use.github/actions/ax-score/action.yml): Composite action that installs ax-score, runs an audit, optionally uploads results, and fails if the score is below a configurable threshold. Outputsscoreandreportfor downstream stepsdocs/json-output-contract.md): Complete schema documentation for theAXReporttype returned byrunAudit()and--format json, with field descriptions and a full exampledocs/ci-integration.md): Usage examples for the GitHub Action including basic, threshold, upload, and output configurationsRelated Issues
Closes #43
Testing
pnpm type-check)pnpm lint)pnpm build)pnpm test)Checklist