@contentful/experience-design-system-cli 2.34.5-dev-build-75bf00ac.0 → 2.34.5-dev-build-fcf31517.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/README.md +2 -2
- package/dist/package.json +2 -1
- package/dist/src/credentials-store.d.ts +2 -15
- package/dist/src/doctor/checks.d.ts +5 -0
- package/dist/src/doctor/command.d.ts +2 -0
- package/dist/src/doctor/report.d.ts +7 -0
- package/dist/src/import/tui/WizardApp.d.ts +7 -0
- package/dist/src/index.js +24391 -23493
- package/dist/src/lib/agent-definitions.d.ts +14 -0
- package/dist/src/setup/SetupScreen.d.ts +28 -0
- package/dist/src/setup/SetupStepper.d.ts +7 -0
- package/dist/src/setup/command.d.ts +1 -7
- package/dist/src/setup/lib/checks.d.ts +57 -0
- package/dist/src/setup/lib/shell.d.ts +12 -0
- package/dist/src/setup/steps/CodingAgentScreen.d.ts +20 -0
- package/dist/src/setup/steps/ContentfulCredentialsScreen.d.ts +11 -0
- package/dist/src/setup/steps/StepLayout.d.ts +20 -0
- package/dist/src/setup/steps/preferences/AnalyticsScreen.d.ts +5 -0
- package/dist/src/setup/steps/preferences/BooleanInput.d.ts +21 -0
- package/dist/src/setup/steps/preferences/ColorPreferenceScreen.d.ts +5 -0
- package/dist/src/setup/steps/preferences/CustomPromptScreen.d.ts +14 -0
- package/dist/src/setup/steps/preferences/DebugLogsScreen.d.ts +5 -0
- package/dist/src/setup/steps/preferences/PreferencesMenu.d.ts +26 -0
- package/dist/src/setup/steps/prerequisites/PrerequisitesScreen.d.ts +16 -0
- package/dist/src/setup/steps/prerequisites/build.d.ts +2 -0
- package/dist/src/setup/steps/prerequisites/deps.d.ts +33 -0
- package/dist/src/setup/steps/prerequisites/index.d.ts +4 -0
- package/dist/src/setup/steps/prerequisites/node.d.ts +2 -0
- package/dist/src/setup/steps/prerequisites/pnpm.d.ts +2 -0
- package/package.json +7 -6
- package/dist/src/setup/analytics-prompt.d.ts +0 -13
- package/dist/src/setup/debug-mode-prompt.d.ts +0 -11
- package/dist/src/setup/prompt-helpers.d.ts +0 -1
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ export CONTENTFUL_ENVIRONMENT_ID=master # required
|
|
|
89
89
|
|
|
90
90
|
Or run `experiences setup` once and they get saved to `credentials.json` and pre-filled in the wizard.
|
|
91
91
|
|
|
92
|
-
In the wizard's credentials step you can press `[s] Skip` to save-only without pushing — useful when you want a checked-in
|
|
92
|
+
In the wizard's credentials step you can press `[s] Skip` to save-only without pushing — useful when you want a checked-in combined CDF file without a live push.
|
|
93
93
|
|
|
94
94
|
---
|
|
95
95
|
|
|
@@ -134,7 +134,7 @@ The auto-filter (`analyze select-agent` invoked before scope-gate) is on by defa
|
|
|
134
134
|
|
|
135
135
|
### Save-and-push default
|
|
136
136
|
|
|
137
|
-
The push-decision-gate defaults to **save AND push**: it writes `components.json` and
|
|
137
|
+
The push-decision-gate defaults to **save AND push**: it writes one combined `components.json` CDF containing components and design tokens, then pushes it to Contentful in one step.
|
|
138
138
|
|
|
139
139
|
### Custom skill prompts
|
|
140
140
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.34.5-dev-build-
|
|
3
|
+
"version": "2.34.5-dev-build-fcf31517.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@contentful/experience-design-system-cli-v2": "workspace:*",
|
|
42
42
|
"@contentful/experience-design-system-types": "workspace:*",
|
|
43
|
+
"@inkjs/ui": "^2.0.0",
|
|
43
44
|
"@segment/analytics-node": "^3.0.0",
|
|
44
45
|
"@vue/compiler-sfc": "^3.5.31",
|
|
45
46
|
"commander": "^13.1.0",
|
|
@@ -9,23 +9,10 @@ export type ExperiencesCredentials = {
|
|
|
9
9
|
generatePromptPath?: string;
|
|
10
10
|
/** Feature: default debug-mode (writes JSONL trace of every decision) for all commands. */
|
|
11
11
|
debug?: boolean;
|
|
12
|
-
/**
|
|
12
|
+
/** Print plain text with no color; an exported NO_COLOR still wins. */
|
|
13
|
+
noColor?: boolean;
|
|
13
14
|
analyticsDisabled?: boolean;
|
|
14
15
|
};
|
|
15
|
-
/**
|
|
16
|
-
* Read persisted Contentful credentials.
|
|
17
|
-
*
|
|
18
|
-
* Precedence (INTEG-4410): what the operator saved on disk via
|
|
19
|
-
* `experiences setup` or the wizard's credentials step wins over ambient
|
|
20
|
-
* `CONTENTFUL_*` / `EDS_HOST` env vars. Env vars are still consulted as a
|
|
21
|
-
* fallback when the field on disk is missing or empty — this preserves
|
|
22
|
-
* back-compat for CI / scripts that only export env and never call setup.
|
|
23
|
-
*
|
|
24
|
-
* The pre-INTEG-4410 order (env-first) silently shadowed saved values, so
|
|
25
|
-
* operators who saved a different space via setup kept seeing the env one
|
|
26
|
-
* pre-filled in the wizard. The saved value now wins; the env fallback only
|
|
27
|
-
* fires when the on-disk field is empty.
|
|
28
|
-
*/
|
|
29
16
|
export declare function readExperiencesCredentials(): Promise<ExperiencesCredentials>;
|
|
30
17
|
export declare function writeExperiencesCredentials(creds: ExperiencesCredentials): Promise<void>;
|
|
31
18
|
export declare function experiencesCredentialsPath(): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function reportNode(): Promise<boolean>;
|
|
2
|
+
export declare function reportPnpm(pkgRoot: string): Promise<boolean>;
|
|
3
|
+
export declare function reportDependencies(pkgRoot: string): Promise<boolean>;
|
|
4
|
+
export declare function reportBuild(pkgRoot: string): Promise<boolean>;
|
|
5
|
+
export declare function reportAgent(): Promise<boolean>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function ok(msg: string): void;
|
|
2
|
+
export declare function fail(msg: string): void;
|
|
3
|
+
export declare function warn(msg: string): void;
|
|
4
|
+
export declare function info(msg: string): void;
|
|
5
|
+
export declare function section(title: string): void;
|
|
6
|
+
/** Echo the first `limit` lines of a failed command's stderr. */
|
|
7
|
+
export declare function infoStderr(stderr: string, limit: number): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { CDFDocument, CDFComponentEntry, DTCGTokenEntry } from '@contentful/experience-design-system-types';
|
|
2
3
|
export declare function buildGenerateComponentsArgs(opts: {
|
|
3
4
|
sessionId: string;
|
|
4
5
|
tokensPath?: string;
|
|
@@ -29,6 +30,12 @@ export declare function shouldRunMapTokens(opts: {
|
|
|
29
30
|
mappablePropCount: number;
|
|
30
31
|
rawTokenCount: number;
|
|
31
32
|
}): boolean;
|
|
33
|
+
export declare function buildSavedCDF(components: Array<{
|
|
34
|
+
key: string;
|
|
35
|
+
entry: CDFComponentEntry;
|
|
36
|
+
}>, tokens: DTCGTokenEntry[], opts?: {
|
|
37
|
+
deleteAll?: boolean;
|
|
38
|
+
}): CDFDocument;
|
|
32
39
|
export declare function formatAcceptanceSummary(opts: {
|
|
33
40
|
accepted: number;
|
|
34
41
|
autoRejected: number;
|