@contentful/experience-design-system-generation 2.34.5-dev-build-d08439d.0 → 2.34.5-dev-build-5e798cb1.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-generation",
|
|
3
|
-
"version": "2.34.5-dev-build-
|
|
3
|
+
"version": "2.34.5-dev-build-5e798cb1.0",
|
|
4
4
|
"description": "Agent-invocation and skill-prompt engine for the Contentful Experience Design System SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/dist/src/agent-runner.js
CHANGED
|
@@ -486,7 +486,7 @@ export async function checkAgentAuth(agent) {
|
|
|
486
486
|
import('node:fs/promises').then((fs) => fs.access(binary).then(() => resolve(true), () => resolve(false)));
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
489
|
-
const child = spawn('which', [binary], { stdio: 'ignore' });
|
|
489
|
+
const child = spawn(process.platform === 'win32' ? 'where' : 'which', [binary], { stdio: 'ignore' });
|
|
490
490
|
child.on('close', (code) => resolve(code === 0));
|
|
491
491
|
});
|
|
492
492
|
if (!binaryExists)
|
|
@@ -68,6 +68,8 @@ export interface PromptOptions {
|
|
|
68
68
|
* appropriate warning banner.
|
|
69
69
|
*/
|
|
70
70
|
skillPathOverride?: string;
|
|
71
|
+
/** Inline prompt instructions, taking precedence over the bundled skill or path override. */
|
|
72
|
+
skillContentOverride?: string;
|
|
71
73
|
/** JSON-serialized summary of existing space Components. Callers pre-project the shape per skill. */
|
|
72
74
|
existingComponentsInline?: string;
|
|
73
75
|
/** JSON-serialized summary of existing space DesignTokens. Callers pre-project the shape per skill. */
|
|
@@ -20,7 +20,7 @@ const SKILL_FILES = {
|
|
|
20
20
|
'map-tokens': 'map-tokens.md',
|
|
21
21
|
};
|
|
22
22
|
export async function buildPrompt(options) {
|
|
23
|
-
const skillContent = await readSkillFile(options.skill, options.skillPathOverride);
|
|
23
|
+
const skillContent = options.skillContentOverride ?? (await readSkillFile(options.skill, options.skillPathOverride));
|
|
24
24
|
const preamble = buildPreamble(options);
|
|
25
25
|
return `${preamble}\n\nSkill instructions follow:\n---\n${skillContent}`;
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-generation",
|
|
3
|
-
"version": "2.34.5-dev-build-
|
|
3
|
+
"version": "2.34.5-dev-build-5e798cb1.0",
|
|
4
4
|
"description": "Agent-invocation and skill-prompt engine for the Contentful Experience Design System SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"skills/"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentful/experience-design-system-types": "2.34.5-dev-build-
|
|
25
|
+
"@contentful/experience-design-system-types": "2.34.5-dev-build-5e798cb1.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -68,7 +68,7 @@ It is correct approximately 80% of the time for simple props. You should:
|
|
|
68
68
|
|
|
69
69
|
## Target schema
|
|
70
70
|
|
|
71
|
-
The CLI assembles your output into CDF (Component Definition Format), a JSON schema with `$schema: "https://contentful.com/schemas/cdf
|
|
71
|
+
The CLI assembles your output into CDF (Component Definition Format), a JSON schema with `$schema: "https://contentful.com/schemas/cdf"`. Each component you classify produces a CDF component entry (`$type: "component"`) in the pipeline database. Properties carry `$category` (`content`, `design`, or `state`) and a `$type`. You do not produce this JSON directly — emit tool calls and the CLI writes the DB columns.
|
|
72
72
|
|
|
73
73
|
## Output protocol
|
|
74
74
|
|