import { type ApplicationEvaluationEvidence } from './evaluation-evidence.js'; import { type ApplicationHostIntegrationPreview } from '../../platform/install/application-host.js'; import { type InstalledApplication } from './installed-application.js'; export interface ApplicationDeliveryOptions { projectRoot: string; scope: 'project' | 'user'; /** 隔离安装或非默认用户目录;不改变当前用户配置。 */ userRoot?: string; host?: 'codex' | 'claude-code'; /** 使用 Comet 平台身份;all 表示全部已注册平台。 */ platforms?: string[]; } export interface ApplicationInstallPreview { evaluation: ApplicationEvaluationEvidence; schema: 'comet.workflow.application.preview.v1'; id: string; version: string; scope: 'project' | 'user'; target: string; source: string; contentHash: string; previous: InstalledApplication | null; files: string[]; dependencies: Array<{ id: string; contentHash: string; }>; operation: 'install' | 'upgrade' | 'unchanged'; retainedVersions: true; noFilesWritten: true; hostSkills: Array<{ name: string; root: string; contentHash: string; kind: 'entry' | 'dependency'; operation: 'create' | 'replace' | 'unchanged'; platforms: string[]; }>; hostIntegration?: ApplicationHostIntegrationPreview[]; platforms: Array<{ id: string; name: string; skillsRoot: string; rulesSupported: boolean; hooksSupported: boolean; }>; requiredCapabilities: string[]; confirmationHash: string; } /** 预览只读取内容,不写目标;同版本内容变化和未选择的同名覆盖均拒绝。 */ export declare function previewWorkflowApplicationInstall(options: ApplicationDeliveryOptions & { file: string; upgrade?: boolean; }): Promise; /** 只接受当前预览。发布默认入口前固定完整版本;升级不写任何 Run。 */ export declare function installWorkflowApplication(options: ApplicationDeliveryOptions & { file: string; upgrade?: boolean; confirmationHash: string; }): Promise<{ hostIntegration?: ApplicationHostIntegrationPreview[] | undefined; file: string; retainedVersions: boolean; schema: "comet.workflow.application.install.v1"; id: string; version: string; contentHash: string; packageRef: string; entry?: { root: string; contentHash: string; }; scope?: "project" | "user"; entries?: Array<{ root: string; contentHash: string; platforms: string[]; }>; }>; /** 完整目录导出;包含入口、固定 Skills/资源、定义及执行/验证模块,不导出 Run。 */ export declare function exportWorkflowApplication(options: { file: string; projectRoot: string; destination: string; expectedContentHash?: string; }): Promise<{ file: string; contentHash: string; files: string[]; }>; /** 卸载保留固定版本和原确认计划;中断后只继续删除该计划内未变更的入口。 */ export declare function uninstallWorkflowApplication(options: ApplicationDeliveryOptions & { id: string; confirmationHash?: string; }): Promise<{ uninstalled: boolean; noFilesWritten: boolean; id: string; scope: "project" | "user"; target: string; previous: InstalledApplication | null; retainedVersions: boolean; retainedDependencies: boolean; retainedHostIntegration: boolean; removesDefaultEntryOnly: boolean; removedEntries: { root: string; contentHash: string; platforms: string[]; }[]; retainedEntries: { platforms: string[]; root: string; contentHash: string; }[]; } | { confirmationHash: string; noFilesWritten: boolean; id: string; scope: "project" | "user"; target: string; previous: InstalledApplication | null; retainedVersions: boolean; retainedDependencies: boolean; retainedHostIntegration: boolean; removesDefaultEntryOnly: boolean; removedEntries: { root: string; contentHash: string; platforms: string[]; }[]; retainedEntries: { platforms: string[]; root: string; contentHash: string; }[]; }>; //# sourceMappingURL=delivery.d.ts.map