/** * scope-resolver — AI 验证范围解析(v8.3.350+) * * 三种范围: * all → 020-specs 下所有功能单元目录 * deployed → 读部署清单(deploy-manifest.json)的端名,筛选含对应端子目录的单元 * modules → 精确匹配指定的功能单元目录名 * 均可叠加端过滤(platformFilter)。 */ import type { DeployManifest, ScopeUnit } from './types'; export interface ScopeResolveInput { /** 迭代目录绝对路径(含 020-specs) */ iterDir: string; /** scope 参数原文:all | deployed | modules:a,b */ scope: string; /** 端过滤(CONSTITUTION 标准端名,逗号分隔),空为不过滤 */ platformFilter?: string; /** 项目根目录(读 deploy-manifest.json 用) */ projectRoot: string; } export interface ScopeResolveOutput { units: ScopeUnit[]; warnings: string[]; } /** 解析 --platform 参数为端名数组 */ export declare function parsePlatformFilter(filter?: string): string[]; /** 读部署清单(不存在返回 null) */ export declare function loadDeployManifest(projectRoot: string): Promise; /** * 解析验证范围 → 功能单元列表。 * 非法 scope 抛错(由调用方捕获提示用法)。 */ export declare function resolveScopeUnits(input: ScopeResolveInput): Promise; //# sourceMappingURL=scope-resolver.d.ts.map