/** * @principles/core -- Universal Evolution SDK * * Runtime-v2 contracts, store primitives, and prompt-builder helpers for * Principles Disciple host integrations. The pre-runtime-v2 public modules * (pain-signal, pain-signal-adapter, telemetry-event, principle-injector) * were removed from the public surface in PRI-636. The PainSignal schema is * canonical under ./runtime-v2/types (exported via the ./runtime-v2 subpath); * telemetry-event remains an internal module consumed via relative imports. * * @example * import { RuntimeStateManager, SqliteTaskStore } from '@principles/core'; */ export { buildAttitudeDirective, detectCorrectionCue, escapeXml, extractMessageContent, isMinimalTrigger, truncateInjectionToBudget, isValidModelFormat, resolveModelFromConfig, } from './prompt-builder/index.js'; export type { PromptInjectionPart, SizeGuardOptions, CoreLogger, ModelConfigObject } from './prompt-builder/index.js'; export { matchEmpathyKeywords, createDefaultKeywordStore, applyKeywordUpdates, shouldTriggerOptimization, getKeywordStoreSummary, EMPATHY_SEED_KEYWORDS, DEFAULT_EMPATHY_KEYWORD_CONFIG, scoreToSeverity, severityToPenalty, normalizeSeverity, } from './prompt-builder/index.js'; export type { EmpathyKeywordStore, EmpathyKeywordEntry, EmpathyKeywordStats, EmpathyMatchResult, EmpathyKeywordUpdate, EmpathyOptimizationResult, SeedKeywordEntry, EmpathyKeywordConfig, } from './prompt-builder/index.js'; export { extractVersion, extractDate, extractSummary, parseWorkingMemorySection, workingMemoryToInjection, extractMilestones, validateCurrentFocus, mergeWorkingMemory, compressFocusContent, DEFAULT_FOCUS_COMPRESSION_OPTIONS, } from './prompt-builder/index.js'; export type { FileArtifact, WorkingMemorySnapshot, FocusCompressionOptions, FocusCompressionResult, } from './prompt-builder/index.js'; export { listCorrectionSamples, reviewCorrectionSample, TrajectoryDbUnavailableError } from './trajectory-store.js'; export type { CorrectionSampleRecord, CorrectionSampleReviewStatus } from './trajectory-store.js'; export { RUNTIME_V2_SCHEMA_VERSION, schemaRef, SchemaVersionRefSchema, RuntimeV2SchemaVersionSchema, PDErrorCategorySchema, PD_ERROR_CATEGORIES, PDRuntimeError, isPDErrorCategory, } from './runtime-v2/index.js'; export { AGENT_IDS, AgentCapabilityRequirementsSchema, AgentTimeoutPolicySchema, AgentRetryPolicySchema, AgentSpecSchema, } from './runtime-v2/index.js'; export { RuntimeKindSchema, RuntimeCapabilitiesSchema, RuntimeHealthSchema, RunHandleSchema, RunExecutionStatusSchema, RunStatusSchema, ContextItemSchema, AgentSpecRefSchema, WorkflowRefSchema, TaskRefSchema, StartRunInputSchema, StructuredRunOutputSchema, RuntimeArtifactRefSchema, } from './runtime-v2/index.js'; export { PDTaskStatusSchema, TaskRecordSchema, DiagnosticianTaskRecordSchema, } from './runtime-v2/index.js'; export { HistoryQueryEntrySchema, TrajectoryLocateQuerySchema, TrajectoryCandidateSchema, TrajectoryLocateResultSchema, HistoryQueryResultSchema, DiagnosisTargetSchema, ContextPayloadSchema, DiagnosticianContextPayloadSchema, } from './runtime-v2/index.js'; export { DiagnosticianViolatedPrincipleSchema, DiagnosticianEvidenceSchema, RecommendationKindSchema, DiagnosticianRecommendationSchema, DiagnosticianOutputV1Schema, DiagnosticianInvocationInputSchema, } from './runtime-v2/index.js'; export type { PDErrorCategory, AgentSpec, AgentCapabilityRequirements, AgentTimeoutPolicy, AgentRetryPolicy, WellKnownAgentId, RuntimeKind, RuntimeCapabilities, RuntimeHealth, RunHandle, RunExecutionStatus, RunStatus, ContextItem, AgentSpecRef, WorkflowRef, TaskRef, StartRunInput, StructuredRunOutput, RuntimeArtifactRef, PDRuntimeAdapter, PDTaskStatus, TaskRecord, DiagnosticianTaskRecord, HistoryQueryEntry, TrajectoryLocateQuery, TrajectoryCandidate, TrajectoryLocateResult, HistoryQueryResult, DiagnosisTarget, ContextPayload, DiagnosticianContextPayload, DiagnosticianOutputV1, DiagnosticianViolatedPrinciple, DiagnosticianEvidence, RecommendationKind, DiagnosticianRecommendation, DiagnosticianInvocationInput, } from './runtime-v2/index.js'; export { RuntimeStateManager } from './runtime-v2/index.js'; export type { RuntimeStateManagerOptions } from './runtime-v2/index.js'; export { SqliteTaskStore, SqliteRunStore, MalformedRunError, SqliteConnection, SqliteTrajectoryLocator, SqliteSourceTraceLocator, SqliteHistoryQuery, SqliteContextAssembler, ResilientContextAssembler, ResilientHistoryQuery, DEFAULT_HISTORY_PAGE_SIZE, MAX_HISTORY_PAGE_SIZE, DEFAULT_TIME_WINDOW_MS, } from './runtime-v2/index.js'; export type { HistoryQuery, HistoryQueryCursorData, HistoryQueryOptions, } from './runtime-v2/index.js'; export type { ContextAssembler } from './runtime-v2/store/context/context-assembler.js'; export type { TaskStore, TaskStoreFilter, TaskStoreUpdatePatch, } from './runtime-v2/store/task/task-store.js'; export type { RunStore, RunRecord, } from './runtime-v2/store/run/run-store.js'; export type { TrajectoryLocator } from './runtime-v2/store/trajectory/trajectory-locator.js'; export { DefaultLeaseManager } from './runtime-v2/index.js'; export type { LeaseManager, AcquireLeaseOptions } from './runtime-v2/index.js'; export { DefaultRetryPolicy } from './runtime-v2/index.js'; export type { RetryPolicy, RetryPolicyConfig } from './runtime-v2/index.js'; export { DefaultRecoverySweep } from './runtime-v2/index.js'; export type { RecoverySweep, RecoveryResult } from './runtime-v2/index.js'; export { StoreEventEmitter, storeEmitter } from './runtime-v2/index.js'; export { WorkflowFunnelLoader } from './workflow-funnel-loader.js'; export type { WorkflowStage, WorkflowFunnel, FunnelPolicy, WorkflowFunnelConfig, } from './workflow-funnel-loader.js'; export type { ContextInjectionConfig, ProjectFocusMode } from './runtime-v2/config/index.js'; export { DEFAULT_CONTEXT_INJECTION } from './runtime-v2/config/index.js'; export type { HostEventKind, HostEventContext, HostEvent, HostDecision, HostEventResult, HostAdapter, HostInstallContext, HostRuntimeProfileInput, HostUninstallContext, HostConfigAction, HostInstallResult, HostUninstallResult, HostDetectResult, HostDetectPath, HostInstaller, } from './host/index.js'; export { HOST_EVENT_KINDS, isHostEventKind, isHostDecision, isHostEventContext, isHostEvent, isHostEventResult, isHostConfigAction, isHostInstallResult, isHostUninstallResult, } from './host/index.js'; //# sourceMappingURL=index.d.ts.map