@contentful/experience-design-system-cli 2.37.1-dev-build-ef8b693f.0 → 2.37.1-dev-build-7314a760.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.
Files changed (172) hide show
  1. package/dist/index.js +68 -142
  2. package/dist/package.json +1 -1
  3. package/package.json +3 -3
  4. package/dist/src/commands/forwarded.d.ts +0 -2
  5. package/dist/src/legacy/forwarded-import-args.d.ts +0 -1
  6. package/dist/src/legacy/legacy-cli-path.d.ts +0 -1
  7. package/dist/src/legacy/run-legacy.d.ts +0 -1
  8. package/legacy/bin/cli.js +0 -58
  9. package/legacy/dist/package.json +0 -76
  10. package/legacy/dist/src/analytics/exit.d.ts +0 -4
  11. package/legacy/dist/src/analytics/index.d.ts +0 -3
  12. package/legacy/dist/src/analyze/composite-closure.d.ts +0 -26
  13. package/legacy/dist/src/analyze/composition/apply-mapping.d.ts +0 -22
  14. package/legacy/dist/src/analyze/composition/candidate-files.d.ts +0 -34
  15. package/legacy/dist/src/analyze/composition/composition-cache-key.d.ts +0 -18
  16. package/legacy/dist/src/analyze/composition/interchange-schema.d.ts +0 -17
  17. package/legacy/dist/src/analyze/composition/manifest-doc-evidence.d.ts +0 -49
  18. package/legacy/dist/src/analyze/composition/merge-edges.d.ts +0 -19
  19. package/legacy/dist/src/analyze/composition/parse-map-edges.d.ts +0 -16
  20. package/legacy/dist/src/analyze/composition/prompt-loader.d.ts +0 -3
  21. package/legacy/dist/src/analyze/composition/resolve-mapping-cli.d.ts +0 -10
  22. package/legacy/dist/src/analyze/composition/resolve-mapping.d.ts +0 -59
  23. package/legacy/dist/src/analyze/cycle-detection.d.ts +0 -27
  24. package/legacy/dist/src/analyze/extract-command.d.ts +0 -7
  25. package/legacy/dist/src/analyze/fuzzy-search.d.ts +0 -3
  26. package/legacy/dist/src/analyze/issue-inheritance.d.ts +0 -8
  27. package/legacy/dist/src/analyze/lineage.d.ts +0 -29
  28. package/legacy/dist/src/analyze/search-neighborhood.d.ts +0 -3
  29. package/legacy/dist/src/analyze/select/command.d.ts +0 -27
  30. package/legacy/dist/src/analyze/select/parser.d.ts +0 -6
  31. package/legacy/dist/src/analyze/select/persistence.d.ts +0 -22
  32. package/legacy/dist/src/analyze/select/preview-annotations.d.ts +0 -26
  33. package/legacy/dist/src/analyze/select/tui/LegacySelectApp.d.ts +0 -8
  34. package/legacy/dist/src/analyze/select/tui/components/ComponentDetail.d.ts +0 -19
  35. package/legacy/dist/src/analyze/select/tui/components/ComponentRationalePanel.d.ts +0 -10
  36. package/legacy/dist/src/analyze/select/tui/components/FieldEditor.d.ts +0 -67
  37. package/legacy/dist/src/analyze/select/tui/components/FinalizeDialog.d.ts +0 -22
  38. package/legacy/dist/src/analyze/select/tui/components/GotoBanner.d.ts +0 -31
  39. package/legacy/dist/src/analyze/select/tui/components/GroupedSidebar.d.ts +0 -94
  40. package/legacy/dist/src/analyze/select/tui/components/HelpOverlay.d.ts +0 -21
  41. package/legacy/dist/src/analyze/select/tui/components/HighlightedLine.d.ts +0 -9
  42. package/legacy/dist/src/analyze/select/tui/components/JsonEditor.d.ts +0 -10
  43. package/legacy/dist/src/analyze/select/tui/components/JsonPanel.d.ts +0 -11
  44. package/legacy/dist/src/analyze/select/tui/components/PreviewSummaryBar.d.ts +0 -8
  45. package/legacy/dist/src/analyze/select/tui/components/QuitDialog.d.ts +0 -8
  46. package/legacy/dist/src/analyze/select/tui/components/RationaleLine.d.ts +0 -21
  47. package/legacy/dist/src/analyze/select/tui/components/RationalePanel.d.ts +0 -15
  48. package/legacy/dist/src/analyze/select/tui/components/ScrollablePanel.d.ts +0 -14
  49. package/legacy/dist/src/analyze/select/tui/components/Sidebar.d.ts +0 -29
  50. package/legacy/dist/src/analyze/select/tui/components/SourcePanel.d.ts +0 -11
  51. package/legacy/dist/src/analyze/select/tui/components/StatusBar.d.ts +0 -11
  52. package/legacy/dist/src/analyze/select/tui/components/TokenReviewPanel.d.ts +0 -30
  53. package/legacy/dist/src/analyze/select/tui/components/TopBar.d.ts +0 -10
  54. package/legacy/dist/src/analyze/select/tui/components/removed-components-text.d.ts +0 -7
  55. package/legacy/dist/src/analyze/select/tui/components/wrap-text.d.ts +0 -1
  56. package/legacy/dist/src/analyze/select/tui/hooks/list-scroll-input.d.ts +0 -13
  57. package/legacy/dist/src/analyze/select/tui/hooks/scroll-offset.d.ts +0 -30
  58. package/legacy/dist/src/analyze/select/tui/hooks/useImmediateInput.d.ts +0 -19
  59. package/legacy/dist/src/analyze/select/tui/hooks/useKeymap.d.ts +0 -24
  60. package/legacy/dist/src/analyze/select/tui/hooks/useSession.d.ts +0 -19
  61. package/legacy/dist/src/analyze/select/tui/hooks/useUndo.d.ts +0 -8
  62. package/legacy/dist/src/analyze/select/tui/theme.d.ts +0 -18
  63. package/legacy/dist/src/analyze/select/types.d.ts +0 -54
  64. package/legacy/dist/src/analyze/selection-cascade.d.ts +0 -3
  65. package/legacy/dist/src/analyze/slot-graph.d.ts +0 -11
  66. package/legacy/dist/src/apply/api-client.d.ts +0 -64
  67. package/legacy/dist/src/apply/command.d.ts +0 -43
  68. package/legacy/dist/src/apply/preview-utils.d.ts +0 -12
  69. package/legacy/dist/src/apply/tokens.d.ts +0 -1
  70. package/legacy/dist/src/apply/tui/ServerApplyView.d.ts +0 -34
  71. package/legacy/dist/src/apply/tui/ServerPreviewView.d.ts +0 -9
  72. package/legacy/dist/src/credentials-store.d.ts +0 -18
  73. package/legacy/dist/src/doctor/checks.d.ts +0 -5
  74. package/legacy/dist/src/doctor/command.d.ts +0 -2
  75. package/legacy/dist/src/doctor/report.d.ts +0 -7
  76. package/legacy/dist/src/generate/command.d.ts +0 -2
  77. package/legacy/dist/src/generate/tui/GenerateView.d.ts +0 -12
  78. package/legacy/dist/src/helpers/build-contentful-management-client.d.ts +0 -7
  79. package/legacy/dist/src/helpers/fetch-and-persist-existing-contentful-entities.d.ts +0 -29
  80. package/legacy/dist/src/helpers/fetch-existing-contentful-entities.d.ts +0 -11
  81. package/legacy/dist/src/helpers/find-nearly-matching-component.d.ts +0 -7
  82. package/legacy/dist/src/helpers/read-existing-contentful-entities-from-session.d.ts +0 -7
  83. package/legacy/dist/src/helpers/summarize-existing-contentful-entities.d.ts +0 -50
  84. package/legacy/dist/src/host-utils.d.ts +0 -3
  85. package/legacy/dist/src/index.d.ts +0 -1
  86. package/legacy/dist/src/index.js +0 -25165
  87. package/legacy/dist/src/lib/agent-definitions.d.ts +0 -14
  88. package/legacy/dist/src/lib/agent-model-options.d.ts +0 -15
  89. package/legacy/dist/src/lib/agent-output.d.ts +0 -5
  90. package/legacy/dist/src/lib/cli-errors.d.ts +0 -2
  91. package/legacy/dist/src/lib/cli-path.d.ts +0 -4
  92. package/legacy/dist/src/lib/command-options.d.ts +0 -3
  93. package/legacy/dist/src/lib/component-patch.d.ts +0 -12
  94. package/legacy/dist/src/lib/contentful-urls.d.ts +0 -15
  95. package/legacy/dist/src/lib/debug-logger.d.ts +0 -39
  96. package/legacy/dist/src/lib/debug-preamble.d.ts +0 -7
  97. package/legacy/dist/src/lib/error-parser.d.ts +0 -40
  98. package/legacy/dist/src/lib/path-exists.d.ts +0 -1
  99. package/legacy/dist/src/lib/prompt-overrides.d.ts +0 -38
  100. package/legacy/dist/src/lib/terminal-capabilities.d.ts +0 -29
  101. package/legacy/dist/src/lib/user-agent.d.ts +0 -7
  102. package/legacy/dist/src/map-tokens/apply.d.ts +0 -12
  103. package/legacy/dist/src/map-tokens/command.d.ts +0 -2
  104. package/legacy/dist/src/map-tokens/resolve-defaults.d.ts +0 -32
  105. package/legacy/dist/src/map-tokens/tui/MapTokensView.d.ts +0 -13
  106. package/legacy/dist/src/output/format.d.ts +0 -23
  107. package/legacy/dist/src/print/command.d.ts +0 -11
  108. package/legacy/dist/src/print/validate/tui/ValidateView.d.ts +0 -15
  109. package/legacy/dist/src/print/validate/validators/cdf-validator.d.ts +0 -2
  110. package/legacy/dist/src/print/validate/validators/dtcg-validator.d.ts +0 -2
  111. package/legacy/dist/src/print/validate/validators/format-errors.d.ts +0 -12
  112. package/legacy/dist/src/print/validate/validators/read-json-file.d.ts +0 -10
  113. package/legacy/dist/src/program.d.ts +0 -25
  114. package/legacy/dist/src/runs/fingerprint.d.ts +0 -36
  115. package/legacy/dist/src/runs/save-path-resolver.d.ts +0 -11
  116. package/legacy/dist/src/runs/store.d.ts +0 -65
  117. package/legacy/dist/src/session/cache-keys.d.ts +0 -22
  118. package/legacy/dist/src/session/core/cdf/cdf-mappers.d.ts +0 -3
  119. package/legacy/dist/src/session/core/components/derive-component-id.d.ts +0 -1
  120. package/legacy/dist/src/session/core/components/hash-component-shape.d.ts +0 -5
  121. package/legacy/dist/src/session/core/shared/index-rows-by-key.d.ts +0 -1
  122. package/legacy/dist/src/session/core/tokens/build-dtcg-groups.d.ts +0 -12
  123. package/legacy/dist/src/session/core/tokens/build-dtcg-tokens.d.ts +0 -3
  124. package/legacy/dist/src/session/core/tokens/hash-token-content.d.ts +0 -1
  125. package/legacy/dist/src/session/db.d.ts +0 -200
  126. package/legacy/dist/src/session/migration.d.ts +0 -2
  127. package/legacy/dist/src/session/repositories/sessions/read.d.ts +0 -11
  128. package/legacy/dist/src/session/repositories/sessions/write.d.ts +0 -3
  129. package/legacy/dist/src/session/repositories/shared/with-transaction.d.ts +0 -2
  130. package/legacy/dist/src/session/repositories/steps/read.d.ts +0 -2
  131. package/legacy/dist/src/session/repositories/steps/write.d.ts +0 -5
  132. package/legacy/dist/src/session/repositories/tokens/read.d.ts +0 -15
  133. package/legacy/dist/src/session/repositories/tokens/write.d.ts +0 -16
  134. package/legacy/dist/src/session/resolve-session-id.d.ts +0 -1
  135. package/legacy/dist/src/session/services/session-resolver.d.ts +0 -9
  136. package/legacy/dist/src/session/services/tokens/apply-tool-calls.d.ts +0 -8
  137. package/legacy/dist/src/session/services/tokens/replace-raw-prop-token-paths.d.ts +0 -3
  138. package/legacy/dist/src/session/services/tokens/replace-raw-token-name-paths.d.ts +0 -3
  139. package/legacy/dist/src/session/services/tokens/store-dtcg-tokens.d.ts +0 -3
  140. package/legacy/dist/src/session/session-id.d.ts +0 -1
  141. package/legacy/dist/src/session/source-excerpt.d.ts +0 -26
  142. package/legacy/dist/src/setup/SetupScreen.d.ts +0 -28
  143. package/legacy/dist/src/setup/SetupStepper.d.ts +0 -7
  144. package/legacy/dist/src/setup/command.d.ts +0 -3
  145. package/legacy/dist/src/setup/lib/checks.d.ts +0 -57
  146. package/legacy/dist/src/setup/lib/shell.d.ts +0 -12
  147. package/legacy/dist/src/setup/steps/CodingAgentScreen.d.ts +0 -20
  148. package/legacy/dist/src/setup/steps/ContentfulCredentialsScreen.d.ts +0 -11
  149. package/legacy/dist/src/setup/steps/StepLayout.d.ts +0 -20
  150. package/legacy/dist/src/setup/steps/preferences/AnalyticsScreen.d.ts +0 -5
  151. package/legacy/dist/src/setup/steps/preferences/BooleanInput.d.ts +0 -21
  152. package/legacy/dist/src/setup/steps/preferences/ColorPreferenceScreen.d.ts +0 -5
  153. package/legacy/dist/src/setup/steps/preferences/CustomPromptScreen.d.ts +0 -14
  154. package/legacy/dist/src/setup/steps/preferences/DebugLogsScreen.d.ts +0 -5
  155. package/legacy/dist/src/setup/steps/preferences/PreferencesMenu.d.ts +0 -26
  156. package/legacy/dist/src/setup/steps/prerequisites/PrerequisitesScreen.d.ts +0 -16
  157. package/legacy/dist/src/setup/steps/prerequisites/build.d.ts +0 -2
  158. package/legacy/dist/src/setup/steps/prerequisites/deps.d.ts +0 -33
  159. package/legacy/dist/src/setup/steps/prerequisites/index.d.ts +0 -4
  160. package/legacy/dist/src/setup/steps/prerequisites/node.d.ts +0 -2
  161. package/legacy/dist/src/setup/steps/prerequisites/pnpm.d.ts +0 -2
  162. package/legacy/dist/src/tui/CommandCompletionView.d.ts +0 -13
  163. package/legacy/dist/src/tui/render-with-goodbye.d.ts +0 -7
  164. package/legacy/dist/src/tui/use-terminal-size.d.ts +0 -6
  165. package/legacy/dist/src/tui/windowed-panel.d.ts +0 -37
  166. package/legacy/dist/src/types.d.ts +0 -2
  167. package/legacy/package.json +0 -85
  168. package/legacy/prompts/composition-edges.md +0 -11
  169. package/legacy/skills/generate-components.md +0 -612
  170. package/legacy/skills/generate-tokens.md +0 -194
  171. package/legacy/skills/map-tokens.md +0 -102
  172. package/legacy/skills/select-components.md +0 -235
package/dist/index.js CHANGED
@@ -19522,9 +19522,9 @@ var init_package_root = __esm({
19522
19522
  import { randomBytes as randomBytes4 } from "node:crypto";
19523
19523
  import { mkdir as mkdir6, readFile as readFile18, rename as rename2, writeFile as writeFile6 } from "node:fs/promises";
19524
19524
  import { homedir as homedir2 } from "node:os";
19525
- import { dirname as dirname13, join as join17 } from "node:path";
19525
+ import { dirname as dirname13, join as join16 } from "node:path";
19526
19526
  function configRoot2() {
19527
- return process.env["EDS_HOME"] || join17(homedir2(), ".contentful", "experience-design-system-cli");
19527
+ return process.env["EDS_HOME"] || join16(homedir2(), ".contentful", "experience-design-system-cli");
19528
19528
  }
19529
19529
  async function readSettings2() {
19530
19530
  try {
@@ -19548,9 +19548,9 @@ var configFilePath2, runsFilePath2, oldConfigDir2;
19548
19548
  var init_config = __esm({
19549
19549
  "packages/experience-design-system-types/dist/src/config/index.js"() {
19550
19550
  "use strict";
19551
- configFilePath2 = () => join17(configRoot2(), "config.json");
19552
- runsFilePath2 = () => join17(configRoot2(), "state", "runs.json");
19553
- oldConfigDir2 = () => join17(homedir2(), ".config", "experiences");
19551
+ configFilePath2 = () => join16(configRoot2(), "config.json");
19552
+ runsFilePath2 = () => join16(configRoot2(), "state", "runs.json");
19553
+ oldConfigDir2 = () => join16(homedir2(), ".config", "experiences");
19554
19554
  }
19555
19555
  });
19556
19556
 
@@ -19654,11 +19654,11 @@ var init_home_theme = __esm({
19654
19654
 
19655
19655
  // packages/experience-design-system-cli/src/tui/upgrade/version.ts
19656
19656
  import { readFileSync as readFileSync8 } from "node:fs";
19657
- import { join as join18 } from "node:path";
19657
+ import { join as join17 } from "node:path";
19658
19658
  import semver from "semver";
19659
19659
  function readPackageVersion() {
19660
- const root = findPackageRoot(import.meta.url, PACKAGE_NAME3);
19661
- const pkg2 = JSON.parse(readFileSync8(join18(root, "package.json"), "utf8"));
19660
+ const root = findPackageRoot(import.meta.url, PACKAGE_NAME2);
19661
+ const pkg2 = JSON.parse(readFileSync8(join17(root, "package.json"), "utf8"));
19662
19662
  return pkg2.version ?? "unknown";
19663
19663
  }
19664
19664
  function parseVersionTag(tag) {
@@ -19683,12 +19683,12 @@ async function checkForUpgrade() {
19683
19683
  return { status: "error" };
19684
19684
  }
19685
19685
  }
19686
- var PACKAGE_NAME3, TAGS_URL;
19686
+ var PACKAGE_NAME2, TAGS_URL;
19687
19687
  var init_version = __esm({
19688
19688
  "packages/experience-design-system-cli/src/tui/upgrade/version.ts"() {
19689
19689
  "use strict";
19690
19690
  init_package_root();
19691
- PACKAGE_NAME3 = "@contentful/experience-design-system-cli";
19691
+ PACKAGE_NAME2 = "@contentful/experience-design-system-cli";
19692
19692
  TAGS_URL = "https://api.github.com/repos/contentful/experience-design-system-sdk-public/tags?per_page=10";
19693
19693
  }
19694
19694
  });
@@ -20825,15 +20825,15 @@ var init_shared2 = __esm({
20825
20825
 
20826
20826
  // packages/experience-design-system-cli/src/tui/import/steps/05-token-reuse/logic.ts
20827
20827
  import { access as access5, readdir as readdir2, stat as stat4 } from "node:fs/promises";
20828
- import { join as join19 } from "node:path";
20828
+ import { join as join18 } from "node:path";
20829
20829
  async function findLatestTokens(contentfulDir) {
20830
- const candidates = [join19(contentfulDir, "tokens.json")];
20830
+ const candidates = [join18(contentfulDir, "tokens.json")];
20831
20831
  try {
20832
20832
  for (const session of await readdir2(contentfulDir, { withFileTypes: true })) {
20833
20833
  if (!session.isDirectory()) continue;
20834
- for (const run of await readdir2(join19(contentfulDir, session.name), { withFileTypes: true }).catch(() => [])) {
20834
+ for (const run of await readdir2(join18(contentfulDir, session.name), { withFileTypes: true }).catch(() => [])) {
20835
20835
  if (run.isDirectory() && /^dsi-import-\d+$/.test(run.name)) {
20836
- candidates.push(join19(contentfulDir, session.name, run.name, "tokens.json"));
20836
+ candidates.push(join18(contentfulDir, session.name, run.name, "tokens.json"));
20837
20837
  }
20838
20838
  }
20839
20839
  }
@@ -21041,15 +21041,15 @@ var init_steps = __esm({
21041
21041
  });
21042
21042
 
21043
21043
  // packages/experience-design-system-cli/src/tui/import/steps/06-extraction/find-skill-path.ts
21044
- import { existsSync as existsSync10 } from "node:fs";
21045
- import { dirname as dirname14, join as join20, resolve as resolve20 } from "node:path";
21044
+ import { existsSync as existsSync9 } from "node:fs";
21045
+ import { dirname as dirname14, join as join19, resolve as resolve20 } from "node:path";
21046
21046
  import { fileURLToPath as fileURLToPath4 } from "node:url";
21047
21047
  function findSkillPath(fileName) {
21048
21048
  const thisDir = dirname14(fileURLToPath4(import.meta.url));
21049
21049
  let dir = thisDir;
21050
21050
  for (; ; ) {
21051
- const candidate = join20(dir, "skills", fileName);
21052
- if (existsSync10(candidate)) return candidate;
21051
+ const candidate = join19(dir, "skills", fileName);
21052
+ if (existsSync9(candidate)) return candidate;
21053
21053
  const parent = resolve20(dir, "..");
21054
21054
  if (parent === dir) {
21055
21055
  throw new Error(`skill file not found (looked for skills/${fileName} from ${thisDir})`);
@@ -21161,9 +21161,9 @@ var init_selection2 = __esm({
21161
21161
 
21162
21162
  // packages/experience-design-system-cli/src/tui/import/steps/06-extraction/run.ts
21163
21163
  import { mkdir as mkdir7 } from "node:fs/promises";
21164
- import { join as join21, resolve as resolve22 } from "node:path";
21164
+ import { join as join20, resolve as resolve22 } from "node:path";
21165
21165
  async function runExtraction(input, onProgress, deps = realDeps) {
21166
- const outDir = input.outDir ?? join21(resolve22(input.projectPath), ".contentful");
21166
+ const outDir = input.outDir ?? join20(resolve22(input.projectPath), ".contentful");
21167
21167
  let progress = initialProgress({
21168
21168
  hasCredentials: input.credentials !== null,
21169
21169
  hasRawTokens: input.rawTokensPath !== "",
@@ -21258,7 +21258,7 @@ async function runExtraction(input, onProgress, deps = realDeps) {
21258
21258
  const extraction = {
21259
21259
  sessionId: extracted.sessionId,
21260
21260
  outDir,
21261
- tokensPath: tokens?.ok ? tokens.tokensPath : hasTokenSource ? join21(outDir, "tokens.json") : "",
21261
+ tokensPath: tokens?.ok ? tokens.tokensPath : hasTokenSource ? join20(outDir, "tokens.json") : "",
21262
21262
  tokenSessionId: tokens?.ok ? tokens.tokenSessionId : null,
21263
21263
  tokenCount: tokens?.ok ? tokens.tokenCount : 0,
21264
21264
  existingEntitiesPath,
@@ -24738,7 +24738,7 @@ var init_use_generation = __esm({
24738
24738
  });
24739
24739
 
24740
24740
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/build-flow-start.ts
24741
- import { join as join22 } from "node:path";
24741
+ import { join as join21 } from "node:path";
24742
24742
  function buildFlowStart(input) {
24743
24743
  const { extraction, handoff, saved, generatePromptPath } = input;
24744
24744
  const credentials = extraction.credentials ?? {
@@ -24751,7 +24751,7 @@ function buildFlowStart(input) {
24751
24751
  handoff,
24752
24752
  agent: extraction.agent,
24753
24753
  projectPath: extraction.projectPath,
24754
- outDir: extraction.projectPath ? join22(extraction.projectPath, ".contentful") : "",
24754
+ outDir: extraction.projectPath ? join21(extraction.projectPath, ".contentful") : "",
24755
24755
  rawTokensPath: extraction.rawTokensPath,
24756
24756
  credentials: {
24757
24757
  spaceId: credentials.spaceId,
@@ -30954,7 +30954,7 @@ var init_use_blinking_cursor = __esm({
30954
30954
  import { useState as useState24 } from "react";
30955
30955
  import { Box as Box37, Text as Text40 } from "ink";
30956
30956
  import { readdirSync as readdirSync3 } from "node:fs";
30957
- import { dirname as dirname15, basename as basename6, join as join23 } from "node:path";
30957
+ import { dirname as dirname15, basename as basename6, join as join22 } from "node:path";
30958
30958
  import { jsx as jsx47, jsxs as jsxs38 } from "react/jsx-runtime";
30959
30959
  function autocomplete(partial) {
30960
30960
  if (!partial) return null;
@@ -30969,13 +30969,13 @@ function autocomplete(partial) {
30969
30969
  }
30970
30970
  const matches = entries.filter((e) => e.startsWith(base));
30971
30971
  if (matches.length === 0) return null;
30972
- if (matches.length === 1) return join23(dir, matches[0]);
30972
+ if (matches.length === 1) return join22(dir, matches[0]);
30973
30973
  let prefix = matches[0];
30974
30974
  for (const m of matches) {
30975
30975
  while (!m.startsWith(prefix)) prefix = prefix.slice(0, -1);
30976
30976
  if (!prefix) break;
30977
30977
  }
30978
- return prefix.length > base.length ? join23(dir, prefix) : null;
30978
+ return prefix.length > base.length ? join22(dir, prefix) : null;
30979
30979
  }
30980
30980
  function PathPrompt({
30981
30981
  defaultPath,
@@ -32174,7 +32174,7 @@ var init_run_print_files_helpers = __esm({
32174
32174
 
32175
32175
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/save.ts
32176
32176
  import { writeFile as writeFile7 } from "node:fs/promises";
32177
- import { join as join24 } from "node:path";
32177
+ import { join as join23 } from "node:path";
32178
32178
  function buildSavedCDF(components, tokens, opts = {}) {
32179
32179
  const cdf = buildCDF2(components, toCdfTokens(tokens), opts);
32180
32180
  if (!cdf) throw new Error("nothing to save \u2014 no components or tokens resolved");
@@ -32186,7 +32186,7 @@ function buildSavedCDF(components, tokens, opts = {}) {
32186
32186
  }
32187
32187
  async function runPrintFiles(input, deps, onPatch) {
32188
32188
  onPatch({ step: "printing" });
32189
- const componentsPath = join24(input.outDir, "components.json");
32189
+ const componentsPath = join23(input.outDir, "components.json");
32190
32190
  try {
32191
32191
  const db = deps.openDb();
32192
32192
  let components = [];
@@ -32295,7 +32295,7 @@ var init_types9 = __esm({
32295
32295
  import { appendFileSync, writeFileSync } from "node:fs";
32296
32296
  import { mkdir as mkdir8 } from "node:fs/promises";
32297
32297
  import { tmpdir } from "node:os";
32298
- import { join as join25, resolve as resolve25 } from "node:path";
32298
+ import { join as join24, resolve as resolve25 } from "node:path";
32299
32299
  function appendWizardLog(entry) {
32300
32300
  appendFileSync(WIZARD_LOG, JSON.stringify({ ts: (/* @__PURE__ */ new Date()).toISOString(), ...entry }) + "\n");
32301
32301
  }
@@ -32575,7 +32575,7 @@ var init_controller = __esm({
32575
32575
  init_push();
32576
32576
  init_save();
32577
32577
  init_types9();
32578
- WIZARD_LOG = join25(tmpdir(), "experiences-import-wizard.log");
32578
+ WIZARD_LOG = join24(tmpdir(), "experiences-import-wizard.log");
32579
32579
  }
32580
32580
  });
32581
32581
 
@@ -32641,8 +32641,8 @@ __export(debug_store_exports, {
32641
32641
  startImportRun: () => startImportRun
32642
32642
  });
32643
32643
  import { mkdir as mkdir9, writeFile as writeFile8 } from "node:fs/promises";
32644
- import { existsSync as existsSync11, readdirSync as readdirSync4 } from "node:fs";
32645
- import { join as join26, resolve as resolve26 } from "node:path";
32644
+ import { existsSync as existsSync10, readdirSync as readdirSync4 } from "node:fs";
32645
+ import { join as join25, resolve as resolve26 } from "node:path";
32646
32646
  function generateRunId() {
32647
32647
  const now = /* @__PURE__ */ new Date();
32648
32648
  const pad = (n) => String(n).padStart(2, "0");
@@ -32665,7 +32665,7 @@ async function readBaseDir() {
32665
32665
  }
32666
32666
  function nextSessionId(contentfulDir) {
32667
32667
  const today = datePrefix();
32668
- const existing = existsSync11(contentfulDir) ? readdirSync4(contentfulDir) : [];
32668
+ const existing = existsSync10(contentfulDir) ? readdirSync4(contentfulDir) : [];
32669
32669
  const seqPattern = new RegExp(`^${today}-session-(\\d+)$`);
32670
32670
  const maxSeq = existing.reduce((max, entry) => {
32671
32671
  const match2 = seqPattern.exec(entry);
@@ -32674,12 +32674,12 @@ function nextSessionId(contentfulDir) {
32674
32674
  return `${today}-session-${maxSeq + 1}`;
32675
32675
  }
32676
32676
  function startSession(base, { replace }) {
32677
- const contentfulDir = join26(base, ".contentful");
32678
- if (replace || !sessionDir) sessionDir = join26(contentfulDir, nextSessionId(contentfulDir));
32677
+ const contentfulDir = join25(base, ".contentful");
32678
+ if (replace || !sessionDir) sessionDir = join25(contentfulDir, nextSessionId(contentfulDir));
32679
32679
  return sessionDir;
32680
32680
  }
32681
32681
  function currentDebugSessionDir() {
32682
- return sessionDir && join26(sessionDir, "debug");
32682
+ return sessionDir && join25(sessionDir, "debug");
32683
32683
  }
32684
32684
  function currentSessionDir() {
32685
32685
  return sessionDir;
@@ -32687,21 +32687,21 @@ function currentSessionDir() {
32687
32687
  async function startDebugSessionIn(base, { replace = false } = {}) {
32688
32688
  try {
32689
32689
  if (!await isDebugModeEnabled()) return;
32690
- await mkdir9(join26(startSession(resolve26(base), { replace }), "debug"), { recursive: true });
32690
+ await mkdir9(join25(startSession(resolve26(base), { replace }), "debug"), { recursive: true });
32691
32691
  } catch {
32692
32692
  }
32693
32693
  }
32694
32694
  function nextImportRunDir(session) {
32695
- const existing = existsSync11(session) ? readdirSync4(session) : [];
32695
+ const existing = existsSync10(session) ? readdirSync4(session) : [];
32696
32696
  const maxRun = existing.reduce((max, entry) => {
32697
32697
  const match2 = /^dsi-import-(\d+)$/.exec(entry);
32698
32698
  return match2 ? Math.max(max, Number(match2[1])) : max;
32699
32699
  }, 0);
32700
- return join26(session, `dsi-import-${maxRun + 1}`);
32700
+ return join25(session, `dsi-import-${maxRun + 1}`);
32701
32701
  }
32702
32702
  async function startImportRun(projectPath) {
32703
32703
  await startDebugSessionIn(projectPath);
32704
- if (!sessionDir) return join26(resolve26(projectPath), ".contentful");
32704
+ if (!sessionDir) return join25(resolve26(projectPath), ".contentful");
32705
32705
  const dir = nextImportRunDir(sessionDir);
32706
32706
  await mkdir9(dir, { recursive: true });
32707
32707
  return dir;
@@ -32748,15 +32748,15 @@ async function finishDebugRun({
32748
32748
  const root = currentDebugSessionDir();
32749
32749
  if (!root) return;
32750
32750
  const flowSegments = run.flow.split("/");
32751
- const dir = join26(root, ...flowSegments);
32751
+ const dir = join25(root, ...flowSegments);
32752
32752
  await mkdir9(dir, { recursive: true });
32753
32753
  const filename = nextAttemptFilename(dir, run.menuOption);
32754
- await writeFile8(join26(dir, filename), content, { mode: 384 });
32754
+ await writeFile8(join25(dir, filename), content, { mode: 384 });
32755
32755
  }
32756
32756
  function nextAttemptFilename(dir, menuOption) {
32757
32757
  const today = datePrefix();
32758
32758
  const optionSlug = slugify(menuOption);
32759
- const existing = existsSync11(dir) ? readdirSync4(dir) : [];
32759
+ const existing = existsSync10(dir) ? readdirSync4(dir) : [];
32760
32760
  const attemptPattern = new RegExp(`^${today}-${optionSlug}-attempt-(\\d+)\\.md$`);
32761
32761
  const maxAttempt = existing.reduce((max, entry) => {
32762
32762
  const match2 = attemptPattern.exec(entry);
@@ -32804,7 +32804,7 @@ var init_debug_store = __esm({
32804
32804
  init_debug_mode_store();
32805
32805
  void Promise.all([isDebugModeEnabled(), readBaseDir()]).then(([enabled, base]) => {
32806
32806
  if (!enabled || !base) return void 0;
32807
- return mkdir9(join26(startSession(base, { replace: false }), "debug"), { recursive: true });
32807
+ return mkdir9(join25(startSession(base, { replace: false }), "debug"), { recursive: true });
32808
32808
  });
32809
32809
  process.once("uncaughtException", (err) => {
32810
32810
  void handleCrash().finally(() => {
@@ -33418,7 +33418,7 @@ var app_exports = {};
33418
33418
  __export(app_exports, {
33419
33419
  runApp: () => runApp
33420
33420
  });
33421
- import { join as join27 } from "node:path";
33421
+ import { join as join26 } from "node:path";
33422
33422
  import { useEffect as useEffect26, useState as useState33 } from "react";
33423
33423
  import { Fragment as Fragment19, jsx as jsx59 } from "react/jsx-runtime";
33424
33424
  function App({ importOptions, inkClear }) {
@@ -33469,7 +33469,7 @@ function App({ importOptions, inkClear }) {
33469
33469
  const launch = { projectPath: projectPath2, tokens, filePaths, ...importOptions };
33470
33470
  const state2 = await inspectTokens({
33471
33471
  rawTokensPath: tokens,
33472
- contentfulDir: join27(resolveUserPath(projectPath2), ".contentful"),
33472
+ contentfulDir: join26(resolveUserPath(projectPath2), ".contentful"),
33473
33473
  cache: importOptions.cache
33474
33474
  });
33475
33475
  if (state2.kind === "cached") {
@@ -33743,85 +33743,9 @@ var init_app = __esm({
33743
33743
  // packages/experience-design-system-cli/program.ts
33744
33744
  init_src4();
33745
33745
  import { readFileSync as readFileSync9 } from "node:fs";
33746
- import { join as join28 } from "node:path";
33746
+ import { join as join27 } from "node:path";
33747
33747
  import { Command } from "commander";
33748
33748
 
33749
- // packages/experience-design-system-cli/src/legacy/run-legacy.ts
33750
- import { spawn as spawn3 } from "node:child_process";
33751
-
33752
- // packages/experience-design-system-cli/src/legacy/legacy-cli-path.ts
33753
- init_package_root();
33754
- import { existsSync as existsSync8 } from "node:fs";
33755
- import { join as join15 } from "node:path";
33756
- var PACKAGE_NAME = "@contentful/experience-design-system-cli";
33757
- function findLegacyCliPath() {
33758
- const root = findPackageRoot(import.meta.url, PACKAGE_NAME);
33759
- const candidates = [
33760
- join15(root, "legacy", "bin", "cli.js"),
33761
- join15(root, "..", "experience-design-system-cli-legacy", "bin", "cli.js")
33762
- ];
33763
- const found = candidates.find((candidate) => existsSync8(candidate));
33764
- if (!found) {
33765
- throw new Error(`Legacy CLI not found. Looked in:
33766
- ${candidates.join("\n")}`);
33767
- }
33768
- return found;
33769
- }
33770
-
33771
- // packages/experience-design-system-cli/src/legacy/run-legacy.ts
33772
- function runLegacy(args) {
33773
- return new Promise((resolvePromise) => {
33774
- let cliPath;
33775
- try {
33776
- cliPath = findLegacyCliPath();
33777
- } catch (err) {
33778
- process.stderr.write(`${err instanceof Error ? err.message : String(err)}
33779
- `);
33780
- resolvePromise(1);
33781
- return;
33782
- }
33783
- const child = spawn3("node", [cliPath, ...args], { stdio: "inherit" });
33784
- child.on("close", (code) => resolvePromise(code ?? 1));
33785
- child.on("error", (err) => {
33786
- process.stderr.write(`${err.message}
33787
- `);
33788
- resolvePromise(1);
33789
- });
33790
- });
33791
- }
33792
-
33793
- // packages/experience-design-system-cli/src/commands/forwarded.ts
33794
- var FORWARDED_COMMANDS = [
33795
- {
33796
- name: "apply",
33797
- description: "Apply a CDF file of components and design tokens to Contentful"
33798
- },
33799
- {
33800
- name: "setup",
33801
- description: "Configure prerequisites, credentials and the coding agent"
33802
- },
33803
- { name: "doctor", description: "Check prerequisites and configuration" },
33804
- { name: "print", hidden: true },
33805
- { name: "map", hidden: true },
33806
- { name: "__extract", hidden: true },
33807
- { name: "__generate", hidden: true }
33808
- ];
33809
- function registerForwardedCommands(program) {
33810
- for (const entry of FORWARDED_COMMANDS) {
33811
- const hidden = "hidden" in entry;
33812
- const command = program.command(entry.name, { hidden });
33813
- if (!hidden) command.description(entry.description);
33814
- command.allowUnknownOption().allowExcessArguments().helpOption(false).argument("[args...]").action(async () => {
33815
- process.exit(await runLegacy(process.argv.slice(2)));
33816
- });
33817
- }
33818
- }
33819
-
33820
- // packages/experience-design-system-cli/src/legacy/forwarded-import-args.ts
33821
- function forwardedImportArgs(argv) {
33822
- return argv[0] === "import" ? argv.slice(1) : argv;
33823
- }
33824
-
33825
33749
  // packages/experience-design-system-cli/src/commands/import-options.ts
33826
33750
  function toImportOptions(raw) {
33827
33751
  return {
@@ -33833,22 +33757,22 @@ function toImportOptions(raw) {
33833
33757
 
33834
33758
  // packages/experience-design-system-cli/src/commands/watch.ts
33835
33759
  init_package_root();
33836
- import { spawn as spawn4 } from "node:child_process";
33837
- import { existsSync as existsSync9 } from "node:fs";
33838
- import { join as join16 } from "node:path";
33839
- var PACKAGE_NAME2 = "@contentful/experience-design-system-cli";
33760
+ import { spawn as spawn3 } from "node:child_process";
33761
+ import { existsSync as existsSync8 } from "node:fs";
33762
+ import { join as join15 } from "node:path";
33763
+ var PACKAGE_NAME = "@contentful/experience-design-system-cli";
33840
33764
  function extractWatchFlag(args) {
33841
33765
  const rest = args.filter((arg) => arg !== "--watch");
33842
33766
  return { watch: rest.length !== args.length, rest };
33843
33767
  }
33844
33768
  function runDevWatch(args) {
33845
- const script = join16(findPackageRoot(import.meta.url, PACKAGE_NAME2), "scripts", "dev.mjs");
33846
- if (!existsSync9(script)) {
33769
+ const script = join15(findPackageRoot(import.meta.url, PACKAGE_NAME), "scripts", "dev.mjs");
33770
+ if (!existsSync8(script)) {
33847
33771
  process.stderr.write("--watch only works from a checkout of the repo (scripts/dev.mjs is not in the package).\n");
33848
33772
  return Promise.resolve(1);
33849
33773
  }
33850
33774
  return new Promise((resolve27) => {
33851
- const child = spawn4(process.execPath, [script, ...args], { stdio: "inherit" });
33775
+ const child = spawn3(process.execPath, [script, ...args], { stdio: "inherit" });
33852
33776
  process.on("SIGINT", () => void 0);
33853
33777
  child.on("exit", (code) => resolve27(code ?? 0));
33854
33778
  child.on("error", (err) => {
@@ -33860,6 +33784,9 @@ function runDevWatch(args) {
33860
33784
  }
33861
33785
 
33862
33786
  // packages/experience-design-system-cli/src/commands/import.ts
33787
+ function stripImportArg(argv) {
33788
+ return argv[0] === "import" ? argv.slice(1) : argv;
33789
+ }
33863
33790
  function registerImportCommand(program, openTui) {
33864
33791
  program.command("import", { isDefault: true }).description("Launch the Experiences CLI").allowUnknownOption().allowExcessArguments().helpOption(false).argument("[args...]").option("--agent <name>", "Agent (or agent:model) the import runs its steps with").option(
33865
33792
  "--prompt <stage=value>",
@@ -33867,7 +33794,7 @@ function registerImportCommand(program, openTui) {
33867
33794
  (value, previous) => [...previous, value],
33868
33795
  []
33869
33796
  ).option("--no-cache", "Re-run every step even if its output already exists").action(async (_args, raw) => {
33870
- const { watch, rest: forwarded } = extractWatchFlag(forwardedImportArgs(process.argv.slice(2)));
33797
+ const { watch, rest: forwarded } = extractWatchFlag(stripImportArg(process.argv.slice(2)));
33871
33798
  if (watch) {
33872
33799
  process.exit(await runDevWatch(forwarded));
33873
33800
  }
@@ -33880,7 +33807,7 @@ init_analytics_store();
33880
33807
  init_package_root();
33881
33808
  var pkg = JSON.parse(
33882
33809
  readFileSync9(
33883
- join28(findPackageRoot(import.meta.url, "@contentful/experience-design-system-cli"), "package.json"),
33810
+ join27(findPackageRoot(import.meta.url, "@contentful/experience-design-system-cli"), "package.json"),
33884
33811
  "utf8"
33885
33812
  )
33886
33813
  );
@@ -33891,7 +33818,6 @@ function createProgram() {
33891
33818
  const { runApp: runApp2 } = await Promise.resolve().then(() => (init_app(), app_exports));
33892
33819
  await runApp2(render, options);
33893
33820
  });
33894
- registerForwardedCommands(program);
33895
33821
  program.hook("preAction", async (_thisCommand, actionCommand) => {
33896
33822
  const chain = [];
33897
33823
  for (let c2 = actionCommand; c2 && c2.parent; c2 = c2.parent) chain.unshift(c2.name());
@@ -33919,10 +33845,10 @@ function createProgram() {
33919
33845
  // packages/experience-design-system-cli/src/config/migrate.ts
33920
33846
  init_config();
33921
33847
  init_package_root();
33922
- import { existsSync as existsSync12 } from "node:fs";
33848
+ import { existsSync as existsSync11 } from "node:fs";
33923
33849
  import { mkdir as mkdir10, readFile as readFile19, rename as rename3, rmdir, unlink } from "node:fs/promises";
33924
- import { dirname as dirname16, join as join29 } from "node:path";
33925
- var PACKAGE_NAME4 = "@contentful/experience-design-system-cli";
33850
+ import { dirname as dirname16, join as join28 } from "node:path";
33851
+ var PACKAGE_NAME3 = "@contentful/experience-design-system-cli";
33926
33852
  async function readJson(path5) {
33927
33853
  try {
33928
33854
  return JSON.parse(await readFile19(path5, "utf8"));
@@ -33932,10 +33858,10 @@ async function readJson(path5) {
33932
33858
  }
33933
33859
  async function migrateOldConfig() {
33934
33860
  try {
33935
- const oldCredentials = join29(oldConfigDir2(), "credentials.json");
33936
- const oldRuns = join29(oldConfigDir2(), "runs.json");
33937
- const oldDebugMode = join29(
33938
- findPackageRoot(import.meta.url, PACKAGE_NAME4),
33861
+ const oldCredentials = join28(oldConfigDir2(), "credentials.json");
33862
+ const oldRuns = join28(oldConfigDir2(), "runs.json");
33863
+ const oldDebugMode = join28(
33864
+ findPackageRoot(import.meta.url, PACKAGE_NAME3),
33939
33865
  ".contentful",
33940
33866
  "config",
33941
33867
  "debug_mode.json"
@@ -33945,8 +33871,8 @@ async function migrateOldConfig() {
33945
33871
  if (debugMode) migrated["debugMode"] = debugMode;
33946
33872
  Object.assign(migrated, await readJson(oldCredentials));
33947
33873
  if (Object.keys(migrated).length > 0) await updateSettings2({ ...migrated, ...await readSettings2() });
33948
- if (existsSync12(oldRuns)) {
33949
- if (!existsSync12(runsFilePath2())) {
33874
+ if (existsSync11(oldRuns)) {
33875
+ if (!existsSync11(runsFilePath2())) {
33950
33876
  await mkdir10(dirname16(runsFilePath2()), { recursive: true });
33951
33877
  await rename3(oldRuns, runsFilePath2());
33952
33878
  } else {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-ef8b693f.0",
3
+ "version": "2.37.1-dev-build-7314a760.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-ef8b693f.0",
3
+ "version": "2.37.1-dev-build-7314a760.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,8 +45,8 @@
45
45
  "ts-morph": "^27.0.2",
46
46
  "typescript": "^5.9.3",
47
47
  "zod": "^4.6.5",
48
- "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-ef8b693f.0",
49
- "@contentful/experience-design-system-types": "2.37.1-dev-build-ef8b693f.0"
48
+ "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-7314a760.0",
49
+ "@contentful/experience-design-system-types": "2.37.1-dev-build-7314a760.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tsconfig/node24": "^24.0.4",
@@ -1,2 +0,0 @@
1
- import type { Command } from 'commander';
2
- export declare function registerForwardedCommands(program: Command): void;
@@ -1 +0,0 @@
1
- export declare function forwardedImportArgs(argv: string[]): string[];
@@ -1 +0,0 @@
1
- export declare function findLegacyCliPath(): string;
@@ -1 +0,0 @@
1
- export declare function runLegacy(args: string[]): Promise<number>;
package/legacy/bin/cli.js DELETED
@@ -1,58 +0,0 @@
1
- #!/usr/bin/env node
2
- // Suppress the SQLite ExperimentalWarning before any modules load.
3
- // Must use dynamic import so this handler registers before sqlite is imported.
4
- process.removeAllListeners("warning");
5
- process.on("warning", (w) => {
6
- if (w.name === "ExperimentalWarning" && w.message.includes("SQLite")) return;
7
- process.stderr.write(`${w.name}: ${w.message}\n`);
8
- });
9
-
10
- // Auto-rebuild when running from source (dev mode only).
11
- // Skipped when src/ doesn't exist (e.g. npm-installed users).
12
- import { existsSync, statSync, readdirSync } from "node:fs";
13
- import { execFileSync } from "node:child_process";
14
- import { fileURLToPath } from "node:url";
15
- import { dirname, resolve, join } from "node:path";
16
-
17
- function newestMtime(dir, depth = 0) {
18
- if (depth > 10) return 0;
19
- let max = 0;
20
- for (const entry of readdirSync(dir, { withFileTypes: true })) {
21
- if (entry.isSymbolicLink()) continue;
22
- const full = join(dir, entry.name);
23
- if (entry.isDirectory()) {
24
- max = Math.max(max, newestMtime(full, depth + 1));
25
- } else if (entry.name.endsWith(".ts") || entry.name.endsWith(".tsx")) {
26
- max = Math.max(max, statSync(full).mtimeMs);
27
- }
28
- }
29
- return max;
30
- }
31
-
32
- const __dirname = dirname(fileURLToPath(import.meta.url));
33
- const pkgRoot = resolve(__dirname, "..");
34
- const srcDir = join(pkgRoot, "src");
35
- const distEntry = join(pkgRoot, "dist", "src", "index.js");
36
-
37
- if (
38
- existsSync(srcDir) &&
39
- existsSync(distEntry) &&
40
- process.env.NODE_ENV !== "test"
41
- ) {
42
- const distMtime = statSync(distEntry).mtimeMs;
43
- if (newestMtime(srcDir) > distMtime) {
44
- process.stderr.write("⚙ Source changed — rebuilding...\n");
45
- const tsc = join(pkgRoot, "node_modules", ".bin", "tsc");
46
- try {
47
- execFileSync(tsc, ["-p", join(pkgRoot, "tsconfig.build.json")], {
48
- stdio: ["ignore", "ignore", "inherit"],
49
- cwd: pkgRoot,
50
- });
51
- process.stderr.write("✓ Build complete\n");
52
- } catch {
53
- process.stderr.write("✗ Build failed — running with existing dist\n");
54
- }
55
- }
56
- }
57
-
58
- await import("../dist/src/index.js");
@@ -1,76 +0,0 @@
1
- {
2
- "name": "@contentful/experience-design-system-cli-legacy",
3
- "version": "2.35.0",
4
- "description": "Legacy Contentful Experiences import CLI (internal, not published; used by @contentful/experience-design-system-cli)",
5
- "license": "MIT",
6
- "private": true,
7
- "type": "module",
8
- "main": "./dist/src/index.js",
9
- "types": "./dist/src/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/src/index.d.ts",
13
- "import": "./dist/src/index.js",
14
- "node": "./dist/src/index.js"
15
- }
16
- },
17
- "files": [
18
- "bin/",
19
- "dist/",
20
- "prompts/",
21
- "skills/"
22
- ],
23
- "scripts": {
24
- "build": "nx build experience-design-system-cli-legacy",
25
- "typecheck": "nx typecheck experience-design-system-cli-legacy",
26
- "clean": "nx clean experience-design-system-cli-legacy",
27
- "test": "nx test experience-design-system-cli-legacy",
28
- "test:watch": "nx test:watch experience-design-system-cli-legacy",
29
- "lint": "nx lint experience-design-system-cli-legacy",
30
- "lint:fix": "nx lint:fix experience-design-system-cli-legacy"
31
- },
32
- "dependencies": {
33
- "@contentful/experience-design-system-backend-pipeline": "workspace:*",
34
- "@contentful/experience-design-system-types": "workspace:*",
35
- "@inkjs/ui": "^2.0.0",
36
- "@segment/analytics-node": "^3.0.0",
37
- "@vue/compiler-sfc": "^3.5.31",
38
- "ajv": "^8.17.1",
39
- "commander": "^13.1.0",
40
- "contentful-management": "^12.17.0",
41
- "figures": "6.1.0",
42
- "ink": "^5.2.1",
43
- "react": "^18.3.1",
44
- "react-devtools-core": "^4.19.1",
45
- "svelte": "^5.56.4",
46
- "ts-morph": "^27.0.2",
47
- "typescript": "^5.9.3",
48
- "zod": "^4.3.6"
49
- },
50
- "devDependencies": {
51
- "@contentful/experience-design-system-client": "workspace:*",
52
- "@contentful/experience-design-system-extraction": "workspace:*",
53
- "@contentful/experience-design-system-generation": "workspace:*",
54
- "@tsconfig/node24": "^24.0.4",
55
- "@types/node": "^24.0.3",
56
- "@types/react": "^18.3.24",
57
- "eslint": "^9.39.5",
58
- "eslint-config-prettier": "^10.1.8",
59
- "eslint-plugin-prettier": "^5.5.6",
60
- "ink-testing-library": "^4.0.0",
61
- "typescript-eslint": "^8.67.0",
62
- "vitest": "^4.0.16"
63
- },
64
- "repository": {
65
- "type": "git",
66
- "url": "git+https://github.com/contentful/experience-design-system-sdk-public.git",
67
- "directory": "packages/experience-design-system-cli-legacy"
68
- },
69
- "homepage": "https://github.com/contentful/experience-design-system-sdk-public#readme",
70
- "bugs": {
71
- "url": "https://github.com/contentful/experience-design-system-sdk-public/issues"
72
- },
73
- "engines": {
74
- "node": ">=24"
75
- }
76
- }