@contentful/experience-design-system-cli 2.42.1-dev-build-9c1908dc.0 → 2.42.1-dev-build-9a3d743e.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 +538 -404
- package/dist/index.js +437 -285
- package/dist/package.json +1 -1
- package/dist/src/tui/debug-store.d.ts +3 -1
- package/dist/src/tui/import/shared/error-step/use-support-bundle.d.ts +3 -0
- package/dist/src/tui/support-bundle.d.ts +23 -0
- package/dist/src/tui/zip.d.ts +7 -0
- package/package.json +3 -3
package/dist/package.json
CHANGED
|
@@ -26,7 +26,9 @@ export declare function startDebugRun({ flow, step, menuOption, inputs, }: {
|
|
|
26
26
|
}): void;
|
|
27
27
|
/** Keeps what the open run has so far, in memory. It is only written if the run is cut short. */
|
|
28
28
|
export declare function setDebugRunProgress(outputs: Record<string, unknown>): void;
|
|
29
|
-
|
|
29
|
+
/** Resolves once every log that has been finished is on disk. */
|
|
30
|
+
export declare function settleDebugLogs(): Promise<void>;
|
|
31
|
+
export declare function finishDebugRun(args: {
|
|
30
32
|
outputs: Record<string, unknown>;
|
|
31
33
|
status: Status;
|
|
32
34
|
exitMethod: ExitMethod;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type SupportBundle = {
|
|
2
|
+
status: 'created';
|
|
3
|
+
path: string;
|
|
4
|
+
files: number;
|
|
5
|
+
}
|
|
6
|
+
/** There are no debug logs to send, which is what Debug Mode being off looks like. */
|
|
7
|
+
| {
|
|
8
|
+
status: 'no-logs';
|
|
9
|
+
}
|
|
10
|
+
/** The zip could not be made. The logs are still in `folder`. */
|
|
11
|
+
| {
|
|
12
|
+
status: 'failed';
|
|
13
|
+
folder: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Zips this session's debug logs, in the folder layout they have on disk, into the session folder next to `debug/`. The
|
|
17
|
+
* zip is not inside `debug/`, so it is never zipped into itself and the log cleanup leaves it alone. It waits for logs
|
|
18
|
+
* that are still being written, so the step that just failed is in it. Making the zip never throws: it is offered on the
|
|
19
|
+
* screen that explains an error, and must not replace that error with another.
|
|
20
|
+
*/
|
|
21
|
+
export declare function bundleDebugLogs(): Promise<SupportBundle>;
|
|
22
|
+
/** What the error screen says about the logs, in one short instruction. */
|
|
23
|
+
export declare function supportInstruction(bundle: SupportBundle): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.42.1-dev-build-
|
|
3
|
+
"version": "2.42.1-dev-build-9a3d743e.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-types": "2.42.1-dev-build-
|
|
48
|
+
"@contentful/experience-design-system-types": "2.42.1-dev-build-9a3d743e.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"ink-testing-library": "^4.0.0",
|
|
60
60
|
"typescript-eslint": "^8.67.0",
|
|
61
61
|
"vitest": "^4.0.16",
|
|
62
|
-
"@contentful/experience-design-system-backend-pipeline": "2.42.1-dev-build-
|
|
62
|
+
"@contentful/experience-design-system-backend-pipeline": "2.42.1-dev-build-9a3d743e.0"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|