import { buildCodebaseIndex, buildCodebaseIndexWithStats, parseCodeFiles, assembleCodebaseIndex, assembleCodebaseIndexCooperative, DEFAULT_PARSE_CONCURRENCY, } from './code/build.js';
import { createCodeQuerySession, createCodeQuerySessionFromIndex } from './code/session.js';
import { openChunkCodeIndexStore, openCodeIndexStore } from './code/store.js';
import { chunkCodebase, chunkFromIndex, chunkFromIndexCooperative, chunkFromIndexStreaming } from './code/chunk.js';
import { discoverCodeFiles } from './code/discover.js';
import { previewCodebaseSize } from './code/preview.js';
import { buildCodebaseIndexIsolated, chunkFromStoreIsolated } from './code/isolated.js';
import { checkCodeSyntax } from './code/check.js';
import { parseSlimIndex, slimifyIndex, slimifyIndexCooperative, tryParseSlimIndex, validateSlimIndex, } from './code/slim.js';
import { summarizeModule, toMermaid } from './code/query.js';
import { searchSymbols } from './code/search.js';
import { buildCodeContext } from './code/context.js';
import { buildChangedRepoMap, buildRepoMap } from './code/map.js';
import { buildDirectoryTree } from './code/tree.js';
import { readCodeSource } from './code/source.js';
import { hashCodeSymbols } from './code/hash.js';
import { readCodeDocs } from './code/doc.js';
import { listCodeSeams, rebaseCochangeToIndexRoot, resolveCodeSeams, seamKeyFor } from './code/seams.js';
import { rankNodes, rankNodesCached, seedRankCache } from './code/rank.js';
import { computeCodeDiff } from './code/diff.js';
import { listCodeFactPredicates, parseCodeFactPredicate, parseLayerManifest, queryCodeFacts, readLayerManifest, } from './code/facts.js';
import { inferStructuralLanguage, parseTreeSitterAst, queryTreeSitter, resolveStructuralLanguage, structuralLanguages, } from './code/structural.js';
import { parseCodeRulesManifest, queryCodePattern, queryCustomCodeFacts } from './code/rules.js';
import { collectGitBlobStructureBatch, inspectGitBlobStructures } from './code/blob-structure.js';
import { collectAtomsRun, emitAtoms } from './code/atoms.js';
import { collectGitCoordinateVerificationBatch, verifyGitCoordinates } from './code/coordinates.js';
import { collectEntityGraph, exportEntityGraph } from './code/entity-graph.js';
import { computeEntityObligations, computeEntityDiff, createEntitySession, entityCochange, entityDrift, entityDriftForDocuments, rankEntityHotspots, verifyEntityAnchors, } from './code/entity/index.js';
import { createEntitySessionIsolated } from './code/entity/isolated.js';
import { getGitChangedFiles, getGitChurnSummary, getGitCochange, getGitCommitHistory, getGitDiffFunctionContext, getGitDiffHunks, getGitDiffPatch, getGitDiffSummary, getGitFileHistory, getGitUntrackedFiles, resolveGitRange, } from './git/api.js';
import { captureGitRepository } from './git/capture.js';
import { inspectDocument } from './doc/inspect.js';
import { discoverDocuments } from './doc/discover.js';
import { chunkDocument, chunkDocumentFromMarkdown } from './doc/chunk.js';
import { inspectWorkbook } from './sheet/inspect.js';
import { inspectPresentation } from './slide/inspect.js';
import { inspectTables } from './table/inspect.js';
import { analyzeWorkspace } from './workspace/analyze.js';
import { describeWorkspace } from './workspace/describe.js';
import { inspectWorkspaceDocumentSet } from './workspace/documents.js';
import { prepareWorkspaceContext } from './workspace/prepare.js';
import { bundleWorkspace, bundleWorkspaceIsolated } from './workspace/bundle.js';
import { health } from './health.js';
import { probe } from './probe.js';
import { readInlineSource } from './code/source-inline.js';
import { clusterCodeModules, CodeModuleClusterOptionsSchema, CodeModuleClusterResultSchema } from './code/clusters.js';
import { traceCodeFlows, CodeFlowTraceOptionsSchema, CodeFlowTraceResultSchema } from './code/flows.js';
export { RepoMapLayoutSchema, RepoMapStableDocumentSchema, RepoMapStableEntrySchema } from './code/map.js';
export { buildChangedRepoMap, buildCodebaseIndex, buildCodebaseIndexWithStats, buildDirectoryTree, clusterCodeModules, CodeModuleClusterOptionsSchema, CodeModuleClusterResultSchema, traceCodeFlows, CodeFlowTraceOptionsSchema, CodeFlowTraceResultSchema, buildCodebaseIndexIsolated, buildRepoMap, computeCodeDiff, queryCodeFacts, listCodeFactPredicates, parseCodeFactPredicate, parseLayerManifest, readLayerManifest, queryTreeSitter, parseTreeSitterAst, queryCodePattern, queryCustomCodeFacts, parseCodeRulesManifest, structuralLanguages, resolveStructuralLanguage, inferStructuralLanguage, readCodeSource, hashCodeSymbols, readCodeDocs, listCodeSeams, rebaseCochangeToIndexRoot, resolveCodeSeams, seamKeyFor, rankNodes, rankNodesCached, seedRankCache, parseCodeFiles, assembleCodebaseIndex, assembleCodebaseIndexCooperative, DEFAULT_PARSE_CONCURRENCY, chunkCodebase, chunkFromIndex, chunkFromIndexCooperative, chunkFromIndexStreaming, chunkFromStoreIsolated, checkCodeSyntax, createCodeQuerySession, createCodeQuerySessionFromIndex, discoverCodeFiles, openChunkCodeIndexStore, openChunkCodeIndexStore as openChunkStore, openCodeIndexStore, parseSlimIndex, previewCodebaseSize, slimifyIndex, slimifyIndexCooperative, buildCodeContext, searchSymbols, summarizeModule, toMermaid, tryParseSlimIndex, validateSlimIndex, collectGitBlobStructureBatch, inspectGitBlobStructures, collectAtomsRun, emitAtoms, collectGitCoordinateVerificationBatch, verifyGitCoordinates, collectEntityGraph, exportEntityGraph, readInlineSource, };
export { AtomChangeFlagsV1Schema, AtomChangeFlagsV2Schema, AtomCoordinateV1Schema, AtomCoverageSchema, AtomDiagnosticV1Schema, AtomDiagnosticV2Schema, AtomEntityBoundsV1Schema, AtomEntityChangeV1Schema, AtomEntityChangeV2Schema, AtomEpisodeV1Schema, AtomEpisodeV2Schema, AtomFooterV1Schema, AtomFooterV2Schema, AtomHeaderV1Schema, AtomHeaderV2Schema, AtomLineageHeadV1Schema, AtomLineageHeadV2Schema, AtomMatchEvidenceV1Schema, AtomMatchEvidenceV2Schema, AtomMeasuresV1Schema, AtomModulePairV1Schema, AtomModulePairsTouchedV1Schema, AtomRevertEdgeV1Schema, AtomSourceSpanV1Schema, OccAtomsEventV1Schema, OccAtomsEventV2Schema, OccAtomsRunV1Schema, OccAtomsRunV2Schema, collectAtomsRunV1, decodeAtomsCursor, decodeAtomsCursorV1, } from './code/atoms.js';
export { DEFAULT_GIT_COORDINATE_VERIFICATION_OPTIONS, GIT_SPAN_DIGEST_ALGORITHM, GitCoordinateCoverageV1Schema, GitCoordinateSourceSpanV1Schema, GitCoordinateVerificationBatchV1Schema, GitCoordinateVerificationDiagnosticV1Schema, GitCoordinateVerificationEventV1Schema, GitCoordinateVerificationFooterV1Schema, GitCoordinateVerificationHeaderV1Schema, GitCoordinateVerificationOptionsSchema, GitCoordinateVerificationRequestV1Schema, GitCoordinateVerificationResultV1Schema, GitNativeCoordinateV1Schema, computeGitSpanDigest, selectGitCoordinateSpan, } from './code/coordinates.js';
export { EntityGraphDiagnosticV1Schema, EntityGraphDiagnosticV2Schema, EntityGraphEdgeV1Schema, EntityGraphEdgeV2Schema, EntityGraphFooterV1Schema, EntityGraphFooterV2Schema, EntityGraphHeaderV1Schema, EntityGraphHeaderV2Schema, EntityGraphNodeV1Schema, EntityGraphNodeV2Schema, EntityGraphSeamV1Schema, EntityGraphSeamV2Schema, OccEntityGraphEventV1Schema, OccEntityGraphEventV2Schema, OccEntityGraphRunV1Schema, OccEntityGraphRunV2Schema, collectEntityGraphV1, } from './code/entity-graph.js';
export { DEFAULT_GIT_BLOB_STRUCTURE_OPTIONS, GitBlobDeclarationV1Schema, GitBlobDeclarationV2Schema, GitBlobSourceSpanV1Schema, GitBlobSourceSpanV2Schema, GitBlobStructureBatchEventV1Schema, GitBlobStructureBatchEventV2Schema, GitBlobStructureBatchFooterV1Schema, GitBlobStructureBatchFooterV2Schema, GitBlobStructureBatchHeaderV1Schema, GitBlobStructureBatchHeaderV2Schema, GitBlobStructureBatchV1Schema, GitBlobStructureBatchV2Schema, GitBlobStructureDiagnosticV1Schema, GitBlobStructureDiagnosticV2Schema, GitBlobStructureOptionsSchema, GitBlobStructureProvenanceV1Schema, GitBlobStructureProvenanceV2Schema, GitBlobStructureRequestV1Schema, GitBlobStructureRequestV2Schema, GitBlobStructureResultV1Schema, GitBlobStructureResultV2Schema, GitBlobSyntacticFactV1Schema, GitBlobSyntacticFactV2Schema, collectGitBlobStructureBatchV1, } from './code/blob-structure.js';
export { DEFAULT_EXCLUDE_DIRS } from './utils.js';
export { CodeIndexBudgetExceededError } from './code/build.js';
export { joinHunksToSymbols } from './code/diff.js';
export { InvalidInputError, OccAbortError, OCC_ABORTED, OCC_INVALID_INPUT, isInvalidInputError, isOccAbortError, } from './errors.js';
export { GitError, detectDefaultBase, gitIsAncestor, gitMergeBase, gitRootCommits, gitVersion, preflightRepo, resolveDiffRange, runGit, runGitRaw, } from './git/client.js';
export { getGitChangedFiles, getGitChurnSummary, getGitCochange, getGitCommitHistory, getGitDiffFunctionContext, getGitDiffHunks, getGitDiffPatch, getGitDiffSummary, getGitFileHistory, getGitUntrackedFiles, resolveGitRange, } from './git/api.js';
export { GitCaptureActorV1Schema, GitCaptureChangeV1Schema, GitCaptureCommitV1Schema, GitCaptureDeltaEndV1Schema, GitCaptureDeltaStartV1Schema, GitCaptureDiagnosticCodeSchema, GitCaptureDiagnosticV1Schema, GitCaptureError, GitCaptureEventV1Schema, GitCaptureFooterV1Schema, GitCaptureHeaderV1Schema, GitCaptureObjectFormatSchema, GitCaptureObjectIdSchema, GitCapturePathV1Schema, GitCaptureRequestV1Schema, GitCaptureTreeEntryV1Schema, captureGitRepository, } from './git/capture.js';
export { health } from './health.js';
export { probe, probeDocumentParsers } from './probe.js';
export { buildTestSelector, buildLiveEntities, computeEntityDiff, computeEntityObligations, classifyEntityDiffSemantics, classifyWholeDiffFile, classifyWholeDiffSemantics, createEntitySession, createEntitySessionIsolated, entityBlame, entityCochange, entityDrift, entityDriftForDocuments, entityContext, entityContextMany, entityHistory, entityImpact, rankEntityHotspots, captureEntityAnchor, deriveAnchorVerdict, verifyEntityAnchors, resolveEntityHandle, EntityAnchorCaptureHandleSchema, EntityAnchorExpectedSchema, EntityAnchorInputSchema, EntityAnchorSymbolKeySchema, EntityAnchorUnknownReasonSchema, EntityAnchorVerdictSchema, VerifyEntityAnchorsOptionsSchema, ENTITY_ANCHOR_DEFAULT_MAX_ANCHORS, ENTITY_ANCHOR_HARD_MAX_ANCHORS, ENTITY_ANCHOR_MAX_DISTINCT_BASE_COMMITS, formatAnchorCapture, formatEntityBlame, formatEntityCochange, formatEntityContext, formatEntityDiff, formatEntityDrift, formatEntityHistory, formatEntityHotspots, formatEntityImpact, formatEntityList, formatEntityRef, formatEntityStatus, ENTITY_EVIDENCE_GAP_CODES, ENTITY_EVIDENCE_GAP_REASON_LIMIT, countEntityAmbiguityEvidence, summarizeEntityEvidenceGaps, ENTITY_CST_PROOF, ENTITY_LINEAGE_ID_VERSION, ENTITY_PARSER_CONTRACT, ENTITY_PARSER_CONTRACT_ID, ENTITY_SIGNATURE_PROOF, EntitySignatureEvidenceV2Schema, EntitySourceSpanV2Schema, EntitySyntaxEvidenceV2Schema, WHOLE_DIFF_GRAMMAR_MANIFEST, WHOLE_DIFF_GRAMMAR_MANIFEST_DIGEST, WHOLE_DIFF_GRAMMAR_MANIFEST_VERSION, WHOLE_DIFF_COMMENT_NODE_TYPES, WHOLE_DIFF_SEMANTIC_PROOF, WHOLE_DIFF_TRIVIA_POLICY, WHOLE_DIFF_TRIVIA_POLICY_DIGEST, WHOLE_DIFF_TRIVIA_POLICY_VERSION, HistoricalEntityRefV1Schema, HistoricalEntityRefV2Schema, OccBlobLineageBlobV1Schema, OccBlobLineageCoverageV1Schema, OccBlobLineageDeclarationV1Schema, OccBlobLineageDiagnosticCodeV1Schema, OccBlobLineageDiagnosticV1Schema, OccBlobLineageErrorResultV1Schema, OccBlobLineageInputV1Schema, OccBlobLineageResolvedResultV1Schema, OccBlobLineageResultV1Schema, OccBlobLineageBlobV2Schema, OccBlobLineageCompatibleInputSchema, OccBlobLineageCoverageV2Schema, OccBlobLineageDeclarationV2Schema, OccBlobLineageDiagnosticCodeV2Schema, OccBlobLineageDiagnosticV2Schema, OccBlobLineageErrorResultV2Schema, OccBlobLineageInputV2Schema, OccBlobLineageResolvedResultV2Schema, OccBlobLineageResultV2Schema, OccWholeDiffProofSchema, isEntityEvidenceGapDiagnostic, openEntityStore, resolveEntity, resolveEntityCacheDir, resolveWholeDiffGrammar, } from './code/entity/index.js';
export { createTestRecognizer, isTestPath, DEFAULT_TEST_DIRECTORIES, DEFAULT_TEST_FILE_PATTERNS, } from './code/tests.js';
export { inspectTables } from './table/inspect.js';
export { chunkDocument, chunkDocumentFromMarkdown } from './doc/chunk.js';
export { PROGRESS_PHASES, isProgressPhase } from './progress-event.js';
export { prepareProgressToProgressEvent } from './workspace/prepare-types.js';
export { bundleWorkspace, bundleWorkspaceIsolated } from './workspace/bundle.js';
export { CODEBASE_INDEX_SCHEMA_VERSION, toNormalizedSymbolKind } from './code/types.js';
export { buildTokenBudgetRefusal, describeProjectedFit, isTokenBudgetRefusal, NarrowingOptionSchema, renderTokenBudgetRefusal, TokenBudgetRefusalError, TokenBudgetRefusalSchema, } from './code/narrowing.js';
export function createOcc() {
    return {
        code: {
            buildIndex: buildCodebaseIndex,
            buildIndexIsolated: buildCodebaseIndexIsolated,
            createSession: createCodeQuerySession,
            createSessionFromIndex: createCodeQuerySessionFromIndex,
            openStore: openCodeIndexStore,
            openChunkStore: openChunkCodeIndexStore,
            previewSize: previewCodebaseSize,
            discover: discoverCodeFiles,
            chunk: chunkCodebase,
            chunkFromIndex: chunkFromIndex,
            chunkFromIndexCooperative,
            chunkFromIndexStreaming,
            chunkFromStoreIsolated,
            summarizeModule,
            searchSymbols,
            context: buildCodeContext,
            toMermaid,
            source: readCodeSource,
            inlineSource: readInlineSource,
            symbolHash: hashCodeSymbols,
            doc: readCodeDocs,
            seams: listCodeSeams,
            resolveSeams: resolveCodeSeams,
            check: checkCodeSyntax,
            map: buildRepoMap,
            mapChanged: buildChangedRepoMap,
            directoryTree: buildDirectoryTree,
            clusters: clusterCodeModules,
            flows: traceCodeFlows,
            diff: computeCodeDiff,
            facts: queryCodeFacts,
            factPredicates: listCodeFactPredicates,
            tsquery: queryTreeSitter,
            ast: parseTreeSitterAst,
            pattern: queryCodePattern,
            rulesFacts: queryCustomCodeFacts,
            parseRulesManifest: parseCodeRulesManifest,
            rank: rankNodes,
            rankCached: rankNodesCached,
            seedRankCache,
            slimifyIndex,
            slimifyIndexCooperative,
            parseSlimIndex,
            tryParseSlimIndex,
            validateSlimIndex,
            createEntitySession,
            createEntitySessionIsolated,
            entityDiff: computeEntityDiff,
            entityObligations: computeEntityObligations,
            entityHotspots: rankEntityHotspots,
            entityCochange,
            entityDrift,
            entityDriftForDocuments,
            verifyEntityAnchors,
            collectGitBlobBatch: collectGitBlobStructureBatch,
            inspectGitBlobs: inspectGitBlobStructures,
            collectAtoms: collectAtomsRun,
            atoms: emitAtoms,
            collectCoordinateVerification: collectGitCoordinateVerificationBatch,
            verifyCoordinates: verifyGitCoordinates,
            collectEntityGraph,
            entityGraph: exportEntityGraph,
        },
        git: {
            resolveRange: resolveGitRange,
            changedFiles: getGitChangedFiles,
            diffSummary: getGitDiffSummary,
            diffPatch: getGitDiffPatch,
            diffHunks: getGitDiffHunks,
            diffFunctionContext: getGitDiffFunctionContext,
            commitHistory: getGitCommitHistory,
            fileHistory: getGitFileHistory,
            churnSummary: getGitChurnSummary,
            cochange: getGitCochange,
            untrackedFiles: getGitUntrackedFiles,
            capture: captureGitRepository,
        },
        workspace: {
            analyze: analyzeWorkspace,
            describe: describeWorkspace,
            inspectDocuments: inspectWorkspaceDocumentSet,
            prepare: prepareWorkspaceContext,
            bundle: bundleWorkspace,
            bundleIsolated: bundleWorkspaceIsolated,
        },
        doc: {
            inspect: inspectDocument,
            discover: discoverDocuments,
            chunk: chunkDocument,
            chunkFromMarkdown: chunkDocumentFromMarkdown,
        },
        sheet: {
            inspect: inspectWorkbook,
        },
        slide: {
            inspect: inspectPresentation,
        },
        table: {
            inspect: inspectTables,
        },
        health,
        probe,
    };
}
//# sourceMappingURL=index.js.map