import { type OperatingModelScope } from "./model.js"; import { type ManagedPack } from "./seed.js"; import type { TaskAssignment } from "./task.js"; export interface ProjectStatus { initialized: boolean; valid: boolean; errors: string[]; packs: string[]; artifact_count: number; resident_artifacts: string[]; active_artifacts: string[]; active_mode?: string; active_procedures: string[]; } export type { ManagedPack }; export interface ContextLoadReason { kind: "resident" | "active" | "role-assigned" | "retrieved" | "tool-bound" | "required" | "selected"; source?: string; slot?: string; tool?: string; } export interface LoadedContextArtifact { id: string; type: string; path: string; scope: OperatingModelScope; reasons: ContextLoadReason[]; } export interface CatalogArtifact { id: string; title: string; type: string; summary: string; when: string[]; relations: Array<{ relation: "selectable" | "discoverable"; source: string; slot?: string; }>; } export interface OperatingContextAssembly { initialized: boolean; valid: boolean; errors: string[]; packs: Array<{ id: string; version: string; scope: OperatingModelScope; }>; context: string; catalog: string; loaded_artifacts: LoadedContextArtifact[]; resident_artifacts: string[]; active_artifacts: string[]; procedures: string[]; active_mode?: string; assigned_role?: string; task_id?: string; catalog_artifacts: CatalogArtifact[]; } export interface RoleOption { id: string; name: string; description: string; } export interface ModeSelectionOption { id: string; name: string; description: string; resident: boolean; } export interface ModeSelectionState { current_mode?: string; available_modes: ModeSelectionOption[]; } export interface ReflectionLensOption { id: string; title: string; description: string; when: string[]; } export interface ReflectionStartResult { active: string[]; context: string; deactivated: string[]; lens: ReflectionLensOption; } export declare const REFLECTION_PROCEDURE_ID = "airic-core.procedure.reflect"; export declare function initializeAiricProject(cwd: string, seeds: string): Promise; export declare function projectStatus(cwd: string, active: Iterable): Promise; export declare function managedPacks(cwd: string): Promise; export declare function installProjectPack(cwd: string, seeds: string, id: string): Promise; export declare function enableProjectPack(cwd: string, id: string): Promise; export declare function disableProjectPack(cwd: string, id: string): Promise; export declare function assembleOperatingContext(cwd: string, active: Iterable, activeTools?: Iterable, assignment?: TaskAssignment): Promise; export declare function availableRoles(cwd: string): Promise; export declare function modeSelectionState(cwd: string, active: Iterable): Promise; export declare function selectMode(cwd: string, current: Iterable, id: string, activeTools?: Iterable): Promise<{ active: string[]; context: string; deactivated: string[]; mode: string; }>; export declare function loadTypeContracts(cwd: string, ids: string[]): Promise; export declare function availableReflectionLenses(cwd: string): Promise; export declare function startReflection(cwd: string, current: Iterable, lensId: string, activeTools?: Iterable): Promise; export declare function activateArtifacts(cwd: string, current: Iterable, ids: string[], activeTools?: Iterable): Promise<{ active: string[]; context: string; deactivated: string[]; }>; export declare function deactivateArtifacts(cwd: string, current: Iterable, ids: string[], activeTools?: Iterable): Promise;