[FEAT] Implement Phase 1: gatherers, audits, and runner pipeline (#38)#39
Merged
IISweetHeartII merged 1 commit intodevelopfrom Feb 19, 2026
Merged
Conversation
Add complete Gather → Audit → Score pipeline: Gatherers (3): - HttpGatherer: parallel fetch of 6 well-known files - HtmlGatherer: regex-based extraction of JSON-LD, meta tags, semantic HTML - ApiGatherer: OpenAPI spec analysis, header/auth/rate-limit detection Audits (19): - Discovery: llms-txt, openapi-spec, robots-ai, ai-plugin, schema-org - API Quality: openapi-valid, response-format, response-examples, content-negotiation - Structured Data: json-ld, meta-tags, semantic-html - Auth & Onboarding: self-service-auth, no-captcha - Error Handling: error-codes, rate-limit-headers, retry-after - Documentation: machine-readable-docs, sdk-available Runner: orchestrates two-pass gathering (HTTP first, then derived HTML+API), executes all audits with error resilience, and feeds results into the existing scoring engine. 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
Implements the complete Phase 1 Gather → Audit → Score pipeline, making
@agentgram/ax-scorea fully functional CLI tool and library. Previously,runAudit()returned an empty report with score 0. Now it performs real network fetches, analyzes 19 signals, and produces actionable scores.Type of Change
Changes Made
Gatherers (3 new files)
src/gatherers/http-gatherer.ts): Fetches target URL + 6 well-known files in parallel (robots.txt, llms.txt, openapi.json, ai-plugin.json, sitemap.xml, security.txt)src/gatherers/html-gatherer.ts): Regex-based extraction of JSON-LD, meta tags, semantic HTML elements, links (zero external dependencies)src/gatherers/api-gatherer.ts): Analyzes OpenAPI spec validity, response headers, auth patterns, rate limiting, SDK availabilityAudits (19 new files)
Runner Pipeline
Updated Exports
src/index.ts: Exports concrete gatherer classes and typessrc/audits/index.ts: Exports all 19 audit classessrc/gatherers/index.ts: Exports all 3 gatherer classesSmoke Test Result
Related Issues
Closes #38
Testing
pnpm type-check)pnpm lint)pnpm build)Checklist
🤖 Generated with Claude Code