@contentful/experience-design-system-cli 2.32.1-dev-build-e667d41.0 → 2.32.1-dev-build-056cf05.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 +2 -2
- package/dist/src/helpers/cma-client.d.ts +17 -0
- package/dist/src/helpers/fetch-existing-entities.d.ts +16 -0
- package/dist/src/import/orchestrator.d.ts +1 -0
- package/dist/src/index.js +139 -343
- package/dist/src/session/cache-keys.d.ts +1 -1
- package/package.json +7 -7
- package/skills/generate-components.md +0 -27
- package/skills/map-tokens.md +0 -12
- package/skills/select-components.md +0 -11
- package/dist/src/helpers/build-contentful-management-client.d.ts +0 -7
- package/dist/src/helpers/fetch-existing-contentful-entities.d.ts +0 -11
- package/dist/src/helpers/find-nearly-matching-component.d.ts +0 -7
- package/dist/src/helpers/read-existing-contentful-entities-from-session.d.ts +0 -7
- package/dist/src/helpers/summarize-existing-contentful-entities.d.ts +0 -50
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.32.1-dev-build-
|
|
3
|
+
"version": "2.32.1-dev-build-056cf05.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@vue/compiler-sfc": "^3.5.31",
|
|
45
45
|
"commander": "^13.1.0",
|
|
46
46
|
"contentful-management": "^12.17.0",
|
|
47
|
-
"ink": "^
|
|
47
|
+
"ink": "^5.2.1",
|
|
48
48
|
"react": "^18.3.1",
|
|
49
49
|
"react-devtools-core": "^4.19.1",
|
|
50
50
|
"react-dom": "^18.3.1",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type PlainClientAPI } from 'contentful-management';
|
|
2
|
+
interface CreateCmaClientOptions {
|
|
3
|
+
cmaToken: string;
|
|
4
|
+
/**
|
|
5
|
+
* Optional CMA host override. Accepts either a full URL
|
|
6
|
+
* (`https://api.contentful.com`) or a bare hostname (`api.contentful.com`);
|
|
7
|
+
* contentful-management wants the bare form so we normalize here.
|
|
8
|
+
*/
|
|
9
|
+
host?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Build a plain contentful-management client. Single place that picks the
|
|
13
|
+
* `{ type: 'plain' }` overload so callers never have to think about it,
|
|
14
|
+
* and normalizes host into the bare-hostname shape the SDK expects.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createCmaClient(opts: CreateCmaClientOptions): PlainClientAPI;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ComponentProps, type DesignTokenProps, type PlainClientAPI } from 'contentful-management';
|
|
2
|
+
export interface ExistingEntities {
|
|
3
|
+
components: ComponentProps[];
|
|
4
|
+
tokens: DesignTokenProps[];
|
|
5
|
+
}
|
|
6
|
+
interface FetchExistingEntitiesParams {
|
|
7
|
+
spaceId: string;
|
|
8
|
+
environmentId: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fetch all existing Components + DesignTokens for a space+env. Pagination
|
|
12
|
+
* is delegated to the SDK's `fetchAll()` helper. Caller supplies the
|
|
13
|
+
* pre-built plain client (see `createCmaClient()`).
|
|
14
|
+
*/
|
|
15
|
+
export declare function fetchExistingEntities(client: PlainClientAPI, params: FetchExistingEntitiesParams): Promise<ExistingEntities>;
|
|
16
|
+
export {};
|
|
@@ -28,6 +28,7 @@ export interface PipelineOptions {
|
|
|
28
28
|
/** When true, auto-reject cycle participants and retry push instead of surfacing an error. */
|
|
29
29
|
autoRejectCycles?: boolean;
|
|
30
30
|
allowDeletions?: boolean;
|
|
31
|
+
withSpaceContext?: boolean;
|
|
31
32
|
compositionMode?: CompositionMode;
|
|
32
33
|
compositionMap?: string;
|
|
33
34
|
compositionAgent?: boolean;
|