@stackbilt/types
v0.10.0
Published
Shared type definitions for the Charter Kit
Readme
@stackbilt/types
Shared type definitions for Charter Kit -- a local-first governance toolkit for software repos.
This package contains all TypeScript type aliases, enums, and interfaces used across the Charter Kit monorepo. It exports only types; there is no runtime code.
Want the full toolkit? Just install the CLI — it includes everything:
npm install -g @stackbilt/cliOnly install this package directly if you need the type definitions without the CLI.
Install
npm install @stackbilt/typesUsage
import type {
ChangeClass,
CommitRiskLevel,
DriftViolation,
ValidationResult,
} from '@stackbilt/types';Exported Types
Core Enums and Literals
| Type | Values |
|------|--------|
| AppMode | GOVERNANCE, STRATEGY, DRAFTER, RED_TEAM, BRIEF |
| LedgerEntryType | RULING, ADR, POLICY, SOP, STRATEGIC, REVIEW, NOTARY_STAMP |
| LedgerStatus | ACTIVE, SUPERSEDED, ARCHIVED |
| PatternStatus | ACTIVE, DEPRECATED, EVALUATING |
| PatternCategory | COMPUTE, DATA, INTEGRATION, SECURITY, ASYNC |
| RequestStatus | SUBMITTED, QUEUED, IN_REVIEW, RESOLVED, BLOCKED, DEFERRED |
| RequestType | FEATURE_APPROVAL, ARCHITECTURE_REVIEW, POLICY_QUESTION, EXCEPTION_REQUEST, TOOL_EVALUATION |
| Domain | ARCHITECTURE, DATA, STANDARDS, SECURITY, STRATEGY |
| Urgency | LOW, STANDARD, ELEVATED, CRITICAL |
| Complexity | TRIVIAL, SIMPLE, MODERATE, COMPLEX, EPIC |
Validation
ValidationStatus--PASS,WARN,FAILValidationRequest-- input for validation checksRuleEvaluation-- individual rule resultPatternEvaluation-- pattern alignment resultValidationResult-- full validation output with rules, ADRs, and patterns
Data Model
Pattern-- blessed-stack pattern definitionLedgerEntry-- governance ledger record (rulings, ADRs, policies)GovernanceRequest-- governance request lifecycle recordProtocol-- protocol definitionQualityMetadata-- quality scoring metadataNotaryStamp-- cryptographic notary stamp
Git Validation
GitValidationStatus--PASS,WARN,FAILCommitRiskLevel--LOW,MEDIUM,HIGHGitCommit-- parsed commit dataGovernedByTrailer-- parsedGoverned-BytrailerResolvesRequestTrailer-- parsedResolves-RequesttrailerUnlinkedCommit-- commit missing governance trailersGitValidationResponse-- full git validation output
Change Classification
ChangeClass--SURFACE,LOCAL,CROSS_CUTTINGGovernanceStatus--CLEAR,VIOLATION,NEEDS_REVIEWChangeRecommendation--APPROVE,APPROVE_WITH_MITIGATIONS,REJECT,ESCALATEChangeClassification-- full classification result
Drift Scanner
DriftViolation-- single drift violation with file, line, and severityDriftReport-- aggregated drift scan results
LLM Provider (Bridge Contract)
LLMRequest-- prompt inputLLMResponse-- model outputLLMProvider-- provider interface for pluggable LLM backends
Requirements
- Node >= 18
- TypeScript (types only -- no runtime dependency)
License
Apache-2.0
