@contentful/experience-design-system-cli 2.34.5-dev-build-ec126bf0.0 → 2.34.5-dev-build-4a4b9e84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/package.json +1 -1
- package/dist/src/import/extract-project.d.ts +33 -0
- package/dist/src/index.js +18614 -18667
- package/package.json +6 -6
- package/skills/select-components.md +1 -1
- package/dist/src/analyze/extract-command.d.ts +0 -7
package/README.md
CHANGED
|
@@ -106,7 +106,7 @@ experiences import [flags]
|
|
|
106
106
|
```
|
|
107
107
|
welcome
|
|
108
108
|
↓
|
|
109
|
-
extracting —
|
|
109
|
+
extracting — calls the in-process extraction endpoint with composite relationships enabled;
|
|
110
110
|
spawns internal generation in parallel (prefetch)
|
|
111
111
|
↓
|
|
112
112
|
[auto-filter] — analyze select-agent runs automatically
|
package/dist/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type ExtractProjectProgress = {
|
|
2
|
+
phase: 'scan';
|
|
3
|
+
scanned: number;
|
|
4
|
+
} | {
|
|
5
|
+
phase: 'extract';
|
|
6
|
+
filesProcessed: number;
|
|
7
|
+
totalFiles: number;
|
|
8
|
+
componentsFound: number;
|
|
9
|
+
} | {
|
|
10
|
+
phase: 'composition';
|
|
11
|
+
status: string;
|
|
12
|
+
};
|
|
13
|
+
export interface ExtractProjectOptions {
|
|
14
|
+
project: string;
|
|
15
|
+
dir?: string;
|
|
16
|
+
resolveUnreachable?: 'auto' | 'always' | 'never';
|
|
17
|
+
compositionRefresh?: boolean;
|
|
18
|
+
prompt?: string[];
|
|
19
|
+
agent?: string;
|
|
20
|
+
bedrock?: boolean;
|
|
21
|
+
onProgress?: (progress: ExtractProjectProgress) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface ExtractProjectResult {
|
|
24
|
+
sessionId: string;
|
|
25
|
+
projectRoot: string;
|
|
26
|
+
sourceDirectory: string;
|
|
27
|
+
sourceFiles: string[];
|
|
28
|
+
extractedComponentCount: number;
|
|
29
|
+
componentCount: number;
|
|
30
|
+
warnings: string[];
|
|
31
|
+
}
|
|
32
|
+
export declare function collectSourceFiles(directory: string, onProgress?: (scannedCount: number) => void): Promise<string[]>;
|
|
33
|
+
export declare function extractProject(opts: ExtractProjectOptions): Promise<ExtractProjectResult>;
|