Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.33 KB

File metadata and controls

44 lines (31 loc) · 1.33 KB

Examples

Complete working examples demonstrating AI-SDLC SDK usage.

TypeScript Examples

Example Description
builder-examples.ts All 5 resource builders with validation
gate-enforcement.ts Programmatic quality gate evaluation with override and failure scenarios
adapter-implementation.ts Custom adapter from scratch, registry, webhook bridge, EventBus (RFC-0003 §3 example — IssueTracker pattern extended to the five infrastructure interfaces)
orchestration-patterns.ts All 5 orchestration patterns with execution and handoff validation

YAML Examples

Example Description
complete-pipeline.yaml Full pipeline with all resource types configured together (RFC-0002 §6 example)

Running Examples

The TypeScript examples can be run directly:

npx tsx docs/examples/builder-examples.ts
npx tsx docs/examples/gate-enforcement.ts
npx tsx docs/examples/adapter-implementation.ts
npx tsx docs/examples/orchestration-patterns.ts

Type Checking

Verify examples compile without errors:

cd docs/examples
npx tsc --noEmit

Or validate YAML examples against the schemas:

pnpm --filter @ai-sdlc/reference validate-schemas