@contentful/experience-design-system-cli 2.37.1-dev-build-aa3ffe6f.0 → 2.37.1-dev-build-a029dc0a.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/dist/app.js +14777 -6540
- package/dist/index.js +18212 -8925
- package/dist/package.json +1 -1
- package/dist/src/tui/import/steps/06-extraction/find-skill-path.d.ts +1 -0
- package/dist/src/tui/import/steps/06-extraction/logic.d.ts +4 -25
- package/dist/src/tui/import/steps/06-extraction/run.d.ts +13 -11
- package/dist/src/tui/import/steps/06-extraction/selection.d.ts +1 -1
- package/dist/src/tui/import/steps/06-extraction/types.d.ts +3 -1
- package/dist/src/tui/import/steps/07-scope-gate/keymap.d.ts +2 -0
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/GroupedSidebar.d.ts +2 -0
- package/dist/src/tui/import/steps/07-scope-gate/state.d.ts +3 -2
- package/dist/src/tui/import/steps/07-scope-gate/types.d.ts +7 -0
- package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate.d.ts +1 -1
- package/dist/src/tui/import/steps/08-generation/types.d.ts +2 -4
- package/legacy/dist/package.json +4 -1
- package/legacy/dist/src/index.js +13294 -7837
- package/legacy/package.json +1 -1
- package/package.json +4 -4
- package/dist/src/tui/import/steps/06-extraction/processes.d.ts +0 -45
package/legacy/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.37.1-dev-build-
|
|
3
|
+
"version": "2.37.1-dev-build-a029dc0a.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-
|
|
49
|
-
"@contentful/experience-design-system-
|
|
50
|
-
"@contentful/experience-design-system-
|
|
48
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-a029dc0a.0",
|
|
49
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-a029dc0a.0",
|
|
50
|
+
"@contentful/experience-design-system-generation": "2.37.1-dev-build-a029dc0a.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** The legacy commands the stage drives, started the way the wizard starts them. */
|
|
2
|
-
export interface SpawnedResult {
|
|
3
|
-
exitCode: number;
|
|
4
|
-
stdout: string;
|
|
5
|
-
stderr: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ExtractCommand {
|
|
8
|
-
projectPath: string;
|
|
9
|
-
agent: string;
|
|
10
|
-
promptOverrides: string[];
|
|
11
|
-
noCache: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface TokenGenerationInput {
|
|
14
|
-
rawTokensPath: string;
|
|
15
|
-
outDir: string;
|
|
16
|
-
agent: string;
|
|
17
|
-
agentModel?: string;
|
|
18
|
-
promptOverrides: string[];
|
|
19
|
-
noCache: boolean;
|
|
20
|
-
}
|
|
21
|
-
export type TokenGenerationResult = {
|
|
22
|
-
ok: true;
|
|
23
|
-
tokensPath: string;
|
|
24
|
-
tokenSessionId: string | null;
|
|
25
|
-
tokenCount: number;
|
|
26
|
-
} | {
|
|
27
|
-
ok: false;
|
|
28
|
-
step: 'generate tokens' | 'print tokens';
|
|
29
|
-
message: string;
|
|
30
|
-
};
|
|
31
|
-
/** Splits a stream into lines as chunks arrive, holding back a trailing partial line until the next chunk completes it. */
|
|
32
|
-
export declare function lineSplitter(onLine: (line: string) => void): (chunk: string) => void;
|
|
33
|
-
/** Arguments for `__extract`, in the order the wizard passes them. The extract command takes an agent but no model. */
|
|
34
|
-
export declare function buildExtractArgs(cliPath: string, command: ExtractCommand): string[];
|
|
35
|
-
/** Arguments for `__generate tokens`, in the order the wizard passes them. */
|
|
36
|
-
export declare function buildGenerateTokensArgs(cliPath: string, input: TokenGenerationInput): string[];
|
|
37
|
-
/** Arguments for `print tokens`, which writes the generated catalog next to the project. */
|
|
38
|
-
export declare function buildPrintTokensArgs(tokensPath: string, tokenSessionId: string | null): string[];
|
|
39
|
-
/** `node <legacy cli> __extract …`, with stderr and stdout delivered line by line while it runs. */
|
|
40
|
-
export declare function spawnExtract(command: ExtractCommand, handlers: {
|
|
41
|
-
onStderrLine: (line: string) => void;
|
|
42
|
-
onStdoutLine: (line: string) => void;
|
|
43
|
-
}): Promise<SpawnedResult>;
|
|
44
|
-
/** `__generate tokens`, then `print tokens` to write `<outDir>/tokens.json`. */
|
|
45
|
-
export declare function runTokenGeneration(input: TokenGenerationInput): Promise<TokenGenerationResult>;
|