@contentful/experience-design-system-cli 2.38.1-dev-build-6d903339.0 → 2.38.1-dev-build-962dbe22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +2 -1
- package/dist/app.js +5778 -3809
- package/dist/index.js +13842 -12466
- package/dist/package.json +1 -1
- package/dist/src/commands/import-options.d.ts +0 -2
- package/dist/src/tui/debug-prune.d.ts +12 -0
- package/dist/src/tui/debug-store.d.ts +18 -1
- package/dist/src/tui/help/file-locations.d.ts +23 -0
- package/dist/src/tui/home/home.theme.d.ts +0 -8
- package/dist/src/tui/import/shared/gate-step/gate-step.d.ts +3 -1
- package/dist/src/tui/import/shared/index.d.ts +1 -0
- package/dist/src/tui/import/shared/overview-box/overview-box.d.ts +10 -0
- package/dist/src/tui/import/shared/running-step/logic.d.ts +0 -1
- package/dist/src/tui/import/shared/running-step/running-step.d.ts +3 -4
- package/dist/src/tui/import/steps/00-preflight/controls.d.ts +17 -0
- package/dist/src/tui/import/steps/00-preflight/logic.d.ts +45 -0
- package/dist/src/tui/import/steps/00-preflight/screen.d.ts +8 -0
- package/dist/src/tui/import/steps/01-welcome/controls.d.ts +4 -1
- package/dist/src/tui/import/steps/02-token-input/controls.d.ts +3 -0
- package/dist/src/tui/import/steps/03-path-validation/helpers/scan-files.d.ts +1 -9
- package/dist/src/tui/import/steps/03-path-validation/logic.d.ts +7 -5
- package/dist/src/tui/import/steps/03-path-validation/screen.d.ts +3 -1
- package/dist/src/tui/import/steps/04-credentials/logic.d.ts +6 -9
- package/dist/src/tui/import/steps/04-credentials/screen.d.ts +3 -1
- package/dist/src/tui/import/steps/06-extraction/logic.d.ts +1 -16
- package/dist/src/tui/import/steps/06-extraction/run-tokens-only.d.ts +31 -0
- package/dist/src/tui/import/steps/06-extraction/screen.d.ts +1 -3
- package/dist/src/tui/import/steps/06-extraction/types.d.ts +4 -5
- package/dist/src/tui/import/steps/06-extraction/use-tokens-only.d.ts +12 -0
- package/dist/src/tui/import/steps/07-scope-gate/cache-check.d.ts +0 -7
- package/dist/src/tui/import/steps/07-scope-gate/columns.d.ts +0 -2
- package/dist/src/tui/import/steps/07-scope-gate/graph/fuzzy-search.d.ts +0 -2
- package/dist/src/tui/import/steps/07-scope-gate/graph/lineage.d.ts +0 -22
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/ai-flag.d.ts +0 -1
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/GroupedSidebar.d.ts +1 -33
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/windowed-panel.d.ts +4 -0
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/lineage-layout.d.ts +0 -36
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/step-filters.d.ts +4 -0
- package/dist/src/tui/import/steps/07-scope-gate/use-scope-gate.d.ts +1 -0
- package/dist/src/tui/import/steps/08-generation/logic.d.ts +0 -4
- package/dist/src/tui/import/steps/08-generation/run.d.ts +0 -10
- package/dist/src/tui/import/steps/08-generation/screen.d.ts +1 -3
- package/dist/src/tui/import/steps/09-review/components/FieldEditor.d.ts +1 -18
- package/dist/src/tui/import/steps/09-review/components/ReviewDialogs.d.ts +0 -14
- package/dist/src/tui/import/steps/09-review/components/TokenReviewPanel.d.ts +0 -6
- package/dist/src/tui/import/steps/09-review/generate-review-step.d.ts +1 -22
- package/dist/src/tui/import/steps/09-review/helpers/cycle-panel-scroll.d.ts +0 -4
- package/dist/src/tui/import/steps/09-review/run-live-preview.d.ts +0 -3
- package/dist/src/tui/import/steps/09-review/use-finalize-preview.d.ts +1 -11
- package/dist/src/tui/import/steps/10-flow/flow/build-flow-start.d.ts +1 -0
- package/dist/src/tui/import/steps/10-flow/flow/controller.d.ts +14 -8
- package/dist/src/tui/import/steps/10-flow/flow/preview.d.ts +3 -15
- package/dist/src/tui/import/steps/10-flow/flow/push.d.ts +2 -0
- package/dist/src/tui/import/steps/10-flow/flow/save.d.ts +1 -10
- package/dist/src/tui/import/steps/10-flow/flow/screen.d.ts +0 -4
- package/dist/src/tui/import/steps/10-flow/flow/use-flow.d.ts +4 -1
- package/dist/src/tui/import/steps/10-flow/screens/DoneStep.d.ts +6 -1
- package/dist/src/tui/import/steps/10-flow/screens/PushingStep.d.ts +3 -3
- package/dist/src/tui/import/steps/10-flow/screens/WizardPreviewStep.d.ts +1 -9
- package/dist/src/tui/import/steps/10-flow/support/path-utils.d.ts +0 -5
- package/dist/src/tui/import/steps/10-flow/support/preview-diff.d.ts +2 -5
- package/dist/src/tui/import/steps/10-flow/support/produced.d.ts +15 -0
- package/dist/src/tui/import/steps/index.d.ts +1 -1
- package/dist/src/tui/import/steps/preview-validation-error/logic.d.ts +0 -3
- package/dist/src/tui/settings/{contentful-configuration/ContentfulConfigScreen.d.ts → configuration/ConfigurationScreen.d.ts} +1 -0
- package/dist/src/tui/settings/configuration/agents/AgentDetail.d.ts +15 -0
- package/dist/src/tui/settings/configuration/agents/AgentStatusBadge.d.ts +10 -0
- package/dist/src/tui/settings/configuration/agents/AgentsScreen.d.ts +11 -0
- package/dist/src/tui/settings/configuration/agents/agent-debug.d.ts +25 -0
- package/dist/src/tui/settings/configuration/agents/agent-status.d.ts +63 -0
- package/dist/src/tui/settings/configuration/agents/agent-store.d.ts +21 -0
- package/dist/src/tui/settings/configuration/agents/apply-binary-overrides.d.ts +13 -0
- package/dist/src/tui/settings/configuration/project/ProjectScreen.d.ts +5 -0
- package/dist/src/tui/settings/{contentful-configuration/config-store.d.ts → configuration/project/project-store.d.ts} +1 -0
- package/dist/src/tui/settings/debug-mode/debug-mode-store.d.ts +7 -1
- package/dist/src/tui/settings/debug-mode/screen.d.ts +4 -0
- package/dist/src/tui/settings/shared/debug-trail.d.ts +35 -0
- package/dist/src/tui/shared/components/ClearableTextInput.d.ts +6 -0
- package/dist/src/tui/shared/components/ControlHints.d.ts +9 -0
- package/dist/src/tui/shared/components/FieldForm.d.ts +71 -0
- package/dist/src/tui/shared/components/StepHeader.d.ts +26 -0
- package/dist/src/tui/theme.d.ts +21 -0
- package/package.json +3 -3
- package/dist/src/commands/forwarded.d.ts +0 -2
- package/dist/src/legacy/forwarded-import-args.d.ts +0 -1
- package/dist/src/legacy/legacy-cli-path.d.ts +0 -1
- package/dist/src/legacy/run-legacy.d.ts +0 -1
- package/dist/src/tui/control-hints.d.ts +0 -7
- package/dist/src/tui/import/steps/04-credentials/controls.d.ts +0 -21
- package/dist/src/tui/import/steps/05-token-reuse/logic.d.ts +0 -21
- package/dist/src/tui/import/steps/05-token-reuse/screen.d.ts +0 -10
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/components/LegendEntry.d.ts +0 -2
- package/dist/src/tui/import/steps/07-scope-gate/sidebar/theme.d.ts +0 -8
- package/dist/src/tui/import/steps/09-review/theme.d.ts +0 -9
- package/dist/src/tui/import/steps/10-flow/components/StepHeader.d.ts +0 -8
- package/dist/src/tui/import/steps/10-flow/theme.d.ts +0 -13
- package/dist/src/tui/upgrade/PageContainer.d.ts +0 -4
- package/legacy/bin/cli.js +0 -58
- package/legacy/dist/package.json +0 -76
- package/legacy/dist/src/analytics/apply.d.ts +0 -6
- package/legacy/dist/src/analytics/client.d.ts +0 -8
- package/legacy/dist/src/analytics/constants.d.ts +0 -4
- package/legacy/dist/src/analytics/exit.d.ts +0 -4
- package/legacy/dist/src/analytics/index.d.ts +0 -6
- package/legacy/dist/src/analytics/normalize.d.ts +0 -3
- package/legacy/dist/src/analytics/os.d.ts +0 -2
- package/legacy/dist/src/analytics/session.d.ts +0 -3
- package/legacy/dist/src/analytics/tracker.d.ts +0 -16
- package/legacy/dist/src/analytics/types.d.ts +0 -28
- package/legacy/dist/src/analyze/composite-closure.d.ts +0 -26
- package/legacy/dist/src/analyze/composition/apply-mapping.d.ts +0 -22
- package/legacy/dist/src/analyze/composition/candidate-files.d.ts +0 -34
- package/legacy/dist/src/analyze/composition/composition-cache-key.d.ts +0 -18
- package/legacy/dist/src/analyze/composition/interchange-schema.d.ts +0 -17
- package/legacy/dist/src/analyze/composition/manifest-doc-evidence.d.ts +0 -49
- package/legacy/dist/src/analyze/composition/merge-edges.d.ts +0 -19
- package/legacy/dist/src/analyze/composition/parse-map-edges.d.ts +0 -16
- package/legacy/dist/src/analyze/composition/prompt-loader.d.ts +0 -3
- package/legacy/dist/src/analyze/composition/resolve-mapping-cli.d.ts +0 -10
- package/legacy/dist/src/analyze/composition/resolve-mapping.d.ts +0 -59
- package/legacy/dist/src/analyze/cycle-detection.d.ts +0 -27
- package/legacy/dist/src/analyze/extract-command.d.ts +0 -7
- package/legacy/dist/src/analyze/fuzzy-search.d.ts +0 -3
- package/legacy/dist/src/analyze/issue-inheritance.d.ts +0 -8
- package/legacy/dist/src/analyze/lineage.d.ts +0 -29
- package/legacy/dist/src/analyze/search-neighborhood.d.ts +0 -3
- package/legacy/dist/src/analyze/select/command.d.ts +0 -27
- package/legacy/dist/src/analyze/select/parser.d.ts +0 -6
- package/legacy/dist/src/analyze/select/persistence.d.ts +0 -22
- package/legacy/dist/src/analyze/select/preview-annotations.d.ts +0 -26
- package/legacy/dist/src/analyze/select/tui/LegacySelectApp.d.ts +0 -8
- package/legacy/dist/src/analyze/select/tui/components/ComponentDetail.d.ts +0 -19
- package/legacy/dist/src/analyze/select/tui/components/ComponentRationalePanel.d.ts +0 -10
- package/legacy/dist/src/analyze/select/tui/components/FieldEditor.d.ts +0 -67
- package/legacy/dist/src/analyze/select/tui/components/FinalizeDialog.d.ts +0 -22
- package/legacy/dist/src/analyze/select/tui/components/GotoBanner.d.ts +0 -31
- package/legacy/dist/src/analyze/select/tui/components/GroupedSidebar.d.ts +0 -94
- package/legacy/dist/src/analyze/select/tui/components/HelpOverlay.d.ts +0 -21
- package/legacy/dist/src/analyze/select/tui/components/HighlightedLine.d.ts +0 -9
- package/legacy/dist/src/analyze/select/tui/components/JsonEditor.d.ts +0 -10
- package/legacy/dist/src/analyze/select/tui/components/JsonPanel.d.ts +0 -11
- package/legacy/dist/src/analyze/select/tui/components/PreviewSummaryBar.d.ts +0 -8
- package/legacy/dist/src/analyze/select/tui/components/QuitDialog.d.ts +0 -8
- package/legacy/dist/src/analyze/select/tui/components/RationaleLine.d.ts +0 -21
- package/legacy/dist/src/analyze/select/tui/components/RationalePanel.d.ts +0 -15
- package/legacy/dist/src/analyze/select/tui/components/ScrollablePanel.d.ts +0 -14
- package/legacy/dist/src/analyze/select/tui/components/Sidebar.d.ts +0 -29
- package/legacy/dist/src/analyze/select/tui/components/SourcePanel.d.ts +0 -11
- package/legacy/dist/src/analyze/select/tui/components/StatusBar.d.ts +0 -11
- package/legacy/dist/src/analyze/select/tui/components/TokenReviewPanel.d.ts +0 -30
- package/legacy/dist/src/analyze/select/tui/components/TopBar.d.ts +0 -10
- package/legacy/dist/src/analyze/select/tui/components/removed-components-text.d.ts +0 -7
- package/legacy/dist/src/analyze/select/tui/components/wrap-text.d.ts +0 -1
- package/legacy/dist/src/analyze/select/tui/hooks/list-scroll-input.d.ts +0 -13
- package/legacy/dist/src/analyze/select/tui/hooks/scroll-offset.d.ts +0 -30
- package/legacy/dist/src/analyze/select/tui/hooks/useImmediateInput.d.ts +0 -19
- package/legacy/dist/src/analyze/select/tui/hooks/useKeymap.d.ts +0 -24
- package/legacy/dist/src/analyze/select/tui/hooks/useSession.d.ts +0 -19
- package/legacy/dist/src/analyze/select/tui/hooks/useUndo.d.ts +0 -8
- package/legacy/dist/src/analyze/select/tui/theme.d.ts +0 -18
- package/legacy/dist/src/analyze/select/types.d.ts +0 -54
- package/legacy/dist/src/analyze/selection-cascade.d.ts +0 -3
- package/legacy/dist/src/analyze/slot-graph.d.ts +0 -11
- package/legacy/dist/src/apply/api-client.d.ts +0 -64
- package/legacy/dist/src/apply/command.d.ts +0 -43
- package/legacy/dist/src/apply/preview-utils.d.ts +0 -12
- package/legacy/dist/src/apply/tokens.d.ts +0 -1
- package/legacy/dist/src/apply/tui/ServerApplyView.d.ts +0 -34
- package/legacy/dist/src/apply/tui/ServerPreviewView.d.ts +0 -9
- package/legacy/dist/src/credentials-store.d.ts +0 -18
- package/legacy/dist/src/doctor/checks.d.ts +0 -5
- package/legacy/dist/src/doctor/command.d.ts +0 -2
- package/legacy/dist/src/doctor/report.d.ts +0 -7
- package/legacy/dist/src/generate/command.d.ts +0 -2
- package/legacy/dist/src/generate/tui/GenerateView.d.ts +0 -12
- package/legacy/dist/src/helpers/build-contentful-management-client.d.ts +0 -7
- package/legacy/dist/src/helpers/fetch-and-persist-existing-contentful-entities.d.ts +0 -29
- package/legacy/dist/src/helpers/fetch-existing-contentful-entities.d.ts +0 -11
- package/legacy/dist/src/helpers/find-nearly-matching-component.d.ts +0 -7
- package/legacy/dist/src/helpers/read-existing-contentful-entities-from-session.d.ts +0 -7
- package/legacy/dist/src/helpers/summarize-existing-contentful-entities.d.ts +0 -50
- package/legacy/dist/src/host-utils.d.ts +0 -3
- package/legacy/dist/src/index.d.ts +0 -1
- package/legacy/dist/src/index.js +0 -25001
- package/legacy/dist/src/lib/agent-definitions.d.ts +0 -14
- package/legacy/dist/src/lib/agent-model-options.d.ts +0 -15
- package/legacy/dist/src/lib/agent-output.d.ts +0 -5
- package/legacy/dist/src/lib/cli-errors.d.ts +0 -2
- package/legacy/dist/src/lib/cli-path.d.ts +0 -4
- package/legacy/dist/src/lib/command-options.d.ts +0 -3
- package/legacy/dist/src/lib/component-patch.d.ts +0 -12
- package/legacy/dist/src/lib/contentful-urls.d.ts +0 -15
- package/legacy/dist/src/lib/debug-logger.d.ts +0 -39
- package/legacy/dist/src/lib/debug-preamble.d.ts +0 -7
- package/legacy/dist/src/lib/error-parser.d.ts +0 -40
- package/legacy/dist/src/lib/path-exists.d.ts +0 -1
- package/legacy/dist/src/lib/prompt-overrides.d.ts +0 -38
- package/legacy/dist/src/lib/terminal-capabilities.d.ts +0 -29
- package/legacy/dist/src/lib/user-agent.d.ts +0 -7
- package/legacy/dist/src/map-tokens/apply.d.ts +0 -12
- package/legacy/dist/src/map-tokens/command.d.ts +0 -2
- package/legacy/dist/src/map-tokens/resolve-defaults.d.ts +0 -32
- package/legacy/dist/src/map-tokens/tui/MapTokensView.d.ts +0 -13
- package/legacy/dist/src/output/format.d.ts +0 -23
- package/legacy/dist/src/print/command.d.ts +0 -11
- package/legacy/dist/src/print/validate/tui/ValidateView.d.ts +0 -15
- package/legacy/dist/src/print/validate/validators/cdf-validator.d.ts +0 -2
- package/legacy/dist/src/print/validate/validators/dtcg-validator.d.ts +0 -2
- package/legacy/dist/src/print/validate/validators/format-errors.d.ts +0 -12
- package/legacy/dist/src/print/validate/validators/read-json-file.d.ts +0 -10
- package/legacy/dist/src/program.d.ts +0 -25
- package/legacy/dist/src/runs/fingerprint.d.ts +0 -36
- package/legacy/dist/src/runs/save-path-resolver.d.ts +0 -11
- package/legacy/dist/src/runs/store.d.ts +0 -65
- package/legacy/dist/src/session/cache-keys.d.ts +0 -22
- package/legacy/dist/src/session/core/cdf/cdf-mappers.d.ts +0 -3
- package/legacy/dist/src/session/core/components/derive-component-id.d.ts +0 -1
- package/legacy/dist/src/session/core/components/hash-component-shape.d.ts +0 -5
- package/legacy/dist/src/session/core/shared/index-rows-by-key.d.ts +0 -1
- package/legacy/dist/src/session/core/tokens/build-dtcg-groups.d.ts +0 -12
- package/legacy/dist/src/session/core/tokens/build-dtcg-tokens.d.ts +0 -3
- package/legacy/dist/src/session/core/tokens/hash-token-content.d.ts +0 -1
- package/legacy/dist/src/session/db.d.ts +0 -200
- package/legacy/dist/src/session/migration.d.ts +0 -2
- package/legacy/dist/src/session/repositories/sessions/read.d.ts +0 -11
- package/legacy/dist/src/session/repositories/sessions/write.d.ts +0 -3
- package/legacy/dist/src/session/repositories/shared/with-transaction.d.ts +0 -2
- package/legacy/dist/src/session/repositories/steps/read.d.ts +0 -2
- package/legacy/dist/src/session/repositories/steps/write.d.ts +0 -5
- package/legacy/dist/src/session/repositories/tokens/read.d.ts +0 -15
- package/legacy/dist/src/session/repositories/tokens/write.d.ts +0 -16
- package/legacy/dist/src/session/resolve-session-id.d.ts +0 -1
- package/legacy/dist/src/session/services/session-resolver.d.ts +0 -9
- package/legacy/dist/src/session/services/tokens/apply-tool-calls.d.ts +0 -8
- package/legacy/dist/src/session/services/tokens/replace-raw-prop-token-paths.d.ts +0 -3
- package/legacy/dist/src/session/services/tokens/replace-raw-token-name-paths.d.ts +0 -3
- package/legacy/dist/src/session/services/tokens/store-dtcg-tokens.d.ts +0 -3
- package/legacy/dist/src/session/session-id.d.ts +0 -1
- package/legacy/dist/src/session/source-excerpt.d.ts +0 -26
- package/legacy/dist/src/setup/SetupScreen.d.ts +0 -28
- package/legacy/dist/src/setup/SetupStepper.d.ts +0 -7
- package/legacy/dist/src/setup/command.d.ts +0 -3
- package/legacy/dist/src/setup/lib/checks.d.ts +0 -57
- package/legacy/dist/src/setup/lib/shell.d.ts +0 -12
- package/legacy/dist/src/setup/steps/CodingAgentScreen.d.ts +0 -20
- package/legacy/dist/src/setup/steps/ContentfulCredentialsScreen.d.ts +0 -11
- package/legacy/dist/src/setup/steps/StepLayout.d.ts +0 -20
- package/legacy/dist/src/setup/steps/preferences/AnalyticsScreen.d.ts +0 -5
- package/legacy/dist/src/setup/steps/preferences/BooleanInput.d.ts +0 -21
- package/legacy/dist/src/setup/steps/preferences/ColorPreferenceScreen.d.ts +0 -5
- package/legacy/dist/src/setup/steps/preferences/CustomPromptScreen.d.ts +0 -14
- package/legacy/dist/src/setup/steps/preferences/DebugLogsScreen.d.ts +0 -5
- package/legacy/dist/src/setup/steps/preferences/PreferencesMenu.d.ts +0 -26
- package/legacy/dist/src/setup/steps/prerequisites/PrerequisitesScreen.d.ts +0 -16
- package/legacy/dist/src/setup/steps/prerequisites/build.d.ts +0 -2
- package/legacy/dist/src/setup/steps/prerequisites/deps.d.ts +0 -33
- package/legacy/dist/src/setup/steps/prerequisites/index.d.ts +0 -4
- package/legacy/dist/src/setup/steps/prerequisites/node.d.ts +0 -2
- package/legacy/dist/src/setup/steps/prerequisites/pnpm.d.ts +0 -2
- package/legacy/dist/src/tui/CommandCompletionView.d.ts +0 -13
- package/legacy/dist/src/tui/render-with-goodbye.d.ts +0 -7
- package/legacy/dist/src/tui/use-terminal-size.d.ts +0 -6
- package/legacy/dist/src/tui/windowed-panel.d.ts +0 -37
- package/legacy/dist/src/types.d.ts +0 -2
- package/legacy/package.json +0 -85
- package/legacy/prompts/composition-edges.md +0 -11
- package/legacy/skills/generate-components.md +0 -612
- package/legacy/skills/generate-tokens.md +0 -194
- package/legacy/skills/map-tokens.md +0 -102
- package/legacy/skills/select-components.md +0 -235
- /package/dist/src/tui/{upgrade → home}/version.d.ts +0 -0
- /package/dist/src/tui/settings/{utils → shared}/v1-store.d.ts +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
|
|
2
|
-
/**
|
|
3
|
-
* True when a preview response describes zero server-side changes across
|
|
4
|
-
* every diff bucket (components, tokens, taxonomies). Used by:
|
|
5
|
-
* - `experiences apply` (CLI): short-circuit the confirm-and-push step.
|
|
6
|
-
* - `experiences import` wizard: block finalize when the resulting push
|
|
7
|
-
* would be a pure no-op.
|
|
8
|
-
*
|
|
9
|
-
* A push that produces ANY entry in ANY bucket — including a rejection that
|
|
10
|
-
* removes a server-side component — is NOT empty.
|
|
11
|
-
*/
|
|
12
|
-
export declare function isEmptyPreview(preview: ServerPreviewResponse): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { readTokensFromPath, hasBreakingChangesWithImpact, toCDFTokens } from './command.js';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ServerPreviewResponse, ApplyOperationResponse } from '@contentful/experience-design-system-types';
|
|
3
|
-
interface ServerPreviewConfirmProps {
|
|
4
|
-
preview: ServerPreviewResponse;
|
|
5
|
-
spaceId: string;
|
|
6
|
-
environmentId: string;
|
|
7
|
-
breakingWithImpact: boolean;
|
|
8
|
-
onConfirm: (acknowledge: boolean) => void;
|
|
9
|
-
onCancel: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function ServerPreviewConfirm({ preview, spaceId, environmentId, breakingWithImpact, onConfirm, onCancel, }: ServerPreviewConfirmProps): React.ReactElement;
|
|
12
|
-
interface ServerPreviewAppProps {
|
|
13
|
-
preview: ServerPreviewResponse;
|
|
14
|
-
spaceId: string;
|
|
15
|
-
environmentId: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function ServerPreviewApp({ preview, spaceId, environmentId }: ServerPreviewAppProps): React.ReactElement;
|
|
18
|
-
interface ServerApplyProgressProps {
|
|
19
|
-
spaceId: string;
|
|
20
|
-
environmentId: string;
|
|
21
|
-
status: 'applying' | 'polling' | 'error';
|
|
22
|
-
operationId?: string;
|
|
23
|
-
error?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function ServerApplyProgress({ spaceId, environmentId, status, operationId, error, }: ServerApplyProgressProps): React.ReactElement;
|
|
26
|
-
interface ServerApplyDoneProps {
|
|
27
|
-
operation: ApplyOperationResponse;
|
|
28
|
-
spaceId: string;
|
|
29
|
-
environmentId: string;
|
|
30
|
-
/** Configured API host (e.g. `api.contentful.com`). Used to derive the post-push webapp URL. */
|
|
31
|
-
host?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare function ServerApplyDone({ operation, spaceId, environmentId, host }: ServerApplyDoneProps): React.ReactElement;
|
|
34
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ServerPreviewResponse } from '@contentful/experience-design-system-types';
|
|
3
|
-
interface ServerPreviewViewProps {
|
|
4
|
-
preview: ServerPreviewResponse;
|
|
5
|
-
spaceId: string;
|
|
6
|
-
environmentId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function ServerPreviewView({ preview, spaceId, environmentId }: ServerPreviewViewProps): React.ReactElement;
|
|
9
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type ExperiencesCredentials = {
|
|
2
|
-
spaceId: string;
|
|
3
|
-
environmentId: string;
|
|
4
|
-
cmaToken: string;
|
|
5
|
-
host?: string;
|
|
6
|
-
agent?: string;
|
|
7
|
-
agentModel?: string;
|
|
8
|
-
/** Feature 8: persisted custom prompt path for `generate components`. */
|
|
9
|
-
generatePromptPath?: string;
|
|
10
|
-
/** Write JSONL trace of every command decision to ~/.contentful/experience-design-system-cli/debug/. */
|
|
11
|
-
debug?: boolean;
|
|
12
|
-
/** Print plain text with no color; an exported NO_COLOR still wins. */
|
|
13
|
-
noColor?: boolean;
|
|
14
|
-
analyticsDisabled?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare function readExperiencesCredentials(): Promise<ExperiencesCredentials>;
|
|
17
|
-
export declare function writeExperiencesCredentials(creds: ExperiencesCredentials): Promise<void>;
|
|
18
|
-
export declare function experiencesCredentialsPath(): string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function reportNode(): Promise<boolean>;
|
|
2
|
-
export declare function reportPnpm(pkgRoot: string): Promise<boolean>;
|
|
3
|
-
export declare function reportDependencies(pkgRoot: string): Promise<boolean>;
|
|
4
|
-
export declare function reportBuild(pkgRoot: string): Promise<boolean>;
|
|
5
|
-
export declare function reportAgent(): Promise<boolean>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function ok(msg: string): void;
|
|
2
|
-
export declare function fail(msg: string): void;
|
|
3
|
-
export declare function warn(msg: string): void;
|
|
4
|
-
export declare function info(msg: string): void;
|
|
5
|
-
export declare function section(title: string): void;
|
|
6
|
-
/** Echo the first `limit` lines of a failed command's stderr. */
|
|
7
|
-
export declare function infoStderr(stderr: string, limit: number): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface GenerateViewResult {
|
|
3
|
-
skill: string;
|
|
4
|
-
agent: string;
|
|
5
|
-
sessionId: string;
|
|
6
|
-
}
|
|
7
|
-
interface GenerateViewProps {
|
|
8
|
-
result: GenerateViewResult;
|
|
9
|
-
onExit: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function GenerateView({ result, onExit }: GenerateViewProps): React.ReactElement;
|
|
12
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PlainClientAPI } from 'contentful-management';
|
|
2
|
-
interface BuildContentfulManagementClientOptions {
|
|
3
|
-
cmaToken: string;
|
|
4
|
-
host?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function buildContentfulManagementClient(opts: BuildContentfulManagementClientOptions): PlainClientAPI;
|
|
7
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ExistingContentfulEntities } from './fetch-existing-contentful-entities.js';
|
|
2
|
-
export interface FetchAndPersistParams {
|
|
3
|
-
spaceId: string;
|
|
4
|
-
environmentId: string;
|
|
5
|
-
cmaToken: string;
|
|
6
|
-
host?: string;
|
|
7
|
-
outDir: string;
|
|
8
|
-
}
|
|
9
|
-
export interface FetchAndPersistSuccess {
|
|
10
|
-
ok: true;
|
|
11
|
-
path: string;
|
|
12
|
-
durationMs: number;
|
|
13
|
-
entities: ExistingContentfulEntities;
|
|
14
|
-
}
|
|
15
|
-
export interface FetchAndPersistFailure {
|
|
16
|
-
ok: false;
|
|
17
|
-
durationMs: number;
|
|
18
|
-
error: string;
|
|
19
|
-
}
|
|
20
|
-
export type FetchAndPersistResult = FetchAndPersistSuccess | FetchAndPersistFailure;
|
|
21
|
-
/**
|
|
22
|
-
* Build the Contentful management client, fetch the target space's Components
|
|
23
|
-
* and DesignTokens, and write the raw payload to `<outDir>/.existing-entities.json`.
|
|
24
|
-
*
|
|
25
|
-
* Never throws — a failure is reported via `ok: false`. Callers own the
|
|
26
|
-
* user-facing step/progress reporting. This helper only handles the mechanical
|
|
27
|
-
* fetch-then-write and returns a structured result.
|
|
28
|
-
*/
|
|
29
|
-
export declare function fetchAndPersistExistingContentfulEntities(params: FetchAndPersistParams): Promise<FetchAndPersistResult>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps, type DesignTokenProps, type PlainClientAPI } from 'contentful-management';
|
|
2
|
-
export interface ExistingContentfulEntities {
|
|
3
|
-
components: ComponentProps[];
|
|
4
|
-
tokens: DesignTokenProps[];
|
|
5
|
-
}
|
|
6
|
-
interface FetchExistingContentfulEntitiesParams {
|
|
7
|
-
spaceId: string;
|
|
8
|
-
environmentId: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function fetchExistingContentfulEntitiesFromContentful(client: PlainClientAPI, params: FetchExistingContentfulEntitiesParams): Promise<ExistingContentfulEntities>;
|
|
11
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'contentful-management';
|
|
2
|
-
/**
|
|
3
|
-
* Find the space component whose name is closest to the codebase component name,
|
|
4
|
-
* within a small edit budget. Handles case, punctuation, and plural differences
|
|
5
|
-
* so `Btn-Primary` matches `btnPrimary`, and `Cards` matches `Card`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function findNearlyMatchingComponent(components: ComponentProps[], codebaseName: string): ComponentProps | undefined;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ExistingContentfulEntities } from './fetch-existing-contentful-entities.js';
|
|
2
|
-
/**
|
|
3
|
-
* Read the session file written after
|
|
4
|
-
* `fetchExistingContentfulEntitiesFromContentful()`. Returns undefined on
|
|
5
|
-
* any failure — this is optional enrichment and must never block the step.
|
|
6
|
-
*/
|
|
7
|
-
export declare function readExistingContentfulEntitiesFromSession(path: string | undefined): Promise<ExistingContentfulEntities | undefined>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { ExistingContentfulEntities } from './fetch-existing-contentful-entities.js';
|
|
2
|
-
export interface SelectAgentSummary {
|
|
3
|
-
components: Array<{
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
}>;
|
|
8
|
-
tokens: {
|
|
9
|
-
count: number;
|
|
10
|
-
kinds: string[];
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface GenerateAgentSummary {
|
|
14
|
-
likelyMatch?: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
designProperties: Array<{
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
type: string;
|
|
21
|
-
}>;
|
|
22
|
-
contentProperties: Array<{
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
type: string;
|
|
26
|
-
}>;
|
|
27
|
-
slots: Array<{
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
}>;
|
|
31
|
-
};
|
|
32
|
-
otherComponents: Array<{
|
|
33
|
-
id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
}>;
|
|
36
|
-
tokens: {
|
|
37
|
-
count: number;
|
|
38
|
-
kinds: string[];
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export interface MapTokensSummary {
|
|
42
|
-
tokens: Array<{
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
type: string;
|
|
46
|
-
}>;
|
|
47
|
-
}
|
|
48
|
-
export declare function summarizeForSelectAgent(entities: ExistingContentfulEntities): SelectAgentSummary;
|
|
49
|
-
export declare function summarizeForGenerateAgent(entities: ExistingContentfulEntities, codebaseComponentName: string): GenerateAgentSummary;
|
|
50
|
-
export declare function summarizeForMapTokens(entities: ExistingContentfulEntities): MapTokensSummary;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|