@contentful/experience-design-system-cli 2.35.0 → 2.35.1-dev-build-041b6e0a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +1 -57
- package/dist/app.d.ts +9 -0
- package/dist/app.js +997 -0
- package/dist/index.js +1216 -0
- package/dist/package.json +10 -15
- package/dist/program.d.ts +2 -0
- package/dist/src/legacy/legacy-cli-path.d.ts +1 -0
- package/dist/src/legacy/run-legacy.d.ts +1 -0
- package/dist/src/tui/debug-store.d.ts +14 -0
- package/dist/src/tui/help/PageContainer.d.ts +4 -0
- package/dist/src/tui/home/home.d.ts +5 -0
- package/dist/src/tui/home/home.theme.d.ts +14 -0
- package/dist/src/tui/import/PageContainer.d.ts +5 -0
- package/dist/src/tui/import/spawn-v1-import.d.ts +28 -0
- package/dist/src/tui/import/terminal-input.d.ts +2 -0
- package/dist/src/tui/package-root.d.ts +9 -0
- package/dist/src/tui/settings/PageContainer.d.ts +6 -0
- package/dist/src/tui/settings/contentful-configuration/ContentfulConfigScreen.d.ts +4 -0
- package/dist/src/tui/settings/contentful-configuration/config-store.d.ts +9 -0
- package/dist/src/tui/settings/debug-mode/debug-mode-store.d.ts +5 -0
- package/dist/src/tui/settings/debug-mode/screen.d.ts +4 -0
- package/dist/src/tui/settings/opt-in-analytics/analytics-store.d.ts +5 -0
- package/dist/src/tui/settings/opt-in-analytics/screen.d.ts +4 -0
- package/dist/src/tui/settings/utils/v1-store.d.ts +2 -0
- package/dist/src/tui/upgrade/PageContainer.d.ts +4 -0
- package/dist/src/tui/upgrade/version.d.ts +12 -0
- package/dist/src/tui/use-terminal-width.d.ts +1 -0
- package/legacy/bin/cli.js +58 -0
- package/legacy/dist/package.json +73 -0
- package/legacy/dist/src/index.d.ts +1 -0
- package/{dist → legacy/dist}/src/index.js +465 -457
- package/legacy/package.json +77 -0
- package/package.json +12 -17
- package/README.md +0 -245
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/{dist → legacy/dist}/src/analytics/apply.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/client.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/constants.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/exit.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/index.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/normalize.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/os.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/session.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/tracker.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analytics/types.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composite-closure.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/apply-mapping.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/candidate-files.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/composition-cache-key.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/interchange-schema.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/manifest-doc-evidence.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/merge-edges.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/parse-map-edges.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/prompt-loader.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/resolve-mapping-cli.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/composition/resolve-mapping.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/cycle-detection.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/cycle-view.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/extract-command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/fuzzy-search.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/issue-inheritance.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/lineage.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/scope-gate-cascade.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/search-neighborhood.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/parser.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/persistence.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/preview-annotations.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/LegacySelectApp.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/ComponentDetail.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/ComponentRationalePanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/FieldEditor.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/FinalizeDialog.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/GotoBanner.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/GroupedSidebar.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/HelpOverlay.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/HighlightedLine.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/JsonEditor.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/JsonPanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/PreviewSummaryBar.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/QuitDialog.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/RationaleLine.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/RationalePanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/ScrollablePanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/Sidebar.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/SourcePanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/StatusBar.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/TokenReviewPanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/TopBar.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/removed-components-text.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/components/wrap-text.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/hooks/list-scroll-input.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/hooks/scroll-offset.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/hooks/useImmediateInput.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/hooks/useKeymap.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/hooks/useSession.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/hooks/useUndo.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/tui/theme.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/select/types.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/selection-cascade.d.ts +0 -0
- /package/{dist → legacy/dist}/src/analyze/slot-graph.d.ts +0 -0
- /package/{dist → legacy/dist}/src/apply/api-client.d.ts +0 -0
- /package/{dist → legacy/dist}/src/apply/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/apply/preview-utils.d.ts +0 -0
- /package/{dist → legacy/dist}/src/apply/tokens.d.ts +0 -0
- /package/{dist → legacy/dist}/src/apply/tui/ServerApplyView.d.ts +0 -0
- /package/{dist → legacy/dist}/src/apply/tui/ServerPreviewView.d.ts +0 -0
- /package/{dist → legacy/dist}/src/credentials-store.d.ts +0 -0
- /package/{dist → legacy/dist}/src/doctor/checks.d.ts +0 -0
- /package/{dist → legacy/dist}/src/doctor/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/doctor/report.d.ts +0 -0
- /package/{dist → legacy/dist}/src/generate/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/generate/tui/GenerateView.d.ts +0 -0
- /package/{dist → legacy/dist}/src/helpers/build-contentful-management-client.d.ts +0 -0
- /package/{dist → legacy/dist}/src/helpers/fetch-and-persist-existing-contentful-entities.d.ts +0 -0
- /package/{dist → legacy/dist}/src/helpers/fetch-existing-contentful-entities.d.ts +0 -0
- /package/{dist → legacy/dist}/src/helpers/find-nearly-matching-component.d.ts +0 -0
- /package/{dist → legacy/dist}/src/helpers/read-existing-contentful-entities-from-session.d.ts +0 -0
- /package/{dist → legacy/dist}/src/helpers/summarize-existing-contentful-entities.d.ts +0 -0
- /package/{dist → legacy/dist}/src/host-utils.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/agent-model-resolve.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/composition-options.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/cycle-auto-reject.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/path-utils.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/CustomPromptBanner.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/WizardApp.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/ai-flag.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/autocomplete.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/CompactControlBar.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/CounterStrip.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/LegendEntry.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/LivePreviewSummary.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/ReviewComponentPanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/ReviewDetailsEditor.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/ReviewDialogs.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/ReviewStatus.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/SearchMatchSummary.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/SpaceEnvironment.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/components/StepHeader.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/cycle-panel-scroll.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/group-collapse.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/history.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/hooks/review-input.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/hooks/sidebar-search-state.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/hooks/useOverlayPanel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/hooks/useReviewEditor.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/hooks/useReviewPreview.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/hooks/useReviewSession.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/hooks/useReviewSurfaceState.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/lineage-layout.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/preview-confirmation-input.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/push-progress.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/run-print-files-helpers.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/run-selection-agent.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/run-teaser.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/runLivePreview.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/runScopeGate.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/scope-gate-columns.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/sidebar-help.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/sidebar-input.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/sidebar-navigation.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/sidebar-width.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/spawn-generate.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/step-filters.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/CredentialsStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/DoneStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/ErrorStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/GateStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/GenerateReviewStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/PathValidationStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/PreviewValidationErrorStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/PushingStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/RunningStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/ScopeGateStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/TokenInputStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/WelcomeStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/WizardPreviewStep.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/auto-reject-decision.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/breaking-change-format.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/enumerate-cycle-breaks.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/preview-diff.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/review-details-panel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/steps/review-json-panel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/useFinalizePreview.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/useLivePreview.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/wizard-422-helpers.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/wizard-generate-progress.d.ts +0 -0
- /package/{dist → legacy/dist}/src/import/tui/wizard-state-transitions.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/agent-definitions.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/agent-model-options.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/agent-output.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/cli-errors.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/cli-path.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/command-options.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/component-patch.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/contentful-urls.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/debug-logger.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/debug-preamble.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/error-parser.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/path-exists.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/prompt-overrides.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/terminal-capabilities.d.ts +0 -0
- /package/{dist → legacy/dist}/src/lib/user-agent.d.ts +0 -0
- /package/{dist → legacy/dist}/src/map-tokens/apply.d.ts +0 -0
- /package/{dist → legacy/dist}/src/map-tokens/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/map-tokens/resolve-defaults.d.ts +0 -0
- /package/{dist → legacy/dist}/src/map-tokens/tui/MapTokensView.d.ts +0 -0
- /package/{dist → legacy/dist}/src/output/format.d.ts +0 -0
- /package/{dist → legacy/dist}/src/print/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/print/validate/tui/ValidateView.d.ts +0 -0
- /package/{dist → legacy/dist}/src/print/validate/validators/cdf-validator.d.ts +0 -0
- /package/{dist → legacy/dist}/src/print/validate/validators/dtcg-validator.d.ts +0 -0
- /package/{dist → legacy/dist}/src/print/validate/validators/format-errors.d.ts +0 -0
- /package/{dist → legacy/dist}/src/print/validate/validators/read-json-file.d.ts +0 -0
- /package/{dist → legacy/dist}/src/program.d.ts +0 -0
- /package/{dist → legacy/dist}/src/runs/fingerprint.d.ts +0 -0
- /package/{dist → legacy/dist}/src/runs/path-prompt.d.ts +0 -0
- /package/{dist → legacy/dist}/src/runs/save-path-resolver.d.ts +0 -0
- /package/{dist → legacy/dist}/src/runs/store.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/cache-keys.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/core/cdf/cdf-mappers.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/core/components/derive-component-id.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/core/components/hash-component-shape.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/core/shared/index-rows-by-key.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/core/tokens/build-dtcg-groups.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/core/tokens/build-dtcg-tokens.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/core/tokens/hash-token-content.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/db.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/migration.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/repositories/sessions/read.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/repositories/sessions/write.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/repositories/shared/with-transaction.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/repositories/steps/read.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/repositories/steps/write.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/repositories/tokens/read.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/repositories/tokens/write.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/resolve-session-id.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/services/session-resolver.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/services/tokens/apply-tool-calls.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/services/tokens/replace-raw-prop-token-paths.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/services/tokens/replace-raw-token-name-paths.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/services/tokens/store-dtcg-tokens.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/session-id.d.ts +0 -0
- /package/{dist → legacy/dist}/src/session/source-excerpt.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/SetupScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/SetupStepper.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/command.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/lib/checks.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/lib/shell.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/CodingAgentScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/ContentfulCredentialsScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/StepLayout.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/preferences/AnalyticsScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/preferences/BooleanInput.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/preferences/ColorPreferenceScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/preferences/CustomPromptScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/preferences/DebugLogsScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/preferences/PreferencesMenu.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/prerequisites/PrerequisitesScreen.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/prerequisites/build.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/prerequisites/deps.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/prerequisites/index.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/prerequisites/node.d.ts +0 -0
- /package/{dist → legacy/dist}/src/setup/steps/prerequisites/pnpm.d.ts +0 -0
- /package/{dist → legacy/dist}/src/tui/CommandCompletionView.d.ts +0 -0
- /package/{dist → legacy/dist}/src/tui/render-with-goodbye.d.ts +0 -0
- /package/{dist → legacy/dist}/src/tui/use-blinking-cursor.d.ts +0 -0
- /package/{dist → legacy/dist}/src/tui/use-terminal-size.d.ts +0 -0
- /package/{dist → legacy/dist}/src/tui/use-timed-spinner.d.ts +0 -0
- /package/{dist → legacy/dist}/src/tui/windowed-panel.d.ts +0 -0
- /package/{dist → legacy/dist}/src/types.d.ts +0 -0
- /package/{prompts → legacy/prompts}/composition-edges.md +0 -0
- /package/{skills → legacy/skills}/generate-components.md +0 -0
- /package/{skills → legacy/skills}/generate-tokens.md +0 -0
- /package/{skills → legacy/skills}/map-tokens.md +0 -0
- /package/{skills → legacy/skills}/select-components.md +0 -0
|
@@ -8,7 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
// packages/experience-design-system-cli/src/host-utils.ts
|
|
11
|
+
// packages/experience-design-system-cli-legacy/src/host-utils.ts
|
|
12
12
|
function trimTrailingSlashes(value) {
|
|
13
13
|
return value.replace(/\/+$/, "");
|
|
14
14
|
}
|
|
@@ -32,14 +32,14 @@ function toApiHost(host) {
|
|
|
32
32
|
}
|
|
33
33
|
var DEFAULT_API_HOST, DEFAULT_CONFIGURED_HOST;
|
|
34
34
|
var init_host_utils = __esm({
|
|
35
|
-
"packages/experience-design-system-cli/src/host-utils.ts"() {
|
|
35
|
+
"packages/experience-design-system-cli-legacy/src/host-utils.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
DEFAULT_API_HOST = "https://api.contentful.com";
|
|
38
38
|
DEFAULT_CONFIGURED_HOST = "api.contentful.com";
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
// packages/experience-design-system-cli/src/credentials-store.ts
|
|
42
|
+
// packages/experience-design-system-cli-legacy/src/credentials-store.ts
|
|
43
43
|
import { readFile, writeFile, mkdir } from "node:fs/promises";
|
|
44
44
|
import { join } from "node:path";
|
|
45
45
|
import { homedir } from "node:os";
|
|
@@ -98,7 +98,7 @@ function experiencesCredentialsPath() {
|
|
|
98
98
|
}
|
|
99
99
|
var CREDENTIALS_DIR, CREDENTIALS_PATH;
|
|
100
100
|
var init_credentials_store = __esm({
|
|
101
|
-
"packages/experience-design-system-cli/src/credentials-store.ts"() {
|
|
101
|
+
"packages/experience-design-system-cli-legacy/src/credentials-store.ts"() {
|
|
102
102
|
"use strict";
|
|
103
103
|
init_host_utils();
|
|
104
104
|
CREDENTIALS_DIR = join(homedir(), ".config", "experiences");
|
|
@@ -106,7 +106,7 @@ var init_credentials_store = __esm({
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
-
// packages/experience-design-system-cli/src/tui/render-with-goodbye.tsx
|
|
109
|
+
// packages/experience-design-system-cli-legacy/src/tui/render-with-goodbye.tsx
|
|
110
110
|
var render_with_goodbye_exports = {};
|
|
111
111
|
__export(render_with_goodbye_exports, {
|
|
112
112
|
GoodbyeBoundary: () => GoodbyeBoundary,
|
|
@@ -153,7 +153,7 @@ function renderWithGoodbye(element, options) {
|
|
|
153
153
|
}
|
|
154
154
|
var GOODBYE_RENDER_DELAY_MS, ScreenTransitionClearContext;
|
|
155
155
|
var init_render_with_goodbye = __esm({
|
|
156
|
-
"packages/experience-design-system-cli/src/tui/render-with-goodbye.tsx"() {
|
|
156
|
+
"packages/experience-design-system-cli-legacy/src/tui/render-with-goodbye.tsx"() {
|
|
157
157
|
"use strict";
|
|
158
158
|
GOODBYE_RENDER_DELAY_MS = 50;
|
|
159
159
|
ScreenTransitionClearContext = createContext(() => void 0);
|
|
@@ -1079,7 +1079,7 @@ var init_src = __esm({
|
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
1081
|
|
|
1082
|
-
// packages/experience-design-system-cli/src/output/format.ts
|
|
1082
|
+
// packages/experience-design-system-cli-legacy/src/output/format.ts
|
|
1083
1083
|
function detectColors() {
|
|
1084
1084
|
if (process.env["NO_COLOR"] !== void 0) return false;
|
|
1085
1085
|
if (process.env["FORCE_COLOR"] !== void 0) return true;
|
|
@@ -1124,7 +1124,7 @@ function formatToolCall(obj) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
var col, c, OutputFormatter;
|
|
1126
1126
|
var init_format = __esm({
|
|
1127
|
-
"packages/experience-design-system-cli/src/output/format.ts"() {
|
|
1127
|
+
"packages/experience-design-system-cli-legacy/src/output/format.ts"() {
|
|
1128
1128
|
"use strict";
|
|
1129
1129
|
col = detectColors();
|
|
1130
1130
|
c = {
|
|
@@ -1179,7 +1179,7 @@ var init_format = __esm({
|
|
|
1179
1179
|
}
|
|
1180
1180
|
});
|
|
1181
1181
|
|
|
1182
|
-
// packages/experience-design-system-cli/src/lib/debug-logger.ts
|
|
1182
|
+
// packages/experience-design-system-cli-legacy/src/lib/debug-logger.ts
|
|
1183
1183
|
import { mkdirSync, appendFileSync } from "node:fs";
|
|
1184
1184
|
import { join as join3, dirname as dirname2 } from "node:path";
|
|
1185
1185
|
import { homedir as homedir2 } from "node:os";
|
|
@@ -1269,7 +1269,7 @@ function printDebugBanner(logger, phase) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
var SECRET_KEY_PATTERNS, SECRET_VALUE_PATTERNS, REDACTED, MAX_STRING_LEN, DEBUG_ROOT_ENV, DEBUG_LOG_ENV, singleton, NoopDebugLogger, FileDebugLogger;
|
|
1271
1271
|
var init_debug_logger = __esm({
|
|
1272
|
-
"packages/experience-design-system-cli/src/lib/debug-logger.ts"() {
|
|
1272
|
+
"packages/experience-design-system-cli-legacy/src/lib/debug-logger.ts"() {
|
|
1273
1273
|
"use strict";
|
|
1274
1274
|
SECRET_KEY_PATTERNS = [
|
|
1275
1275
|
/token/i,
|
|
@@ -1342,7 +1342,7 @@ var init_debug_logger = __esm({
|
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
1344
|
|
|
1345
|
-
// packages/experience-design-system-cli/src/lib/agent-output.ts
|
|
1345
|
+
// packages/experience-design-system-cli-legacy/src/lib/agent-output.ts
|
|
1346
1346
|
async function invokeAgentWithOutput(invoker2, options, verbose) {
|
|
1347
1347
|
let output = "";
|
|
1348
1348
|
const formatter = new OutputFormatter(verbose, (chunk) => {
|
|
@@ -1356,13 +1356,13 @@ async function invokeAgentWithOutput(invoker2, options, verbose) {
|
|
|
1356
1356
|
return { result, output };
|
|
1357
1357
|
}
|
|
1358
1358
|
var init_agent_output = __esm({
|
|
1359
|
-
"packages/experience-design-system-cli/src/lib/agent-output.ts"() {
|
|
1359
|
+
"packages/experience-design-system-cli-legacy/src/lib/agent-output.ts"() {
|
|
1360
1360
|
"use strict";
|
|
1361
1361
|
init_format();
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
1364
|
|
|
1365
|
-
// packages/experience-design-system-cli/src/tui/CommandCompletionView.tsx
|
|
1365
|
+
// packages/experience-design-system-cli-legacy/src/tui/CommandCompletionView.tsx
|
|
1366
1366
|
import { Box, Text as Text2 } from "ink";
|
|
1367
1367
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
1368
1368
|
function CommandCompletionView({
|
|
@@ -1395,12 +1395,12 @@ function CommandCompletionView({
|
|
|
1395
1395
|
] });
|
|
1396
1396
|
}
|
|
1397
1397
|
var init_CommandCompletionView = __esm({
|
|
1398
|
-
"packages/experience-design-system-cli/src/tui/CommandCompletionView.tsx"() {
|
|
1398
|
+
"packages/experience-design-system-cli-legacy/src/tui/CommandCompletionView.tsx"() {
|
|
1399
1399
|
"use strict";
|
|
1400
1400
|
}
|
|
1401
1401
|
});
|
|
1402
1402
|
|
|
1403
|
-
// packages/experience-design-system-cli/src/generate/tui/GenerateView.tsx
|
|
1403
|
+
// packages/experience-design-system-cli-legacy/src/generate/tui/GenerateView.tsx
|
|
1404
1404
|
import React2 from "react";
|
|
1405
1405
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1406
1406
|
function GenerateView({ result, onExit }) {
|
|
@@ -1423,13 +1423,13 @@ function GenerateView({ result, onExit }) {
|
|
|
1423
1423
|
);
|
|
1424
1424
|
}
|
|
1425
1425
|
var init_GenerateView = __esm({
|
|
1426
|
-
"packages/experience-design-system-cli/src/generate/tui/GenerateView.tsx"() {
|
|
1426
|
+
"packages/experience-design-system-cli-legacy/src/generate/tui/GenerateView.tsx"() {
|
|
1427
1427
|
"use strict";
|
|
1428
1428
|
init_CommandCompletionView();
|
|
1429
1429
|
}
|
|
1430
1430
|
});
|
|
1431
1431
|
|
|
1432
|
-
// packages/experience-design-system-cli/src/session/source-excerpt.ts
|
|
1432
|
+
// packages/experience-design-system-cli-legacy/src/session/source-excerpt.ts
|
|
1433
1433
|
function escapeForRegExp(value) {
|
|
1434
1434
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1435
1435
|
}
|
|
@@ -1496,25 +1496,25 @@ ${TRUNCATED_MARKER}`, usesNotShown };
|
|
|
1496
1496
|
}
|
|
1497
1497
|
var ELLIPSIS_MARKER, TRUNCATED_MARKER;
|
|
1498
1498
|
var init_source_excerpt = __esm({
|
|
1499
|
-
"packages/experience-design-system-cli/src/session/source-excerpt.ts"() {
|
|
1499
|
+
"packages/experience-design-system-cli-legacy/src/session/source-excerpt.ts"() {
|
|
1500
1500
|
"use strict";
|
|
1501
1501
|
ELLIPSIS_MARKER = "/* \u2026 */";
|
|
1502
1502
|
TRUNCATED_MARKER = "/* truncated */";
|
|
1503
1503
|
}
|
|
1504
1504
|
});
|
|
1505
1505
|
|
|
1506
|
-
// packages/experience-design-system-cli/src/session/core/components/derive-component-id.ts
|
|
1506
|
+
// packages/experience-design-system-cli-legacy/src/session/core/components/derive-component-id.ts
|
|
1507
1507
|
import { createHash } from "node:crypto";
|
|
1508
1508
|
function deriveComponentId(name, source) {
|
|
1509
1509
|
return createHash("sha256").update(`${name}:${source}`).digest("hex").slice(0, 12);
|
|
1510
1510
|
}
|
|
1511
1511
|
var init_derive_component_id = __esm({
|
|
1512
|
-
"packages/experience-design-system-cli/src/session/core/components/derive-component-id.ts"() {
|
|
1512
|
+
"packages/experience-design-system-cli-legacy/src/session/core/components/derive-component-id.ts"() {
|
|
1513
1513
|
"use strict";
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
1516
|
|
|
1517
|
-
// packages/experience-design-system-cli/src/session/core/cdf/cdf-mappers.ts
|
|
1517
|
+
// packages/experience-design-system-cli-legacy/src/session/core/cdf/cdf-mappers.ts
|
|
1518
1518
|
function mapContentfulTypeToCdfType(contentfulType) {
|
|
1519
1519
|
switch (contentfulType.toLowerCase()) {
|
|
1520
1520
|
case "string":
|
|
@@ -1547,13 +1547,13 @@ function resolveCdfCategory(contentfulCategory, propName, contentProps, designPr
|
|
|
1547
1547
|
}
|
|
1548
1548
|
var VALID_CATEGORIES2;
|
|
1549
1549
|
var init_cdf_mappers = __esm({
|
|
1550
|
-
"packages/experience-design-system-cli/src/session/core/cdf/cdf-mappers.ts"() {
|
|
1550
|
+
"packages/experience-design-system-cli-legacy/src/session/core/cdf/cdf-mappers.ts"() {
|
|
1551
1551
|
"use strict";
|
|
1552
1552
|
VALID_CATEGORIES2 = ["content", "design", "state"];
|
|
1553
1553
|
}
|
|
1554
1554
|
});
|
|
1555
1555
|
|
|
1556
|
-
// packages/experience-design-system-cli/src/session/core/shared/index-rows-by-key.ts
|
|
1556
|
+
// packages/experience-design-system-cli-legacy/src/session/core/shared/index-rows-by-key.ts
|
|
1557
1557
|
function indexRowsByKey(items, key) {
|
|
1558
1558
|
const map = /* @__PURE__ */ new Map();
|
|
1559
1559
|
for (const item of items) {
|
|
@@ -1568,12 +1568,12 @@ function indexRowsByKey(items, key) {
|
|
|
1568
1568
|
return map;
|
|
1569
1569
|
}
|
|
1570
1570
|
var init_index_rows_by_key = __esm({
|
|
1571
|
-
"packages/experience-design-system-cli/src/session/core/shared/index-rows-by-key.ts"() {
|
|
1571
|
+
"packages/experience-design-system-cli-legacy/src/session/core/shared/index-rows-by-key.ts"() {
|
|
1572
1572
|
"use strict";
|
|
1573
1573
|
}
|
|
1574
1574
|
});
|
|
1575
1575
|
|
|
1576
|
-
// packages/experience-design-system-cli/src/session/repositories/sessions/read.ts
|
|
1576
|
+
// packages/experience-design-system-cli-legacy/src/session/repositories/sessions/read.ts
|
|
1577
1577
|
function getSessionById(db, sessionId2) {
|
|
1578
1578
|
const row = db.prepare("SELECT id FROM sessions WHERE id = ?").get(sessionId2);
|
|
1579
1579
|
return row ?? null;
|
|
@@ -1589,12 +1589,12 @@ function getLatestCompletedSessionForCommand(db, command) {
|
|
|
1589
1589
|
return row?.id ?? null;
|
|
1590
1590
|
}
|
|
1591
1591
|
var init_read = __esm({
|
|
1592
|
-
"packages/experience-design-system-cli/src/session/repositories/sessions/read.ts"() {
|
|
1592
|
+
"packages/experience-design-system-cli-legacy/src/session/repositories/sessions/read.ts"() {
|
|
1593
1593
|
"use strict";
|
|
1594
1594
|
}
|
|
1595
1595
|
});
|
|
1596
1596
|
|
|
1597
|
-
// packages/experience-design-system-cli/src/session/repositories/sessions/write.ts
|
|
1597
|
+
// packages/experience-design-system-cli-legacy/src/session/repositories/sessions/write.ts
|
|
1598
1598
|
function createSession(db, id, name, timestamp) {
|
|
1599
1599
|
db.prepare("INSERT INTO sessions (id, name, created_at, updated_at) VALUES (?, ?, ?, ?)").run(
|
|
1600
1600
|
id,
|
|
@@ -1607,23 +1607,23 @@ function updateSessionTimestamp(db, sessionId2, timestamp) {
|
|
|
1607
1607
|
db.prepare("UPDATE sessions SET updated_at = ? WHERE id = ?").run(timestamp, sessionId2);
|
|
1608
1608
|
}
|
|
1609
1609
|
var init_write = __esm({
|
|
1610
|
-
"packages/experience-design-system-cli/src/session/repositories/sessions/write.ts"() {
|
|
1610
|
+
"packages/experience-design-system-cli-legacy/src/session/repositories/sessions/write.ts"() {
|
|
1611
1611
|
"use strict";
|
|
1612
1612
|
}
|
|
1613
1613
|
});
|
|
1614
1614
|
|
|
1615
|
-
// packages/experience-design-system-cli/src/session/repositories/steps/read.ts
|
|
1615
|
+
// packages/experience-design-system-cli-legacy/src/session/repositories/steps/read.ts
|
|
1616
1616
|
function getSessionIdForStep(db, stepId) {
|
|
1617
1617
|
const row = db.prepare("SELECT session_id FROM steps WHERE id = ?").get(stepId);
|
|
1618
1618
|
return row?.session_id ?? null;
|
|
1619
1619
|
}
|
|
1620
1620
|
var init_read2 = __esm({
|
|
1621
|
-
"packages/experience-design-system-cli/src/session/repositories/steps/read.ts"() {
|
|
1621
|
+
"packages/experience-design-system-cli-legacy/src/session/repositories/steps/read.ts"() {
|
|
1622
1622
|
"use strict";
|
|
1623
1623
|
}
|
|
1624
1624
|
});
|
|
1625
1625
|
|
|
1626
|
-
// packages/experience-design-system-cli/src/session/repositories/steps/write.ts
|
|
1626
|
+
// packages/experience-design-system-cli-legacy/src/session/repositories/steps/write.ts
|
|
1627
1627
|
function updatePendingStepsToInterrupted(db, sessionId2, command, timestamp) {
|
|
1628
1628
|
db.prepare(
|
|
1629
1629
|
`UPDATE steps SET status = 'interrupted', completed_at = ?, updated_at = ?
|
|
@@ -1648,12 +1648,12 @@ function updateStepStatus(db, stepId, status, outputs, error, timestamp) {
|
|
|
1648
1648
|
);
|
|
1649
1649
|
}
|
|
1650
1650
|
var init_write2 = __esm({
|
|
1651
|
-
"packages/experience-design-system-cli/src/session/repositories/steps/write.ts"() {
|
|
1651
|
+
"packages/experience-design-system-cli-legacy/src/session/repositories/steps/write.ts"() {
|
|
1652
1652
|
"use strict";
|
|
1653
1653
|
}
|
|
1654
1654
|
});
|
|
1655
1655
|
|
|
1656
|
-
// packages/experience-design-system-cli/src/session/session-id.ts
|
|
1656
|
+
// packages/experience-design-system-cli-legacy/src/session/session-id.ts
|
|
1657
1657
|
var session_id_exports = {};
|
|
1658
1658
|
__export(session_id_exports, {
|
|
1659
1659
|
generateSessionId: () => generateSessionId
|
|
@@ -1668,7 +1668,7 @@ function generateSessionId() {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
var ADJECTIVES, NOUNS;
|
|
1670
1670
|
var init_session_id = __esm({
|
|
1671
|
-
"packages/experience-design-system-cli/src/session/session-id.ts"() {
|
|
1671
|
+
"packages/experience-design-system-cli-legacy/src/session/session-id.ts"() {
|
|
1672
1672
|
"use strict";
|
|
1673
1673
|
ADJECTIVES = [
|
|
1674
1674
|
"aged",
|
|
@@ -1877,7 +1877,7 @@ var init_session_id = __esm({
|
|
|
1877
1877
|
}
|
|
1878
1878
|
});
|
|
1879
1879
|
|
|
1880
|
-
// packages/experience-design-system-cli/src/session/services/session-resolver.ts
|
|
1880
|
+
// packages/experience-design-system-cli-legacy/src/session/services/session-resolver.ts
|
|
1881
1881
|
function getOrCreateSessionForCommand(db, sessionFlag, sessionName, _hints) {
|
|
1882
1882
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1883
1883
|
if (sessionFlag === "new" || sessionFlag === void 0) {
|
|
@@ -1891,7 +1891,7 @@ function getOrCreateSessionForCommand(db, sessionFlag, sessionName, _hints) {
|
|
|
1891
1891
|
return { sessionId: sessionFlag, isNew: false, isResumed: false };
|
|
1892
1892
|
}
|
|
1893
1893
|
var init_session_resolver = __esm({
|
|
1894
|
-
"packages/experience-design-system-cli/src/session/services/session-resolver.ts"() {
|
|
1894
|
+
"packages/experience-design-system-cli-legacy/src/session/services/session-resolver.ts"() {
|
|
1895
1895
|
"use strict";
|
|
1896
1896
|
init_session_id();
|
|
1897
1897
|
init_read();
|
|
@@ -1899,7 +1899,7 @@ var init_session_resolver = __esm({
|
|
|
1899
1899
|
}
|
|
1900
1900
|
});
|
|
1901
1901
|
|
|
1902
|
-
// packages/experience-design-system-cli/src/session/core/tokens/build-dtcg-groups.ts
|
|
1902
|
+
// packages/experience-design-system-cli-legacy/src/session/core/tokens/build-dtcg-groups.ts
|
|
1903
1903
|
function buildDtcgGroups(groupRows, tokenRows) {
|
|
1904
1904
|
return groupRows.map((r) => {
|
|
1905
1905
|
const prefix = `${r.path}.`;
|
|
@@ -1910,12 +1910,12 @@ function buildDtcgGroups(groupRows, tokenRows) {
|
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
1912
|
var init_build_dtcg_groups = __esm({
|
|
1913
|
-
"packages/experience-design-system-cli/src/session/core/tokens/build-dtcg-groups.ts"() {
|
|
1913
|
+
"packages/experience-design-system-cli-legacy/src/session/core/tokens/build-dtcg-groups.ts"() {
|
|
1914
1914
|
"use strict";
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
|
|
1918
|
-
// packages/experience-design-system-cli/src/session/core/tokens/build-dtcg-tokens.ts
|
|
1918
|
+
// packages/experience-design-system-cli-legacy/src/session/core/tokens/build-dtcg-tokens.ts
|
|
1919
1919
|
function buildDtcgTokens(tokenRows) {
|
|
1920
1920
|
return tokenRows.map((r) => {
|
|
1921
1921
|
const t = {
|
|
@@ -1928,12 +1928,12 @@ function buildDtcgTokens(tokenRows) {
|
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
1930
|
var init_build_dtcg_tokens = __esm({
|
|
1931
|
-
"packages/experience-design-system-cli/src/session/core/tokens/build-dtcg-tokens.ts"() {
|
|
1931
|
+
"packages/experience-design-system-cli-legacy/src/session/core/tokens/build-dtcg-tokens.ts"() {
|
|
1932
1932
|
"use strict";
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
1935
|
|
|
1936
|
-
// packages/experience-design-system-cli/src/session/repositories/tokens/read.ts
|
|
1936
|
+
// packages/experience-design-system-cli-legacy/src/session/repositories/tokens/read.ts
|
|
1937
1937
|
function getDtcgTokensForSession(db, sessionId2) {
|
|
1938
1938
|
const groupRows = db.prepare("SELECT path, description FROM raw_token_groups WHERE session_id = ? ORDER BY path").all(sessionId2).map((row) => ({
|
|
1939
1939
|
path: String(row.path),
|
|
@@ -1962,14 +1962,14 @@ function getRawTokenNamePathRows(db, sessionId2) {
|
|
|
1962
1962
|
}));
|
|
1963
1963
|
}
|
|
1964
1964
|
var init_read3 = __esm({
|
|
1965
|
-
"packages/experience-design-system-cli/src/session/repositories/tokens/read.ts"() {
|
|
1965
|
+
"packages/experience-design-system-cli-legacy/src/session/repositories/tokens/read.ts"() {
|
|
1966
1966
|
"use strict";
|
|
1967
1967
|
init_build_dtcg_groups();
|
|
1968
1968
|
init_build_dtcg_tokens();
|
|
1969
1969
|
}
|
|
1970
1970
|
});
|
|
1971
1971
|
|
|
1972
|
-
// packages/experience-design-system-cli/src/session/core/components/hash-component-shape.ts
|
|
1972
|
+
// packages/experience-design-system-cli-legacy/src/session/core/components/hash-component-shape.ts
|
|
1973
1973
|
import { createHash as createHash2 } from "node:crypto";
|
|
1974
1974
|
function hashComponentShape(component) {
|
|
1975
1975
|
const payload = {
|
|
@@ -1988,23 +1988,23 @@ function hashComponentShape(component) {
|
|
|
1988
1988
|
return createHash2("sha256").update(JSON.stringify(payload)).digest("hex");
|
|
1989
1989
|
}
|
|
1990
1990
|
var init_hash_component_shape = __esm({
|
|
1991
|
-
"packages/experience-design-system-cli/src/session/core/components/hash-component-shape.ts"() {
|
|
1991
|
+
"packages/experience-design-system-cli-legacy/src/session/core/components/hash-component-shape.ts"() {
|
|
1992
1992
|
"use strict";
|
|
1993
1993
|
}
|
|
1994
1994
|
});
|
|
1995
1995
|
|
|
1996
|
-
// packages/experience-design-system-cli/src/session/core/tokens/hash-token-content.ts
|
|
1996
|
+
// packages/experience-design-system-cli-legacy/src/session/core/tokens/hash-token-content.ts
|
|
1997
1997
|
import { createHash as createHash3 } from "node:crypto";
|
|
1998
1998
|
function hashTokenContent(rawTokenContent) {
|
|
1999
1999
|
return createHash3("sha256").update(rawTokenContent.trim()).digest("hex");
|
|
2000
2000
|
}
|
|
2001
2001
|
var init_hash_token_content = __esm({
|
|
2002
|
-
"packages/experience-design-system-cli/src/session/core/tokens/hash-token-content.ts"() {
|
|
2002
|
+
"packages/experience-design-system-cli-legacy/src/session/core/tokens/hash-token-content.ts"() {
|
|
2003
2003
|
"use strict";
|
|
2004
2004
|
}
|
|
2005
2005
|
});
|
|
2006
2006
|
|
|
2007
|
-
// packages/experience-design-system-cli/src/session/repositories/tokens/write.ts
|
|
2007
|
+
// packages/experience-design-system-cli-legacy/src/session/repositories/tokens/write.ts
|
|
2008
2008
|
function deleteRawTokensForSession(db, sessionId2) {
|
|
2009
2009
|
db.prepare("DELETE FROM raw_token_groups WHERE session_id = ?").run(sessionId2);
|
|
2010
2010
|
db.prepare("DELETE FROM raw_tokens WHERE session_id = ?").run(sessionId2);
|
|
@@ -2064,12 +2064,12 @@ function updateRawPropTokenPaths(db, sessionId2, componentId, propName, paths, s
|
|
|
2064
2064
|
});
|
|
2065
2065
|
}
|
|
2066
2066
|
var init_write3 = __esm({
|
|
2067
|
-
"packages/experience-design-system-cli/src/session/repositories/tokens/write.ts"() {
|
|
2067
|
+
"packages/experience-design-system-cli-legacy/src/session/repositories/tokens/write.ts"() {
|
|
2068
2068
|
"use strict";
|
|
2069
2069
|
}
|
|
2070
2070
|
});
|
|
2071
2071
|
|
|
2072
|
-
// packages/experience-design-system-cli/src/session/repositories/shared/with-transaction.ts
|
|
2072
|
+
// packages/experience-design-system-cli-legacy/src/session/repositories/shared/with-transaction.ts
|
|
2073
2073
|
function withTransaction(db, fn) {
|
|
2074
2074
|
db.exec("BEGIN");
|
|
2075
2075
|
try {
|
|
@@ -2082,12 +2082,12 @@ function withTransaction(db, fn) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
var init_with_transaction = __esm({
|
|
2085
|
-
"packages/experience-design-system-cli/src/session/repositories/shared/with-transaction.ts"() {
|
|
2085
|
+
"packages/experience-design-system-cli-legacy/src/session/repositories/shared/with-transaction.ts"() {
|
|
2086
2086
|
"use strict";
|
|
2087
2087
|
}
|
|
2088
2088
|
});
|
|
2089
2089
|
|
|
2090
|
-
// packages/experience-design-system-cli/src/session/services/tokens/store-dtcg-tokens.ts
|
|
2090
|
+
// packages/experience-design-system-cli-legacy/src/session/services/tokens/store-dtcg-tokens.ts
|
|
2091
2091
|
function storeDtcgTokens(db, sessionId2, groups, tokens) {
|
|
2092
2092
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
2093
2093
|
withTransaction(db, () => {
|
|
@@ -2098,7 +2098,7 @@ function storeDtcgTokens(db, sessionId2, groups, tokens) {
|
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
2100
|
var init_store_dtcg_tokens = __esm({
|
|
2101
|
-
"packages/experience-design-system-cli/src/session/services/tokens/store-dtcg-tokens.ts"() {
|
|
2101
|
+
"packages/experience-design-system-cli-legacy/src/session/services/tokens/store-dtcg-tokens.ts"() {
|
|
2102
2102
|
"use strict";
|
|
2103
2103
|
init_write();
|
|
2104
2104
|
init_write3();
|
|
@@ -2106,7 +2106,7 @@ var init_store_dtcg_tokens = __esm({
|
|
|
2106
2106
|
}
|
|
2107
2107
|
});
|
|
2108
2108
|
|
|
2109
|
-
// packages/experience-design-system-cli/src/session/services/tokens/apply-tool-calls.ts
|
|
2109
|
+
// packages/experience-design-system-cli-legacy/src/session/services/tokens/apply-tool-calls.ts
|
|
2110
2110
|
function applyTokenToolCalls(db, sessionId2, calls, incomingWarnings) {
|
|
2111
2111
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
2112
2112
|
const warnings = [...incomingWarnings];
|
|
@@ -2127,7 +2127,7 @@ function applyTokenToolCalls(db, sessionId2, calls, incomingWarnings) {
|
|
|
2127
2127
|
return { tokens, groups, warnings };
|
|
2128
2128
|
}
|
|
2129
2129
|
var init_apply_tool_calls = __esm({
|
|
2130
|
-
"packages/experience-design-system-cli/src/session/services/tokens/apply-tool-calls.ts"() {
|
|
2130
|
+
"packages/experience-design-system-cli-legacy/src/session/services/tokens/apply-tool-calls.ts"() {
|
|
2131
2131
|
"use strict";
|
|
2132
2132
|
init_write();
|
|
2133
2133
|
init_write3();
|
|
@@ -2135,7 +2135,7 @@ var init_apply_tool_calls = __esm({
|
|
|
2135
2135
|
}
|
|
2136
2136
|
});
|
|
2137
2137
|
|
|
2138
|
-
// packages/experience-design-system-cli/src/session/services/tokens/replace-raw-token-name-paths.ts
|
|
2138
|
+
// packages/experience-design-system-cli-legacy/src/session/services/tokens/replace-raw-token-name-paths.ts
|
|
2139
2139
|
function replaceRawTokenNamePaths(db, sessionId2, tokenNamePaths, source = "automatic") {
|
|
2140
2140
|
withTransaction(db, () => {
|
|
2141
2141
|
updateRawTokenNamePaths(db, sessionId2, tokenNamePaths, source);
|
|
@@ -2143,7 +2143,7 @@ function replaceRawTokenNamePaths(db, sessionId2, tokenNamePaths, source = "auto
|
|
|
2143
2143
|
});
|
|
2144
2144
|
}
|
|
2145
2145
|
var init_replace_raw_token_name_paths = __esm({
|
|
2146
|
-
"packages/experience-design-system-cli/src/session/services/tokens/replace-raw-token-name-paths.ts"() {
|
|
2146
|
+
"packages/experience-design-system-cli-legacy/src/session/services/tokens/replace-raw-token-name-paths.ts"() {
|
|
2147
2147
|
"use strict";
|
|
2148
2148
|
init_write3();
|
|
2149
2149
|
init_write();
|
|
@@ -2151,7 +2151,7 @@ var init_replace_raw_token_name_paths = __esm({
|
|
|
2151
2151
|
}
|
|
2152
2152
|
});
|
|
2153
2153
|
|
|
2154
|
-
// packages/experience-design-system-cli/src/session/services/tokens/replace-raw-prop-token-paths.ts
|
|
2154
|
+
// packages/experience-design-system-cli-legacy/src/session/services/tokens/replace-raw-prop-token-paths.ts
|
|
2155
2155
|
function replaceRawPropTokenPaths(db, sessionId2, componentId, propName, paths, source) {
|
|
2156
2156
|
withTransaction(db, () => {
|
|
2157
2157
|
updateRawPropTokenPaths(db, sessionId2, componentId, propName, paths, source);
|
|
@@ -2159,7 +2159,7 @@ function replaceRawPropTokenPaths(db, sessionId2, componentId, propName, paths,
|
|
|
2159
2159
|
});
|
|
2160
2160
|
}
|
|
2161
2161
|
var init_replace_raw_prop_token_paths = __esm({
|
|
2162
|
-
"packages/experience-design-system-cli/src/session/services/tokens/replace-raw-prop-token-paths.ts"() {
|
|
2162
|
+
"packages/experience-design-system-cli-legacy/src/session/services/tokens/replace-raw-prop-token-paths.ts"() {
|
|
2163
2163
|
"use strict";
|
|
2164
2164
|
init_write3();
|
|
2165
2165
|
init_write();
|
|
@@ -2167,7 +2167,7 @@ var init_replace_raw_prop_token_paths = __esm({
|
|
|
2167
2167
|
}
|
|
2168
2168
|
});
|
|
2169
2169
|
|
|
2170
|
-
// packages/experience-design-system-cli/src/session/cache-keys.ts
|
|
2170
|
+
// packages/experience-design-system-cli-legacy/src/session/cache-keys.ts
|
|
2171
2171
|
var cache_keys_exports = {};
|
|
2172
2172
|
__export(cache_keys_exports, {
|
|
2173
2173
|
hashContent: () => hashContent,
|
|
@@ -2190,13 +2190,13 @@ async function hashPromptForSkill(skill, agent, model, skillPathOverride, extraI
|
|
|
2190
2190
|
return hashContent(`${promptHash}|${agent}|${model ?? ""}${extraSegment}`);
|
|
2191
2191
|
}
|
|
2192
2192
|
var init_cache_keys = __esm({
|
|
2193
|
-
"packages/experience-design-system-cli/src/session/cache-keys.ts"() {
|
|
2193
|
+
"packages/experience-design-system-cli-legacy/src/session/cache-keys.ts"() {
|
|
2194
2194
|
"use strict";
|
|
2195
2195
|
init_src();
|
|
2196
2196
|
}
|
|
2197
2197
|
});
|
|
2198
2198
|
|
|
2199
|
-
// packages/experience-design-system-cli/src/session/db.ts
|
|
2199
|
+
// packages/experience-design-system-cli-legacy/src/session/db.ts
|
|
2200
2200
|
import { DatabaseSync } from "node:sqlite";
|
|
2201
2201
|
import { mkdirSync as mkdirSync2, readFileSync } from "node:fs";
|
|
2202
2202
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
@@ -3961,7 +3961,7 @@ function lookupSelectCache(db, componentHash, promptHash, cliVersion2) {
|
|
|
3961
3961
|
}
|
|
3962
3962
|
var SCHEMA, MAX_COMPONENT_SOURCE_CHARS, MAX_SIBLING_FILES, MAX_SIBLING_SNIPPET_CHARS, MAX_TYPE_DECLARING_SIBLING_CHARS, MAX_ENLARGED_SIBLINGS, MAX_SIBLING_DEPTH, MAX_SIBLING_CANDIDATES_EXPLORED, RELATIVE_IMPORT_PATTERN, SIBLING_FILE_EXTENSIONS, TS_ESM_EXTENSION_REWRITES, IDENTIFIER_PATTERN, _cliCacheVersionCache;
|
|
3963
3963
|
var init_db = __esm({
|
|
3964
|
-
"packages/experience-design-system-cli/src/session/db.ts"() {
|
|
3964
|
+
"packages/experience-design-system-cli-legacy/src/session/db.ts"() {
|
|
3965
3965
|
"use strict";
|
|
3966
3966
|
init_source_excerpt();
|
|
3967
3967
|
init_derive_component_id();
|
|
@@ -4177,7 +4177,7 @@ CREATE INDEX IF NOT EXISTS idx_scanned_files_session ON scanned_files(session
|
|
|
4177
4177
|
}
|
|
4178
4178
|
});
|
|
4179
4179
|
|
|
4180
|
-
// packages/experience-design-system-cli/src/helpers/read-existing-contentful-entities-from-session.ts
|
|
4180
|
+
// packages/experience-design-system-cli-legacy/src/helpers/read-existing-contentful-entities-from-session.ts
|
|
4181
4181
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
4182
4182
|
async function readExistingContentfulEntitiesFromSession(path) {
|
|
4183
4183
|
if (!path) return void 0;
|
|
@@ -4191,12 +4191,12 @@ async function readExistingContentfulEntitiesFromSession(path) {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
}
|
|
4193
4193
|
var init_read_existing_contentful_entities_from_session = __esm({
|
|
4194
|
-
"packages/experience-design-system-cli/src/helpers/read-existing-contentful-entities-from-session.ts"() {
|
|
4194
|
+
"packages/experience-design-system-cli-legacy/src/helpers/read-existing-contentful-entities-from-session.ts"() {
|
|
4195
4195
|
"use strict";
|
|
4196
4196
|
}
|
|
4197
4197
|
});
|
|
4198
4198
|
|
|
4199
|
-
// packages/experience-design-system-cli/src/helpers/find-nearly-matching-component.ts
|
|
4199
|
+
// packages/experience-design-system-cli-legacy/src/helpers/find-nearly-matching-component.ts
|
|
4200
4200
|
function findNearlyMatchingComponent(components, codebaseName) {
|
|
4201
4201
|
const target = simplifyNameForComparison(codebaseName);
|
|
4202
4202
|
if (!target) return void 0;
|
|
@@ -4233,13 +4233,13 @@ function countCharacterEdits(a, b) {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
var MAX_CHARACTER_EDITS_FOR_LIKELY_MATCH;
|
|
4235
4235
|
var init_find_nearly_matching_component = __esm({
|
|
4236
|
-
"packages/experience-design-system-cli/src/helpers/find-nearly-matching-component.ts"() {
|
|
4236
|
+
"packages/experience-design-system-cli-legacy/src/helpers/find-nearly-matching-component.ts"() {
|
|
4237
4237
|
"use strict";
|
|
4238
4238
|
MAX_CHARACTER_EDITS_FOR_LIKELY_MATCH = 2;
|
|
4239
4239
|
}
|
|
4240
4240
|
});
|
|
4241
4241
|
|
|
4242
|
-
// packages/experience-design-system-cli/src/helpers/summarize-existing-contentful-entities.ts
|
|
4242
|
+
// packages/experience-design-system-cli-legacy/src/helpers/summarize-existing-contentful-entities.ts
|
|
4243
4243
|
function summarizeForGenerateAgent(entities, codebaseComponentName) {
|
|
4244
4244
|
const match2 = findNearlyMatchingComponent(entities.components, codebaseComponentName);
|
|
4245
4245
|
const otherComponents = entities.components.filter((c2) => c2.sys.id !== match2?.sys.id).map((c2) => ({ id: c2.sys.id, name: c2.name }));
|
|
@@ -4274,13 +4274,13 @@ function summarizeTokens(tokens) {
|
|
|
4274
4274
|
return { count: tokens.length, kinds: [...kinds].sort() };
|
|
4275
4275
|
}
|
|
4276
4276
|
var init_summarize_existing_contentful_entities = __esm({
|
|
4277
|
-
"packages/experience-design-system-cli/src/helpers/summarize-existing-contentful-entities.ts"() {
|
|
4277
|
+
"packages/experience-design-system-cli-legacy/src/helpers/summarize-existing-contentful-entities.ts"() {
|
|
4278
4278
|
"use strict";
|
|
4279
4279
|
init_find_nearly_matching_component();
|
|
4280
4280
|
}
|
|
4281
4281
|
});
|
|
4282
4282
|
|
|
4283
|
-
// packages/experience-design-system-cli/src/session/resolve-session-id.ts
|
|
4283
|
+
// packages/experience-design-system-cli-legacy/src/session/resolve-session-id.ts
|
|
4284
4284
|
function findLatestExtractSessionId() {
|
|
4285
4285
|
const db = openPipelineDb();
|
|
4286
4286
|
try {
|
|
@@ -4299,13 +4299,13 @@ async function resolveExtractSessionId(sessionFlag, onMissing) {
|
|
|
4299
4299
|
return await onMissing();
|
|
4300
4300
|
}
|
|
4301
4301
|
var init_resolve_session_id = __esm({
|
|
4302
|
-
"packages/experience-design-system-cli/src/session/resolve-session-id.ts"() {
|
|
4302
|
+
"packages/experience-design-system-cli-legacy/src/session/resolve-session-id.ts"() {
|
|
4303
4303
|
"use strict";
|
|
4304
4304
|
init_db();
|
|
4305
4305
|
}
|
|
4306
4306
|
});
|
|
4307
4307
|
|
|
4308
|
-
// packages/experience-design-system-cli/src/analyze/select/persistence.ts
|
|
4308
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/persistence.ts
|
|
4309
4309
|
import { access, appendFile, mkdir as mkdir2, readFile as readFile6, writeFile as writeFile2 } from "node:fs/promises";
|
|
4310
4310
|
import { homedir as homedir4 } from "node:os";
|
|
4311
4311
|
import { resolve as resolve4 } from "node:path";
|
|
@@ -4369,13 +4369,13 @@ async function writeScopeDecisionsSnapshot(db, sessionId2, decisions) {
|
|
|
4369
4369
|
await saveReviewState(paths.statePath, { components: records });
|
|
4370
4370
|
}
|
|
4371
4371
|
var init_persistence = __esm({
|
|
4372
|
-
"packages/experience-design-system-cli/src/analyze/select/persistence.ts"() {
|
|
4372
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/persistence.ts"() {
|
|
4373
4373
|
"use strict";
|
|
4374
4374
|
init_db();
|
|
4375
4375
|
}
|
|
4376
4376
|
});
|
|
4377
4377
|
|
|
4378
|
-
// packages/experience-design-system-cli/src/lib/agent-model-options.ts
|
|
4378
|
+
// packages/experience-design-system-cli-legacy/src/lib/agent-model-options.ts
|
|
4379
4379
|
function addAgentModelOptions(cmd, config = {}) {
|
|
4380
4380
|
const {
|
|
4381
4381
|
agentDescription = AGENT_DESCRIPTION,
|
|
@@ -4392,7 +4392,7 @@ function addAgentModelOptions(cmd, config = {}) {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
var AGENT_DESCRIPTION, MODEL_DESCRIPTION, BEDROCK_AGENTS, BEDROCK_DESCRIPTION;
|
|
4394
4394
|
var init_agent_model_options = __esm({
|
|
4395
|
-
"packages/experience-design-system-cli/src/lib/agent-model-options.ts"() {
|
|
4395
|
+
"packages/experience-design-system-cli-legacy/src/lib/agent-model-options.ts"() {
|
|
4396
4396
|
"use strict";
|
|
4397
4397
|
init_src();
|
|
4398
4398
|
AGENT_DESCRIPTION = `Agent to use: ${AGENT_NAMES.join(", ")} (defaults to value saved by experiences setup)`;
|
|
@@ -4402,7 +4402,7 @@ var init_agent_model_options = __esm({
|
|
|
4402
4402
|
}
|
|
4403
4403
|
});
|
|
4404
4404
|
|
|
4405
|
-
// packages/experience-design-system-cli/src/lib/cli-path.ts
|
|
4405
|
+
// packages/experience-design-system-cli-legacy/src/lib/cli-path.ts
|
|
4406
4406
|
import { existsSync as existsSync2 } from "node:fs";
|
|
4407
4407
|
import { dirname as dirname4, join as join4 } from "node:path";
|
|
4408
4408
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
@@ -4421,12 +4421,12 @@ function findPkgRoot() {
|
|
|
4421
4421
|
return dirname4(dirname4(findCliPath()));
|
|
4422
4422
|
}
|
|
4423
4423
|
var init_cli_path = __esm({
|
|
4424
|
-
"packages/experience-design-system-cli/src/lib/cli-path.ts"() {
|
|
4424
|
+
"packages/experience-design-system-cli-legacy/src/lib/cli-path.ts"() {
|
|
4425
4425
|
"use strict";
|
|
4426
4426
|
}
|
|
4427
4427
|
});
|
|
4428
4428
|
|
|
4429
|
-
// packages/experience-design-system-cli/src/analytics/client.ts
|
|
4429
|
+
// packages/experience-design-system-cli-legacy/src/analytics/client.ts
|
|
4430
4430
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
4431
4431
|
import { join as join5 } from "node:path";
|
|
4432
4432
|
import { Analytics } from "@segment/analytics-node";
|
|
@@ -4479,7 +4479,7 @@ async function flushAnalytics() {
|
|
|
4479
4479
|
}
|
|
4480
4480
|
var pkg, DEFAULT_WRITE_KEY, analyticsClient, persistedDisabled;
|
|
4481
4481
|
var init_client = __esm({
|
|
4482
|
-
"packages/experience-design-system-cli/src/analytics/client.ts"() {
|
|
4482
|
+
"packages/experience-design-system-cli-legacy/src/analytics/client.ts"() {
|
|
4483
4483
|
"use strict";
|
|
4484
4484
|
init_cli_path();
|
|
4485
4485
|
pkg = JSON.parse(readFileSync2(join5(findPkgRoot(), "package.json"), "utf8"));
|
|
@@ -4489,23 +4489,23 @@ var init_client = __esm({
|
|
|
4489
4489
|
}
|
|
4490
4490
|
});
|
|
4491
4491
|
|
|
4492
|
-
// packages/experience-design-system-cli/src/analytics/constants.ts
|
|
4492
|
+
// packages/experience-design-system-cli-legacy/src/analytics/constants.ts
|
|
4493
4493
|
var ANALYTICS_SESSION_ENV, IMPORT_PIPELINE_ENV;
|
|
4494
4494
|
var init_constants = __esm({
|
|
4495
|
-
"packages/experience-design-system-cli/src/analytics/constants.ts"() {
|
|
4495
|
+
"packages/experience-design-system-cli-legacy/src/analytics/constants.ts"() {
|
|
4496
4496
|
"use strict";
|
|
4497
4497
|
ANALYTICS_SESSION_ENV = "EDS_ANALYTICS_SESSION_ID";
|
|
4498
4498
|
IMPORT_PIPELINE_ENV = "EDS_IMPORT_PIPELINE";
|
|
4499
4499
|
}
|
|
4500
4500
|
});
|
|
4501
4501
|
|
|
4502
|
-
// packages/experience-design-system-cli/src/analytics/normalize.ts
|
|
4502
|
+
// packages/experience-design-system-cli-legacy/src/analytics/normalize.ts
|
|
4503
4503
|
function normalizeCommand(commandChain) {
|
|
4504
4504
|
return COMMAND_MAP[commandChain];
|
|
4505
4505
|
}
|
|
4506
4506
|
var COMMAND_MAP;
|
|
4507
4507
|
var init_normalize = __esm({
|
|
4508
|
-
"packages/experience-design-system-cli/src/analytics/normalize.ts"() {
|
|
4508
|
+
"packages/experience-design-system-cli-legacy/src/analytics/normalize.ts"() {
|
|
4509
4509
|
"use strict";
|
|
4510
4510
|
COMMAND_MAP = {
|
|
4511
4511
|
"analyze extract": "analyze_extract",
|
|
@@ -4521,13 +4521,13 @@ var init_normalize = __esm({
|
|
|
4521
4521
|
}
|
|
4522
4522
|
});
|
|
4523
4523
|
|
|
4524
|
-
// packages/experience-design-system-cli/src/analytics/os.ts
|
|
4524
|
+
// packages/experience-design-system-cli-legacy/src/analytics/os.ts
|
|
4525
4525
|
function getOsName() {
|
|
4526
4526
|
return OS_NAMES[process.platform] ?? "other";
|
|
4527
4527
|
}
|
|
4528
4528
|
var OS_NAMES;
|
|
4529
4529
|
var init_os = __esm({
|
|
4530
|
-
"packages/experience-design-system-cli/src/analytics/os.ts"() {
|
|
4530
|
+
"packages/experience-design-system-cli-legacy/src/analytics/os.ts"() {
|
|
4531
4531
|
"use strict";
|
|
4532
4532
|
OS_NAMES = {
|
|
4533
4533
|
android: "Android",
|
|
@@ -4542,7 +4542,7 @@ var init_os = __esm({
|
|
|
4542
4542
|
}
|
|
4543
4543
|
});
|
|
4544
4544
|
|
|
4545
|
-
// packages/experience-design-system-cli/src/analytics/session.ts
|
|
4545
|
+
// packages/experience-design-system-cli-legacy/src/analytics/session.ts
|
|
4546
4546
|
function resolveAnalyticsSessionId(explicit) {
|
|
4547
4547
|
const inherited = process.env[ANALYTICS_SESSION_ENV]?.trim();
|
|
4548
4548
|
if (inherited) return inherited;
|
|
@@ -4554,14 +4554,14 @@ function isPipelineAnalyticsChild() {
|
|
|
4554
4554
|
return Boolean(process.env[ANALYTICS_SESSION_ENV]?.trim());
|
|
4555
4555
|
}
|
|
4556
4556
|
var init_session = __esm({
|
|
4557
|
-
"packages/experience-design-system-cli/src/analytics/session.ts"() {
|
|
4557
|
+
"packages/experience-design-system-cli-legacy/src/analytics/session.ts"() {
|
|
4558
4558
|
"use strict";
|
|
4559
4559
|
init_session_id();
|
|
4560
4560
|
init_constants();
|
|
4561
4561
|
}
|
|
4562
4562
|
});
|
|
4563
4563
|
|
|
4564
|
-
// packages/experience-design-system-cli/src/analytics/tracker.ts
|
|
4564
|
+
// packages/experience-design-system-cli-legacy/src/analytics/tracker.ts
|
|
4565
4565
|
function isPipelineStep() {
|
|
4566
4566
|
return process.env[IMPORT_PIPELINE_ENV] === "1";
|
|
4567
4567
|
}
|
|
@@ -4678,7 +4678,7 @@ async function failActiveCommand(fields = {}) {
|
|
|
4678
4678
|
}
|
|
4679
4679
|
var pending, sessionId, sessionStartedEmitted;
|
|
4680
4680
|
var init_tracker = __esm({
|
|
4681
|
-
"packages/experience-design-system-cli/src/analytics/tracker.ts"() {
|
|
4681
|
+
"packages/experience-design-system-cli-legacy/src/analytics/tracker.ts"() {
|
|
4682
4682
|
"use strict";
|
|
4683
4683
|
init_client();
|
|
4684
4684
|
init_constants();
|
|
@@ -4690,7 +4690,7 @@ var init_tracker = __esm({
|
|
|
4690
4690
|
}
|
|
4691
4691
|
});
|
|
4692
4692
|
|
|
4693
|
-
// packages/experience-design-system-cli/src/analytics/exit.ts
|
|
4693
|
+
// packages/experience-design-system-cli-legacy/src/analytics/exit.ts
|
|
4694
4694
|
async function exitWithAnalytics(code, fields = {}) {
|
|
4695
4695
|
if (code === 0) await completeActiveCommand();
|
|
4696
4696
|
else await failActiveCommand({ exit_code: code, ...fields });
|
|
@@ -4706,14 +4706,14 @@ function failureFromApiError(error) {
|
|
|
4706
4706
|
};
|
|
4707
4707
|
}
|
|
4708
4708
|
var init_exit = __esm({
|
|
4709
|
-
"packages/experience-design-system-cli/src/analytics/exit.ts"() {
|
|
4709
|
+
"packages/experience-design-system-cli-legacy/src/analytics/exit.ts"() {
|
|
4710
4710
|
"use strict";
|
|
4711
4711
|
init_client();
|
|
4712
4712
|
init_tracker();
|
|
4713
4713
|
}
|
|
4714
4714
|
});
|
|
4715
4715
|
|
|
4716
|
-
// packages/experience-design-system-cli/src/analytics/apply.ts
|
|
4716
|
+
// packages/experience-design-system-cli-legacy/src/analytics/apply.ts
|
|
4717
4717
|
function countWriteResult(items, entityType) {
|
|
4718
4718
|
const subset = items.filter((item) => item.entityType === entityType);
|
|
4719
4719
|
return {
|
|
@@ -4742,13 +4742,13 @@ function recordContentfulContext(client2, spaceId, environmentId) {
|
|
|
4742
4742
|
});
|
|
4743
4743
|
}
|
|
4744
4744
|
var init_apply = __esm({
|
|
4745
|
-
"packages/experience-design-system-cli/src/analytics/apply.ts"() {
|
|
4745
|
+
"packages/experience-design-system-cli-legacy/src/analytics/apply.ts"() {
|
|
4746
4746
|
"use strict";
|
|
4747
4747
|
init_tracker();
|
|
4748
4748
|
}
|
|
4749
4749
|
});
|
|
4750
4750
|
|
|
4751
|
-
// packages/experience-design-system-cli/src/analytics/index.ts
|
|
4751
|
+
// packages/experience-design-system-cli-legacy/src/analytics/index.ts
|
|
4752
4752
|
var analytics_exports = {};
|
|
4753
4753
|
__export(analytics_exports, {
|
|
4754
4754
|
bindAnalyticsSessionId: () => bindAnalyticsSessionId,
|
|
@@ -4766,7 +4766,7 @@ __export(analytics_exports, {
|
|
|
4766
4766
|
setPersistedAnalyticsDisabled: () => setPersistedAnalyticsDisabled
|
|
4767
4767
|
});
|
|
4768
4768
|
var init_analytics = __esm({
|
|
4769
|
-
"packages/experience-design-system-cli/src/analytics/index.ts"() {
|
|
4769
|
+
"packages/experience-design-system-cli-legacy/src/analytics/index.ts"() {
|
|
4770
4770
|
"use strict";
|
|
4771
4771
|
init_exit();
|
|
4772
4772
|
init_client();
|
|
@@ -4776,7 +4776,7 @@ var init_analytics = __esm({
|
|
|
4776
4776
|
}
|
|
4777
4777
|
});
|
|
4778
4778
|
|
|
4779
|
-
// packages/experience-design-system-cli/src/lib/cli-errors.ts
|
|
4779
|
+
// packages/experience-design-system-cli-legacy/src/lib/cli-errors.ts
|
|
4780
4780
|
import { execFile } from "node:child_process";
|
|
4781
4781
|
import { promisify } from "node:util";
|
|
4782
4782
|
function die(message) {
|
|
@@ -4796,7 +4796,7 @@ async function assertBinaryInPath(binary) {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
var execFileAsync;
|
|
4798
4798
|
var init_cli_errors = __esm({
|
|
4799
|
-
"packages/experience-design-system-cli/src/lib/cli-errors.ts"() {
|
|
4799
|
+
"packages/experience-design-system-cli-legacy/src/lib/cli-errors.ts"() {
|
|
4800
4800
|
"use strict";
|
|
4801
4801
|
init_analytics();
|
|
4802
4802
|
init_debug_logger();
|
|
@@ -4804,18 +4804,18 @@ var init_cli_errors = __esm({
|
|
|
4804
4804
|
}
|
|
4805
4805
|
});
|
|
4806
4806
|
|
|
4807
|
-
// packages/experience-design-system-cli/src/lib/path-exists.ts
|
|
4807
|
+
// packages/experience-design-system-cli-legacy/src/lib/path-exists.ts
|
|
4808
4808
|
import { access as access2 } from "node:fs/promises";
|
|
4809
4809
|
function pathExists(path) {
|
|
4810
4810
|
return access2(path).then(() => true).catch(() => false);
|
|
4811
4811
|
}
|
|
4812
4812
|
var init_path_exists = __esm({
|
|
4813
|
-
"packages/experience-design-system-cli/src/lib/path-exists.ts"() {
|
|
4813
|
+
"packages/experience-design-system-cli-legacy/src/lib/path-exists.ts"() {
|
|
4814
4814
|
"use strict";
|
|
4815
4815
|
}
|
|
4816
4816
|
});
|
|
4817
4817
|
|
|
4818
|
-
// packages/experience-design-system-cli/src/lib/prompt-overrides.ts
|
|
4818
|
+
// packages/experience-design-system-cli-legacy/src/lib/prompt-overrides.ts
|
|
4819
4819
|
import { readFile as readFile7 } from "node:fs/promises";
|
|
4820
4820
|
import { resolve as resolve5 } from "node:path";
|
|
4821
4821
|
function looksLikePath(value) {
|
|
@@ -4858,13 +4858,13 @@ async function resolvePromptOverride(override) {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
var PROMPT_FILE_EXTENSIONS;
|
|
4860
4860
|
var init_prompt_overrides = __esm({
|
|
4861
|
-
"packages/experience-design-system-cli/src/lib/prompt-overrides.ts"() {
|
|
4861
|
+
"packages/experience-design-system-cli-legacy/src/lib/prompt-overrides.ts"() {
|
|
4862
4862
|
"use strict";
|
|
4863
4863
|
PROMPT_FILE_EXTENSIONS = [".md", ".txt", ".prompt"];
|
|
4864
4864
|
}
|
|
4865
4865
|
});
|
|
4866
4866
|
|
|
4867
|
-
// packages/experience-design-system-cli/src/generate/command.ts
|
|
4867
|
+
// packages/experience-design-system-cli-legacy/src/generate/command.ts
|
|
4868
4868
|
import { createElement } from "react";
|
|
4869
4869
|
import { readFile as readFile8, readdir, stat } from "node:fs/promises";
|
|
4870
4870
|
import { join as join6, resolve as resolve6 } from "node:path";
|
|
@@ -5633,7 +5633,7 @@ function registerInternalGenerateCommand(program) {
|
|
|
5633
5633
|
}
|
|
5634
5634
|
var DEFAULT_TIMEOUT_MS, DEFAULT_COMPONENT_CONCURRENCY, RETRY_BACKOFF_MS, invoker;
|
|
5635
5635
|
var init_command = __esm({
|
|
5636
|
-
"packages/experience-design-system-cli/src/generate/command.ts"() {
|
|
5636
|
+
"packages/experience-design-system-cli-legacy/src/generate/command.ts"() {
|
|
5637
5637
|
"use strict";
|
|
5638
5638
|
init_render_with_goodbye();
|
|
5639
5639
|
init_src();
|
|
@@ -6326,7 +6326,7 @@ var init_src2 = __esm({
|
|
|
6326
6326
|
}
|
|
6327
6327
|
});
|
|
6328
6328
|
|
|
6329
|
-
// packages/experience-design-system-cli/src/lib/user-agent.ts
|
|
6329
|
+
// packages/experience-design-system-cli-legacy/src/lib/user-agent.ts
|
|
6330
6330
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
6331
6331
|
import { join as join7 } from "node:path";
|
|
6332
6332
|
function buildUserAgent(version = pkg2.version) {
|
|
@@ -6337,7 +6337,7 @@ function buildUserAgent(version = pkg2.version) {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
var pkg2, APP, OS_NAMES2;
|
|
6339
6339
|
var init_user_agent = __esm({
|
|
6340
|
-
"packages/experience-design-system-cli/src/lib/user-agent.ts"() {
|
|
6340
|
+
"packages/experience-design-system-cli-legacy/src/lib/user-agent.ts"() {
|
|
6341
6341
|
"use strict";
|
|
6342
6342
|
init_cli_path();
|
|
6343
6343
|
pkg2 = JSON.parse(readFileSync3(join7(findPkgRoot(), "package.json"), "utf8"));
|
|
@@ -6355,7 +6355,7 @@ var init_user_agent = __esm({
|
|
|
6355
6355
|
}
|
|
6356
6356
|
});
|
|
6357
6357
|
|
|
6358
|
-
// packages/experience-design-system-cli/src/apply/api-client.ts
|
|
6358
|
+
// packages/experience-design-system-cli-legacy/src/apply/api-client.ts
|
|
6359
6359
|
import { parseCDFComponents } from "@contentful/experience-design-system-types";
|
|
6360
6360
|
function defaultSleep(delayMs) {
|
|
6361
6361
|
return new Promise((resolve21) => setTimeout(resolve21, delayMs));
|
|
@@ -6454,7 +6454,7 @@ async function request(url, options) {
|
|
|
6454
6454
|
}
|
|
6455
6455
|
var PREVIEW_ERROR_PREFIX, APPLY_ERROR_PREFIX, MAX_RETRY_AFTER_MS, ERROR_BODY_LOG_CAP, ApiError, COMPONENT_PATH_PREFIX, PROPERTY_BREAKING_REASONS, SLOT_BREAKING_REASONS, ImportApiClient;
|
|
6456
6456
|
var init_api_client = __esm({
|
|
6457
|
-
"packages/experience-design-system-cli/src/apply/api-client.ts"() {
|
|
6457
|
+
"packages/experience-design-system-cli-legacy/src/apply/api-client.ts"() {
|
|
6458
6458
|
"use strict";
|
|
6459
6459
|
init_src2();
|
|
6460
6460
|
init_host_utils();
|
|
@@ -6757,7 +6757,7 @@ ${trimmed}`;
|
|
|
6757
6757
|
}
|
|
6758
6758
|
});
|
|
6759
6759
|
|
|
6760
|
-
// packages/experience-design-system-cli/src/lib/error-parser.ts
|
|
6760
|
+
// packages/experience-design-system-cli-legacy/src/lib/error-parser.ts
|
|
6761
6761
|
function stripLambdaLogPrefix(body) {
|
|
6762
6762
|
let out = body.replace(LAMBDA_LOG_PREFIX_RE, "");
|
|
6763
6763
|
out = out.replace(DD_TAG_RE, "");
|
|
@@ -6999,7 +6999,7 @@ ${error.guidance}` : withPhase;
|
|
|
6999
6999
|
}
|
|
7000
7000
|
var LAMBDA_LOG_PREFIX_RE, DD_TAG_RE, API_ERROR_PREFIX_RE;
|
|
7001
7001
|
var init_error_parser = __esm({
|
|
7002
|
-
"packages/experience-design-system-cli/src/lib/error-parser.ts"() {
|
|
7002
|
+
"packages/experience-design-system-cli-legacy/src/lib/error-parser.ts"() {
|
|
7003
7003
|
"use strict";
|
|
7004
7004
|
LAMBDA_LOG_PREFIX_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z\s+[0-9a-f-]+\s+ERROR\s+(?:\[dd\.[^\]]*\]\s*)?/;
|
|
7005
7005
|
DD_TAG_RE = /\[dd\.(?:trace_id|span_id)=[^\]]*\]\s*/g;
|
|
@@ -7007,7 +7007,7 @@ var init_error_parser = __esm({
|
|
|
7007
7007
|
}
|
|
7008
7008
|
});
|
|
7009
7009
|
|
|
7010
|
-
// packages/experience-design-system-cli/src/analyze/cycle-detection.ts
|
|
7010
|
+
// packages/experience-design-system-cli-legacy/src/analyze/cycle-detection.ts
|
|
7011
7011
|
function buildGraph(components) {
|
|
7012
7012
|
const nodes = [];
|
|
7013
7013
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -7223,23 +7223,23 @@ function formatCyclePathSegments(cycle, maxHops = 8) {
|
|
|
7223
7223
|
return withArrows([...head, { kind: "component", text: "\u2026" }, tail]);
|
|
7224
7224
|
}
|
|
7225
7225
|
var init_cycle_detection = __esm({
|
|
7226
|
-
"packages/experience-design-system-cli/src/analyze/cycle-detection.ts"() {
|
|
7226
|
+
"packages/experience-design-system-cli-legacy/src/analyze/cycle-detection.ts"() {
|
|
7227
7227
|
"use strict";
|
|
7228
7228
|
}
|
|
7229
7229
|
});
|
|
7230
7230
|
|
|
7231
|
-
// packages/experience-design-system-cli/src/apply/preview-utils.ts
|
|
7231
|
+
// packages/experience-design-system-cli-legacy/src/apply/preview-utils.ts
|
|
7232
7232
|
function isEmptyPreview(preview) {
|
|
7233
7233
|
const { components, tokens, taxonomies } = preview;
|
|
7234
7234
|
return components.new.length === 0 && components.changed.length === 0 && components.removed.length === 0 && tokens.new.length === 0 && tokens.changed.length === 0 && tokens.removed.length === 0 && taxonomies.new.length === 0 && taxonomies.changed.length === 0 && taxonomies.removed.length === 0;
|
|
7235
7235
|
}
|
|
7236
7236
|
var init_preview_utils = __esm({
|
|
7237
|
-
"packages/experience-design-system-cli/src/apply/preview-utils.ts"() {
|
|
7237
|
+
"packages/experience-design-system-cli-legacy/src/apply/preview-utils.ts"() {
|
|
7238
7238
|
"use strict";
|
|
7239
7239
|
}
|
|
7240
7240
|
});
|
|
7241
7241
|
|
|
7242
|
-
// packages/experience-design-system-cli/src/apply/tui/ServerPreviewView.tsx
|
|
7242
|
+
// packages/experience-design-system-cli-legacy/src/apply/tui/ServerPreviewView.tsx
|
|
7243
7243
|
import { Box as Box2, Text as Text3 } from "ink";
|
|
7244
7244
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
7245
7245
|
function BreakingBadge({ item }) {
|
|
@@ -7353,12 +7353,12 @@ function ServerPreviewView({ preview, spaceId, environmentId }) {
|
|
|
7353
7353
|
] });
|
|
7354
7354
|
}
|
|
7355
7355
|
var init_ServerPreviewView = __esm({
|
|
7356
|
-
"packages/experience-design-system-cli/src/apply/tui/ServerPreviewView.tsx"() {
|
|
7356
|
+
"packages/experience-design-system-cli-legacy/src/apply/tui/ServerPreviewView.tsx"() {
|
|
7357
7357
|
"use strict";
|
|
7358
7358
|
}
|
|
7359
7359
|
});
|
|
7360
7360
|
|
|
7361
|
-
// packages/experience-design-system-cli/src/lib/contentful-urls.ts
|
|
7361
|
+
// packages/experience-design-system-cli-legacy/src/lib/contentful-urls.ts
|
|
7362
7362
|
function normalizeHost(host) {
|
|
7363
7363
|
return host.trim().replace(/^https?:\/\//i, "").replace(/\/+$/, "");
|
|
7364
7364
|
}
|
|
@@ -7371,12 +7371,12 @@ function buildPostPushUrl({ host, spaceId, environmentId, view = "components" })
|
|
|
7371
7371
|
return `https://${appHost}/spaces/${spaceId}/environments/${environmentId}/views/${view}`;
|
|
7372
7372
|
}
|
|
7373
7373
|
var init_contentful_urls = __esm({
|
|
7374
|
-
"packages/experience-design-system-cli/src/lib/contentful-urls.ts"() {
|
|
7374
|
+
"packages/experience-design-system-cli-legacy/src/lib/contentful-urls.ts"() {
|
|
7375
7375
|
"use strict";
|
|
7376
7376
|
}
|
|
7377
7377
|
});
|
|
7378
7378
|
|
|
7379
|
-
// packages/experience-design-system-cli/src/apply/tui/ServerApplyView.tsx
|
|
7379
|
+
// packages/experience-design-system-cli-legacy/src/apply/tui/ServerApplyView.tsx
|
|
7380
7380
|
import { Box as Box3, Text as Text4, useInput as useInput2 } from "ink";
|
|
7381
7381
|
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
7382
7382
|
function ServerPreviewConfirm({
|
|
@@ -7507,7 +7507,7 @@ function formatItemError(error) {
|
|
|
7507
7507
|
return formatEdsiError(error);
|
|
7508
7508
|
}
|
|
7509
7509
|
var init_ServerApplyView = __esm({
|
|
7510
|
-
"packages/experience-design-system-cli/src/apply/tui/ServerApplyView.tsx"() {
|
|
7510
|
+
"packages/experience-design-system-cli-legacy/src/apply/tui/ServerApplyView.tsx"() {
|
|
7511
7511
|
"use strict";
|
|
7512
7512
|
init_ServerPreviewView();
|
|
7513
7513
|
init_contentful_urls();
|
|
@@ -7515,7 +7515,7 @@ var init_ServerApplyView = __esm({
|
|
|
7515
7515
|
}
|
|
7516
7516
|
});
|
|
7517
7517
|
|
|
7518
|
-
// packages/experience-design-system-cli/src/lib/terminal-capabilities.ts
|
|
7518
|
+
// packages/experience-design-system-cli-legacy/src/lib/terminal-capabilities.ts
|
|
7519
7519
|
function getInteractiveTerminalSupport(options = {}) {
|
|
7520
7520
|
const stdin = options.stdin ?? process.stdin;
|
|
7521
7521
|
const stdout = options.stdout ?? process.stdout;
|
|
@@ -7551,12 +7551,12 @@ function requireInteractiveTerminal(options = {}) {
|
|
|
7551
7551
|
throw new Error(lines.join("\n"));
|
|
7552
7552
|
}
|
|
7553
7553
|
var init_terminal_capabilities = __esm({
|
|
7554
|
-
"packages/experience-design-system-cli/src/lib/terminal-capabilities.ts"() {
|
|
7554
|
+
"packages/experience-design-system-cli-legacy/src/lib/terminal-capabilities.ts"() {
|
|
7555
7555
|
"use strict";
|
|
7556
7556
|
}
|
|
7557
7557
|
});
|
|
7558
7558
|
|
|
7559
|
-
// packages/experience-design-system-cli/src/apply/command.ts
|
|
7559
|
+
// packages/experience-design-system-cli-legacy/src/apply/command.ts
|
|
7560
7560
|
import { createElement as createElement2 } from "react";
|
|
7561
7561
|
import { readFile as readFile9, readdir as readdir2, stat as stat2 } from "node:fs/promises";
|
|
7562
7562
|
import { join as join8 } from "node:path";
|
|
@@ -7985,7 +7985,7 @@ function registerApplyCommand(program) {
|
|
|
7985
7985
|
}
|
|
7986
7986
|
var IGNORE_TOKEN_DIRS;
|
|
7987
7987
|
var init_command2 = __esm({
|
|
7988
|
-
"packages/experience-design-system-cli/src/apply/command.ts"() {
|
|
7988
|
+
"packages/experience-design-system-cli-legacy/src/apply/command.ts"() {
|
|
7989
7989
|
"use strict";
|
|
7990
7990
|
init_render_with_goodbye();
|
|
7991
7991
|
init_api_client();
|
|
@@ -8001,7 +8001,7 @@ var init_command2 = __esm({
|
|
|
8001
8001
|
}
|
|
8002
8002
|
});
|
|
8003
8003
|
|
|
8004
|
-
// packages/experience-design-system-cli/src/print/validate/validators/read-json-file.ts
|
|
8004
|
+
// packages/experience-design-system-cli-legacy/src/print/validate/validators/read-json-file.ts
|
|
8005
8005
|
import { readFile as readFile10 } from "node:fs/promises";
|
|
8006
8006
|
async function readJsonFile2(filePath) {
|
|
8007
8007
|
let content;
|
|
@@ -8031,12 +8031,12 @@ async function readJsonFile2(filePath) {
|
|
|
8031
8031
|
}
|
|
8032
8032
|
}
|
|
8033
8033
|
var init_read_json_file = __esm({
|
|
8034
|
-
"packages/experience-design-system-cli/src/print/validate/validators/read-json-file.ts"() {
|
|
8034
|
+
"packages/experience-design-system-cli-legacy/src/print/validate/validators/read-json-file.ts"() {
|
|
8035
8035
|
"use strict";
|
|
8036
8036
|
}
|
|
8037
8037
|
});
|
|
8038
8038
|
|
|
8039
|
-
// packages/experience-design-system-cli/src/print/validate/validators/cdf-validator.ts
|
|
8039
|
+
// packages/experience-design-system-cli-legacy/src/print/validate/validators/cdf-validator.ts
|
|
8040
8040
|
import { validateCDF as validateCDF2 } from "@contentful/experience-design-system-types";
|
|
8041
8041
|
function extractValue(input, path) {
|
|
8042
8042
|
if (path === "/") return void 0;
|
|
@@ -8112,13 +8112,13 @@ async function validateCDFFile(filePath) {
|
|
|
8112
8112
|
};
|
|
8113
8113
|
}
|
|
8114
8114
|
var init_cdf_validator = __esm({
|
|
8115
|
-
"packages/experience-design-system-cli/src/print/validate/validators/cdf-validator.ts"() {
|
|
8115
|
+
"packages/experience-design-system-cli-legacy/src/print/validate/validators/cdf-validator.ts"() {
|
|
8116
8116
|
"use strict";
|
|
8117
8117
|
init_read_json_file();
|
|
8118
8118
|
}
|
|
8119
8119
|
});
|
|
8120
8120
|
|
|
8121
|
-
// packages/experience-design-system-cli/src/print/validate/validators/dtcg-validator.ts
|
|
8121
|
+
// packages/experience-design-system-cli-legacy/src/print/validate/validators/dtcg-validator.ts
|
|
8122
8122
|
import { DESIGN_TOKEN_TYPES } from "@contentful/experience-design-system-types";
|
|
8123
8123
|
function walkDTCG(obj, path, diagnostics, counts) {
|
|
8124
8124
|
for (const [key, value] of Object.entries(obj)) {
|
|
@@ -8189,13 +8189,13 @@ async function validateDTCGTokenFile(filePath) {
|
|
|
8189
8189
|
};
|
|
8190
8190
|
}
|
|
8191
8191
|
var init_dtcg_validator = __esm({
|
|
8192
|
-
"packages/experience-design-system-cli/src/print/validate/validators/dtcg-validator.ts"() {
|
|
8192
|
+
"packages/experience-design-system-cli-legacy/src/print/validate/validators/dtcg-validator.ts"() {
|
|
8193
8193
|
"use strict";
|
|
8194
8194
|
init_read_json_file();
|
|
8195
8195
|
}
|
|
8196
8196
|
});
|
|
8197
8197
|
|
|
8198
|
-
// packages/experience-design-system-cli/src/print/validate/validators/format-errors.ts
|
|
8198
|
+
// packages/experience-design-system-cli-legacy/src/print/validate/validators/format-errors.ts
|
|
8199
8199
|
function formatDiagnostics(result) {
|
|
8200
8200
|
if (result.valid) {
|
|
8201
8201
|
return `\u2713 ${result.summary}`;
|
|
@@ -8217,12 +8217,12 @@ function formatDiagnostics(result) {
|
|
|
8217
8217
|
${entries.join("\n\n")}`;
|
|
8218
8218
|
}
|
|
8219
8219
|
var init_format_errors = __esm({
|
|
8220
|
-
"packages/experience-design-system-cli/src/print/validate/validators/format-errors.ts"() {
|
|
8220
|
+
"packages/experience-design-system-cli-legacy/src/print/validate/validators/format-errors.ts"() {
|
|
8221
8221
|
"use strict";
|
|
8222
8222
|
}
|
|
8223
8223
|
});
|
|
8224
8224
|
|
|
8225
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/TopBar.tsx
|
|
8225
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/TopBar.tsx
|
|
8226
8226
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
8227
8227
|
import { join as join9 } from "node:path";
|
|
8228
8228
|
import { Box as Box4, Text as Text5 } from "ink";
|
|
@@ -8238,14 +8238,14 @@ function TopBar({ subcommand, hints }) {
|
|
|
8238
8238
|
}
|
|
8239
8239
|
var VERSION;
|
|
8240
8240
|
var init_TopBar = __esm({
|
|
8241
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/TopBar.tsx"() {
|
|
8241
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/TopBar.tsx"() {
|
|
8242
8242
|
"use strict";
|
|
8243
8243
|
init_cli_path();
|
|
8244
8244
|
VERSION = JSON.parse(readFileSync4(join9(findPkgRoot(), "package.json"), "utf8")).version;
|
|
8245
8245
|
}
|
|
8246
8246
|
});
|
|
8247
8247
|
|
|
8248
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/hooks/useImmediateInput.ts
|
|
8248
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/hooks/useImmediateInput.ts
|
|
8249
8249
|
import { useLayoutEffect, useRef as useRef2 } from "react";
|
|
8250
8250
|
import { useStdin } from "ink";
|
|
8251
8251
|
function parseInput(data) {
|
|
@@ -8318,13 +8318,13 @@ function useImmediateInput(handler, enabled = true) {
|
|
|
8318
8318
|
}
|
|
8319
8319
|
var inputRegistries;
|
|
8320
8320
|
var init_useImmediateInput = __esm({
|
|
8321
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/hooks/useImmediateInput.ts"() {
|
|
8321
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/hooks/useImmediateInput.ts"() {
|
|
8322
8322
|
"use strict";
|
|
8323
8323
|
inputRegistries = /* @__PURE__ */ new WeakMap();
|
|
8324
8324
|
}
|
|
8325
8325
|
});
|
|
8326
8326
|
|
|
8327
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/hooks/list-scroll-input.ts
|
|
8327
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/hooks/list-scroll-input.ts
|
|
8328
8328
|
function handleListScrollInput(input, key, { onExit, onScroll, maxOffset, endOffset }) {
|
|
8329
8329
|
if (input === "q" || key.return) {
|
|
8330
8330
|
onExit();
|
|
@@ -8349,12 +8349,12 @@ function handleListScrollInput(input, key, { onExit, onScroll, maxOffset, endOff
|
|
|
8349
8349
|
return false;
|
|
8350
8350
|
}
|
|
8351
8351
|
var init_list_scroll_input = __esm({
|
|
8352
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/hooks/list-scroll-input.ts"() {
|
|
8352
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/hooks/list-scroll-input.ts"() {
|
|
8353
8353
|
"use strict";
|
|
8354
8354
|
}
|
|
8355
8355
|
});
|
|
8356
8356
|
|
|
8357
|
-
// packages/experience-design-system-cli/src/print/validate/tui/ValidateView.tsx
|
|
8357
|
+
// packages/experience-design-system-cli-legacy/src/print/validate/tui/ValidateView.tsx
|
|
8358
8358
|
import { useState as useState2 } from "react";
|
|
8359
8359
|
import { Box as Box5, Text as Text6 } from "ink";
|
|
8360
8360
|
import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
@@ -8406,7 +8406,7 @@ function ValidateView({ results, onExit }) {
|
|
|
8406
8406
|
] });
|
|
8407
8407
|
}
|
|
8408
8408
|
var init_ValidateView = __esm({
|
|
8409
|
-
"packages/experience-design-system-cli/src/print/validate/tui/ValidateView.tsx"() {
|
|
8409
|
+
"packages/experience-design-system-cli-legacy/src/print/validate/tui/ValidateView.tsx"() {
|
|
8410
8410
|
"use strict";
|
|
8411
8411
|
init_TopBar();
|
|
8412
8412
|
init_useImmediateInput();
|
|
@@ -8414,7 +8414,7 @@ var init_ValidateView = __esm({
|
|
|
8414
8414
|
}
|
|
8415
8415
|
});
|
|
8416
8416
|
|
|
8417
|
-
// packages/experience-design-system-cli/src/print/command.ts
|
|
8417
|
+
// packages/experience-design-system-cli-legacy/src/print/command.ts
|
|
8418
8418
|
import { createElement as createElement3 } from "react";
|
|
8419
8419
|
import { access as access3, mkdir as mkdir3, stat as stat3, writeFile as writeFile3 } from "node:fs/promises";
|
|
8420
8420
|
import { basename, resolve as resolve7 } from "node:path";
|
|
@@ -8616,7 +8616,7 @@ function registerPrintCommand(program) {
|
|
|
8616
8616
|
});
|
|
8617
8617
|
}
|
|
8618
8618
|
var init_command3 = __esm({
|
|
8619
|
-
"packages/experience-design-system-cli/src/print/command.ts"() {
|
|
8619
|
+
"packages/experience-design-system-cli-legacy/src/print/command.ts"() {
|
|
8620
8620
|
"use strict";
|
|
8621
8621
|
init_render_with_goodbye();
|
|
8622
8622
|
init_db();
|
|
@@ -8629,7 +8629,7 @@ var init_command3 = __esm({
|
|
|
8629
8629
|
}
|
|
8630
8630
|
});
|
|
8631
8631
|
|
|
8632
|
-
// packages/experience-design-system-cli/src/map-tokens/apply.ts
|
|
8632
|
+
// packages/experience-design-system-cli-legacy/src/map-tokens/apply.ts
|
|
8633
8633
|
function applyMapTokenPropCalls(db, sessionId2, calls, incomingWarnings) {
|
|
8634
8634
|
const warnings = [...incomingWarnings];
|
|
8635
8635
|
let applied = 0;
|
|
@@ -8691,13 +8691,13 @@ function applyMapTokenPropCalls(db, sessionId2, calls, incomingWarnings) {
|
|
|
8691
8691
|
return { applied, warnings };
|
|
8692
8692
|
}
|
|
8693
8693
|
var init_apply2 = __esm({
|
|
8694
|
-
"packages/experience-design-system-cli/src/map-tokens/apply.ts"() {
|
|
8694
|
+
"packages/experience-design-system-cli-legacy/src/map-tokens/apply.ts"() {
|
|
8695
8695
|
"use strict";
|
|
8696
8696
|
init_db();
|
|
8697
8697
|
}
|
|
8698
8698
|
});
|
|
8699
8699
|
|
|
8700
|
-
// packages/experience-design-system-cli/src/map-tokens/tui/MapTokensView.tsx
|
|
8700
|
+
// packages/experience-design-system-cli-legacy/src/map-tokens/tui/MapTokensView.tsx
|
|
8701
8701
|
import React5 from "react";
|
|
8702
8702
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
8703
8703
|
function MapTokensView({ result, onExit }) {
|
|
@@ -8721,13 +8721,13 @@ function MapTokensView({ result, onExit }) {
|
|
|
8721
8721
|
);
|
|
8722
8722
|
}
|
|
8723
8723
|
var init_MapTokensView = __esm({
|
|
8724
|
-
"packages/experience-design-system-cli/src/map-tokens/tui/MapTokensView.tsx"() {
|
|
8724
|
+
"packages/experience-design-system-cli-legacy/src/map-tokens/tui/MapTokensView.tsx"() {
|
|
8725
8725
|
"use strict";
|
|
8726
8726
|
init_CommandCompletionView();
|
|
8727
8727
|
}
|
|
8728
8728
|
});
|
|
8729
8729
|
|
|
8730
|
-
// packages/experience-design-system-cli/src/map-tokens/resolve-defaults.ts
|
|
8730
|
+
// packages/experience-design-system-cli-legacy/src/map-tokens/resolve-defaults.ts
|
|
8731
8731
|
function normalizeTokenKey(key) {
|
|
8732
8732
|
return key.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/[ _]+/g, "-").toLowerCase();
|
|
8733
8733
|
}
|
|
@@ -8832,12 +8832,12 @@ function resolveTokenDefaults(defaults, leaves) {
|
|
|
8832
8832
|
return { mappings, diagnostics };
|
|
8833
8833
|
}
|
|
8834
8834
|
var init_resolve_defaults = __esm({
|
|
8835
|
-
"packages/experience-design-system-cli/src/map-tokens/resolve-defaults.ts"() {
|
|
8835
|
+
"packages/experience-design-system-cli-legacy/src/map-tokens/resolve-defaults.ts"() {
|
|
8836
8836
|
"use strict";
|
|
8837
8837
|
}
|
|
8838
8838
|
});
|
|
8839
8839
|
|
|
8840
|
-
// packages/experience-design-system-cli/src/map-tokens/command.ts
|
|
8840
|
+
// packages/experience-design-system-cli-legacy/src/map-tokens/command.ts
|
|
8841
8841
|
import { createElement as createElement4 } from "react";
|
|
8842
8842
|
import { readFile as readFile11 } from "node:fs/promises";
|
|
8843
8843
|
import { resolve as resolve8 } from "node:path";
|
|
@@ -9082,7 +9082,7 @@ function registerMapTokensCommand(program) {
|
|
|
9082
9082
|
}
|
|
9083
9083
|
var DEFAULT_TIMEOUT_MS2;
|
|
9084
9084
|
var init_command4 = __esm({
|
|
9085
|
-
"packages/experience-design-system-cli/src/map-tokens/command.ts"() {
|
|
9085
|
+
"packages/experience-design-system-cli-legacy/src/map-tokens/command.ts"() {
|
|
9086
9086
|
"use strict";
|
|
9087
9087
|
init_render_with_goodbye();
|
|
9088
9088
|
init_src();
|
|
@@ -9103,7 +9103,7 @@ var init_command4 = __esm({
|
|
|
9103
9103
|
}
|
|
9104
9104
|
});
|
|
9105
9105
|
|
|
9106
|
-
// packages/experience-design-system-cli/src/import/path-utils.ts
|
|
9106
|
+
// packages/experience-design-system-cli-legacy/src/import/path-utils.ts
|
|
9107
9107
|
import { resolve as resolve9 } from "node:path";
|
|
9108
9108
|
import { homedir as homedir5 } from "node:os";
|
|
9109
9109
|
function expandTilde(input) {
|
|
@@ -9121,12 +9121,12 @@ function normalizePath(input) {
|
|
|
9121
9121
|
return resolve9(p);
|
|
9122
9122
|
}
|
|
9123
9123
|
var init_path_utils = __esm({
|
|
9124
|
-
"packages/experience-design-system-cli/src/import/path-utils.ts"() {
|
|
9124
|
+
"packages/experience-design-system-cli-legacy/src/import/path-utils.ts"() {
|
|
9125
9125
|
"use strict";
|
|
9126
9126
|
}
|
|
9127
9127
|
});
|
|
9128
9128
|
|
|
9129
|
-
// packages/experience-design-system-cli/src/import/agent-model-resolve.ts
|
|
9129
|
+
// packages/experience-design-system-cli-legacy/src/import/agent-model-resolve.ts
|
|
9130
9130
|
function parseAgentModel(value) {
|
|
9131
9131
|
if (!value?.trim()) return {};
|
|
9132
9132
|
const trimmed = value.trim();
|
|
@@ -9152,28 +9152,28 @@ function resolveModel(flagValue, storedValue) {
|
|
|
9152
9152
|
}
|
|
9153
9153
|
var DEFAULT_AGENT;
|
|
9154
9154
|
var init_agent_model_resolve = __esm({
|
|
9155
|
-
"packages/experience-design-system-cli/src/import/agent-model-resolve.ts"() {
|
|
9155
|
+
"packages/experience-design-system-cli-legacy/src/import/agent-model-resolve.ts"() {
|
|
9156
9156
|
"use strict";
|
|
9157
9157
|
DEFAULT_AGENT = "claude";
|
|
9158
9158
|
}
|
|
9159
9159
|
});
|
|
9160
9160
|
|
|
9161
|
-
// packages/experience-design-system-cli/src/import/composition-options.ts
|
|
9161
|
+
// packages/experience-design-system-cli-legacy/src/import/composition-options.ts
|
|
9162
9162
|
function buildCompositionForwardingOptions(options) {
|
|
9163
9163
|
return {
|
|
9164
9164
|
...options.prompt && options.prompt.length > 0 ? { promptOverrides: options.prompt } : {}
|
|
9165
9165
|
};
|
|
9166
9166
|
}
|
|
9167
9167
|
var init_composition_options = __esm({
|
|
9168
|
-
"packages/experience-design-system-cli/src/import/composition-options.ts"() {
|
|
9168
|
+
"packages/experience-design-system-cli-legacy/src/import/composition-options.ts"() {
|
|
9169
9169
|
"use strict";
|
|
9170
9170
|
}
|
|
9171
9171
|
});
|
|
9172
9172
|
|
|
9173
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/theme.ts
|
|
9173
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/theme.ts
|
|
9174
9174
|
var PALETTE;
|
|
9175
9175
|
var init_theme = __esm({
|
|
9176
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/theme.ts"() {
|
|
9176
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/theme.ts"() {
|
|
9177
9177
|
"use strict";
|
|
9178
9178
|
PALETTE = {
|
|
9179
9179
|
info: "#1773EB",
|
|
@@ -9190,18 +9190,18 @@ var init_theme = __esm({
|
|
|
9190
9190
|
}
|
|
9191
9191
|
});
|
|
9192
9192
|
|
|
9193
|
-
// packages/experience-design-system-cli/src/import/tui/run-teaser.ts
|
|
9193
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/run-teaser.ts
|
|
9194
9194
|
function buildRunTeaserLine(runId) {
|
|
9195
9195
|
if (!runId) return "";
|
|
9196
9196
|
return `Run saved as ${runId}.`;
|
|
9197
9197
|
}
|
|
9198
9198
|
var init_run_teaser = __esm({
|
|
9199
|
-
"packages/experience-design-system-cli/src/import/tui/run-teaser.ts"() {
|
|
9199
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/run-teaser.ts"() {
|
|
9200
9200
|
"use strict";
|
|
9201
9201
|
}
|
|
9202
9202
|
});
|
|
9203
9203
|
|
|
9204
|
-
// packages/experience-design-system-cli/src/tui/use-blinking-cursor.ts
|
|
9204
|
+
// packages/experience-design-system-cli-legacy/src/tui/use-blinking-cursor.ts
|
|
9205
9205
|
import { useEffect as useEffect2, useState as useState3 } from "react";
|
|
9206
9206
|
function useBlinkingCursor() {
|
|
9207
9207
|
const [visible, setVisible] = useState3(true);
|
|
@@ -9212,12 +9212,12 @@ function useBlinkingCursor() {
|
|
|
9212
9212
|
return visible;
|
|
9213
9213
|
}
|
|
9214
9214
|
var init_use_blinking_cursor = __esm({
|
|
9215
|
-
"packages/experience-design-system-cli/src/tui/use-blinking-cursor.ts"() {
|
|
9215
|
+
"packages/experience-design-system-cli-legacy/src/tui/use-blinking-cursor.ts"() {
|
|
9216
9216
|
"use strict";
|
|
9217
9217
|
}
|
|
9218
9218
|
});
|
|
9219
9219
|
|
|
9220
|
-
// packages/experience-design-system-cli/src/runs/path-prompt.tsx
|
|
9220
|
+
// packages/experience-design-system-cli-legacy/src/runs/path-prompt.tsx
|
|
9221
9221
|
import { useState as useState4 } from "react";
|
|
9222
9222
|
import { Box as Box6, Text as Text7 } from "ink";
|
|
9223
9223
|
import { readdirSync } from "node:fs";
|
|
@@ -9297,7 +9297,7 @@ function PathPrompt({
|
|
|
9297
9297
|
] });
|
|
9298
9298
|
}
|
|
9299
9299
|
var init_path_prompt = __esm({
|
|
9300
|
-
"packages/experience-design-system-cli/src/runs/path-prompt.tsx"() {
|
|
9300
|
+
"packages/experience-design-system-cli-legacy/src/runs/path-prompt.tsx"() {
|
|
9301
9301
|
"use strict";
|
|
9302
9302
|
init_useImmediateInput();
|
|
9303
9303
|
init_path_utils();
|
|
@@ -9305,7 +9305,7 @@ var init_path_prompt = __esm({
|
|
|
9305
9305
|
}
|
|
9306
9306
|
});
|
|
9307
9307
|
|
|
9308
|
-
// packages/experience-design-system-cli/src/runs/save-path-resolver.ts
|
|
9308
|
+
// packages/experience-design-system-cli-legacy/src/runs/save-path-resolver.ts
|
|
9309
9309
|
import { access as access4 } from "node:fs/promises";
|
|
9310
9310
|
import { join as join11 } from "node:path";
|
|
9311
9311
|
async function listConflictingFiles(path) {
|
|
@@ -9336,13 +9336,13 @@ function buildTimestampedSubdir(base, now = /* @__PURE__ */ new Date()) {
|
|
|
9336
9336
|
}
|
|
9337
9337
|
var SAVE_FILES;
|
|
9338
9338
|
var init_save_path_resolver = __esm({
|
|
9339
|
-
"packages/experience-design-system-cli/src/runs/save-path-resolver.ts"() {
|
|
9339
|
+
"packages/experience-design-system-cli-legacy/src/runs/save-path-resolver.ts"() {
|
|
9340
9340
|
"use strict";
|
|
9341
9341
|
SAVE_FILES = ["components.json", "tokens.json"];
|
|
9342
9342
|
}
|
|
9343
9343
|
});
|
|
9344
9344
|
|
|
9345
|
-
// packages/experience-design-system-cli/src/runs/store.ts
|
|
9345
|
+
// packages/experience-design-system-cli-legacy/src/runs/store.ts
|
|
9346
9346
|
import { readFile as readFile12, writeFile as writeFile4, mkdir as mkdir4, rename } from "node:fs/promises";
|
|
9347
9347
|
import { join as join12 } from "node:path";
|
|
9348
9348
|
import { homedir as homedir6 } from "node:os";
|
|
@@ -9435,7 +9435,7 @@ async function updateRun(id, patch) {
|
|
|
9435
9435
|
}
|
|
9436
9436
|
var RUNS_FILE_VERSION, RUNS_FILE_CAP, READABLE_VERSIONS, RUNS_DIR, RUNS_PATH, CROCKFORD;
|
|
9437
9437
|
var init_store = __esm({
|
|
9438
|
-
"packages/experience-design-system-cli/src/runs/store.ts"() {
|
|
9438
|
+
"packages/experience-design-system-cli-legacy/src/runs/store.ts"() {
|
|
9439
9439
|
"use strict";
|
|
9440
9440
|
RUNS_FILE_VERSION = 3;
|
|
9441
9441
|
RUNS_FILE_CAP = 200;
|
|
@@ -9446,7 +9446,7 @@ var init_store = __esm({
|
|
|
9446
9446
|
}
|
|
9447
9447
|
});
|
|
9448
9448
|
|
|
9449
|
-
// packages/experience-design-system-cli/src/runs/fingerprint.ts
|
|
9449
|
+
// packages/experience-design-system-cli-legacy/src/runs/fingerprint.ts
|
|
9450
9450
|
import { createHash as createHash6 } from "node:crypto";
|
|
9451
9451
|
import { readFile as readFile13, stat as stat4 } from "node:fs/promises";
|
|
9452
9452
|
import { resolve as resolve10 } from "node:path";
|
|
@@ -9492,12 +9492,12 @@ async function buildSourceFingerprint(opts) {
|
|
|
9492
9492
|
return { files, rawTokensPath, rawTokensMtime, rawTokensContentHash };
|
|
9493
9493
|
}
|
|
9494
9494
|
var init_fingerprint = __esm({
|
|
9495
|
-
"packages/experience-design-system-cli/src/runs/fingerprint.ts"() {
|
|
9495
|
+
"packages/experience-design-system-cli-legacy/src/runs/fingerprint.ts"() {
|
|
9496
9496
|
"use strict";
|
|
9497
9497
|
}
|
|
9498
9498
|
});
|
|
9499
9499
|
|
|
9500
|
-
// packages/experience-design-system-cli/src/import/tui/CustomPromptBanner.tsx
|
|
9500
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/CustomPromptBanner.tsx
|
|
9501
9501
|
import { Box as Box7, Text as Text8 } from "ink";
|
|
9502
9502
|
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
9503
9503
|
function CustomPromptBanner({ generatePromptPath }) {
|
|
@@ -9512,13 +9512,13 @@ function CustomPromptBanner({ generatePromptPath }) {
|
|
|
9512
9512
|
] });
|
|
9513
9513
|
}
|
|
9514
9514
|
var init_CustomPromptBanner = __esm({
|
|
9515
|
-
"packages/experience-design-system-cli/src/import/tui/CustomPromptBanner.tsx"() {
|
|
9515
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/CustomPromptBanner.tsx"() {
|
|
9516
9516
|
"use strict";
|
|
9517
9517
|
init_theme();
|
|
9518
9518
|
}
|
|
9519
9519
|
});
|
|
9520
9520
|
|
|
9521
|
-
// packages/experience-design-system-cli/src/import/tui/steps/WelcomeStep.tsx
|
|
9521
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/WelcomeStep.tsx
|
|
9522
9522
|
import { useState as useState5 } from "react";
|
|
9523
9523
|
import { Box as Box8, Text as Text9 } from "ink";
|
|
9524
9524
|
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
@@ -9586,7 +9586,7 @@ function WelcomeStep({ onContinue, onQuit }) {
|
|
|
9586
9586
|
] });
|
|
9587
9587
|
}
|
|
9588
9588
|
var init_WelcomeStep = __esm({
|
|
9589
|
-
"packages/experience-design-system-cli/src/import/tui/steps/WelcomeStep.tsx"() {
|
|
9589
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/WelcomeStep.tsx"() {
|
|
9590
9590
|
"use strict";
|
|
9591
9591
|
init_theme();
|
|
9592
9592
|
init_useImmediateInput();
|
|
@@ -9594,7 +9594,7 @@ var init_WelcomeStep = __esm({
|
|
|
9594
9594
|
}
|
|
9595
9595
|
});
|
|
9596
9596
|
|
|
9597
|
-
// packages/experience-design-system-cli/src/import/tui/steps/PathValidationStep.tsx
|
|
9597
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/PathValidationStep.tsx
|
|
9598
9598
|
import { useState as useState6, useEffect as useEffect3 } from "react";
|
|
9599
9599
|
import { Box as Box9, Text as Text10 } from "ink";
|
|
9600
9600
|
import { promises as fs } from "node:fs";
|
|
@@ -9819,7 +9819,7 @@ You don't have read access to this directory.`);
|
|
|
9819
9819
|
}
|
|
9820
9820
|
var fileCountsCache, IGNORE_DIRS;
|
|
9821
9821
|
var init_PathValidationStep = __esm({
|
|
9822
|
-
"packages/experience-design-system-cli/src/import/tui/steps/PathValidationStep.tsx"() {
|
|
9822
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/PathValidationStep.tsx"() {
|
|
9823
9823
|
"use strict";
|
|
9824
9824
|
init_theme();
|
|
9825
9825
|
init_useImmediateInput();
|
|
@@ -9838,7 +9838,7 @@ var init_PathValidationStep = __esm({
|
|
|
9838
9838
|
}
|
|
9839
9839
|
});
|
|
9840
9840
|
|
|
9841
|
-
// packages/experience-design-system-cli/src/import/tui/components/StepHeader.tsx
|
|
9841
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/StepHeader.tsx
|
|
9842
9842
|
import { Box as Box10, Text as Text11 } from "ink";
|
|
9843
9843
|
import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
9844
9844
|
function StepHeader({ stepNumber, totalSteps, title }) {
|
|
@@ -9858,12 +9858,12 @@ function StepHeader({ stepNumber, totalSteps, title }) {
|
|
|
9858
9858
|
] });
|
|
9859
9859
|
}
|
|
9860
9860
|
var init_StepHeader = __esm({
|
|
9861
|
-
"packages/experience-design-system-cli/src/import/tui/components/StepHeader.tsx"() {
|
|
9861
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/StepHeader.tsx"() {
|
|
9862
9862
|
"use strict";
|
|
9863
9863
|
}
|
|
9864
9864
|
});
|
|
9865
9865
|
|
|
9866
|
-
// packages/experience-design-system-cli/src/tui/use-timed-spinner.ts
|
|
9866
|
+
// packages/experience-design-system-cli-legacy/src/tui/use-timed-spinner.ts
|
|
9867
9867
|
import { useEffect as useEffect4, useState as useState7 } from "react";
|
|
9868
9868
|
function useTimedSpinner() {
|
|
9869
9869
|
const [frame, setFrame] = useState7(0);
|
|
@@ -9886,13 +9886,13 @@ function useTimedSpinner() {
|
|
|
9886
9886
|
}
|
|
9887
9887
|
var SPINNER_FRAMES;
|
|
9888
9888
|
var init_use_timed_spinner = __esm({
|
|
9889
|
-
"packages/experience-design-system-cli/src/tui/use-timed-spinner.ts"() {
|
|
9889
|
+
"packages/experience-design-system-cli-legacy/src/tui/use-timed-spinner.ts"() {
|
|
9890
9890
|
"use strict";
|
|
9891
9891
|
SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
9892
9892
|
}
|
|
9893
9893
|
});
|
|
9894
9894
|
|
|
9895
|
-
// packages/experience-design-system-cli/src/import/tui/steps/RunningStep.tsx
|
|
9895
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/RunningStep.tsx
|
|
9896
9896
|
import { Box as Box11, Text as Text12 } from "ink";
|
|
9897
9897
|
import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
9898
9898
|
function RunningStep({
|
|
@@ -9942,7 +9942,7 @@ function RunningStep({
|
|
|
9942
9942
|
] });
|
|
9943
9943
|
}
|
|
9944
9944
|
var init_RunningStep = __esm({
|
|
9945
|
-
"packages/experience-design-system-cli/src/import/tui/steps/RunningStep.tsx"() {
|
|
9945
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/RunningStep.tsx"() {
|
|
9946
9946
|
"use strict";
|
|
9947
9947
|
init_theme();
|
|
9948
9948
|
init_StepHeader();
|
|
@@ -9950,7 +9950,7 @@ var init_RunningStep = __esm({
|
|
|
9950
9950
|
}
|
|
9951
9951
|
});
|
|
9952
9952
|
|
|
9953
|
-
// packages/experience-design-system-cli/src/import/tui/steps/GateStep.tsx
|
|
9953
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/GateStep.tsx
|
|
9954
9954
|
import { Box as Box12, Text as Text13 } from "ink";
|
|
9955
9955
|
import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
9956
9956
|
function GateStep({
|
|
@@ -10003,13 +10003,13 @@ function GateStep({
|
|
|
10003
10003
|
] });
|
|
10004
10004
|
}
|
|
10005
10005
|
var init_GateStep = __esm({
|
|
10006
|
-
"packages/experience-design-system-cli/src/import/tui/steps/GateStep.tsx"() {
|
|
10006
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/GateStep.tsx"() {
|
|
10007
10007
|
"use strict";
|
|
10008
10008
|
init_useImmediateInput();
|
|
10009
10009
|
}
|
|
10010
10010
|
});
|
|
10011
10011
|
|
|
10012
|
-
// packages/experience-design-system-cli/src/import/tui/steps/CredentialsStep.tsx
|
|
10012
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/CredentialsStep.tsx
|
|
10013
10013
|
import { useState as useState8, useRef as useRef3 } from "react";
|
|
10014
10014
|
import { Box as Box13, Text as Text14 } from "ink";
|
|
10015
10015
|
import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
@@ -10187,7 +10187,7 @@ function CredentialsStep({
|
|
|
10187
10187
|
] });
|
|
10188
10188
|
}
|
|
10189
10189
|
var init_CredentialsStep = __esm({
|
|
10190
|
-
"packages/experience-design-system-cli/src/import/tui/steps/CredentialsStep.tsx"() {
|
|
10190
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/CredentialsStep.tsx"() {
|
|
10191
10191
|
"use strict";
|
|
10192
10192
|
init_theme();
|
|
10193
10193
|
init_useImmediateInput();
|
|
@@ -10196,7 +10196,7 @@ var init_CredentialsStep = __esm({
|
|
|
10196
10196
|
}
|
|
10197
10197
|
});
|
|
10198
10198
|
|
|
10199
|
-
// packages/experience-design-system-cli/src/tui/use-terminal-size.ts
|
|
10199
|
+
// packages/experience-design-system-cli-legacy/src/tui/use-terminal-size.ts
|
|
10200
10200
|
import { useStdout } from "ink";
|
|
10201
10201
|
import { useEffect as useEffect5, useState as useState9 } from "react";
|
|
10202
10202
|
function readTerminalSize(stdout) {
|
|
@@ -10219,20 +10219,20 @@ function useTerminalSize() {
|
|
|
10219
10219
|
return size;
|
|
10220
10220
|
}
|
|
10221
10221
|
var init_use_terminal_size = __esm({
|
|
10222
|
-
"packages/experience-design-system-cli/src/tui/use-terminal-size.ts"() {
|
|
10222
|
+
"packages/experience-design-system-cli-legacy/src/tui/use-terminal-size.ts"() {
|
|
10223
10223
|
"use strict";
|
|
10224
10224
|
}
|
|
10225
10225
|
});
|
|
10226
10226
|
|
|
10227
|
-
// packages/experience-design-system-cli/src/apply/tokens.ts
|
|
10227
|
+
// packages/experience-design-system-cli-legacy/src/apply/tokens.ts
|
|
10228
10228
|
var init_tokens = __esm({
|
|
10229
|
-
"packages/experience-design-system-cli/src/apply/tokens.ts"() {
|
|
10229
|
+
"packages/experience-design-system-cli-legacy/src/apply/tokens.ts"() {
|
|
10230
10230
|
"use strict";
|
|
10231
10231
|
init_command2();
|
|
10232
10232
|
}
|
|
10233
10233
|
});
|
|
10234
10234
|
|
|
10235
|
-
// packages/experience-design-system-cli/src/import/tui/steps/preview-diff.ts
|
|
10235
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/preview-diff.ts
|
|
10236
10236
|
function computeComponentDiffLines(current, proposed, changeClassification) {
|
|
10237
10237
|
const lines = [];
|
|
10238
10238
|
const currentProps = current.fullProperties ? new Set(Object.keys(current.fullProperties)) : /* @__PURE__ */ new Set([...current.contentProperties, ...current.designProperties]);
|
|
@@ -10384,12 +10384,12 @@ function formatPropDef(def) {
|
|
|
10384
10384
|
return parts.join(", ");
|
|
10385
10385
|
}
|
|
10386
10386
|
var init_preview_diff = __esm({
|
|
10387
|
-
"packages/experience-design-system-cli/src/import/tui/steps/preview-diff.ts"() {
|
|
10387
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/preview-diff.ts"() {
|
|
10388
10388
|
"use strict";
|
|
10389
10389
|
}
|
|
10390
10390
|
});
|
|
10391
10391
|
|
|
10392
|
-
// packages/experience-design-system-cli/src/import/tui/components/SpaceEnvironment.tsx
|
|
10392
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/SpaceEnvironment.tsx
|
|
10393
10393
|
import { Box as Box14, Text as Text15 } from "ink";
|
|
10394
10394
|
import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
10395
10395
|
function SpaceEnvironment({ spaceId, environmentId }) {
|
|
@@ -10402,12 +10402,12 @@ function SpaceEnvironment({ spaceId, environmentId }) {
|
|
|
10402
10402
|
] });
|
|
10403
10403
|
}
|
|
10404
10404
|
var init_SpaceEnvironment = __esm({
|
|
10405
|
-
"packages/experience-design-system-cli/src/import/tui/components/SpaceEnvironment.tsx"() {
|
|
10405
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/SpaceEnvironment.tsx"() {
|
|
10406
10406
|
"use strict";
|
|
10407
10407
|
}
|
|
10408
10408
|
});
|
|
10409
10409
|
|
|
10410
|
-
// packages/experience-design-system-cli/src/import/tui/preview-confirmation-input.ts
|
|
10410
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/preview-confirmation-input.ts
|
|
10411
10411
|
import { useCallback as useCallback2 } from "react";
|
|
10412
10412
|
function handlePreviewConfirmationInput(_input, key, options) {
|
|
10413
10413
|
if (key.return) {
|
|
@@ -10426,12 +10426,12 @@ function usePreviewConfirmationInput(breakingWithImpact, onConfirm) {
|
|
|
10426
10426
|
);
|
|
10427
10427
|
}
|
|
10428
10428
|
var init_preview_confirmation_input = __esm({
|
|
10429
|
-
"packages/experience-design-system-cli/src/import/tui/preview-confirmation-input.ts"() {
|
|
10429
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/preview-confirmation-input.ts"() {
|
|
10430
10430
|
"use strict";
|
|
10431
10431
|
}
|
|
10432
10432
|
});
|
|
10433
10433
|
|
|
10434
|
-
// packages/experience-design-system-cli/src/tui/windowed-panel.tsx
|
|
10434
|
+
// packages/experience-design-system-cli-legacy/src/tui/windowed-panel.tsx
|
|
10435
10435
|
import { Box as Box15, Text as Text16 } from "ink";
|
|
10436
10436
|
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
10437
10437
|
function terminalPanelHeight(rows, reservedRows = 4) {
|
|
@@ -10499,14 +10499,14 @@ function WindowIndicator({ direction, count }) {
|
|
|
10499
10499
|
}
|
|
10500
10500
|
var MIN_TERMINAL_PANEL_HEIGHT;
|
|
10501
10501
|
var init_windowed_panel = __esm({
|
|
10502
|
-
"packages/experience-design-system-cli/src/tui/windowed-panel.tsx"() {
|
|
10502
|
+
"packages/experience-design-system-cli-legacy/src/tui/windowed-panel.tsx"() {
|
|
10503
10503
|
"use strict";
|
|
10504
10504
|
init_theme();
|
|
10505
10505
|
MIN_TERMINAL_PANEL_HEIGHT = 5;
|
|
10506
10506
|
}
|
|
10507
10507
|
});
|
|
10508
10508
|
|
|
10509
|
-
// packages/experience-design-system-cli/src/import/tui/steps/WizardPreviewStep.tsx
|
|
10509
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/WizardPreviewStep.tsx
|
|
10510
10510
|
import { useEffect as useEffect6, useState as useState10, useMemo } from "react";
|
|
10511
10511
|
import { Box as Box16, Text as Text17 } from "ink";
|
|
10512
10512
|
import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
@@ -10806,7 +10806,7 @@ function WizardPreviewStep({
|
|
|
10806
10806
|
] });
|
|
10807
10807
|
}
|
|
10808
10808
|
var init_WizardPreviewStep = __esm({
|
|
10809
|
-
"packages/experience-design-system-cli/src/import/tui/steps/WizardPreviewStep.tsx"() {
|
|
10809
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/WizardPreviewStep.tsx"() {
|
|
10810
10810
|
"use strict";
|
|
10811
10811
|
init_theme();
|
|
10812
10812
|
init_useImmediateInput();
|
|
@@ -10820,7 +10820,7 @@ var init_WizardPreviewStep = __esm({
|
|
|
10820
10820
|
}
|
|
10821
10821
|
});
|
|
10822
10822
|
|
|
10823
|
-
// packages/experience-design-system-cli/src/import/tui/steps/DoneStep.tsx
|
|
10823
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/DoneStep.tsx
|
|
10824
10824
|
import { Box as Box17, Text as Text18 } from "ink";
|
|
10825
10825
|
import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
10826
10826
|
function DoneStep({
|
|
@@ -10933,7 +10933,7 @@ function DoneStep({
|
|
|
10933
10933
|
] });
|
|
10934
10934
|
}
|
|
10935
10935
|
var init_DoneStep = __esm({
|
|
10936
|
-
"packages/experience-design-system-cli/src/import/tui/steps/DoneStep.tsx"() {
|
|
10936
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/DoneStep.tsx"() {
|
|
10937
10937
|
"use strict";
|
|
10938
10938
|
init_theme();
|
|
10939
10939
|
init_useImmediateInput();
|
|
@@ -10942,7 +10942,7 @@ var init_DoneStep = __esm({
|
|
|
10942
10942
|
}
|
|
10943
10943
|
});
|
|
10944
10944
|
|
|
10945
|
-
// packages/experience-design-system-cli/src/import/tui/steps/ErrorStep.tsx
|
|
10945
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/ErrorStep.tsx
|
|
10946
10946
|
import { Box as Box18, Text as Text19 } from "ink";
|
|
10947
10947
|
import { Fragment as Fragment6, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10948
10948
|
function ErrorStep({
|
|
@@ -10982,14 +10982,14 @@ function ErrorStep({
|
|
|
10982
10982
|
] });
|
|
10983
10983
|
}
|
|
10984
10984
|
var init_ErrorStep = __esm({
|
|
10985
|
-
"packages/experience-design-system-cli/src/import/tui/steps/ErrorStep.tsx"() {
|
|
10985
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/ErrorStep.tsx"() {
|
|
10986
10986
|
"use strict";
|
|
10987
10987
|
init_theme();
|
|
10988
10988
|
init_useImmediateInput();
|
|
10989
10989
|
}
|
|
10990
10990
|
});
|
|
10991
10991
|
|
|
10992
|
-
// packages/experience-design-system-cli/src/import/tui/steps/TokenInputStep.tsx
|
|
10992
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/TokenInputStep.tsx
|
|
10993
10993
|
import { useState as useState11 } from "react";
|
|
10994
10994
|
import { Box as Box19, Text as Text20 } from "ink";
|
|
10995
10995
|
import { statSync } from "node:fs";
|
|
@@ -11102,7 +11102,7 @@ function TokenInputStep({ onConfirm, onSkip, onQuit }) {
|
|
|
11102
11102
|
] });
|
|
11103
11103
|
}
|
|
11104
11104
|
var init_TokenInputStep = __esm({
|
|
11105
|
-
"packages/experience-design-system-cli/src/import/tui/steps/TokenInputStep.tsx"() {
|
|
11105
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/TokenInputStep.tsx"() {
|
|
11106
11106
|
"use strict";
|
|
11107
11107
|
init_theme();
|
|
11108
11108
|
init_useImmediateInput();
|
|
@@ -11111,7 +11111,7 @@ var init_TokenInputStep = __esm({
|
|
|
11111
11111
|
}
|
|
11112
11112
|
});
|
|
11113
11113
|
|
|
11114
|
-
// packages/experience-design-system-cli/src/import/tui/steps/PreviewValidationErrorStep.tsx
|
|
11114
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/PreviewValidationErrorStep.tsx
|
|
11115
11115
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
11116
11116
|
function PreviewValidationErrorStep({
|
|
11117
11117
|
errors,
|
|
@@ -11152,14 +11152,14 @@ Note: ${missingNames.length} component name${missingNames.length === 1 ? "" : "s
|
|
|
11152
11152
|
);
|
|
11153
11153
|
}
|
|
11154
11154
|
var init_PreviewValidationErrorStep = __esm({
|
|
11155
|
-
"packages/experience-design-system-cli/src/import/tui/steps/PreviewValidationErrorStep.tsx"() {
|
|
11155
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/PreviewValidationErrorStep.tsx"() {
|
|
11156
11156
|
"use strict";
|
|
11157
11157
|
init_GateStep();
|
|
11158
11158
|
init_error_parser();
|
|
11159
11159
|
}
|
|
11160
11160
|
});
|
|
11161
11161
|
|
|
11162
|
-
// packages/experience-design-system-cli/src/import/tui/steps/PushingStep.tsx
|
|
11162
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/PushingStep.tsx
|
|
11163
11163
|
import { Box as Box20, Text as Text21 } from "ink";
|
|
11164
11164
|
import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
11165
11165
|
function PushingStep({ stepNumber, totalSteps, progress }) {
|
|
@@ -11194,7 +11194,7 @@ function PushingStep({ stepNumber, totalSteps, progress }) {
|
|
|
11194
11194
|
] });
|
|
11195
11195
|
}
|
|
11196
11196
|
var init_PushingStep = __esm({
|
|
11197
|
-
"packages/experience-design-system-cli/src/import/tui/steps/PushingStep.tsx"() {
|
|
11197
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/PushingStep.tsx"() {
|
|
11198
11198
|
"use strict";
|
|
11199
11199
|
init_theme();
|
|
11200
11200
|
init_StepHeader();
|
|
@@ -11202,19 +11202,19 @@ var init_PushingStep = __esm({
|
|
|
11202
11202
|
}
|
|
11203
11203
|
});
|
|
11204
11204
|
|
|
11205
|
-
// packages/experience-design-system-cli/src/import/tui/run-print-files-helpers.ts
|
|
11205
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/run-print-files-helpers.ts
|
|
11206
11206
|
function nextStateAfterPrint(opts) {
|
|
11207
11207
|
const base = opts.outDir ? { componentsPath: opts.componentsPath, outDir: opts.outDir } : { componentsPath: opts.componentsPath };
|
|
11208
11208
|
if (opts.skipGate) return base;
|
|
11209
11209
|
return { step: "print-gate", ...base };
|
|
11210
11210
|
}
|
|
11211
11211
|
var init_run_print_files_helpers = __esm({
|
|
11212
|
-
"packages/experience-design-system-cli/src/import/tui/run-print-files-helpers.ts"() {
|
|
11212
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/run-print-files-helpers.ts"() {
|
|
11213
11213
|
"use strict";
|
|
11214
11214
|
}
|
|
11215
11215
|
});
|
|
11216
11216
|
|
|
11217
|
-
// packages/experience-design-system-cli/src/analyze/slot-graph.ts
|
|
11217
|
+
// packages/experience-design-system-cli-legacy/src/analyze/slot-graph.ts
|
|
11218
11218
|
function buildComponentGraph(components, opts) {
|
|
11219
11219
|
const stripRejectedEdges = opts?.stripRejectedEdges === true;
|
|
11220
11220
|
return components.map((row) => {
|
|
@@ -11231,13 +11231,13 @@ function buildComponentGraph(components, opts) {
|
|
|
11231
11231
|
}
|
|
11232
11232
|
var REJECTED_STATUSES;
|
|
11233
11233
|
var init_slot_graph = __esm({
|
|
11234
|
-
"packages/experience-design-system-cli/src/analyze/slot-graph.ts"() {
|
|
11234
|
+
"packages/experience-design-system-cli-legacy/src/analyze/slot-graph.ts"() {
|
|
11235
11235
|
"use strict";
|
|
11236
11236
|
REJECTED_STATUSES = /* @__PURE__ */ new Set(["error", "rejected"]);
|
|
11237
11237
|
}
|
|
11238
11238
|
});
|
|
11239
11239
|
|
|
11240
|
-
// packages/experience-design-system-cli/src/analyze/select/parser.ts
|
|
11240
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/parser.ts
|
|
11241
11241
|
import { createHash as createHash7 } from "node:crypto";
|
|
11242
11242
|
import { access as access5 } from "node:fs/promises";
|
|
11243
11243
|
import { isAbsolute, relative, resolve as resolve11 } from "node:path";
|
|
@@ -11294,7 +11294,7 @@ async function loadReviewInput(components, options = {}) {
|
|
|
11294
11294
|
return { components: records };
|
|
11295
11295
|
}
|
|
11296
11296
|
var init_parser = __esm({
|
|
11297
|
-
"packages/experience-design-system-cli/src/analyze/select/parser.ts"() {
|
|
11297
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/parser.ts"() {
|
|
11298
11298
|
"use strict";
|
|
11299
11299
|
}
|
|
11300
11300
|
});
|
|
@@ -18590,7 +18590,7 @@ var init_src3 = __esm({
|
|
|
18590
18590
|
}
|
|
18591
18591
|
});
|
|
18592
18592
|
|
|
18593
|
-
// packages/experience-design-system-cli/src/analyze/select/command.ts
|
|
18593
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/command.ts
|
|
18594
18594
|
import { access as access6, readFile as readFile17 } from "node:fs/promises";
|
|
18595
18595
|
async function loadAndValidateForReview(sessionId2, projectRoot) {
|
|
18596
18596
|
const db = openPipelineDb();
|
|
@@ -18668,7 +18668,7 @@ async function rejectComponentsByName(sessionId2, names, opts = {}) {
|
|
|
18668
18668
|
await saveReviewState(paths.statePath, { ...snapshot, components });
|
|
18669
18669
|
}
|
|
18670
18670
|
var init_command5 = __esm({
|
|
18671
|
-
"packages/experience-design-system-cli/src/analyze/select/command.ts"() {
|
|
18671
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/command.ts"() {
|
|
18672
18672
|
"use strict";
|
|
18673
18673
|
init_persistence();
|
|
18674
18674
|
init_parser();
|
|
@@ -18677,7 +18677,7 @@ var init_command5 = __esm({
|
|
|
18677
18677
|
}
|
|
18678
18678
|
});
|
|
18679
18679
|
|
|
18680
|
-
// packages/experience-design-system-cli/src/import/tui/wizard-422-helpers.ts
|
|
18680
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/wizard-422-helpers.ts
|
|
18681
18681
|
async function handlePreview422(err, extractSessionId, patchFn = patchReviewStateWithValidationErrors) {
|
|
18682
18682
|
if (err.status !== 422) return { kind: "not-422" };
|
|
18683
18683
|
const errors = parsePreviewValidationErrors(err.body);
|
|
@@ -18703,14 +18703,14 @@ async function applySkipValidationErrors(sessionId2, errors, rejectFn = rejectCo
|
|
|
18703
18703
|
return names;
|
|
18704
18704
|
}
|
|
18705
18705
|
var init_wizard_422_helpers = __esm({
|
|
18706
|
-
"packages/experience-design-system-cli/src/import/tui/wizard-422-helpers.ts"() {
|
|
18706
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/wizard-422-helpers.ts"() {
|
|
18707
18707
|
"use strict";
|
|
18708
18708
|
init_api_client();
|
|
18709
18709
|
init_command5();
|
|
18710
18710
|
}
|
|
18711
18711
|
});
|
|
18712
18712
|
|
|
18713
|
-
// packages/experience-design-system-cli/src/import/tui/wizard-generate-progress.ts
|
|
18713
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/wizard-generate-progress.ts
|
|
18714
18714
|
function parseGenerateStderrChunk(chunk, prev) {
|
|
18715
18715
|
let state = prev;
|
|
18716
18716
|
for (const line of chunk.split("\n")) {
|
|
@@ -18736,14 +18736,14 @@ function parseGenerateStderrChunk(chunk, prev) {
|
|
|
18736
18736
|
}
|
|
18737
18737
|
var PROGRESS_LINE, LEGACY_LINE;
|
|
18738
18738
|
var init_wizard_generate_progress = __esm({
|
|
18739
|
-
"packages/experience-design-system-cli/src/import/tui/wizard-generate-progress.ts"() {
|
|
18739
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/wizard-generate-progress.ts"() {
|
|
18740
18740
|
"use strict";
|
|
18741
18741
|
PROGRESS_LINE = /^progress=generate:(\d+)\/(\d+):(.+)$/;
|
|
18742
18742
|
LEGACY_LINE = /\[(\d+)\/(\d+)\]\s+(.+)/;
|
|
18743
18743
|
}
|
|
18744
18744
|
});
|
|
18745
18745
|
|
|
18746
|
-
// packages/experience-design-system-cli/src/import/tui/spawn-generate.ts
|
|
18746
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/spawn-generate.ts
|
|
18747
18747
|
import { spawn as spawn2 } from "node:child_process";
|
|
18748
18748
|
function spawnGenerateChild(opts) {
|
|
18749
18749
|
const child = spawn2(opts.command, opts.args);
|
|
@@ -18780,12 +18780,12 @@ function spawnGenerateChild(opts) {
|
|
|
18780
18780
|
return { child, donePromise };
|
|
18781
18781
|
}
|
|
18782
18782
|
var init_spawn_generate = __esm({
|
|
18783
|
-
"packages/experience-design-system-cli/src/import/tui/spawn-generate.ts"() {
|
|
18783
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/spawn-generate.ts"() {
|
|
18784
18784
|
"use strict";
|
|
18785
18785
|
}
|
|
18786
18786
|
});
|
|
18787
18787
|
|
|
18788
|
-
// packages/experience-design-system-cli/src/analyze/composite-closure.ts
|
|
18788
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composite-closure.ts
|
|
18789
18789
|
function edgesFrom(component, known) {
|
|
18790
18790
|
if (!component) return [];
|
|
18791
18791
|
const out = [];
|
|
@@ -18923,13 +18923,13 @@ function findSharedDeps(closures) {
|
|
|
18923
18923
|
return out;
|
|
18924
18924
|
}
|
|
18925
18925
|
var init_composite_closure = __esm({
|
|
18926
|
-
"packages/experience-design-system-cli/src/analyze/composite-closure.ts"() {
|
|
18926
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composite-closure.ts"() {
|
|
18927
18927
|
"use strict";
|
|
18928
18928
|
init_cycle_detection();
|
|
18929
18929
|
}
|
|
18930
18930
|
});
|
|
18931
18931
|
|
|
18932
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/Sidebar.tsx
|
|
18932
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/Sidebar.tsx
|
|
18933
18933
|
import { Box as Box21, Text as Text22 } from "ink";
|
|
18934
18934
|
import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
18935
18935
|
function previewBadge(annotation) {
|
|
@@ -18953,13 +18953,13 @@ function PreviewBadge({
|
|
|
18953
18953
|
return badge ? /* @__PURE__ */ jsx25(Text22, { color: badge.color, bold: badge.bold, dimColor: highlighted ? false : badge.dim, children: badge.char }) : /* @__PURE__ */ jsx25(Text22, { children: " " });
|
|
18954
18954
|
}
|
|
18955
18955
|
var init_Sidebar = __esm({
|
|
18956
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/Sidebar.tsx"() {
|
|
18956
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/Sidebar.tsx"() {
|
|
18957
18957
|
"use strict";
|
|
18958
18958
|
init_theme();
|
|
18959
18959
|
}
|
|
18960
18960
|
});
|
|
18961
18961
|
|
|
18962
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/GroupedSidebar.tsx
|
|
18962
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/GroupedSidebar.tsx
|
|
18963
18963
|
import figures from "figures";
|
|
18964
18964
|
import { Box as Box22, Text as Text23 } from "ink";
|
|
18965
18965
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -19442,7 +19442,7 @@ function GroupedSidebar(props) {
|
|
|
19442
19442
|
}
|
|
19443
19443
|
var GLYPH_EXPAND_COLLAPSED, GLYPH_EXPAND_EXPANDED, GLYPH_TREE_MID, GLYPH_TREE_LAST, GLYPH_WARN, GLYPH_ERROR;
|
|
19444
19444
|
var init_GroupedSidebar = __esm({
|
|
19445
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/GroupedSidebar.tsx"() {
|
|
19445
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/GroupedSidebar.tsx"() {
|
|
19446
19446
|
"use strict";
|
|
19447
19447
|
init_composite_closure();
|
|
19448
19448
|
init_Sidebar();
|
|
@@ -19457,7 +19457,7 @@ var init_GroupedSidebar = __esm({
|
|
|
19457
19457
|
}
|
|
19458
19458
|
});
|
|
19459
19459
|
|
|
19460
|
-
// packages/experience-design-system-cli/src/analyze/fuzzy-search.ts
|
|
19460
|
+
// packages/experience-design-system-cli-legacy/src/analyze/fuzzy-search.ts
|
|
19461
19461
|
function match(query, text) {
|
|
19462
19462
|
if (query.length === 0) return { score: 0 };
|
|
19463
19463
|
if (text.length === 0) return null;
|
|
@@ -19490,12 +19490,12 @@ function fuzzyMatches(query, text) {
|
|
|
19490
19490
|
return match(query, text) !== null;
|
|
19491
19491
|
}
|
|
19492
19492
|
var init_fuzzy_search = __esm({
|
|
19493
|
-
"packages/experience-design-system-cli/src/analyze/fuzzy-search.ts"() {
|
|
19493
|
+
"packages/experience-design-system-cli-legacy/src/analyze/fuzzy-search.ts"() {
|
|
19494
19494
|
"use strict";
|
|
19495
19495
|
}
|
|
19496
19496
|
});
|
|
19497
19497
|
|
|
19498
|
-
// packages/experience-design-system-cli/src/import/tui/step-filters.ts
|
|
19498
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/step-filters.ts
|
|
19499
19499
|
function computeFilterKeys(input) {
|
|
19500
19500
|
const active = new Set(input.filters);
|
|
19501
19501
|
if (active.size === 0) return void 0;
|
|
@@ -19524,13 +19524,13 @@ function buildFlatDimPredicate(input) {
|
|
|
19524
19524
|
};
|
|
19525
19525
|
}
|
|
19526
19526
|
var init_step_filters = __esm({
|
|
19527
|
-
"packages/experience-design-system-cli/src/import/tui/step-filters.ts"() {
|
|
19527
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/step-filters.ts"() {
|
|
19528
19528
|
"use strict";
|
|
19529
19529
|
init_fuzzy_search();
|
|
19530
19530
|
}
|
|
19531
19531
|
});
|
|
19532
19532
|
|
|
19533
|
-
// packages/experience-design-system-cli/src/import/tui/sidebar-help.ts
|
|
19533
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/sidebar-help.ts
|
|
19534
19534
|
function createSidebarViewsHelpSection(includeBreaking) {
|
|
19535
19535
|
const entries = [
|
|
19536
19536
|
{ keys: "L", label: "Flat view" },
|
|
@@ -19545,12 +19545,12 @@ function createSidebarViewsHelpSection(includeBreaking) {
|
|
|
19545
19545
|
return { title: "Sidebar views", entries };
|
|
19546
19546
|
}
|
|
19547
19547
|
var init_sidebar_help = __esm({
|
|
19548
|
-
"packages/experience-design-system-cli/src/import/tui/sidebar-help.ts"() {
|
|
19548
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/sidebar-help.ts"() {
|
|
19549
19549
|
"use strict";
|
|
19550
19550
|
}
|
|
19551
19551
|
});
|
|
19552
19552
|
|
|
19553
|
-
// packages/experience-design-system-cli/src/import/tui/autocomplete.ts
|
|
19553
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/autocomplete.ts
|
|
19554
19554
|
function longestCommonPrefix(names) {
|
|
19555
19555
|
if (names.length === 0) return "";
|
|
19556
19556
|
let prefixLen = names[0].length;
|
|
@@ -19580,12 +19580,12 @@ function computeAutocomplete(query, names) {
|
|
|
19580
19580
|
return { completion, candidates: sorted };
|
|
19581
19581
|
}
|
|
19582
19582
|
var init_autocomplete = __esm({
|
|
19583
|
-
"packages/experience-design-system-cli/src/import/tui/autocomplete.ts"() {
|
|
19583
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/autocomplete.ts"() {
|
|
19584
19584
|
"use strict";
|
|
19585
19585
|
}
|
|
19586
19586
|
});
|
|
19587
19587
|
|
|
19588
|
-
// packages/experience-design-system-cli/src/import/tui/sidebar-input.ts
|
|
19588
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/sidebar-input.ts
|
|
19589
19589
|
function handleSidebarSearchInput(input, key, { query, names, setQuery, setCandidates }) {
|
|
19590
19590
|
if (key.tab) {
|
|
19591
19591
|
const { completion, candidates } = computeAutocomplete(query, names);
|
|
@@ -19609,13 +19609,13 @@ function formatSearchMatchSummary(matches, total) {
|
|
|
19609
19609
|
return ` (${matches}/${total} matches)`;
|
|
19610
19610
|
}
|
|
19611
19611
|
var init_sidebar_input = __esm({
|
|
19612
|
-
"packages/experience-design-system-cli/src/import/tui/sidebar-input.ts"() {
|
|
19612
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/sidebar-input.ts"() {
|
|
19613
19613
|
"use strict";
|
|
19614
19614
|
init_autocomplete();
|
|
19615
19615
|
}
|
|
19616
19616
|
});
|
|
19617
19617
|
|
|
19618
|
-
// packages/experience-design-system-cli/src/import/tui/sidebar-navigation.ts
|
|
19618
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/sidebar-navigation.ts
|
|
19619
19619
|
function collectExpandedGroupRoots(closures, cycleParticipants) {
|
|
19620
19620
|
const roots = /* @__PURE__ */ new Set();
|
|
19621
19621
|
for (const [name, closure] of closures.entries()) {
|
|
@@ -19659,13 +19659,13 @@ function computeSidebarViewToggle({
|
|
|
19659
19659
|
return { view, cursor, scroll };
|
|
19660
19660
|
}
|
|
19661
19661
|
var init_sidebar_navigation = __esm({
|
|
19662
|
-
"packages/experience-design-system-cli/src/import/tui/sidebar-navigation.ts"() {
|
|
19662
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/sidebar-navigation.ts"() {
|
|
19663
19663
|
"use strict";
|
|
19664
19664
|
init_GroupedSidebar();
|
|
19665
19665
|
}
|
|
19666
19666
|
});
|
|
19667
19667
|
|
|
19668
|
-
// packages/experience-design-system-cli/src/import/tui/hooks/sidebar-search-state.ts
|
|
19668
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/hooks/sidebar-search-state.ts
|
|
19669
19669
|
import { useState as useState12 } from "react";
|
|
19670
19670
|
function useSidebarSearchState() {
|
|
19671
19671
|
const [searchOpen, setSearchOpen] = useState12(false);
|
|
@@ -19693,12 +19693,12 @@ function useSidebarSearchState() {
|
|
|
19693
19693
|
};
|
|
19694
19694
|
}
|
|
19695
19695
|
var init_sidebar_search_state = __esm({
|
|
19696
|
-
"packages/experience-design-system-cli/src/import/tui/hooks/sidebar-search-state.ts"() {
|
|
19696
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/hooks/sidebar-search-state.ts"() {
|
|
19697
19697
|
"use strict";
|
|
19698
19698
|
}
|
|
19699
19699
|
});
|
|
19700
19700
|
|
|
19701
|
-
// packages/experience-design-system-cli/src/import/tui/components/SearchMatchSummary.tsx
|
|
19701
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/SearchMatchSummary.tsx
|
|
19702
19702
|
import { Box as Box23, Text as Text24 } from "ink";
|
|
19703
19703
|
import { Fragment as Fragment7, jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
19704
19704
|
function SearchMatchSummary({
|
|
@@ -19725,14 +19725,14 @@ function SearchMatchSummary({
|
|
|
19725
19725
|
] });
|
|
19726
19726
|
}
|
|
19727
19727
|
var init_SearchMatchSummary = __esm({
|
|
19728
|
-
"packages/experience-design-system-cli/src/import/tui/components/SearchMatchSummary.tsx"() {
|
|
19728
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/SearchMatchSummary.tsx"() {
|
|
19729
19729
|
"use strict";
|
|
19730
19730
|
init_theme();
|
|
19731
19731
|
init_sidebar_input();
|
|
19732
19732
|
}
|
|
19733
19733
|
});
|
|
19734
19734
|
|
|
19735
|
-
// packages/experience-design-system-cli/src/import/tui/hooks/useOverlayPanel.ts
|
|
19735
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/hooks/useOverlayPanel.ts
|
|
19736
19736
|
import { useCallback as useCallback3, useState as useState13 } from "react";
|
|
19737
19737
|
function useOverlayPanel(opts) {
|
|
19738
19738
|
const { toggleKey, onClose } = opts;
|
|
@@ -19761,12 +19761,12 @@ function useOverlayPanel(opts) {
|
|
|
19761
19761
|
return { isOpen, open, close, handleInput };
|
|
19762
19762
|
}
|
|
19763
19763
|
var init_useOverlayPanel = __esm({
|
|
19764
|
-
"packages/experience-design-system-cli/src/import/tui/hooks/useOverlayPanel.ts"() {
|
|
19764
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/hooks/useOverlayPanel.ts"() {
|
|
19765
19765
|
"use strict";
|
|
19766
19766
|
}
|
|
19767
19767
|
});
|
|
19768
19768
|
|
|
19769
|
-
// packages/experience-design-system-cli/src/import/tui/lineage-layout.ts
|
|
19769
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/lineage-layout.ts
|
|
19770
19770
|
function clamp(value, min, max) {
|
|
19771
19771
|
return Math.max(min, Math.min(max, value));
|
|
19772
19772
|
}
|
|
@@ -19790,7 +19790,7 @@ function computeSidebarBudget({ rows, panelOpen, entryCount }) {
|
|
|
19790
19790
|
}
|
|
19791
19791
|
var VISIBLE_COUNT, MAX_PANEL_ROWS, SIDEBAR_MIN, MIN_PANEL_ROWS, FALLBACK_ROWS, HEADER_ROWS, COUNTER_STRIP_ROWS, FOCUSED_DETAIL_ROWS, LEGEND_ROWS, FIXED_OVERHEAD, PANEL_BOX_CHROME, BASE_CHROME_OVERHEAD;
|
|
19792
19792
|
var init_lineage_layout = __esm({
|
|
19793
|
-
"packages/experience-design-system-cli/src/import/tui/lineage-layout.ts"() {
|
|
19793
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/lineage-layout.ts"() {
|
|
19794
19794
|
"use strict";
|
|
19795
19795
|
VISIBLE_COUNT = 200;
|
|
19796
19796
|
MAX_PANEL_ROWS = 200;
|
|
@@ -19807,7 +19807,7 @@ var init_lineage_layout = __esm({
|
|
|
19807
19807
|
}
|
|
19808
19808
|
});
|
|
19809
19809
|
|
|
19810
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/GotoBanner.tsx
|
|
19810
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/GotoBanner.tsx
|
|
19811
19811
|
import figures2 from "figures";
|
|
19812
19812
|
import { Box as Box24, Text as Text25 } from "ink";
|
|
19813
19813
|
import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
@@ -19866,14 +19866,14 @@ function GotoBanner({
|
|
|
19866
19866
|
}
|
|
19867
19867
|
var DEFAULT_MAX_ROWS;
|
|
19868
19868
|
var init_GotoBanner = __esm({
|
|
19869
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/GotoBanner.tsx"() {
|
|
19869
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/GotoBanner.tsx"() {
|
|
19870
19870
|
"use strict";
|
|
19871
19871
|
init_theme();
|
|
19872
19872
|
DEFAULT_MAX_ROWS = 15;
|
|
19873
19873
|
}
|
|
19874
19874
|
});
|
|
19875
19875
|
|
|
19876
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/HelpOverlay.tsx
|
|
19876
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/HelpOverlay.tsx
|
|
19877
19877
|
import React12 from "react";
|
|
19878
19878
|
import { Box as Box25, Text as Text26 } from "ink";
|
|
19879
19879
|
import { Fragment as Fragment8, jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
@@ -19948,7 +19948,7 @@ function HelpOverlay(props) {
|
|
|
19948
19948
|
);
|
|
19949
19949
|
}
|
|
19950
19950
|
var init_HelpOverlay = __esm({
|
|
19951
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/HelpOverlay.tsx"() {
|
|
19951
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/HelpOverlay.tsx"() {
|
|
19952
19952
|
"use strict";
|
|
19953
19953
|
init_useImmediateInput();
|
|
19954
19954
|
init_use_terminal_size();
|
|
@@ -19956,7 +19956,7 @@ var init_HelpOverlay = __esm({
|
|
|
19956
19956
|
}
|
|
19957
19957
|
});
|
|
19958
19958
|
|
|
19959
|
-
// packages/experience-design-system-cli/src/import/tui/components/LegendEntry.tsx
|
|
19959
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/LegendEntry.tsx
|
|
19960
19960
|
import { Text as Text27 } from "ink";
|
|
19961
19961
|
import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
19962
19962
|
function legendEntry(keyBracket, label, active = false) {
|
|
@@ -19966,13 +19966,13 @@ function legendEntry(keyBracket, label, active = false) {
|
|
|
19966
19966
|
] }, keyBracket + label);
|
|
19967
19967
|
}
|
|
19968
19968
|
var init_LegendEntry = __esm({
|
|
19969
|
-
"packages/experience-design-system-cli/src/import/tui/components/LegendEntry.tsx"() {
|
|
19969
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/LegendEntry.tsx"() {
|
|
19970
19970
|
"use strict";
|
|
19971
19971
|
init_theme();
|
|
19972
19972
|
}
|
|
19973
19973
|
});
|
|
19974
19974
|
|
|
19975
|
-
// packages/experience-design-system-cli/src/import/tui/components/CompactControlBar.tsx
|
|
19975
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/CompactControlBar.tsx
|
|
19976
19976
|
import { Box as Box26 } from "ink";
|
|
19977
19977
|
import { jsxs as jsxs27 } from "react/jsx-runtime";
|
|
19978
19978
|
function CompactControlBar({ hasGroupRoots, searchActive }) {
|
|
@@ -19987,14 +19987,14 @@ function CompactControlBar({ hasGroupRoots, searchActive }) {
|
|
|
19987
19987
|
] });
|
|
19988
19988
|
}
|
|
19989
19989
|
var init_CompactControlBar = __esm({
|
|
19990
|
-
"packages/experience-design-system-cli/src/import/tui/components/CompactControlBar.tsx"() {
|
|
19990
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/CompactControlBar.tsx"() {
|
|
19991
19991
|
"use strict";
|
|
19992
19992
|
init_theme();
|
|
19993
19993
|
init_LegendEntry();
|
|
19994
19994
|
}
|
|
19995
19995
|
});
|
|
19996
19996
|
|
|
19997
|
-
// packages/experience-design-system-cli/src/import/tui/components/CounterStrip.tsx
|
|
19997
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/CounterStrip.tsx
|
|
19998
19998
|
import { Box as Box27, Text as Text28 } from "ink";
|
|
19999
19999
|
import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
20000
20000
|
function CounterStrip(props) {
|
|
@@ -20025,22 +20025,22 @@ function CounterStrip(props) {
|
|
|
20025
20025
|
] }) });
|
|
20026
20026
|
}
|
|
20027
20027
|
var init_CounterStrip = __esm({
|
|
20028
|
-
"packages/experience-design-system-cli/src/import/tui/components/CounterStrip.tsx"() {
|
|
20028
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/CounterStrip.tsx"() {
|
|
20029
20029
|
"use strict";
|
|
20030
20030
|
}
|
|
20031
20031
|
});
|
|
20032
20032
|
|
|
20033
|
-
// packages/experience-design-system-cli/src/import/tui/ai-flag.ts
|
|
20033
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/ai-flag.ts
|
|
20034
20034
|
function isAiFlagged(row) {
|
|
20035
20035
|
return row.needsReview === true || row.aiDecision === "rejected" || row.aiDecision === "failed";
|
|
20036
20036
|
}
|
|
20037
20037
|
var init_ai_flag = __esm({
|
|
20038
|
-
"packages/experience-design-system-cli/src/import/tui/ai-flag.ts"() {
|
|
20038
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/ai-flag.ts"() {
|
|
20039
20039
|
"use strict";
|
|
20040
20040
|
}
|
|
20041
20041
|
});
|
|
20042
20042
|
|
|
20043
|
-
// packages/experience-design-system-cli/src/import/tui/group-collapse.ts
|
|
20043
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/group-collapse.ts
|
|
20044
20044
|
function resolveGroupRoot(key, closures, cycleSet) {
|
|
20045
20045
|
if (cycleSet.has(key)) return key;
|
|
20046
20046
|
if (closures.has(key)) return key;
|
|
@@ -20050,12 +20050,12 @@ function resolveGroupRoot(key, closures, cycleSet) {
|
|
|
20050
20050
|
return void 0;
|
|
20051
20051
|
}
|
|
20052
20052
|
var init_group_collapse = __esm({
|
|
20053
|
-
"packages/experience-design-system-cli/src/import/tui/group-collapse.ts"() {
|
|
20053
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/group-collapse.ts"() {
|
|
20054
20054
|
"use strict";
|
|
20055
20055
|
}
|
|
20056
20056
|
});
|
|
20057
20057
|
|
|
20058
|
-
// packages/experience-design-system-cli/src/analyze/lineage.ts
|
|
20058
|
+
// packages/experience-design-system-cli-legacy/src/analyze/lineage.ts
|
|
20059
20059
|
function findDirectParents(target, components) {
|
|
20060
20060
|
const out = [];
|
|
20061
20061
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -20089,12 +20089,12 @@ function findAllAncestors(target, components) {
|
|
|
20089
20089
|
return ancestors;
|
|
20090
20090
|
}
|
|
20091
20091
|
var init_lineage = __esm({
|
|
20092
|
-
"packages/experience-design-system-cli/src/analyze/lineage.ts"() {
|
|
20092
|
+
"packages/experience-design-system-cli-legacy/src/analyze/lineage.ts"() {
|
|
20093
20093
|
"use strict";
|
|
20094
20094
|
}
|
|
20095
20095
|
});
|
|
20096
20096
|
|
|
20097
|
-
// packages/experience-design-system-cli/src/analyze/scope-gate-cascade.ts
|
|
20097
|
+
// packages/experience-design-system-cli-legacy/src/analyze/scope-gate-cascade.ts
|
|
20098
20098
|
function buildCycleUnits(slotCycles) {
|
|
20099
20099
|
const parent = /* @__PURE__ */ new Map();
|
|
20100
20100
|
const find = (x) => {
|
|
@@ -20245,13 +20245,13 @@ function collectReachableCycleUnits(seeds, components, cycleUnits) {
|
|
|
20245
20245
|
return out;
|
|
20246
20246
|
}
|
|
20247
20247
|
var init_scope_gate_cascade = __esm({
|
|
20248
|
-
"packages/experience-design-system-cli/src/analyze/scope-gate-cascade.ts"() {
|
|
20248
|
+
"packages/experience-design-system-cli-legacy/src/analyze/scope-gate-cascade.ts"() {
|
|
20249
20249
|
"use strict";
|
|
20250
20250
|
init_lineage();
|
|
20251
20251
|
}
|
|
20252
20252
|
});
|
|
20253
20253
|
|
|
20254
|
-
// packages/experience-design-system-cli/src/analyze/search-neighborhood.ts
|
|
20254
|
+
// packages/experience-design-system-cli-legacy/src/analyze/search-neighborhood.ts
|
|
20255
20255
|
function computeDirectNeighborhood(matches, graph) {
|
|
20256
20256
|
const matchSet = new Set(matches);
|
|
20257
20257
|
const out = new Set(matchSet);
|
|
@@ -20302,12 +20302,12 @@ function findAllAncestors2(target, graph) {
|
|
|
20302
20302
|
return out;
|
|
20303
20303
|
}
|
|
20304
20304
|
var init_search_neighborhood = __esm({
|
|
20305
|
-
"packages/experience-design-system-cli/src/analyze/search-neighborhood.ts"() {
|
|
20305
|
+
"packages/experience-design-system-cli-legacy/src/analyze/search-neighborhood.ts"() {
|
|
20306
20306
|
"use strict";
|
|
20307
20307
|
}
|
|
20308
20308
|
});
|
|
20309
20309
|
|
|
20310
|
-
// packages/experience-design-system-cli/src/import/tui/scope-gate-columns.ts
|
|
20310
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/scope-gate-columns.ts
|
|
20311
20311
|
function computePanelLayout(mainVisibleCount) {
|
|
20312
20312
|
const safeMainVisibleCount = Math.max(1, mainVisibleCount);
|
|
20313
20313
|
const height = safeMainVisibleCount + PANEL_BORDER_ROWS + PANEL_INDICATOR_ROWS + PANEL_HEADER_ROWS;
|
|
@@ -20359,7 +20359,7 @@ function computeCounters(components, closures, stateByKey) {
|
|
|
20359
20359
|
}
|
|
20360
20360
|
var TWO_COLUMN_MIN_WIDTH, SCOPE_GATE_MAIN_COLUMN_WIDTH, ACCEPTED_COMPONENTS_COLUMN_WIDTH, PANEL_BORDER_ROWS, PANEL_INDICATOR_ROWS, PANEL_HEADER_ROWS;
|
|
20361
20361
|
var init_scope_gate_columns = __esm({
|
|
20362
|
-
"packages/experience-design-system-cli/src/import/tui/scope-gate-columns.ts"() {
|
|
20362
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/scope-gate-columns.ts"() {
|
|
20363
20363
|
"use strict";
|
|
20364
20364
|
TWO_COLUMN_MIN_WIDTH = 100;
|
|
20365
20365
|
SCOPE_GATE_MAIN_COLUMN_WIDTH = 54;
|
|
@@ -20370,7 +20370,7 @@ var init_scope_gate_columns = __esm({
|
|
|
20370
20370
|
}
|
|
20371
20371
|
});
|
|
20372
20372
|
|
|
20373
|
-
// packages/experience-design-system-cli/src/import/tui/steps/ScopeGateStep.tsx
|
|
20373
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/ScopeGateStep.tsx
|
|
20374
20374
|
import { Box as Box28, Text as Text29 } from "ink";
|
|
20375
20375
|
import React13, { useEffect as useEffect7, useMemo as useMemo2, useRef as useRef4, useState as useState14 } from "react";
|
|
20376
20376
|
import figures3 from "figures";
|
|
@@ -21181,7 +21181,7 @@ function AddedComponentsColumn(props) {
|
|
|
21181
21181
|
}
|
|
21182
21182
|
var HELP_SECTIONS;
|
|
21183
21183
|
var init_ScopeGateStep = __esm({
|
|
21184
|
-
"packages/experience-design-system-cli/src/import/tui/steps/ScopeGateStep.tsx"() {
|
|
21184
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/ScopeGateStep.tsx"() {
|
|
21185
21185
|
"use strict";
|
|
21186
21186
|
init_theme();
|
|
21187
21187
|
init_useImmediateInput();
|
|
@@ -21252,7 +21252,7 @@ var init_ScopeGateStep = __esm({
|
|
|
21252
21252
|
}
|
|
21253
21253
|
});
|
|
21254
21254
|
|
|
21255
|
-
// packages/experience-design-system-cli/src/import/tui/steps/review-json-panel.ts
|
|
21255
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/review-json-panel.ts
|
|
21256
21256
|
function getReviewJsonPanelValue(selected, showHiddenProps) {
|
|
21257
21257
|
if (!selected) return "";
|
|
21258
21258
|
const entry = showHiddenProps ? selected.entry : {
|
|
@@ -21267,13 +21267,13 @@ function getReviewJsonPanelValue(selected, showHiddenProps) {
|
|
|
21267
21267
|
}
|
|
21268
21268
|
var HIDDEN_PROP_CATEGORIES;
|
|
21269
21269
|
var init_review_json_panel = __esm({
|
|
21270
|
-
"packages/experience-design-system-cli/src/import/tui/steps/review-json-panel.ts"() {
|
|
21270
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/review-json-panel.ts"() {
|
|
21271
21271
|
"use strict";
|
|
21272
21272
|
HIDDEN_PROP_CATEGORIES = /* @__PURE__ */ new Set(["state", "unattached"]);
|
|
21273
21273
|
}
|
|
21274
21274
|
});
|
|
21275
21275
|
|
|
21276
|
-
// packages/experience-design-system-cli/src/analyze/cycle-view.ts
|
|
21276
|
+
// packages/experience-design-system-cli-legacy/src/analyze/cycle-view.ts
|
|
21277
21277
|
function computeCycleView(components) {
|
|
21278
21278
|
const filtered = components.filter((c2) => c2.status !== "rejected");
|
|
21279
21279
|
const filteredGraph = buildComponentGraph(filtered);
|
|
@@ -21293,14 +21293,14 @@ function computeCycleView(components) {
|
|
|
21293
21293
|
return { pushBlocking, structural };
|
|
21294
21294
|
}
|
|
21295
21295
|
var init_cycle_view = __esm({
|
|
21296
|
-
"packages/experience-design-system-cli/src/analyze/cycle-view.ts"() {
|
|
21296
|
+
"packages/experience-design-system-cli-legacy/src/analyze/cycle-view.ts"() {
|
|
21297
21297
|
"use strict";
|
|
21298
21298
|
init_cycle_detection();
|
|
21299
21299
|
init_slot_graph();
|
|
21300
21300
|
}
|
|
21301
21301
|
});
|
|
21302
21302
|
|
|
21303
|
-
// packages/experience-design-system-cli/src/analyze/issue-inheritance.ts
|
|
21303
|
+
// packages/experience-design-system-cli-legacy/src/analyze/issue-inheritance.ts
|
|
21304
21304
|
function worstOf(statuses) {
|
|
21305
21305
|
let worst = 0;
|
|
21306
21306
|
for (const s of statuses) {
|
|
@@ -21382,14 +21382,14 @@ function pickDrillTarget(ancestor, closure, directIssues) {
|
|
|
21382
21382
|
}
|
|
21383
21383
|
var STATUS_RANK, RANK_STATUS;
|
|
21384
21384
|
var init_issue_inheritance = __esm({
|
|
21385
|
-
"packages/experience-design-system-cli/src/analyze/issue-inheritance.ts"() {
|
|
21385
|
+
"packages/experience-design-system-cli-legacy/src/analyze/issue-inheritance.ts"() {
|
|
21386
21386
|
"use strict";
|
|
21387
21387
|
STATUS_RANK = { ok: 0, warning: 1, error: 2 };
|
|
21388
21388
|
RANK_STATUS = ["ok", "warning", "error"];
|
|
21389
21389
|
}
|
|
21390
21390
|
});
|
|
21391
21391
|
|
|
21392
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/removed-components-text.ts
|
|
21392
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/removed-components-text.ts
|
|
21393
21393
|
function removedComponentsHeader(count, withExpandHint) {
|
|
21394
21394
|
const hint = withExpandHint ? " (press [d] to expand/collapse)" : "";
|
|
21395
21395
|
return `Removed components (${count}) \u2014 will be DELETED from target space${hint}`;
|
|
@@ -21398,12 +21398,12 @@ function removedComponentLine(rc) {
|
|
|
21398
21398
|
return `- ${rc.name}${rc.id ? ` (${rc.id})` : ""}`;
|
|
21399
21399
|
}
|
|
21400
21400
|
var init_removed_components_text = __esm({
|
|
21401
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/removed-components-text.ts"() {
|
|
21401
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/removed-components-text.ts"() {
|
|
21402
21402
|
"use strict";
|
|
21403
21403
|
}
|
|
21404
21404
|
});
|
|
21405
21405
|
|
|
21406
|
-
// packages/experience-design-system-cli/src/import/tui/cycle-panel-scroll.ts
|
|
21406
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/cycle-panel-scroll.ts
|
|
21407
21407
|
function cycleLineCount(cycle) {
|
|
21408
21408
|
return 3 + (cycle.suggestedBreak ? 1 : 0);
|
|
21409
21409
|
}
|
|
@@ -21434,23 +21434,23 @@ function followCycleScroll(currentScroll, cursorIdx, cycles, panelHeight, preamb
|
|
|
21434
21434
|
}
|
|
21435
21435
|
var CYCLE_PANEL_PREAMBLE_LINES;
|
|
21436
21436
|
var init_cycle_panel_scroll = __esm({
|
|
21437
|
-
"packages/experience-design-system-cli/src/import/tui/cycle-panel-scroll.ts"() {
|
|
21437
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/cycle-panel-scroll.ts"() {
|
|
21438
21438
|
"use strict";
|
|
21439
21439
|
CYCLE_PANEL_PREAMBLE_LINES = 4;
|
|
21440
21440
|
}
|
|
21441
21441
|
});
|
|
21442
21442
|
|
|
21443
|
-
// packages/experience-design-system-cli/src/import/tui/sidebar-width.ts
|
|
21443
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/sidebar-width.ts
|
|
21444
21444
|
function computeSidebarWidth(terminalWidth) {
|
|
21445
21445
|
return Math.min(60, Math.max(36, Math.floor(terminalWidth * 0.45)));
|
|
21446
21446
|
}
|
|
21447
21447
|
var init_sidebar_width = __esm({
|
|
21448
|
-
"packages/experience-design-system-cli/src/import/tui/sidebar-width.ts"() {
|
|
21448
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/sidebar-width.ts"() {
|
|
21449
21449
|
"use strict";
|
|
21450
21450
|
}
|
|
21451
21451
|
});
|
|
21452
21452
|
|
|
21453
|
-
// packages/experience-design-system-cli/src/analyze/selection-cascade.ts
|
|
21453
|
+
// packages/experience-design-system-cli-legacy/src/analyze/selection-cascade.ts
|
|
21454
21454
|
function computeRejectCascade(target, components) {
|
|
21455
21455
|
const out = /* @__PURE__ */ new Set();
|
|
21456
21456
|
out.add(target);
|
|
@@ -21469,14 +21469,14 @@ function computeAcceptCascade(target, components) {
|
|
|
21469
21469
|
return out;
|
|
21470
21470
|
}
|
|
21471
21471
|
var init_selection_cascade = __esm({
|
|
21472
|
-
"packages/experience-design-system-cli/src/analyze/selection-cascade.ts"() {
|
|
21472
|
+
"packages/experience-design-system-cli-legacy/src/analyze/selection-cascade.ts"() {
|
|
21473
21473
|
"use strict";
|
|
21474
21474
|
init_composite_closure();
|
|
21475
21475
|
init_lineage();
|
|
21476
21476
|
}
|
|
21477
21477
|
});
|
|
21478
21478
|
|
|
21479
|
-
// packages/experience-design-system-cli/src/import/cycle-auto-reject.ts
|
|
21479
|
+
// packages/experience-design-system-cli-legacy/src/import/cycle-auto-reject.ts
|
|
21480
21480
|
function computeCycleAutoRejectTargets(slotCycles, graph) {
|
|
21481
21481
|
const targets = /* @__PURE__ */ new Set();
|
|
21482
21482
|
const participants = /* @__PURE__ */ new Set();
|
|
@@ -21488,13 +21488,13 @@ function computeCycleAutoRejectTargets(slotCycles, graph) {
|
|
|
21488
21488
|
return targets;
|
|
21489
21489
|
}
|
|
21490
21490
|
var init_cycle_auto_reject = __esm({
|
|
21491
|
-
"packages/experience-design-system-cli/src/import/cycle-auto-reject.ts"() {
|
|
21491
|
+
"packages/experience-design-system-cli-legacy/src/import/cycle-auto-reject.ts"() {
|
|
21492
21492
|
"use strict";
|
|
21493
21493
|
init_lineage();
|
|
21494
21494
|
}
|
|
21495
21495
|
});
|
|
21496
21496
|
|
|
21497
|
-
// packages/experience-design-system-cli/src/import/tui/steps/auto-reject-decision.ts
|
|
21497
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/auto-reject-decision.ts
|
|
21498
21498
|
function computeAutoRejectDecision(input) {
|
|
21499
21499
|
if (input.loading) return "skip";
|
|
21500
21500
|
if (input.autoRejectFired) return "skip";
|
|
@@ -21502,12 +21502,12 @@ function computeAutoRejectDecision(input) {
|
|
|
21502
21502
|
return "fire";
|
|
21503
21503
|
}
|
|
21504
21504
|
var init_auto_reject_decision = __esm({
|
|
21505
|
-
"packages/experience-design-system-cli/src/import/tui/steps/auto-reject-decision.ts"() {
|
|
21505
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/auto-reject-decision.ts"() {
|
|
21506
21506
|
"use strict";
|
|
21507
21507
|
}
|
|
21508
21508
|
});
|
|
21509
21509
|
|
|
21510
|
-
// packages/experience-design-system-cli/src/import/tui/steps/breaking-change-format.ts
|
|
21510
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/breaking-change-format.ts
|
|
21511
21511
|
function formatBreakingChange(bc, current) {
|
|
21512
21512
|
if ("slotId" in bc) {
|
|
21513
21513
|
const copy2 = SLOT_REASON_COPY[bc.reason] ?? bc.reason;
|
|
@@ -21524,7 +21524,7 @@ function formatBreakingChange(bc, current) {
|
|
|
21524
21524
|
}
|
|
21525
21525
|
var PROPERTY_REASON_COPY, SLOT_REASON_COPY;
|
|
21526
21526
|
var init_breaking_change_format = __esm({
|
|
21527
|
-
"packages/experience-design-system-cli/src/import/tui/steps/breaking-change-format.ts"() {
|
|
21527
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/breaking-change-format.ts"() {
|
|
21528
21528
|
"use strict";
|
|
21529
21529
|
PROPERTY_REASON_COPY = {
|
|
21530
21530
|
removed: "removed",
|
|
@@ -21539,7 +21539,7 @@ var init_breaking_change_format = __esm({
|
|
|
21539
21539
|
}
|
|
21540
21540
|
});
|
|
21541
21541
|
|
|
21542
|
-
// packages/experience-design-system-cli/src/import/tui/steps/enumerate-cycle-breaks.ts
|
|
21542
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/enumerate-cycle-breaks.ts
|
|
21543
21543
|
function enumerateCycleBreaks(cycle, components) {
|
|
21544
21544
|
const byKey = /* @__PURE__ */ new Map();
|
|
21545
21545
|
for (const c2 of components) byKey.set(c2.key, c2.entry);
|
|
@@ -21562,12 +21562,12 @@ function enumerateCycleBreaks(cycle, components) {
|
|
|
21562
21562
|
return out;
|
|
21563
21563
|
}
|
|
21564
21564
|
var init_enumerate_cycle_breaks = __esm({
|
|
21565
|
-
"packages/experience-design-system-cli/src/import/tui/steps/enumerate-cycle-breaks.ts"() {
|
|
21565
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/enumerate-cycle-breaks.ts"() {
|
|
21566
21566
|
"use strict";
|
|
21567
21567
|
}
|
|
21568
21568
|
});
|
|
21569
21569
|
|
|
21570
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/hooks/scroll-offset.ts
|
|
21570
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/hooks/scroll-offset.ts
|
|
21571
21571
|
function computeNextScrollOffset(current, input, key, totalLines, panelHeight) {
|
|
21572
21572
|
const maxOffset = Math.max(0, totalLines - panelHeight);
|
|
21573
21573
|
const halfPage = Math.max(1, Math.floor(panelHeight / 2));
|
|
@@ -21595,12 +21595,12 @@ function computeNextScrollOffset(current, input, key, totalLines, panelHeight) {
|
|
|
21595
21595
|
return null;
|
|
21596
21596
|
}
|
|
21597
21597
|
var init_scroll_offset = __esm({
|
|
21598
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/hooks/scroll-offset.ts"() {
|
|
21598
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/hooks/scroll-offset.ts"() {
|
|
21599
21599
|
"use strict";
|
|
21600
21600
|
}
|
|
21601
21601
|
});
|
|
21602
21602
|
|
|
21603
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/FieldEditor.tsx
|
|
21603
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/FieldEditor.tsx
|
|
21604
21604
|
import React14, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useState as useState15 } from "react";
|
|
21605
21605
|
import figures4 from "figures";
|
|
21606
21606
|
import { Box as Box29, measureElement, Text as Text30 } from "ink";
|
|
@@ -23354,7 +23354,7 @@ function FieldEditor({
|
|
|
23354
23354
|
}
|
|
23355
23355
|
var SLOT_FIELDS;
|
|
23356
23356
|
var init_FieldEditor = __esm({
|
|
23357
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/FieldEditor.tsx"() {
|
|
23357
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/FieldEditor.tsx"() {
|
|
23358
23358
|
"use strict";
|
|
23359
23359
|
init_theme();
|
|
23360
23360
|
init_useImmediateInput();
|
|
@@ -23365,7 +23365,7 @@ var init_FieldEditor = __esm({
|
|
|
23365
23365
|
}
|
|
23366
23366
|
});
|
|
23367
23367
|
|
|
23368
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/wrap-text.ts
|
|
23368
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/wrap-text.ts
|
|
23369
23369
|
function appendLongWordChunks(word, width, lines) {
|
|
23370
23370
|
let rest = word;
|
|
23371
23371
|
while (rest.length > width) {
|
|
@@ -23397,12 +23397,12 @@ function wrapText(text, innerWidth) {
|
|
|
23397
23397
|
return lines.length > 0 ? lines : [""];
|
|
23398
23398
|
}
|
|
23399
23399
|
var init_wrap_text = __esm({
|
|
23400
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/wrap-text.ts"() {
|
|
23400
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/wrap-text.ts"() {
|
|
23401
23401
|
"use strict";
|
|
23402
23402
|
}
|
|
23403
23403
|
});
|
|
23404
23404
|
|
|
23405
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/RationaleLine.tsx
|
|
23405
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/RationaleLine.tsx
|
|
23406
23406
|
import { Box as Box30, Text as Text31 } from "ink";
|
|
23407
23407
|
import { jsx as jsx34, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
23408
23408
|
function RationaleLine({ line, active }) {
|
|
@@ -23422,13 +23422,13 @@ function RationaleLine({ line, active }) {
|
|
|
23422
23422
|
return /* @__PURE__ */ jsx34(Box30, { children: /* @__PURE__ */ jsx34(Text31, { dimColor: !active || line.dim, children: line.text }) });
|
|
23423
23423
|
}
|
|
23424
23424
|
var init_RationaleLine = __esm({
|
|
23425
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/RationaleLine.tsx"() {
|
|
23425
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/RationaleLine.tsx"() {
|
|
23426
23426
|
"use strict";
|
|
23427
23427
|
init_theme();
|
|
23428
23428
|
}
|
|
23429
23429
|
});
|
|
23430
23430
|
|
|
23431
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/ComponentRationalePanel.tsx
|
|
23431
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/ComponentRationalePanel.tsx
|
|
23432
23432
|
import { Box as Box31, Text as Text32 } from "ink";
|
|
23433
23433
|
import { jsx as jsx35, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
23434
23434
|
function renderComponentRationaleLines(data, innerWidth) {
|
|
@@ -23515,7 +23515,7 @@ function ComponentRationalePanel({
|
|
|
23515
23515
|
}
|
|
23516
23516
|
var PLACEHOLDER;
|
|
23517
23517
|
var init_ComponentRationalePanel = __esm({
|
|
23518
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/ComponentRationalePanel.tsx"() {
|
|
23518
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/ComponentRationalePanel.tsx"() {
|
|
23519
23519
|
"use strict";
|
|
23520
23520
|
init_theme();
|
|
23521
23521
|
init_wrap_text();
|
|
@@ -23524,19 +23524,19 @@ var init_ComponentRationalePanel = __esm({
|
|
|
23524
23524
|
}
|
|
23525
23525
|
});
|
|
23526
23526
|
|
|
23527
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/HighlightedLine.tsx
|
|
23527
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/HighlightedLine.tsx
|
|
23528
23528
|
import { Text as Text33 } from "ink";
|
|
23529
23529
|
import { Fragment as Fragment11, jsx as jsx36 } from "react/jsx-runtime";
|
|
23530
23530
|
function HighlightedLine({ parts }) {
|
|
23531
23531
|
return /* @__PURE__ */ jsx36(Fragment11, { children: parts.map((part, i) => /* @__PURE__ */ jsx36(Text33, { color: part.color, dimColor: part.dim, children: part.text }, i)) });
|
|
23532
23532
|
}
|
|
23533
23533
|
var init_HighlightedLine = __esm({
|
|
23534
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/HighlightedLine.tsx"() {
|
|
23534
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/HighlightedLine.tsx"() {
|
|
23535
23535
|
"use strict";
|
|
23536
23536
|
}
|
|
23537
23537
|
});
|
|
23538
23538
|
|
|
23539
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/ScrollablePanel.tsx
|
|
23539
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/ScrollablePanel.tsx
|
|
23540
23540
|
import { Box as Box32, Text as Text34 } from "ink";
|
|
23541
23541
|
import { Fragment as Fragment12, jsx as jsx37, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
23542
23542
|
function ScrollablePanel({
|
|
@@ -23563,12 +23563,12 @@ function ScrollablePanel({
|
|
|
23563
23563
|
] });
|
|
23564
23564
|
}
|
|
23565
23565
|
var init_ScrollablePanel = __esm({
|
|
23566
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/ScrollablePanel.tsx"() {
|
|
23566
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/ScrollablePanel.tsx"() {
|
|
23567
23567
|
"use strict";
|
|
23568
23568
|
}
|
|
23569
23569
|
});
|
|
23570
23570
|
|
|
23571
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/JsonPanel.tsx
|
|
23571
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/JsonPanel.tsx
|
|
23572
23572
|
import { Box as Box33, Text as Text35 } from "ink";
|
|
23573
23573
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
23574
23574
|
function highlightJson(line) {
|
|
@@ -23640,14 +23640,14 @@ function JsonPanel({ label, value, scrollOffset, width, height, active }) {
|
|
|
23640
23640
|
);
|
|
23641
23641
|
}
|
|
23642
23642
|
var init_JsonPanel = __esm({
|
|
23643
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/JsonPanel.tsx"() {
|
|
23643
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/JsonPanel.tsx"() {
|
|
23644
23644
|
"use strict";
|
|
23645
23645
|
init_HighlightedLine();
|
|
23646
23646
|
init_ScrollablePanel();
|
|
23647
23647
|
}
|
|
23648
23648
|
});
|
|
23649
23649
|
|
|
23650
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/RationalePanel.tsx
|
|
23650
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/RationalePanel.tsx
|
|
23651
23651
|
import { Text as Text36 } from "ink";
|
|
23652
23652
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
23653
23653
|
function renderRationaleLines(rows, innerWidth) {
|
|
@@ -23698,7 +23698,7 @@ function RationalePanel({
|
|
|
23698
23698
|
);
|
|
23699
23699
|
}
|
|
23700
23700
|
var init_RationalePanel = __esm({
|
|
23701
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/RationalePanel.tsx"() {
|
|
23701
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/RationalePanel.tsx"() {
|
|
23702
23702
|
"use strict";
|
|
23703
23703
|
init_theme();
|
|
23704
23704
|
init_wrap_text();
|
|
@@ -23707,7 +23707,7 @@ var init_RationalePanel = __esm({
|
|
|
23707
23707
|
}
|
|
23708
23708
|
});
|
|
23709
23709
|
|
|
23710
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/TokenReviewPanel.tsx
|
|
23710
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/TokenReviewPanel.tsx
|
|
23711
23711
|
import figures5 from "figures";
|
|
23712
23712
|
import { Box as Box34, Text as Text37 } from "ink";
|
|
23713
23713
|
import { jsx as jsx40, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
@@ -23796,13 +23796,13 @@ function TokenReviewPanel({
|
|
|
23796
23796
|
);
|
|
23797
23797
|
}
|
|
23798
23798
|
var init_TokenReviewPanel = __esm({
|
|
23799
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/TokenReviewPanel.tsx"() {
|
|
23799
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/TokenReviewPanel.tsx"() {
|
|
23800
23800
|
"use strict";
|
|
23801
23801
|
init_theme();
|
|
23802
23802
|
}
|
|
23803
23803
|
});
|
|
23804
23804
|
|
|
23805
|
-
// packages/experience-design-system-cli/src/import/tui/steps/review-details-panel.tsx
|
|
23805
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/review-details-panel.tsx
|
|
23806
23806
|
import { Text as Text38 } from "ink";
|
|
23807
23807
|
import { Fragment as Fragment13, jsx as jsx41, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
23808
23808
|
function ReviewDetailsPanel({
|
|
@@ -23915,7 +23915,7 @@ function ReviewDetailsPanel({
|
|
|
23915
23915
|
return /* @__PURE__ */ jsx41(Fragment13, { children: editor });
|
|
23916
23916
|
}
|
|
23917
23917
|
var init_review_details_panel = __esm({
|
|
23918
|
-
"packages/experience-design-system-cli/src/import/tui/steps/review-details-panel.tsx"() {
|
|
23918
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/review-details-panel.tsx"() {
|
|
23919
23919
|
"use strict";
|
|
23920
23920
|
init_ComponentRationalePanel();
|
|
23921
23921
|
init_JsonPanel();
|
|
@@ -23925,7 +23925,7 @@ var init_review_details_panel = __esm({
|
|
|
23925
23925
|
}
|
|
23926
23926
|
});
|
|
23927
23927
|
|
|
23928
|
-
// packages/experience-design-system-cli/src/import/tui/components/ReviewDetailsEditor.tsx
|
|
23928
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewDetailsEditor.tsx
|
|
23929
23929
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
23930
23930
|
import { createElement as createElement5 } from "react";
|
|
23931
23931
|
function toFieldEditorMetadata(reviewMetadata) {
|
|
@@ -23997,14 +23997,14 @@ function ReviewDetailsEditor({
|
|
|
23997
23997
|
);
|
|
23998
23998
|
}
|
|
23999
23999
|
var init_ReviewDetailsEditor = __esm({
|
|
24000
|
-
"packages/experience-design-system-cli/src/import/tui/components/ReviewDetailsEditor.tsx"() {
|
|
24000
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewDetailsEditor.tsx"() {
|
|
24001
24001
|
"use strict";
|
|
24002
24002
|
init_FieldEditor();
|
|
24003
24003
|
init_review_details_panel();
|
|
24004
24004
|
}
|
|
24005
24005
|
});
|
|
24006
24006
|
|
|
24007
|
-
// packages/experience-design-system-cli/src/import/tui/components/ReviewComponentPanel.tsx
|
|
24007
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewComponentPanel.tsx
|
|
24008
24008
|
import { Box as Box35, Text as Text39 } from "ink";
|
|
24009
24009
|
import { Fragment as Fragment14, jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
24010
24010
|
function buildReviewFieldEditor(reviewEditor, selectedJson, onExit, overrides = {}) {
|
|
@@ -24134,7 +24134,7 @@ function ReviewComponentPanel({
|
|
|
24134
24134
|
] }) });
|
|
24135
24135
|
}
|
|
24136
24136
|
var init_ReviewComponentPanel = __esm({
|
|
24137
|
-
"packages/experience-design-system-cli/src/import/tui/components/ReviewComponentPanel.tsx"() {
|
|
24137
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewComponentPanel.tsx"() {
|
|
24138
24138
|
"use strict";
|
|
24139
24139
|
init_theme();
|
|
24140
24140
|
init_review_json_panel();
|
|
@@ -24143,7 +24143,7 @@ var init_ReviewComponentPanel = __esm({
|
|
|
24143
24143
|
}
|
|
24144
24144
|
});
|
|
24145
24145
|
|
|
24146
|
-
// packages/experience-design-system-cli/src/import/tui/components/ReviewStatus.tsx
|
|
24146
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewStatus.tsx
|
|
24147
24147
|
import { Box as Box36, Text as Text40 } from "ink";
|
|
24148
24148
|
import { jsx as jsx44, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
24149
24149
|
function countReviewStatuses(entries) {
|
|
@@ -24168,13 +24168,13 @@ function ReviewLoadError({ message }) {
|
|
|
24168
24168
|
] });
|
|
24169
24169
|
}
|
|
24170
24170
|
var init_ReviewStatus = __esm({
|
|
24171
|
-
"packages/experience-design-system-cli/src/import/tui/components/ReviewStatus.tsx"() {
|
|
24171
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewStatus.tsx"() {
|
|
24172
24172
|
"use strict";
|
|
24173
24173
|
init_theme();
|
|
24174
24174
|
}
|
|
24175
24175
|
});
|
|
24176
24176
|
|
|
24177
|
-
// packages/experience-design-system-cli/src/import/tui/history.ts
|
|
24177
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/history.ts
|
|
24178
24178
|
function cloneSnapshot(snap) {
|
|
24179
24179
|
return {
|
|
24180
24180
|
components: snap.components.map((c2) => ({
|
|
@@ -24227,13 +24227,13 @@ function createHistoryStack(seed, maxDepth = DEFAULT_MAX_DEPTH) {
|
|
|
24227
24227
|
}
|
|
24228
24228
|
var DEFAULT_MAX_DEPTH;
|
|
24229
24229
|
var init_history = __esm({
|
|
24230
|
-
"packages/experience-design-system-cli/src/import/tui/history.ts"() {
|
|
24230
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/history.ts"() {
|
|
24231
24231
|
"use strict";
|
|
24232
24232
|
DEFAULT_MAX_DEPTH = 50;
|
|
24233
24233
|
}
|
|
24234
24234
|
});
|
|
24235
24235
|
|
|
24236
|
-
// packages/experience-design-system-cli/src/import/tui/runLivePreview.ts
|
|
24236
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/runLivePreview.ts
|
|
24237
24237
|
import { buildCDF as buildCDF2 } from "@contentful/experience-design-system-types";
|
|
24238
24238
|
async function runLivePreview(opts) {
|
|
24239
24239
|
const { sessionId: sessionId2, tokensPath, spaceId, environmentId, cmaToken, host, generation } = opts;
|
|
@@ -24282,7 +24282,7 @@ async function runLivePreview(opts) {
|
|
|
24282
24282
|
}
|
|
24283
24283
|
var TimeoutError, DEFAULT_TIMEOUT_MS3;
|
|
24284
24284
|
var init_runLivePreview = __esm({
|
|
24285
|
-
"packages/experience-design-system-cli/src/import/tui/runLivePreview.ts"() {
|
|
24285
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/runLivePreview.ts"() {
|
|
24286
24286
|
"use strict";
|
|
24287
24287
|
init_api_client();
|
|
24288
24288
|
init_tokens();
|
|
@@ -24297,7 +24297,7 @@ var init_runLivePreview = __esm({
|
|
|
24297
24297
|
}
|
|
24298
24298
|
});
|
|
24299
24299
|
|
|
24300
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/FinalizeDialog.tsx
|
|
24300
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/FinalizeDialog.tsx
|
|
24301
24301
|
import { Box as Box37, Text as Text41 } from "ink";
|
|
24302
24302
|
import { Fragment as Fragment15, jsx as jsx45, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
24303
24303
|
function FinalizeDialog({
|
|
@@ -24376,7 +24376,7 @@ function FinalizeDialog({
|
|
|
24376
24376
|
}
|
|
24377
24377
|
var FINALIZE_REMOVED_WINDOW;
|
|
24378
24378
|
var init_FinalizeDialog = __esm({
|
|
24379
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/FinalizeDialog.tsx"() {
|
|
24379
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/FinalizeDialog.tsx"() {
|
|
24380
24380
|
"use strict";
|
|
24381
24381
|
init_theme();
|
|
24382
24382
|
init_useImmediateInput();
|
|
@@ -24385,7 +24385,7 @@ var init_FinalizeDialog = __esm({
|
|
|
24385
24385
|
}
|
|
24386
24386
|
});
|
|
24387
24387
|
|
|
24388
|
-
// packages/experience-design-system-cli/src/import/tui/useFinalizePreview.ts
|
|
24388
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/useFinalizePreview.ts
|
|
24389
24389
|
import { useEffect as useEffect9, useRef as useRef5, useState as useState16 } from "react";
|
|
24390
24390
|
function useReviewFinalizePreview({
|
|
24391
24391
|
components,
|
|
@@ -24447,14 +24447,14 @@ function useFinalizePreview(opts) {
|
|
|
24447
24447
|
return { status, removed, scrollOffset, scrollBy };
|
|
24448
24448
|
}
|
|
24449
24449
|
var init_useFinalizePreview = __esm({
|
|
24450
|
-
"packages/experience-design-system-cli/src/import/tui/useFinalizePreview.ts"() {
|
|
24450
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/useFinalizePreview.ts"() {
|
|
24451
24451
|
"use strict";
|
|
24452
24452
|
init_runLivePreview();
|
|
24453
24453
|
init_FinalizeDialog();
|
|
24454
24454
|
}
|
|
24455
24455
|
});
|
|
24456
24456
|
|
|
24457
|
-
// packages/experience-design-system-cli/src/import/tui/hooks/useReviewSession.ts
|
|
24457
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewSession.ts
|
|
24458
24458
|
import { useCallback as useCallback4, useEffect as useEffect10, useRef as useRef6, useState as useState17 } from "react";
|
|
24459
24459
|
function loadReviewSessionState({
|
|
24460
24460
|
extractSessionId,
|
|
@@ -24689,7 +24689,7 @@ function useReviewFinalize({
|
|
|
24689
24689
|
return { finalizePreview, handleFinalizeConfirm };
|
|
24690
24690
|
}
|
|
24691
24691
|
var init_useReviewSession = __esm({
|
|
24692
|
-
"packages/experience-design-system-cli/src/import/tui/hooks/useReviewSession.ts"() {
|
|
24692
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewSession.ts"() {
|
|
24693
24693
|
"use strict";
|
|
24694
24694
|
init_tokens();
|
|
24695
24695
|
init_db();
|
|
@@ -24698,7 +24698,7 @@ var init_useReviewSession = __esm({
|
|
|
24698
24698
|
}
|
|
24699
24699
|
});
|
|
24700
24700
|
|
|
24701
|
-
// packages/experience-design-system-cli/src/import/tui/hooks/useReviewEditor.ts
|
|
24701
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewEditor.ts
|
|
24702
24702
|
import { useEffect as useEffect11, useRef as useRef7, useState as useState18 } from "react";
|
|
24703
24703
|
function parseReviewEntry(draftValue) {
|
|
24704
24704
|
const parsed = JSON.parse(draftValue);
|
|
@@ -24845,14 +24845,14 @@ function useReviewEditor({
|
|
|
24845
24845
|
};
|
|
24846
24846
|
}
|
|
24847
24847
|
var init_useReviewEditor = __esm({
|
|
24848
|
-
"packages/experience-design-system-cli/src/import/tui/hooks/useReviewEditor.ts"() {
|
|
24848
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewEditor.ts"() {
|
|
24849
24849
|
"use strict";
|
|
24850
24850
|
init_db();
|
|
24851
24851
|
init_TokenReviewPanel();
|
|
24852
24852
|
}
|
|
24853
24853
|
});
|
|
24854
24854
|
|
|
24855
|
-
// packages/experience-design-system-cli/src/import/tui/hooks/useReviewSurfaceState.ts
|
|
24855
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewSurfaceState.ts
|
|
24856
24856
|
import { useState as useState19 } from "react";
|
|
24857
24857
|
function useReviewSurfaceState(initialFinalizeError = null) {
|
|
24858
24858
|
const [sidebarFocused, setSidebarFocused] = useState19(true);
|
|
@@ -24871,12 +24871,12 @@ function useReviewSurfaceState(initialFinalizeError = null) {
|
|
|
24871
24871
|
};
|
|
24872
24872
|
}
|
|
24873
24873
|
var init_useReviewSurfaceState = __esm({
|
|
24874
|
-
"packages/experience-design-system-cli/src/import/tui/hooks/useReviewSurfaceState.ts"() {
|
|
24874
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewSurfaceState.ts"() {
|
|
24875
24875
|
"use strict";
|
|
24876
24876
|
}
|
|
24877
24877
|
});
|
|
24878
24878
|
|
|
24879
|
-
// packages/experience-design-system-cli/src/analyze/select/tui/components/QuitDialog.tsx
|
|
24879
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/QuitDialog.tsx
|
|
24880
24880
|
import { Box as Box38, Text as Text42 } from "ink";
|
|
24881
24881
|
import { Fragment as Fragment16, jsx as jsx46, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
24882
24882
|
function QuitDialog({ hasUnsavedDrafts, onConfirm, onCancel }) {
|
|
@@ -24900,13 +24900,13 @@ function QuitDialog({ hasUnsavedDrafts, onConfirm, onCancel }) {
|
|
|
24900
24900
|
] });
|
|
24901
24901
|
}
|
|
24902
24902
|
var init_QuitDialog = __esm({
|
|
24903
|
-
"packages/experience-design-system-cli/src/analyze/select/tui/components/QuitDialog.tsx"() {
|
|
24903
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/tui/components/QuitDialog.tsx"() {
|
|
24904
24904
|
"use strict";
|
|
24905
24905
|
init_useImmediateInput();
|
|
24906
24906
|
}
|
|
24907
24907
|
});
|
|
24908
24908
|
|
|
24909
|
-
// packages/experience-design-system-cli/src/import/tui/components/ReviewDialogs.tsx
|
|
24909
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewDialogs.tsx
|
|
24910
24910
|
import { Box as Box39, Text as Text43 } from "ink";
|
|
24911
24911
|
import { Fragment as Fragment17, jsx as jsx47, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
24912
24912
|
function ReviewFinalizeDialogs({
|
|
@@ -24973,7 +24973,7 @@ function ReviewReloadDialog({ open }) {
|
|
|
24973
24973
|
] });
|
|
24974
24974
|
}
|
|
24975
24975
|
var init_ReviewDialogs = __esm({
|
|
24976
|
-
"packages/experience-design-system-cli/src/import/tui/components/ReviewDialogs.tsx"() {
|
|
24976
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/ReviewDialogs.tsx"() {
|
|
24977
24977
|
"use strict";
|
|
24978
24978
|
init_theme();
|
|
24979
24979
|
init_FinalizeDialog();
|
|
@@ -24982,7 +24982,7 @@ var init_ReviewDialogs = __esm({
|
|
|
24982
24982
|
}
|
|
24983
24983
|
});
|
|
24984
24984
|
|
|
24985
|
-
// packages/experience-design-system-cli/src/import/tui/hooks/review-input.ts
|
|
24985
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/hooks/review-input.ts
|
|
24986
24986
|
function handleReviewOverlayInput(input, key, state) {
|
|
24987
24987
|
if (state.loading) return true;
|
|
24988
24988
|
if (state.loadError) {
|
|
@@ -25161,14 +25161,14 @@ function handleJsonPanelInput(input, key, state) {
|
|
|
25161
25161
|
}
|
|
25162
25162
|
var PANEL_CONTENT_HEIGHT;
|
|
25163
25163
|
var init_review_input = __esm({
|
|
25164
|
-
"packages/experience-design-system-cli/src/import/tui/hooks/review-input.ts"() {
|
|
25164
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/hooks/review-input.ts"() {
|
|
25165
25165
|
"use strict";
|
|
25166
25166
|
init_scroll_offset();
|
|
25167
25167
|
PANEL_CONTENT_HEIGHT = 12;
|
|
25168
25168
|
}
|
|
25169
25169
|
});
|
|
25170
25170
|
|
|
25171
|
-
// packages/experience-design-system-cli/src/analyze/select/preview-annotations.ts
|
|
25171
|
+
// packages/experience-design-system-cli-legacy/src/analyze/select/preview-annotations.ts
|
|
25172
25172
|
function applyPreviewAnnotations(preview, localNames) {
|
|
25173
25173
|
const out = /* @__PURE__ */ new Map();
|
|
25174
25174
|
const unchanged = new Set(preview.components.unchanged);
|
|
@@ -25200,12 +25200,12 @@ function applyPreviewAnnotations(preview, localNames) {
|
|
|
25200
25200
|
return out;
|
|
25201
25201
|
}
|
|
25202
25202
|
var init_preview_annotations = __esm({
|
|
25203
|
-
"packages/experience-design-system-cli/src/analyze/select/preview-annotations.ts"() {
|
|
25203
|
+
"packages/experience-design-system-cli-legacy/src/analyze/select/preview-annotations.ts"() {
|
|
25204
25204
|
"use strict";
|
|
25205
25205
|
}
|
|
25206
25206
|
});
|
|
25207
25207
|
|
|
25208
|
-
// packages/experience-design-system-cli/src/import/tui/useLivePreview.ts
|
|
25208
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/useLivePreview.ts
|
|
25209
25209
|
import { useCallback as useCallback5, useEffect as useEffect12, useRef as useRef8, useState as useState20 } from "react";
|
|
25210
25210
|
function useLivePreview(opts) {
|
|
25211
25211
|
const debounceMs = opts.debounceMs ?? DEFAULT_DEBOUNCE_MS;
|
|
@@ -25295,7 +25295,7 @@ function useLivePreview(opts) {
|
|
|
25295
25295
|
}
|
|
25296
25296
|
var DEFAULT_DEBOUNCE_MS;
|
|
25297
25297
|
var init_useLivePreview = __esm({
|
|
25298
|
-
"packages/experience-design-system-cli/src/import/tui/useLivePreview.ts"() {
|
|
25298
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/useLivePreview.ts"() {
|
|
25299
25299
|
"use strict";
|
|
25300
25300
|
init_api_client();
|
|
25301
25301
|
init_runLivePreview();
|
|
@@ -25303,7 +25303,7 @@ var init_useLivePreview = __esm({
|
|
|
25303
25303
|
}
|
|
25304
25304
|
});
|
|
25305
25305
|
|
|
25306
|
-
// packages/experience-design-system-cli/src/import/tui/hooks/useReviewPreview.ts
|
|
25306
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewPreview.ts
|
|
25307
25307
|
import { useCallback as useCallback6, useEffect as useEffect13, useState as useState21 } from "react";
|
|
25308
25308
|
function useReviewPreview({
|
|
25309
25309
|
components,
|
|
@@ -25362,7 +25362,7 @@ function useReviewPreview({
|
|
|
25362
25362
|
}
|
|
25363
25363
|
var SPINNER_FRAMES2;
|
|
25364
25364
|
var init_useReviewPreview = __esm({
|
|
25365
|
-
"packages/experience-design-system-cli/src/import/tui/hooks/useReviewPreview.ts"() {
|
|
25365
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/hooks/useReviewPreview.ts"() {
|
|
25366
25366
|
"use strict";
|
|
25367
25367
|
init_preview_annotations();
|
|
25368
25368
|
init_useLivePreview();
|
|
@@ -25370,7 +25370,7 @@ var init_useReviewPreview = __esm({
|
|
|
25370
25370
|
}
|
|
25371
25371
|
});
|
|
25372
25372
|
|
|
25373
|
-
// packages/experience-design-system-cli/src/import/tui/components/LivePreviewSummary.tsx
|
|
25373
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/components/LivePreviewSummary.tsx
|
|
25374
25374
|
import { Box as Box40, Text as Text44 } from "ink";
|
|
25375
25375
|
import { jsx as jsx48, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
25376
25376
|
function LivePreviewSummary({
|
|
@@ -25402,13 +25402,13 @@ function LivePreviewSummary({
|
|
|
25402
25402
|
] });
|
|
25403
25403
|
}
|
|
25404
25404
|
var init_LivePreviewSummary = __esm({
|
|
25405
|
-
"packages/experience-design-system-cli/src/import/tui/components/LivePreviewSummary.tsx"() {
|
|
25405
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/components/LivePreviewSummary.tsx"() {
|
|
25406
25406
|
"use strict";
|
|
25407
25407
|
init_theme();
|
|
25408
25408
|
}
|
|
25409
25409
|
});
|
|
25410
25410
|
|
|
25411
|
-
// packages/experience-design-system-cli/src/import/tui/steps/GenerateReviewStep.tsx
|
|
25411
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/steps/GenerateReviewStep.tsx
|
|
25412
25412
|
import { useCallback as useCallback7, useEffect as useEffect14, useMemo as useMemo3, useRef as useRef9, useState as useState22 } from "react";
|
|
25413
25413
|
import figures6 from "figures";
|
|
25414
25414
|
import { Box as Box41, Text as Text45 } from "ink";
|
|
@@ -26669,7 +26669,7 @@ function GenerateReviewStepView({
|
|
|
26669
26669
|
}
|
|
26670
26670
|
var HELP_SECTIONS2;
|
|
26671
26671
|
var init_GenerateReviewStep = __esm({
|
|
26672
|
-
"packages/experience-design-system-cli/src/import/tui/steps/GenerateReviewStep.tsx"() {
|
|
26672
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/steps/GenerateReviewStep.tsx"() {
|
|
26673
26673
|
"use strict";
|
|
26674
26674
|
init_theme();
|
|
26675
26675
|
init_review_json_panel();
|
|
@@ -26778,7 +26778,7 @@ var init_GenerateReviewStep = __esm({
|
|
|
26778
26778
|
}
|
|
26779
26779
|
});
|
|
26780
26780
|
|
|
26781
|
-
// packages/experience-design-system-cli/src/import/tui/runScopeGate.ts
|
|
26781
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/runScopeGate.ts
|
|
26782
26782
|
async function runScopeGate(opts) {
|
|
26783
26783
|
const startedAt = Date.now();
|
|
26784
26784
|
getDebugLogger().event("wizard", "scope-decision-persistence.start", {
|
|
@@ -26815,7 +26815,7 @@ async function runScopeGate(opts) {
|
|
|
26815
26815
|
}
|
|
26816
26816
|
}
|
|
26817
26817
|
var init_runScopeGate = __esm({
|
|
26818
|
-
"packages/experience-design-system-cli/src/import/tui/runScopeGate.ts"() {
|
|
26818
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/runScopeGate.ts"() {
|
|
26819
26819
|
"use strict";
|
|
26820
26820
|
init_persistence();
|
|
26821
26821
|
init_debug_logger();
|
|
@@ -26823,7 +26823,7 @@ var init_runScopeGate = __esm({
|
|
|
26823
26823
|
}
|
|
26824
26824
|
});
|
|
26825
26825
|
|
|
26826
|
-
// packages/experience-design-system-cli/src/helpers/build-contentful-management-client.ts
|
|
26826
|
+
// packages/experience-design-system-cli-legacy/src/helpers/build-contentful-management-client.ts
|
|
26827
26827
|
import { createClient as createClient2 } from "contentful-management";
|
|
26828
26828
|
function buildContentfulManagementClient(opts) {
|
|
26829
26829
|
return createClient2(
|
|
@@ -26835,13 +26835,13 @@ function buildContentfulManagementClient(opts) {
|
|
|
26835
26835
|
);
|
|
26836
26836
|
}
|
|
26837
26837
|
var init_build_contentful_management_client = __esm({
|
|
26838
|
-
"packages/experience-design-system-cli/src/helpers/build-contentful-management-client.ts"() {
|
|
26838
|
+
"packages/experience-design-system-cli-legacy/src/helpers/build-contentful-management-client.ts"() {
|
|
26839
26839
|
"use strict";
|
|
26840
26840
|
init_host_utils();
|
|
26841
26841
|
}
|
|
26842
26842
|
});
|
|
26843
26843
|
|
|
26844
|
-
// packages/experience-design-system-cli/src/helpers/fetch-existing-contentful-entities.ts
|
|
26844
|
+
// packages/experience-design-system-cli-legacy/src/helpers/fetch-existing-contentful-entities.ts
|
|
26845
26845
|
import { fetchAll } from "contentful-management";
|
|
26846
26846
|
async function fetchExistingContentfulEntitiesFromContentful(client2, params) {
|
|
26847
26847
|
const componentScope = {
|
|
@@ -26859,12 +26859,12 @@ async function fetchExistingContentfulEntitiesFromContentful(client2, params) {
|
|
|
26859
26859
|
return { components, tokens };
|
|
26860
26860
|
}
|
|
26861
26861
|
var init_fetch_existing_contentful_entities = __esm({
|
|
26862
|
-
"packages/experience-design-system-cli/src/helpers/fetch-existing-contentful-entities.ts"() {
|
|
26862
|
+
"packages/experience-design-system-cli-legacy/src/helpers/fetch-existing-contentful-entities.ts"() {
|
|
26863
26863
|
"use strict";
|
|
26864
26864
|
}
|
|
26865
26865
|
});
|
|
26866
26866
|
|
|
26867
|
-
// packages/experience-design-system-cli/src/helpers/fetch-and-persist-existing-contentful-entities.ts
|
|
26867
|
+
// packages/experience-design-system-cli-legacy/src/helpers/fetch-and-persist-existing-contentful-entities.ts
|
|
26868
26868
|
import { writeFile as writeFile5 } from "node:fs/promises";
|
|
26869
26869
|
import { join as join19 } from "node:path";
|
|
26870
26870
|
async function fetchAndPersistExistingContentfulEntities(params) {
|
|
@@ -26890,14 +26890,14 @@ async function fetchAndPersistExistingContentfulEntities(params) {
|
|
|
26890
26890
|
}
|
|
26891
26891
|
}
|
|
26892
26892
|
var init_fetch_and_persist_existing_contentful_entities = __esm({
|
|
26893
|
-
"packages/experience-design-system-cli/src/helpers/fetch-and-persist-existing-contentful-entities.ts"() {
|
|
26893
|
+
"packages/experience-design-system-cli-legacy/src/helpers/fetch-and-persist-existing-contentful-entities.ts"() {
|
|
26894
26894
|
"use strict";
|
|
26895
26895
|
init_build_contentful_management_client();
|
|
26896
26896
|
init_fetch_existing_contentful_entities();
|
|
26897
26897
|
}
|
|
26898
26898
|
});
|
|
26899
26899
|
|
|
26900
|
-
// packages/experience-design-system-cli/src/import/tui/wizard-state-transitions.ts
|
|
26900
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/wizard-state-transitions.ts
|
|
26901
26901
|
function shouldGenerateAfterScopeGate(opts) {
|
|
26902
26902
|
return opts.acceptedCount > 0;
|
|
26903
26903
|
}
|
|
@@ -26927,12 +26927,12 @@ function buildSkippedPushTransition() {
|
|
|
26927
26927
|
return { step: "print-gate" };
|
|
26928
26928
|
}
|
|
26929
26929
|
var init_wizard_state_transitions = __esm({
|
|
26930
|
-
"packages/experience-design-system-cli/src/import/tui/wizard-state-transitions.ts"() {
|
|
26930
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/wizard-state-transitions.ts"() {
|
|
26931
26931
|
"use strict";
|
|
26932
26932
|
}
|
|
26933
26933
|
});
|
|
26934
26934
|
|
|
26935
|
-
// packages/experience-design-system-cli/src/import/tui/run-selection-agent.ts
|
|
26935
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/run-selection-agent.ts
|
|
26936
26936
|
async function runSelectionAgent(options) {
|
|
26937
26937
|
const db = openPipelineDb();
|
|
26938
26938
|
let components;
|
|
@@ -27030,7 +27030,7 @@ async function runSelectionAgent(options) {
|
|
|
27030
27030
|
}
|
|
27031
27031
|
var DEFAULT_TIMEOUT_MS4;
|
|
27032
27032
|
var init_run_selection_agent = __esm({
|
|
27033
|
-
"packages/experience-design-system-cli/src/import/tui/run-selection-agent.ts"() {
|
|
27033
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/run-selection-agent.ts"() {
|
|
27034
27034
|
"use strict";
|
|
27035
27035
|
init_src();
|
|
27036
27036
|
init_debug_logger();
|
|
@@ -27041,7 +27041,7 @@ var init_run_selection_agent = __esm({
|
|
|
27041
27041
|
}
|
|
27042
27042
|
});
|
|
27043
27043
|
|
|
27044
|
-
// packages/experience-design-system-cli/src/import/tui/WizardApp.tsx
|
|
27044
|
+
// packages/experience-design-system-cli-legacy/src/import/tui/WizardApp.tsx
|
|
27045
27045
|
var WizardApp_exports = {};
|
|
27046
27046
|
__export(WizardApp_exports, {
|
|
27047
27047
|
WizardApp: () => WizardApp,
|
|
@@ -29236,7 +29236,7 @@ If using a custom host configuration, make sure the space exists on that host.`
|
|
|
29236
29236
|
}
|
|
29237
29237
|
var SAVE_CONFIRMATION_DELAY_MS, WIZARD_LOG;
|
|
29238
29238
|
var init_WizardApp = __esm({
|
|
29239
|
-
"packages/experience-design-system-cli/src/import/tui/WizardApp.tsx"() {
|
|
29239
|
+
"packages/experience-design-system-cli-legacy/src/import/tui/WizardApp.tsx"() {
|
|
29240
29240
|
"use strict";
|
|
29241
29241
|
init_theme();
|
|
29242
29242
|
init_run_teaser();
|
|
@@ -29289,7 +29289,7 @@ var init_WizardApp = __esm({
|
|
|
29289
29289
|
}
|
|
29290
29290
|
});
|
|
29291
29291
|
|
|
29292
|
-
// packages/experience-design-system-cli/src/import/command.ts
|
|
29292
|
+
// packages/experience-design-system-cli-legacy/src/import/command.ts
|
|
29293
29293
|
function registerImportCommand(program) {
|
|
29294
29294
|
const cmd = program.command("import").description("Run the full pipeline: analyze \u2192 select \u2192 generate \u2192 push").option("--project <path>", "Path to the project root to analyze", ".");
|
|
29295
29295
|
cmd.option(
|
|
@@ -29357,7 +29357,7 @@ function registerImportCommand(program) {
|
|
|
29357
29357
|
});
|
|
29358
29358
|
}
|
|
29359
29359
|
var init_command6 = __esm({
|
|
29360
|
-
"packages/experience-design-system-cli/src/import/command.ts"() {
|
|
29360
|
+
"packages/experience-design-system-cli-legacy/src/import/command.ts"() {
|
|
29361
29361
|
"use strict";
|
|
29362
29362
|
init_path_utils();
|
|
29363
29363
|
init_agent_model_resolve();
|
|
@@ -29370,7 +29370,7 @@ var init_command6 = __esm({
|
|
|
29370
29370
|
}
|
|
29371
29371
|
});
|
|
29372
29372
|
|
|
29373
|
-
// packages/experience-design-system-cli/src/lib/agent-definitions.ts
|
|
29373
|
+
// packages/experience-design-system-cli-legacy/src/lib/agent-definitions.ts
|
|
29374
29374
|
function installCommand(agent) {
|
|
29375
29375
|
return `npm install -g ${agent.packageName}`;
|
|
29376
29376
|
}
|
|
@@ -29379,7 +29379,7 @@ function installHint(agent) {
|
|
|
29379
29379
|
}
|
|
29380
29380
|
var AGENT_DEFS, INSTALLABLE_AGENTS;
|
|
29381
29381
|
var init_agent_definitions = __esm({
|
|
29382
|
-
"packages/experience-design-system-cli/src/lib/agent-definitions.ts"() {
|
|
29382
|
+
"packages/experience-design-system-cli-legacy/src/lib/agent-definitions.ts"() {
|
|
29383
29383
|
"use strict";
|
|
29384
29384
|
AGENT_DEFS = [
|
|
29385
29385
|
{
|
|
@@ -29415,7 +29415,7 @@ var init_agent_definitions = __esm({
|
|
|
29415
29415
|
}
|
|
29416
29416
|
});
|
|
29417
29417
|
|
|
29418
|
-
// packages/experience-design-system-cli/src/setup/lib/shell.ts
|
|
29418
|
+
// packages/experience-design-system-cli-legacy/src/setup/lib/shell.ts
|
|
29419
29419
|
import { execFile as execFile3, spawn as spawn4 } from "node:child_process";
|
|
29420
29420
|
import { access as access8 } from "node:fs/promises";
|
|
29421
29421
|
import { promisify as promisify2 } from "node:util";
|
|
@@ -29457,20 +29457,28 @@ function runSpawn(cmd, args, opts = {}) {
|
|
|
29457
29457
|
}
|
|
29458
29458
|
var execFileAsync2, REQUIRED_NODE_MAJOR;
|
|
29459
29459
|
var init_shell = __esm({
|
|
29460
|
-
"packages/experience-design-system-cli/src/setup/lib/shell.ts"() {
|
|
29460
|
+
"packages/experience-design-system-cli-legacy/src/setup/lib/shell.ts"() {
|
|
29461
29461
|
"use strict";
|
|
29462
29462
|
execFileAsync2 = promisify2(execFile3);
|
|
29463
29463
|
REQUIRED_NODE_MAJOR = 24;
|
|
29464
29464
|
}
|
|
29465
29465
|
});
|
|
29466
29466
|
|
|
29467
|
-
// packages/experience-design-system-cli/src/setup/lib/checks.ts
|
|
29467
|
+
// packages/experience-design-system-cli-legacy/src/setup/lib/checks.ts
|
|
29468
29468
|
import { join as join21 } from "node:path";
|
|
29469
29469
|
function checkNodeVersion(nodeVersion = process.versions.node) {
|
|
29470
29470
|
const major = Number.parseInt(nodeVersion.split(".")[0], 10);
|
|
29471
|
-
return {
|
|
29471
|
+
return {
|
|
29472
|
+
passed: major >= REQUIRED_NODE_MAJOR,
|
|
29473
|
+
version: nodeVersion,
|
|
29474
|
+
major,
|
|
29475
|
+
required: REQUIRED_NODE_MAJOR
|
|
29476
|
+
};
|
|
29472
29477
|
}
|
|
29473
|
-
async function detectNodeVersionManagers(homeDir, deps = {
|
|
29478
|
+
async function detectNodeVersionManagers(homeDir, deps = {
|
|
29479
|
+
binaryExists,
|
|
29480
|
+
pathExists: pathExists3
|
|
29481
|
+
}) {
|
|
29474
29482
|
const nvmScript = join21(homeDir, ".nvm", "nvm.sh");
|
|
29475
29483
|
return {
|
|
29476
29484
|
nvm: await deps.binaryExists("nvm") || await deps.pathExists(nvmScript),
|
|
@@ -29487,28 +29495,36 @@ async function detectPnpm(deps = { binaryExists, run: runSpawn }) {
|
|
|
29487
29495
|
async function checkPnpm(pkgRoot, deps = { binaryExists, run: runSpawn }) {
|
|
29488
29496
|
const detected = await detectPnpm(deps);
|
|
29489
29497
|
if (detected.status !== "ok") return detected;
|
|
29490
|
-
const ping = await deps.run("pnpm", ["exec", "node", "--version"], {
|
|
29498
|
+
const ping = await deps.run("pnpm", ["exec", "node", "--version"], {
|
|
29499
|
+
cwd: pkgRoot
|
|
29500
|
+
});
|
|
29491
29501
|
if (ping.exitCode !== 0) return { status: "unusable-in-repo", version: detected.version };
|
|
29492
29502
|
return detected;
|
|
29493
29503
|
}
|
|
29494
29504
|
async function installDependencies(repoRoot, deps = { run: runSpawn }) {
|
|
29495
|
-
const result = await deps.run("pnpm", ["install", "--frozen-lockfile"], {
|
|
29505
|
+
const result = await deps.run("pnpm", ["install", "--frozen-lockfile"], {
|
|
29506
|
+
cwd: repoRoot
|
|
29507
|
+
});
|
|
29496
29508
|
return { passed: result.exitCode === 0, result };
|
|
29497
29509
|
}
|
|
29498
29510
|
async function buildCli(repoRoot, deps = { run: runSpawn }) {
|
|
29499
|
-
const result = await deps.run(
|
|
29500
|
-
|
|
29501
|
-
|
|
29511
|
+
const result = await deps.run(
|
|
29512
|
+
"pnpm",
|
|
29513
|
+
["--filter", "@contentful/experience-design-system-cli-legacy", "run", "build"],
|
|
29514
|
+
{
|
|
29515
|
+
cwd: repoRoot
|
|
29516
|
+
}
|
|
29517
|
+
);
|
|
29502
29518
|
return { passed: result.exitCode === 0, result };
|
|
29503
29519
|
}
|
|
29504
29520
|
var init_checks = __esm({
|
|
29505
|
-
"packages/experience-design-system-cli/src/setup/lib/checks.ts"() {
|
|
29521
|
+
"packages/experience-design-system-cli-legacy/src/setup/lib/checks.ts"() {
|
|
29506
29522
|
"use strict";
|
|
29507
29523
|
init_shell();
|
|
29508
29524
|
}
|
|
29509
29525
|
});
|
|
29510
29526
|
|
|
29511
|
-
// packages/experience-design-system-cli/src/doctor/report.ts
|
|
29527
|
+
// packages/experience-design-system-cli-legacy/src/doctor/report.ts
|
|
29512
29528
|
function ok(msg) {
|
|
29513
29529
|
write(` ${c.green("\u2713")} ${msg}`);
|
|
29514
29530
|
}
|
|
@@ -29530,7 +29546,7 @@ function infoStderr(stderr, limit) {
|
|
|
29530
29546
|
}
|
|
29531
29547
|
var write;
|
|
29532
29548
|
var init_report = __esm({
|
|
29533
|
-
"packages/experience-design-system-cli/src/doctor/report.ts"() {
|
|
29549
|
+
"packages/experience-design-system-cli-legacy/src/doctor/report.ts"() {
|
|
29534
29550
|
"use strict";
|
|
29535
29551
|
init_format();
|
|
29536
29552
|
write = (line) => {
|
|
@@ -29540,7 +29556,7 @@ var init_report = __esm({
|
|
|
29540
29556
|
}
|
|
29541
29557
|
});
|
|
29542
29558
|
|
|
29543
|
-
// packages/experience-design-system-cli/src/doctor/checks.ts
|
|
29559
|
+
// packages/experience-design-system-cli-legacy/src/doctor/checks.ts
|
|
29544
29560
|
import { homedir as homedir7 } from "node:os";
|
|
29545
29561
|
import { join as join22 } from "node:path";
|
|
29546
29562
|
async function reportNode() {
|
|
@@ -29661,7 +29677,7 @@ async function reportAgent() {
|
|
|
29661
29677
|
return false;
|
|
29662
29678
|
}
|
|
29663
29679
|
var init_checks2 = __esm({
|
|
29664
|
-
"packages/experience-design-system-cli/src/doctor/checks.ts"() {
|
|
29680
|
+
"packages/experience-design-system-cli-legacy/src/doctor/checks.ts"() {
|
|
29665
29681
|
"use strict";
|
|
29666
29682
|
init_credentials_store();
|
|
29667
29683
|
init_agent_definitions();
|
|
@@ -29671,7 +29687,7 @@ var init_checks2 = __esm({
|
|
|
29671
29687
|
}
|
|
29672
29688
|
});
|
|
29673
29689
|
|
|
29674
|
-
// packages/experience-design-system-cli/src/doctor/command.ts
|
|
29690
|
+
// packages/experience-design-system-cli-legacy/src/doctor/command.ts
|
|
29675
29691
|
async function runChecks() {
|
|
29676
29692
|
const pkgRoot = findPkgRoot();
|
|
29677
29693
|
const results = [];
|
|
@@ -29734,7 +29750,7 @@ function registerDoctorCommand(program) {
|
|
|
29734
29750
|
program.command("doctor").description("Check prerequisites so experiences import runs without errors").helpOption(false).action(() => runDoctor());
|
|
29735
29751
|
}
|
|
29736
29752
|
var init_command7 = __esm({
|
|
29737
|
-
"packages/experience-design-system-cli/src/doctor/command.ts"() {
|
|
29753
|
+
"packages/experience-design-system-cli-legacy/src/doctor/command.ts"() {
|
|
29738
29754
|
"use strict";
|
|
29739
29755
|
init_cli_path();
|
|
29740
29756
|
init_format();
|
|
@@ -29743,7 +29759,7 @@ var init_command7 = __esm({
|
|
|
29743
29759
|
}
|
|
29744
29760
|
});
|
|
29745
29761
|
|
|
29746
|
-
// packages/experience-design-system-cli/src/setup/SetupStepper.tsx
|
|
29762
|
+
// packages/experience-design-system-cli-legacy/src/setup/SetupStepper.tsx
|
|
29747
29763
|
import React17 from "react";
|
|
29748
29764
|
import { Box as Box43, Text as Text47 } from "ink";
|
|
29749
29765
|
import { jsx as jsx51, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
@@ -29770,7 +29786,7 @@ function SetupStepper({ activeStep, columns }) {
|
|
|
29770
29786
|
}
|
|
29771
29787
|
var SETUP_SCREENS, WIDE_SEPARATOR, COMPACT_GAP, WIDE_MIN_COLUMNS;
|
|
29772
29788
|
var init_SetupStepper = __esm({
|
|
29773
|
-
"packages/experience-design-system-cli/src/setup/SetupStepper.tsx"() {
|
|
29789
|
+
"packages/experience-design-system-cli-legacy/src/setup/SetupStepper.tsx"() {
|
|
29774
29790
|
"use strict";
|
|
29775
29791
|
init_theme();
|
|
29776
29792
|
SETUP_SCREENS = ["Prerequisites", "Coding agent", "Contentful", "Preferences"];
|
|
@@ -29782,7 +29798,7 @@ var init_SetupStepper = __esm({
|
|
|
29782
29798
|
}
|
|
29783
29799
|
});
|
|
29784
29800
|
|
|
29785
|
-
// packages/experience-design-system-cli/src/setup/steps/StepLayout.tsx
|
|
29801
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/StepLayout.tsx
|
|
29786
29802
|
import { Box as Box44, Text as Text48 } from "ink";
|
|
29787
29803
|
import { jsx as jsx52, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
29788
29804
|
function StepLayout({ helpText, children, prompt }) {
|
|
@@ -29813,13 +29829,13 @@ function StepValue({ label, value }) {
|
|
|
29813
29829
|
] });
|
|
29814
29830
|
}
|
|
29815
29831
|
var init_StepLayout = __esm({
|
|
29816
|
-
"packages/experience-design-system-cli/src/setup/steps/StepLayout.tsx"() {
|
|
29832
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/StepLayout.tsx"() {
|
|
29817
29833
|
"use strict";
|
|
29818
29834
|
init_theme();
|
|
29819
29835
|
}
|
|
29820
29836
|
});
|
|
29821
29837
|
|
|
29822
|
-
// packages/experience-design-system-cli/src/setup/steps/CodingAgentScreen.tsx
|
|
29838
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/CodingAgentScreen.tsx
|
|
29823
29839
|
import { useEffect as useEffect16, useRef as useRef11, useState as useState24 } from "react";
|
|
29824
29840
|
import { Box as Box45, Text as Text49 } from "ink";
|
|
29825
29841
|
import { Select, TextInput } from "@inkjs/ui";
|
|
@@ -29955,7 +29971,7 @@ function CodingAgentScreen({ onDone, deps }) {
|
|
|
29955
29971
|
}
|
|
29956
29972
|
var AGENT_HELP, SKIP_VALUE;
|
|
29957
29973
|
var init_CodingAgentScreen = __esm({
|
|
29958
|
-
"packages/experience-design-system-cli/src/setup/steps/CodingAgentScreen.tsx"() {
|
|
29974
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/CodingAgentScreen.tsx"() {
|
|
29959
29975
|
"use strict";
|
|
29960
29976
|
init_agent_definitions();
|
|
29961
29977
|
init_credentials_store();
|
|
@@ -29966,7 +29982,7 @@ var init_CodingAgentScreen = __esm({
|
|
|
29966
29982
|
}
|
|
29967
29983
|
});
|
|
29968
29984
|
|
|
29969
|
-
// packages/experience-design-system-cli/src/setup/steps/ContentfulCredentialsScreen.tsx
|
|
29985
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/ContentfulCredentialsScreen.tsx
|
|
29970
29986
|
import { useEffect as useEffect17, useRef as useRef12, useState as useState25 } from "react";
|
|
29971
29987
|
import { Box as Box46, Text as Text50 } from "ink";
|
|
29972
29988
|
import { PasswordInput, Select as Select2, TextInput as TextInput2 } from "@inkjs/ui";
|
|
@@ -30077,7 +30093,7 @@ function ContentfulCredentialsScreen({ onDone }) {
|
|
|
30077
30093
|
}
|
|
30078
30094
|
var ENV_KEYS, ENTER, KEEP, FIELD_ORDER;
|
|
30079
30095
|
var init_ContentfulCredentialsScreen = __esm({
|
|
30080
|
-
"packages/experience-design-system-cli/src/setup/steps/ContentfulCredentialsScreen.tsx"() {
|
|
30096
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/ContentfulCredentialsScreen.tsx"() {
|
|
30081
30097
|
"use strict";
|
|
30082
30098
|
init_credentials_store();
|
|
30083
30099
|
init_host_utils();
|
|
@@ -30089,7 +30105,7 @@ var init_ContentfulCredentialsScreen = __esm({
|
|
|
30089
30105
|
}
|
|
30090
30106
|
});
|
|
30091
30107
|
|
|
30092
|
-
// packages/experience-design-system-cli/src/setup/steps/preferences/BooleanInput.tsx
|
|
30108
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/preferences/BooleanInput.tsx
|
|
30093
30109
|
import { useEffect as useEffect18, useState as useState26 } from "react";
|
|
30094
30110
|
import { Box as Box47, Text as Text51 } from "ink";
|
|
30095
30111
|
import { Select as Select3 } from "@inkjs/ui";
|
|
@@ -30143,14 +30159,14 @@ function BooleanInput({
|
|
|
30143
30159
|
);
|
|
30144
30160
|
}
|
|
30145
30161
|
var init_BooleanInput = __esm({
|
|
30146
|
-
"packages/experience-design-system-cli/src/setup/steps/preferences/BooleanInput.tsx"() {
|
|
30162
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/preferences/BooleanInput.tsx"() {
|
|
30147
30163
|
"use strict";
|
|
30148
30164
|
init_credentials_store();
|
|
30149
30165
|
init_StepLayout();
|
|
30150
30166
|
}
|
|
30151
30167
|
});
|
|
30152
30168
|
|
|
30153
|
-
// packages/experience-design-system-cli/src/setup/steps/preferences/AnalyticsScreen.tsx
|
|
30169
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/preferences/AnalyticsScreen.tsx
|
|
30154
30170
|
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
30155
30171
|
function AnalyticsScreen({ onDone }) {
|
|
30156
30172
|
return /* @__PURE__ */ jsx56(
|
|
@@ -30167,13 +30183,13 @@ function AnalyticsScreen({ onDone }) {
|
|
|
30167
30183
|
);
|
|
30168
30184
|
}
|
|
30169
30185
|
var init_AnalyticsScreen = __esm({
|
|
30170
|
-
"packages/experience-design-system-cli/src/setup/steps/preferences/AnalyticsScreen.tsx"() {
|
|
30186
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/preferences/AnalyticsScreen.tsx"() {
|
|
30171
30187
|
"use strict";
|
|
30172
30188
|
init_BooleanInput();
|
|
30173
30189
|
}
|
|
30174
30190
|
});
|
|
30175
30191
|
|
|
30176
|
-
// packages/experience-design-system-cli/src/setup/steps/preferences/ColorPreferenceScreen.tsx
|
|
30192
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/preferences/ColorPreferenceScreen.tsx
|
|
30177
30193
|
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
30178
30194
|
function ColorPreferenceScreen({ onDone }) {
|
|
30179
30195
|
return /* @__PURE__ */ jsx57(
|
|
@@ -30190,13 +30206,13 @@ function ColorPreferenceScreen({ onDone }) {
|
|
|
30190
30206
|
);
|
|
30191
30207
|
}
|
|
30192
30208
|
var init_ColorPreferenceScreen = __esm({
|
|
30193
|
-
"packages/experience-design-system-cli/src/setup/steps/preferences/ColorPreferenceScreen.tsx"() {
|
|
30209
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/preferences/ColorPreferenceScreen.tsx"() {
|
|
30194
30210
|
"use strict";
|
|
30195
30211
|
init_BooleanInput();
|
|
30196
30212
|
}
|
|
30197
30213
|
});
|
|
30198
30214
|
|
|
30199
|
-
// packages/experience-design-system-cli/src/setup/steps/preferences/CustomPromptScreen.tsx
|
|
30215
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/preferences/CustomPromptScreen.tsx
|
|
30200
30216
|
import { useEffect as useEffect19, useState as useState27 } from "react";
|
|
30201
30217
|
import { Box as Box48, Text as Text52 } from "ink";
|
|
30202
30218
|
import { ConfirmInput, TextInput as TextInput3 } from "@inkjs/ui";
|
|
@@ -30259,7 +30275,7 @@ function CustomPromptsScreen({ onDone }) {
|
|
|
30259
30275
|
}
|
|
30260
30276
|
var CUSTOM_PROMPTS_HELP;
|
|
30261
30277
|
var init_CustomPromptScreen = __esm({
|
|
30262
|
-
"packages/experience-design-system-cli/src/setup/steps/preferences/CustomPromptScreen.tsx"() {
|
|
30278
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/preferences/CustomPromptScreen.tsx"() {
|
|
30263
30279
|
"use strict";
|
|
30264
30280
|
init_credentials_store();
|
|
30265
30281
|
init_StepLayout();
|
|
@@ -30267,7 +30283,7 @@ var init_CustomPromptScreen = __esm({
|
|
|
30267
30283
|
}
|
|
30268
30284
|
});
|
|
30269
30285
|
|
|
30270
|
-
// packages/experience-design-system-cli/src/setup/steps/preferences/DebugLogsScreen.tsx
|
|
30286
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/preferences/DebugLogsScreen.tsx
|
|
30271
30287
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
30272
30288
|
function DebugLogsScreen({ onDone }) {
|
|
30273
30289
|
return /* @__PURE__ */ jsx59(
|
|
@@ -30284,13 +30300,13 @@ function DebugLogsScreen({ onDone }) {
|
|
|
30284
30300
|
);
|
|
30285
30301
|
}
|
|
30286
30302
|
var init_DebugLogsScreen = __esm({
|
|
30287
|
-
"packages/experience-design-system-cli/src/setup/steps/preferences/DebugLogsScreen.tsx"() {
|
|
30303
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/preferences/DebugLogsScreen.tsx"() {
|
|
30288
30304
|
"use strict";
|
|
30289
30305
|
init_BooleanInput();
|
|
30290
30306
|
}
|
|
30291
30307
|
});
|
|
30292
30308
|
|
|
30293
|
-
// packages/experience-design-system-cli/src/setup/steps/preferences/PreferencesMenu.tsx
|
|
30309
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/preferences/PreferencesMenu.tsx
|
|
30294
30310
|
import { useState as useState28 } from "react";
|
|
30295
30311
|
import { Box as Box49, Text as Text53 } from "ink";
|
|
30296
30312
|
import { Select as Select4 } from "@inkjs/ui";
|
|
@@ -30346,7 +30362,7 @@ function PreferenceList({ changed, onOpen, onDone }) {
|
|
|
30346
30362
|
}
|
|
30347
30363
|
var PREFERENCE_OPTIONS, DONE_VALUE, PREFERENCES_MENU_HELP;
|
|
30348
30364
|
var init_PreferencesMenu = __esm({
|
|
30349
|
-
"packages/experience-design-system-cli/src/setup/steps/preferences/PreferencesMenu.tsx"() {
|
|
30365
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/preferences/PreferencesMenu.tsx"() {
|
|
30350
30366
|
"use strict";
|
|
30351
30367
|
init_StepLayout();
|
|
30352
30368
|
init_AnalyticsScreen();
|
|
@@ -30380,17 +30396,17 @@ var init_PreferencesMenu = __esm({
|
|
|
30380
30396
|
}
|
|
30381
30397
|
});
|
|
30382
30398
|
|
|
30383
|
-
// packages/experience-design-system-cli/src/setup/steps/prerequisites/deps.ts
|
|
30399
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/deps.ts
|
|
30384
30400
|
function emit(deps, kind, message) {
|
|
30385
30401
|
deps.emit({ kind, message });
|
|
30386
30402
|
}
|
|
30387
30403
|
var init_deps = __esm({
|
|
30388
|
-
"packages/experience-design-system-cli/src/setup/steps/prerequisites/deps.ts"() {
|
|
30404
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/deps.ts"() {
|
|
30389
30405
|
"use strict";
|
|
30390
30406
|
}
|
|
30391
30407
|
});
|
|
30392
30408
|
|
|
30393
|
-
// packages/experience-design-system-cli/src/setup/steps/prerequisites/build.ts
|
|
30409
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/build.ts
|
|
30394
30410
|
async function runBuildSetup(dependencies, repoRoot) {
|
|
30395
30411
|
emit(dependencies, "info", "Running pnpm install...");
|
|
30396
30412
|
const install = await installDependencies(repoRoot, dependencies);
|
|
@@ -30409,14 +30425,14 @@ async function runBuildSetup(dependencies, repoRoot) {
|
|
|
30409
30425
|
return { passed: true };
|
|
30410
30426
|
}
|
|
30411
30427
|
var init_build = __esm({
|
|
30412
|
-
"packages/experience-design-system-cli/src/setup/steps/prerequisites/build.ts"() {
|
|
30428
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/build.ts"() {
|
|
30413
30429
|
"use strict";
|
|
30414
30430
|
init_checks();
|
|
30415
30431
|
init_deps();
|
|
30416
30432
|
}
|
|
30417
30433
|
});
|
|
30418
30434
|
|
|
30419
|
-
// packages/experience-design-system-cli/src/setup/steps/prerequisites/node.ts
|
|
30435
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/node.ts
|
|
30420
30436
|
async function runNodeSetup(dependencies) {
|
|
30421
30437
|
const check = checkNodeVersion(dependencies.nodeVersion);
|
|
30422
30438
|
if (check.passed) {
|
|
@@ -30513,7 +30529,7 @@ async function runNodeSetup(dependencies) {
|
|
|
30513
30529
|
return { passed: false };
|
|
30514
30530
|
}
|
|
30515
30531
|
var init_node = __esm({
|
|
30516
|
-
"packages/experience-design-system-cli/src/setup/steps/prerequisites/node.ts"() {
|
|
30532
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/node.ts"() {
|
|
30517
30533
|
"use strict";
|
|
30518
30534
|
init_checks();
|
|
30519
30535
|
init_shell();
|
|
@@ -30521,7 +30537,7 @@ var init_node = __esm({
|
|
|
30521
30537
|
}
|
|
30522
30538
|
});
|
|
30523
30539
|
|
|
30524
|
-
// packages/experience-design-system-cli/src/setup/steps/prerequisites/pnpm.ts
|
|
30540
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/pnpm.ts
|
|
30525
30541
|
async function runPnpmSetup(dependencies, repoRoot) {
|
|
30526
30542
|
const detected = await checkPnpm(repoRoot, dependencies);
|
|
30527
30543
|
if (detected.status === "ok") {
|
|
@@ -30561,14 +30577,14 @@ async function runPnpmSetup(dependencies, repoRoot) {
|
|
|
30561
30577
|
return { passed: true };
|
|
30562
30578
|
}
|
|
30563
30579
|
var init_pnpm = __esm({
|
|
30564
|
-
"packages/experience-design-system-cli/src/setup/steps/prerequisites/pnpm.ts"() {
|
|
30580
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/pnpm.ts"() {
|
|
30565
30581
|
"use strict";
|
|
30566
30582
|
init_checks();
|
|
30567
30583
|
init_deps();
|
|
30568
30584
|
}
|
|
30569
30585
|
});
|
|
30570
30586
|
|
|
30571
|
-
// packages/experience-design-system-cli/src/setup/steps/prerequisites/index.ts
|
|
30587
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/index.ts
|
|
30572
30588
|
async function runPrerequisitesSetup(dependencies, repoRoot, options = {}) {
|
|
30573
30589
|
const node = await runNodeSetup(dependencies);
|
|
30574
30590
|
if (!node.passed) return { node };
|
|
@@ -30578,7 +30594,7 @@ async function runPrerequisitesSetup(dependencies, repoRoot, options = {}) {
|
|
|
30578
30594
|
return { node, pnpm, build };
|
|
30579
30595
|
}
|
|
30580
30596
|
var init_prerequisites = __esm({
|
|
30581
|
-
"packages/experience-design-system-cli/src/setup/steps/prerequisites/index.ts"() {
|
|
30597
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/index.ts"() {
|
|
30582
30598
|
"use strict";
|
|
30583
30599
|
init_build();
|
|
30584
30600
|
init_node();
|
|
@@ -30586,7 +30602,7 @@ var init_prerequisites = __esm({
|
|
|
30586
30602
|
}
|
|
30587
30603
|
});
|
|
30588
30604
|
|
|
30589
|
-
// packages/experience-design-system-cli/src/setup/steps/prerequisites/PrerequisitesScreen.tsx
|
|
30605
|
+
// packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/PrerequisitesScreen.tsx
|
|
30590
30606
|
import { useEffect as useEffect20, useRef as useRef13, useState as useState29 } from "react";
|
|
30591
30607
|
import { Box as Box50, Text as Text54 } from "ink";
|
|
30592
30608
|
import { ConfirmInput as ConfirmInput2 } from "@inkjs/ui";
|
|
@@ -30666,7 +30682,7 @@ function PrerequisitesScreen({
|
|
|
30666
30682
|
);
|
|
30667
30683
|
}
|
|
30668
30684
|
var init_PrerequisitesScreen = __esm({
|
|
30669
|
-
"packages/experience-design-system-cli/src/setup/steps/prerequisites/PrerequisitesScreen.tsx"() {
|
|
30685
|
+
"packages/experience-design-system-cli-legacy/src/setup/steps/prerequisites/PrerequisitesScreen.tsx"() {
|
|
30670
30686
|
"use strict";
|
|
30671
30687
|
init_theme();
|
|
30672
30688
|
init_shell();
|
|
@@ -30675,7 +30691,7 @@ var init_PrerequisitesScreen = __esm({
|
|
|
30675
30691
|
}
|
|
30676
30692
|
});
|
|
30677
30693
|
|
|
30678
|
-
// packages/experience-design-system-cli/src/setup/SetupScreen.tsx
|
|
30694
|
+
// packages/experience-design-system-cli-legacy/src/setup/SetupScreen.tsx
|
|
30679
30695
|
var SetupScreen_exports = {};
|
|
30680
30696
|
__export(SetupScreen_exports, {
|
|
30681
30697
|
SetupScreen: () => SetupScreen,
|
|
@@ -30816,7 +30832,7 @@ function SetupSummary({ outcome, notice }) {
|
|
|
30816
30832
|
] });
|
|
30817
30833
|
}
|
|
30818
30834
|
var init_SetupScreen = __esm({
|
|
30819
|
-
"packages/experience-design-system-cli/src/setup/SetupScreen.tsx"() {
|
|
30835
|
+
"packages/experience-design-system-cli-legacy/src/setup/SetupScreen.tsx"() {
|
|
30820
30836
|
"use strict";
|
|
30821
30837
|
init_theme();
|
|
30822
30838
|
init_SetupStepper();
|
|
@@ -30828,7 +30844,7 @@ var init_SetupScreen = __esm({
|
|
|
30828
30844
|
}
|
|
30829
30845
|
});
|
|
30830
30846
|
|
|
30831
|
-
// packages/experience-design-system-cli/src/setup/command.ts
|
|
30847
|
+
// packages/experience-design-system-cli-legacy/src/setup/command.ts
|
|
30832
30848
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
30833
30849
|
import { join as join23 } from "node:path";
|
|
30834
30850
|
function getCliVersion() {
|
|
@@ -30876,7 +30892,7 @@ function registerSetupCommand(program) {
|
|
|
30876
30892
|
}
|
|
30877
30893
|
var SETUP_REQUIRES_TTY_MESSAGE;
|
|
30878
30894
|
var init_command8 = __esm({
|
|
30879
|
-
"packages/experience-design-system-cli/src/setup/command.ts"() {
|
|
30895
|
+
"packages/experience-design-system-cli-legacy/src/setup/command.ts"() {
|
|
30880
30896
|
"use strict";
|
|
30881
30897
|
init_cli_path();
|
|
30882
30898
|
init_terminal_capabilities();
|
|
@@ -30884,7 +30900,7 @@ var init_command8 = __esm({
|
|
|
30884
30900
|
}
|
|
30885
30901
|
});
|
|
30886
30902
|
|
|
30887
|
-
// packages/experience-design-system-cli/src/analyze/composition/merge-edges.ts
|
|
30903
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/merge-edges.ts
|
|
30888
30904
|
function rank(p) {
|
|
30889
30905
|
if (p === "typed-slot") return 1;
|
|
30890
30906
|
if (p === "structural") return 2;
|
|
@@ -30921,12 +30937,12 @@ function mergeEdges(all) {
|
|
|
30921
30937
|
return { edges: [...byKey.values()], conflicts };
|
|
30922
30938
|
}
|
|
30923
30939
|
var init_merge_edges = __esm({
|
|
30924
|
-
"packages/experience-design-system-cli/src/analyze/composition/merge-edges.ts"() {
|
|
30940
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/merge-edges.ts"() {
|
|
30925
30941
|
"use strict";
|
|
30926
30942
|
}
|
|
30927
30943
|
});
|
|
30928
30944
|
|
|
30929
|
-
// packages/experience-design-system-cli/src/analyze/composition/parse-map-edges.ts
|
|
30945
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/parse-map-edges.ts
|
|
30930
30946
|
function parseMapEdges(raw, opts) {
|
|
30931
30947
|
const edges = [];
|
|
30932
30948
|
const warnings = [];
|
|
@@ -30979,13 +30995,13 @@ function parseMapEdges(raw, opts) {
|
|
|
30979
30995
|
}
|
|
30980
30996
|
var VALID_MAP_TOOL_NAMES;
|
|
30981
30997
|
var init_parse_map_edges = __esm({
|
|
30982
|
-
"packages/experience-design-system-cli/src/analyze/composition/parse-map-edges.ts"() {
|
|
30998
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/parse-map-edges.ts"() {
|
|
30983
30999
|
"use strict";
|
|
30984
31000
|
VALID_MAP_TOOL_NAMES = /* @__PURE__ */ new Set(["map_edge"]);
|
|
30985
31001
|
}
|
|
30986
31002
|
});
|
|
30987
31003
|
|
|
30988
|
-
// packages/experience-design-system-cli/src/analyze/composition/apply-mapping.ts
|
|
31004
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/apply-mapping.ts
|
|
30989
31005
|
function applyMapping(components, edges) {
|
|
30990
31006
|
const warnings = [];
|
|
30991
31007
|
const names = new Set(components.map((c2) => c2.name));
|
|
@@ -31039,12 +31055,12 @@ function applyMapping(components, edges) {
|
|
|
31039
31055
|
return { components: cloned, warnings };
|
|
31040
31056
|
}
|
|
31041
31057
|
var init_apply_mapping = __esm({
|
|
31042
|
-
"packages/experience-design-system-cli/src/analyze/composition/apply-mapping.ts"() {
|
|
31058
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/apply-mapping.ts"() {
|
|
31043
31059
|
"use strict";
|
|
31044
31060
|
}
|
|
31045
31061
|
});
|
|
31046
31062
|
|
|
31047
|
-
// packages/experience-design-system-cli/src/analyze/composition/prompt-loader.ts
|
|
31063
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/prompt-loader.ts
|
|
31048
31064
|
import { existsSync as existsSync7, readFileSync as readFileSync9 } from "node:fs";
|
|
31049
31065
|
import { dirname as dirname11, join as join24, resolve as resolve18 } from "node:path";
|
|
31050
31066
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -31072,12 +31088,12 @@ function loadPrompt(fileName) {
|
|
|
31072
31088
|
}
|
|
31073
31089
|
}
|
|
31074
31090
|
var init_prompt_loader = __esm({
|
|
31075
|
-
"packages/experience-design-system-cli/src/analyze/composition/prompt-loader.ts"() {
|
|
31091
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/prompt-loader.ts"() {
|
|
31076
31092
|
"use strict";
|
|
31077
31093
|
}
|
|
31078
31094
|
});
|
|
31079
31095
|
|
|
31080
|
-
// packages/experience-design-system-cli/src/analyze/composition/resolve-mapping.ts
|
|
31096
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/resolve-mapping.ts
|
|
31081
31097
|
async function resolveMapping(input) {
|
|
31082
31098
|
const componentNames = new Set(input.components.map((c2) => c2.name));
|
|
31083
31099
|
const collected = [];
|
|
@@ -31141,7 +31157,7 @@ ${f.content}`).join("\n\n");
|
|
|
31141
31157
|
].join("\n");
|
|
31142
31158
|
}
|
|
31143
31159
|
var init_resolve_mapping = __esm({
|
|
31144
|
-
"packages/experience-design-system-cli/src/analyze/composition/resolve-mapping.ts"() {
|
|
31160
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/resolve-mapping.ts"() {
|
|
31145
31161
|
"use strict";
|
|
31146
31162
|
init_merge_edges();
|
|
31147
31163
|
init_parse_map_edges();
|
|
@@ -31150,19 +31166,19 @@ var init_resolve_mapping = __esm({
|
|
|
31150
31166
|
}
|
|
31151
31167
|
});
|
|
31152
31168
|
|
|
31153
|
-
// packages/experience-design-system-cli/src/analyze/composition/resolve-mapping-cli.ts
|
|
31169
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/resolve-mapping-cli.ts
|
|
31154
31170
|
function resolveCompositionSources(opts) {
|
|
31155
31171
|
return {
|
|
31156
31172
|
forceAgent: opts.compositionRefresh === true || opts.noCache === true
|
|
31157
31173
|
};
|
|
31158
31174
|
}
|
|
31159
31175
|
var init_resolve_mapping_cli = __esm({
|
|
31160
|
-
"packages/experience-design-system-cli/src/analyze/composition/resolve-mapping-cli.ts"() {
|
|
31176
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/resolve-mapping-cli.ts"() {
|
|
31161
31177
|
"use strict";
|
|
31162
31178
|
}
|
|
31163
31179
|
});
|
|
31164
31180
|
|
|
31165
|
-
// packages/experience-design-system-cli/src/analyze/composition/candidate-files.ts
|
|
31181
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/candidate-files.ts
|
|
31166
31182
|
function matchReason(file) {
|
|
31167
31183
|
const segments = file.path.split("/").filter((s) => s !== "");
|
|
31168
31184
|
for (const pattern of CANDIDATE_NAME_PATTERNS) {
|
|
@@ -31208,7 +31224,7 @@ function tokenCost(file) {
|
|
|
31208
31224
|
}
|
|
31209
31225
|
var CANDIDATE_NAME_PATTERNS, CANDIDATE_CONTENT_MARKERS, PROMPT_CANDIDATE_TOKEN_BUDGET, CHARS_PER_TOKEN;
|
|
31210
31226
|
var init_candidate_files = __esm({
|
|
31211
|
-
"packages/experience-design-system-cli/src/analyze/composition/candidate-files.ts"() {
|
|
31227
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/candidate-files.ts"() {
|
|
31212
31228
|
"use strict";
|
|
31213
31229
|
CANDIDATE_NAME_PATTERNS = [/mapping/i, /meta/i, /registry/i, /schema/i, /composition/i];
|
|
31214
31230
|
CANDIDATE_CONTENT_MARKERS = [
|
|
@@ -31224,20 +31240,20 @@ var init_candidate_files = __esm({
|
|
|
31224
31240
|
}
|
|
31225
31241
|
});
|
|
31226
31242
|
|
|
31227
|
-
// packages/experience-design-system-cli/src/analyze/composition/composition-cache-key.ts
|
|
31243
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/composition-cache-key.ts
|
|
31228
31244
|
function buildCompositionInputHash(input) {
|
|
31229
31245
|
const fileDigest = input.files.map((f) => `${f.path} ${hashContent(f.content)}`).sort().join("");
|
|
31230
31246
|
return hashContent(`agent:${input.agent}
|
|
31231
31247
|
${fileDigest}`);
|
|
31232
31248
|
}
|
|
31233
31249
|
var init_composition_cache_key = __esm({
|
|
31234
|
-
"packages/experience-design-system-cli/src/analyze/composition/composition-cache-key.ts"() {
|
|
31250
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/composition-cache-key.ts"() {
|
|
31235
31251
|
"use strict";
|
|
31236
31252
|
init_cache_keys();
|
|
31237
31253
|
}
|
|
31238
31254
|
});
|
|
31239
31255
|
|
|
31240
|
-
// packages/experience-design-system-cli/src/analyze/composition/manifest-doc-evidence.ts
|
|
31256
|
+
// packages/experience-design-system-cli-legacy/src/analyze/composition/manifest-doc-evidence.ts
|
|
31241
31257
|
import { dirname as dirname12 } from "node:path";
|
|
31242
31258
|
function kebabToPascal2(name) {
|
|
31243
31259
|
return name.split("-").filter(Boolean).map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1)).join("");
|
|
@@ -31312,14 +31328,14 @@ function collectManifestDocEdges(files, components, componentNames) {
|
|
|
31312
31328
|
}
|
|
31313
31329
|
var DOC_COMPOSITION_KEYWORDS, BOLD_BACKTICK;
|
|
31314
31330
|
var init_manifest_doc_evidence = __esm({
|
|
31315
|
-
"packages/experience-design-system-cli/src/analyze/composition/manifest-doc-evidence.ts"() {
|
|
31331
|
+
"packages/experience-design-system-cli-legacy/src/analyze/composition/manifest-doc-evidence.ts"() {
|
|
31316
31332
|
"use strict";
|
|
31317
31333
|
DOC_COMPOSITION_KEYWORDS = ["slot", "child", "children", "compose", "nested", "contains", "wraps"];
|
|
31318
31334
|
BOLD_BACKTICK = /\*\*`([^`]+)`\*\*/g;
|
|
31319
31335
|
}
|
|
31320
31336
|
});
|
|
31321
31337
|
|
|
31322
|
-
// packages/experience-design-system-cli/src/analyze/extract-command.ts
|
|
31338
|
+
// packages/experience-design-system-cli-legacy/src/analyze/extract-command.ts
|
|
31323
31339
|
import { mkdir as mkdir6, readdir as readdir3, readFile as readFile18, stat as stat6 } from "node:fs/promises";
|
|
31324
31340
|
import { isAbsolute as isAbsolute2, join as join25, relative as relative2, resolve as resolve19 } from "node:path";
|
|
31325
31341
|
function resolveExtractNoCache(opts) {
|
|
@@ -31740,7 +31756,7 @@ function registerInternalExtractCommand(program) {
|
|
|
31740
31756
|
}
|
|
31741
31757
|
var SCANNED_FILE_EXTENSIONS, DENYLIST_GATED_EXTENSIONS, DENYLISTED_EXACT_FILE_NAMES, DENYLISTED_FILE_NAME_PATTERNS, IGNORED_DIRECTORY_NAMES, IGNORED_FILE_SUFFIXES;
|
|
31742
31758
|
var init_extract_command = __esm({
|
|
31743
|
-
"packages/experience-design-system-cli/src/analyze/extract-command.ts"() {
|
|
31759
|
+
"packages/experience-design-system-cli-legacy/src/analyze/extract-command.ts"() {
|
|
31744
31760
|
"use strict";
|
|
31745
31761
|
init_agent_model_options();
|
|
31746
31762
|
init_src3();
|
|
@@ -31810,7 +31826,7 @@ var init_extract_command = __esm({
|
|
|
31810
31826
|
}
|
|
31811
31827
|
});
|
|
31812
31828
|
|
|
31813
|
-
// packages/experience-design-system-cli/src/lib/debug-preamble.ts
|
|
31829
|
+
// packages/experience-design-system-cli-legacy/src/lib/debug-preamble.ts
|
|
31814
31830
|
async function beginCommand(command, opts) {
|
|
31815
31831
|
let configDebug;
|
|
31816
31832
|
try {
|
|
@@ -31831,7 +31847,7 @@ async function beginCommand(command, opts) {
|
|
|
31831
31847
|
}
|
|
31832
31848
|
var endBannerRegistered;
|
|
31833
31849
|
var init_debug_preamble = __esm({
|
|
31834
|
-
"packages/experience-design-system-cli/src/lib/debug-preamble.ts"() {
|
|
31850
|
+
"packages/experience-design-system-cli-legacy/src/lib/debug-preamble.ts"() {
|
|
31835
31851
|
"use strict";
|
|
31836
31852
|
init_debug_logger();
|
|
31837
31853
|
init_credentials_store();
|
|
@@ -31839,7 +31855,7 @@ var init_debug_preamble = __esm({
|
|
|
31839
31855
|
}
|
|
31840
31856
|
});
|
|
31841
31857
|
|
|
31842
|
-
// packages/experience-design-system-cli/src/program.ts
|
|
31858
|
+
// packages/experience-design-system-cli-legacy/src/program.ts
|
|
31843
31859
|
var program_exports = {};
|
|
31844
31860
|
__export(program_exports, {
|
|
31845
31861
|
createProgram: () => createProgram,
|
|
@@ -31876,13 +31892,6 @@ function resolveBedrockFromAncestors(actionCommand) {
|
|
|
31876
31892
|
}
|
|
31877
31893
|
return false;
|
|
31878
31894
|
}
|
|
31879
|
-
function registerImportV2Command(program) {
|
|
31880
|
-
program.command("importv2").description("Launch the v2 import TUI (experience-design-system-cli-v2)").helpOption(false).action(async () => {
|
|
31881
|
-
const { renderWithGoodbye: renderWithGoodbye2 } = await Promise.resolve().then(() => (init_render_with_goodbye(), render_with_goodbye_exports));
|
|
31882
|
-
const { runApp } = await import("@contentful/experience-design-system-cli-v2/app");
|
|
31883
|
-
await runApp((element) => renderWithGoodbye2(element));
|
|
31884
|
-
});
|
|
31885
|
-
}
|
|
31886
31895
|
function registerBuildCommand(program) {
|
|
31887
31896
|
program.command("build").description("Rebuild from source and re-link exo/experiences binaries to this build").helpOption(false).action(async () => {
|
|
31888
31897
|
const pkgRoot = resolve20(dirname13(fileURLToPath4(import.meta.url)), "..", "..");
|
|
@@ -31895,7 +31904,7 @@ function registerBuildCommand(program) {
|
|
|
31895
31904
|
});
|
|
31896
31905
|
}
|
|
31897
31906
|
function configureRootHelpOrder(program) {
|
|
31898
|
-
const order = ["build", "help", "import", "apply", "
|
|
31907
|
+
const order = ["build", "help", "import", "apply", "setup", "doctor"];
|
|
31899
31908
|
const rank2 = new Map(order.map((name, index) => [name, index]));
|
|
31900
31909
|
program.configureHelp({
|
|
31901
31910
|
visibleCommands(command) {
|
|
@@ -31918,7 +31927,6 @@ function createProgram() {
|
|
|
31918
31927
|
program.helpCommand("help [command]", "display help for command");
|
|
31919
31928
|
registerImportCommand(program);
|
|
31920
31929
|
registerApplyCommand(program);
|
|
31921
|
-
registerImportV2Command(program);
|
|
31922
31930
|
registerSetupCommand(program);
|
|
31923
31931
|
registerDoctorCommand(program);
|
|
31924
31932
|
configureRootHelpOrder(program);
|
|
@@ -31942,7 +31950,7 @@ function createProgram() {
|
|
|
31942
31950
|
}
|
|
31943
31951
|
var pkg3;
|
|
31944
31952
|
var init_program = __esm({
|
|
31945
|
-
"packages/experience-design-system-cli/src/program.ts"() {
|
|
31953
|
+
"packages/experience-design-system-cli-legacy/src/program.ts"() {
|
|
31946
31954
|
"use strict";
|
|
31947
31955
|
init_command();
|
|
31948
31956
|
init_command2();
|
|
@@ -31960,7 +31968,7 @@ var init_program = __esm({
|
|
|
31960
31968
|
}
|
|
31961
31969
|
});
|
|
31962
31970
|
|
|
31963
|
-
// packages/experience-design-system-cli/src/index.ts
|
|
31971
|
+
// packages/experience-design-system-cli-legacy/src/index.ts
|
|
31964
31972
|
init_credentials_store();
|
|
31965
31973
|
var { noColor } = await readExperiencesCredentials();
|
|
31966
31974
|
if (noColor && process.env["NO_COLOR"] === void 0) process.env["NO_COLOR"] = "1";
|