@contentful/experience-design-system-cli 2.34.5-dev-build-aa25ced.0 → 2.34.5-dev-build-0fafac5.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.
@@ -1,6 +1,5 @@
1
1
  import type { Command } from 'commander';
2
2
  export declare function addArtifactInputOptions(cmd: Command): Command;
3
3
  export declare function addContentfulTargetOptions(cmd: Command): Command;
4
- export declare function addCompositionOptions(cmd: Command): Command;
5
4
  export declare function addSelectionOptions(cmd: Command): Command;
6
5
  export declare function addAllowDeletionsOption(cmd: Command): Command;
@@ -2,7 +2,6 @@
2
2
  * Thin indirection so `runModifyCommand` can be unit-tested without spinning
3
3
  * up the real Ink wizard. The production implementation lives here.
4
4
  */
5
- import type { CompositionMode } from '../lib/composition-mode.js';
6
5
  export type ModifyLauncherInput = {
7
6
  extractSessionId: string;
8
7
  generateSessionId: string | null;
@@ -16,9 +15,6 @@ export type ModifyLauncherInput = {
16
15
  savePath: string;
17
16
  entryStep: 'scope-gate' | 'final-review';
18
17
  saveMode: 'overwrite' | 'new' | 'prompt';
19
- /** Composition mode from the run record, so the modify wizard resumes in the
20
- * same mode. Omitted → the wizard's default (`atomic`). */
21
- compositionMode?: CompositionMode;
22
18
  outDirOverride?: string;
23
19
  /** Pre-fill space id (from the run record's pushedTo). */
24
20
  initialSpaceId?: string;
@@ -1,4 +1,3 @@
1
- import type { CompositionMode } from '../lib/composition-mode.js';
2
1
  export declare const RUNS_FILE_VERSION: 3;
3
2
  /** Versions this CLI can read. v1 / v2 files are auto-migrated in memory;
4
3
  * new writes always use the latest version. */
@@ -55,10 +54,6 @@ export type RunRecord = {
55
54
  * writers always populate. Added in runs.json v3. Optional for the same
56
55
  * reason as `sourceFingerprint`. */
57
56
  savedFingerprint?: SavedFingerprint | null;
58
- /** Composition mode the run was produced in, so modify/replay resumes in the
59
- * same mode (`composite` vs `atomic`). Absent on records written before this
60
- * field existed; callers treat a missing value as `atomic` (the default). */
61
- compositionMode?: CompositionMode;
62
57
  notes?: string;
63
58
  };
64
59
  export type RunsFile = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.34.5-dev-build-aa25ced.0",
3
+ "version": "2.34.5-dev-build-0fafac5.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "svelte": "^5.56.4",
40
40
  "ts-morph": "^27.0.2",
41
41
  "typescript": "^5.9.3",
42
- "@contentful/experience-design-system-cli-v2": "2.34.5-dev-build-aa25ced.0",
43
- "@contentful/experience-design-system-types": "2.34.5-dev-build-aa25ced.0"
42
+ "@contentful/experience-design-system-cli-v2": "2.34.5-dev-build-0fafac5.0",
43
+ "@contentful/experience-design-system-types": "2.34.5-dev-build-0fafac5.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@tsconfig/node24": "^24.0.4",
@@ -52,9 +52,9 @@
52
52
  "ink-testing-library": "^4.0.0",
53
53
  "typescript-eslint": "^8.67.0",
54
54
  "vitest": "^4.0.16",
55
- "@contentful/experience-design-system-client": "2.34.5-dev-build-aa25ced.0",
56
- "@contentful/experience-design-system-extraction": "2.34.5-dev-build-aa25ced.0",
57
- "@contentful/experience-design-system-generation": "2.34.5-dev-build-aa25ced.0"
55
+ "@contentful/experience-design-system-client": "2.34.5-dev-build-0fafac5.0",
56
+ "@contentful/experience-design-system-generation": "2.34.5-dev-build-0fafac5.0",
57
+ "@contentful/experience-design-system-extraction": "2.34.5-dev-build-0fafac5.0"
58
58
  },
59
59
  "repository": {
60
60
  "type": "git",
@@ -1,18 +0,0 @@
1
- import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
2
- /**
3
- * Atomic-mode normalization (spec T8, option a): keep every slot's structure
4
- * but drop its `$allowedComponents` composition constraint. Applied over the
5
- * loaded component array regardless of source (`--session` or `--components`),
6
- * so the atomic bypass cannot leak a live composition link into the pushed
7
- * manifest. Starving `$allowedComponents` at this single point also makes
8
- * slot-cycle detection structurally return zero (see T12).
9
- *
10
- * Returns a new array with cloned entries; inputs are not mutated.
11
- */
12
- export declare function stripAllowedComponents(components: Array<{
13
- key: string;
14
- entry: CDFComponentEntry;
15
- }>): Array<{
16
- key: string;
17
- entry: CDFComponentEntry;
18
- }>;
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- type GenerateReviewStepProps = {
3
- extractSessionId: string;
4
- tokenSessionId?: string | null;
5
- onFinalize: (accepted: number, rejected: number, unresolved: number) => void;
6
- onQuit: () => void;
7
- /**
8
- * Feature 2 (live preview after every save). When `true` (default), the
9
- * wizard re-runs `previewImport` after each successful FieldEditor Ctrl+S
10
- * (debounced 500ms) and refreshes the sidebar's previewAnnotation badges.
11
- * Operator opts out via `experiences import --no-live-preview`.
12
- */
13
- livePreview?: boolean;
14
- spaceId?: string;
15
- environmentId?: string;
16
- cmaToken?: string;
17
- host?: string;
18
- tokensPath?: string;
19
- /**
20
- * INTEG-4411 refined: initial value for the inline `finalizeError` banner.
21
- * The wizard sets this when it routes back to `final-review` after the
22
- * preview API returned an empty diff (pure no-op push). Cleared on the
23
- * next `a` / `A` keystroke.
24
- */
25
- initialFinalizeError?: string | null;
26
- };
27
- export declare function AtomicGenerateReviewStep({ extractSessionId, tokenSessionId, onFinalize, onQuit, livePreview, spaceId, environmentId, cmaToken, host, tokensPath, initialFinalizeError, }: GenerateReviewStepProps): React.ReactElement;
28
- export {};
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { ScopeGateStepProps } from './ScopeGateStep.js';
3
- export declare function AtomicScopeGateStep({ components, onConfirm, onQuit, aiFilterStatus, aiFilterProgress, aiFilterError, onCancelAutoFilter, }: ScopeGateStepProps): React.ReactElement;
@@ -1,30 +0,0 @@
1
- export declare const COMPOSITION_MODES: readonly ["composite", "atomic"];
2
- export type CompositionMode = (typeof COMPOSITION_MODES)[number];
3
- export declare function isCompositionMode(value: string): value is CompositionMode;
4
- /**
5
- * Options that, when present, IMPLY composite mode — passing any of them is a
6
- * clear opt-in, so requiring an explicit `--composite` alongside is redundant.
7
- */
8
- export type CompositionSourceOptions = {
9
- compositionMap?: string;
10
- compositionAgent?: boolean;
11
- compositionRefresh?: boolean;
12
- generateMap?: string;
13
- };
14
- /**
15
- * Resolve the effective composition mode with precedence
16
- * `explicit flag > implied source > env > persisted config > default`.
17
- * Default is `atomic` (composition OFF); `--composite` opts into the hierarchy
18
- * machinery.
19
- *
20
- * `--atomic` is accepted for symmetry and wins when passed — even alongside a
21
- * composition source, since it's an explicit "no" that overrides the implicit
22
- * opt-in. If both `--composite` and `--atomic` are present, `--composite`
23
- * wins. Passing a composition source (`--composition-map/-agent`,
24
- * `--composition-refresh`, or `--generate-map`) implies composite without a
25
- * separate `--composite`.
26
- */
27
- export declare function resolveCompositionMode(opts: {
28
- composite?: boolean;
29
- atomic?: boolean;
30
- } & CompositionSourceOptions, configMode?: CompositionMode): CompositionMode;
@@ -1,14 +0,0 @@
1
- import type { CompositionMode } from '../lib/composition-mode.js';
2
- /**
3
- * Setup prompts for composition (spec T10). Parallels `promptAutoFilterPreference`
4
- * — injectable `ask` for TTY-free unit testing.
5
- *
6
- * (a) Composite-mode default. Default N → atomic (composition OFF); the
7
- * low-surprise default. `--composite` opts in per invocation.
8
- */
9
- export declare function promptCompositeModePreference(ask: (q: string) => Promise<string>, current?: CompositionMode): Promise<CompositionMode>;
10
- /**
11
- * (b) Agentic mapping resolution. Default N — opt-in (it costs tokens and the
12
- * output needs review), and only meaningful in composite mode.
13
- */
14
- export declare function promptAgenticResolutionPreference(ask: (q: string) => Promise<string>, current?: boolean): Promise<boolean>;