UNPKG

paqad-ai

Version:

Spec-driven development framework — AI agents that think before they type

104 lines (100 loc) • 6.87 kB
import { D as Domain, A as ActiveCapability, S as Stack } from './domain-LGu-EIZE.js'; import { D as DetectedStackProfile } from './introspection-QzYkdEo0.js'; declare const LANES: readonly ["fast", "graduated", "full"]; type Lane = (typeof LANES)[number]; declare const PROCESS_DEPTHS: readonly ["fast lane", "graduated lane", "full lane"]; type ProcessDepth = (typeof PROCESS_DEPTHS)[number]; declare const COMPLEXITY_LEVELS: readonly ["trivial", "low", "medium", "high", "very-high"]; type Complexity = (typeof COMPLEXITY_LEVELS)[number]; declare const RISK_LEVELS: readonly ["low", "medium", "high"]; type Risk = (typeof RISK_LEVELS)[number]; interface RoutingConfig { domain?: Domain; active_capabilities?: ActiveCapability[]; matched_packs?: string[]; stack_profile?: DetectedStackProfile; stack?: string; capabilities?: string[]; } declare function selectLane(complexity: Complexity, risk: Risk): Lane; declare const CLASSIFICATION_WORKFLOWS: readonly ["project-question", "ticket-refinement", "writing", "editing", "planning", "research", "feature-development", "bug-fix", "refactor", "migration", "content-update", "investigation", "cleanup", "architecture-change", "test-improvement", "documentation-update", "module-documentation", "root-cause-analysis", "discovery", "rules-discovery", "pentest", "pentest-retest", "codebase-health", "health-retest", "site-map", "site-map-retest", "design-test", "design-retest", "rules-analyze", "rules-generate", "schema-change", "query-optimization", "custom"]; type ClassificationWorkflow = (typeof CLASSIFICATION_WORKFLOWS)[number]; declare const CLASSIFICATION_SCOPES: readonly ["single-file", "single-module", "multi-module", "system-wide"]; type ClassificationScope = (typeof CLASSIFICATION_SCOPES)[number]; declare const CLASSIFICATION_CERTAINTY: readonly ["well-defined", "partially-defined", "ambiguous"]; type ClassificationCertainty = (typeof CLASSIFICATION_CERTAINTY)[number]; declare const CLASSIFICATION_OUTPUT_TYPES: readonly ["code", "documentation", "analysis", "design", "report"]; type ClassificationOutputType = (typeof CLASSIFICATION_OUTPUT_TYPES)[number]; declare const DATABASE_IMPACTS: readonly ["none", "additive-only", "schema-change", "data-migration", "query-change"]; type DatabaseImpact = (typeof DATABASE_IMPACTS)[number]; declare const UI_IMPACTS: readonly ["none", "minor-tweak", "new-component", "new-screen", "redesign"]; type UiImpact = (typeof UI_IMPACTS)[number]; declare const API_IMPACTS: readonly ["none", "additive-endpoint", "modified-endpoint", "breaking-change"]; type ApiImpact = (typeof API_IMPACTS)[number]; declare const COMPLIANCE_SENSITIVITY_LEVELS: readonly ["none", "low", "high"]; type ComplianceSensitivity = (typeof COMPLIANCE_SENSITIVITY_LEVELS)[number]; declare const CUSTOMER_FACING_IMPACTS: readonly ["internal", "customer-visible"]; type CustomerFacingImpact = (typeof CUSTOMER_FACING_IMPACTS)[number]; declare const REVERSIBILITY_LEVELS: readonly ["easily-reversible", "difficult", "irreversible"]; type Reversibility = (typeof REVERSIBILITY_LEVELS)[number]; declare const DATA_SENSITIVITY_LEVELS: readonly ["none", "pii", "financial", "health"]; type DataSensitivity = (typeof DATA_SENSITIVITY_LEVELS)[number]; declare const TARGET_CAPABILITIES: readonly ["content", "coding", "security", "mixed"]; type TargetCapability = (typeof TARGET_CAPABILITIES)[number]; declare const WORKFLOW_SOURCES: readonly ["routing-skill", "active-session", "none"]; type WorkflowSource = (typeof WORKFLOW_SOURCES)[number]; declare const RESOLUTION_SOURCES: readonly ["deterministic", "deterministic:mcp", "deterministic:rag", "deterministic:graph", "deterministic:manifest", "llm-confirmed", "llm-overridden", "llm-guessed", "health-override", "history-corrected", "defect-floor", "session-resume", "default"]; type ResolutionSource = (typeof RESOLUTION_SOURCES)[number]; declare const CONTEXT_BUDGET_HINTS: readonly ["minimal", "standard", "deep"]; type ContextBudgetHint = (typeof CONTEXT_BUDGET_HINTS)[number]; type ResolutionMap = Partial<Record<string, ResolutionSource>>; interface ClassificationResult { request_text: string; domain: Domain; stack: Stack; target_capability: TargetCapability; capability_gap: boolean; workflow: ClassificationWorkflow | null; custom_workflow_name?: string | null; workflow_source: WorkflowSource; workflow_reason?: string | null; matched_rule?: string | null; complexity: Complexity; risk: Risk; scope: ClassificationScope; affected_modules: string[]; process_depth: ProcessDepth; certainty: ClassificationCertainty; output_type: ClassificationOutputType; database_impact: DatabaseImpact; ui_impact: UiImpact; api_impact: ApiImpact; compliance_sensitivity: ComplianceSensitivity; customer_facing_impact: CustomerFacingImpact; reversibility: Reversibility; data_sensitivity: DataSensitivity; classification_confidence?: number; resolution_map?: ResolutionMap; lane_before_override?: string; lane_override_reason?: string | null; risk_floor?: Risk | null; risk_floor_reason?: string | null; complexity_adjustment?: number; complexity_adjustment_reason?: string | null; delta_candidate?: boolean; base_manifest_slug?: string | null; prior_requirement_count?: number | null; prior_criterion_count?: number | null; context_budget_hint?: ContextBudgetHint; retrieval_needed?: boolean; affected_modules_source?: string; scope_graph_depth?: number; matched_rule_triggers?: string[]; resumed_from_session?: boolean; resume_lane?: Lane | null; workflow_continuity_reason?: string | null; analytics_tag?: AnalyticsGateStatus; } type AnalyticsGateStatus = 'off' | 'not_applicable' | 'dormant' | 'instrument'; export { RESOLUTION_SOURCES as E, REVERSIBILITY_LEVELS as F, RISK_LEVELS as G, UI_IMPACTS as I, WORKFLOW_SOURCES as J, selectLane as K, PROCESS_DEPTHS as P, TARGET_CAPABILITIES as T, API_IMPACTS as m, CLASSIFICATION_CERTAINTY as n, CLASSIFICATION_OUTPUT_TYPES as o, CLASSIFICATION_SCOPES as p, CLASSIFICATION_WORKFLOWS as q, COMPLEXITY_LEVELS as r, COMPLIANCE_SENSITIVITY_LEVELS as s, CONTEXT_BUDGET_HINTS as t, CUSTOMER_FACING_IMPACTS as u, DATABASE_IMPACTS as x, DATA_SENSITIVITY_LEVELS as y, LANES as z }; export type { AnalyticsGateStatus as A, ProcessDepth as B, ClassificationResult as C, DatabaseImpact as D, TargetCapability as H, Lane as L, Risk as R, UiImpact as U, WorkflowSource as W, Complexity as a, ClassificationWorkflow as b, ClassificationScope as c, ApiImpact as d, ComplianceSensitivity as e, CustomerFacingImpact as f, Reversibility as g, DataSensitivity as h, ContextBudgetHint as i, ResolutionMap as j, ResolutionSource as k, RoutingConfig as l, ClassificationCertainty as v, ClassificationOutputType as w };