@contentful/experience-design-system-cli 2.37.1-dev-build-5bd13138.0 → 2.37.1-dev-build-2fb4dadf.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 +302 -414
- package/dist/index.js +238 -310
- package/dist/package.json +1 -1
- package/dist/src/tui/debug-store.d.ts +0 -6
- package/dist/src/tui/import/steps/06-extraction/run.d.ts +0 -3
- package/dist/src/tui/import/steps/10-flow/flow/controller.d.ts +0 -3
- package/legacy/package.json +1 -1
- package/package.json +3 -3
- package/dist/src/tui/import/debug-hooks.d.ts +0 -17
package/dist/package.json
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
type Status = 'success' | 'error';
|
|
2
2
|
type ExitMethod = 'saved' | 'discarded' | 'crashed';
|
|
3
3
|
export declare function currentDebugSessionDir(): string;
|
|
4
|
-
/**
|
|
5
|
-
* Moves this session's logs to `<outDir>/debug/sessions/<session>/`, next to the CDF, and writes there from now on.
|
|
6
|
-
* Logs written before the project was known come along. Safe to call repeatedly; a different outDir moves them again.
|
|
7
|
-
* Fail-open like the rest of the logger: if the move fails the logs stay where they were.
|
|
8
|
-
*/
|
|
9
|
-
export declare function setDebugOutDir(outDir: string): Promise<void>;
|
|
10
4
|
export declare function startDebugRun({ flow, step, menuOption, inputs, }: {
|
|
11
5
|
flow: string;
|
|
12
6
|
step: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { checkAgentAuth, runExtractAndComposeSession, runGenerateTokensSession } from '@contentful/experience-design-system-backend-pipeline';
|
|
2
|
-
import { type DebugHooks } from '../../debug-hooks.js';
|
|
3
2
|
import { runSelection } from './selection.js';
|
|
4
3
|
import type { ExtractionInput, ExtractionProgress, ExtractionResult } from './types.js';
|
|
5
4
|
/** The outside world the stage talks to, so the order of events can be tested without a network, an agent or a CLI. */
|
|
@@ -9,8 +8,6 @@ export interface ExtractionDeps {
|
|
|
9
8
|
runExtractAndComposeSession: typeof runExtractAndComposeSession;
|
|
10
9
|
runGenerateTokensSession: typeof runGenerateTokensSession;
|
|
11
10
|
runSelection: typeof runSelection;
|
|
12
|
-
/** Debug-log hooks. Optional so tests do not write logs; the real ones live in the TUI's debug store. */
|
|
13
|
-
debug?: DebugHooks;
|
|
14
11
|
}
|
|
15
12
|
/**
|
|
16
13
|
* Runs the stage. The jobs overlap exactly as they did when extract was a
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type PreviewValidationError } from '@contentful/experience-design-system-backend-pipeline';
|
|
2
2
|
import type { ImportHandoff } from '@contentful/experience-design-system-types/handoff';
|
|
3
|
-
import { type DebugHooks } from '../../../debug-hooks.js';
|
|
4
3
|
import { type PreviewDeps } from './preview.js';
|
|
5
4
|
import { type PushDeps } from './push.js';
|
|
6
5
|
import { type SaveDeps } from './save.js';
|
|
@@ -39,8 +38,6 @@ export interface FlowDeps {
|
|
|
39
38
|
/** Writes one line of the wizard's step log. */
|
|
40
39
|
log: (entry: Record<string, unknown>) => void;
|
|
41
40
|
stderr: (text: string) => void;
|
|
42
|
-
/** Debug-log hooks. Optional so tests do not write logs. */
|
|
43
|
-
debug?: DebugHooks;
|
|
44
41
|
}
|
|
45
42
|
export declare function startWizardLog(): void;
|
|
46
43
|
export declare function realFlowDeps(): FlowDeps;
|
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-2fb4dadf.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-
|
|
49
|
-
"@contentful/experience-design-system-types": "2.37.1-dev-build-
|
|
48
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-2fb4dadf.0",
|
|
49
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-2fb4dadf.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** What the import stages need from the TUI's debug store. */
|
|
2
|
-
export interface DebugHooks {
|
|
3
|
-
/** Moves this session's logs next to the CDF in `outDir`. */
|
|
4
|
-
setOutDir: (outDir: string) => Promise<void>;
|
|
5
|
-
start: (run: {
|
|
6
|
-
flow: string;
|
|
7
|
-
step: string;
|
|
8
|
-
menuOption: string;
|
|
9
|
-
inputs: Record<string, unknown>;
|
|
10
|
-
}) => void;
|
|
11
|
-
finish: (run: {
|
|
12
|
-
outputs: Record<string, unknown>;
|
|
13
|
-
status: 'success' | 'error';
|
|
14
|
-
exitMethod: 'saved' | 'discarded' | 'crashed';
|
|
15
|
-
}) => Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
export declare const realDebugHooks: DebugHooks;
|