/** * @cleocode/core — CLEO core business logic kernel. * * This is the standalone package consumers install for programmatic * task management, sessions, memory, orchestration, and lifecycle. * * Import patterns: * // Pattern 1: Facade (recommended) * import { Cleo } from '@cleocode/core'; * const cleo = await Cleo.init('./project'); * * // Pattern 2: Namespace access * import { tasks, sessions, memory } from '@cleocode/core'; * * // Pattern 3: Direct function imports (tree-shakeable) * import { addTask, startSession, observeBrain } from '@cleocode/core'; * * @package @cleocode/core */ import './lib/suppress-sqlite-warning.js'; export * from '@cleocode/contracts'; export * as adapters from './adapters/index.js'; export * as admin from './admin/index.js'; export * as adrs from './adrs/index.js'; export * as agents from './agents/index.js'; export * as caamp from './caamp/index.js'; export * as changesets from './changesets/index.js'; export * as checkGates from './check/index.js'; export * as code from './code/index.js'; export * as codebaseMap from './codebase-map/index.js'; export * as compliance from './compliance/index.js'; export * as conduit from './conduit/index.js'; export * as context from './context/index.js'; export * as gc from './gc/index.js'; export * as go from './go/index.js'; export * as goal from './goal/index.js'; export * as harness from './harness/index.js'; export * as coreHooks from './hooks/index.js'; export * as identity from './identity/index.js'; export * as inject from './inject/index.js'; export * as intelligence from './intelligence/index.js'; export * as issue from './issue/index.js'; export * as lib from './lib/index.js'; export * as lifecycle from './lifecycle/index.js'; export * as llm from './llm/index.js'; export * as memory from './memory/index.js'; export * as metrics from './metrics/index.js'; export * as migration from './migration/index.js'; export * as nexus from './nexus/index.js'; export * as observability from './observability/index.js'; export * as orchestration from './orchestration/index.js'; export * as otel from './otel/index.js'; export * as phases from './phases/index.js'; export * as pipeline from './pipeline/index.js'; /** * Canonical dispatch-domain alias for the `playbooks` module (ADR-057 D5 · T1470). * Consumers can do: `import { playbook } from '@cleocode/core'`. * DO NOT REMOVE — complements (does not replace) the `playbooks` export below. */ export * as playbook from './playbooks/index.js'; export * as playbooks from './playbooks/index.js'; export { listPlaybooks, PlaybookNotFoundError, type PlaybookTier, type ResolvedPlaybook, type ResolvePlaybookOptions, resolvePlaybook, } from './playbooks/playbook-resolver.js'; export * as reconciliation from './reconciliation/index.js'; export * as release from './release/index.js'; export * as remote from './remote/index.js'; export * as research from './research/index.js'; export * as roadmap from './roadmap/index.js'; export * as routing from './routing/index.js'; export * as sagas from './sagas/index.js'; export * as security from './security/index.js'; export * as sentient from './sentient/index.js'; export * as sequence from './sequence/index.js'; /** * Canonical dispatch-domain alias for the `sessions` module (ADR-057 D5 · T1470). * Consumers can do: `import { session } from '@cleocode/core'`. * DO NOT REMOVE — complements (does not replace) the `sessions` export below. */ export * as session from './sessions/index.js'; export * as sessions from './sessions/index.js'; export * as skills from './skills/index.js'; export * as snapshot from './snapshot/index.js'; export * as spawn from './spawn/index.js'; export * as stats from './stats/index.js'; export * as sticky from './sticky/index.js'; export * as system from './system/index.js'; export * as taskWork from './task-work/index.js'; export * as tasks from './tasks/index.js'; export * as telemetry from './telemetry/index.js'; export * as templates from './templates/index.js'; export * as ui from './ui/index.js'; /** * Canonical dispatch-domain alias for the `validation` module (ADR-057 D5 · T1470). * Consumers can do: `import { check } from '@cleocode/core'`. * DO NOT REMOVE — complements (does not replace) the `validation` export below. */ export * as check from './validation/index.js'; export * as validation from './validation/index.js'; export * as workGraph from './workgraph/index.js'; export { adrStatusSchema, agentInstanceStatusSchema, agentTypeSchema, brainConfidenceLevelSchema, brainDecisionTypeSchema, brainEdgeTypeSchema, brainImpactLevelSchema, brainLinkTypeSchema, brainMemoryTypeSchema, brainNodeTypeSchema, brainObservationSourceTypeSchema, brainObservationTypeSchema, brainOutcomeTypeSchema, brainPatternTypeSchema, brainStickyColorSchema, brainStickyPrioritySchema, brainStickyStatusSchema, externalLinkTypeSchema, gateStatusSchema, insertAgentErrorLogSchema, insertAgentInstanceSchema, insertExternalTaskLinkSchema, insertPipelineManifestSchema, insertReleaseSchema, insertSessionSchema, insertTaskSchema, lifecycleEvidenceTypeSchema, lifecycleGateResultSchema, lifecyclePipelineStatusSchema, lifecycleStageNameSchema, lifecycleStageStatusSchema, lifecycleTransitionTypeSchema, manifestStatusSchema, selectAgentErrorLogSchema, selectAgentInstanceSchema, selectExternalTaskLinkSchema, selectPipelineManifestSchema, selectReleaseSchema, selectSessionSchema, selectTaskSchema, sessionStatusSchema, syncDirectionSchema, taskPrioritySchema, taskRelationTypeSchema, taskSizeSchema, taskStatusSchema, taskTypeSchema, tokenUsageConfidenceSchema, tokenUsageMethodSchema, tokenUsageTransportSchema, } from './store/validation-schemas.js'; export type { AdoptedSkillRowData, DoctorAdoptCliAdapters, DoctorAdoptOptions, DoctorAdoptOrphanRecord, DoctorAdoptResult, } from './skills/doctor-adopt.js'; export { runDoctorAdopt } from './skills/doctor-adopt.js'; export { AgentsSkillsRealDirError, type DoctorBridgeOptions, type DoctorBridgeResult, runDoctorBridge, } from './skills/doctor-bridge.js'; export { createDataAccessor, getAccessor, getTaskAccessor, } from './store/data-accessor.js'; export { type CleoDbSnapshotHandle, type CleoDbSnapshotOptions, openCleoDbSnapshot, } from './store/open-cleo-db.js'; export type { AgentServiceGrantRow, NewAgentServiceGrantRow, NewServiceConfigRow, NewServiceConnectionRow, ServiceConfigRow, ServiceConnectionRow, ServiceConnectionStatus, } from './store/schema/cleo-global/services.js'; export type { NewSkillRow, SkillRow, SkillSourceType } from './store/schema/skills-schema.js'; export { type ConnectServiceParams, connectService, type DecryptedConnection, type DeleteConnectionResult, deleteConnectionCascade, getConnection, grantAgentAccess, listConnections, loadDecryptedTokenBlob, openServiceVaultAtPath, type ResolveServiceParams, resolveSealedConnection, revokeConnection, type ServiceConnectionView, type ServiceTokenBlob, type ServiceVaultDeps, updateConnectionTokens, } from './store/service-connections-accessor.js'; export { matchServiceHost, matchServiceUrl, type ServiceHostMatch, } from './store/service-host-matcher.js'; export { type InjectedRequest, type InjectionDiagnostic, type InjectionResult, type InjectServiceCredentialsParams, injectionRulesForStrategy, injectServiceCredentials, type OutboundRequest, } from './store/service-injection.js'; export { type BuildAuthUrlOptions, type BuildAuthUrlResult, buildAuthUrl, type ExchangeCodeOptions, type ExchangeCodeResult, exchangeCode, type FetchLike, type RefreshAccessTokenOptions, type RefreshClientCredentials, type RefreshVariantSecrets, refreshAccessToken, resolveProviderDef, type SelfHealOptions, type SelfHealResult, type ServiceOAuthDeps, selfHealConnection, } from './store/service-oauth.js'; export { evaluateServiceAccess, parseSessionPolicy, type ServiceGrant, type SessionPolicy, type SessionRateLimit, type TrustDecision, type TrustDenyReason, type TrustEvalContext, } from './store/service-trust-gate.js'; export { getSkillRow, listSkillsBySource, openSkillsDb, upsertSkillRow, } from './store/skills-db.js'; export { applyPerfPragmas, type PerfPragmaOptions, } from './store/sqlite-pragmas.js'; export { appendContractViolation, CONTRACT_VIOLATIONS_FILE, queryAudit } from './audit.js'; export { pruneAuditLog } from './audit-prune.js'; export { type ApplyPresetResult, applyStrictnessPreset, getConfigValue, getRawConfig, getRawConfigValue, listStrictnessPresets, loadConfig, type PresetDefinition, parseConfigValue, STRICTNESS_PRESETS, type StrictnessPreset, setConfigValue, } from './config.js'; export { CORE_PROTECTED_FILES } from './constants.js'; export { type ClassificationSignal, classifyProject, type ProjectClassification, } from './discovery.js'; export type { EngineErrorPayload, EngineFailure, EngineResult, EngineSuccess, } from './engine-result.js'; export { EngineResultError, engineError, engineSuccess, unwrap } from './engine-result.js'; export type { ErrorDefinition } from './error-catalog.js'; export { ERROR_CATALOG, getAllErrorDefinitions, getErrorDefinition, getErrorDefinitionByLafsCode, } from './error-catalog.js'; export { getCleoErrorRegistry, getRegistryEntry, getRegistryEntryByLafsCode, isCleoRegisteredCode, } from './error-registry.js'; export type { ProblemDetails } from './errors.js'; export { CleoError } from './errors.js'; export { type AgentIdentity, type AuditSignature, type CleoIdentityFile, getCleoIdentity, getCleoIdentityPath, signAuditLine, verifyAuditLine, } from './identity/index.js'; export type { ResolvedToolPlaceholders, ScaffoldReleaseConfig, ScaffoldWorkflowOutcome, ScaffoldWorkflowsOptions, ScaffoldWorkflowsResult, WorkflowName, } from './init/scaffold-workflows.js'; export { getGitHookTemplatesDir, getWorkflowTemplatesDir, listAvailableWorkflowTemplates, scaffoldWorkflows, } from './init/scaffold-workflows.js'; export type { InitOptions, InitResult } from './init.js'; export { ensureInitialized, getVersion, initProject } from './init.js'; export { checkSchema, validateAgainstSchema } from './json-schema-validator.js'; export type { LoggerConfig } from './logger.js'; export { closeLogger, getLogDir, getLogger, initLogger, isLoggerQuiet, setLoggerQuiet, } from './logger.js'; export type { FormatOptions } from './output.js'; export { drainWarnings, formatError, formatOutput, formatSuccess, pushWarning } from './output.js'; export { createPage, paginate } from './pagination.js'; export { assertProjectInitialized, detectStrayCleoDb, getCanonicalTemplatesTildePath, getCleoCacheDir, getCleoCantWorkflowsDir, getCleoConfigDir, getCleoDir, getCleoDirAbsolute, getCleoGlobalAgentsDir, getCleoGlobalJustfilePath, getCleoGlobalRecipesDir, getCleoHome, getCleoLogDir, getCleoPiExtensionsDir, getCleoTempDir, getCleoTemplatesTildePath, getConfigPath, getGlobalConfigPath, getProjectRoot, isProjectInitialized, resolveCanonicalCleoDir, resolveOrCwd, resolveProjectByCwd, resolveProjectPath, resolveWorktreeFilePath, resolveWorktreeRouting, runWithWorktreeScopeFromEnv, validateProjectRoot, type WorktreeRouting, } from './paths.js'; export type { Platform, SystemInfo } from './platform.js'; export { detectPlatform, getIsoTimestamp, getSystemInfo, MINIMUM_NODE_MAJOR, PLATFORM, sha256, } from './platform.js'; export type { ProjectInfo } from './project-info.js'; export { getProjectInfo, getProjectInfoSync, updateProjectName } from './project-info.js'; export type { MoveProjectResult, RenameProjectResult, ReregisterProjectResult, } from './project-lifecycle.js'; export * as projectLifecycle from './project-lifecycle.js'; export { moveProject, renameProject, reregisterProject, } from './project-lifecycle.js'; export { ensureCleoOsHub, ensureCleoStructure, ensureGlobalHome, ensureGlobalScaffold, ensureSqliteDb, fileExists, getCleoVersion, getPackageRoot, type MigrateWorktreeIncludeResult, migrateWorktreeIncludeFile, } from './scaffold.js'; export { AdapterManager } from './adapters/index.js'; export type { ListAgentsOptions, ListAgentsResult, RotateAgentKeyResult, } from './agents/public-api.js'; export { getAgent, listAgents, removeAgent, rotateAgentKey, } from './agents/public-api.js'; export type { BootstrapContext, BootstrapOptions } from './bootstrap.js'; export { bootstrapGlobalCleo } from './bootstrap.js'; export type { AdminAPI, AgentsAPI, CleoInitOptions, IntelligenceAPI, LifecycleAPI, MemoryAPI, NexusAPI, OrchestrationAPI, ReleaseAPI, SessionsAPI, StickyAPI, SyncAPI, TasksAPI, } from './cleo.js'; export { Cleo } from './cleo.js'; export { CLEO_HOOK_NAMES, CLEO_HOOK_SENTINEL, type CleoHookName, type InstallCleoHooksOptions, type InstallCleoHooksResult, installCleoHooks, isCleoManagedHook, resolveGitDir, resolveHooksDir, } from './git/hooks-install.js'; export type { HookMatrixResult } from './hooks/engine-ops.js'; export { HookRegistry, hooks } from './hooks/registry.js'; export { computeTaskRollup, computeTaskRollups, type RollupExecStatus, type TaskRollup, } from './lifecycle/rollup.js'; export type { PopulateEmbeddingsOptions, PopulateEmbeddingsResult, } from './memory/brain-retrieval.js'; export { buildRetrievalBundle, fetchBrainEntries, observeBrain, populateEmbeddings, searchBrainCompact, timelineBrain, } from './memory/brain-retrieval.js'; export { searchBrain } from './memory/brain-search.js'; export type { BrainObservation, DecisionRecord, FindMemoryEntriesOptions, FindMemoryEntriesResult, GetDecisionsOptions, GetLearningsOptions, GetMemoryGraphOptions, GetObservationsOptions, GetObservationsResult, GetPatternsOptions, GetPendingVerifyOptions, LearningRecord, MemoryGraphStats, MemorySearchHit, PatternRecord, PendingVerifyEntry, PendingVerifyResult, TableTierCounts, TierStatsResult, UpcomingPromotion, } from './memory/public-api.js'; export { findMemoryEntries, getDecisions, getLearnings, getMemoryGraph, getObservations, getPatterns, getPendingVerify, getTierStats, } from './memory/public-api.js'; export type { DecisionQualityInput, LearningQualityInput, ObservationQualityInput, PatternQualityInput, } from './memory/quality-scoring.js'; export { computeDecisionQuality, computeLearningQuality, computeObservationQuality, computePatternQuality, QUALITY_SCORE_THRESHOLD, } from './memory/quality-scoring.js'; export { compareSemver, detectVersion, getMigrationStatus, runAllMigrations, runMigration, } from './migration/index.js'; export type { NextDirectives } from './mvi-helpers.js'; export { memoryFindHitNext, sessionListItemNext, sessionStartNext, taskListItemNext, taskShowNext, } from './mvi-helpers.js'; export { reconcile } from './reconciliation/index.js'; export * from './render/index.js'; export type { BootstrapDaemonOptions, StudioStatus, StudioSupervisorOptions, } from './sentient/daemon.js'; export { StudioSupervisor } from './sentient/daemon.js'; export type { DaemonInstallResult, DaemonStatus, InstallDaemonOptions, } from './sentient/daemon-api.js'; export { getDaemonStatus, installDaemon, startDaemon, stopDaemon, uninstallDaemon, updateDaemon, } from './sentient/daemon-api.js'; export type { DriftReport } from './sessions/index.js'; export { detectSessionDrift, endSession, listSessions, resumeSession, sessionStatus, startSession, } from './sessions/index.js'; export type { RestoreOptions, SerializeOptions, SessionSnapshot, SnapshotDecision, SnapshotObservation, SnapshotTaskContext, } from './sessions/snapshot.js'; export { restoreSession, serializeSession } from './sessions/snapshot.js'; export { getMigrationStatus as getSystemMigrationStatus } from './system/migrate.js'; export { checkStorageMigration } from './system/storage-preflight.js'; export { currentTask, startTask, stopTask } from './task-work/index.js'; export { addTask } from './tasks/add.js'; export { archiveTasks } from './tasks/archive.js'; export { completeTask } from './tasks/complete.js'; export { deleteTask } from './tasks/delete.js'; export { type DepGraphIssue, type DepGraphIssueCode, type DepGraphValidateResult, type DepValidateScope, detectCrossEpicGaps, detectOrphans, detectStaleDeps, nearestEpic, runValidation, validateDepGraph, } from './tasks/dep-graph-validator.js'; export { findTasks } from './tasks/find.js'; export { normalizeTaskId } from './tasks/id-generator.js'; export { type InferAddParamsInput, type InferAddParamsResult, inferFilesViaGitNexus, inferTaskAddParams, parseAcceptanceCriteria, } from './tasks/infer-add-params.js'; export { listTasks } from './tasks/list.js'; export { getPipelineStageOrder, isPipelineTransitionForward, isTerminalPipelineStage, isValidPipelineStage, TASK_PIPELINE_STAGES, type TaskPipelineStage, TERMINAL_PIPELINE_STAGES, validatePipelineStage, validatePipelineTransition, } from './tasks/pipeline-stage.js'; export { type AppendSeverityAttestationOptions, appendSignedSeverityAttestation, canonicalAttestationJson, LEGACY_BUG_SEVERITY_AUDIT_FILE, loadOwnerPubkeys, SEVERITY_ATTESTATION_AUDIT_FILE, type SeverityAttestation, } from './tasks/severity-attestation.js'; export { showTask } from './tasks/show.js'; export { updateTask } from './tasks/update.js'; export { DefaultVariableResolver, defaultResolver as defaultVariableResolver, } from './agents/variable-substitution.js'; export { ConfigDomainHandler, type ConfigGetResult, type ConfigListResult, type ConfigUnsetResult, type ConfigValidateResult, configDomainHandler, } from './dispatch/config-domain-handler.js'; export { defineEnsuresSchema, type EnsuresSchemaSpec, getEnsuresSchema, listEnsuresSchemaNames, } from './dispatch/contracts/ensures-schema.js'; export { getInputContract, INPUT_CONTRACTS } from './dispatch/contracts/input-contracts.js'; export { getOutputContract, OUTPUT_CONTRACTS } from './dispatch/contracts/output-contracts.js'; export { describeOperation, type OperationDescriptor, } from './dispatch/describe-operation.js'; export { applyMutateProjection, type MinimalMutateEnvelope, MUTATE_PROJECTION_PLANS, type MutateProjectionPlan, } from './dispatch/mutate-projection.js'; export { applyProjectionPlan, PROJECTION_PLANS, type ProjectionKind, type ProjectionMode, type ProjectionPlan, type ProjectMVIOptions, projectMVI, projectMvi, projectMviList, resolveProjectionMode, } from './dispatch/mvi-projection.js'; export { extractByJsonPointer, isJsonPointer, type PointerResult, serializePointerValue, } from './dispatch/projection.js'; export { attachSuggestedNext, buildTasksAddBatchSuggestedNext, buildTasksAddSuggestedNext, buildTasksCompleteSuggestedNext, buildTasksFindSuggestedNext, buildTasksUpdateSuggestedNext, type SuggestedNextBuilder, TASKS_SUGGESTED_NEXT_BUILDERS, } from './dispatch/suggested-next.js'; export { validateOperationInput } from './dispatch/validation.js'; export type { ClassifyOptions, ClassifyResult, GrillTrigger, ReadinessResult, ReadinessSignals, ReadinessVerdict, } from './orchestration/index.js'; export { classifyReadiness, classifyTask, } from './orchestration/index.js'; export { type GenerateOpenApiOptions, generateOpenApi, type OpenApiDocument, type OpenApiInfo, type OpenApiMediaType, type OpenApiOperation, type OpenApiPathItem, type OpenApiRequestBody, type OpenApiResponse, } from './runtime/openapi/index.js'; export { mergeConfigJson, WIZARD_SECTION_IDS } from './setup/config-json-merge.js'; export { CLEO_ENC_MAGIC, detectEncryption, ENC_MIN_LENGTH, ENC_VERSION_OFFSET, ENC_VERSION_SUPPORTED, extractManifestFromTar, fmtBytes, verifyManifestHash, } from './store/backup-inspect.js'; export type { ParsedResolution, RestoreConflictFilename, } from './store/restore-conflict-parser.js'; export { parseConflictReport, parseMarkdownValue, RESTORE_VALID_JSON_FILENAMES, setAtPath, } from './store/restore-conflict-parser.js'; //# sourceMappingURL=index.d.ts.map