/** * @module bootstrap-structure * * Shared bootstrap constants and path helpers for Hivemind directory resolution. * * Pure constants + path helpers. No runtime side effects. * Leaf module — no imports from other harness modules. * * @example * ```ts * import { HIVE_MIND_DIR, resolveHiveMindRoot } from "./bootstrap-structure.js" * const root = resolveHiveMindRoot("/my/project") * // root === "/my/project/.hivemind" * ``` */ /** * Top-level `.hivemind/` directory name. * Canonical internal state root per Q6 decision. */ export declare const HIVE_MIND_DIR: ".hivemind"; /** * OpenCode primitives directory name. * Houses agents, skills, commands — no internal runtime state per Q6. */ export declare const OPEN_CODE_DIR: ".opencode"; /** * Meta-builder workspace directory name. * Contains skills-lab, symlink targets, and meta-concept tooling. */ export declare const META_BUILDER_DIR: ".hivefiver-meta-builder"; /** * Sentinel filename used to register empty directories with git. */ export declare const GITKEEP_FILE: ".gitkeep"; /** * First-level subdirectories created inside `.hivemind/` during bootstrap. * * Includes the canonical runtime, committed config/reference, and legacy * compatibility roots required by BOOT-03. Each directory receives a `.gitkeep` * during bootstrap so empty surfaces are explicit and recoverable. */ export declare const TIER_1_DIRECTORIES: readonly ["state", "delegation", "journal", "lineage", "daily-notes", "hm-brain", "hf-brain", "delegation-managements", "task-managements", "runtime", "artifacts", "sidecar", "logs", "poor-prompts", "uat", "manifests", "registries", "onboarding"]; /** * Primitive types hosted under `.opencode/`. * Each maps to a subdirectory containing YAML/MD definitions. */ export declare const PRIMITIVE_TYPES: readonly ["agents", "skills", "commands", "workflows", "references", "templates"]; /** * Diagnostic checks performed by the harness-doctor command. * Scoped to P0 checks only for the initial BOOT-02 implementation. * * - `structure` — validates `.hivemind/` directory tree exists * - `primitives` — verifies OpenCode primitive files presence and integrity * - `config` — checks config/schema presence and validation * - `sdk` — confirms `@opencode-ai/plugin` peer dependency is resolvable * - `typecheck` — runs the package typecheck script * - `tests` — runs the package test script * - `modules` — reports TypeScript source module count */ export declare const DOCTOR_CHECKS: readonly ["structure", "primitives", "config", "sdk", "typecheck", "tests", "modules"]; /** * Minimal JSON written to `.hivemind/config.json` during first-time bootstrap. * Points to the config schema for IDE validation. */ export declare const DEFAULT_CONFIG_JSON: "{\n \"$schema\": \"./configs.schema.json\"\n}\n"; /** * Resolve the `.hivemind/` root directory for a given project. * * @param projectRoot - Absolute path to the project root * @returns Absolute path to the `.hivemind/` directory */ export declare function resolveHiveMindRoot(projectRoot: string): string; /** * Resolve the `.opencode/` primitives directory for a given project. * * @param projectRoot - Absolute path to the project root * @returns Absolute path to the `.opencode/` directory */ export declare function resolveOpenCodeRoot(projectRoot: string): string; /** * Resolve the `.hivefiver-meta-builder/` workspace directory for a given project. * * @param projectRoot - Absolute path to the project root * @returns Absolute path to the `.hivefiver-meta-builder/` directory */ export declare function resolveMetaBuilderRoot(projectRoot: string): string; /** * Resolve the package's local `assets/` directory. * * @returns Absolute path to the package's `assets/` directory */ export declare function resolvePackageAssetsRoot(): string; //# sourceMappingURL=structure.d.ts.map