@contentful/experience-design-system-cli 2.37.1-dev-build-fb8573b6.0 → 2.37.1-dev-build-799db3ac.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 +425 -3695
- package/dist/index.js +1316 -4762
- package/dist/package.json +1 -2
- package/dist/src/tui/import/spawn-v1-import.d.ts +3 -3
- package/dist/src/tui/import/steps/05-token-reuse/logic.d.ts +2 -1
- package/dist/src/tui/import/steps/index.d.ts +0 -1
- package/legacy/dist/src/import/tui/WizardApp.d.ts +8 -0
- package/legacy/dist/src/import/tui/run-selection-agent.d.ts +9 -0
- package/legacy/dist/src/index.js +628 -75
- package/legacy/package.json +1 -2
- package/package.json +3 -4
- package/dist/src/tui/import/steps/06-extraction/logic.d.ts +0 -69
- package/dist/src/tui/import/steps/06-extraction/processes.d.ts +0 -45
- package/dist/src/tui/import/steps/06-extraction/run.d.ts +0 -24
- package/dist/src/tui/import/steps/06-extraction/screen.d.ts +0 -10
- package/dist/src/tui/import/steps/06-extraction/selection.d.ts +0 -18
- package/dist/src/tui/import/steps/06-extraction/types.d.ts +0 -44
- package/dist/src/tui/import/steps/06-extraction/use-extraction.d.ts +0 -14
- package/legacy/dist/src/import/tui/handoff.d.ts +0 -26
package/dist/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-799db3ac.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@contentful/experience-design-system-backend-pipeline": "workspace:*",
|
|
41
|
-
"@contentful/experience-design-system-generation": "workspace:*",
|
|
42
41
|
"@contentful/experience-design-system-types": "workspace:*",
|
|
43
42
|
"@inkjs/ui": "^2.0.0",
|
|
44
43
|
"@segment/analytics-node": "^3.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ImportOptions } from '../../commands/import-options.js';
|
|
2
|
-
import {
|
|
2
|
+
import type { TokenStrategy } from './steps/05-token-reuse/logic.js';
|
|
3
3
|
interface StepResult {
|
|
4
4
|
step: string;
|
|
5
5
|
status: 'complete' | 'failed' | 'skipped';
|
|
@@ -20,8 +20,8 @@ export interface SpawnV1ImportOptions extends Partial<ImportOptions> {
|
|
|
20
20
|
projectPath?: string;
|
|
21
21
|
tokens?: string;
|
|
22
22
|
filePaths?: string[];
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
skipCredentials?: boolean;
|
|
24
|
+
tokenStrategy?: TokenStrategy;
|
|
25
25
|
onProgress?: (line: string) => void;
|
|
26
26
|
}
|
|
27
27
|
export interface SpawnV1ImportResult {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type TokenStrategy = 'reuse' | 'regenerate' | 'generate';
|
|
2
2
|
export type TokensState = {
|
|
3
3
|
kind: 'none';
|
|
4
4
|
} | {
|
|
@@ -19,3 +19,4 @@ export declare function gateText({ tokensPath, sourceChanged }: {
|
|
|
19
19
|
summary: string;
|
|
20
20
|
context?: string;
|
|
21
21
|
};
|
|
22
|
+
export {};
|
|
@@ -3,4 +3,3 @@ export { TokenInputScreen } from './02-token-input/screen.js';
|
|
|
3
3
|
export { PathValidationScreen } from './03-path-validation/screen.js';
|
|
4
4
|
export { CredentialsScreen } from './04-credentials/screen.js';
|
|
5
5
|
export { TokenReuseScreen } from './05-token-reuse/screen.js';
|
|
6
|
-
export { ExtractionScreen } from './06-extraction/screen.js';
|
|
@@ -14,6 +14,14 @@ export declare function buildGenerateComponentsArgs(opts: {
|
|
|
14
14
|
restoreCache?: boolean;
|
|
15
15
|
cachedComponents?: string[];
|
|
16
16
|
}): string[];
|
|
17
|
+
export declare function buildGenerateTokensArgs(opts: {
|
|
18
|
+
rawTokensPath: string;
|
|
19
|
+
agent: string;
|
|
20
|
+
model?: string;
|
|
21
|
+
bedrock?: boolean;
|
|
22
|
+
noCache?: boolean;
|
|
23
|
+
promptOverrides?: string[];
|
|
24
|
+
}): string[];
|
|
17
25
|
export declare function buildMapTokensArgs(opts: {
|
|
18
26
|
sessionId: string;
|
|
19
27
|
agent: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AgentName } from '@contentful/experience-design-system-generation';
|
|
2
|
+
export declare function runSelectionAgent(options: {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
agent: AgentName;
|
|
5
|
+
model?: string;
|
|
6
|
+
promptText?: string;
|
|
7
|
+
promptPath?: string;
|
|
8
|
+
noCache?: boolean;
|
|
9
|
+
}): Promise<void>;
|