export { resolveHomeIdentity, resolveJinnHome } from "./home.js"; /** * Fail closed if a test run resolves to a real, non-temp JINN_HOME. * * There is a Vitest guard (vitest.global-setup.ts redirects JINN_HOME, and * vitest.setup.ts asserts it per worker), but it is registered in * packages/jinn/vitest.config.ts — so it only arms when Vitest actually LOADS * that config. Run `npx vitest run packages/jinn/src` from the repo ROOT (which * has no Vitest config) and Vitest falls back to defaults: no globalSetup, no * setupFiles, no guard. An ambient JINN_HOME=~/.jinn then flows straight into * every suite, and the tests write fixtures into the LIVE gateway registry. * * That happened on 2026-07-06 and again, 4x larger, on 2026-07-25 — the second * run burned 16 Todo IDs out of the append-only allocator, a permanent hole in * the live ledger caused by a test. Cleanup after the fact is not a fix. * * This assertion lives at the boundary instead of in test config, because * EVERY module that can touch the registry imports JINN_HOME from here. It * cannot be bypassed by choosing a different cwd, config, or runner. The * sanctioned `pnpm test` path is unaffected: global setup has already pointed * JINN_HOME at a temp dir before any worker imports this module. */ export declare function assertTestRunIsIsolated(home: string, env?: NodeJS.ProcessEnv): void; export declare const JINN_HOME: string; export declare const JINN_HOME_IDENTITY: string; export declare const CONFIG_PATH: string; export declare const SESSIONS_DB: string; export declare const WORKFLOWS_DIR: string; export declare const WORKFLOWS_DB_PATH: string; export declare const CRON_JOBS: string; export declare const CRON_RUNS: string; export declare const ORG_DIR: string; export declare const SKILLS_DIR: string; export declare const PLUGINS_DIR: string; export declare const DOCS_DIR: string; export declare const LOGS_DIR: string; export declare const TMP_DIR: string; /** Durable, bounded terminal snapshots used to restore CLI views after restart. */ export declare const PTY_SNAPSHOTS_DIR: string; export declare const ENGINE_LIMITS_DIR: string; export declare const CLAUDE_LIMITS_DIR: string; export declare const STT_MODELS_DIR: string; export declare const STT_SETTINGS_FILE: string; /** Read fallback for installs that have not yet adopted their per-home model. */ export declare const LEGACY_STT_MODELS_DIR: string; export declare const PID_FILE: string; /** Gateway connection info (port + hook secret + pids) for hook-relay discovery. */ export declare const GATEWAY_INFO_FILE: string; /** Per-session Claude Code --settings files. */ export declare const CLAUDE_SETTINGS_DIR: string; /** * Per-session Codex CODEX_HOME overlays. Each jinn session that runs the builtin * `jinn` MCP server with a capability token gets a stable dir here whose * `config.toml` carries the server stanza (token off argv) — fresh and resume * both point CODEX_HOME here so the thread rollout persists across turns. */ export declare const CODEX_HOMES_DIR: string; /** The hook-relay script written once at boot. */ export declare const HOOK_RELAY_SCRIPT: string; export declare const CLAUDE_SKILLS_DIR: string; export declare const AGENTS_SKILLS_DIR: string; export declare const TEMPLATE_DIR: string; export declare const FILES_DIR: string; export declare const ATTACHMENTS_DIR: string; export declare const VIDEO_CACHE_DIR: string; export declare const IMAGE_CACHE_DIR: string; /** Date-bucketed storage for files attached to / emitted by sessions. */ export declare const UPLOADS_DIR: string; export declare const TEMPLATE_MIGRATIONS_DIR: string; /** Host-scoped workspace directory, deliberately outside every JINN_HOME. */ export declare const INSTANCES_REGISTRY: string; //# sourceMappingURL=paths.d.ts.map