@contentful/experience-design-system-cli 2.35.1-dev-build-98f1ba74.0 → 2.35.1-dev-build-459d7e23.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-cli",
|
|
3
|
-
"version": "2.35.1-dev-build-
|
|
3
|
+
"version": "2.35.1-dev-build-459d7e23.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
"typescript": "^5.9.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
+
"@contentful/experience-design-system-agents": "workspace:*",
|
|
57
|
+
"@contentful/experience-design-system-extraction": "workspace:*",
|
|
58
|
+
"@contentful/experience-design-system-generation": "workspace:*",
|
|
56
59
|
"@tsconfig/node24": "^24.0.4",
|
|
57
60
|
"@types/node": "^24.0.3",
|
|
58
61
|
"@types/react": "^18.3.24",
|
|
@@ -60,6 +63,7 @@
|
|
|
60
63
|
"eslint": "^9.39.5",
|
|
61
64
|
"eslint-config-prettier": "^10.1.8",
|
|
62
65
|
"eslint-plugin-prettier": "^5.5.6",
|
|
66
|
+
"ink-testing-library": "^4.0.0",
|
|
63
67
|
"typescript-eslint": "^8.67.0",
|
|
64
68
|
"vitest": "^4.0.16"
|
|
65
69
|
},
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
export declare const BRAND: {
|
|
2
|
+
readonly blue: "#1773EB";
|
|
3
|
+
readonly green: "#00C459";
|
|
4
|
+
readonly orange: "#E44F20";
|
|
5
|
+
readonly yellow: "#FFDA00";
|
|
6
|
+
readonly white: "#FFFFFF";
|
|
7
|
+
readonly slate: "#A6B5C7";
|
|
8
|
+
readonly steel: "#C4D1DE";
|
|
9
|
+
readonly mist: "#DDE5EC";
|
|
10
|
+
readonly fog: "#EFF2F6";
|
|
11
|
+
};
|
|
1
12
|
export declare const PALETTE: {
|
|
2
13
|
readonly accent: "#1773EB";
|
|
3
14
|
readonly heading: "#FFFFFF";
|
package/legacy/dist/src/index.js
CHANGED
|
@@ -238,6 +238,7 @@ var init_resolve_skill_file = __esm({
|
|
|
238
238
|
components: "generate-components.md",
|
|
239
239
|
tokens: "generate-tokens.md",
|
|
240
240
|
select: "select-components.md",
|
|
241
|
+
"debate-select": "debate-select.md",
|
|
241
242
|
"map-tokens": "map-tokens.md"
|
|
242
243
|
};
|
|
243
244
|
}
|
|
@@ -499,6 +500,31 @@ Rules:
|
|
|
499
500
|
- Emit set_group calls before the set_token calls that fall under them.
|
|
500
501
|
- You may emit prose lines (not starting with {) anywhere \u2014 they are ignored by the parser and serve as your reasoning log.`;
|
|
501
502
|
}
|
|
503
|
+
function buildDebateSelectAutonomousPreamble(inputBlock, debateRole, disagreementInline) {
|
|
504
|
+
const role = debateRole ?? "for";
|
|
505
|
+
return [
|
|
506
|
+
"You are the " + role.toUpperCase() + " participant in an adversarial review of one component-selection disagreement. This is an automatic escalation stage; do not ask the developer for confirmation.",
|
|
507
|
+
"",
|
|
508
|
+
"Your role is to argue the " + role.toUpperCase() + " position on the exact disagreement below. Address the claim literally, cite the supplied component evidence, and do not substitute a nearby component or field. The opposing participant is evaluating the same evidence independently.",
|
|
509
|
+
"",
|
|
510
|
+
"Component and source data:" + inputBlock,
|
|
511
|
+
"",
|
|
512
|
+
"Disagreement under review (JSON):",
|
|
513
|
+
"~~~json",
|
|
514
|
+
disagreementInline ?? "{}",
|
|
515
|
+
"~~~",
|
|
516
|
+
"",
|
|
517
|
+
"## Output protocol",
|
|
518
|
+
"",
|
|
519
|
+
"Emit exactly one JSON object on one line and do not write files:",
|
|
520
|
+
"",
|
|
521
|
+
"~~~json",
|
|
522
|
+
'{"role":"' + role + '","disagreement_id":"<id>","argument":"<position and reasoning>","evidence":[{"source":"<path>","line":"<line-or-range>","quote":"<verbatim evidence>"}]}',
|
|
523
|
+
"~~~",
|
|
524
|
+
"",
|
|
525
|
+
"The role and disagreement_id must match the values in this prompt. Use an empty evidence array only when the supplied context contains no citable source evidence."
|
|
526
|
+
].join("\n");
|
|
527
|
+
}
|
|
502
528
|
var init_build_skill_preambles = __esm({
|
|
503
529
|
"packages/experience-design-system-generation/dist/src/services/prompts/helpers/build-skill-preambles.js"() {
|
|
504
530
|
"use strict";
|
|
@@ -507,7 +533,7 @@ var init_build_skill_preambles = __esm({
|
|
|
507
533
|
|
|
508
534
|
// packages/experience-design-system-generation/dist/src/services/prompts/helpers/build-preamble.js
|
|
509
535
|
function buildPreamble(options) {
|
|
510
|
-
const { skill, rawComponentsInline, propBucketsInline, rawTokensInline, rawTokensFilename, tokensInline, tokenMapInline, generatedCdf, tokenTree, componentSourceRefs, existingComponentsInline, existingTokensInline, componentAllowlistInline } = options;
|
|
536
|
+
const { skill, rawComponentsInline, propBucketsInline, rawTokensInline, rawTokensFilename, tokensInline, tokenMapInline, generatedCdf, tokenTree, componentSourceRefs, existingComponentsInline, existingTokensInline, componentAllowlistInline, debateRole, disagreementInline } = options;
|
|
511
537
|
const sections = [];
|
|
512
538
|
if (existingComponentsInline) {
|
|
513
539
|
sections.push(`Existing components in the target Contentful space (JSON) \u2014 use for alignment, not as a hard filter:
|
|
@@ -579,6 +605,8 @@ ${sections.join("\n\n")}` : "";
|
|
|
579
605
|
return buildComponentsAutonomousPreamble(inputBlock);
|
|
580
606
|
if (skill === "select")
|
|
581
607
|
return buildSelectAutonomousPreamble(inputBlock);
|
|
608
|
+
if (skill === "debate-select")
|
|
609
|
+
return buildDebateSelectAutonomousPreamble(inputBlock, debateRole, disagreementInline);
|
|
582
610
|
if (skill === "map-tokens")
|
|
583
611
|
return buildMapTokensAutonomousPreamble(inputBlock);
|
|
584
612
|
return buildTokensAutonomousPreamble(inputBlock);
|
package/legacy/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.35.1-dev-build-
|
|
3
|
+
"version": "2.35.1-dev-build-459d7e23.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
"typescript": "^5.9.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
+
"@contentful/experience-design-system-agents": "workspace:*",
|
|
57
|
+
"@contentful/experience-design-system-extraction": "workspace:*",
|
|
58
|
+
"@contentful/experience-design-system-generation": "workspace:*",
|
|
56
59
|
"@tsconfig/node24": "^24.0.4",
|
|
57
60
|
"@types/node": "^24.0.3",
|
|
58
61
|
"@types/react": "^18.3.24",
|
|
@@ -60,6 +63,7 @@
|
|
|
60
63
|
"eslint": "^9.39.5",
|
|
61
64
|
"eslint-config-prettier": "^10.1.8",
|
|
62
65
|
"eslint-plugin-prettier": "^5.5.6",
|
|
66
|
+
"ink-testing-library": "^4.0.0",
|
|
63
67
|
"typescript-eslint": "^8.67.0",
|
|
64
68
|
"vitest": "^4.0.16"
|
|
65
69
|
},
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Debate component selection
|
|
2
|
+
|
|
3
|
+
This skill is used after independent component-selection agents disagree about an interpretive question. The caller supplies one component, its source evidence, the disagreement record, and your role (for or against).
|
|
4
|
+
|
|
5
|
+
The caller dispatches a blind FOR/AGAINST pair; argue only the side named in your prompt and do not assume or describe the other participant's response.
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
- Argue only the exact disagreement in the prompt.
|
|
10
|
+
- Use the supplied component data and citations as the evidence base.
|
|
11
|
+
- For slot-realness or allowed-component questions, reason from concrete caller evidence rather than from a ReactNode-shaped prop alone.
|
|
12
|
+
- Keep the argument specific enough for an orchestrator to make an independent determination.
|
|
13
|
+
- Do not write files, call tools, or invent evidence that is not present in the prompt.
|
|
14
|
+
|
|
15
|
+
## Output protocol
|
|
16
|
+
|
|
17
|
+
Emit exactly one JSON object on one line:
|
|
18
|
+
|
|
19
|
+
~~~json
|
|
20
|
+
{"role":"for","disagreement_id":"d1","argument":"...","evidence":[{"source":"src/Panel.tsx","line":"42","quote":"<Card><Badge /></Card>"}]}
|
|
21
|
+
~~~
|
|
22
|
+
|
|
23
|
+
Use the role and disagreement ID supplied by the caller. evidence must be an array of objects with source, line, and quote strings; use an empty array when no citable source evidence is supplied.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.35.1-dev-build-
|
|
3
|
+
"version": "2.35.1-dev-build-459d7e23.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"svelte": "^5.56.4",
|
|
43
43
|
"ts-morph": "^27.0.2",
|
|
44
44
|
"typescript": "^5.9.3",
|
|
45
|
-
"@contentful/experience-design-system-types": "2.35.1-dev-build-
|
|
45
|
+
"@contentful/experience-design-system-types": "2.35.1-dev-build-459d7e23.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -52,8 +52,12 @@
|
|
|
52
52
|
"eslint": "^9.39.5",
|
|
53
53
|
"eslint-config-prettier": "^10.1.8",
|
|
54
54
|
"eslint-plugin-prettier": "^5.5.6",
|
|
55
|
+
"ink-testing-library": "^4.0.0",
|
|
55
56
|
"typescript-eslint": "^8.67.0",
|
|
56
|
-
"vitest": "^4.0.16"
|
|
57
|
+
"vitest": "^4.0.16",
|
|
58
|
+
"@contentful/experience-design-system-generation": "2.35.1-dev-build-459d7e23.0",
|
|
59
|
+
"@contentful/experience-design-system-extraction": "2.35.1-dev-build-459d7e23.0",
|
|
60
|
+
"@contentful/experience-design-system-agents": "2.35.1-dev-build-459d7e23.0"
|
|
57
61
|
},
|
|
58
62
|
"repository": {
|
|
59
63
|
"type": "git",
|