@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
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- import type { ServerPreviewResponse, ApplyOperationResponse } from '@contentful/experience-design-system-types';
3
- interface ServerPreviewConfirmProps {
4
- preview: ServerPreviewResponse;
5
- spaceId: string;
6
- environmentId: string;
7
- breakingWithImpact: boolean;
8
- onConfirm: (acknowledge: boolean) => void;
9
- onCancel: () => void;
10
- }
11
- export declare function ServerPreviewConfirm({ preview, spaceId, environmentId, breakingWithImpact, onConfirm, onCancel, }: ServerPreviewConfirmProps): React.ReactElement;
12
- interface ServerPreviewAppProps {
13
- preview: ServerPreviewResponse;
14
- spaceId: string;
15
- environmentId: string;
16
- }
17
- export declare function ServerPreviewApp({ preview, spaceId, environmentId }: ServerPreviewAppProps): React.ReactElement;
18
- interface ServerApplyProgressProps {
19
- spaceId: string;
20
- environmentId: string;
21
- status: 'applying' | 'polling' | 'error';
22
- operationId?: string;
23
- error?: string;
24
- }
25
- export declare function ServerApplyProgress({ spaceId, environmentId, status, operationId, error, }: ServerApplyProgressProps): React.ReactElement;
26
- interface ServerApplyDoneProps {
27
- operation: ApplyOperationResponse;
28
- spaceId: string;
29
- environmentId: string;
30
- /** Configured API host (e.g. `api.contentful.com`). Used to derive the post-push webapp URL. */
31
- host?: string;
32
- }
33
- export declare function ServerApplyDone({ operation, spaceId, environmentId, host }: ServerApplyDoneProps): React.ReactElement;
34
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
3
- interface ServerPreviewViewProps {
4
- preview: ServerPreviewResponse;
5
- spaceId: string;
6
- environmentId: string;
7
- }
8
- export declare function ServerPreviewView({ preview, spaceId, environmentId }: ServerPreviewViewProps): React.ReactElement;
9
- export {};
@@ -1,18 +0,0 @@
1
- export type ExperiencesCredentials = {
2
- spaceId: string;
3
- environmentId: string;
4
- cmaToken: string;
5
- host?: string;
6
- agent?: string;
7
- agentModel?: string;
8
- /** Feature 8: persisted custom prompt path for `generate components`. */
9
- generatePromptPath?: string;
10
- /** Write JSONL trace of every command decision to ~/.contentful/experience-design-system-cli/debug/. */
11
- debug?: boolean;
12
- /** Print plain text with no color; an exported NO_COLOR still wins. */
13
- noColor?: boolean;
14
- analyticsDisabled?: boolean;
15
- };
16
- export declare function readExperiencesCredentials(): Promise<ExperiencesCredentials>;
17
- export declare function writeExperiencesCredentials(creds: ExperiencesCredentials): Promise<void>;
18
- export declare function experiencesCredentialsPath(): string;
@@ -1,5 +0,0 @@
1
- export declare function reportNode(): Promise<boolean>;
2
- export declare function reportPnpm(pkgRoot: string): Promise<boolean>;
3
- export declare function reportDependencies(pkgRoot: string): Promise<boolean>;
4
- export declare function reportBuild(pkgRoot: string): Promise<boolean>;
5
- export declare function reportAgent(): Promise<boolean>;
@@ -1,2 +0,0 @@
1
- import type { Command } from 'commander';
2
- export declare function registerDoctorCommand(program: Command): void;
@@ -1,7 +0,0 @@
1
- export declare function ok(msg: string): void;
2
- export declare function fail(msg: string): void;
3
- export declare function warn(msg: string): void;
4
- export declare function info(msg: string): void;
5
- export declare function section(title: string): void;
6
- /** Echo the first `limit` lines of a failed command's stderr. */
7
- export declare function infoStderr(stderr: string, limit: number): void;
@@ -1,2 +0,0 @@
1
- import type { Command } from 'commander';
2
- export declare function registerInternalGenerateCommand(program: Command): void;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface GenerateViewResult {
3
- skill: string;
4
- agent: string;
5
- sessionId: string;
6
- }
7
- interface GenerateViewProps {
8
- result: GenerateViewResult;
9
- onExit: () => void;
10
- }
11
- export declare function GenerateView({ result, onExit }: GenerateViewProps): React.ReactElement;
12
- export {};
@@ -1,7 +0,0 @@
1
- import { type PlainClientAPI } from 'contentful-management';
2
- interface BuildContentfulManagementClientOptions {
3
- cmaToken: string;
4
- host?: string;
5
- }
6
- export declare function buildContentfulManagementClient(opts: BuildContentfulManagementClientOptions): PlainClientAPI;
7
- export {};
@@ -1,29 +0,0 @@
1
- import { type ExistingContentfulEntities } from './fetch-existing-contentful-entities.js';
2
- export interface FetchAndPersistParams {
3
- spaceId: string;
4
- environmentId: string;
5
- cmaToken: string;
6
- host?: string;
7
- outDir: string;
8
- }
9
- export interface FetchAndPersistSuccess {
10
- ok: true;
11
- path: string;
12
- durationMs: number;
13
- entities: ExistingContentfulEntities;
14
- }
15
- export interface FetchAndPersistFailure {
16
- ok: false;
17
- durationMs: number;
18
- error: string;
19
- }
20
- export type FetchAndPersistResult = FetchAndPersistSuccess | FetchAndPersistFailure;
21
- /**
22
- * Build the Contentful management client, fetch the target space's Components
23
- * and DesignTokens, and write the raw payload to `<outDir>/.existing-entities.json`.
24
- *
25
- * Never throws — a failure is reported via `ok: false`. Callers own the
26
- * user-facing step/progress reporting. This helper only handles the mechanical
27
- * fetch-then-write and returns a structured result.
28
- */
29
- export declare function fetchAndPersistExistingContentfulEntities(params: FetchAndPersistParams): Promise<FetchAndPersistResult>;
@@ -1,11 +0,0 @@
1
- import { type ComponentProps, type DesignTokenProps, type PlainClientAPI } from 'contentful-management';
2
- export interface ExistingContentfulEntities {
3
- components: ComponentProps[];
4
- tokens: DesignTokenProps[];
5
- }
6
- interface FetchExistingContentfulEntitiesParams {
7
- spaceId: string;
8
- environmentId: string;
9
- }
10
- export declare function fetchExistingContentfulEntitiesFromContentful(client: PlainClientAPI, params: FetchExistingContentfulEntitiesParams): Promise<ExistingContentfulEntities>;
11
- export {};
@@ -1,7 +0,0 @@
1
- import type { ComponentProps } from 'contentful-management';
2
- /**
3
- * Find the space component whose name is closest to the codebase component name,
4
- * within a small edit budget. Handles case, punctuation, and plural differences
5
- * so `Btn-Primary` matches `btnPrimary`, and `Cards` matches `Card`.
6
- */
7
- export declare function findNearlyMatchingComponent(components: ComponentProps[], codebaseName: string): ComponentProps | undefined;
@@ -1,7 +0,0 @@
1
- import type { ExistingContentfulEntities } from './fetch-existing-contentful-entities.js';
2
- /**
3
- * Read the session file written after
4
- * `fetchExistingContentfulEntitiesFromContentful()`. Returns undefined on
5
- * any failure — this is optional enrichment and must never block the step.
6
- */
7
- export declare function readExistingContentfulEntitiesFromSession(path: string | undefined): Promise<ExistingContentfulEntities | undefined>;
@@ -1,50 +0,0 @@
1
- import type { ExistingContentfulEntities } from './fetch-existing-contentful-entities.js';
2
- export interface SelectAgentSummary {
3
- components: Array<{
4
- id: string;
5
- name: string;
6
- description: string;
7
- }>;
8
- tokens: {
9
- count: number;
10
- kinds: string[];
11
- };
12
- }
13
- export interface GenerateAgentSummary {
14
- likelyMatch?: {
15
- id: string;
16
- name: string;
17
- designProperties: Array<{
18
- id: string;
19
- name: string;
20
- type: string;
21
- }>;
22
- contentProperties: Array<{
23
- id: string;
24
- name: string;
25
- type: string;
26
- }>;
27
- slots: Array<{
28
- id: string;
29
- name: string;
30
- }>;
31
- };
32
- otherComponents: Array<{
33
- id: string;
34
- name: string;
35
- }>;
36
- tokens: {
37
- count: number;
38
- kinds: string[];
39
- };
40
- }
41
- export interface MapTokensSummary {
42
- tokens: Array<{
43
- id: string;
44
- name: string;
45
- type: string;
46
- }>;
47
- }
48
- export declare function summarizeForSelectAgent(entities: ExistingContentfulEntities): SelectAgentSummary;
49
- export declare function summarizeForGenerateAgent(entities: ExistingContentfulEntities, codebaseComponentName: string): GenerateAgentSummary;
50
- export declare function summarizeForMapTokens(entities: ExistingContentfulEntities): MapTokensSummary;
@@ -1,3 +0,0 @@
1
- export declare const DEFAULT_CONFIGURED_HOST = "api.contentful.com";
2
- export declare function toConfiguredHost(host?: string): string | undefined;
3
- export declare function toApiHost(host?: string): string;
@@ -1,27 +0,0 @@
1
- /**
2
- * Resolution chain for the combined `--agent` override on `experiences import`.
3
- *
4
- * The wizard path previously hard-defaulted `--agent` to `'claude'` at the
5
- * commander layer, which (a) shadowed the stored `credentials.json` value when
6
- * the user passed no flag, and (b) made it impossible to distinguish "user
7
- * explicitly passed --agent claude" from "user passed nothing". The combined
8
- * flag accepts either `agent:model` or `agent model`.
9
- *
10
- * These helpers produce the resolved values to feed into `WizardApp` /
11
- * the import wizard:
12
- *
13
- * 1. CLI flag wins when provided.
14
- * 2. Otherwise, the value persisted in `credentials.json` (written by
15
- * `experiences setup`) is used.
16
- * 3. Otherwise, the built-in default (currently `'claude'`) is used for
17
- * the agent. Model has no default — agents pick a small/fast model
18
- * themselves when no model is included in `--agent`.
19
- */
20
- /** Built-in fallback agent when neither a flag nor a stored preference is set. */
21
- export declare const DEFAULT_AGENT = "claude";
22
- export declare function parseAgentModel(value: string | undefined): {
23
- agent?: string;
24
- model?: string;
25
- };
26
- export declare function resolveAgent(flagValue: string | undefined, storedValue: string | undefined): string;
27
- export declare function resolveModel(flagValue: string | undefined, storedValue: string | undefined): string | undefined;
@@ -1,2 +0,0 @@
1
- import type { Command } from 'commander';
2
- export declare function registerImportCommand(program: Command): void;
@@ -1,7 +0,0 @@
1
- export type CompositionOptionInput = {
2
- prompt?: string[];
3
- };
4
- export type CompositionForwardingOptions = {
5
- promptOverrides?: string[];
6
- };
7
- export declare function buildCompositionForwardingOptions(options: CompositionOptionInput): CompositionForwardingOptions;
@@ -1,67 +0,0 @@
1
- import React from 'react';
2
- import type { CDFDocument, CDFComponentEntry, DTCGTokenEntry } from '@contentful/experience-design-system-types';
3
- import { type AgentAuthStatus } from '@contentful/experience-design-system-generation';
4
- export declare function buildGenerateComponentsArgs(opts: {
5
- sessionId: string;
6
- tokensPath?: string;
7
- agent: string;
8
- model?: string;
9
- bedrock?: boolean;
10
- noCache?: boolean;
11
- generatePromptPath?: string;
12
- promptOverrides?: string[];
13
- existingEntitiesPath?: string;
14
- restoreCache?: boolean;
15
- cachedComponents?: string[];
16
- }): string[];
17
- export declare function buildGenerateTokensArgs(opts: {
18
- rawTokensPath: string;
19
- agent: string;
20
- model?: string;
21
- bedrock?: boolean;
22
- noCache?: boolean;
23
- promptOverrides?: string[];
24
- }): string[];
25
- export declare function buildMapTokensArgs(opts: {
26
- sessionId: string;
27
- agent: string;
28
- model?: string;
29
- noCache?: boolean;
30
- skipAgent?: boolean;
31
- promptOverrides?: string[];
32
- existingEntitiesPath?: string;
33
- }): string[];
34
- export declare function shouldRunMapTokens(opts: {
35
- mappablePropCount: number;
36
- rawTokenCount: number;
37
- }): boolean;
38
- export declare function buildSavedCDF(components: Array<{
39
- key: string;
40
- entry: CDFComponentEntry;
41
- }>, tokens: DTCGTokenEntry[], opts?: {
42
- deleteAll?: boolean;
43
- }): CDFDocument;
44
- export declare function formatAcceptanceSummary(opts: {
45
- accepted: number;
46
- autoRejected: number;
47
- }): string;
48
- export declare function parsePrintTokensCount(stdout: string): number;
49
- export type WizardAppProps = {
50
- initialSpaceId?: string;
51
- initialEnvironmentId?: string;
52
- initialCmaToken?: string;
53
- initialHost?: string;
54
- initialAgent?: string;
55
- initialModel?: string;
56
- bedrock?: boolean;
57
- initialProjectPath?: string;
58
- host?: string;
59
- promptOverrides?: string[];
60
- noCache?: boolean;
61
- livePreview?: boolean;
62
- generatePromptPath?: string;
63
- skipMapTokens?: boolean;
64
- initialRawTokensPath?: string;
65
- initialAgentAuth?: Promise<AgentAuthStatus>;
66
- };
67
- export declare function WizardApp({ initialSpaceId, initialEnvironmentId, initialCmaToken, initialHost, initialAgent, initialModel, bedrock, initialProjectPath, host, promptOverrides, noCache, livePreview, generatePromptPath, skipMapTokens, initialRawTokensPath, initialAgentAuth, }?: WizardAppProps): React.ReactElement;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function legendEntry(keyBracket: string, label: string, active?: boolean): React.ReactElement;
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import type { ComponentTypeSummary } from '@contentful/experience-design-system-types';
3
- import type { UseFinalizePreviewReturn } from '../useFinalizePreview.js';
4
- import type { UseReviewSurfaceStateResult } from '../hooks/useReviewSurfaceState.js';
5
- import { type ReviewStatusEntry } from './ReviewStatus.js';
6
- export type ReviewFinalizeDialogsProps = {
7
- showFinalize: boolean;
8
- showQuit: boolean;
9
- components: ReadonlyArray<ReviewStatusEntry>;
10
- removed?: ComponentTypeSummary[];
11
- previewStatus?: 'idle' | 'running' | 'done' | 'error';
12
- removedScrollOffset?: number;
13
- onFinalizeConfirm: () => void;
14
- onFinalizeCancel: () => void;
15
- onQuitConfirm: () => void;
16
- onQuitCancel: () => void;
17
- };
18
- export declare function ReviewFinalizeDialogs({ showFinalize, showQuit, components, removed, previewStatus, removedScrollOffset, onFinalizeConfirm, onFinalizeCancel, onQuitConfirm, onQuitCancel, }: ReviewFinalizeDialogsProps): React.ReactElement;
19
- export declare function ReviewStepDialogs({ surfaceState, components, finalizePreview, onFinalize, onQuit, }: {
20
- surfaceState: UseReviewSurfaceStateResult;
21
- components: ReadonlyArray<ReviewStatusEntry>;
22
- finalizePreview: UseFinalizePreviewReturn;
23
- onFinalize: () => void;
24
- onQuit: () => void;
25
- }): React.ReactElement;
26
- export declare function ReviewReloadDialog({ open }: {
27
- open: boolean;
28
- }): React.ReactElement | null;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type StepHeaderProps = {
3
- stepNumber: number;
4
- totalSteps: number;
5
- title: string;
6
- };
7
- export declare function StepHeader({ stepNumber, totalSteps, title }: StepHeaderProps): React.ReactElement;
8
- export {};
@@ -1,8 +0,0 @@
1
- export declare const CYCLE_PANEL_PREAMBLE_LINES = 4;
2
- export interface CyclePanelLineCountable {
3
- suggestedBreak?: unknown;
4
- }
5
- export declare function cycleLineCount(cycle: CyclePanelLineCountable): number;
6
- export declare function cycleLineOffsets(cycles: readonly CyclePanelLineCountable[], preamble?: number): number[];
7
- export declare function totalCyclePanelLines(cycles: readonly CyclePanelLineCountable[], preamble?: number): number;
8
- export declare function followCycleScroll(currentScroll: number, cursorIdx: number, cycles: readonly CyclePanelLineCountable[], panelHeight: number, preamble?: number): number;
@@ -1,68 +0,0 @@
1
- /** Maximum layout rows; the active terminal height determines the actual budget. */
2
- export declare const VISIBLE_COUNT = 200;
3
- /** Maximum supported panel window; normal terminals remain terminal-sized. */
4
- export declare const MAX_PANEL_ROWS = 200;
5
- /** Floors — both surfaces stay usable even on a small terminal. */
6
- export declare const SIDEBAR_MIN = 4;
7
- export declare const MIN_PANEL_ROWS = 4;
8
- /**
9
- * Fallback when `stdout.rows` is unavailable (piped output, tests). No TTY
10
- * means Ink is not interactively repainting, so there is no flicker risk — we
11
- * assume enough height for a terminal-sized sidebar so the non-interactive
12
- * render is complete and unclipped.
13
- */
14
- export declare const FALLBACK_ROWS = 40;
15
- /**
16
- * Vertical space consumed by everything ABOVE/BELOW the columns row. The panel
17
- * shares the columns row, so the fit constraint while open is simply
18
- * `FIXED_OVERHEAD + panelBoxHeight <= rows`.
19
- */
20
- export declare const FIXED_OVERHEAD: number;
21
- export declare const PANEL_BOX_CHROME = 6;
22
- /**
23
- * L2e — fixed vertical chrome around the sidebar in the BASE (no-panel) case,
24
- * counting EVERYTHING that is not a variable sidebar entry row: the wizard
25
- * header bar, the counter strip (with its blank separator), the cycle banner,
26
- * the nothing-selected /
27
- * AI-exclusion hint, the GroupedSidebar box borders + scroll indicator, the
28
- * focused-detail block, and the wrapping legend region. The value intentionally
29
- * leaves a small safety margin so resize-induced wrapping does not overflow.
30
- */
31
- export declare const BASE_CHROME_OVERHEAD = 18;
32
- export interface LineageLayoutInput {
33
- /** Terminal height in rows (`stdout.rows`, or the fallback). */
34
- rows: number;
35
- /** Whether the lineage panel is currently open. */
36
- panelOpen: boolean;
37
- /** Number of lineage entries — caps the panel window so it never over-allocates. */
38
- entryCount?: number;
39
- }
40
- export interface LineageLayout {
41
- /** Rows the sidebar should render (`visibleCount`). Constant across open/closed. */
42
- sidebarVisible: number;
43
- /** Rows a sidebar replacement panel should window to (`maxRows`). */
44
- panelMaxRows: number;
45
- }
46
- /**
47
- * The sidebar height is constant (the panel replaces it in the same slot, so
48
- * there is nothing to shrink). Both values are derived from the terminal so
49
- * resizing grows or shrinks the viewport without content-driven layout changes.
50
- */
51
- export declare function computeLineageLayout({ rows, panelOpen, entryCount }: LineageLayoutInput): LineageLayout;
52
- export interface SidebarBudget {
53
- /** Rows the GroupedSidebar should render (`visibleCount`). */
54
- sidebarVisibleCount: number;
55
- /** Rows a sidebar replacement panel should window to (`maxRows`). */
56
- panelMaxRows: number;
57
- }
58
- /**
59
- * L2e — autoscale the BASE frame to the terminal height. Even with the lineage
60
- * panel closed, the visible-row budget follows `stdout.rows` minus
61
- * `BASE_CHROME_OVERHEAD` so the whole frame stays within the terminal while
62
- * preserving the shared panel-open sizing behavior.
63
- *
64
- * Floor: `BASE_CHROME_OVERHEAD + SIDEBAR_MIN`. Below it `SIDEBAR_MIN`
65
- * (usability) intentionally wins over the fit — a terminal that small can't
66
- * host the chrome regardless.
67
- */
68
- export declare function computeSidebarBudget({ rows, panelOpen, entryCount }: LineageLayoutInput): SidebarBudget;
@@ -1,9 +0,0 @@
1
- import { type AgentName } from '@contentful/experience-design-system-generation';
2
- export declare function runSelectionAgent(options: {
3
- sessionId: string;
4
- agent: AgentName;
5
- model?: string;
6
- promptText?: string;
7
- promptPath?: string;
8
- noCache?: boolean;
9
- }): Promise<void>;
@@ -1,12 +0,0 @@
1
- export declare function runScopeGate(opts: {
2
- sessionId: string;
3
- decisions: {
4
- accepted: string[];
5
- rejected: string[];
6
- };
7
- onAdvanceToGenerate: (info: {
8
- sessionId: string;
9
- acceptedCount: number;
10
- }) => Promise<void> | void;
11
- onAdvanceToPushFlow: (acceptedCount: number) => Promise<void> | void;
12
- }): Promise<void>;
@@ -1,33 +0,0 @@
1
- /**
2
- * Extracted spawn helper for the `generate components` subprocess.
3
- *
4
- * Why this exists: the wizard now kicks off generation from TWO call sites —
5
- * the post-credentials path (`runGenerate`) AND a pre-fetch from scope-gate
6
- * confirm (Change 2 in the prefetch spec). Both need the same spawn-and-stream
7
- * behavior but the await-on-exit happens at different times. Keeping `runGenerate`
8
- * as a thin wrapper around this helper lets the pre-fetch path stash the
9
- * `donePromise` in a ref and resolve it later.
10
- *
11
- * Subprocess hygiene: we listen for 'close' (not 'exit') when surfacing the
12
- * final result so the child's stdio + any inherited file handles (e.g. the
13
- * pipeline SQLite WAL/SHM) have been fully released by the OS before the
14
- * wizard re-enters that path. This applies the same lesson as
15
- * fix/auto-filter-db-lock.
16
- */
17
- import { type ChildProcess } from 'node:child_process';
18
- export type SpawnGenerateResult = {
19
- exitCode: number;
20
- signal: NodeJS.Signals | null;
21
- stdout: string;
22
- stderr: string;
23
- };
24
- export type SpawnGenerateOpts = {
25
- command: string;
26
- args: string[];
27
- onStderr?: (chunk: string) => void;
28
- onStdout?: (chunk: string) => void;
29
- };
30
- export declare function spawnGenerateChild(opts: SpawnGenerateOpts): {
31
- child: ChildProcess;
32
- donePromise: Promise<SpawnGenerateResult>;
33
- };
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- type CredentialsStepProps = {
3
- summary?: string;
4
- error?: string;
5
- initialSpaceId?: string;
6
- initialEnvironmentId?: string;
7
- initialCmaToken?: string;
8
- initialHost?: string;
9
- /**
10
- * When true, the credentials screen stays mounted but locks input and shows
11
- * an inline "Validating credentials..." status. Replaces the previous
12
- * dedicated `validating-credentials` render screen so the operator sees a
13
- * continuous credentials surface instead of a transient loading screen
14
- * (Change 1 of the wizard prefetch refactor).
15
- */
16
- validating?: boolean;
17
- /** Background validation of unchanged prefilled credentials; input remains editable. */
18
- backgroundValidating?: boolean;
19
- /** Inline status describing in-flight background generation prefetch. */
20
- generatePrefetchStatus?: 'idle' | 'running' | 'complete' | 'failed';
21
- /** Error message from a failed generation prefetch (rendered as a banner). */
22
- generatePrefetchError?: string | null;
23
- /** Called when the user submits with any field changed from its initial value */
24
- onConfirm: (spaceId: string, environmentId: string, cmaToken: string, host: string) => void;
25
- onValuesChange?: (spaceId: string, environmentId: string, cmaToken: string, host: string) => void;
26
- /** Called when the user submits without changing any field (use existing creds as-is) */
27
- onContinue?: (spaceId: string, environmentId: string, cmaToken: string, host: string) => void;
28
- onQuit: () => void;
29
- /**
30
- * Optional retry callback wired up when a background generation prefetch
31
- * failed mid-credentials-entry. The operator presses R to re-trigger.
32
- */
33
- onRetryPrefetch?: () => void;
34
- /**
35
- * Skip-credentials escape hatch. When pressed (via `s` keybind, gated
36
- * against text-entry mode), the wizard advances without validating
37
- * credentials and disables push downstream. See dsi-tui-skip-credentials
38
- * spec.
39
- */
40
- onSkip?: () => void;
41
- };
42
- export declare function CredentialsStep({ summary, error: externalError, initialSpaceId, initialEnvironmentId, initialCmaToken, initialHost, validating, backgroundValidating, generatePrefetchStatus, generatePrefetchError, onConfirm, onValuesChange, onContinue, onQuit, onRetryPrefetch, onSkip, }: CredentialsStepProps): React.ReactElement;
43
- export {};
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- type GateStepProps = {
3
- successMessage: string;
4
- summary?: string;
5
- context?: string;
6
- continueLabel?: string;
7
- skipLabel?: string;
8
- onContinue: () => void;
9
- onSkip?: () => void;
10
- onQuit: () => void;
11
- showSkip?: boolean;
12
- intent?: 'success' | 'error';
13
- };
14
- export declare function GateStep({ successMessage, summary, context, continueLabel, skipLabel, onContinue, onSkip, onQuit, showSkip, intent, }: GateStepProps): React.ReactElement;
15
- export {};
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import type { BreakingChange, CDFComponentEntry, ComponentTypeSummary, DownstreamImpact, ServerPreviewResponse } from '@contentful/experience-design-system-types';
3
- type GenerateReviewStepProps = {
4
- extractSessionId: string | null;
5
- tokenSessionId?: string | null;
6
- onFinalize: (accepted: number, rejected: number, unresolved: number) => void;
7
- onQuit: () => void;
8
- livePreview?: boolean;
9
- spaceId?: string;
10
- environmentId?: string;
11
- cmaToken?: string;
12
- host?: string;
13
- tokensPath?: string;
14
- initialFinalizeError?: string | null;
15
- };
16
- export declare function sortComponentsForSidebar<T extends {
17
- key: string;
18
- entry: CDFComponentEntry;
19
- }>(components: T[], cycleParticipants?: Set<string>): T[];
20
- export { computeCycleAutoRejectTargets } from '../../cycle-auto-reject.js';
21
- export interface BreakingComponent {
22
- componentName: string;
23
- changes: BreakingChange[];
24
- impact?: DownstreamImpact;
25
- current?: ComponentTypeSummary;
26
- }
27
- export interface BreakingRow {
28
- label: string;
29
- componentName: string;
30
- focusTarget?: {
31
- kind: 'prop' | 'slot';
32
- name: string;
33
- };
34
- }
35
- export declare function buildBreakingRows(breakingChanges: BreakingComponent[]): BreakingRow[];
36
- export declare function deriveBreakingChanges(response: ServerPreviewResponse): BreakingComponent[];
37
- export declare function GenerateReviewStep(props: GenerateReviewStepProps): React.ReactElement;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- type PathValidationStepProps = {
3
- projectPath: string;
4
- onConfirm: (projectPath: string) => void;
5
- onSkipComponents: () => void;
6
- onChangePath: () => void;
7
- onQuit: () => void;
8
- };
9
- export declare function PathValidationStep({ projectPath, onConfirm, onSkipComponents, onChangePath, onQuit, }: PathValidationStepProps): React.ReactElement;
10
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { PreviewValidationError } from '../../../apply/api-client.js';
3
- type PreviewValidationErrorStepProps = {
4
- errors: PreviewValidationError[];
5
- missingNames: string[];
6
- onEdit: () => void;
7
- onSkip: () => void;
8
- onQuit: () => void;
9
- };
10
- export declare function PreviewValidationErrorStep({ errors, missingNames, onEdit, onSkip, onQuit, }: PreviewValidationErrorStepProps): React.ReactElement;
11
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { PushProgress } from '../push-progress.js';
3
- type PushingStepProps = {
4
- stepNumber: number;
5
- totalSteps: number;
6
- progress: PushProgress;
7
- };
8
- export declare function PushingStep({ stepNumber, totalSteps, progress }: PushingStepProps): React.ReactElement;
9
- export {};