@contentful/experience-design-system-cli 2.42.1-dev-build-fb965e69.0 → 2.42.1-dev-build-35573a04.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 (65) hide show
  1. package/bin/cli.js +1 -1
  2. package/dist/app.js +16738 -24551
  3. package/dist/index.js +17579 -26984
  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 +0 -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 +4 -2
  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/selection.d.ts +1 -7
  16. package/dist/src/tui/import/steps/06-extraction/types.d.ts +0 -13
  17. package/dist/src/tui/import/steps/07-scope-gate/graph/index.d.ts +1 -3
  18. package/dist/src/tui/import/steps/07-scope-gate/screen.d.ts +1 -2
  19. package/dist/src/tui/import/steps/07-scope-gate/sidebar/ai-flag.d.ts +1 -0
  20. package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/GroupedSidebar.d.ts +0 -2
  21. package/dist/src/tui/import/steps/07-scope-gate/state.d.ts +2 -5
  22. package/dist/src/tui/import/steps/07-scope-gate/types.d.ts +6 -4
  23. package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate-flow.d.ts +0 -3
  24. package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate.d.ts +3 -7
  25. package/dist/src/tui/import/steps/08-generation/logic.d.ts +8 -2
  26. package/dist/src/tui/import/steps/08-generation/map-tokens.d.ts +1 -1
  27. package/dist/src/tui/import/steps/08-generation/run.d.ts +1 -9
  28. package/dist/src/tui/import/steps/08-generation/save-decisions.d.ts +5 -3
  29. package/dist/src/tui/import/steps/08-generation/types.d.ts +5 -15
  30. package/dist/src/tui/import/steps/09-review/components/FieldEditor.d.ts +2 -50
  31. package/dist/src/tui/import/steps/09-review/components/ReviewComponentPanel.d.ts +1 -4
  32. package/dist/src/tui/import/steps/09-review/components/ReviewDetailsEditor.d.ts +1 -1
  33. package/dist/src/tui/import/steps/09-review/generate-review-step.d.ts +0 -17
  34. package/dist/src/tui/import/steps/09-review/graph/cycle-view.d.ts +0 -3
  35. package/dist/src/tui/import/steps/09-review/history.d.ts +0 -1
  36. package/dist/src/tui/import/steps/09-review/review-details-panel.d.ts +2 -1
  37. package/dist/src/tui/import/steps/09-review/run-live-preview.d.ts +0 -1
  38. package/dist/src/tui/import/steps/09-review/types.d.ts +1 -2
  39. package/dist/src/tui/import/steps/09-review/use-review-editor.d.ts +2 -7
  40. package/dist/src/tui/import/steps/10-flow/flow/preview.d.ts +0 -1
  41. package/dist/src/tui/import/steps/10-flow/flow/push.d.ts +0 -2
  42. package/dist/src/tui/import/steps/10-flow/flow/save.d.ts +0 -2
  43. package/dist/src/tui/import/steps/10-flow/support/use-timed-spinner.d.ts +4 -0
  44. package/package.json +3 -3
  45. package/skills/generate-components.md +427 -156
  46. package/skills/generate-tokens.md +7 -1
  47. package/skills/map-tokens.md +1 -1
  48. package/skills/select-components.md +159 -20
  49. package/dist/src/tui/import/cancellation.d.ts +0 -26
  50. package/dist/src/tui/import/debug-resume-screen.d.ts +0 -7
  51. package/dist/src/tui/import/debug-resume.d.ts +0 -53
  52. package/dist/src/tui/import/shared/agent-activity.d.ts +0 -2
  53. package/dist/src/tui/import/steps/09-review/components/RepresentationEditor.d.ts +0 -11
  54. package/dist/src/tui/import/steps/09-review/components/source-observation-rows.d.ts +0 -3
  55. package/dist/src/tui/import/steps/09-review/persist-review-entry.d.ts +0 -14
  56. package/dist/src/tui/import/steps/09-review/review-models.d.ts +0 -12
  57. package/dist/src/tui/settings/PreferenceScreen.d.ts +0 -17
  58. package/skills/consensus/check.md +0 -6
  59. package/skills/consensus/tier.md +0 -5
  60. package/skills/consensus/verify.md +0 -6
  61. package/skills/debate-select.md +0 -37
  62. package/skills/explore/components.md +0 -30
  63. package/skills/explore/full-inventory.md +0 -27
  64. package/skills/explore/model-component.md +0 -44
  65. package/skills/explore/rules.md +0 -20
@@ -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
@@ -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-35573a04.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-35573a04.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-35573a04.0"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",