/*
Maintains packages/os/site-kernel-handoff/src/index.ts as an authored site-kernel-handoff authored module so agents can evolve it without rediscovering local boundaries.
- Do not materialize handoff.absorb writes until the guarded RFC-0221 follow-up lands.
- RFC-0221: add package entrypoint and command module for the first read-only handoff commands.
- RFC-0221: register thin handoff.pack and report-gated handoff.absorb handlers.
- RFC-0968: remove dead sternsystem re-exports — the kernel loads sternsystem.module.ts directly.
*/
export { diffCapabilities, intentMatches, worstTier } from "./capability-diff.ts";
export {
hashFile,
readLock,
readManifest,
readRegistryView,
resolveCurrentEcosystem,
resolvePlatformSemanticHash,
sha256OfBytes,
type CurrentEcosystem,
} from "./bundle-io.ts";
export { runHandoffValidate, type HandoffValidateData } from "./handoff-validate.ts";
export { runHandoffPack, type HandoffPackData } from "./handoff-pack.ts";
export { runHandoffAbsorb, type HandoffAbsorbData } from "./handoff-absorb.ts";
export { buildCatchupReport, type BuildReportInput } from "./absorb-report.ts";
export {
runMigratorRegistryValidate,
type MigratorRegistryValidateData,
} from "./migrator-registry-validate.ts";
export {
migratorRegistry,
migratorsToApply,
numericRfcId,
allMigratorIds,
} from "../migrators/registry.ts";
export type {
Migrator as NewMigrator,
SternsystemData,
MigrationContext,
MigrationViolation,
} from "../migrators/types.ts";
export { MigrationError } from "../migrators/types.ts";
export {
compareSemver,
eqSemver,
gtSemver,
inOpenClosedRange,
ltSemver,
parseSemver,
} from "./semver.ts";
export type {
AuthoredSet,
CapabilityChange,
CapabilityDiffItem,
CatchupReport,
CatchupTier,
HandoffCapability,
RegistryView,
VersionComparison,
VersionVerdict,
} from "./types.ts";
export { compareEcosystem, type CompareEcosystemInput } from "./version-compare.ts";
export type { GuardResult, GuardVerdict, GuardViolation } from "./guards.ts";
export {
PLATFORM_SCOPE_PREFIXES,
isPlatformScope,
hasPlatformScopeFiles,
extractTrailer,
hasTrailer,
} from "./platform-scope.ts";
// createWerkstattModule migrated to @warpgogol/forge — see packages/forge/os/werkstatt/
export {
runWerkstattLockStatus,
type WerkstattLockStatusData,
runWerkstattLockRecover,
type WerkstattLockRecoverData,
acquireLock,
releaseLock,
heartbeatLock,
readAllLocks,
isLockStale,
startOperation,
completeOperation,
failOperation,
readOperation,
computeInputHash,
generateOperationId,
atomicWriteFile,
atomicMoveDir,
resolveStagingDir,
} from "../werkstatt/index.ts";
export { createMissionModule } from "../mission/mission.module.ts";
export {
runWorkpieceRead,
runWorkpieceWrite,
isClientEditable,
type WorkpieceReadResult,
type WorkpieceWriteResult,
} from "../workpiece/index.ts";
export { createBordbuchModule } from "../bordbuch/index.ts";
export { createNachweisModule } from "../nachweis/index.ts";
export {
appendBordbuchEntry,
readBordbuch,
runBordbuchGenerate,
runBordbuchStatus,
type BordbuchViolation,
} from "../bordbuch/index.ts";
export { createPlatformModule } from "./platform-module.ts";
export {
runPlatformConsistencyValidate,
type PlatformConsistencyData,
type PlatformConsistencyViolation,
} from "./platform-consistency.ts";
/** RFC-0221/RFC-0479 command module: validate, migrator.registry.validate, pack, and version-aware absorb (materializes; --report-only/--as/--regen/--force). */