@contentful/experience-design-system-cli 2.33.1-dev-build-3d84cf3.0 → 2.33.1-dev-build-c4ed223.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 +1 -2
- package/dist/src/analytics/env.d.ts +0 -2
- package/dist/src/analytics/exit.d.ts +0 -1
- package/dist/src/analytics/index.d.ts +5 -9
- package/dist/src/analytics/tracker.d.ts +0 -1
- package/dist/src/analyze/build-analyze-view-rows.d.ts +0 -11
- package/dist/src/analyze/composite-closure.d.ts +2 -1
- package/dist/src/analyze/issue-inheritance.d.ts +0 -4
- package/dist/src/analyze/select/tui/components/ComponentRationalePanel.d.ts +0 -16
- package/dist/src/analyze/select/tui/components/FieldEditor.d.ts +2 -2
- package/dist/src/analyze/select/tui/components/HighlightedLine.d.ts +9 -0
- package/dist/src/analyze/select/tui/components/RationaleLine.d.ts +21 -0
- package/dist/src/analyze/select/tui/components/RationalePanel.d.ts +0 -12
- package/dist/src/analyze/select/tui/components/ScrollablePanel.d.ts +14 -0
- package/dist/src/analyze/select/tui/components/Sidebar.d.ts +6 -2
- package/dist/src/analyze/select/tui/components/wrap-text.d.ts +1 -0
- package/dist/src/analyze/select/tui/hooks/list-scroll-input.d.ts +13 -0
- package/dist/src/analyze/select/tui/hooks/useImmediateInput.d.ts +3 -4
- package/dist/src/analyze/select/tui/theme.d.ts +0 -1
- package/dist/src/analyze/select-agent/context-builder.d.ts +3 -3
- package/dist/src/analyze/select-agent/show-rationale.d.ts +0 -26
- package/dist/src/apply/api-client.d.ts +1 -3
- package/dist/src/host-utils.d.ts +0 -1
- package/dist/src/import/composition-options.d.ts +17 -0
- package/dist/src/import/orchestrator.d.ts +0 -1
- package/dist/src/import/picker-dispatch.d.ts +2 -0
- package/dist/src/import/print-prompt.d.ts +0 -1
- package/dist/src/import/tui/auto-filter-error.d.ts +0 -1
- package/dist/src/import/tui/components/LivePreviewSummary.d.ts +14 -0
- package/dist/src/import/tui/components/ReviewComponentPanel.d.ts +33 -0
- package/dist/src/import/tui/components/ReviewDetailsEditor.d.ts +13 -0
- package/dist/src/import/tui/components/ReviewDialogs.d.ts +28 -0
- package/dist/src/import/tui/components/ReviewStatus.d.ts +20 -0
- package/dist/src/import/tui/components/SearchMatchSummary.d.ts +11 -0
- package/dist/src/import/tui/components/SpaceEnvironment.d.ts +7 -0
- package/dist/src/import/tui/components/StepHeader.d.ts +8 -0
- package/dist/src/import/tui/final-review-host.d.ts +2 -12
- package/dist/src/import/tui/history.d.ts +2 -1
- package/dist/src/import/tui/hooks/review-input.d.ts +39 -0
- package/dist/src/import/tui/hooks/sidebar-search-state.d.ts +17 -0
- package/dist/src/import/tui/hooks/useReviewEditor.d.ts +49 -0
- package/dist/src/import/tui/hooks/useReviewPreview.d.ts +26 -0
- package/dist/src/import/tui/hooks/useReviewSession.d.ts +74 -0
- package/dist/src/import/tui/hooks/useReviewSurfaceState.d.ts +12 -0
- package/dist/src/import/tui/lineage-input.d.ts +18 -0
- package/dist/src/import/tui/preview-confirmation-input.d.ts +6 -0
- package/dist/src/import/tui/review-step-props.d.ts +14 -0
- package/dist/src/import/tui/scope-gate-columns.d.ts +0 -1
- package/dist/src/import/tui/scope-gate-host.d.ts +1 -1
- package/dist/src/import/tui/sidebar-help.d.ts +2 -0
- package/dist/src/import/tui/sidebar-input.d.ts +13 -0
- package/dist/src/import/tui/sidebar-navigation.d.ts +18 -0
- package/dist/src/import/tui/steps/AtomicGenerateReviewStep.d.ts +0 -15
- package/dist/src/import/tui/steps/GenerateReviewStep.d.ts +2 -14
- package/dist/src/import/tui/steps/review-details-panel.d.ts +26 -0
- package/dist/src/import/tui/steps/useTerminalColumns.d.ts +1 -0
- package/dist/src/import/tui/useFinalizePreview.d.ts +9 -1
- package/dist/src/import/tui/useLivePreview.d.ts +2 -1
- package/dist/src/index.js +5779 -5927
- package/dist/src/lib/agent-model-options.d.ts +0 -1
- package/dist/src/lib/agent-output.d.ts +5 -0
- package/dist/src/lib/component-patch.d.ts +12 -0
- package/dist/src/lib/contentful-urls.d.ts +2 -7
- package/dist/src/lib/error-parser.d.ts +2 -1
- package/dist/src/lib/path-exists.d.ts +1 -0
- package/dist/src/lib/terminal-capabilities.d.ts +3 -2
- package/dist/src/map-tokens/resolve-defaults.d.ts +3 -2
- package/dist/src/print/validate/validators/read-json-file.d.ts +10 -0
- package/dist/src/runs/export-helpers.d.ts +0 -14
- package/dist/src/runs/fingerprint.d.ts +2 -1
- package/dist/src/runs/push-helpers.d.ts +0 -5
- package/dist/src/runs/run-picker.d.ts +2 -1
- package/dist/src/runs/store.d.ts +3 -5
- package/dist/src/runs/wizard-launcher.d.ts +2 -0
- package/dist/src/runs/wizard-seed.d.ts +20 -0
- package/dist/src/session/db.d.ts +0 -19
- package/dist/src/session/migration.d.ts +0 -2
- package/dist/src/session/resolve-session-id.d.ts +1 -0
- package/dist/src/session/stats.d.ts +0 -1
- package/dist/src/setup/command.d.ts +0 -5
- package/dist/src/setup/prompt-helpers.d.ts +1 -0
- package/dist/src/tui/CommandCompletionView.d.ts +13 -0
- package/dist/src/tui/use-blinking-cursor.d.ts +1 -0
- package/dist/src/tui/use-timed-spinner.d.ts +5 -0
- package/dist/src/types.d.ts +1 -13
- package/package.json +6 -7
- package/dist/src/analyze/select/index.d.ts +0 -6
- package/dist/src/analyze/select/stdout.d.ts +0 -7
- package/dist/src/import/tui/steps/PreviewStep.d.ts +0 -21
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Command } from 'commander';
|
|
2
2
|
export declare const AGENT_DESCRIPTION: string;
|
|
3
3
|
export declare const MODEL_DESCRIPTION = "Model to use (defaults to a lightweight per-agent model; override with EDS_AGENT_MODEL_<AGENT>)";
|
|
4
|
-
export declare const BEDROCK_DESCRIPTION: string;
|
|
5
4
|
export interface AgentModelOptionsConfig {
|
|
6
5
|
agentDescription?: string;
|
|
7
6
|
includeModel?: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentInvoker, InvokeAgentOptions } from '@contentful/experience-design-system-generation';
|
|
2
|
+
export declare function invokeAgentWithOutput(invoker: AgentInvoker, options: Omit<InvokeAgentOptions, 'onOutput'>, verbose: boolean): Promise<{
|
|
3
|
+
result: Awaited<ReturnType<AgentInvoker['invoke']>>;
|
|
4
|
+
output: string;
|
|
5
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ComponentPatchOperation = {
|
|
2
|
+
component: string;
|
|
3
|
+
status?: string;
|
|
4
|
+
set?: Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare function applyDotPath(obj: Record<string, unknown>, path: string, value: unknown): void;
|
|
7
|
+
export declare function applyComponentPatch<T extends {
|
|
8
|
+
name: string;
|
|
9
|
+
}>(components: T[], operations: ComponentPatchOperation[], applySet: (component: T, values: Record<string, unknown>) => T): T[];
|
|
10
|
+
export declare function warnOnUnknownPatchComponents<T extends {
|
|
11
|
+
name: string;
|
|
12
|
+
}>(components: T[], operations: ComponentPatchOperation[]): void;
|
|
@@ -6,17 +6,12 @@
|
|
|
6
6
|
* formatter so the wizard, `apply push`, and `apply select` all emit the same
|
|
7
7
|
* URL shape.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
type PostPushView = 'components' | 'design_tokens';
|
|
10
10
|
export interface BuildPostPushUrlInput {
|
|
11
11
|
host: string;
|
|
12
12
|
spaceId: string;
|
|
13
13
|
environmentId: string;
|
|
14
14
|
view?: PostPushView;
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Map a Contentful API host to the corresponding webapp host. For api.*.com
|
|
18
|
-
* inputs this swaps the `api.` prefix to `app.`; any other host is returned
|
|
19
|
-
* as-is (callers get the raw host, no guessing).
|
|
20
|
-
*/
|
|
21
|
-
export declare function apiHostToAppHost(host: string): string;
|
|
22
16
|
export declare function buildPostPushUrl({ host, spaceId, environmentId, view }: BuildPostPushUrlInput): string;
|
|
17
|
+
export {};
|
|
@@ -10,7 +10,7 @@ export interface ParsedEdsiError {
|
|
|
10
10
|
/** Validation details supplied by the API, normalized for terminal output. */
|
|
11
11
|
diagnostics?: ErrorDiagnostic[];
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface ErrorDiagnostic {
|
|
14
14
|
message: string;
|
|
15
15
|
component?: string;
|
|
16
16
|
/**
|
|
@@ -37,3 +37,4 @@ export declare function formatEdsiError(raw: unknown, opts?: {
|
|
|
37
37
|
raw?: string;
|
|
38
38
|
}): string;
|
|
39
39
|
export declare function formatApiError(error: ApiErrorLike, verbose?: boolean): string;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function pathExists(path: string): Promise<boolean>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
type TerminalInput = {
|
|
2
2
|
isTTY?: boolean;
|
|
3
3
|
isRaw?: boolean;
|
|
4
4
|
setRawMode?: (enabled: boolean) => unknown;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type TerminalOutput = {
|
|
7
7
|
isTTY?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export type InteractiveTerminalSupport = {
|
|
@@ -26,3 +26,4 @@ export type RequireInteractiveTerminalOptions = TerminalCapabilityOptions & {
|
|
|
26
26
|
alternative?: string;
|
|
27
27
|
};
|
|
28
28
|
export declare function requireInteractiveTerminal(options?: RequireInteractiveTerminalOptions): void;
|
|
29
|
+
export {};
|
|
@@ -10,8 +10,8 @@ export interface DTCGTokenLeaf {
|
|
|
10
10
|
path: string;
|
|
11
11
|
type: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
type UnresolvedTokenDefaultReason = 'no_match' | 'ambiguous' | 'type_mismatch';
|
|
14
|
+
interface UnresolvedTokenDefault {
|
|
15
15
|
rawDefault: string;
|
|
16
16
|
tokenKind: string | null;
|
|
17
17
|
reason: UnresolvedTokenDefaultReason;
|
|
@@ -29,3 +29,4 @@ export interface ResolveTokenDefaultsResult {
|
|
|
29
29
|
* identifies exactly one leaf compatible with the property's token kind.
|
|
30
30
|
*/
|
|
31
31
|
export declare function resolveTokenDefaults(defaults: readonly RawDesignTokenDefault[], leaves: readonly DTCGTokenLeaf[]): ResolveTokenDefaultsResult;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ValidationResult } from './format-errors.js';
|
|
2
|
+
type ReadJsonFileResult = {
|
|
3
|
+
ok: true;
|
|
4
|
+
value: unknown;
|
|
5
|
+
} | {
|
|
6
|
+
ok: false;
|
|
7
|
+
result: ValidationResult;
|
|
8
|
+
};
|
|
9
|
+
export declare function readJsonFile(filePath: string): Promise<ReadJsonFileResult>;
|
|
10
|
+
export {};
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
import { findCliPath } from '../lib/cli-path.js';
|
|
2
|
-
export type PrintResult = {
|
|
3
|
-
ok: true;
|
|
4
|
-
} | {
|
|
5
|
-
ok: false;
|
|
6
|
-
error: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function printComponentsFromSession(opts: {
|
|
9
|
-
sessionId: string;
|
|
10
|
-
outPath: string;
|
|
11
|
-
}): Promise<PrintResult>;
|
|
12
|
-
export declare function printTokensFromSession(opts: {
|
|
13
|
-
sessionId: string;
|
|
14
|
-
outPath: string;
|
|
15
|
-
}): Promise<PrintResult>;
|
|
16
2
|
/** Internal test surface. Not part of the public API. */
|
|
17
3
|
export declare const __testing: {
|
|
18
4
|
findCliPath: typeof findCliPath;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type SourceFileEntry = {
|
|
2
2
|
mtime: string;
|
|
3
3
|
componentName?: string;
|
|
4
4
|
};
|
|
@@ -45,3 +45,4 @@ export declare function buildSavedFingerprint(input: {
|
|
|
45
45
|
componentsJson: string | Buffer | null;
|
|
46
46
|
tokensJson: string | Buffer | null;
|
|
47
47
|
}): SavedFingerprint;
|
|
48
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { findCliPath } from '../lib/cli-path.js';
|
|
2
1
|
export type PushSessionResult = {
|
|
3
2
|
ok: true;
|
|
4
3
|
} | {
|
|
@@ -19,7 +18,3 @@ export type PushSessionOptions = {
|
|
|
19
18
|
* file I/O — that is the whole point of --push-from-run.
|
|
20
19
|
*/
|
|
21
20
|
export declare function pushRunSession(opts: PushSessionOptions): Promise<PushSessionResult>;
|
|
22
|
-
/** Internal test surface. Not part of the public API. */
|
|
23
|
-
export declare const __testing: {
|
|
24
|
-
findCliPath: typeof findCliPath;
|
|
25
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { RunRecord } from './store.js';
|
|
3
|
-
|
|
3
|
+
type RunPickerAction = 'push' | 'modify' | 'new';
|
|
4
4
|
export type RunPickerSelection = {
|
|
5
5
|
/** null only when `action === 'new'`. */
|
|
6
6
|
runId: string | null;
|
|
@@ -15,3 +15,4 @@ export type RunPickerProps = {
|
|
|
15
15
|
onCancel: () => void;
|
|
16
16
|
};
|
|
17
17
|
export declare function RunPicker({ runs, staleRunIds, onSelect, onCancel }: RunPickerProps): React.ReactElement;
|
|
18
|
+
export {};
|
package/dist/src/runs/store.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CompositionMode } from '../lib/composition-mode.js';
|
|
2
2
|
export declare const RUNS_FILE_VERSION: 3;
|
|
3
|
-
export declare const RUNS_FILE_CAP = 200;
|
|
4
3
|
/** Versions this CLI can read. v1 / v2 files are auto-migrated in memory;
|
|
5
4
|
* new writes always use the latest version. */
|
|
6
5
|
export declare const READABLE_VERSIONS: Set<number>;
|
|
@@ -9,7 +8,7 @@ export declare const READABLE_VERSIONS: Set<number>;
|
|
|
9
8
|
* mtime (ISO 8601) at the moment the run record was written and, when
|
|
10
9
|
* known, the component name extracted from it (first-seen wins on
|
|
11
10
|
* collisions). */
|
|
12
|
-
|
|
11
|
+
type SourceFingerprint = {
|
|
13
12
|
files: Record<string, {
|
|
14
13
|
mtime: string;
|
|
15
14
|
componentName?: string;
|
|
@@ -20,7 +19,7 @@ export type SourceFingerprint = {
|
|
|
20
19
|
};
|
|
21
20
|
/** SHA-256 hashes of the JSON artifacts the wizard wrote to disk. Used on
|
|
22
21
|
* replay to detect manual edits to components.json / tokens.json. */
|
|
23
|
-
|
|
22
|
+
type SavedFingerprint = {
|
|
24
23
|
componentsJsonHash: string | null;
|
|
25
24
|
tokensJsonHash: string | null;
|
|
26
25
|
};
|
|
@@ -67,7 +66,6 @@ export type RunsFile = {
|
|
|
67
66
|
runs: RunRecord[];
|
|
68
67
|
};
|
|
69
68
|
export declare function runsFilePath(): string;
|
|
70
|
-
export declare function generateUlid(now?: number): string;
|
|
71
69
|
export type AppendInput = Omit<RunRecord, 'id' | 'createdAt'> & Partial<Pick<RunRecord, 'id' | 'createdAt'>>;
|
|
72
70
|
export declare function appendRun(input: AppendInput): Promise<RunRecord>;
|
|
73
71
|
export type ListOptions = {
|
|
@@ -79,5 +77,5 @@ export type ListOptions = {
|
|
|
79
77
|
export declare function listRuns(opts?: ListOptions): Promise<RunRecord[]>;
|
|
80
78
|
export declare function getRun(id: string): Promise<RunRecord>;
|
|
81
79
|
export declare function updateRun(id: string, patch: Partial<Omit<RunRecord, 'id'>>): Promise<RunRecord>;
|
|
82
|
-
export declare function findRunBySavePath(savePath: string): Promise<RunRecord | null>;
|
|
83
80
|
export declare function findAllRunsBySavePath(savePath: string): Promise<RunRecord[]>;
|
|
81
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type WizardSeedInput = {
|
|
2
|
+
generateSessionId: string | null;
|
|
3
|
+
tokenSessionId?: string | null;
|
|
4
|
+
tokensPath?: string | null;
|
|
5
|
+
initialSpaceId?: string;
|
|
6
|
+
initialEnvironmentId?: string;
|
|
7
|
+
initialHost?: string;
|
|
8
|
+
initialCmaToken?: string;
|
|
9
|
+
};
|
|
10
|
+
type WizardSeedProps = {
|
|
11
|
+
seedGenerateSessionId?: string;
|
|
12
|
+
seedTokenSessionId?: string;
|
|
13
|
+
seedTokensPath?: string;
|
|
14
|
+
initialSpaceId?: string;
|
|
15
|
+
initialEnvironmentId?: string;
|
|
16
|
+
initialHost?: string;
|
|
17
|
+
initialCmaToken?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function applyWizardSeedProps<T extends WizardSeedProps>(props: T, input: WizardSeedInput): void;
|
|
20
|
+
export {};
|
package/dist/src/session/db.d.ts
CHANGED
|
@@ -16,26 +16,7 @@ export { storeDtcgTokens as storeDTCGTokens } from './services/tokens/store-dtcg
|
|
|
16
16
|
export { applyTokenToolCalls, type ApplyTokenToolCallsResult } from './services/tokens/apply-tool-calls.js';
|
|
17
17
|
export { replaceRawTokenNamePaths } from './services/tokens/replace-raw-token-name-paths.js';
|
|
18
18
|
export { replaceRawPropTokenPaths } from './services/tokens/replace-raw-prop-token-paths.js';
|
|
19
|
-
export type StepStatus = 'pending' | 'complete' | 'failed' | 'interrupted';
|
|
20
19
|
export type CommandName = 'analyze extract' | 'analyze select' | 'generate components' | 'generate tokens' | 'generate edit' | 'apply preview' | 'apply select' | 'apply push' | 'print components' | 'print tokens' | 'map tokens' | 'fetch existing entities' | 'import';
|
|
21
|
-
export interface SessionRow {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string | null;
|
|
24
|
-
created_at: string;
|
|
25
|
-
updated_at: string;
|
|
26
|
-
}
|
|
27
|
-
export interface StepRow {
|
|
28
|
-
id: number;
|
|
29
|
-
session_id: string;
|
|
30
|
-
command: string;
|
|
31
|
-
status: StepStatus;
|
|
32
|
-
started_at: string;
|
|
33
|
-
completed_at: string | null;
|
|
34
|
-
inputs: string;
|
|
35
|
-
outputs: string;
|
|
36
|
-
error: string | null;
|
|
37
|
-
updated_at: string;
|
|
38
|
-
}
|
|
39
20
|
export declare function getPipelineDbPath(): string;
|
|
40
21
|
export declare function openPipelineDb(dbPath?: string): DatabaseSync;
|
|
41
22
|
export interface ApplyToolCallsResult {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveExtractSessionId(sessionFlag: string | undefined, onMissing: () => Promise<string> | string): Promise<string>;
|
|
@@ -23,5 +23,4 @@ export interface SessionStats {
|
|
|
23
23
|
} | null;
|
|
24
24
|
}
|
|
25
25
|
export declare function getStats(db: DatabaseSync, dbPath: string): SessionStats;
|
|
26
|
-
export declare function formatBytes(bytes: number): string;
|
|
27
26
|
export declare function formatStatsText(stats: SessionStats): string;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { Command } from 'commander';
|
|
2
|
-
import type { AgentName } from '@contentful/experience-design-system-generation';
|
|
3
2
|
export declare function promptCodexModel(ask?: (q: string) => Promise<string>): Promise<string | undefined>;
|
|
4
|
-
export declare function setupAgent(): Promise<{
|
|
5
|
-
agent: AgentName | undefined;
|
|
6
|
-
agentModel: string | undefined;
|
|
7
|
-
}>;
|
|
8
3
|
export type SkillPromptKind = 'select' | 'generate';
|
|
9
4
|
/**
|
|
10
5
|
* Prompt the operator for a custom skill prompt path. Returns the resolved
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function promptBooleanPreference(ask: (question: string) => Promise<string>, current: boolean | undefined, defaultValue: boolean, question: string): Promise<boolean>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CompletionRow = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export type CommandCompletionViewProps = {
|
|
7
|
+
title: string;
|
|
8
|
+
rows: CompletionRow[];
|
|
9
|
+
command: string;
|
|
10
|
+
instruction: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function CommandCompletionView({ title, rows, command, instruction, }: CommandCompletionViewProps): React.ReactElement;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useBlinkingCursor(): boolean;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export type { ExtractionValidationIssueCode, ExtractionValidationIssue, RawPropDefinition, RawSlotDefinition, RawComponentDefinition, ComponentExtractionResult, ExtractorProgress, ExtractorOptions, ComponentExtractor, } from '@contentful/experience-design-system-extraction';
|
|
1
|
+
export type { ExtractionValidationIssue, RawPropDefinition, RawSlotDefinition, RawComponentDefinition, } from '@contentful/experience-design-system-extraction';
|
|
3
2
|
export { stripScoringFields } from '@contentful/experience-design-system-extraction';
|
|
4
|
-
export interface RawTokenDefinition {
|
|
5
|
-
name: string;
|
|
6
|
-
value: string;
|
|
7
|
-
source: 'css' | 'tailwind' | 'style-dictionary';
|
|
8
|
-
inferredKind: DesignTokenType | string;
|
|
9
|
-
ambiguous: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface TokenExtractor {
|
|
12
|
-
name: string;
|
|
13
|
-
extract(projectRoot: string): Promise<RawTokenDefinition[]>;
|
|
14
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.33.1-dev-build-
|
|
3
|
+
"version": "2.33.1-dev-build-c4ed223.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,12 +36,11 @@
|
|
|
36
36
|
"ink": "^5.2.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
38
38
|
"react-devtools-core": "^4.19.1",
|
|
39
|
-
"react-dom": "^18.3.1",
|
|
40
39
|
"svelte": "^5.56.4",
|
|
41
40
|
"ts-morph": "^27.0.2",
|
|
42
41
|
"typescript": "^5.9.3",
|
|
43
|
-
"@contentful/experience-design-system-cli-v2": "2.33.1-dev-build-
|
|
44
|
-
"@contentful/experience-design-system-types": "2.33.1-dev-build-
|
|
42
|
+
"@contentful/experience-design-system-cli-v2": "2.33.1-dev-build-c4ed223.0",
|
|
43
|
+
"@contentful/experience-design-system-types": "2.33.1-dev-build-c4ed223.0"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
46
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -53,9 +52,9 @@
|
|
|
53
52
|
"ink-testing-library": "^4.0.0",
|
|
54
53
|
"typescript-eslint": "^8.67.0",
|
|
55
54
|
"vitest": "^4.0.16",
|
|
56
|
-
"@contentful/experience-design-system-
|
|
57
|
-
"@contentful/experience-design-system-
|
|
58
|
-
"@contentful/experience-design-system-generation": "2.33.1-dev-build-
|
|
55
|
+
"@contentful/experience-design-system-extraction": "2.33.1-dev-build-c4ed223.0",
|
|
56
|
+
"@contentful/experience-design-system-client": "2.33.1-dev-build-c4ed223.0",
|
|
57
|
+
"@contentful/experience-design-system-generation": "2.33.1-dev-build-c4ed223.0"
|
|
59
58
|
},
|
|
60
59
|
"repository": {
|
|
61
60
|
"type": "git",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { registerAnalyzeEditCommand } from './command.js';
|
|
2
|
-
export { loadReviewInput } from './parser.js';
|
|
3
|
-
export { appendReviewEvent, ensureRefineSession, getRefineArtifactsRoot, getRefineSessionPaths, saveReviewState, } from './persistence.js';
|
|
4
|
-
export { formatFinalizeContract } from './stdout.js';
|
|
5
|
-
export type { ReviewComponentRecord, ReviewComponentSummary, ReviewComponentStatus, ReviewEvent, ReviewSessionPaths, ReviewSessionSnapshot, ReviewSessionSummary, } from './types.js';
|
|
6
|
-
export { createReviewSessionSummary } from './types.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type EntitySummary = {
|
|
3
|
-
created: number;
|
|
4
|
-
updated: number;
|
|
5
|
-
unchanged: number;
|
|
6
|
-
conflicts: number;
|
|
7
|
-
failed: number;
|
|
8
|
-
};
|
|
9
|
-
type PreviewStepProps = {
|
|
10
|
-
componentTypes: EntitySummary;
|
|
11
|
-
designTokens: EntitySummary;
|
|
12
|
-
spaceId: string;
|
|
13
|
-
environmentId: string;
|
|
14
|
-
stepNumber: number;
|
|
15
|
-
totalSteps: number;
|
|
16
|
-
onConfirm: () => void;
|
|
17
|
-
onSaveFiles?: () => void;
|
|
18
|
-
onQuit: () => void;
|
|
19
|
-
};
|
|
20
|
-
export declare function PreviewStep({ componentTypes, designTokens, spaceId, environmentId, stepNumber, totalSteps, onConfirm, onSaveFiles, onQuit, }: PreviewStepProps): React.ReactElement;
|
|
21
|
-
export {};
|