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