@contentful/experience-design-system-cli 2.42.1-dev-build-9c1908dc.0 → 2.42.1-dev-build-c7f654e2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.42.1-dev-build-9c1908dc.0",
3
+ "version": "2.42.1-dev-build-c7f654e2.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -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
- export declare function finishDebugRun({ outputs, status, exitMethod, }: {
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;
@@ -2,6 +2,8 @@ interface ErrorHandlers {
2
2
  onExit: () => void;
3
3
  onRetry?: () => void;
4
4
  onAcknowledge?: () => void;
5
+ /** Set once there is something to show in the file manager. */
6
+ onOpen?: () => void;
5
7
  }
6
8
  export declare function useErrorControls(handlers: ErrorHandlers): void;
7
9
  export {};
@@ -2,10 +2,11 @@ interface Key {
2
2
  return: boolean;
3
3
  escape: boolean;
4
4
  }
5
- export type ErrorAction = 'exit' | 'retry' | 'acknowledge' | null;
5
+ export type ErrorAction = 'exit' | 'retry' | 'acknowledge' | 'open' | null;
6
6
  interface Available {
7
7
  canRetry: boolean;
8
8
  canAcknowledge: boolean;
9
+ canOpen: boolean;
9
10
  }
10
11
  export declare function errorAction(input: string, key: Key, available: Available): ErrorAction;
11
12
  export declare function errorControls(available: Available): {
@@ -0,0 +1,3 @@
1
+ import { type SupportBundle } from '@tui/support-bundle.js';
2
+ /** Zips this session's debug logs once, when an error screen appears. Undefined until that is done. */
3
+ export declare function useSupportBundle(): SupportBundle | undefined;
@@ -0,0 +1,25 @@
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
+ /** Shows the zip (or, if there is none, the debug folder) in Finder or File Explorer. Best effort: a failure is ignored. */
23
+ export declare function openSupportBundle(bundle: SupportBundle): void;
24
+ /** What the error screen says about the logs, in one short instruction. */
25
+ export declare function supportInstruction(bundle: SupportBundle): string;
@@ -0,0 +1,7 @@
1
+ export interface ZipEntry {
2
+ /** The path inside the zip, with `/` between folders. */
3
+ name: string;
4
+ data: Buffer;
5
+ modified: Date;
6
+ }
7
+ export declare function createZip(entries: readonly ZipEntry[]): Buffer;
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-9c1908dc.0",
3
+ "version": "2.42.1-dev-build-c7f654e2.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-9c1908dc.0"
48
+ "@contentful/experience-design-system-types": "2.42.1-dev-build-c7f654e2.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-9c1908dc.0"
62
+ "@contentful/experience-design-system-backend-pipeline": "2.42.1-dev-build-c7f654e2.0"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",