@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,49 +0,0 @@
1
- import type { CompositionEdge } from './interchange-schema.js';
2
- type CandidateFile = {
3
- path: string;
4
- content: string;
5
- };
6
- type ComponentRef = {
7
- name: string;
8
- sourcePath?: string;
9
- };
10
- /**
11
- * Prompt-injection safeguard for this signal: both parsers below are plain
12
- * deterministic code, never an LLM prompt. `manifest.json`/`AGENTS.md`
13
- * content is attacker-adjacent (Figma-authored / free-form prose respectively)
14
- * but it only ever flows through JSON field access and a fixed regex, then is
15
- * validated against the real `componentNames` allowlist before an edge is
16
- * emitted — there is no path from this file's content to model instructions.
17
- */
18
- /** Figma/manifest names are kebab-case (`blue-accordion-item`); React exports are PascalCase. */
19
- export declare function kebabToPascal(name: string): string;
20
- /**
21
- * Deterministic parse of a Figma-exported `manifest.json` — no LLM involved.
22
- * Schema (confirmed against a real design-system manifest):
23
- * { component: { name: "blue-accordion" },
24
- * variantsMeta: { componentPropertyDefinitions: {
25
- * "Slot#1533:33": { type: "SLOT", preferredValues: [{ name: "blue-accordion-item" }] }
26
- * } } }
27
- * The manifest's own `component.name` identifies its owning/parent component
28
- * (more robust than inferring from directory proximity, since manifest.json
29
- * typically lives one level below the component's source file, e.g. in a
30
- * sibling `design/` directory).
31
- */
32
- export declare function collectManifestEdges(files: CandidateFile[], componentNames: ReadonlySet<string>): CompositionEdge[];
33
- /**
34
- * Deterministic parse of a component-level `AGENTS.md` — no LLM involved.
35
- * Only a bold-backtick component mention (`` **`ComponentName`** ``) on a
36
- * line that ALSO carries a composition keyword is accepted, e.g. "Direct
37
- * **`AccordionItem`** children only." A bare cross-reference mention (no
38
- * composition keyword on the same line, e.g. "see `other-component`") is
39
- * rejected — it isn't asserting a parent-child relationship.
40
- *
41
- * The doc's owning component is resolved by directory colocation: the
42
- * component whose `sourcePath` sits in the same directory as the doc file
43
- * (the real-world convention — `<component>/AGENTS.md` next to
44
- * `<component>/Component.tsx`).
45
- */
46
- export declare function collectAgentsDocEdges(files: CandidateFile[], components: ComponentRef[], componentNames: ReadonlySet<string>): CompositionEdge[];
47
- /** Both deterministic sources, combined for the `extraEdges` wiring in command.ts. */
48
- export declare function collectManifestDocEdges(files: CandidateFile[], components: ComponentRef[], componentNames: ReadonlySet<string>): CompositionEdge[];
49
- export {};
@@ -1,19 +0,0 @@
1
- import type { CompositionEdge, EdgeProvenance } from './interchange-schema.js';
2
- export type EdgeConflict = {
3
- parent: string;
4
- child: string;
5
- winner: EdgeProvenance;
6
- loser: EdgeProvenance;
7
- };
8
- export type MergeResult = {
9
- edges: CompositionEdge[];
10
- conflicts: EdgeConflict[];
11
- };
12
- /**
13
- * Union all edges, resolving conflicts by provenance rank. A conflict is two
14
- * edges that share `parent::child` but disagree on existence-detail (here:
15
- * slot placement). The higher-ranked edge wins; the loser is recorded (never
16
- * silently dropped) so the review UI can surface it. Identical edges (same
17
- * parent/child/slot) collapse to the highest-ranked copy with no conflict.
18
- */
19
- export declare function mergeEdges(all: CompositionEdge[]): MergeResult;
@@ -1,16 +0,0 @@
1
- import type { CompositionEdge } from './interchange-schema.js';
2
- /**
3
- * Lenient JSONL parser for the composition-mapping agent's tool-call output
4
- * (spec T4). Mirrors `parseSelectToolCallLines` / `parseToolCallLines` in
5
- * `@contentful/experience-design-system-generation`'s `agent-runner.ts`: one JSON object per line, each with a `tool`
6
- * field from a fixed allowlist. A line that fails JSON.parse or validation is
7
- * DROPPED into `warnings[]` (with a reason) and parsing CONTINUES — no retry,
8
- * no throw. Non-`{` prose and blank lines are skipped silently.
9
- */
10
- export type ParseMapEdgesResult = {
11
- edges: CompositionEdge[];
12
- warnings: string[];
13
- };
14
- export declare function parseMapEdges(raw: string, opts: {
15
- componentNames: Set<string>;
16
- }): ParseMapEdgesResult;
@@ -1,3 +0,0 @@
1
- /** Resolve a bundled composition prompt from the package-root prompts directory. */
2
- export declare function resolvePromptPath(fileName: string): string;
3
- export declare function loadPrompt(fileName: string): string;
@@ -1,10 +0,0 @@
1
- export type CompositionCliOptions = {
2
- /** `--composition-refresh` — force edge emission to run even over resolved residue. */
3
- compositionRefresh?: boolean;
4
- /** `--no-cache` — force the composition agent to rerun with the rest of the pipeline. */
5
- noCache?: boolean;
6
- };
7
- export type ResolvedCompositionSources = {
8
- forceAgent: boolean;
9
- };
10
- export declare function resolveCompositionSources(opts: CompositionCliOptions): ResolvedCompositionSources;
@@ -1,59 +0,0 @@
1
- import type { RawComponentDefinition } from '../../types.js';
2
- import type { CompositionEdge } from './interchange-schema.js';
3
- import { type EdgeConflict } from './merge-edges.js';
4
- export type ResolveMappingResult = {
5
- components: RawComponentDefinition[];
6
- edges: CompositionEdge[];
7
- conflicts: EdgeConflict[];
8
- warnings: string[];
9
- };
10
- /**
11
- * Orchestrate composition-edge acquisition and enrichment.
12
- *
13
- * Sources by rank: typed-slot / "code slots" (2) > structural usage evidence
14
- * (3) > manifest (4) > doc (5) > adapter-resolved / extraEdges (6) >
15
- * edge-emitting agent (7). Manifest/doc edges are computed deterministically outside
16
- * this function (see manifest-doc-evidence.ts) and joined via `extraEdges`.
17
- * ALL sources — including the code slots already on the incoming components —
18
- * are fed into one ranked merge and unioned; non-conflicting edges from every
19
- * source survive, and on a conflict (same parent+child, different slot) the
20
- * higher-rank source wins and the loser is recorded. The edge-emitting agent runs only when
21
- * `forceAgent` is set OR there is residue a higher-rank source
22
- * didn't cover (routing/cost optimization) — `forceAgent` bypasses that
23
- * suppression but never changes rank.
24
- *
25
- * `runAgentFn` is injected (returns the agent's raw stdout) so this is
26
- * testable without spawning a subprocess.
27
- */
28
- export declare function resolveMapping(input: {
29
- components: RawComponentDefinition[];
30
- forceAgent?: boolean;
31
- files: Array<{
32
- path: string;
33
- content: string;
34
- }>;
35
- runAgentFn: (opts: {
36
- prompt: string;
37
- files: Array<{
38
- path: string;
39
- content: string;
40
- }>;
41
- }) => Promise<string>;
42
- buildPrompt?: (files: Array<{
43
- path: string;
44
- content: string;
45
- }>, componentNames: string[]) => string;
46
- /**
47
- * Custom instruction preamble (from `--prompt composition=...`). Replaces the
48
- * default guidance line ONLY; the machine-readable output contract + the
49
- * component-name allowlist + candidate files are always appended so the
50
- * JSONL parser keeps working regardless of the override.
51
- */
52
- promptOverride?: string;
53
- /**
54
- * Pre-resolved edges from an external source (e.g. manifest or documentation)
55
- * path). They join the ranked merge at their own provenance rank alongside
56
- * code slots and other automatic mapping sources.
57
- */
58
- extraEdges?: CompositionEdge[];
59
- }): Promise<ResolveMappingResult>;
@@ -1,7 +0,0 @@
1
- import type { Command } from 'commander';
2
- export declare function resolveExtractNoCache(opts: {
3
- cache?: boolean;
4
- noCache?: boolean;
5
- }): boolean;
6
- export declare function collectSourceFiles(directory: string, onProgress?: (scannedCount: number) => void): Promise<string[]>;
7
- export declare function registerInternalExtractCommand(program: Command): void;
@@ -1,3 +0,0 @@
1
- export declare function fuzzyMatches(query: string, text: string): boolean;
2
- export declare function fuzzyScore(query: string, text: string): number | null;
3
- export declare function fuzzyFilter(query: string, candidates: string[]): string[];
@@ -1,29 +0,0 @@
1
- import type { ComponentGraphNode } from './composite-closure.js';
2
- export interface LineageParentEdge {
3
- parent: string;
4
- slotName: string;
5
- }
6
- export interface LineageEdge {
7
- from: string;
8
- slotName: string;
9
- to: string;
10
- }
11
- export type LineageChain = LineageEdge[];
12
- export declare function findDirectParents(target: string, components: ComponentGraphNode[]): LineageParentEdge[];
13
- export declare function findAllAncestors(target: string, components: ComponentGraphNode[]): Set<string>;
14
- export declare function findAllAncestorChains(target: string, components: ComponentGraphNode[]): LineageChain[];
15
- export interface AncestorTreeNode {
16
- name: string;
17
- incomingSlotName?: string;
18
- depth: number;
19
- shared: boolean;
20
- cycle: boolean;
21
- parents: AncestorTreeNode[];
22
- }
23
- export declare function buildAncestorTree(target: string, components: ComponentGraphNode[]): AncestorTreeNode;
24
- export interface AncestorTreeLine {
25
- text: string;
26
- jumpTarget?: string;
27
- depth: number;
28
- }
29
- export declare function renderAncestorTree(node: AncestorTreeNode): AncestorTreeLine[];
@@ -1,27 +0,0 @@
1
- import type { ReviewSessionSnapshot } from './types.js';
2
- import type { PreviewValidationError } from '../../apply/api-client.js';
3
- /**
4
- * Load components from the pipeline DB and re-run extraction validation.
5
- *
6
- * `validationIssues` is intentionally not persisted (the validator is pure
7
- * and cheap to re-run), so any cold-start of the review state needs to
8
- * recompute it before building the review snapshot.
9
- */
10
- export declare function loadAndValidateForReview(sessionId: string, projectRoot: string | undefined): Promise<ReviewSessionSnapshot>;
11
- /**
12
- * Synthesize SERVER_VALIDATION_FAILED issues onto the review state file's
13
- * matching components for the wizard's 422 recovery path.
14
- */
15
- export declare function patchReviewStateWithValidationErrors(sessionId: string, errors: PreviewValidationError[], opts?: {
16
- artifactsRoot?: string;
17
- }): Promise<{
18
- patchedNames: string[];
19
- missingNames: string[];
20
- }>;
21
- /**
22
- * Exclude components whose names appear in `names` from the next preview/push.
23
- * Used by the wizard's "skip and retry" path after a 422.
24
- */
25
- export declare function rejectComponentsByName(sessionId: string, names: string[], opts?: {
26
- artifactsRoot?: string;
27
- }): Promise<void>;
@@ -1,6 +0,0 @@
1
- import type { RawComponentDefinition } from '../../types.js';
2
- import type { ReviewSessionSnapshot } from './types.js';
3
- export type LoadReviewInputOptions = {
4
- reviewRoot?: string;
5
- };
6
- export declare function loadReviewInput(components: RawComponentDefinition[], options?: LoadReviewInputOptions): Promise<ReviewSessionSnapshot>;
@@ -1,22 +0,0 @@
1
- import type { DatabaseSync } from 'node:sqlite';
2
- import type { ReviewSessionPaths, ReviewSessionSnapshot } from './types.js';
3
- export declare function getRefineArtifactsRoot(): string;
4
- export declare function getRefineSessionPaths(sessionId: string, artifactsRoot: string): Promise<ReviewSessionPaths>;
5
- export declare function saveReviewState(statePath: string, session: ReviewSessionSnapshot): Promise<void>;
6
- export declare function appendReviewEvent(eventsPath: string, event: {
7
- type: string;
8
- payload: Record<string, unknown>;
9
- }): Promise<void>;
10
- export declare function ensureRefineSession(sessionId: string, artifactsRoot: string, initialSnapshot: ReviewSessionSnapshot): Promise<ReviewSessionSnapshot>;
11
- /**
12
- * Persist scope-gate decisions to `current-review-state.json` so downstream
13
- * consumers (notably `loadAcceptedNames` in `generate components`) can filter
14
- * out rejected components. The wizard's scope-gate doesn't drive the rich
15
- * `analyze select` TUI, so fields that file consumes (resolvedSourcePath,
16
- * sourceCode) are populated with safe placeholders. Only `name` and `status`
17
- * matter for `loadAcceptedNames`.
18
- */
19
- export declare function writeScopeDecisionsSnapshot(db: DatabaseSync, sessionId: string, decisions: {
20
- accepted: string[];
21
- rejected: string[];
22
- }): Promise<void>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type AppProps = {
3
- sessionId: string;
4
- artifactsRoot: string;
5
- reviewRoot?: string;
6
- };
7
- export declare function App({ sessionId, artifactsRoot, reviewRoot }: AppProps): React.ReactElement;
8
- export {};
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { PreviewAnnotation, ReviewComponentDetail } from '../../types.js';
3
- type ComponentDetailProps = {
4
- component: ReviewComponentDetail;
5
- sourceCode: string | null;
6
- draftValue: string;
7
- editMode: boolean;
8
- sourceVisible: boolean;
9
- jsonScrollOffset: number;
10
- sourceScrollX: number;
11
- sourceScrollY: number;
12
- terminalWidth: number;
13
- previewAnnotation?: PreviewAnnotation;
14
- onSaveDraft: (value: string) => void;
15
- onDiscardDraft: () => void;
16
- onScrollChange: (offset: number) => void;
17
- };
18
- export declare function ComponentDetail({ component, sourceCode, draftValue, editMode, sourceVisible, jsonScrollOffset, sourceScrollX, sourceScrollY, terminalWidth, previewAnnotation, onSaveDraft, onDiscardDraft, }: ComponentDetailProps): React.ReactElement;
19
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- type JsonEditorProps = {
3
- value: string;
4
- width: number;
5
- height: number;
6
- onSave: (value: string) => void;
7
- onDiscard: () => void;
8
- };
9
- export declare function JsonEditor({ value, width, height, onSave, onDiscard }: JsonEditorProps): React.ReactElement;
10
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
3
- type PreviewSummaryBarProps = {
4
- preview: ServerPreviewResponse | null;
5
- loading: boolean;
6
- };
7
- export declare function PreviewSummaryBar({ preview, loading }: PreviewSummaryBarProps): React.ReactElement;
8
- export {};
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import type { PreviewAnnotation, ReviewComponentSummary, ReviewComponentStatus } from '../../types.js';
3
- export declare function previewBadge(annotation: PreviewAnnotation | undefined): PreviewBadgeValue | null;
4
- export type PreviewBadgeValue = {
5
- char: string;
6
- color: string;
7
- bold?: boolean;
8
- dim?: boolean;
9
- };
10
- export declare function PreviewBadge({ badge, highlighted, }: {
11
- badge: PreviewBadgeValue | null;
12
- highlighted?: boolean;
13
- }): React.ReactElement;
14
- type SidebarProps = {
15
- components: ReviewComponentSummary[];
16
- selectedId: string | null;
17
- focused: boolean;
18
- scrollOffset: number;
19
- visibleCount: number;
20
- onSelect: (id: string) => void;
21
- onScrollChange: (offset: number) => void;
22
- collapsed?: boolean;
23
- width?: number;
24
- };
25
- export declare function statusIcon(status: ReviewComponentStatus, validationErrorCount: number, _validationWarningCount: number): string;
26
- export declare function statusColor(status: ReviewComponentStatus, validationErrorCount: number, validationWarningCount: number): string;
27
- export declare function sortComponentsForSidebar(components: ReviewComponentSummary[]): ReviewComponentSummary[];
28
- export declare function Sidebar({ components, selectedId, focused, scrollOffset, visibleCount, collapsed, width: widthProp, }: SidebarProps): React.ReactElement;
29
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- type SourcePanelProps = {
3
- sourceCode: string | null;
4
- filePath: string;
5
- width: number;
6
- height: number;
7
- scrollX: number;
8
- scrollY: number;
9
- };
10
- export declare function SourcePanel({ sourceCode, filePath, width, height, scrollX, scrollY, }: SourcePanelProps): React.ReactElement;
11
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- type StatusBarProps = {
3
- accepted: number;
4
- rejected: number;
5
- reviewed: number;
6
- needsReview: number;
7
- onApproveAll: () => void;
8
- onFinalize: () => void;
9
- };
10
- export declare function StatusBar({ accepted, rejected, reviewed, needsReview }: StatusBarProps): React.ReactElement;
11
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- type TopBarProps = {
3
- subcommand: string;
4
- hints: Array<{
5
- key: string;
6
- label: string;
7
- }>;
8
- };
9
- export declare function TopBar({ subcommand, hints }: TopBarProps): React.ReactElement;
10
- export {};
@@ -1,13 +0,0 @@
1
- type ListScrollKey = {
2
- upArrow: boolean;
3
- downArrow: boolean;
4
- return: boolean;
5
- };
6
- type ListScrollOptions = {
7
- onExit: () => void;
8
- onScroll: (update: number | ((current: number) => number)) => void;
9
- maxOffset?: number;
10
- endOffset: number;
11
- };
12
- export declare function handleListScrollInput(input: string, key: ListScrollKey, { onExit, onScroll, maxOffset, endOffset }: ListScrollOptions): boolean;
13
- export {};
@@ -1,24 +0,0 @@
1
- type KeymapContext = {
2
- sidebarFocused: boolean;
3
- editMode: boolean;
4
- dialogOpen: boolean;
5
- disabled: boolean;
6
- };
7
- type KeymapHandlers = {
8
- onSidebarUp: () => void;
9
- onSidebarDown: () => void;
10
- onSidebarSelect: () => void;
11
- onAccept: () => void;
12
- onReject: () => void;
13
- onEnterEditMode: () => void;
14
- onToggleSource: () => void;
15
- onScrollUp: () => void;
16
- onScrollDown: () => void;
17
- onToggleFocus: () => void;
18
- onApproveAll: () => void;
19
- onFinalize: () => void;
20
- onQuit: () => void;
21
- onToggleHelp: () => void;
22
- };
23
- export declare function useKeymap(context: KeymapContext, handlers: KeymapHandlers): void;
24
- export {};
@@ -1,19 +0,0 @@
1
- import type { ReviewSessionPaths, ReviewSessionSnapshot } from '../../types.js';
2
- type UseSessionInput = {
3
- sessionId: string;
4
- artifactsRoot: string;
5
- reviewRoot?: string;
6
- };
7
- type UseSessionResult = {
8
- session: ReviewSessionSnapshot | null;
9
- paths: ReviewSessionPaths | null;
10
- loading: boolean;
11
- error: string | null;
12
- saveState: (updatedSession: ReviewSessionSnapshot) => Promise<void>;
13
- appendEvent: (event: {
14
- type: string;
15
- payload: Record<string, unknown>;
16
- }) => Promise<void>;
17
- };
18
- export declare function useSession({ sessionId, artifactsRoot, reviewRoot }: UseSessionInput): UseSessionResult;
19
- export {};
@@ -1,8 +0,0 @@
1
- export type UseUndoResult<T> = {
2
- current: T;
3
- push: (next: T) => void;
4
- undo: () => void;
5
- canUndo: boolean;
6
- clear: () => void;
7
- };
8
- export declare function useUndo<T>(initial: T, maxSize?: number): UseUndoResult<T>;
@@ -1,18 +0,0 @@
1
- import type { ReviewComponentStatus } from '../types.js';
2
- export declare const PALETTE: {
3
- readonly info: "#1773EB";
4
- readonly link: "#58A6FF";
5
- readonly success: "#00C459";
6
- readonly error: "#E44F20";
7
- readonly warning: "#FFDA00";
8
- readonly fg: "#000000";
9
- readonly inverse: "#FFFFFF";
10
- readonly muted: "#A6B5C7";
11
- readonly border: "#C4D1DE";
12
- readonly subtle: "#DDE5EC";
13
- readonly bg: "#EFF2F6";
14
- };
15
- export declare const INK_UI_THEME: {
16
- components: Record<string, import("@inkjs/ui").ComponentTheme>;
17
- };
18
- export declare function statusPaletteColor(status: ReviewComponentStatus, validationErrorCount: number, validationWarningCount: number): string;
@@ -1,54 +0,0 @@
1
- import type { RawComponentDefinition } from '../../types.js';
2
- export type PreviewAnnotation = 'new' | 'changed' | 'removed' | 'breaking';
3
- export type ReviewComponentStatus = 'needs-review' | 'reviewed' | 'accepted' | 'rejected';
4
- export type ReviewComponentRecord = {
5
- id: string;
6
- name: string;
7
- resolvedSourcePath: string;
8
- sourceCode: string | null;
9
- originalProposal: RawComponentDefinition;
10
- editedProposal: RawComponentDefinition;
11
- status: ReviewComponentStatus;
12
- };
13
- export type ReviewComponentDetail = {
14
- id: string;
15
- name: string;
16
- originalProposal: RawComponentDefinition;
17
- editedProposal: RawComponentDefinition;
18
- status: ReviewComponentStatus;
19
- };
20
- export type ReviewComponentSummary = {
21
- id: string;
22
- name: string;
23
- status: ReviewComponentStatus;
24
- previewAnnotation?: PreviewAnnotation;
25
- extractionConfidence: number | null;
26
- needsReview: boolean;
27
- validationErrorCount: number;
28
- validationWarningCount: number;
29
- };
30
- export type ReviewSessionSnapshot = {
31
- components: ReviewComponentRecord[];
32
- };
33
- export type ReviewSessionDetail = {
34
- components: ReviewComponentDetail[];
35
- };
36
- export type ReviewSessionSummary = {
37
- components: ReviewComponentSummary[];
38
- };
39
- export type ReviewEvent = {
40
- type: string;
41
- timestamp: string;
42
- payload: Record<string, unknown>;
43
- };
44
- export type ReviewSessionPaths = {
45
- sessionDir: string;
46
- eventsPath: string;
47
- statePath: string;
48
- };
49
- export declare function countValidationIssues(component: RawComponentDefinition): {
50
- errors: number;
51
- warnings: number;
52
- };
53
- export declare function createReviewSessionSummary(session: ReviewSessionSnapshot): ReviewSessionSummary;
54
- export declare function createReviewSessionDetail(session: ReviewSessionSnapshot): ReviewSessionDetail;
@@ -1,64 +0,0 @@
1
- import type { CDFDocument, ServerPreviewResponse, ApplyOperationResponse } from '@contentful/experience-design-system-types';
2
- export declare const PREVIEW_ERROR_PREFIX = "preview failed:";
3
- export declare const APPLY_ERROR_PREFIX = "apply failed:";
4
- export interface ApiClientOptions {
5
- host?: string;
6
- cmaToken: string;
7
- spaceId: string;
8
- environmentId: string;
9
- retry?: {
10
- maxAttempts?: number;
11
- initialDelayMs?: number;
12
- maxDelayMs?: number;
13
- sleep?: (delayMs: number) => Promise<void>;
14
- };
15
- }
16
- export declare class ApiError extends Error {
17
- readonly status: number;
18
- readonly body: string;
19
- readonly guidance?: string | undefined;
20
- constructor(message: string, status: number, body: string, guidance?: string | undefined);
21
- }
22
- export interface PreviewValidationError {
23
- componentName: string;
24
- path: string;
25
- message: string;
26
- }
27
- /**
28
- * Parse the JSON body of a 422 from `previewImport()` into structured
29
- * per-component validation errors. Returns [] for any malformed input
30
- * so callers can fall back to the generic error path without try/catch.
31
- *
32
- * Path shape: `manifest:components/<Name>/$slots/<key>` or
33
- * `manifest:components/<Name>/$properties/<key>`. Only the component
34
- * name is extracted today; `path` and `message` are kept verbatim so
35
- * future diagnostic surfaces can render
36
- * the field-level detail.
37
- */
38
- export declare function parsePreviewValidationErrors(body: string): PreviewValidationError[];
39
- export declare class ImportApiClient {
40
- private host;
41
- private token;
42
- private spaceId;
43
- private environmentId;
44
- private retry;
45
- private lastRequestId?;
46
- getLastRequestId(): string | undefined;
47
- private noteRequestId;
48
- constructor(opts: ApiClientOptions);
49
- private base;
50
- private headers;
51
- private requestWithRetry;
52
- validateToken(): Promise<void>;
53
- checkPreflight(): Promise<void>;
54
- previewImport(cdf: CDFDocument): Promise<ServerPreviewResponse>;
55
- applyImport(cdf: CDFDocument, options: {
56
- acknowledgeBreakingChanges: boolean;
57
- }): Promise<ApplyOperationResponse>;
58
- pollOperation(operationId: string, opts?: {
59
- intervalMs?: number;
60
- maxIntervalMs?: number;
61
- maxAttempts?: number;
62
- onProgress?: (op: ApplyOperationResponse) => void;
63
- }): Promise<ApplyOperationResponse>;
64
- }
@@ -1,43 +0,0 @@
1
- import type { Command } from 'commander';
2
- import type { CDFComponentEntry, CDFTokenEntry, CDFValidationError, DTCGTokenEntry } from '@contentful/experience-design-system-types';
3
- import { findSlotCycles } from '../analyze/cycle-detection.js';
4
- import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
5
- export declare function readTokensFromPath(flag: string, p: string): Promise<DTCGTokenEntry[]>;
6
- /** Adapts flat DTCGTokenEntry[] (path alongside the leaf) into the
7
- * {path, entry} pairs buildCDF/buildFilteredCDF expect. */
8
- export declare function toCDFTokens(tokens: DTCGTokenEntry[]): Array<{
9
- path: string;
10
- entry: CDFTokenEntry;
11
- }>;
12
- export declare function detectSlotCycles(components: Array<{
13
- key: string;
14
- entry: CDFComponentEntry;
15
- }>): ReturnType<typeof findSlotCycles>;
16
- export declare function formatSlotCycleReport(cycles: ReturnType<typeof findSlotCycles>): string[];
17
- export declare function assertNoSlotCycles(components: Array<{
18
- key: string;
19
- entry: CDFComponentEntry;
20
- }>): Promise<void>;
21
- /**
22
- * Client-side pre-flight for `$allowedComponents` references that are absent
23
- * from this document, so a typo'd or renamed reference fails fast instead of
24
- * waiting on the `previewImport`/`applyImport` round-trip. Only catches
25
- * document-internal misses — a name that resolves against an *existing*
26
- * target-environment Component still needs the network round-trip to
27
- * confirm, so this cannot replace the server-side check.
28
- *
29
- * `validateSlotReferences` is the detection step (shared with
30
- * `WizardApp.tsx` via `formatUnresolvedSlotReferences` below, mirroring how
31
- * `detectSlotCycles`/`formatSlotCycleReport` split for the cycle check).
32
- */
33
- export declare function formatUnresolvedSlotReferences(errors: CDFValidationError[]): string[];
34
- export declare function assertNoUnresolvedSlotReferences(components: Array<{
35
- key: string;
36
- entry: CDFComponentEntry;
37
- }>): Promise<void>;
38
- export declare function extractComponents(cdf: Record<string, unknown> | null | undefined): Array<{
39
- key: string;
40
- entry: CDFComponentEntry;
41
- }>;
42
- export declare function hasBreakingChangesWithImpact(preview: ServerPreviewResponse): boolean;
43
- export declare function registerApplyCommand(program: Command): void;
@@ -1,12 +0,0 @@
1
- import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
2
- /**
3
- * True when a preview response describes zero server-side changes across
4
- * every diff bucket (components, tokens, taxonomies). Used by:
5
- * - `experiences apply` (CLI): short-circuit the confirm-and-push step.
6
- * - `experiences import` wizard: block finalize when the resulting push
7
- * would be a pure no-op.
8
- *
9
- * A push that produces ANY entry in ANY bucket — including a rejection that
10
- * removes a server-side component — is NOT empty.
11
- */
12
- export declare function isEmptyPreview(preview: ServerPreviewResponse): boolean;
@@ -1 +0,0 @@
1
- export { readTokensFromPath, hasBreakingChangesWithImpact, toCDFTokens } from './command.js';