@contentful/experience-design-system-cli 2.42.1-dev-build-fb965e69.0 → 2.42.1-dev-build-b165bde7.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.
Files changed (70) hide show
  1. package/bin/cli.js +1 -1
  2. package/dist/app.js +16823 -24575
  3. package/dist/index.js +17683 -27022
  4. package/dist/package.json +1 -1
  5. package/dist/src/commands/import-options.d.ts +0 -8
  6. package/dist/src/tui/debug-store.d.ts +0 -2
  7. package/dist/src/tui/import/shared/running-step/logic.d.ts +16 -7
  8. package/dist/src/tui/import/shared/running-step/running-step.d.ts +1 -2
  9. package/dist/src/tui/import/shared/running-step/use-elapsed.d.ts +0 -1
  10. package/dist/src/tui/import/steps/03-path-validation/logic.d.ts +0 -1
  11. package/dist/src/tui/import/steps/03-path-validation/screen.d.ts +0 -1
  12. package/dist/src/tui/import/steps/06-extraction/logic.d.ts +6 -3
  13. package/dist/src/tui/import/steps/06-extraction/run-tokens-only.d.ts +0 -1
  14. package/dist/src/tui/import/steps/06-extraction/run.d.ts +9 -9
  15. package/dist/src/tui/import/steps/06-extraction/screen.d.ts +3 -1
  16. package/dist/src/tui/import/steps/06-extraction/selection.d.ts +1 -7
  17. package/dist/src/tui/import/steps/06-extraction/types.d.ts +0 -13
  18. package/dist/src/tui/import/steps/06-extraction/use-extraction.d.ts +1 -0
  19. package/dist/src/tui/import/steps/07-scope-gate/graph/index.d.ts +1 -3
  20. package/dist/src/tui/import/steps/07-scope-gate/screen.d.ts +1 -2
  21. package/dist/src/tui/import/steps/07-scope-gate/sidebar/ai-flag.d.ts +1 -0
  22. package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/GroupedSidebar.d.ts +0 -2
  23. package/dist/src/tui/import/steps/07-scope-gate/state.d.ts +2 -5
  24. package/dist/src/tui/import/steps/07-scope-gate/types.d.ts +6 -4
  25. package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate-flow.d.ts +0 -3
  26. package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate.d.ts +3 -7
  27. package/dist/src/tui/import/steps/08-generation/logic.d.ts +3 -2
  28. package/dist/src/tui/import/steps/08-generation/map-tokens.d.ts +1 -1
  29. package/dist/src/tui/import/steps/08-generation/run.d.ts +1 -9
  30. package/dist/src/tui/import/steps/08-generation/save-decisions.d.ts +5 -3
  31. package/dist/src/tui/import/steps/08-generation/screen.d.ts +3 -1
  32. package/dist/src/tui/import/steps/08-generation/types.d.ts +10 -16
  33. package/dist/src/tui/import/steps/08-generation/use-generation.d.ts +1 -0
  34. package/dist/src/tui/import/steps/09-review/components/FieldEditor.d.ts +2 -50
  35. package/dist/src/tui/import/steps/09-review/components/ReviewComponentPanel.d.ts +1 -4
  36. package/dist/src/tui/import/steps/09-review/components/ReviewDetailsEditor.d.ts +1 -1
  37. package/dist/src/tui/import/steps/09-review/generate-review-step.d.ts +0 -17
  38. package/dist/src/tui/import/steps/09-review/graph/cycle-view.d.ts +0 -3
  39. package/dist/src/tui/import/steps/09-review/history.d.ts +0 -1
  40. package/dist/src/tui/import/steps/09-review/review-details-panel.d.ts +2 -1
  41. package/dist/src/tui/import/steps/09-review/run-live-preview.d.ts +0 -1
  42. package/dist/src/tui/import/steps/09-review/types.d.ts +1 -2
  43. package/dist/src/tui/import/steps/09-review/use-review-editor.d.ts +2 -7
  44. package/dist/src/tui/import/steps/10-flow/flow/preview.d.ts +0 -1
  45. package/dist/src/tui/import/steps/10-flow/flow/push.d.ts +0 -2
  46. package/dist/src/tui/import/steps/10-flow/flow/save.d.ts +0 -2
  47. package/dist/src/tui/import/steps/10-flow/support/push-progress.d.ts +1 -0
  48. package/dist/src/tui/import/steps/10-flow/support/use-timed-spinner.d.ts +4 -0
  49. package/package.json +3 -3
  50. package/skills/generate-components.md +427 -156
  51. package/skills/generate-tokens.md +7 -1
  52. package/skills/map-tokens.md +1 -1
  53. package/skills/select-components.md +159 -20
  54. package/dist/src/tui/import/cancellation.d.ts +0 -26
  55. package/dist/src/tui/import/debug-resume-screen.d.ts +0 -7
  56. package/dist/src/tui/import/debug-resume.d.ts +0 -53
  57. package/dist/src/tui/import/shared/agent-activity.d.ts +0 -2
  58. package/dist/src/tui/import/steps/09-review/components/RepresentationEditor.d.ts +0 -11
  59. package/dist/src/tui/import/steps/09-review/components/source-observation-rows.d.ts +0 -3
  60. package/dist/src/tui/import/steps/09-review/persist-review-entry.d.ts +0 -14
  61. package/dist/src/tui/import/steps/09-review/review-models.d.ts +0 -12
  62. package/dist/src/tui/settings/PreferenceScreen.d.ts +0 -17
  63. package/skills/consensus/check.md +0 -6
  64. package/skills/consensus/tier.md +0 -5
  65. package/skills/consensus/verify.md +0 -6
  66. package/skills/debate-select.md +0 -37
  67. package/skills/explore/components.md +0 -30
  68. package/skills/explore/full-inventory.md +0 -27
  69. package/skills/explore/model-component.md +0 -44
  70. package/skills/explore/rules.md +0 -20
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { BreakingChange, ComponentTypeSummary, DownstreamImpact, ServerPreviewResponse } from '@contentful/experience-design-system-types';
3
2
  type GenerateReviewStepProps = {
4
3
  extractSessionId: string | null;
5
4
  tokenSessionId?: string | null;
@@ -13,21 +12,5 @@ type GenerateReviewStepProps = {
13
12
  tokensPath?: string;
14
13
  initialFinalizeError?: string | null;
15
14
  };
16
- interface BreakingComponent {
17
- componentName: string;
18
- changes: BreakingChange[];
19
- impact?: DownstreamImpact;
20
- current?: ComponentTypeSummary;
21
- }
22
- interface BreakingRow {
23
- label: string;
24
- componentName: string;
25
- focusTarget?: {
26
- kind: 'prop' | 'slot';
27
- name: string;
28
- };
29
- }
30
- export declare function buildBreakingRows(breakingChanges: BreakingComponent[]): BreakingRow[];
31
- export declare function deriveBreakingChanges(response: ServerPreviewResponse): BreakingComponent[];
32
15
  export declare function GenerateReviewStep(props: GenerateReviewStepProps): React.ReactElement;
33
16
  export {};
@@ -1,10 +1,7 @@
1
1
  import type { SlotCycle } from '../../07-scope-gate/graph/cycle-detection.js';
2
2
  import { type SlotGraphInput } from '../../07-scope-gate/graph/slot-graph.js';
3
- /** Complete source-owned model slots describe data, while ordinary slots retain composition checks. */
4
- export declare function buildVisualComponentGraph(components: SlotGraphInput[]): import("../../07-scope-gate/graph/composite-closure.js").ComponentGraphNode[];
5
3
  export interface CycleView {
6
4
  pushBlocking: SlotCycle[];
7
5
  structural: Set<string>;
8
- error?: string;
9
6
  }
10
7
  export declare function computeCycleView(components: SlotGraphInput[]): CycleView;
@@ -7,7 +7,6 @@ export interface HistorySnapshot {
7
7
  }
8
8
  interface CdfReviewEntrySnapshot {
9
9
  key: string;
10
- componentId?: string;
11
10
  entry: CDFComponentEntry;
12
11
  status: ReviewComponentStatus;
13
12
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type TokenPropSuggestion } from './components/TokenReviewPanel.js';
3
3
  import type { ComponentRationale, ComponentReviewMetadata } from '@contentful/experience-design-system-backend-pipeline';
4
- import type { ReviewPanel } from './types.js';
4
+ type ReviewPanel = 'none' | 'prop-rationale' | 'component-rationale' | 'source' | 'token-review';
5
5
  export type ReviewDetailsPanelProps = {
6
6
  selectedKey: string;
7
7
  panelOpen: ReviewPanel;
@@ -23,3 +23,4 @@ export type ReviewDetailsPanelProps = {
23
23
  editor: React.ReactNode;
24
24
  };
25
25
  export declare function ReviewDetailsPanel({ selectedKey, panelOpen, componentRationale, reviewMetadata, panelScrollOffset, width, height, sourceBorderColor, tokenSuggestions, tokenReviewRow, tokenReviewEditing, tokenReviewEditCursor, tokenReviewEditSelection, showJson, jsonValue, jsonScrollOffset, sidebarFocused, editor, }: ReviewDetailsPanelProps): React.ReactElement;
26
+ export {};
@@ -23,7 +23,6 @@ export type RunLivePreviewOptions = {
23
23
  * full delete. Lets the Finalize dialog show exactly what the accepted push
24
24
  * would delete, independent of the session's on-disk generated rows. */
25
25
  acceptedKeys?: ReadonlySet<string>;
26
- selectedComponentIds?: ReadonlySet<string>;
27
26
  };
28
27
  /**
29
28
  * Pure async helper used by `useLivePreview` to re-fire `previewImport` after a
@@ -2,11 +2,10 @@ import type { CDFComponentEntry } from '@contentful/experience-design-system-typ
2
2
  export type ReviewComponentStatus = 'needs-review' | 'reviewed' | 'accepted' | 'rejected';
3
3
  export type CdfReviewEntry = {
4
4
  key: string;
5
- componentId?: string;
6
5
  entry: CDFComponentEntry;
7
6
  status: ReviewComponentStatus;
8
7
  };
9
- export type ReviewPanel = 'none' | 'prop-rationale' | 'component-rationale' | 'source' | 'token-review' | 'representations';
8
+ export type ReviewPanel = 'none' | 'prop-rationale' | 'component-rationale' | 'source' | 'token-review';
10
9
  export type TokenReviewToken = {
11
10
  path: string;
12
11
  kind: string;
@@ -1,4 +1,3 @@
1
- import type { RepresentationPlan } from '@contentful/experience-design-system-types';
2
1
  import { type Dispatch, type SetStateAction } from 'react';
3
2
  import type { CdfReviewEntry, ReviewPanel, TokenPropSuggestion, TokenReviewToken } from './types.js';
4
3
  type UseReviewEditorOptions = {
@@ -40,13 +39,9 @@ export type UseReviewEditorResult = {
40
39
  current: boolean;
41
40
  };
42
41
  currentTokenSuggestions: () => TokenPropSuggestion[];
43
- handleEditSave: (value?: string) => boolean;
44
- setDraftValid: Dispatch<SetStateAction<boolean>>;
42
+ handleEditSave: () => void;
45
43
  handleEditDiscard: () => void;
46
- handleTokenEditSave: (suggestion: TokenPropSuggestion) => boolean;
47
- closeRepresentations?: () => void;
48
- representationChoices?: () => RepresentationPlan[];
49
- chooseRepresentation?: (propertyName: string, kind: RepresentationPlan['kind'], candidateId?: string) => boolean;
44
+ handleTokenEditSave: (suggestion: TokenPropSuggestion) => void;
50
45
  };
51
46
  export declare function useReviewEditor({ components, selectedIdx, extractSessionId, availableTokens, setComponents, pushHistorySnapshot, onEditSaved, onTokenSaved, }: UseReviewEditorOptions): UseReviewEditorResult;
52
47
  export {};
@@ -10,7 +10,6 @@ type PreviewClient = {
10
10
  /** The outside world `runPreview` talks to, so each branch can be tested without a database or a network. */
11
11
  export interface PreviewDeps {
12
12
  createClient: (options: {
13
- prerequisiteSessionId?: string;
14
13
  cmaToken: string;
15
14
  spaceId: string;
16
15
  environmentId: string;
@@ -14,7 +14,6 @@ type PushClient = {
14
14
  /** The outside world `runPush` talks to, so each branch can be tested without a network or a run history. */
15
15
  export interface PushDeps {
16
16
  createClient: (options: {
17
- prerequisiteSessionId?: string;
18
17
  cmaToken: string;
19
18
  spaceId: string;
20
19
  environmentId: string;
@@ -28,7 +27,6 @@ export interface PushDeps {
28
27
  }
29
28
  export declare const realPushDeps: (log: PushDeps["log"]) => PushDeps;
30
29
  export interface RunPushInput {
31
- extractSessionId?: string | null;
32
30
  state: Pick<FlowState, 'credentialsSkipped' | 'lastRunId'>;
33
31
  cdf: CDFDocument;
34
32
  spaceId: string;
@@ -20,8 +20,6 @@ export interface WriteFilesInput {
20
20
  tokensPath?: string;
21
21
  skipGate?: boolean;
22
22
  allowEmpty?: boolean;
23
- selectedComponentIds?: ReadonlySet<string>;
24
- acceptedKeys?: ReadonlySet<string>;
25
23
  }
26
24
  /**
27
25
  * Writes `components.json` to `outDir`. Returns the patch for the step after (the print gate, or nothing when the save
@@ -5,5 +5,6 @@ export type PushProgress = {
5
5
  kind: 'progress';
6
6
  processed: number;
7
7
  total: number;
8
+ failed: number;
8
9
  current: string | null;
9
10
  } | null;
@@ -0,0 +1,4 @@
1
+ export declare function useTimedSpinner(): {
2
+ spinner: React.ReactElement;
3
+ elapsed: string;
4
+ };
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-fb965e69.0",
3
+ "version": "2.42.1-dev-build-b165bde7.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-fb965e69.0"
48
+ "@contentful/experience-design-system-types": "2.42.1-dev-build-b165bde7.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-fb965e69.0"
62
+ "@contentful/experience-design-system-backend-pipeline": "2.42.1-dev-build-b165bde7.0"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",