@contentful/experience-design-system-cli 2.34.1-dev-build-928f202.0 → 2.34.1-dev-build-e12e553.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 -1
- package/dist/src/index.js +13 -10
- package/package.json +6 -6
package/dist/package.json
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -33301,10 +33301,11 @@ async function runGenerateSkill(skill, opts, verbose = false) {
|
|
|
33301
33301
|
}
|
|
33302
33302
|
if (process.platform === "win32" && !agentSupportsStdinPrompt(agent)) {
|
|
33303
33303
|
die2(
|
|
33304
|
-
`Error:
|
|
33305
|
-
Its CLI
|
|
33306
|
-
|
|
33307
|
-
|
|
33304
|
+
`Error: --agent ${agent} does not work on Windows.
|
|
33305
|
+
Its CLI only accepts the prompt as a command-line argument, and Windows limits a command
|
|
33306
|
+
line to 8191 characters \u2014 shorter than the prompts this command sends.
|
|
33307
|
+
|
|
33308
|
+
Every other agent works on Windows. Use --agent claude, codex, opencode, or cursor.`
|
|
33308
33309
|
);
|
|
33309
33310
|
}
|
|
33310
33311
|
if (skill === "components" && allComponents && sessionId2) {
|
|
@@ -34838,10 +34839,11 @@ Install it, choose another agent with --agent, or use --print-prompt to run the
|
|
|
34838
34839
|
}
|
|
34839
34840
|
if (process.platform === "win32" && !agentSupportsStdinPrompt(agent)) {
|
|
34840
34841
|
die2(
|
|
34841
|
-
`Error:
|
|
34842
|
-
Its CLI
|
|
34843
|
-
|
|
34844
|
-
|
|
34842
|
+
`Error: --agent ${agent} does not work on Windows.
|
|
34843
|
+
Its CLI only accepts the prompt as a command-line argument, and Windows limits a command
|
|
34844
|
+
line to 8191 characters \u2014 shorter than the prompts this command sends.
|
|
34845
|
+
|
|
34846
|
+
Every other agent works on Windows. Use --agent claude, codex, opencode, or cursor.`
|
|
34845
34847
|
);
|
|
34846
34848
|
}
|
|
34847
34849
|
const stepId = createStep(db, sessionId2, "map tokens", { agent, model: model ?? "" });
|
|
@@ -36755,7 +36757,8 @@ async function setupAgent() {
|
|
|
36755
36757
|
section("Step 4: Coding agent (claude, codex, opencode, or copilot)", "[required]");
|
|
36756
36758
|
info("experiences import uses a coding agent to generate component definitions.");
|
|
36757
36759
|
info("");
|
|
36758
|
-
const
|
|
36760
|
+
const candidates = AGENT_DEFS.filter((a) => agentSupportsStdinPrompt(a.binary) || process.platform !== "win32");
|
|
36761
|
+
const found = (await Promise.all(candidates.map(async (a) => await binaryExists2(a.binary) ? a : null))).filter(
|
|
36759
36762
|
(a) => a !== null
|
|
36760
36763
|
);
|
|
36761
36764
|
if (found.length === 1) {
|
|
@@ -37110,7 +37113,7 @@ async function checkBuild(pkgRoot) {
|
|
|
37110
37113
|
}
|
|
37111
37114
|
async function checkAgent() {
|
|
37112
37115
|
section("Checking coding agent");
|
|
37113
|
-
const agents = AGENT_DEFS;
|
|
37116
|
+
const agents = AGENT_DEFS.filter((a) => agentSupportsStdinPrompt(a.binary) || process.platform !== "win32");
|
|
37114
37117
|
const creds = await readExperiencesCredentials();
|
|
37115
37118
|
const savedAgent = creds.agent;
|
|
37116
37119
|
const savedModel = creds.agentModel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.34.1-dev-build-
|
|
3
|
+
"version": "2.34.1-dev-build-e12e553.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-
|
|
43
|
-
"@contentful/experience-design-system-
|
|
42
|
+
"@contentful/experience-design-system-cli-v2": "2.34.1-dev-build-e12e553.0",
|
|
43
|
+
"@contentful/experience-design-system-types": "2.34.1-dev-build-e12e553.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.1-dev-build-
|
|
56
|
-
"@contentful/experience-design-system-
|
|
57
|
-
"@contentful/experience-design-system-
|
|
55
|
+
"@contentful/experience-design-system-client": "2.34.1-dev-build-e12e553.0",
|
|
56
|
+
"@contentful/experience-design-system-extraction": "2.34.1-dev-build-e12e553.0",
|
|
57
|
+
"@contentful/experience-design-system-generation": "2.34.1-dev-build-e12e553.0"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|