import { a0 as LoadedProjectConfig, J as ResourcePlanResult, ad as ResourceSyncRun, o as RuntimeFeedbackSink } from './resource-runtime-CsFE89Yu.js'; import { U as UserError } from './errors-BcVE1wZB.js'; import { D as Diagnostic, P as PlannedAction } from './dto-CIYO4YQw.js'; import { e as DirectoryProjectVersionService } from './directory-BVXQZ3jU.js'; import './session-thread-K0mtKer0.js'; import './file-Cj5-Vx27.js'; import 'zod'; declare const PROJECT_METADATA_FILE = "project.json"; declare const PROJECT_INTERNAL_DIRECTORY = ".openagentpack"; declare const PROJECT_BUILD_FILE = ".openagentpack/build/agents.yaml"; declare const PROJECT_BUILD_MANIFEST = ".openagentpack/build/manifest.json"; declare const PROJECT_STATE_FILE = ".openagentpack/state.json"; declare const FILE_AUTO_ASSOCIATION_IGNORE_FILE = ".openagentpack-ignore"; declare const DIRECTORY_RESOURCE_TYPES: readonly ["environment", "vault", "memory_store", "file"]; type DirectoryResourceType = (typeof DIRECTORY_RESOURCE_TYPES)[number]; declare class DirectoryProjectMutationConflictError extends UserError { readonly status = 409; constructor(message: string); } interface ProjectSourceFile { path: string; mode: number; content: Uint8Array; } interface ProjectOrganizationMove { resource_type: "skill" | DirectoryResourceType; resource_id: string; from: string; to: string; reason: "shared"; } interface DirectoryResourceSource { type: DirectoryResourceType; id: string; path: string; directory: string; relative_directory: string; owner_agent?: string; } interface DirectoryProjectInspection { project_root: string; project_revision: string; source_manifest_hash: string; canonical_yaml: string; yaml_hash: string; loaded: LoadedProjectConfig | null; diagnostics: Diagnostic[]; warnings: Diagnostic[]; organization_moves: ProjectOrganizationMove[]; source_files: ProjectSourceFile[]; } interface ProjectBuildManifest { schema_version: 1; project_revision: string; source_manifest_hash: string; yaml_hash: string; built_at: string; } interface ProjectBuildStatus { exists: boolean; stale: boolean; manifest: ProjectBuildManifest | null; reasons: string[]; } interface ProjectBuildPreview extends DirectoryProjectInspection { before_yaml: string; after_yaml: string; build_status: ProjectBuildStatus; can_build: boolean; } interface InitializedDirectoryProject { project_root: string; converted_from_yaml: boolean; state_migrated: boolean; baseline_version: string | null; } interface ProjectPublishPlan { project_root: string; project_revision: string; build_manifest: ProjectBuildManifest; build_path: string; plan_fingerprint: string; planned: ResourcePlanResult; } interface ProjectPublishResult { planned: ResourcePlanResult; execution: ResourceSyncRun["execution"]; version: { version_id: string; short_version: string; message: string; } | null; published_revision: string; working_revision: string; working_tree_changed: boolean; } interface DirectoryProjectMutationLease { release(): Promise; } type ProjectBuildResolver = (buildPath: string, options?: { environment?: Record; }) => Promise; declare function resolveDirectoryProjectRoot(input?: string): Promise; declare function inspectDirectoryProject(projectDirectory?: string): Promise; declare function validateDirectoryProject(projectDirectory?: string): Promise; declare function resolveDirectoryProjectRuntime(projectDirectory?: string): Promise; declare function getProjectBuildStatus(projectDirectory: string, inspection?: DirectoryProjectInspection): Promise; declare function previewProjectBuild(projectDirectory?: string): Promise; declare function commitProjectBuild(input: { projectRoot: string; baseRevision: string; }): Promise; declare function readValidProjectBuild(projectDirectory?: string): Promise<{ inspection: DirectoryProjectInspection; manifest: ProjectBuildManifest; buildPath: string; yaml: string; }>; declare function planProjectPublish(projectDirectory?: string, options?: { provider?: string; refresh?: boolean; quiet?: boolean; onFeedback?: RuntimeFeedbackSink; resolveBuild?: ProjectBuildResolver; }): Promise; declare function executeProjectPublish(input: { projectRoot: string; expectedProjectRevision: string; expectedYamlHash: string; expectedPlanFingerprint: string; provider?: string; refresh?: boolean; concurrency?: number; policy?: "block" | "prompt" | "force"; confirm?: (actions: PlannedAction[]) => boolean | Promise; onFeedback?: RuntimeFeedbackSink; resolveBuild?: ProjectBuildResolver; }): Promise; declare function initializeDirectoryProject(input?: { projectRoot?: string; }): Promise; declare function createDirectoryWorkspaceVersionService(projectDirectory: string): DirectoryProjectVersionService; declare function assertLegacyYamlNotShadowed(configFile: string): Promise; declare function locateDirectoryProjectResource(projectDirectory: string, type: DirectoryResourceType, id: string): Promise; declare function acquireDirectoryProjectMutation(projectDirectory: string, kind: string): Promise; export { DIRECTORY_RESOURCE_TYPES, type DirectoryProjectInspection, DirectoryProjectMutationConflictError, type DirectoryProjectMutationLease, type DirectoryResourceSource, type DirectoryResourceType, FILE_AUTO_ASSOCIATION_IGNORE_FILE, type InitializedDirectoryProject, PROJECT_BUILD_FILE, PROJECT_BUILD_MANIFEST, PROJECT_INTERNAL_DIRECTORY, PROJECT_METADATA_FILE, PROJECT_STATE_FILE, type ProjectBuildManifest, type ProjectBuildPreview, type ProjectBuildResolver, type ProjectBuildStatus, type ProjectOrganizationMove, type ProjectPublishPlan, type ProjectPublishResult, type ProjectSourceFile, acquireDirectoryProjectMutation, assertLegacyYamlNotShadowed, commitProjectBuild, createDirectoryWorkspaceVersionService, executeProjectPublish, getProjectBuildStatus, initializeDirectoryProject, inspectDirectoryProject, locateDirectoryProjectResource, planProjectPublish, previewProjectBuild, readValidProjectBuild, resolveDirectoryProjectRoot, resolveDirectoryProjectRuntime, validateDirectoryProject };