@contentful/experience-design-system-cli 2.38.1-dev-build-f59ff6e8.0 → 2.38.1-dev-build-1adffe40.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 (365) hide show
  1. package/dist/app.d.ts +5 -7
  2. package/dist/app.js +30449 -967
  3. package/dist/index.js +34085 -1070
  4. package/dist/package.json +8 -3
  5. package/dist/src/commands/import-options.d.ts +10 -0
  6. package/dist/src/commands/import.d.ts +2 -1
  7. package/dist/src/tui/debug-prune.d.ts +12 -0
  8. package/dist/src/tui/debug-store.d.ts +18 -1
  9. package/dist/src/tui/help/file-locations.d.ts +23 -0
  10. package/dist/src/tui/home/home.theme.d.ts +0 -9
  11. package/dist/src/tui/import/resolve-user-path.d.ts +1 -0
  12. package/dist/src/tui/import/shared/error-step/controls.d.ts +7 -0
  13. package/{legacy/dist/src/import/tui/steps/ErrorStep.d.ts → dist/src/tui/import/shared/error-step/error-step.d.ts} +2 -2
  14. package/dist/src/tui/import/shared/error-step/logic.d.ts +15 -0
  15. package/dist/src/tui/import/shared/gate-step/controls.d.ts +8 -0
  16. package/dist/src/tui/import/shared/gate-step/gate-step.d.ts +16 -0
  17. package/dist/src/tui/import/shared/gate-step/logic.d.ts +11 -0
  18. package/dist/src/tui/import/shared/index.d.ts +4 -0
  19. package/dist/src/tui/import/shared/overview-box/overview-box.d.ts +10 -0
  20. package/dist/src/tui/import/shared/running-step/logic.d.ts +11 -0
  21. package/dist/src/tui/import/shared/running-step/running-step.d.ts +10 -0
  22. package/dist/src/tui/import/shared/running-step/theme.d.ts +3 -0
  23. package/dist/src/tui/import/shared/running-step/use-elapsed.d.ts +1 -0
  24. package/dist/src/tui/import/steps/00-preflight/controls.d.ts +17 -0
  25. package/dist/src/tui/import/steps/00-preflight/logic.d.ts +45 -0
  26. package/dist/src/tui/import/steps/00-preflight/screen.d.ts +8 -0
  27. package/dist/src/tui/import/steps/01-welcome/controls.d.ts +4 -1
  28. package/dist/src/tui/import/steps/02-token-input/controls.d.ts +3 -0
  29. package/dist/src/tui/import/steps/03-path-validation/controls.d.ts +13 -0
  30. package/dist/src/tui/import/steps/03-path-validation/helpers/scan-files.d.ts +2 -0
  31. package/dist/src/tui/import/steps/03-path-validation/logic.d.ts +45 -0
  32. package/dist/src/tui/import/steps/03-path-validation/screen.d.ts +14 -0
  33. package/dist/src/tui/import/steps/04-credentials/logic.d.ts +12 -0
  34. package/dist/src/tui/import/steps/04-credentials/screen.d.ts +19 -0
  35. package/dist/src/tui/import/steps/04-credentials/validate.d.ts +8 -0
  36. package/dist/src/tui/import/steps/06-extraction/find-skill-path.d.ts +1 -0
  37. package/dist/src/tui/import/steps/06-extraction/logic.d.ts +33 -0
  38. package/dist/src/tui/import/steps/06-extraction/run-tokens-only.d.ts +31 -0
  39. package/dist/src/tui/import/steps/06-extraction/run.d.ts +26 -0
  40. package/dist/src/tui/import/steps/06-extraction/screen.d.ts +8 -0
  41. package/dist/src/tui/import/steps/06-extraction/selection.d.ts +18 -0
  42. package/dist/src/tui/import/steps/06-extraction/types.d.ts +45 -0
  43. package/dist/src/tui/import/steps/06-extraction/use-extraction.d.ts +14 -0
  44. package/dist/src/tui/import/steps/06-extraction/use-tokens-only.d.ts +12 -0
  45. package/dist/src/tui/import/steps/07-scope-gate/cache-check.d.ts +10 -0
  46. package/{legacy/dist/src/import/tui/scope-gate-columns.d.ts → dist/src/tui/import/steps/07-scope-gate/columns.d.ts} +22 -4
  47. package/dist/src/tui/import/steps/07-scope-gate/graph/fuzzy-search.d.ts +1 -0
  48. package/dist/src/tui/import/steps/07-scope-gate/graph/index.d.ts +33 -0
  49. package/dist/src/tui/import/steps/07-scope-gate/graph/lineage.d.ts +7 -0
  50. package/dist/src/tui/import/steps/07-scope-gate/keymap.d.ts +84 -0
  51. package/dist/src/tui/import/steps/07-scope-gate/load.d.ts +8 -0
  52. package/dist/src/tui/import/steps/07-scope-gate/panels/added-column.d.ts +15 -0
  53. package/dist/src/tui/import/steps/07-scope-gate/panels/cycles-panel.d.ts +8 -0
  54. package/dist/src/tui/import/steps/07-scope-gate/panels/reject-prompt.d.ts +5 -0
  55. package/dist/src/tui/import/steps/07-scope-gate/screen.d.ts +9 -0
  56. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/ai-flag.d.ts +0 -1
  57. package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/components/GotoBanner.d.ts +2 -1
  58. package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/components/GroupedSidebar.d.ts +3 -36
  59. package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/badge.d.ts +13 -0
  60. package/{legacy/dist/src/tui → dist/src/tui/import/steps/07-scope-gate/sidebar/components}/windowed-panel.d.ts +3 -5
  61. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/group-collapse.d.ts +1 -1
  62. package/dist/src/tui/import/steps/07-scope-gate/sidebar/lineage-layout.d.ts +32 -0
  63. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/sidebar-help.d.ts +1 -1
  64. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/sidebar-navigation.d.ts +2 -2
  65. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/step-filters.d.ts +4 -0
  66. package/dist/src/tui/import/steps/07-scope-gate/sidebar/types.d.ts +7 -0
  67. package/dist/src/tui/import/steps/07-scope-gate/state.d.ts +19 -0
  68. package/dist/src/tui/import/steps/07-scope-gate/types.d.ts +24 -0
  69. package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate-flow.d.ts +27 -0
  70. package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate.d.ts +77 -0
  71. package/dist/src/tui/import/steps/08-generation/logic.d.ts +23 -0
  72. package/dist/src/tui/import/steps/08-generation/map-tokens.d.ts +14 -0
  73. package/dist/src/tui/import/steps/08-generation/run.d.ts +12 -0
  74. package/dist/src/tui/import/steps/08-generation/save-decisions.d.ts +8 -0
  75. package/dist/src/tui/import/steps/08-generation/screen.d.ts +10 -0
  76. package/dist/src/tui/import/steps/08-generation/types.d.ts +47 -0
  77. package/dist/src/tui/import/steps/08-generation/use-generation.d.ts +14 -0
  78. package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/ComponentRationalePanel.d.ts +1 -1
  79. package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/FieldEditor.d.ts +1 -18
  80. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/LivePreviewSummary.d.ts +2 -2
  81. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/ReviewComponentPanel.d.ts +3 -3
  82. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/ReviewDetailsEditor.d.ts +3 -3
  83. package/dist/src/tui/import/steps/09-review/components/ReviewDialogs.d.ts +14 -0
  84. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/ReviewStatus.d.ts +1 -1
  85. package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/ScrollablePanel.d.ts +2 -2
  86. package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/TokenReviewPanel.d.ts +0 -6
  87. package/dist/src/tui/import/steps/09-review/generate-review-step.d.ts +16 -0
  88. package/{legacy/dist/src/import → dist/src/tui/import/steps/09-review/graph}/cycle-auto-reject.d.ts +1 -1
  89. package/{legacy/dist/src/analyze → dist/src/tui/import/steps/09-review/graph}/cycle-view.d.ts +2 -2
  90. package/{legacy/dist/src/analyze → dist/src/tui/import/steps/09-review/graph}/issue-inheritance.d.ts +1 -1
  91. package/{legacy/dist/src/analyze → dist/src/tui/import/steps/09-review/graph}/selection-cascade.d.ts +1 -1
  92. package/dist/src/tui/import/steps/09-review/helpers/cycle-panel-scroll.d.ts +4 -0
  93. package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review/helpers}/enumerate-cycle-breaks.d.ts +1 -1
  94. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/history.d.ts +1 -1
  95. package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review}/review-details-panel.d.ts +2 -2
  96. package/{legacy/dist/src/import/tui/hooks → dist/src/tui/import/steps/09-review}/review-input.d.ts +2 -2
  97. package/{legacy/dist/src/import/tui/runLivePreview.d.ts → dist/src/tui/import/steps/09-review/run-live-preview.d.ts} +2 -6
  98. package/dist/src/tui/import/steps/09-review/session.d.ts +26 -0
  99. package/dist/src/tui/import/steps/09-review/token-suggestions.d.ts +8 -0
  100. package/dist/src/tui/import/steps/09-review/types.d.ts +19 -0
  101. package/{legacy/dist/src/import/tui/useFinalizePreview.d.ts → dist/src/tui/import/steps/09-review/use-finalize-preview.d.ts} +1 -11
  102. package/{legacy/dist/src/import/tui/hooks/useReviewEditor.d.ts → dist/src/tui/import/steps/09-review/use-review-editor.d.ts} +1 -3
  103. package/{legacy/dist/src/import/tui/hooks/useReviewPreview.d.ts → dist/src/tui/import/steps/09-review/use-review-preview.d.ts} +2 -2
  104. package/{legacy/dist/src/import/tui/hooks/useReviewSession.d.ts → dist/src/tui/import/steps/09-review/use-review-session.d.ts} +5 -35
  105. package/dist/src/tui/import/steps/10-flow/flow/build-flow-start.d.ts +22 -0
  106. package/dist/src/tui/import/steps/10-flow/flow/controller.d.ts +71 -0
  107. package/dist/src/tui/import/steps/10-flow/flow/preview.d.ts +44 -0
  108. package/dist/src/tui/import/steps/10-flow/flow/push.d.ts +45 -0
  109. package/dist/src/tui/import/steps/10-flow/flow/save.d.ts +41 -0
  110. package/dist/src/tui/import/steps/10-flow/flow/screen.d.ts +13 -0
  111. package/dist/src/tui/import/steps/10-flow/flow/types.d.ts +71 -0
  112. package/dist/src/tui/import/steps/10-flow/flow/use-flow.d.ts +12 -0
  113. package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/10-flow/screens}/DoneStep.d.ts +6 -1
  114. package/dist/src/tui/import/steps/10-flow/screens/PushingStep.d.ts +9 -0
  115. package/dist/src/tui/import/steps/10-flow/screens/WizardPreviewStep.d.ts +12 -0
  116. package/{legacy/dist/src/import → dist/src/tui/import/steps/10-flow/support}/path-utils.d.ts +0 -5
  117. package/dist/src/tui/import/steps/10-flow/support/preview-diff.d.ts +7 -0
  118. package/dist/src/tui/import/steps/10-flow/support/produced.d.ts +15 -0
  119. package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/wizard-state-transitions.d.ts +0 -13
  120. package/dist/src/tui/import/steps/index.d.ts +4 -0
  121. package/dist/src/tui/import/steps/preview-validation-error/logic.d.ts +9 -0
  122. package/dist/src/tui/import/steps/preview-validation-error/screen.d.ts +11 -0
  123. package/dist/src/tui/settings/{contentful-configuration/ContentfulConfigScreen.d.ts → configuration/ConfigurationScreen.d.ts} +1 -0
  124. package/dist/src/tui/settings/configuration/agents/AgentDetail.d.ts +15 -0
  125. package/dist/src/tui/settings/configuration/agents/AgentStatusBadge.d.ts +10 -0
  126. package/dist/src/tui/settings/configuration/agents/AgentsScreen.d.ts +11 -0
  127. package/dist/src/tui/settings/configuration/agents/agent-debug.d.ts +25 -0
  128. package/dist/src/tui/settings/configuration/agents/agent-status.d.ts +63 -0
  129. package/dist/src/tui/settings/configuration/agents/agent-store.d.ts +21 -0
  130. package/dist/src/tui/settings/configuration/agents/apply-binary-overrides.d.ts +13 -0
  131. package/dist/src/tui/settings/configuration/project/ProjectScreen.d.ts +5 -0
  132. package/dist/src/tui/settings/{contentful-configuration/config-store.d.ts → configuration/project/project-store.d.ts} +1 -0
  133. package/dist/src/tui/settings/debug-mode/debug-mode-store.d.ts +7 -1
  134. package/dist/src/tui/settings/debug-mode/screen.d.ts +4 -0
  135. package/dist/src/tui/settings/shared/debug-trail.d.ts +35 -0
  136. package/dist/src/tui/shared/components/ClearableTextInput.d.ts +6 -0
  137. package/dist/src/tui/shared/components/ControlHints.d.ts +9 -0
  138. package/dist/src/tui/shared/components/FieldForm.d.ts +71 -0
  139. package/dist/src/tui/shared/components/StepHeader.d.ts +26 -0
  140. package/dist/src/tui/theme.d.ts +21 -0
  141. package/dist/src/tui/user-agent.d.ts +5 -0
  142. package/package.json +8 -3
  143. package/dist/src/commands/forwarded.d.ts +0 -2
  144. package/dist/src/legacy/forwarded-import-args.d.ts +0 -1
  145. package/dist/src/legacy/legacy-cli-path.d.ts +0 -1
  146. package/dist/src/legacy/run-legacy.d.ts +0 -1
  147. package/dist/src/tui/control-hints.d.ts +0 -7
  148. package/dist/src/tui/import/spawn-v1-import.d.ts +0 -29
  149. package/dist/src/tui/import/terminal-input.d.ts +0 -2
  150. package/dist/src/tui/upgrade/PageContainer.d.ts +0 -4
  151. package/legacy/bin/cli.js +0 -58
  152. package/legacy/dist/package.json +0 -73
  153. package/legacy/dist/src/analytics/apply.d.ts +0 -6
  154. package/legacy/dist/src/analytics/client.d.ts +0 -8
  155. package/legacy/dist/src/analytics/constants.d.ts +0 -4
  156. package/legacy/dist/src/analytics/exit.d.ts +0 -4
  157. package/legacy/dist/src/analytics/index.d.ts +0 -6
  158. package/legacy/dist/src/analytics/normalize.d.ts +0 -3
  159. package/legacy/dist/src/analytics/os.d.ts +0 -2
  160. package/legacy/dist/src/analytics/session.d.ts +0 -3
  161. package/legacy/dist/src/analytics/tracker.d.ts +0 -16
  162. package/legacy/dist/src/analytics/types.d.ts +0 -28
  163. package/legacy/dist/src/analyze/composition/apply-mapping.d.ts +0 -22
  164. package/legacy/dist/src/analyze/composition/candidate-files.d.ts +0 -34
  165. package/legacy/dist/src/analyze/composition/composition-cache-key.d.ts +0 -18
  166. package/legacy/dist/src/analyze/composition/interchange-schema.d.ts +0 -17
  167. package/legacy/dist/src/analyze/composition/manifest-doc-evidence.d.ts +0 -49
  168. package/legacy/dist/src/analyze/composition/merge-edges.d.ts +0 -19
  169. package/legacy/dist/src/analyze/composition/parse-map-edges.d.ts +0 -16
  170. package/legacy/dist/src/analyze/composition/prompt-loader.d.ts +0 -3
  171. package/legacy/dist/src/analyze/composition/resolve-mapping-cli.d.ts +0 -10
  172. package/legacy/dist/src/analyze/composition/resolve-mapping.d.ts +0 -59
  173. package/legacy/dist/src/analyze/extract-command.d.ts +0 -7
  174. package/legacy/dist/src/analyze/fuzzy-search.d.ts +0 -3
  175. package/legacy/dist/src/analyze/lineage.d.ts +0 -29
  176. package/legacy/dist/src/analyze/select/command.d.ts +0 -27
  177. package/legacy/dist/src/analyze/select/parser.d.ts +0 -6
  178. package/legacy/dist/src/analyze/select/persistence.d.ts +0 -22
  179. package/legacy/dist/src/analyze/select/tui/LegacySelectApp.d.ts +0 -8
  180. package/legacy/dist/src/analyze/select/tui/components/ComponentDetail.d.ts +0 -19
  181. package/legacy/dist/src/analyze/select/tui/components/JsonEditor.d.ts +0 -10
  182. package/legacy/dist/src/analyze/select/tui/components/PreviewSummaryBar.d.ts +0 -8
  183. package/legacy/dist/src/analyze/select/tui/components/Sidebar.d.ts +0 -29
  184. package/legacy/dist/src/analyze/select/tui/components/SourcePanel.d.ts +0 -11
  185. package/legacy/dist/src/analyze/select/tui/components/StatusBar.d.ts +0 -11
  186. package/legacy/dist/src/analyze/select/tui/components/TopBar.d.ts +0 -10
  187. package/legacy/dist/src/analyze/select/tui/hooks/list-scroll-input.d.ts +0 -13
  188. package/legacy/dist/src/analyze/select/tui/hooks/useKeymap.d.ts +0 -24
  189. package/legacy/dist/src/analyze/select/tui/hooks/useSession.d.ts +0 -19
  190. package/legacy/dist/src/analyze/select/tui/hooks/useUndo.d.ts +0 -8
  191. package/legacy/dist/src/analyze/select/tui/theme.d.ts +0 -18
  192. package/legacy/dist/src/analyze/select/types.d.ts +0 -54
  193. package/legacy/dist/src/apply/api-client.d.ts +0 -64
  194. package/legacy/dist/src/apply/command.d.ts +0 -43
  195. package/legacy/dist/src/apply/preview-utils.d.ts +0 -12
  196. package/legacy/dist/src/apply/tokens.d.ts +0 -1
  197. package/legacy/dist/src/apply/tui/ServerApplyView.d.ts +0 -34
  198. package/legacy/dist/src/apply/tui/ServerPreviewView.d.ts +0 -9
  199. package/legacy/dist/src/credentials-store.d.ts +0 -18
  200. package/legacy/dist/src/doctor/checks.d.ts +0 -5
  201. package/legacy/dist/src/doctor/command.d.ts +0 -2
  202. package/legacy/dist/src/doctor/report.d.ts +0 -7
  203. package/legacy/dist/src/generate/command.d.ts +0 -2
  204. package/legacy/dist/src/generate/tui/GenerateView.d.ts +0 -12
  205. package/legacy/dist/src/helpers/build-contentful-management-client.d.ts +0 -7
  206. package/legacy/dist/src/helpers/fetch-and-persist-existing-contentful-entities.d.ts +0 -29
  207. package/legacy/dist/src/helpers/fetch-existing-contentful-entities.d.ts +0 -11
  208. package/legacy/dist/src/helpers/find-nearly-matching-component.d.ts +0 -7
  209. package/legacy/dist/src/helpers/read-existing-contentful-entities-from-session.d.ts +0 -7
  210. package/legacy/dist/src/helpers/summarize-existing-contentful-entities.d.ts +0 -50
  211. package/legacy/dist/src/host-utils.d.ts +0 -3
  212. package/legacy/dist/src/import/agent-model-resolve.d.ts +0 -27
  213. package/legacy/dist/src/import/command.d.ts +0 -2
  214. package/legacy/dist/src/import/composition-options.d.ts +0 -7
  215. package/legacy/dist/src/import/tui/WizardApp.d.ts +0 -67
  216. package/legacy/dist/src/import/tui/components/LegendEntry.d.ts +0 -2
  217. package/legacy/dist/src/import/tui/components/ReviewDialogs.d.ts +0 -28
  218. package/legacy/dist/src/import/tui/components/StepHeader.d.ts +0 -8
  219. package/legacy/dist/src/import/tui/cycle-panel-scroll.d.ts +0 -8
  220. package/legacy/dist/src/import/tui/lineage-layout.d.ts +0 -68
  221. package/legacy/dist/src/import/tui/run-selection-agent.d.ts +0 -9
  222. package/legacy/dist/src/import/tui/runScopeGate.d.ts +0 -12
  223. package/legacy/dist/src/import/tui/spawn-generate.d.ts +0 -33
  224. package/legacy/dist/src/import/tui/steps/CredentialsStep.d.ts +0 -43
  225. package/legacy/dist/src/import/tui/steps/GateStep.d.ts +0 -15
  226. package/legacy/dist/src/import/tui/steps/GenerateReviewStep.d.ts +0 -37
  227. package/legacy/dist/src/import/tui/steps/PathValidationStep.d.ts +0 -10
  228. package/legacy/dist/src/import/tui/steps/PreviewValidationErrorStep.d.ts +0 -11
  229. package/legacy/dist/src/import/tui/steps/PushingStep.d.ts +0 -9
  230. package/legacy/dist/src/import/tui/steps/RunningStep.d.ts +0 -32
  231. package/legacy/dist/src/import/tui/steps/ScopeGateStep.d.ts +0 -48
  232. package/legacy/dist/src/import/tui/steps/TokenInputStep.d.ts +0 -8
  233. package/legacy/dist/src/import/tui/steps/WelcomeStep.d.ts +0 -7
  234. package/legacy/dist/src/import/tui/steps/WizardPreviewStep.d.ts +0 -21
  235. package/legacy/dist/src/import/tui/steps/preview-diff.d.ts +0 -10
  236. package/legacy/dist/src/import/tui/wizard-422-helpers.d.ts +0 -48
  237. package/legacy/dist/src/import/tui/wizard-generate-progress.d.ts +0 -21
  238. package/legacy/dist/src/index.d.ts +0 -1
  239. package/legacy/dist/src/index.js +0 -33004
  240. package/legacy/dist/src/lib/agent-definitions.d.ts +0 -14
  241. package/legacy/dist/src/lib/agent-model-options.d.ts +0 -15
  242. package/legacy/dist/src/lib/agent-output.d.ts +0 -5
  243. package/legacy/dist/src/lib/cli-errors.d.ts +0 -2
  244. package/legacy/dist/src/lib/cli-path.d.ts +0 -4
  245. package/legacy/dist/src/lib/command-options.d.ts +0 -3
  246. package/legacy/dist/src/lib/component-patch.d.ts +0 -12
  247. package/legacy/dist/src/lib/debug-logger.d.ts +0 -39
  248. package/legacy/dist/src/lib/debug-preamble.d.ts +0 -7
  249. package/legacy/dist/src/lib/error-parser.d.ts +0 -40
  250. package/legacy/dist/src/lib/path-exists.d.ts +0 -1
  251. package/legacy/dist/src/lib/prompt-overrides.d.ts +0 -38
  252. package/legacy/dist/src/lib/terminal-capabilities.d.ts +0 -29
  253. package/legacy/dist/src/lib/user-agent.d.ts +0 -7
  254. package/legacy/dist/src/map-tokens/apply.d.ts +0 -12
  255. package/legacy/dist/src/map-tokens/command.d.ts +0 -2
  256. package/legacy/dist/src/map-tokens/resolve-defaults.d.ts +0 -32
  257. package/legacy/dist/src/map-tokens/tui/MapTokensView.d.ts +0 -13
  258. package/legacy/dist/src/output/format.d.ts +0 -23
  259. package/legacy/dist/src/print/command.d.ts +0 -11
  260. package/legacy/dist/src/print/validate/tui/ValidateView.d.ts +0 -15
  261. package/legacy/dist/src/print/validate/validators/cdf-validator.d.ts +0 -2
  262. package/legacy/dist/src/print/validate/validators/dtcg-validator.d.ts +0 -2
  263. package/legacy/dist/src/print/validate/validators/format-errors.d.ts +0 -12
  264. package/legacy/dist/src/print/validate/validators/read-json-file.d.ts +0 -10
  265. package/legacy/dist/src/program.d.ts +0 -25
  266. package/legacy/dist/src/runs/fingerprint.d.ts +0 -36
  267. package/legacy/dist/src/runs/save-path-resolver.d.ts +0 -11
  268. package/legacy/dist/src/runs/store.d.ts +0 -65
  269. package/legacy/dist/src/session/cache-keys.d.ts +0 -22
  270. package/legacy/dist/src/session/core/cdf/cdf-mappers.d.ts +0 -3
  271. package/legacy/dist/src/session/core/components/derive-component-id.d.ts +0 -1
  272. package/legacy/dist/src/session/core/components/hash-component-shape.d.ts +0 -5
  273. package/legacy/dist/src/session/core/shared/index-rows-by-key.d.ts +0 -1
  274. package/legacy/dist/src/session/core/tokens/build-dtcg-groups.d.ts +0 -12
  275. package/legacy/dist/src/session/core/tokens/build-dtcg-tokens.d.ts +0 -3
  276. package/legacy/dist/src/session/core/tokens/hash-token-content.d.ts +0 -1
  277. package/legacy/dist/src/session/db.d.ts +0 -200
  278. package/legacy/dist/src/session/migration.d.ts +0 -2
  279. package/legacy/dist/src/session/repositories/sessions/read.d.ts +0 -11
  280. package/legacy/dist/src/session/repositories/sessions/write.d.ts +0 -3
  281. package/legacy/dist/src/session/repositories/shared/with-transaction.d.ts +0 -2
  282. package/legacy/dist/src/session/repositories/steps/read.d.ts +0 -2
  283. package/legacy/dist/src/session/repositories/steps/write.d.ts +0 -5
  284. package/legacy/dist/src/session/repositories/tokens/read.d.ts +0 -15
  285. package/legacy/dist/src/session/repositories/tokens/write.d.ts +0 -16
  286. package/legacy/dist/src/session/resolve-session-id.d.ts +0 -1
  287. package/legacy/dist/src/session/services/session-resolver.d.ts +0 -9
  288. package/legacy/dist/src/session/services/tokens/apply-tool-calls.d.ts +0 -8
  289. package/legacy/dist/src/session/services/tokens/replace-raw-prop-token-paths.d.ts +0 -3
  290. package/legacy/dist/src/session/services/tokens/replace-raw-token-name-paths.d.ts +0 -3
  291. package/legacy/dist/src/session/services/tokens/store-dtcg-tokens.d.ts +0 -3
  292. package/legacy/dist/src/session/session-id.d.ts +0 -1
  293. package/legacy/dist/src/session/source-excerpt.d.ts +0 -26
  294. package/legacy/dist/src/setup/SetupScreen.d.ts +0 -28
  295. package/legacy/dist/src/setup/SetupStepper.d.ts +0 -7
  296. package/legacy/dist/src/setup/command.d.ts +0 -3
  297. package/legacy/dist/src/setup/lib/checks.d.ts +0 -57
  298. package/legacy/dist/src/setup/lib/shell.d.ts +0 -12
  299. package/legacy/dist/src/setup/steps/CodingAgentScreen.d.ts +0 -20
  300. package/legacy/dist/src/setup/steps/ContentfulCredentialsScreen.d.ts +0 -11
  301. package/legacy/dist/src/setup/steps/StepLayout.d.ts +0 -20
  302. package/legacy/dist/src/setup/steps/preferences/AnalyticsScreen.d.ts +0 -5
  303. package/legacy/dist/src/setup/steps/preferences/BooleanInput.d.ts +0 -21
  304. package/legacy/dist/src/setup/steps/preferences/ColorPreferenceScreen.d.ts +0 -5
  305. package/legacy/dist/src/setup/steps/preferences/CustomPromptScreen.d.ts +0 -14
  306. package/legacy/dist/src/setup/steps/preferences/DebugLogsScreen.d.ts +0 -5
  307. package/legacy/dist/src/setup/steps/preferences/PreferencesMenu.d.ts +0 -26
  308. package/legacy/dist/src/setup/steps/prerequisites/PrerequisitesScreen.d.ts +0 -16
  309. package/legacy/dist/src/setup/steps/prerequisites/build.d.ts +0 -2
  310. package/legacy/dist/src/setup/steps/prerequisites/deps.d.ts +0 -33
  311. package/legacy/dist/src/setup/steps/prerequisites/index.d.ts +0 -4
  312. package/legacy/dist/src/setup/steps/prerequisites/node.d.ts +0 -2
  313. package/legacy/dist/src/setup/steps/prerequisites/pnpm.d.ts +0 -2
  314. package/legacy/dist/src/tui/CommandCompletionView.d.ts +0 -13
  315. package/legacy/dist/src/tui/render-with-goodbye.d.ts +0 -7
  316. package/legacy/dist/src/types.d.ts +0 -2
  317. package/legacy/package.json +0 -80
  318. package/legacy/prompts/composition-edges.md +0 -11
  319. /package/dist/src/tui/{upgrade → home}/version.d.ts +0 -0
  320. /package/{legacy/dist/src/analyze → dist/src/tui/import/steps/07-scope-gate/graph}/composite-closure.d.ts +0 -0
  321. /package/{legacy/dist/src/analyze → dist/src/tui/import/steps/07-scope-gate/graph}/cycle-detection.d.ts +0 -0
  322. /package/{legacy/dist/src/analyze → dist/src/tui/import/steps/07-scope-gate/graph}/scope-gate-cascade.d.ts +0 -0
  323. /package/{legacy/dist/src/analyze → dist/src/tui/import/steps/07-scope-gate/graph}/search-neighborhood.d.ts +0 -0
  324. /package/{legacy/dist/src/analyze → dist/src/tui/import/steps/07-scope-gate/graph}/slot-graph.d.ts +0 -0
  325. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/autocomplete.d.ts +0 -0
  326. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/components/CompactControlBar.d.ts +0 -0
  327. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/components/CounterStrip.d.ts +0 -0
  328. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/components/HelpOverlay.d.ts +0 -0
  329. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/components/SearchMatchSummary.d.ts +0 -0
  330. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/hooks/sidebar-search-state.d.ts +0 -0
  331. /package/{legacy/dist/src/tui → dist/src/tui/import/steps/07-scope-gate/sidebar/hooks}/use-terminal-size.d.ts +0 -0
  332. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/hooks/useImmediateInput.d.ts +0 -0
  333. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/hooks/useOverlayPanel.d.ts +0 -0
  334. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/07-scope-gate/sidebar}/sidebar-input.d.ts +0 -0
  335. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/FinalizeDialog.d.ts +0 -0
  336. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/HighlightedLine.d.ts +0 -0
  337. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/JsonPanel.d.ts +0 -0
  338. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/QuitDialog.d.ts +0 -0
  339. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/RationaleLine.d.ts +0 -0
  340. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/RationalePanel.d.ts +0 -0
  341. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/removed-components-text.d.ts +0 -0
  342. /package/{legacy/dist/src/analyze/select/tui → dist/src/tui/import/steps/09-review}/components/wrap-text.d.ts +0 -0
  343. /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review/helpers}/auto-reject-decision.d.ts +0 -0
  344. /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review/helpers}/breaking-change-format.d.ts +0 -0
  345. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review/helpers}/sidebar-width.d.ts +0 -0
  346. /package/{legacy/dist/src/analyze/select → dist/src/tui/import/steps/09-review}/preview-annotations.d.ts +0 -0
  347. /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review}/review-json-panel.d.ts +0 -0
  348. /package/{legacy/dist/src/analyze/select/tui/hooks → dist/src/tui/import/steps/09-review}/scroll-offset.d.ts +0 -0
  349. /package/{legacy/dist/src/import/tui/useLivePreview.d.ts → dist/src/tui/import/steps/09-review/use-live-preview.d.ts} +0 -0
  350. /package/{legacy/dist/src/import/tui/hooks/useReviewSurfaceState.d.ts → dist/src/tui/import/steps/09-review/use-review-surface-state.d.ts} +0 -0
  351. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/components}/CustomPromptBanner.d.ts +0 -0
  352. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow}/components/SpaceEnvironment.d.ts +0 -0
  353. /package/{legacy/dist/src/runs/path-prompt.d.ts → dist/src/tui/import/steps/10-flow/screens/PathPrompt.d.ts} +0 -0
  354. /package/{legacy/dist/src/lib → dist/src/tui/import/steps/10-flow/support}/contentful-urls.d.ts +0 -0
  355. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/preview-confirmation-input.d.ts +0 -0
  356. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/push-progress.d.ts +0 -0
  357. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/run-print-files-helpers.d.ts +0 -0
  358. /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/run-teaser.d.ts +0 -0
  359. /package/{legacy/dist/src/tui → dist/src/tui/import/steps/10-flow/support}/use-blinking-cursor.d.ts +0 -0
  360. /package/{legacy/dist/src/tui → dist/src/tui/import/steps/10-flow/support}/use-timed-spinner.d.ts +0 -0
  361. /package/dist/src/tui/settings/{utils → shared}/v1-store.d.ts +0 -0
  362. /package/{legacy/skills → skills}/generate-components.md +0 -0
  363. /package/{legacy/skills → skills}/generate-tokens.md +0 -0
  364. /package/{legacy/skills → skills}/map-tokens.md +0 -0
  365. /package/{legacy/skills → skills}/select-components.md +0 -0
@@ -0,0 +1,23 @@
1
+ import type { GenerationProgress } from './types.js';
2
+ export declare function initialProgress(): GenerationProgress;
3
+ export declare function shouldRunMapTokens(counts: {
4
+ mappablePropCount: number;
5
+ rawTokenCount: number;
6
+ }): boolean;
7
+ export declare function formatAcceptanceSummary(counts: {
8
+ accepted: number;
9
+ autoRejected: number;
10
+ }): string;
11
+ export declare function describeGeneration(input: {
12
+ acceptedCount: number;
13
+ agent: string;
14
+ hasTokens: boolean;
15
+ }): string;
16
+ export declare function progressRows(progress: GenerationProgress, agent: string): Array<{
17
+ text: string;
18
+ complete: boolean;
19
+ progress?: {
20
+ done: number;
21
+ total: number;
22
+ };
23
+ }>;
@@ -0,0 +1,14 @@
1
+ import type { GenerationInput } from './types.js';
2
+ export interface MapTokensPlan {
3
+ /** False when there is nothing to map, in which case the command is not run. */
4
+ eligible: boolean;
5
+ mappablePropCount: number;
6
+ rawTokenCount: number;
7
+ }
8
+ /**
9
+ * Prepares the generated session for token mapping and says whether it is worth running. The map tokens command works
10
+ * on one session, so the token universe is copied into the generated one: from the token session when extraction made
11
+ * one, or restored from the saved tokens.json when an existing catalog was reused (there is no token session then).
12
+ * Then it counts the design props that are tokens and the raw tokens. Reads and writes the pipeline database.
13
+ */
14
+ export declare function prepareMapTokens(input: Pick<GenerationInput, 'tokenSessionId' | 'tokensPath'>, generatedSessionId: string): Promise<MapTokensPlan>;
@@ -0,0 +1,12 @@
1
+ import { checkAgentAuth, runGenerateComponentsSession, runMapTokens } from '@contentful/experience-design-system-backend-pipeline';
2
+ import { prepareMapTokens } from './map-tokens.js';
3
+ import { saveDecisions } from './save-decisions.js';
4
+ import type { GenerationInput, GenerationProgress, GenerationResult } from './types.js';
5
+ export interface GenerationDeps {
6
+ checkAgentAuth: typeof checkAgentAuth;
7
+ saveDecisions: typeof saveDecisions;
8
+ runGenerate: typeof runGenerateComponentsSession;
9
+ runMapTokens: typeof runMapTokens;
10
+ prepareMapTokens: typeof prepareMapTokens;
11
+ }
12
+ export declare function runGeneration(input: GenerationInput, onProgress: (progress: GenerationProgress) => void, deps?: GenerationDeps): Promise<GenerationResult>;
@@ -0,0 +1,8 @@
1
+ import type { GenerationInput } from './types.js';
2
+ /**
3
+ * Applies the scope decisions to the session and writes the review snapshot that `generate components` reads to leave
4
+ * out rejected components. Without the snapshot the generator would process rejected components anyway.
5
+ * Uses `applyScopeDecisions` and `writeScopeDecisionsSnapshot` from backend-pipeline, which are identical to legacy's.
6
+ * Both write to the pipeline database, so this runs only after the cache check has finished restoring into it.
7
+ */
8
+ export declare function saveDecisions(input: Pick<GenerationInput, 'sessionId' | 'decisions'>): Promise<void>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { GenerationProgress } from './types.js';
3
+ interface GenerationScreenProps {
4
+ progress: GenerationProgress;
5
+ agent: string;
6
+ acceptedCount: number;
7
+ hasTokens: boolean;
8
+ }
9
+ export declare function GenerationScreen({ progress, agent, acceptedCount, hasTokens, }: GenerationScreenProps): React.ReactElement;
10
+ export {};
@@ -0,0 +1,47 @@
1
+ import type { GenerationHandoff } from '@contentful/experience-design-system-types/handoff';
2
+ export interface GenerationInput {
3
+ /** The extraction session the scope was decided on. */
4
+ sessionId: string;
5
+ decisions: {
6
+ accepted: string[];
7
+ rejected: string[];
8
+ };
9
+ /**
10
+ * The cache check that ran while the scope gate was open, which restores cached definitions into the pipeline
11
+ * database. The stage waits for it before saving the decisions, since both write to that database.
12
+ */
13
+ cachedNames: Promise<string[]>;
14
+ tokensPath: string;
15
+ /** The token session extraction recorded, or null when an existing tokens.json was reused. */
16
+ tokenSessionId: string | null;
17
+ existingEntitiesPath: string | null;
18
+ agent: string;
19
+ agentModel?: string;
20
+ promptOverrides: string[];
21
+ /** A custom prompt for `generate components`, saved in the config. Passed to the command as it is. */
22
+ generatePromptPath?: string;
23
+ noCache: boolean;
24
+ /** Whether a token catalog is in use. It changes the wording of the screen, not what runs. */
25
+ hasTokens: boolean;
26
+ }
27
+ /** One line per thing the screen shows, in the order it shows them. */
28
+ export interface GenerationProgress {
29
+ /** Components finished, out of the total, and the one being worked on. Null until the first progress line. */
30
+ components: {
31
+ done: number;
32
+ total: number;
33
+ current: string;
34
+ } | null;
35
+ mapTokens: 'idle' | 'running' | 'complete';
36
+ /** Whether token mapping will run at all; unknown until the generated components have been looked at. */
37
+ mapTokensEligible: boolean | null;
38
+ }
39
+ export type GenerationStepName = 'save decisions' | 'generate components' | 'map tokens' | `${string} auth check`;
40
+ export type GenerationResult = {
41
+ ok: true;
42
+ generation: GenerationHandoff;
43
+ } | {
44
+ ok: false;
45
+ step: GenerationStepName;
46
+ message: string;
47
+ };
@@ -0,0 +1,14 @@
1
+ import type { GenerationInput, GenerationProgress, GenerationResult } from './types.js';
2
+ export type GenerationState = {
3
+ status: 'running';
4
+ progress: GenerationProgress;
5
+ } | {
6
+ status: 'done';
7
+ result: GenerationResult;
8
+ };
9
+ /**
10
+ * Runs the generation stage once for the given input and reports its progress. Passing a different input starts a new
11
+ * run; passing nothing leaves the stage idle. A run that finishes after the input changed or the screen went away is
12
+ * ignored.
13
+ */
14
+ export declare function useGeneration(input: GenerationInput | undefined): GenerationState | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ComponentRationale } from '../../../../session/db.js';
2
+ import type { ComponentRationale } from '@contentful/experience-design-system-backend-pipeline';
3
3
  export type ComponentRationalePanelProps = {
4
4
  data: ComponentRationale;
5
5
  scrollOffset: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { findSlotCycles, type ComponentSlotInfo } from '../../../cycle-detection.js';
2
+ import { type ComponentSlotInfo } from '../../07-scope-gate/graph/cycle-detection.js';
3
3
  type PropMetadata = {
4
4
  rationale?: string | null;
5
5
  sourceStartLine?: number | null;
@@ -46,22 +46,5 @@ export type FieldEditorProps = {
46
46
  header?: React.ReactNode;
47
47
  headerHeight?: number;
48
48
  };
49
- export declare function simulateGraphWithCandidate(projectSlotGraph: ComponentSlotInfo[], selfName: string, currentSlots: {
50
- name: string;
51
- allowedComponents: string[];
52
- }[], targetSlotName: string, candidate: string): ComponentSlotInfo[];
53
- export declare function introducesNewCycle(before: ReturnType<typeof findSlotCycles>, next: ReturnType<typeof findSlotCycles>): boolean;
54
- export declare function computeAllowedComponentCandidates(projectSlotGraph: ComponentSlotInfo[], selfName: string, currentSlots: {
55
- name: string;
56
- allowedComponents: string[];
57
- }[], targetSlotName: string): string[];
58
- export declare function simulateGraphWithReplacement(projectSlotGraph: ComponentSlotInfo[], selfName: string, currentSlots: {
59
- name: string;
60
- allowedComponents: string[];
61
- }[], targetSlotName: string, replaceIndex: number, candidate: string): ComponentSlotInfo[];
62
- export declare function computeAllowedComponentReplacementCandidates(projectSlotGraph: ComponentSlotInfo[], selfName: string, currentSlots: {
63
- name: string;
64
- allowedComponents: string[];
65
- }[], targetSlotName: string, replaceIndex: number): string[];
66
49
  export declare function FieldEditor({ value, width, height, fixedHeight, active, onChange, onSave, onDiscard, onExit, metadata, onTogglePropRationale, propRationaleKey, onToggleComponentRationale, componentRationaleKey, onToggleSourceExternal, onTextEntryActiveChange, projectSlotGraph, currentComponentName, onDirtyChange, discardTrigger, initialFocusTarget, showHiddenProps, showInlineRationales, header, headerHeight, }: FieldEditorProps): React.ReactElement;
67
50
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { PreviewAnnotation } from '../../../analyze/select/types.js';
3
- import type { UseLivePreviewReturn } from '../useLivePreview.js';
2
+ import type { PreviewAnnotation } from '../types.js';
3
+ import type { UseLivePreviewReturn } from '../use-live-preview.js';
4
4
  type LivePreviewSummaryProps = {
5
5
  enabled: boolean;
6
6
  previewAnnotations: ReadonlyMap<string, PreviewAnnotation>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
3
- import type { CdfReviewEntry } from '../hooks/useReviewSession.js';
4
- import type { UseReviewEditorResult } from '../hooks/useReviewEditor.js';
5
- import type { UseLivePreviewReturn } from '../useLivePreview.js';
3
+ import type { CdfReviewEntry } from '../types.js';
4
+ import type { UseReviewEditorResult } from '../use-review-editor.js';
5
+ import type { UseLivePreviewReturn } from '../use-live-preview.js';
6
6
  import { type ReviewDetailsEditorProps } from './ReviewDetailsEditor.js';
7
7
  type ReviewDetailsEditorConfig = Pick<ReviewDetailsEditorProps, 'componentRationale' | 'reviewMetadata' | 'reviewEditor' | 'width' | 'height' | 'sourceBorderColor' | 'jsonValue' | 'sidebarFocused' | 'fieldEditor'>;
8
8
  export type ReviewComponentPanelProps = ReviewDetailsEditorConfig & {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { type FieldEditorProps } from '../../../analyze/select/tui/components/FieldEditor.js';
3
- import { type ReviewDetailsPanelProps } from '../steps/review-details-panel.js';
4
- import type { UseReviewEditorResult } from '../hooks/useReviewEditor.js';
2
+ import { type FieldEditorProps } from './FieldEditor.js';
3
+ import { type ReviewDetailsPanelProps } from '../review-details-panel.js';
4
+ import type { UseReviewEditorResult } from '../use-review-editor.js';
5
5
  type ReviewEditorPanelState = Pick<UseReviewEditorResult, 'panelOpen' | 'panelScrollOffset' | 'tokenReviewRow' | 'tokenReviewEditing' | 'tokenReviewEditCursor' | 'tokenReviewEditSelection' | 'showJson' | 'jsonScrollOffset' | 'currentTokenSuggestions'>;
6
6
  export type ReviewDetailsEditorProps = Omit<ReviewDetailsPanelProps, 'editor' | 'panelOpen' | 'panelScrollOffset' | 'tokenSuggestions' | 'tokenReviewRow' | 'tokenReviewEditing' | 'tokenReviewEditCursor' | 'tokenReviewEditSelection' | 'showJson' | 'jsonScrollOffset'> & {
7
7
  reviewEditor: ReviewEditorPanelState;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { UseFinalizePreviewReturn } from '../use-finalize-preview.js';
3
+ import type { UseReviewSurfaceStateResult } from '../use-review-surface-state.js';
4
+ import { type ReviewStatusEntry } from './ReviewStatus.js';
5
+ export declare function ReviewStepDialogs({ surfaceState, components, finalizePreview, onFinalize, onQuit, }: {
6
+ surfaceState: UseReviewSurfaceStateResult;
7
+ components: ReadonlyArray<ReviewStatusEntry>;
8
+ finalizePreview: UseFinalizePreviewReturn;
9
+ onFinalize: () => void;
10
+ onQuit: () => void;
11
+ }): React.ReactElement;
12
+ export declare function ReviewReloadDialog({ open }: {
13
+ open: boolean;
14
+ }): React.ReactElement | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ReviewComponentStatus } from '../../../analyze/select/types.js';
2
+ import type { ReviewComponentStatus } from '../types.js';
3
3
  export type ReviewStatusCounts = {
4
4
  accepted: number;
5
5
  rejected: number;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  type ScrollablePanelProps = {
3
- header: React.ReactNode;
3
+ title: string;
4
4
  width: number;
5
5
  height: number;
6
6
  active: boolean;
@@ -10,5 +10,5 @@ type ScrollablePanelProps = {
10
10
  borderColor?: string;
11
11
  children: React.ReactNode;
12
12
  };
13
- export declare function ScrollablePanel({ header, width, height, active, totalLines, visibleStart, visibleEnd, borderColor, children, }: ScrollablePanelProps): React.ReactElement;
13
+ export declare function ScrollablePanel({ title, width, height, active, totalLines, visibleStart, visibleEnd, borderColor, children, }: ScrollablePanelProps): React.ReactElement;
14
14
  export {};
@@ -1,21 +1,15 @@
1
1
  import React from 'react';
2
- import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
3
2
  export type TokenPropSuggestion = {
4
3
  propName: string;
5
4
  paths: string[];
6
5
  suggested: string[];
7
6
  allowed: string[];
8
7
  };
9
- export type TokenReviewToken = {
10
- path: string;
11
- kind: string;
12
- };
13
8
  /**
14
9
  * Design-token props on `entry` with a declared token kind. `paths` is the
15
10
  * full compatible token universe when a token catalog is available; `allowed`
16
11
  * remains the current subset.
17
12
  */
18
- export declare function collectTokenSuggestions(entry: CDFComponentEntry, availableTokens?: TokenReviewToken[]): TokenPropSuggestion[];
19
13
  export type TokenReviewPanelProps = {
20
14
  componentName: string;
21
15
  suggestions: TokenPropSuggestion[];
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ type GenerateReviewStepProps = {
3
+ extractSessionId: string | null;
4
+ tokenSessionId?: string | null;
5
+ onFinalize: (accepted: number, rejected: number, unresolved: number) => void;
6
+ onQuit: () => void;
7
+ livePreview?: boolean;
8
+ spaceId?: string;
9
+ environmentId?: string;
10
+ cmaToken?: string;
11
+ host?: string;
12
+ tokensPath?: string;
13
+ initialFinalizeError?: string | null;
14
+ };
15
+ export declare function GenerateReviewStep(props: GenerateReviewStepProps): React.ReactElement;
16
+ export {};
@@ -1,4 +1,4 @@
1
- import type { ComponentGraphNode } from '../analyze/composite-closure.js';
1
+ import type { ComponentGraphNode } from '../../07-scope-gate/graph/composite-closure.js';
2
2
  export declare function computeCycleAutoRejectTargets(slotCycles: Array<{
3
3
  path: string[];
4
4
  }>, graph: ComponentGraphNode[]): Set<string>;
@@ -1,5 +1,5 @@
1
- import type { SlotCycle } from './cycle-detection.js';
2
- import { type SlotGraphInput } from './slot-graph.js';
1
+ import type { SlotCycle } from '../../07-scope-gate/graph/cycle-detection.js';
2
+ import { type SlotGraphInput } from '../../07-scope-gate/graph/slot-graph.js';
3
3
  export interface CycleView {
4
4
  pushBlocking: SlotCycle[];
5
5
  structural: Set<string>;
@@ -1,4 +1,4 @@
1
- import type { Closure, NodeStatus } from './composite-closure.js';
1
+ import type { Closure, NodeStatus } from '../../07-scope-gate/graph/composite-closure.js';
2
2
  export interface RenderStatus {
3
3
  status: NodeStatus;
4
4
  isOwn: boolean;
@@ -1,3 +1,3 @@
1
- import type { ComponentGraphNode } from './composite-closure.js';
1
+ import type { ComponentGraphNode } from '../../07-scope-gate/graph/composite-closure.js';
2
2
  export declare function computeRejectCascade(target: string, components: ComponentGraphNode[]): Set<string>;
3
3
  export declare function computeAcceptCascade(target: string, components: ComponentGraphNode[]): Set<string>;
@@ -0,0 +1,4 @@
1
+ export interface CyclePanelLineCountable {
2
+ suggestedBreak?: unknown;
3
+ }
4
+ export declare function followCycleScroll(currentScroll: number, cursorIdx: number, cycles: readonly CyclePanelLineCountable[], panelHeight: number, preamble?: number): number;
@@ -1,5 +1,5 @@
1
1
  import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
2
- import type { SlotCycle, SlotEdge } from '../../../analyze/cycle-detection.js';
2
+ import type { SlotCycle, SlotEdge } from '../../07-scope-gate/graph/cycle-detection.js';
3
3
  export type BreakEdge = SlotEdge;
4
4
  /** Row shape accepted by {@link enumerateCycleBreaks}. */
5
5
  export interface BreakEnumComponent {
@@ -1,5 +1,5 @@
1
1
  import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
2
- import type { ReviewComponentStatus } from '../../analyze/select/types.js';
2
+ import type { ReviewComponentStatus } from './types.js';
3
3
  export interface HistorySnapshot {
4
4
  components: CdfReviewEntrySnapshot[];
5
5
  autoRejected: string[];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type TokenPropSuggestion } from '../../../analyze/select/tui/components/TokenReviewPanel.js';
3
- import type { ComponentRationale, ComponentReviewMetadata } from '../../../session/db.js';
2
+ import { type TokenPropSuggestion } from './components/TokenReviewPanel.js';
3
+ import type { ComponentRationale, ComponentReviewMetadata } from '@contentful/experience-design-system-backend-pipeline';
4
4
  type ReviewPanel = 'none' | 'prop-rationale' | 'component-rationale' | 'source' | 'token-review';
5
5
  export type ReviewDetailsPanelProps = {
6
6
  selectedKey: string;
@@ -1,5 +1,5 @@
1
- import type { ImmediateInputKey } from '../../../analyze/select/tui/hooks/useImmediateInput.js';
2
- import type { UseReviewEditorResult } from './useReviewEditor.js';
1
+ import type { ImmediateInputKey } from '../07-scope-gate/sidebar/hooks/useImmediateInput.js';
2
+ import type { UseReviewEditorResult } from './use-review-editor.js';
3
3
  type ReviewOverlayInputState = {
4
4
  loading: boolean;
5
5
  loadError: string | null;
@@ -1,7 +1,4 @@
1
1
  import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
2
- export declare class TimeoutError extends Error {
3
- constructor(message?: string);
4
- }
5
2
  export type LivePreviewResult = {
6
3
  generation: number;
7
4
  response: ServerPreviewResponse | null;
@@ -29,9 +26,8 @@ export type RunLivePreviewOptions = {
29
26
  };
30
27
  /**
31
28
  * Pure async helper used by `useLivePreview` to re-fire `previewImport` after a
32
- * FieldEditor save in the wizard's final-review step. Mirrors the round-1
33
- * `runScopeGate` shape: a side-effect-bearing pure orchestrator that owns no
34
- * React state.
29
+ * FieldEditor save in the wizard's final-review step. A side-effect-bearing
30
+ * pure orchestrator that owns no React state.
35
31
  *
36
32
  * Skips silently (returns `{ response: null }`) when any of `spaceId`,
37
33
  * `environmentId`, or `cmaToken` is missing — live preview is an enhancement
@@ -0,0 +1,26 @@
1
+ import type { DatabaseSync } from 'node:sqlite';
2
+ import type { HistorySnapshot } from './history.js';
3
+ import type { CdfReviewEntry, ReviewComponentStatus, TokenReviewToken } from './types.js';
4
+ export type ReviewSessionLoadResult<TExtra = undefined> = {
5
+ entries: CdfReviewEntry[];
6
+ tokens: TokenReviewToken[];
7
+ error: string | null;
8
+ extra?: TExtra;
9
+ };
10
+ export type ReviewSessionLoaderOptions<TExtra = undefined> = {
11
+ extractSessionId: string;
12
+ tokenSessionId?: string | null;
13
+ loadExtra?: (db: DatabaseSync, sessionId: string) => TExtra;
14
+ sortEntries: (entries: CdfReviewEntry[], extra: TExtra | undefined) => CdfReviewEntry[];
15
+ };
16
+ export declare function loadReviewSessionState<TExtra = undefined>({ extractSessionId, tokenSessionId, loadExtra, sortEntries, }: ReviewSessionLoaderOptions<TExtra>): ReviewSessionLoadResult<TExtra>;
17
+ export declare function createReviewHistorySnapshot(components: CdfReviewEntry[], options?: {
18
+ autoRejected?: readonly string[];
19
+ undoSnapshot?: ReadonlyMap<string, ReviewComponentStatus> | null;
20
+ }): HistorySnapshot;
21
+ export type ReviewFinalizeCounts = {
22
+ accepted: number;
23
+ rejected: number;
24
+ unresolved: number;
25
+ };
26
+ export declare function finalizeReviewSession(extractSessionId: string, components: CdfReviewEntry[]): ReviewFinalizeCounts;
@@ -0,0 +1,8 @@
1
+ import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
2
+ import type { TokenPropSuggestion, TokenReviewToken } from './types.js';
3
+ /**
4
+ * Design-token props on `entry` with a declared token kind. `paths` is the
5
+ * full compatible token universe when a token catalog is available; `allowed`
6
+ * remains the current subset.
7
+ */
8
+ export declare function collectTokenSuggestions(entry: CDFComponentEntry, availableTokens?: TokenReviewToken[]): TokenPropSuggestion[];
@@ -0,0 +1,19 @@
1
+ import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
2
+ export type ReviewComponentStatus = 'needs-review' | 'reviewed' | 'accepted' | 'rejected';
3
+ export type CdfReviewEntry = {
4
+ key: string;
5
+ entry: CDFComponentEntry;
6
+ status: ReviewComponentStatus;
7
+ };
8
+ export type ReviewPanel = 'none' | 'prop-rationale' | 'component-rationale' | 'source' | 'token-review';
9
+ export type TokenReviewToken = {
10
+ path: string;
11
+ kind: string;
12
+ };
13
+ export type TokenPropSuggestion = {
14
+ propName: string;
15
+ paths: string[];
16
+ suggested: string[];
17
+ allowed: string[];
18
+ };
19
+ export type PreviewAnnotation = 'new' | 'changed' | 'removed' | 'breaking';
@@ -1,6 +1,6 @@
1
1
  import type { ComponentTypeSummary } from '@contentful/experience-design-system-types';
2
2
  type FinalizePreviewStatus = 'idle' | 'running' | 'done' | 'error';
3
- export type UseFinalizePreviewOptions = {
3
+ type UseFinalizePreviewOptions = {
4
4
  /** True while the Finalize dialog is open. Toggling true (re)fires the preview. */
5
5
  open: boolean;
6
6
  extractSessionId: string | null;
@@ -26,14 +26,4 @@ export type UseReviewFinalizePreviewOptions = Omit<UseFinalizePreviewOptions, 'a
26
26
  }>;
27
27
  };
28
28
  export declare function useReviewFinalizePreview({ components, ...options }: UseReviewFinalizePreviewOptions): UseFinalizePreviewReturn;
29
- /**
30
- * Shared Finalize-dialog preview, used by both the composite and atomic
31
- * generate-review steps.
32
- *
33
- * When the dialog opens it fires a preview scoped to the ACCEPTED set (so the
34
- * result reflects exactly what the push does, independent of the session's
35
- * not-yet-reclassified generated rows), tracks loading/error, and owns the
36
- * scroll offset for the preview list.
37
- */
38
- export declare function useFinalizePreview(opts: UseFinalizePreviewOptions): UseFinalizePreviewReturn;
39
29
  export {};
@@ -1,7 +1,5 @@
1
1
  import { type Dispatch, type SetStateAction } from 'react';
2
- import { type TokenPropSuggestion, type TokenReviewToken } from '../../../analyze/select/tui/components/TokenReviewPanel.js';
3
- import type { CdfReviewEntry } from './useReviewSession.js';
4
- export type ReviewPanel = 'none' | 'prop-rationale' | 'component-rationale' | 'source' | 'token-review';
2
+ import type { CdfReviewEntry, ReviewPanel, TokenPropSuggestion, TokenReviewToken } from './types.js';
5
3
  type UseReviewEditorOptions = {
6
4
  components: CdfReviewEntry[];
7
5
  selectedIdx: number;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentTypeSummary, ServerPreviewResponse } from '@contentful/experience-design-system-types';
2
- import type { PreviewAnnotation } from '../../../analyze/select/types.js';
3
- import { type UseLivePreviewReturn } from '../useLivePreview.js';
2
+ import type { PreviewAnnotation } from './types.js';
3
+ import { type UseLivePreviewReturn } from './use-live-preview.js';
4
4
  export type UseReviewPreviewOptions = {
5
5
  components: ReadonlyArray<{
6
6
  key: string;
@@ -1,28 +1,8 @@
1
- import type { DatabaseSync } from 'node:sqlite';
2
1
  import { type Dispatch, type SetStateAction } from 'react';
3
- import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
4
- import { type ComponentRationale, type ComponentReviewMetadata } from '../../../session/db.js';
5
- import { type TokenReviewToken } from '../../../analyze/select/tui/components/TokenReviewPanel.js';
6
- import type { ReviewComponentStatus } from '../../../analyze/select/types.js';
7
- import { type HistorySnapshot } from '../history.js';
8
- export type CdfReviewEntry = {
9
- key: string;
10
- entry: CDFComponentEntry;
11
- status: ReviewComponentStatus;
12
- };
13
- export type ReviewSessionLoadResult<TExtra = undefined> = {
14
- entries: CdfReviewEntry[];
15
- tokens: TokenReviewToken[];
16
- error: string | null;
17
- extra?: TExtra;
18
- };
19
- export type ReviewSessionLoaderOptions<TExtra = undefined> = {
20
- extractSessionId: string;
21
- tokenSessionId?: string | null;
22
- loadExtra?: (db: DatabaseSync, sessionId: string) => TExtra;
23
- sortEntries: (entries: CdfReviewEntry[], extra: TExtra | undefined) => CdfReviewEntry[];
24
- };
25
- export declare function loadReviewSessionState<TExtra = undefined>({ extractSessionId, tokenSessionId, loadExtra, sortEntries, }: ReviewSessionLoaderOptions<TExtra>): ReviewSessionLoadResult<TExtra>;
2
+ import { type ComponentRationale, type ComponentReviewMetadata } from '@contentful/experience-design-system-backend-pipeline';
3
+ import { type HistorySnapshot } from './history.js';
4
+ import { type ReviewSessionLoadResult } from './session.js';
5
+ import type { CdfReviewEntry, TokenReviewToken } from './types.js';
26
6
  type UseReviewSessionOptions<TExtra> = {
27
7
  loadSession: () => ReviewSessionLoadResult<TExtra>;
28
8
  tokensPath?: string;
@@ -46,10 +26,6 @@ export declare function useReviewMetadata({ components, selectedIdx, extractSess
46
26
  reviewMetadata: ComponentReviewMetadata | null;
47
27
  componentRationale: ComponentRationale | null;
48
28
  };
49
- export declare function createReviewHistorySnapshot(components: CdfReviewEntry[], options?: {
50
- autoRejected?: readonly string[];
51
- undoSnapshot?: ReadonlyMap<string, ReviewComponentStatus> | null;
52
- }): HistorySnapshot;
53
29
  type UseReviewHistoryOptions = {
54
30
  loading: boolean;
55
31
  components: CdfReviewEntry[];
@@ -65,12 +41,6 @@ export declare function useReviewHistory({ loading, components, createSnapshot,
65
41
  handleRedo: () => void;
66
42
  resetHistory: (snapshot: HistorySnapshot) => void;
67
43
  };
68
- export type ReviewFinalizeCounts = {
69
- accepted: number;
70
- rejected: number;
71
- unresolved: number;
72
- };
73
- export declare function finalizeReviewSession(extractSessionId: string, components: CdfReviewEntry[]): ReviewFinalizeCounts;
74
44
  export type UseReviewFinalizeOptions = {
75
45
  showFinalize: boolean;
76
46
  extractSessionId: string;
@@ -89,7 +59,7 @@ export type UseReviewFinalizeOptions = {
89
59
  * final counts back to the wizard.
90
60
  */
91
61
  export declare function useReviewFinalize({ showFinalize, extractSessionId, tokensPath, spaceId, environmentId, cmaToken, host, components, onFinalize, }: UseReviewFinalizeOptions): {
92
- finalizePreview: import("../useFinalizePreview.js").UseFinalizePreviewReturn;
62
+ finalizePreview: import("./use-finalize-preview.js").UseFinalizePreviewReturn;
93
63
  handleFinalizeConfirm: () => void;
94
64
  };
95
65
  export {};
@@ -0,0 +1,22 @@
1
+ import type { ImportHandoff } from '@contentful/experience-design-system-types/handoff';
2
+ import type { ExtractionInput } from '../../06-extraction/types.js';
3
+ import type { FlowStart } from './controller.js';
4
+ interface SavedCredentials {
5
+ spaceId?: string;
6
+ environmentId?: string;
7
+ cmaToken?: string;
8
+ host?: string;
9
+ }
10
+ /**
11
+ * What the flow starts from. The credentials are the ones the user confirmed. When they skipped validation there are none
12
+ * to use, so the saved ones stand in, which is what the wizard did: it always read them from the store. The review's
13
+ * live preview and the push use them.
14
+ */
15
+ export declare function buildFlowStart(input: {
16
+ extraction: ExtractionInput;
17
+ handoff: ImportHandoff;
18
+ saved?: SavedCredentials;
19
+ generatePromptPath?: string;
20
+ tokensOnly?: FlowStart['tokensOnly'];
21
+ }): FlowStart;
22
+ export {};