@contentful/experience-design-system-cli 2.35.1-dev-build-e1cfef52.0 → 2.35.1-dev-build-5446cce7.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-e1cfef52.0",
3
+ "version": "2.35.1-dev-build-5446cce7.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -53,9 +53,6 @@
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:*",
59
56
  "@tsconfig/node24": "^24.0.4",
60
57
  "@types/node": "^24.0.3",
61
58
  "@types/react": "^18.3.24",
@@ -63,7 +60,6 @@
63
60
  "eslint": "^9.39.5",
64
61
  "eslint-config-prettier": "^10.1.8",
65
62
  "eslint-plugin-prettier": "^5.5.6",
66
- "ink-testing-library": "^4.0.0",
67
63
  "typescript-eslint": "^8.67.0",
68
64
  "vitest": "^4.0.16"
69
65
  },
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { Screen } from '../../../app.js';
3
- export declare const MIN_TERMINAL_WIDTH = 164;
4
3
  export declare function HomeScreen({ onNavigate }: {
5
4
  onNavigate: (screen: Screen) => void;
6
5
  }): React.ReactElement;
@@ -1,14 +1,3 @@
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
- };
12
1
  export declare const PALETTE: {
13
2
  readonly accent: "#1773EB";
14
3
  readonly heading: "#FFFFFF";
@@ -238,7 +238,6 @@ 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",
242
241
  "map-tokens": "map-tokens.md"
243
242
  };
244
243
  }
@@ -500,31 +499,6 @@ Rules:
500
499
  - Emit set_group calls before the set_token calls that fall under them.
501
500
  - You may emit prose lines (not starting with {) anywhere \u2014 they are ignored by the parser and serve as your reasoning log.`;
502
501
  }
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
- }
528
502
  var init_build_skill_preambles = __esm({
529
503
  "packages/experience-design-system-generation/dist/src/services/prompts/helpers/build-skill-preambles.js"() {
530
504
  "use strict";
@@ -533,7 +507,7 @@ var init_build_skill_preambles = __esm({
533
507
 
534
508
  // packages/experience-design-system-generation/dist/src/services/prompts/helpers/build-preamble.js
535
509
  function buildPreamble(options) {
536
- const { skill, rawComponentsInline, propBucketsInline, rawTokensInline, rawTokensFilename, tokensInline, tokenMapInline, generatedCdf, tokenTree, componentSourceRefs, existingComponentsInline, existingTokensInline, componentAllowlistInline, debateRole, disagreementInline } = options;
510
+ const { skill, rawComponentsInline, propBucketsInline, rawTokensInline, rawTokensFilename, tokensInline, tokenMapInline, generatedCdf, tokenTree, componentSourceRefs, existingComponentsInline, existingTokensInline, componentAllowlistInline } = options;
537
511
  const sections = [];
538
512
  if (existingComponentsInline) {
539
513
  sections.push(`Existing components in the target Contentful space (JSON) \u2014 use for alignment, not as a hard filter:
@@ -605,8 +579,6 @@ ${sections.join("\n\n")}` : "";
605
579
  return buildComponentsAutonomousPreamble(inputBlock);
606
580
  if (skill === "select")
607
581
  return buildSelectAutonomousPreamble(inputBlock);
608
- if (skill === "debate-select")
609
- return buildDebateSelectAutonomousPreamble(inputBlock, debateRole, disagreementInline);
610
582
  if (skill === "map-tokens")
611
583
  return buildMapTokensAutonomousPreamble(inputBlock);
612
584
  return buildTokensAutonomousPreamble(inputBlock);
@@ -9583,8 +9555,11 @@ var init_debug_logger = __esm({
9583
9555
 
9584
9556
  // packages/experience-design-system-cli-legacy/src/lib/prop-bucket-debug.ts
9585
9557
  function logPropBuckets(stage, assignments) {
9586
- for (const assignment of assignments) {
9587
- getDebugLogger().event("analyze", `prop-buckets.${stage}`, { ...assignment });
9558
+ const logger = getDebugLogger();
9559
+ if (logger.enabled) {
9560
+ for (const assignment of assignments) {
9561
+ logger.event("analyze", `prop-buckets.${stage}`, { ...assignment });
9562
+ }
9588
9563
  }
9589
9564
  return JSON.stringify(assignments.length === 1 && stage === "generate" ? assignments[0] : assignments);
9590
9565
  }
@@ -10559,7 +10534,6 @@ function applyDbMigrations(db) {
10559
10534
  }
10560
10535
  if (!rawPropColNames.has("dom_attribute")) {
10561
10536
  db.exec("ALTER TABLE raw_props ADD COLUMN dom_attribute INTEGER CHECK (dom_attribute IN (0, 1))");
10562
- rawPropColNames.add("dom_attribute");
10563
10537
  }
10564
10538
  const rawPropsDdl = db.prepare(`SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'raw_props'`).get();
10565
10539
  if (rawPropsDdl && !rawPropsDdl.sql.includes(`'unattached'`)) {
@@ -12748,6 +12722,9 @@ function printFallbackInstructions(options) {
12748
12722
  lines.push(` Re-run the generate command with the agent available, or use --dry-run to inspect the prompt.`);
12749
12723
  process.stderr.write(lines.join("\n") + "\n");
12750
12724
  }
12725
+ function generatePropBuckets(component) {
12726
+ return logPropBuckets("generate", [bucketComponentProps(component)]);
12727
+ }
12751
12728
  async function showGenerateView(result) {
12752
12729
  if (process.stdout.isTTY) {
12753
12730
  const { waitUntilExit } = renderWithGoodbye(
@@ -12829,7 +12806,7 @@ async function runOneComponent(options, component, index, total) {
12829
12806
  skill: "components",
12830
12807
  mode: "autonomous",
12831
12808
  rawComponentsInline,
12832
- propBucketsInline: logPropBuckets("generate", [bucketComponentProps(component)]),
12809
+ propBucketsInline: generatePropBuckets(component),
12833
12810
  tokensInline,
12834
12811
  tokenMapInline,
12835
12812
  outDir: process.cwd(),
@@ -13087,7 +13064,7 @@ async function runGenerateSkill(skill, opts, verbose = false) {
13087
13064
  skill,
13088
13065
  mode: "autonomous",
13089
13066
  rawComponentsInline: sampleInline ?? rawTokensInline,
13090
- propBucketsInline: sampleComponent ? logPropBuckets("generate", [bucketComponentProps(sampleComponent)]) : void 0,
13067
+ propBucketsInline: sampleComponent ? generatePropBuckets(sampleComponent) : void 0,
13091
13068
  rawTokensInline: skill === "tokens" ? rawTokensInline : void 0,
13092
13069
  rawTokensFilename: opts.rawTokens ? resolve11(opts.rawTokens).split("/").pop() : void 0,
13093
13070
  tokensInline,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-e1cfef52.0",
3
+ "version": "2.35.1-dev-build-5446cce7.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -53,9 +53,6 @@
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:*",
59
56
  "@tsconfig/node24": "^24.0.4",
60
57
  "@types/node": "^24.0.3",
61
58
  "@types/react": "^18.3.24",
@@ -63,7 +60,6 @@
63
60
  "eslint": "^9.39.5",
64
61
  "eslint-config-prettier": "^10.1.8",
65
62
  "eslint-plugin-prettier": "^5.5.6",
66
- "ink-testing-library": "^4.0.0",
67
63
  "typescript-eslint": "^8.67.0",
68
64
  "vitest": "^4.0.16"
69
65
  },
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-e1cfef52.0",
3
+ "version": "2.35.1-dev-build-5446cce7.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-e1cfef52.0"
45
+ "@contentful/experience-design-system-types": "2.35.1-dev-build-5446cce7.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",
@@ -52,12 +52,8 @@
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",
56
55
  "typescript-eslint": "^8.67.0",
57
- "vitest": "^4.0.16",
58
- "@contentful/experience-design-system-agents": "2.35.1-dev-build-e1cfef52.0",
59
- "@contentful/experience-design-system-extraction": "2.35.1-dev-build-e1cfef52.0",
60
- "@contentful/experience-design-system-generation": "2.35.1-dev-build-e1cfef52.0"
56
+ "vitest": "^4.0.16"
61
57
  },
62
58
  "repository": {
63
59
  "type": "git",
@@ -1,23 +0,0 @@
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.