@contentful/experience-design-system-cli 2.37.1-dev-build-af058351.0 → 2.37.1-dev-build-eca14dd7.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/app.js CHANGED
@@ -2018,7 +2018,7 @@ var init_cache_keys = __esm({
2018
2018
 
2019
2019
  // packages/experience-design-system-cli/app.tsx
2020
2020
  import { join as join25 } from "node:path";
2021
- import { useEffect as useEffect27, useState as useState33 } from "react";
2021
+ import { useEffect as useEffect26, useState as useState33 } from "react";
2022
2022
 
2023
2023
  // packages/experience-design-system-cli/src/tui/home/home.tsx
2024
2024
  import { useEffect as useEffect2, useState as useState2 } from "react";
@@ -20489,7 +20489,6 @@ async function runGeneration(input, onProgress, deps = realDeps3) {
20489
20489
  }
20490
20490
  }
20491
20491
  update({ mapTokens: "complete" });
20492
- await new Promise((r) => setImmediate(r));
20493
20492
  const generatedCount = generated.results.filter((r) => !r.failed).length;
20494
20493
  return {
20495
20494
  ok: true,
@@ -20584,7 +20583,6 @@ function buildFlowStart(input) {
20584
20583
  }
20585
20584
 
20586
20585
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/screen.tsx
20587
- import { useEffect as useEffect20, useRef as useRef12 } from "react";
20588
20586
  import { Box as Box41 } from "ink";
20589
20587
 
20590
20588
  // packages/experience-design-system-types/dist/src/cdf/validate.js
@@ -26989,13 +26987,6 @@ function FlowScreen({
26989
26987
  }) {
26990
26988
  const totalSteps = totalStepsFor(state);
26991
26989
  const quit = () => onExit(0);
26992
- const previousStep = useRef12(state.step);
26993
- useEffect20(() => {
26994
- if (previousStep.current !== state.step) {
26995
- process.stdout.write("\x1B[2J\x1B[H");
26996
- previousStep.current = state.step;
26997
- }
26998
- }, [state.step]);
26999
26990
  const content = (() => {
27000
26991
  switch (state.step) {
27001
26992
  case "final-review":
@@ -27121,7 +27112,7 @@ function FlowScreen({
27121
27112
  }
27122
27113
 
27123
27114
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/use-flow.ts
27124
- import { useEffect as useEffect21, useRef as useRef13, useSyncExternalStore } from "react";
27115
+ import { useEffect as useEffect20, useRef as useRef12, useSyncExternalStore } from "react";
27125
27116
 
27126
27117
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/controller.ts
27127
27118
  import { appendFileSync, writeFileSync } from "node:fs";
@@ -27849,7 +27840,7 @@ function createFlowController(start, deps) {
27849
27840
 
27850
27841
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/use-flow.ts
27851
27842
  function useFlow(start, deps = realFlowDeps) {
27852
- const controller = useRef13();
27843
+ const controller = useRef12();
27853
27844
  if (start && !controller.current) {
27854
27845
  try {
27855
27846
  startWizardLog();
@@ -27862,14 +27853,14 @@ function useFlow(start, deps = realFlowDeps) {
27862
27853
  (listener) => current?.subscribe(listener) ?? (() => void 0),
27863
27854
  () => current?.getState()
27864
27855
  );
27865
- useEffect21(() => {
27856
+ useEffect20(() => {
27866
27857
  if (!start) controller.current = void 0;
27867
27858
  }, [start]);
27868
27859
  return current && state ? { controller: current, state } : void 0;
27869
27860
  }
27870
27861
 
27871
27862
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
27872
- import { useEffect as useEffect22, useState as useState27 } from "react";
27863
+ import { useEffect as useEffect21, useState as useState27 } from "react";
27873
27864
  import { Box as Box42, Text as Text44, useInput as useInput9 } from "ink";
27874
27865
 
27875
27866
  // packages/experience-design-system-cli/src/tui/debug-store.ts
@@ -28063,7 +28054,7 @@ function Section({ title, rows }) {
28063
28054
  }
28064
28055
  function HelpScreen({ onDone }) {
28065
28056
  const [info, setInfo] = useState27();
28066
- useEffect22(() => {
28057
+ useEffect21(() => {
28067
28058
  startDebugRun({ flow: "help", step: "01-help", menuOption: "Help", inputs: {} });
28068
28059
  void readHelpInfo().then(setInfo);
28069
28060
  }, []);
@@ -28156,7 +28147,7 @@ function SettingsScreen({
28156
28147
  }
28157
28148
 
28158
28149
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
28159
- import { useEffect as useEffect23, useState as useState29 } from "react";
28150
+ import { useEffect as useEffect22, useState as useState29 } from "react";
28160
28151
  import { Box as Box44, Text as Text46, useInput as useInput11 } from "ink";
28161
28152
  import TextInput4 from "ink-text-input";
28162
28153
 
@@ -28224,7 +28215,7 @@ function ConfigurationScreen({ onDone }) {
28224
28215
  const [lastSaved, setLastSaved] = useState29(null);
28225
28216
  const [editing, setEditing] = useState29(false);
28226
28217
  const [valueBeforeEdit, setValueBeforeEdit] = useState29("");
28227
- useEffect23(() => {
28218
+ useEffect22(() => {
28228
28219
  readCredentials().then((cfg) => {
28229
28220
  setConfig(cfg);
28230
28221
  setStage("form");
@@ -28361,7 +28352,7 @@ function ConfigurationScreen({ onDone }) {
28361
28352
  }
28362
28353
 
28363
28354
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
28364
- import { useEffect as useEffect24, useState as useState30 } from "react";
28355
+ import { useEffect as useEffect23, useState as useState30 } from "react";
28365
28356
  import { Box as Box45, Text as Text47, useInput as useInput12 } from "ink";
28366
28357
 
28367
28358
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/analytics-store.ts
@@ -28384,7 +28375,7 @@ import { Fragment as Fragment18, jsx as jsx56, jsxs as jsxs46 } from "react/jsx-
28384
28375
  function OptInAnalyticsScreen({ onDone }) {
28385
28376
  const [loading, setLoading] = useState30(true);
28386
28377
  const [enabled, setEnabled] = useState30(true);
28387
- useEffect24(() => {
28378
+ useEffect23(() => {
28388
28379
  readAnalyticsSetting().then((setting) => {
28389
28380
  setEnabled(setting.enabled);
28390
28381
  setLoading(false);
@@ -28438,13 +28429,13 @@ function OptInAnalyticsScreen({ onDone }) {
28438
28429
  }
28439
28430
 
28440
28431
  // packages/experience-design-system-cli/src/tui/upgrade/PageContainer.tsx
28441
- import { useEffect as useEffect25, useState as useState31 } from "react";
28432
+ import { useEffect as useEffect24, useState as useState31 } from "react";
28442
28433
  import { Box as Box46, Text as Text48, useInput as useInput13 } from "ink";
28443
28434
  import { jsx as jsx57, jsxs as jsxs47 } from "react/jsx-runtime";
28444
28435
  var UPGRADE_COMMANDS = ["git pull", "pnpm install", "pnpm build"];
28445
28436
  function UpgradeScreen({ onDone }) {
28446
28437
  const [upgradeCheck, setUpgradeCheck] = useState31();
28447
- useEffect25(() => {
28438
+ useEffect24(() => {
28448
28439
  startDebugRun({
28449
28440
  flow: "upgrade",
28450
28441
  step: "01-upgrade",
@@ -28509,13 +28500,13 @@ function renderBody(upgradeCheck) {
28509
28500
  }
28510
28501
 
28511
28502
  // packages/experience-design-system-cli/src/tui/settings/debug-mode/screen.tsx
28512
- import { useEffect as useEffect26, useState as useState32 } from "react";
28503
+ import { useEffect as useEffect25, useState as useState32 } from "react";
28513
28504
  import { Box as Box47, Text as Text49, useInput as useInput14 } from "ink";
28514
28505
  import { jsx as jsx58, jsxs as jsxs48 } from "react/jsx-runtime";
28515
28506
  function DebugModeScreen({ onDone }) {
28516
28507
  const [loading, setLoading] = useState32(true);
28517
28508
  const [enabled, setEnabled] = useState32(true);
28518
- useEffect26(() => {
28509
+ useEffect25(() => {
28519
28510
  readDebugModeSetting().then((setting) => {
28520
28511
  setEnabled(setting.enabled);
28521
28512
  setLoading(false);
@@ -28595,7 +28586,7 @@ function App({ importOptions }) {
28595
28586
  const [flowStart, setFlowStart] = useState33();
28596
28587
  const flow = useFlow(flowStart);
28597
28588
  const [importDefaults, setImportDefaults] = useState33();
28598
- useEffect27(() => {
28589
+ useEffect26(() => {
28599
28590
  if (screen !== "import") {
28600
28591
  setImportDefaults(void 0);
28601
28592
  return;
@@ -28653,12 +28644,12 @@ function App({ importOptions }) {
28653
28644
  }
28654
28645
  });
28655
28646
  };
28656
- useEffect27(() => {
28647
+ useEffect26(() => {
28657
28648
  if (!extractionRun || extraction?.status !== "done" || !extraction.result.ok) return;
28658
28649
  setExtractionRun(void 0);
28659
28650
  setScopeRun({ ...extractionRun, extraction: extraction.result.extraction });
28660
28651
  }, [extraction, extractionRun]);
28661
- useEffect27(() => {
28652
+ useEffect26(() => {
28662
28653
  if (!scopeRun || scopeFlow?.status !== "confirmed" || generationInput) return;
28663
28654
  const { extraction: produced, input, generatePromptPath } = scopeRun;
28664
28655
  setGenerationInput({
@@ -28676,7 +28667,7 @@ function App({ importOptions }) {
28676
28667
  ...generatePromptPath ? { generatePromptPath } : {}
28677
28668
  });
28678
28669
  }, [scopeFlow, scopeRun, generationInput]);
28679
- useEffect27(() => {
28670
+ useEffect26(() => {
28680
28671
  if (!scopeRun || generation?.status !== "done" || !generation.result.ok) return;
28681
28672
  const { credentialsSkipped, tokenStrategy, extraction: produced, input, generatePromptPath } = scopeRun;
28682
28673
  setScopeRun(void 0);
package/dist/index.js CHANGED
@@ -24106,7 +24106,6 @@ async function runGeneration(input, onProgress, deps = realDeps3) {
24106
24106
  }
24107
24107
  }
24108
24108
  update({ mapTokens: "complete" });
24109
- await new Promise((r) => setImmediate(r));
24110
24109
  const generatedCount = generated.results.filter((r) => !r.failed).length;
24111
24110
  return {
24112
24111
  ok: true,
@@ -31134,7 +31133,6 @@ var init_run_teaser = __esm({
31134
31133
  });
31135
31134
 
31136
31135
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/screen.tsx
31137
- import { useEffect as useEffect20, useRef as useRef12 } from "react";
31138
31136
  import { Box as Box41 } from "ink";
31139
31137
  import { jsx as jsx52, jsxs as jsxs42 } from "react/jsx-runtime";
31140
31138
  function totalStepsFor(state) {
@@ -31154,13 +31152,6 @@ function FlowScreen({
31154
31152
  }) {
31155
31153
  const totalSteps = totalStepsFor(state);
31156
31154
  const quit = () => onExit(0);
31157
- const previousStep = useRef12(state.step);
31158
- useEffect20(() => {
31159
- if (previousStep.current !== state.step) {
31160
- process.stdout.write("\x1B[2J\x1B[H");
31161
- previousStep.current = state.step;
31162
- }
31163
- }, [state.step]);
31164
31155
  const content = (() => {
31165
31156
  switch (state.step) {
31166
31157
  case "final-review":
@@ -32080,9 +32071,9 @@ var init_controller = __esm({
32080
32071
  });
32081
32072
 
32082
32073
  // packages/experience-design-system-cli/src/tui/import/steps/10-flow/flow/use-flow.ts
32083
- import { useEffect as useEffect21, useRef as useRef13, useSyncExternalStore } from "react";
32074
+ import { useEffect as useEffect20, useRef as useRef12, useSyncExternalStore } from "react";
32084
32075
  function useFlow(start, deps = realFlowDeps) {
32085
- const controller = useRef13();
32076
+ const controller = useRef12();
32086
32077
  if (start && !controller.current) {
32087
32078
  try {
32088
32079
  startWizardLog();
@@ -32095,7 +32086,7 @@ function useFlow(start, deps = realFlowDeps) {
32095
32086
  (listener) => current?.subscribe(listener) ?? (() => void 0),
32096
32087
  () => current?.getState()
32097
32088
  );
32098
- useEffect21(() => {
32089
+ useEffect20(() => {
32099
32090
  if (!start) controller.current = void 0;
32100
32091
  }, [start]);
32101
32092
  return current && state ? { controller: current, state } : void 0;
@@ -32308,7 +32299,7 @@ var init_help_info = __esm({
32308
32299
  });
32309
32300
 
32310
32301
  // packages/experience-design-system-cli/src/tui/help/PageContainer.tsx
32311
- import { useEffect as useEffect22, useState as useState27 } from "react";
32302
+ import { useEffect as useEffect21, useState as useState27 } from "react";
32312
32303
  import { Box as Box42, Text as Text44, useInput as useInput9 } from "ink";
32313
32304
  import { Fragment as Fragment16, jsx as jsx53, jsxs as jsxs43 } from "react/jsx-runtime";
32314
32305
  function Section({ title, rows }) {
@@ -32322,7 +32313,7 @@ function Section({ title, rows }) {
32322
32313
  }
32323
32314
  function HelpScreen({ onDone }) {
32324
32315
  const [info, setInfo] = useState27();
32325
- useEffect22(() => {
32316
+ useEffect21(() => {
32326
32317
  startDebugRun({ flow: "help", step: "01-help", menuOption: "Help", inputs: {} });
32327
32318
  void readHelpInfo().then(setInfo);
32328
32319
  }, []);
@@ -32471,7 +32462,7 @@ var init_config_store = __esm({
32471
32462
  });
32472
32463
 
32473
32464
  // packages/experience-design-system-cli/src/tui/settings/contentful-configuration/ContentfulConfigScreen.tsx
32474
- import { useEffect as useEffect23, useState as useState29 } from "react";
32465
+ import { useEffect as useEffect22, useState as useState29 } from "react";
32475
32466
  import { Box as Box44, Text as Text46, useInput as useInput11 } from "ink";
32476
32467
  import TextInput4 from "ink-text-input";
32477
32468
  import { Fragment as Fragment17, jsx as jsx55, jsxs as jsxs45 } from "react/jsx-runtime";
@@ -32493,7 +32484,7 @@ function ConfigurationScreen({ onDone }) {
32493
32484
  const [lastSaved, setLastSaved] = useState29(null);
32494
32485
  const [editing, setEditing] = useState29(false);
32495
32486
  const [valueBeforeEdit, setValueBeforeEdit] = useState29("");
32496
- useEffect23(() => {
32487
+ useEffect22(() => {
32497
32488
  readCredentials().then((cfg) => {
32498
32489
  setConfig(cfg);
32499
32490
  setStage("form");
@@ -32677,13 +32668,13 @@ var init_analytics_store = __esm({
32677
32668
  });
32678
32669
 
32679
32670
  // packages/experience-design-system-cli/src/tui/settings/opt-in-analytics/screen.tsx
32680
- import { useEffect as useEffect24, useState as useState30 } from "react";
32671
+ import { useEffect as useEffect23, useState as useState30 } from "react";
32681
32672
  import { Box as Box45, Text as Text47, useInput as useInput12 } from "ink";
32682
32673
  import { Fragment as Fragment18, jsx as jsx56, jsxs as jsxs46 } from "react/jsx-runtime";
32683
32674
  function OptInAnalyticsScreen({ onDone }) {
32684
32675
  const [loading, setLoading] = useState30(true);
32685
32676
  const [enabled, setEnabled] = useState30(true);
32686
- useEffect24(() => {
32677
+ useEffect23(() => {
32687
32678
  readAnalyticsSetting().then((setting) => {
32688
32679
  setEnabled(setting.enabled);
32689
32680
  setLoading(false);
@@ -32746,12 +32737,12 @@ var init_screen11 = __esm({
32746
32737
  });
32747
32738
 
32748
32739
  // packages/experience-design-system-cli/src/tui/upgrade/PageContainer.tsx
32749
- import { useEffect as useEffect25, useState as useState31 } from "react";
32740
+ import { useEffect as useEffect24, useState as useState31 } from "react";
32750
32741
  import { Box as Box46, Text as Text48, useInput as useInput13 } from "ink";
32751
32742
  import { jsx as jsx57, jsxs as jsxs47 } from "react/jsx-runtime";
32752
32743
  function UpgradeScreen({ onDone }) {
32753
32744
  const [upgradeCheck, setUpgradeCheck] = useState31();
32754
- useEffect25(() => {
32745
+ useEffect24(() => {
32755
32746
  startDebugRun({
32756
32747
  flow: "upgrade",
32757
32748
  step: "01-upgrade",
@@ -32826,13 +32817,13 @@ var init_PageContainer4 = __esm({
32826
32817
  });
32827
32818
 
32828
32819
  // packages/experience-design-system-cli/src/tui/settings/debug-mode/screen.tsx
32829
- import { useEffect as useEffect26, useState as useState32 } from "react";
32820
+ import { useEffect as useEffect25, useState as useState32 } from "react";
32830
32821
  import { Box as Box47, Text as Text49, useInput as useInput14 } from "ink";
32831
32822
  import { jsx as jsx58, jsxs as jsxs48 } from "react/jsx-runtime";
32832
32823
  function DebugModeScreen({ onDone }) {
32833
32824
  const [loading, setLoading] = useState32(true);
32834
32825
  const [enabled, setEnabled] = useState32(true);
32835
- useEffect26(() => {
32826
+ useEffect25(() => {
32836
32827
  readDebugModeSetting().then((setting) => {
32837
32828
  setEnabled(setting.enabled);
32838
32829
  setLoading(false);
@@ -32895,7 +32886,7 @@ __export(app_exports, {
32895
32886
  runApp: () => runApp
32896
32887
  });
32897
32888
  import { join as join27 } from "node:path";
32898
- import { useEffect as useEffect27, useState as useState33 } from "react";
32889
+ import { useEffect as useEffect26, useState as useState33 } from "react";
32899
32890
  import { Fragment as Fragment19, jsx as jsx59 } from "react/jsx-runtime";
32900
32891
  function App({ importOptions }) {
32901
32892
  const [screen, setScreen] = useState33("start");
@@ -32927,7 +32918,7 @@ function App({ importOptions }) {
32927
32918
  const [flowStart, setFlowStart] = useState33();
32928
32919
  const flow = useFlow(flowStart);
32929
32920
  const [importDefaults, setImportDefaults] = useState33();
32930
- useEffect27(() => {
32921
+ useEffect26(() => {
32931
32922
  if (screen !== "import") {
32932
32923
  setImportDefaults(void 0);
32933
32924
  return;
@@ -32985,12 +32976,12 @@ function App({ importOptions }) {
32985
32976
  }
32986
32977
  });
32987
32978
  };
32988
- useEffect27(() => {
32979
+ useEffect26(() => {
32989
32980
  if (!extractionRun || extraction?.status !== "done" || !extraction.result.ok) return;
32990
32981
  setExtractionRun(void 0);
32991
32982
  setScopeRun({ ...extractionRun, extraction: extraction.result.extraction });
32992
32983
  }, [extraction, extractionRun]);
32993
- useEffect27(() => {
32984
+ useEffect26(() => {
32994
32985
  if (!scopeRun || scopeFlow?.status !== "confirmed" || generationInput) return;
32995
32986
  const { extraction: produced, input, generatePromptPath } = scopeRun;
32996
32987
  setGenerationInput({
@@ -33008,7 +32999,7 @@ function App({ importOptions }) {
33008
32999
  ...generatePromptPath ? { generatePromptPath } : {}
33009
33000
  });
33010
33001
  }, [scopeFlow, scopeRun, generationInput]);
33011
- useEffect27(() => {
33002
+ useEffect26(() => {
33012
33003
  if (!scopeRun || generation?.status !== "done" || !generation.result.ok) return;
33013
33004
  const { credentialsSkipped, tokenStrategy, extraction: produced, input, generatePromptPath } = scopeRun;
33014
33005
  setScopeRun(void 0);
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-af058351.0",
3
+ "version": "2.37.1-dev-build-eca14dd7.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-af058351.0",
3
+ "version": "2.37.1-dev-build-eca14dd7.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-af058351.0",
3
+ "version": "2.37.1-dev-build-eca14dd7.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-af058351.0",
49
- "@contentful/experience-design-system-types": "2.37.1-dev-build-af058351.0"
48
+ "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-eca14dd7.0",
49
+ "@contentful/experience-design-system-types": "2.37.1-dev-build-eca14dd7.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tsconfig/node24": "^24.0.4",