import { x as HarnessState } from "./config-XC40aztM.mjs"; //#region src/services/harnessState/index.d.ts /** * State that lives in the file only. * * These are JSON documents that every spawned process and every hook would * otherwise copy in its environment. The plugin hook list and profile defaults * are read from the store, while Config publishes the MCP projection through * the session-scoped Cordis registry. */ declare const FILE_ONLY_STATE_FIELDS: ReadonlySet; type HarnessStateParseReporter = (key: string, error: unknown) => void; declare const HARNESS_STATE_KEYS: { readonly root: 'DOOMPI_ROOT'; readonly majorMode: 'DOOMPI_MAJOR_MODE'; readonly temporaryDirectory: 'DOOMPI_TEMP_DIR'; readonly domains: 'DOOMPI_DOMAINS'; readonly layers: 'DOOMPI_LAYERS'; readonly compositionFingerprint: 'DOOMPI_COMPOSITION_FINGERPRINT'; readonly profile: 'DOOMPI_PROFILE'; readonly profileEnvironment: 'DOOMPI_PROFILE_ENV'; readonly hookGroups: 'DOOMPI_HOOK_GROUPS'; readonly skillDirectories: 'DOOMPI_SKILL_DIRS'; readonly agentDirectories: 'DOOMPI_AGENT_DIRS'; readonly additionalDirectories: 'DOOMPI_ADDITIONAL_DIRS'; readonly childExtensions: 'DOOMPI_CHILD_EXTENSIONS'; readonly pluginDirectories: 'DOOMPI_PLUGIN_DIRS'; readonly pluginHooks: 'DOOMPI_PLUGIN_HOOKS'; readonly mcpConfigPath: 'DOOMPI_MCP_CONFIG'; readonly personaFile: 'DOOMPI_PERSONA_FILE'; readonly hooks: 'DOOMPI_HOOKS_ENABLED'; readonly agents: 'DOOMPI_AGENTS_ENABLED'; readonly mcp: 'DOOMPI_MCP_ENABLED'; readonly allowProtectedWrites: 'DOOMPI_ALLOW_PROTECTED_WRITES'; }; declare function readHarnessState(environment?: NodeJS.ProcessEnv, report?: HarnessStateParseReporter): HarnessState; /** * Publishes a state patch into an environment. * * Takes the environment rather than assuming `process.env`, because the * launcher builds a child environment and Doom Team builds a spawn snapshot; * neither should mutate its own process to describe another one. * * Fields in FILE_ONLY_FIELDS are skipped: the file carries them, and a reader * that needs them reads the store. */ declare function projectHarnessEnvironment(patch: Partial, environment?: NodeJS.ProcessEnv): NodeJS.ProcessEnv; //#endregion export { readHarnessState as a, projectHarnessEnvironment as i, HARNESS_STATE_KEYS as n, HarnessStateParseReporter as r, FILE_ONLY_STATE_FIELDS as t }; //# sourceMappingURL=index-ZZd-GRFZ.d.mts.map