UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

31 lines (30 loc) • 2.66 kB
/** * Internal boundary to the engine's harness layer (design/33; de-vendored by design/118). Everything * in `src/` (outside `src/internal/`) imports these symbols from HERE, never via a deep * `../engine/...` path — one auditable coupling point (CI-guarded by test/vendor-insulation.test.ts). * The vendored tree this facade used to front is fully retired (design/118 ⓪-⑤); the facade stays so * consumers never notice which module a symbol lives in. * * Pure-type re-exports live in ./harness-types.js (S1, design/157) — split out to break an * engine-import SCC for type-only consumers. Re-exported here too so existing `harness.js` imports * keep working unchanged. */ export * from "./harness-types.js"; export { AgentHarness } from "../engine/harness/agent-harness.js"; export type { HaltConsumption, PromptDeliveredCallback, SeatCutSource, StopRequestSource, TrailingToolBatchOptions } from "../engine/harness/agent-harness.js"; export { CompactionError, ExecutionError, FileError, ok, err } from "../engine/harness/types.js"; export { DEFAULT_CHARS_PER_TOKEN, DEFAULT_CLAMP_TOLERANCE, DEFAULT_COMPACTION_SETTINGS, compact, computeFileLists, dryRunSummarizationClamp, estimateContextTokens, estimateTokens, prepareCompaction, shouldCompact, summaryOutputBudgetTokens, } from "../engine/compaction/compaction.js"; export { SKILL_RETENTION_PER_SKILL_MAX_CHARS, SKILL_RETENTION_TOTAL_MAX_CHARS, SKILL_RETENTION_TRUNCATION_MARKER, formatFileOperations, formatPersistedOutputRefs, readCompactionActiveTools, readRetainedInvokedSkills, renderInvokedSkillsRetention, } from "../engine/compaction/utils.js"; export { NodeExecutionEnv } from "../engine/execution-env/node-execution-env.js"; export { StoredSession, buildSessionContext } from "../engine/session/session.js"; export { getEntriesToFork } from "../engine/session/repo-utils.js"; export { validateEntriesForImport, StreamingImportValidator } from "../engine/session/import-validate.js"; export { BaseSessionStorage, leafIdAfterEntry } from "../engine/session/storage-base.js"; export { InMemorySessionStorage } from "../engine/session/memory-storage.js"; export { InMemorySessionRepo } from "../engine/session/memory-repo.js"; export { uuidv7 } from "../engine/session/uuid.js"; export { SessionError } from "../engine/harness/types.js"; export type { AnnouncedListingSnapshot, AnnouncedListingSnapshotInput, AnnouncedMcpFailure } from "../engine/harness/types.js"; export { normalizeGitAnnouncement } from "../engine/harness/types.js"; export { gitFrameContextVisible } from "../engine/session/session.js"; export { isSyntheticApiErrorMessage } from "../engine/harness/types.js";