import type { ContinuityFiles } from '../envelope.js' export const PRIVATE_CONTINUITY_FILES = ['SOUL.md', 'MEMORY.md'] as const export type PrivateContinuityFile = (typeof PRIVATE_CONTINUITY_FILES)[number] export type ContinuityVaultRef = { dir: string soulPath: string memoryPath: string agentCardPath: string skillsDir: string } export type IdentityMarkdownScaffold = ContinuityFiles & { 'agent-card.json': string } export type ContinuitySnapshotFile = PrivateContinuityFile | 'agent-card.json' | 'private-skills' export type ContinuitySnapshotContentHashes = Partial> & Record export type ContinuityPublishState = 'not-restored' | 'not-published' | 'verify-needed' | 'local-changes' | 'published' export type ContinuityWorkingTreeStatus = { ready: boolean newestLocalChangeAt?: string localChangedAfterBackup: boolean publishState: ContinuityPublishState localContentHashes?: ContinuitySnapshotContentHashes publishedContentHashes?: ContinuitySnapshotContentHashes }