aios-core
Version:
Synkra AIOS: AI-Orchestrated System for Full Stack Development - Core Framework
57 lines (47 loc) • 1.51 kB
JavaScript
/**
* QA Command Module
*
* Entry point for all quality gate CLI commands.
* Includes run and status subcommands.
*
* @module cli/commands/qa
* @version 1.0.0
* @story 2.10 - Quality Gate Manager
*/
const { Command } = require('commander');
const { createRunCommand } = require('./run');
const { createStatusCommand } = require('./status');
/**
* Create the qa command with all subcommands
* @returns {Command} Commander command instance
*/
function createQaCommand() {
const qa = new Command('qa');
qa
.description('Quality Gate Manager - orchestrate 3-layer quality pipeline')
.addHelpText('after', `
Commands:
run Execute quality gate pipeline
status Show current gate status
Examples:
$ aios qa run Run full pipeline
$ aios qa run --layer=1 Run only Layer 1 (pre-commit)
$ aios qa run --layer=2 Run only Layer 2 (PR automation)
$ aios qa run --verbose Run with detailed output
$ aios qa status Show current gate status
Layers:
Layer 1: Pre-commit (lint, test, typecheck) - Fast local checks
Layer 2: PR Automation (CodeRabbit, Quinn) - Automated review
Layer 3: Human Review (checklist, sign-off) - Strategic review
Exit Codes:
0 = All gates passed (or pending human review)
1 = Gates failed (fix required)
`);
// Add subcommands
qa.addCommand(createRunCommand());
qa.addCommand(createStatusCommand());
return qa;
}
module.exports = {
createQaCommand,
};