@contentful/experience-design-system-cli 2.35.1-dev-build-fa264c11.0 → 2.35.1-dev-build-657a08f3.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/app.d.ts +1 -1
- package/dist/app.js +182 -20
- package/dist/index.js +198 -30
- package/dist/package.json +1 -1
- package/dist/src/tui/import/steps/01-welcome/screen.d.ts +2 -1
- package/dist/src/tui/import/steps/02-token-input/screen.d.ts +2 -1
- package/dist/src/tui/settings/import-defaults/defaults-store.d.ts +6 -0
- package/dist/src/tui/settings/import-defaults/screen.d.ts +4 -0
- package/legacy/dist/src/analyze/extract-command.d.ts +7 -0
- package/legacy/dist/src/apply/command.d.ts +41 -3
- package/legacy/dist/src/generate/command.d.ts +0 -18
- package/legacy/dist/src/index.js +6950 -7239
- package/legacy/package.json +1 -1
- package/package.json +2 -2
- package/dist/src/legacy/forwarded-import-args.d.ts +0 -1
- package/legacy/dist/src/analyze/controller/create-analyze-extract-endpoint.d.ts +0 -13
- package/legacy/dist/src/analyze/helpers/resolve-composition-agent.d.ts +0 -9
- package/legacy/dist/src/analyze/helpers/resolve-no-cache.d.ts +0 -4
- package/legacy/dist/src/analyze/helpers/resolve-unreachable-mode.d.ts +0 -1
- package/legacy/dist/src/analyze/helpers/retry-db-write.d.ts +0 -1
- package/legacy/dist/src/analyze/orchestrator/execute-analyze-extract.d.ts +0 -21
- package/legacy/dist/src/analyze/services/collect-source-files.d.ts +0 -1
- package/legacy/dist/src/analyze/services/extract-with-cache.d.ts +0 -17
- package/legacy/dist/src/analyze/services/persist-extract-results.d.ts +0 -11
- package/legacy/dist/src/analyze/services/resolve-composition-mapping.d.ts +0 -22
- package/legacy/dist/src/analyze/services/resolve-source-directory.d.ts +0 -1
- package/legacy/dist/src/apply/controller/run-apply.d.ts +0 -1
- package/legacy/dist/src/apply/helpers/build-apply-output.d.ts +0 -55
- package/legacy/dist/src/apply/helpers/has-breaking-changes.d.ts +0 -2
- package/legacy/dist/src/apply/helpers/poll-apply-operation.d.ts +0 -9
- package/legacy/dist/src/apply/helpers/read-token-files.d.ts +0 -7
- package/legacy/dist/src/apply/helpers/slot-validation.d.ts +0 -20
- package/legacy/dist/src/apply/services/apply-interactive.d.ts +0 -13
- package/legacy/dist/src/apply/services/apply-non-interactive.d.ts +0 -10
- package/legacy/dist/src/apply/services/resolve-apply-inputs.d.ts +0 -14
- package/legacy/dist/src/generate/controller/run-generate-components.d.ts +0 -2
- package/legacy/dist/src/generate/controller/run-generate-tokens.d.ts +0 -2
- package/legacy/dist/src/generate/helpers/assert-file-exists.d.ts +0 -1
- package/legacy/dist/src/generate/helpers/normalize-component-for-cache.d.ts +0 -6
- package/legacy/dist/src/generate/helpers/parse-precomputed-cached-names.d.ts +0 -1
- package/legacy/dist/src/generate/helpers/print-fallback-instructions.d.ts +0 -6
- package/legacy/dist/src/generate/helpers/read-file-inline.d.ts +0 -1
- package/legacy/dist/src/generate/services/invoke-all-component-agents.d.ts +0 -6
- package/legacy/dist/src/generate/services/invoke-component-agent.d.ts +0 -36
- package/legacy/dist/src/generate/services/load-accepted-names.d.ts +0 -1
- package/legacy/dist/src/generate/services/resolve-component-cache.d.ts +0 -13
- package/legacy/dist/src/generate/services/resolve-generate-agent.d.ts +0 -9
- package/legacy/dist/src/generate/services/show-generate-view.d.ts +0 -2
- package/legacy/dist/src/generate/services/verify-agent-binary.d.ts +0 -2
- package/legacy/dist/src/lib/pluralize.d.ts +0 -1
- package/legacy/dist/src/map-tokens/controller/run-map-tokens.d.ts +0 -12
- package/legacy/dist/src/map-tokens/services/render-map-tokens-result.d.ts +0 -2
- package/legacy/dist/src/map-tokens/services/resolve-token-name-paths.d.ts +0 -8
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
import type { Command } from 'commander';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { CDFComponentEntry, CDFTokenEntry, CDFValidationError, DTCGTokenEntry } from '@contentful/experience-design-system-types';
|
|
3
|
+
import { findSlotCycles } from '../analyze/cycle-detection.js';
|
|
4
|
+
import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
|
|
5
|
+
export declare function readTokensFromPath(flag: string, p: string): Promise<DTCGTokenEntry[]>;
|
|
6
|
+
/** Adapts flat DTCGTokenEntry[] (path alongside the leaf) into the
|
|
7
|
+
* {path, entry} pairs buildCDF/buildFilteredCDF expect. */
|
|
8
|
+
export declare function toCDFTokens(tokens: DTCGTokenEntry[]): Array<{
|
|
9
|
+
path: string;
|
|
10
|
+
entry: CDFTokenEntry;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function detectSlotCycles(components: Array<{
|
|
13
|
+
key: string;
|
|
14
|
+
entry: CDFComponentEntry;
|
|
15
|
+
}>): ReturnType<typeof findSlotCycles>;
|
|
16
|
+
export declare function formatSlotCycleReport(cycles: ReturnType<typeof findSlotCycles>): string[];
|
|
17
|
+
export declare function assertNoSlotCycles(components: Array<{
|
|
18
|
+
key: string;
|
|
19
|
+
entry: CDFComponentEntry;
|
|
20
|
+
}>): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Client-side pre-flight for `$allowedComponents` references that are absent
|
|
23
|
+
* from this document, so a typo'd or renamed reference fails fast instead of
|
|
24
|
+
* waiting on the `previewImport`/`applyImport` round-trip. Only catches
|
|
25
|
+
* document-internal misses — a name that resolves against an *existing*
|
|
26
|
+
* target-environment Component still needs the network round-trip to
|
|
27
|
+
* confirm, so this cannot replace the server-side check.
|
|
28
|
+
*
|
|
29
|
+
* `validateSlotReferences` is the detection step (shared with
|
|
30
|
+
* `WizardApp.tsx` via `formatUnresolvedSlotReferences` below, mirroring how
|
|
31
|
+
* `detectSlotCycles`/`formatSlotCycleReport` split for the cycle check).
|
|
32
|
+
*/
|
|
33
|
+
export declare function formatUnresolvedSlotReferences(errors: CDFValidationError[]): string[];
|
|
34
|
+
export declare function assertNoUnresolvedSlotReferences(components: Array<{
|
|
35
|
+
key: string;
|
|
36
|
+
entry: CDFComponentEntry;
|
|
37
|
+
}>): Promise<void>;
|
|
38
|
+
export declare function extractComponents(cdf: Record<string, unknown> | null | undefined): Array<{
|
|
39
|
+
key: string;
|
|
40
|
+
entry: CDFComponentEntry;
|
|
41
|
+
}>;
|
|
42
|
+
export declare function hasBreakingChangesWithImpact(preview: ServerPreviewResponse): boolean;
|
|
5
43
|
export declare function registerApplyCommand(program: Command): void;
|
|
@@ -1,20 +1,2 @@
|
|
|
1
1
|
import type { Command } from 'commander';
|
|
2
|
-
export interface GenerateSubcommandOptions {
|
|
3
|
-
agent?: string;
|
|
4
|
-
model?: string;
|
|
5
|
-
bedrock?: boolean;
|
|
6
|
-
session?: string;
|
|
7
|
-
rawTokens?: string;
|
|
8
|
-
tokens?: string;
|
|
9
|
-
tokenMap?: string;
|
|
10
|
-
dryRun?: boolean;
|
|
11
|
-
verbose?: boolean;
|
|
12
|
-
cache?: boolean;
|
|
13
|
-
generatePromptPath?: string;
|
|
14
|
-
prompt?: string[];
|
|
15
|
-
existingEntitiesPath?: string;
|
|
16
|
-
cacheStatus?: boolean;
|
|
17
|
-
restoreCache?: boolean;
|
|
18
|
-
cachedComponents?: string;
|
|
19
|
-
}
|
|
20
2
|
export declare function registerInternalGenerateCommand(program: Command): void;
|