/**
 * @cleocode/contracts — Domain types, interfaces, and contracts for the CLEO ecosystem.
 *
 * This is the LEAF package in the dependency graph — ZERO runtime dependencies.
 * All domain types (Task, Session, DataAccessor, etc.) are defined here.
 * Implementation packages (@cleocode/core, @cleocode/cleo) import from here.
 */
// === Acceptance Gate Zod Schemas (runtime validation) ===
export { acceptanceArraySchema, acceptanceGateResultSchema, acceptanceGateSchema, acceptanceItemSchema, commandGateSchema, fileAssertionSchema, fileGateSchema, gateBaseSchema, gateResultDetailsSchema, httpGateSchema, lintGateSchema, manualGateSchema, testGateSchema, } from './acceptance-gate-schema.js';
export { attachmentMetadataSchema, attachmentRefSchema, attachmentSchema, blobAttachmentSchema, llmsTxtAttachmentSchema, llmtxtDocAttachmentSchema, localFileAttachmentSchema, urlAttachmentSchema, } from './attachment-schema.js';
export { BOUNDARY_REGISTRY } from './boundary.js';
// === Branch-Lock + Owner-Auth Types (T1118) ===
export { BRANCH_LOCK_ERROR_CODES, ISOLATION_ENV_KEYS, provisionIsolatedShell, validateAbsolutePath, } from './branch-lock.js';
export { CHANGESET_KINDS, ChangesetEntrySchema } from './changesets.js';
export { CLI_CATEGORY_ORDER } from './cli-category.js';
export { CLEO_CONFIG_MANIFEST, CONFIG_MANIFEST_ENTRIES, configManifestEntrySchema, GLOBAL_CLEO_CONFIG_MANIFEST, PROJECT_CONTEXT_MANIFEST, PROJECT_INFO_MANIFEST, } from './config/manifest.js';
export { parseClaudeCodeCredentials } from './credentials.js';
export { HealthStatusSchema, SUBSYSTEM_LIFECYCLE_PHASES, SubsystemHealthSchema, SubsystemStateSchema, summarizeHealth, toMonitorChildren, } from './daemon/index.js';
// === Daemon-IPC v1.0 (AC8 alias of supervisor-ipc — T11369 · R2 gates R4-R7) ===
// `daemon-ipc` is the AC8-named re-export barrel over the FROZEN supervisor-ipc
// v1.0 contract — one contract, two names. The subpath
// `@cleocode/contracts/daemon-ipc` resolves via the package `./*` export.
export { DAEMON_IPC_PROTOCOL_VERSION } from './daemon-ipc/index.js';
export { DB_INVENTORY } from './db-inventory.js';
export { CANONICAL_DOMAINS } from './dispatch/identity.js';
// === Dispatch OPERATIONS data + builder helpers (T10061 — T9833b / E-CLI-BOUNDARY / SG-ARCH-SOLID) ===
export { defineDomain, defineOp, OPERATIONS } from './dispatch/operations-registry.js';
export { DOC_LIFECYCLE_STATUSES, docLifecycleStatusSchema, docProvenanceResponseSchema, isDocProvenanceResponse, isProvenanceDecisionNode, isProvenanceDocNode, isProvenanceMemoryNode, isProvenanceSessionNode, isProvenanceTaskNode, PROVENANCE_EDGE_RELATIONS, PROVENANCE_NODE_KINDS, provenanceDecisionNodeSchema, provenanceDocNodeSchema, provenanceEdgeRelationSchema, provenanceEdgeSchema, provenanceMemoryNodeSchema, provenanceNodeKindSchema, provenanceNodeSchema, provenanceSessionNodeSchema, provenanceTaskNodeSchema, } from './docs/provenance.js';
export { docBodySchema, docFrontmatterSchema, docReadResponseSchema, isDocReadResponse, } from './docs/read.js';
export { BUILTIN_DOC_KIND_VALUES, BUILTIN_DOC_KINDS, DocKindConfigError, DocKindRegistry, } from './docs-taxonomy.js';
// === EngineResult — canonical discriminated-union SDK type (T1685) ===
export { EngineResultError, engineError, engineSuccess, unwrap, } from './engine-result.js';
// === Task-Axis Enum Constants (T9955 — promoted from core/store/tasks-schema.ts) ===
export { ARCHIVE_REASONS, TASK_KINDS, TASK_RELATION_TYPES, TASK_SCOPES, TASK_SEVERITIES, TASK_SIZES, } from './enums.js';
// === Error Utilities ===
export { ChangesetYamlInvalidError, ClassifierUnregisteredAgentError, createErrorResult, createSuccessResult, DecisionValidatorFailedError, E_SAGA_INVARIANT_VIOLATION_I3, E_SAGA_INVARIANT_VIOLATION_I5, E_SAGA_INVARIANT_VIOLATION_I7, formatError, getErrorMessage, isErrorResult, isErrorType, LeadBypassDetectedError, LifecycleScopeDeniedError, normalizeError, ThinAgentViolationError, } from './errors.js';
export { AC_ALIAS_REGEX, AC_UUID_REGEX, callsiteCoverageAtomSchema, commitAtomSchema, decisionAtomSchema, EvidenceAtomSchema, EvidenceParseError, filesAtomSchema, formatGateRequirement, formatGateRequirementHint, GATE_EVIDENCE_REQUIREMENTS, locDropAtomSchema, noteAtomSchema, parseEvidenceString, prAtomSchema, SATISFIES_TASK_ID_REGEX, SATISFIES_VERSION_PIN_REGEX, satisfiesAtomSchema, testRunAtomSchema, toolAtomSchema, urlAtomSchema, validateEvidenceForGate, } from './evidence-atom-schema.js';
// === Evidence Record Zod Schemas (runtime validation) ===
export { commandOutputRecordSchema, evidenceRecordSchema, implDiffRecordSchema, lintReportRecordSchema, testOutputRecordSchema, validateSpecCheckRecordSchema, } from './evidence-record-schema.js';
// === Exit Codes ===
export { 
// T10509 / Saga T10377 — AC-coverage gate at cleo complete (IVTR closure)
E_AC_COVERAGE_INCOMPLETE, 
// T10105 / Saga T10099 — fail-loud changeset parse
E_CHANGESET_YAML_INVALID, 
// SPEC-T9345 release pipeline v2 error code names (T9525)
E_CHANNEL_MISMATCH, 
// T11022 / Saga T10295 — CWD-walk-up forbidden under CLEO_PATHS_STRICT=1
E_CWD_WALKUP_FORBIDDEN, E_DIRTY_TREE, E_EPIC_EMPTY, E_EPIC_EMPTY_LEAF_NO_EVIDENCE, E_EPIC_NOT_FOUND, E_EVIDENCE_INSUFFICIENT, 
// SPEC-T9345 release pipeline v2 error code names (T9530)
E_GH_NOT_AUTHENTICATED, 
// T10341 — typed CLI-layer validation for --severity + --pipeline-stage
E_INVALID_PIPELINE_STAGE, E_INVALID_SEVERITY_VALUE, E_INVALID_STATE, E_PLAN_NOT_FOUND, E_RELEASE_PLAN_INVALID, E_WORKFLOW_NOT_FOUND, 
// gh#391 — application-level SQLITE_BUSY retry exhaustion (T9839)
E_WRITE_CONTENTION, ExitCode, getExitCodeName, isErrorCode, isNoChangeCode, isRecoverableCode, isSuccessCode, } from './exit-codes.js';
// === Facade API Interfaces ===
export { AGENT_INSTANCE_STATUSES, AGENT_TYPES, BRAIN_OBSERVATION_TYPES, } from './facade.js';
export { GOAL_STATUSES, GOAL_TARGET_TASK_ID_REGEX, GOAL_TERMINAL_STATUSES, isFuzzyGoal, isTaskCompletionGoal, isTerminalGoalStatus, isValidGoalTargetTaskId, } from './goal.js';
export { confidenceFromProvenance, confidenceLabelFromNumeric, provenanceFromNumeric, } from './graph.js';
export { ADR_056_INVARIANTS, ADR_073_INVARIANTS, getInvariant, getInvariantsByAdr, INVARIANTS_REGISTRY, } from './invariants/index.js';
// === LAFS Envelope Types ===
export { isGatewayEnvelope, isLafsError, isLafsSuccess, } from './lafs.js';
export { PluginDeniedError, PluginLlmError, PluginModelGateError, PluginRateLimitedError, } from './llm/plugin-llm.js';
export { SYSTEM_ROLE_MAP } from './llm/system-resolver.js';
export { BRAIN_OBSERVATION_SOURCE_TYPES } from './memory/observe.js';
// === Migration Parity (T11551 — DHQ-045 exodus zero-loss durable guard) ===
export { MIGRATION_ENUM_DRIFT_SAMPLE_LIMIT } from './migration-parity.js';
export { expansionFromNextDirectives, expansionFromStructuredOps, expansionFromSuggestedCommands, isNextDirectivesHint, isStructuredOpsHint, isSuggestedCommandsHint, } from './mvi.js';
export { E_LAFS_OPERATION_ERROR_SHAPE, E_LAFS_OPERATION_RESULT_SCHEMA, E_LAFS_OPERATION_UNREGISTERED, OPERATION_RESULT_SCHEMAS, validateOperationEnvelope, } from './operation-envelope-validation.js';
// === Docs Operation Types (T10618 — docs.update lifecycle status SSoT) ===
// Re-exported at top level so core and CLI layers can consume the same
// operation contract without relying on an unexported package subpath.
export { DOCS_LIFECYCLE_STATUSES, } from './operations/docs.js';
// === Operations Types (API wire format, namespaced to avoid collision with domain types) ===
export * as ops from './operations/index.js';
export { getNexusDescriptor, listOpsByScope, NEXUS_SCOPE_MAP, } from './operations/nexus-scope-map.js';
export { OUTPUT_CONTRACTS } from './operations/output-contracts-data.js';
export { paramsToCittyArgs } from './operations/params.js';
// === T9917 tasks.* schema-first input contracts (Saga T9855 / Epic T9903) ===
// Top-level exports so the core dispatch registry (input-contracts.ts) can
// import them without the `ops.` namespace hop.
export { TASKS_ADD_BATCH_INPUT_SCHEMA, TASKS_ADD_INPUT_SCHEMA, TASKS_UPDATE_INPUT_SCHEMA, tasksAddBatchInputContract, tasksAddInputContract, tasksUpdateInputContract, } from './operations/tasks.js';
// === Peer Identity (T1210 — SDK-first CANT persona contract) ===
export { assertPeerIdentity, filterPeerIdentities, isPeerIdentity, } from './peer.js';
export { ghPrViewSchema, PR_REQUIRED_WORKFLOWS, PR_REQUIRED_WORKFLOWS_ENV_VAR, parsedPrEvidenceAtomSchema, prEvidenceStateModifierSchema, } from './release/evidence-atoms.js';
export { GATE_NAME, GATE_STATUS, GateNameSchema, GateStatusSchema, IMPACT, ImpactSchema, PLATFORM_TUPLE, PlatformTupleSchema, PUBLISHER, PublisherSchema, parseReleasePlan, RELEASE_CHANNEL, RELEASE_KIND, RELEASE_PLAN_SCHEMA_URL, RELEASE_PLAN_SCHEMA_VERSION, RELEASE_SCHEME, RELEASE_STATUS, RESOLVED_SOURCE, ReleaseChannelSchema, ReleaseGateSchema, ReleaseKindSchema, ReleasePlanChangelogSchema, ReleasePlanMetaSchema, ReleasePlanSchema, ReleasePlanTaskSchema, ReleasePlatformMatrixEntrySchema, ReleasePreflightSummarySchema, ReleaseSchemeSchema, ReleaseStatusSchema, ResolvedSourceSchema, safeParseReleasePlan, TASK_KIND, TaskKindSchema, } from './release/plan.js';
// === Human Render Contract (Epic T10114, ADR-077) ===
export * from './render/index.js';
// === Session Types ===
export { SessionView } from './session.js';
// === Session Journal Types (T1263 PSYCHE E6) ===
export { SESSION_JOURNAL_SCHEMA_VERSION, sessionJournalDebriefSummarySchema, sessionJournalDoctorSummarySchema, sessionJournalEntrySchema, } from './session-journal.js';
// === Status Registry (MUST be first — everything depends on this) ===
export { ADR_STATUSES, GATE_STATUSES, isValidStatus, LIFECYCLE_PIPELINE_STATUSES, LIFECYCLE_STAGE_STATUSES, MANIFEST_STATUSES, 
// Display icons
PIPELINE_STATUS_ICONS, SESSION_STATUSES, STAGE_STATUS_ICONS, STATUS_REGISTRY, TASK_STATUS_SYMBOLS_ASCII, TASK_STATUS_SYMBOLS_UNICODE, 
// Constants
TASK_STATUSES, TERMINAL_PIPELINE_STATUSES, TERMINAL_STAGE_STATUSES, 
// Terminal state sets
TERMINAL_TASK_STATUSES, } from './status-registry.js';
// === Supervisor IPC v1.0 (FROZEN — T11339 · SG-RUNTIME-UNIFICATION R1) ===
export { ChildStateSchema, ChildStatusSchema, EnvPairSchema, ErrorResponseSchema, HealthRequestSchema, HealthResponseSchema, LifecycleEventKindSchema, LifecycleEventResponseSchema, MonitorRequestSchema, MonitorResponseSchema, RestartedResponseSchema, RestartRequestSchema, SpawnedResponseSchema, SpawnRequestSchema, SUPERVISOR_IPC_CHANNEL_BASENAME, SUPERVISOR_IPC_MESSAGE_KINDS, SUPERVISOR_IPC_PROTOCOL_VERSION, SUPERVISOR_IPC_REQUEST_KINDS, SUPERVISOR_IPC_RESPONSE_KINDS, SupervisorIpcEnvelopeSchema, SupervisorIpcRequestEnvelopeSchema, SupervisorIpcRequestSchema, SupervisorIpcResponseEnvelopeSchema, SupervisorIpcResponseSchema, } from './supervisor-ipc/index.js';
export { isTestFixtureOrigin, TASK_ORIGIN_CANONICAL } from './task.js';
export { commandOutputEvidenceSchema, fileEvidenceSchema, logEvidenceSchema, screenshotEvidenceSchema, taskEvidenceSchema, testOutputEvidenceSchema, } from './task-evidence.js';
// === Archive Reason Enum (T1409 — typed z.enum + tombstone guard) ===
export { ARCHIVE_REASON_TOMBSTONE, ARCHIVE_REASON_TOMBSTONE_ENV, ARCHIVE_REASON_VALUES, ArchiveReason, ArchiveReasonSchema, ArchiveReasonTombstoneError, assertArchiveReason, isArchiveTombstoneAllowed, } from './tasks/archive.js';
export { completionCriterionEvaluationSchema, completionEvaluateParamsSchema, completionEvaluationSchema, completionExplainParamsSchema, completionExplanationSchema, completionListParamsSchema, completionListResultSchema, completionProjectionRepairErrorSchema, completionProjectionRepairParamsSchema, completionProjectionRepairResultSchema, unsatisfiedCompletionCriterionSchema, } from './tasks.js';
export { BUILTIN_TAXONOMY_TAGS, CANONICAL_DOC_KIND_TAGS, CANONICAL_DOMAIN_TAGS, CANONICAL_LIFECYCLE_TAGS, CANONICAL_PRIORITY_TAGS, CANONICAL_TAG_VALUES, CANONICAL_TYPE_TAGS, TaxonomyError, TaxonomyRegistry, } from './taxonomy.js';
export { PLACEHOLDER_SOURCES, PlaceholderSpecSchema, TEMPLATE_KINDS, TEMPLATE_SUBSTITUTIONS, TEMPLATE_UPDATE_STRATEGIES, TemplateManifestEntrySchema, } from './templates/manifest.js';
export { AGENT_ROLES, isAgentRole, isValidatorAttestation, isValidatorRejection, isValidatorVerdict, VALIDATOR_ID_REGEX, validatorAttestationSchema, validatorFindingSchema, validatorRejectionSchema, validatorVerdictSchema, } from './validator/index.js';
// === PM-Core V2 WorkGraph public contracts ===
export { canWorkGraphTaskTypeBeRoot, E_WORKGRAPH_PARENT_TYPE_MATRIX, isAllowedWorkGraphParentType, tasksFrontierParamsSchema, tasksFrontierResultSchema, tasksRollupParamsSchema, tasksRollupResultSchema, tasksTraverseParamsSchema, tasksTraverseResultSchema, tasksTreeParamsSchema, tasksTreeResultSchema, tasksWorkGraphAuditParamsSchema, tasksWorkGraphAuditResultSchema, validateWorkGraphHierarchy, WorkGraphHierarchyInvariantError, workGraphContextPackParamsSchema, workGraphContextPackSchema, workGraphPlanningDocParamsSchema, workGraphPlanningDocSchema, workGraphReadinessParamsSchema, workGraphReadinessResultSchema, workGraphScaffoldApplyParamsSchema, workGraphScaffoldApplyResultSchema, workGraphScaffoldValidateParamsSchema, workGraphScaffoldValidateResultSchema, workGraphSliceParamsSchema, workGraphSliceSchema, } from './workgraph.js';
// === WASM SDK (Rust crate bindings) ===
//# sourceMappingURL=index.js.map