Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ src/
│ ├── bulk-scan-state.ts # Save/load bulk scan IDs for resume after poll failure
│ ├── parse-input.ts # Input file parsing — CSV (prompt column) or plain text (line-per-prompt)
│ ├── prompts.ts # Inquirer interactive input collection
│ └── renderer.ts # Terminal output (chalk)
│ └── renderer/ # Terminal output (chalk), split by command group
│ ├── index.ts # Barrel re-exports
│ ├── common.ts # renderError
│ ├── generate.ts # Guardrail loop rendering (header, topic, metrics, analysis)
│ ├── redteam.ts # Red team scan/target/prompt-set rendering
│ ├── runtime.ts # Runtime scan + config management rendering
│ ├── audit.ts # Audit topics, results, conflicts
│ └── modelsecurity.ts # Model security groups/rules/scans rendering
├── config/
│ ├── schema.ts # Zod ConfigSchema — all config fields w/ defaults
│ └── loader.ts # Config cascade: CLI > env > file > Zod defaults
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
renderConflicts,
renderError,
renderMetrics,
} from '../renderer.js';
} from '../renderer/index.js';

/** Register the `audit` command — evaluate all topics in a profile. */
export function registerAuditCommand(program: Command): void {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
renderTestsAccumulated,
renderTestsComposed,
renderTopic,
} from '../renderer.js';
} from '../renderer/index.js';

/** Register the `generate` command — starts a new guardrail generation loop. */
export function registerGenerateCommand(program: Command): void {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/list.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Command } from 'commander';
import { loadConfig } from '../../config/loader.js';
import { JsonFileStore } from '../../persistence/store.js';
import { renderError, renderHeader, renderRunList } from '../renderer.js';
import { renderError, renderHeader, renderRunList } from '../renderer/index.js';

/** Register the `list` command — lists all saved runs. */
export function registerListCommand(program: Command): void {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/modelsecurity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
renderRuleList,
renderViolationDetail,
renderViolationList,
} from '../renderer.js';
} from '../renderer/index.js';

/** Create an SdkModelSecurityService from config. */
async function createService() {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/redteam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
renderTargetDetail,
renderTargetList,
renderVersionInfo,
} from '../renderer.js';
} from '../renderer/index.js';

/** Create an SdkRedTeamService from config. */
async function createService() {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
renderMetrics,
renderTestResults,
renderTopic,
} from '../renderer.js';
} from '../renderer/index.js';

/** Register the `report` command — view detailed results for a run. */
export function registerReportCommand(program: Command): void {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/resume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
renderTestsAccumulated,
renderTestsComposed,
renderTopic,
} from '../renderer.js';
} from '../renderer/index.js';

/** Register the `resume` command — resumes a paused or failed run. */
export function registerResumeCommand(program: Command): void {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
renderScanLogList,
renderTopicDetail,
renderTopicList,
} from '../renderer.js';
} from '../renderer/index.js';

function renderScanResult(result: RuntimeScanResult): void {
const actionColor = result.action === 'block' ? chalk.red : chalk.green;
Expand Down
Loading
Loading