export declare const RoleMode: { readonly Primary: "primary"; readonly Subagent: "subagent"; readonly All: "all"; }; export type RoleMode = (typeof RoleMode)[keyof typeof RoleMode]; /** All valid RoleMode values, for runtime validation. */ export declare const ROLE_MODE_VALUES: readonly RoleMode[]; /** Where a skill was resolved from. */ export declare const SkillScope: { readonly Rolebox: "rolebox"; readonly Opencode: "opencode"; }; export type SkillScope = (typeof SkillScope)[keyof typeof SkillScope]; /** Where a function was resolved from (resolution priority order). */ export declare const FunctionSource: { readonly RoleLocal: "role-local"; readonly Global: "global"; readonly BuiltIn: "built-in"; }; export type FunctionSource = (typeof FunctionSource)[keyof typeof FunctionSource]; /** Where a reference document was discovered. */ export declare const ReferenceScope: { readonly Role: "role"; readonly Skill: "skill"; }; export type ReferenceScope = (typeof ReferenceScope)[keyof typeof ReferenceScope]; /** Pre-defined graph topologies. */ export declare const GraphTemplate: { readonly Pipeline: "pipeline"; readonly ReviewLoop: "review-loop"; readonly Star: "star"; }; export type GraphTemplate = (typeof GraphTemplate)[keyof typeof GraphTemplate]; /** All valid GraphTemplate values, for runtime validation. */ export declare const GRAPH_TEMPLATE_VALUES: Set; /** * Register a custom graph template value at runtime. */ export declare function addGraphTemplateValue(name: string): void; /** * Whether a value is a currently-registered graph-template name: one of the * built-in {@link GraphTemplate} values or a name registered through * {@link addGraphTemplateValue}. * * The registry is the runtime vocabulary, so this predicate is the honest * narrowing for untrusted input (a parsed YAML `template:` field): it accepts * exactly the strings the process would resolve through * `expandTemplate`. A type predicate rather than a cast keeps the trust * boundary explicit at the parser. */ export declare function isGraphTemplate(value: unknown): value is GraphTemplate; /** Reserved node name for the parent/orchestrator in a graph. */ export declare const PARENT_NODE = "parent"; /** Functions loaded by default when no explicit `functions:` field is set. */ export declare const DEFAULT_FUNCTIONS: readonly string[]; /** Supported sync targets for the CLI `sync` command. */ export declare const SyncTarget: { readonly Opencode: "opencode"; readonly Pi: "pi"; readonly Dsh: "dsh"; readonly Codex: "codex"; }; /** All valid SyncTarget values, for runtime validation and cleanup sweeps. */ export declare const SYNC_TARGET_VALUES: readonly SyncTarget[]; export type SyncTarget = (typeof SyncTarget)[keyof typeof SyncTarget]; /** Separator between parent and child IDs in subagent naming. */ export declare const SUBAGENT_ID_SEPARATOR = "--"; /** Prefix for rolebox-managed skill symlinks in the global skills directory. */ export declare const ROLEBOX_SKILL_PREFIX = "rolebox--"; /** Marker comment embedded in rolebox-managed agent .md files. */ export declare const ROLEBOX_AGENT_MARKER = ""; /** Plugin identifier. */ export declare const PLUGIN_ID = "rolebox"; export declare const ROLE_YAML = "role.yaml"; export declare const SKILL_MD = "SKILL.md"; export declare const PROMPT_MD = "PROMPT.md"; export declare const DEFAULT_GIT_BRANCH = "main"; export declare const REGISTRY_CACHE_TTL_MS: number; /** * Fields that a child SubAgentConfig inherits from its parent RoleConfig * when the child does not set them explicitly. Used by `applyInheritance`. * * Keep in sync with the "Config inheritance" table in README.md. */ export declare const INHERITABLE_FIELDS: readonly string[]; export declare const DEFAULT_NOTIFICATION_IDLE_DELAY_MS = 1500; export declare const DEFAULT_NOTIFICATION_THROTTLE_WINDOW_MS = 3000; export declare const DEFAULT_NOTIFICATION_MAX_PER_WINDOW = 3; export declare const DEFAULT_NOTIFICATION_ACTIVITY_GRACE_MS = 100; export declare const DEFAULT_NOTIFICATION_MAX_TRACKED_SESSIONS = 100; export declare const DEFAULT_QUESTION_TOOL_NAMES: string[]; export declare const JoinStrategy: { readonly All: "all"; readonly Any: "any"; readonly Quorum: "quorum"; }; export type JoinStrategy = (typeof JoinStrategy)[keyof typeof JoinStrategy]; /** All valid JoinStrategy values, for runtime validation. */ export declare const JOIN_STRATEGY_VALUES: readonly JoinStrategy[]; export declare const EnginePhase: { readonly Idle: "idle"; readonly Executing: "executing"; readonly Complete: "complete"; }; export type EnginePhase = (typeof EnginePhase)[keyof typeof EnginePhase]; /** All valid EnginePhase values, for runtime validation. */ export declare const ENGINE_PHASE_VALUES: readonly EnginePhase[]; /** * Generic node lifecycle status for the graph execution engine. * * Normal path: pending → ready → running → completed → done * Pause path: running → blocked (needs_approval) → completed/ready * Error paths: running → escalate → done * running → timeout → done (or ready, if retry) * Cancel path: pending/ready → cancelled → done * * The `blocked` state is the human-in-the-loop approval pause: a node * entering it from `running` (via a `need_approval` / `blocked` / * `need_clarification` signal) halts downstream dispatch until the human * resolves the gate through the approval lifecycle (Phase 3 — * engine-advance.ts "Phase 3 approval lifecycle" + graph_approve/ * approval-handler.ts), after which the node resumes to `completed` (or * `ready` on retry). */ export declare const NodeStatus: { readonly Pending: "pending"; readonly Ready: "ready"; readonly Running: "running"; readonly Completed: "completed"; readonly Blocked: "blocked"; readonly Timeout: "timeout"; readonly Escalate: "escalate"; readonly Cancelled: "cancelled"; readonly Done: "done"; }; export type NodeStatus = (typeof NodeStatus)[keyof typeof NodeStatus]; /** All valid NodeStatus values, for runtime validation. */ export declare const NODE_STATUS_VALUES: readonly NodeStatus[]; //# sourceMappingURL=constants.d.ts.map