import { type LocalOpenPondProfileConfig, type LocalOpenPondProfilePushStatus } from "../config.js"; import { type OpenPondProfileLibrary, type OpenPondProfileRef, type OpenPondProfileState } from "./local-profile-types.js"; export declare const PROFILE_REPO_MANIFEST = "openpond-profile.json"; export declare const PROFILE_MANIFEST = "settings/profile.yaml"; export declare const DEFAULT_LOCAL_PROFILE = "default"; export declare const DEFAULT_PROFILE_AGENT = "default"; export type ProfileRepoManifest = { schema: "openpond.profileRepo.v1"; defaultProfile: string; profiles: Record; }>; }; export type { OpenPondProfileActionCatalogEntry, OpenPondProfileAgent, OpenPondProfileCatalogState, OpenPondProfileDiffSummary, OpenPondProfileEval, OpenPondProfileGitFileChange, OpenPondProfileGitState, OpenPondProfileHostedBinding, OpenPondProfileLibrary, OpenPondProfileRef, OpenPondProfileSetupGate, OpenPondProfileSetupRequirement, OpenPondProfileSkill, OpenPondProfileSkillCatalogState, OpenPondProfileState, OpenPondProfileSummary, } from "./local-profile-types.js"; export { OpenPondProfileSetupRequiredError, assertOpenPondProfileActionReady, buildOpenPondProfileSetupGate, formatOpenPondProfileSetupRequirement, } from "./profile-setup-gate.js"; export type { LocalOpenPondProfileCheckStatus, LocalOpenPondProfilePushStatus, } from "../config.js"; export { collectProfileSourceUploadEntries, type OpenPondProfileSourceUpload, type OpenPondProfileSourceUploadEntry, } from "./profile-source-upload.js"; export { hostedPublishStatusFromPayload, hostedRunStatusFromRunSummary, hostedRunSummaryFromPayload, hostedSourceCheckStatusFromPayload, } from "./profile-promotion.js"; export type InitLocalProfileInput = { repoPath?: string; profile?: string; template?: string; force?: boolean; }; export declare function mergeProfileRepoManifestEntry(existing: ProfileRepoManifest["profiles"][string] | undefined, profilePath: string): ProfileRepoManifest["profiles"][string]; export declare function mergeActiveLocalProfileConfig(existing: LocalOpenPondProfileConfig | undefined, repoPath: string, profile: string): LocalOpenPondProfileConfig; export type RunProfileCommandInput = { command: "inspect" | "build" | "validate" | "eval" | "traces" | "run"; args?: string[]; cwd?: string; inherit?: boolean; timeoutMs?: number; maxOutputBytes?: number; }; export declare function defaultLocalProfileRepoPath(): string; export declare function emptyProfileState(error?: string | null): OpenPondProfileState; export declare function initLocalProfileRepo(input?: InitLocalProfileInput): Promise; export declare function loadLocalProfileRepo(repoPathInput: string, profileInput?: string, identity?: { source: OpenPondProfileRef["source"]; repositoryId: string; }): Promise; export declare function registerLocalProfileRepo(repoPathInput: string, profileInput?: string, identity?: { source: OpenPondProfileRef["source"]; repositoryId: string; }): Promise; export declare function renameActiveProfileAgent(agentIdInput: string, nameInput: string): Promise; export declare function installAgentPackageIntoActiveProfile(input: { agentPackage: InstallableAgentPackage; overwrite?: boolean; }): Promise<{ state: OpenPondProfileState; agentId: string; versionId: string; digest: string; }>; export type InstallableAgentPackage = { schema: "openpond.agent-package.v1"; agentId: string; versionId: string; digest: string; title: string; source: { files: Array<{ path: string; sizeBytes: number; sha256: string; contentsBase64: string; }>; totalSizeBytes: number; }; receipts: Array<{ id: string; kind: "sdk_validation" | "sdk_eval"; }>; }; export declare function loadOpenPondProfileState(): Promise; export declare function openPondProfileRef(input: { source?: OpenPondProfileRef["source"]; repositoryId?: string; repoPath: string; profile: string; }): OpenPondProfileRef; export declare function loadOpenPondProfileLibrary(): Promise; export declare function loadOpenPondProfileStateForRef(ref: OpenPondProfileRef | null | undefined): Promise; export declare function selectOpenPondProfile(ref: OpenPondProfileRef): Promise; export declare function removeOpenPondProfile(ref: OpenPondProfileRef): Promise; /** Inspect an explicit server-owned source tree without selecting or registering it. */ export declare function inspectOpenPondProfileSource(repoPath: string, profile: string): Promise; /** Inspect an explicitly authorized source checkout without changing the * device's selected Profile or its personal configuration. */ export declare function loadOpenPondProfileStateFromSource(input: { repoPath: string; profileId: string; }): Promise; export declare function requireActiveLocalProfile(): Promise<{ config: LocalOpenPondProfileConfig; state: OpenPondProfileState; }>; export declare function runProfileSdkCommand(input: RunProfileCommandInput): Promise<{ code: number | null; stdout: string; stderr: string; }>; export declare function runAgentSdkProjectCommand(input: RunProfileCommandInput & { cwd: string; throwOnFailure?: boolean; }): Promise<{ code: number | null; stdout: string; stderr: string; timedOut: boolean; stdoutTruncated: boolean; stderrTruncated: boolean; }>; export declare function runProfileCheck(kind: string | undefined): Promise; export declare function commitActiveProfileChanges(message?: string): Promise<{ committed: boolean; stdout: string; stderr: string; state: OpenPondProfileState; }>; export declare function saveProfilePushStatus(status: LocalOpenPondProfilePushStatus): Promise; export declare function prepareAgentSdkRuntimePackage(): Promise;