@contentful/experience-design-system-cli 2.37.1-dev-build-12711902.0 → 2.37.1-dev-build-aa3ffe6f.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 -6
- package/dist/app.js +8553 -449
- package/dist/index.js +8968 -477
- package/dist/package.json +1 -1
- package/dist/src/commands/import-options.d.ts +0 -1
- package/dist/src/tui/import/steps/07-scope-gate/graph/cycle-detection.d.ts +5 -0
- package/dist/src/tui/import/steps/09-review/components/ComponentRationalePanel.d.ts +10 -0
- package/dist/src/tui/import/steps/09-review/components/FieldEditor.d.ts +67 -0
- package/dist/src/tui/import/steps/09-review/components/FinalizeDialog.d.ts +22 -0
- package/dist/src/tui/import/steps/09-review/components/HighlightedLine.d.ts +9 -0
- package/dist/src/tui/import/steps/09-review/components/JsonPanel.d.ts +11 -0
- package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/LivePreviewSummary.d.ts +2 -2
- package/dist/src/tui/import/steps/09-review/components/QuitDialog.d.ts +8 -0
- package/dist/src/tui/import/steps/09-review/components/RationaleLine.d.ts +21 -0
- package/dist/src/tui/import/steps/09-review/components/RationalePanel.d.ts +15 -0
- package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/ReviewComponentPanel.d.ts +3 -3
- package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/ReviewDetailsEditor.d.ts +3 -3
- package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/ReviewDialogs.d.ts +2 -2
- package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/components/ReviewStatus.d.ts +1 -1
- package/dist/src/tui/import/steps/09-review/components/ScrollablePanel.d.ts +14 -0
- package/dist/src/tui/import/steps/09-review/components/TokenReviewPanel.d.ts +30 -0
- package/dist/src/tui/import/steps/09-review/components/removed-components-text.d.ts +7 -0
- package/dist/src/tui/import/steps/09-review/components/wrap-text.d.ts +1 -0
- package/{legacy/dist/src/import/tui/steps/GenerateReviewStep.d.ts → dist/src/tui/import/steps/09-review/generate-review-step.d.ts} +1 -1
- package/{legacy/dist/src/import → dist/src/tui/import/steps/09-review/graph}/cycle-auto-reject.d.ts +1 -1
- package/{legacy/dist/src/analyze → dist/src/tui/import/steps/09-review/graph}/cycle-view.d.ts +2 -2
- package/dist/src/tui/import/steps/09-review/graph/issue-inheritance.d.ts +8 -0
- package/dist/src/tui/import/steps/09-review/graph/selection-cascade.d.ts +3 -0
- package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review/helpers}/enumerate-cycle-breaks.d.ts +1 -1
- package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review}/history.d.ts +1 -1
- package/dist/src/tui/import/steps/09-review/preview-annotations.d.ts +26 -0
- package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review}/review-details-panel.d.ts +2 -2
- package/{legacy/dist/src/import/tui/hooks → dist/src/tui/import/steps/09-review}/review-input.d.ts +2 -2
- package/dist/src/tui/import/steps/09-review/scroll-offset.d.ts +30 -0
- package/dist/src/tui/import/steps/09-review/session.d.ts +26 -0
- package/dist/src/tui/import/steps/09-review/theme.d.ts +9 -0
- package/dist/src/tui/import/steps/09-review/token-suggestions.d.ts +8 -0
- package/dist/src/tui/import/steps/09-review/types.d.ts +19 -0
- package/{legacy/dist/src/import/tui/hooks/useReviewEditor.d.ts → dist/src/tui/import/steps/09-review/use-review-editor.d.ts} +1 -3
- package/{legacy/dist/src/import/tui/hooks/useReviewPreview.d.ts → dist/src/tui/import/steps/09-review/use-review-preview.d.ts} +2 -2
- package/{legacy/dist/src/import/tui/hooks/useReviewSession.d.ts → dist/src/tui/import/steps/09-review/use-review-session.d.ts} +5 -35
- package/dist/src/tui/import/steps/10-flow/flow/build-flow-start.d.ts +21 -0
- package/dist/src/tui/import/steps/10-flow/flow/controller.d.ts +65 -0
- package/dist/src/tui/import/steps/10-flow/flow/preview.d.ts +56 -0
- package/dist/src/tui/import/steps/10-flow/flow/push.d.ts +43 -0
- package/dist/src/tui/import/steps/10-flow/flow/save.d.ts +50 -0
- package/dist/src/tui/import/steps/10-flow/flow/screen.d.ts +17 -0
- package/dist/src/tui/import/steps/10-flow/flow/types.d.ts +71 -0
- package/dist/src/tui/import/steps/10-flow/flow/use-flow.d.ts +9 -0
- package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/10-flow/screens}/PushingStep.d.ts +1 -1
- package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/10-flow/screens}/WizardPreviewStep.d.ts +0 -1
- package/dist/src/tui/import/steps/10-flow/support/contentful-urls.d.ts +15 -0
- package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/wizard-state-transitions.d.ts +0 -13
- package/dist/src/tui/import/steps/10-flow/theme.d.ts +13 -0
- package/dist/src/tui/import/steps/preview-validation-error/logic.d.ts +12 -0
- package/dist/src/tui/import/steps/preview-validation-error/screen.d.ts +11 -0
- package/legacy/dist/src/index.js +8572 -18583
- package/legacy/package.json +1 -1
- package/package.json +4 -4
- package/dist/src/tui/import/spawn-v1-import.d.ts +0 -36
- package/dist/src/tui/import/terminal-input.d.ts +0 -2
- package/legacy/dist/src/import/agent-model-resolve.d.ts +0 -27
- package/legacy/dist/src/import/command.d.ts +0 -2
- package/legacy/dist/src/import/composition-options.d.ts +0 -7
- package/legacy/dist/src/import/tui/WizardApp.d.ts +0 -24
- package/legacy/dist/src/import/tui/autocomplete.d.ts +0 -5
- package/legacy/dist/src/import/tui/components/CompactControlBar.d.ts +0 -4
- package/legacy/dist/src/import/tui/components/LegendEntry.d.ts +0 -2
- package/legacy/dist/src/import/tui/components/SearchMatchSummary.d.ts +0 -11
- package/legacy/dist/src/import/tui/group-collapse.d.ts +0 -2
- package/legacy/dist/src/import/tui/handoff.d.ts +0 -36
- package/legacy/dist/src/import/tui/hooks/sidebar-search-state.d.ts +0 -17
- package/legacy/dist/src/import/tui/hooks/useOverlayPanel.d.ts +0 -13
- package/legacy/dist/src/import/tui/lineage-layout.d.ts +0 -68
- package/legacy/dist/src/import/tui/sidebar-help.d.ts +0 -2
- package/legacy/dist/src/import/tui/sidebar-input.d.ts +0 -13
- package/legacy/dist/src/import/tui/sidebar-navigation.d.ts +0 -18
- package/legacy/dist/src/import/tui/step-filters.d.ts +0 -19
- package/legacy/dist/src/import/tui/steps/ErrorStep.d.ts +0 -10
- package/legacy/dist/src/import/tui/steps/GateStep.d.ts +0 -15
- package/legacy/dist/src/import/tui/steps/PreviewValidationErrorStep.d.ts +0 -11
- package/legacy/dist/src/import/tui/steps/RunningStep.d.ts +0 -32
- package/legacy/dist/src/import/tui/wizard-422-helpers.d.ts +0 -48
- /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review/helpers}/auto-reject-decision.d.ts +0 -0
- /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review/helpers}/breaking-change-format.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review/helpers}/cycle-panel-scroll.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/09-review/helpers}/sidebar-width.d.ts +0 -0
- /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/09-review}/review-json-panel.d.ts +0 -0
- /package/{legacy/dist/src/import/tui/runLivePreview.d.ts → dist/src/tui/import/steps/09-review/run-live-preview.d.ts} +0 -0
- /package/{legacy/dist/src/import/tui/useFinalizePreview.d.ts → dist/src/tui/import/steps/09-review/use-finalize-preview.d.ts} +0 -0
- /package/{legacy/dist/src/import/tui/useLivePreview.d.ts → dist/src/tui/import/steps/09-review/use-live-preview.d.ts} +0 -0
- /package/{legacy/dist/src/import/tui/hooks/useReviewSurfaceState.d.ts → dist/src/tui/import/steps/09-review/use-review-surface-state.d.ts} +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/components}/CustomPromptBanner.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow}/components/SpaceEnvironment.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow}/components/StepHeader.d.ts +0 -0
- /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/10-flow/screens}/DoneStep.d.ts +0 -0
- /package/{legacy/dist/src/runs/path-prompt.d.ts → dist/src/tui/import/steps/10-flow/screens/PathPrompt.d.ts} +0 -0
- /package/{legacy/dist/src/import → dist/src/tui/import/steps/10-flow/support}/path-utils.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/preview-confirmation-input.d.ts +0 -0
- /package/{legacy/dist/src/import/tui/steps → dist/src/tui/import/steps/10-flow/support}/preview-diff.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/push-progress.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/run-print-files-helpers.d.ts +0 -0
- /package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/run-teaser.d.ts +0 -0
- /package/{legacy/dist/src/tui → dist/src/tui/import/steps/10-flow/support}/use-blinking-cursor.d.ts +0 -0
- /package/{legacy/dist/src/tui → dist/src/tui/import/steps/10-flow/support}/use-timed-spinner.d.ts +0 -0
package/legacy/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.37.1-dev-build-
|
|
3
|
+
"version": "2.37.1-dev-build-aa3ffe6f.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-
|
|
49
|
-
"@contentful/experience-design-system-
|
|
50
|
-
"@contentful/experience-design-system-
|
|
48
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-aa3ffe6f.0",
|
|
49
|
+
"@contentful/experience-design-system-generation": "2.37.1-dev-build-aa3ffe6f.0",
|
|
50
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-aa3ffe6f.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type ImportOptions } from '../../commands/import-options.js';
|
|
2
|
-
import { type ImportHandoff } from '@contentful/experience-design-system-types/handoff';
|
|
3
|
-
interface StepResult {
|
|
4
|
-
step: string;
|
|
5
|
-
status: 'complete' | 'failed' | 'skipped';
|
|
6
|
-
durationMs?: number;
|
|
7
|
-
reason?: string;
|
|
8
|
-
detail?: Record<string, unknown>;
|
|
9
|
-
error?: string;
|
|
10
|
-
}
|
|
11
|
-
interface PipelineResult {
|
|
12
|
-
session: string;
|
|
13
|
-
project: string;
|
|
14
|
-
steps: StepResult[];
|
|
15
|
-
cycleError?: {
|
|
16
|
-
report: string[];
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface SpawnV1ImportOptions extends Partial<ImportOptions> {
|
|
20
|
-
projectPath?: string;
|
|
21
|
-
tokens?: string;
|
|
22
|
-
filePaths?: string[];
|
|
23
|
-
/** What the CLI already settled and did; the legacy wizard starts from it. */
|
|
24
|
-
handoff?: ImportHandoff;
|
|
25
|
-
onProgress?: (line: string) => void;
|
|
26
|
-
}
|
|
27
|
-
export interface SpawnV1ImportResult {
|
|
28
|
-
exitCode: number;
|
|
29
|
-
result?: PipelineResult;
|
|
30
|
-
stdout: string;
|
|
31
|
-
stderr: string;
|
|
32
|
-
}
|
|
33
|
-
export declare function buildArgs(options: SpawnV1ImportOptions): string[];
|
|
34
|
-
export declare function buildEnv(options: SpawnV1ImportOptions, base?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
35
|
-
export declare function spawnV1Import(options?: SpawnV1ImportOptions): Promise<SpawnV1ImportResult>;
|
|
36
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolution chain for the combined `--agent` override on `experiences import`.
|
|
3
|
-
*
|
|
4
|
-
* The wizard path previously hard-defaulted `--agent` to `'claude'` at the
|
|
5
|
-
* commander layer, which (a) shadowed the stored `credentials.json` value when
|
|
6
|
-
* the user passed no flag, and (b) made it impossible to distinguish "user
|
|
7
|
-
* explicitly passed --agent claude" from "user passed nothing". The combined
|
|
8
|
-
* flag accepts either `agent:model` or `agent model`.
|
|
9
|
-
*
|
|
10
|
-
* These helpers produce the resolved values to feed into `WizardApp` /
|
|
11
|
-
* the import wizard:
|
|
12
|
-
*
|
|
13
|
-
* 1. CLI flag wins when provided.
|
|
14
|
-
* 2. Otherwise, the value persisted in `credentials.json` (written by
|
|
15
|
-
* `experiences setup`) is used.
|
|
16
|
-
* 3. Otherwise, the built-in default (currently `'claude'`) is used for
|
|
17
|
-
* the agent. Model has no default — agents pick a small/fast model
|
|
18
|
-
* themselves when no model is included in `--agent`.
|
|
19
|
-
*/
|
|
20
|
-
/** Built-in fallback agent when neither a flag nor a stored preference is set. */
|
|
21
|
-
export declare const DEFAULT_AGENT = "claude";
|
|
22
|
-
export declare function parseAgentModel(value: string | undefined): {
|
|
23
|
-
agent?: string;
|
|
24
|
-
model?: string;
|
|
25
|
-
};
|
|
26
|
-
export declare function resolveAgent(flagValue: string | undefined, storedValue: string | undefined): string;
|
|
27
|
-
export declare function resolveModel(flagValue: string | undefined, storedValue: string | undefined): string | undefined;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type CompositionOptionInput = {
|
|
2
|
-
prompt?: string[];
|
|
3
|
-
};
|
|
4
|
-
export type CompositionForwardingOptions = {
|
|
5
|
-
promptOverrides?: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare function buildCompositionForwardingOptions(options: CompositionOptionInput): CompositionForwardingOptions;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CDFDocument, CDFComponentEntry, DTCGTokenEntry } from '@contentful/experience-design-system-types';
|
|
3
|
-
export declare function buildSavedCDF(components: Array<{
|
|
4
|
-
key: string;
|
|
5
|
-
entry: CDFComponentEntry;
|
|
6
|
-
}>, tokens: DTCGTokenEntry[], opts?: {
|
|
7
|
-
deleteAll?: boolean;
|
|
8
|
-
}): CDFDocument;
|
|
9
|
-
export declare function parsePrintTokensCount(stdout: string): number;
|
|
10
|
-
export type WizardAppProps = {
|
|
11
|
-
initialSpaceId?: string;
|
|
12
|
-
initialEnvironmentId?: string;
|
|
13
|
-
initialCmaToken?: string;
|
|
14
|
-
initialHost?: string;
|
|
15
|
-
initialAgent?: string;
|
|
16
|
-
initialModel?: string;
|
|
17
|
-
bedrock?: boolean;
|
|
18
|
-
initialProjectPath?: string;
|
|
19
|
-
host?: string;
|
|
20
|
-
livePreview?: boolean;
|
|
21
|
-
generatePromptPath?: string;
|
|
22
|
-
initialRawTokensPath?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare function WizardApp({ initialSpaceId, initialEnvironmentId, initialCmaToken, initialHost, initialAgent, initialModel, bedrock, initialProjectPath, host, livePreview, generatePromptPath, initialRawTokensPath, }?: WizardAppProps): React.ReactElement;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type SearchMatchSummaryProps = {
|
|
3
|
-
open: boolean;
|
|
4
|
-
query: string;
|
|
5
|
-
matches: number;
|
|
6
|
-
total: number;
|
|
7
|
-
autocompleteCandidates: string[];
|
|
8
|
-
hidden?: boolean;
|
|
9
|
-
marginTop?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare function SearchMatchSummary({ open, query, matches, total, autocompleteCandidates, hidden, marginTop, }: SearchMatchSummaryProps): React.ReactElement | null;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type ImportHandoff } from '@contentful/experience-design-system-types/handoff';
|
|
2
|
-
/** The wizard state the early stages produce. Every field is one the stage used to write. */
|
|
3
|
-
export interface HandoffState {
|
|
4
|
-
credentialsSkipped: boolean;
|
|
5
|
-
tokensPath?: string;
|
|
6
|
-
tokenSessionId?: string | null;
|
|
7
|
-
tokenCount?: number;
|
|
8
|
-
tokenGenerationStatus?: 'complete';
|
|
9
|
-
outDir?: string;
|
|
10
|
-
extractSessionId?: string;
|
|
11
|
-
compositionPhase?: 'done' | 'cache-hit';
|
|
12
|
-
selectionAgentStatus?: 'complete';
|
|
13
|
-
existingEntitiesStatus?: 'idle' | 'complete' | 'failed';
|
|
14
|
-
existingEntitiesPath?: string | null;
|
|
15
|
-
acceptedCount?: number;
|
|
16
|
-
autoRejectedCount?: number;
|
|
17
|
-
generateSessionId?: string;
|
|
18
|
-
generatedCount?: number;
|
|
19
|
-
mapTokensEligible?: boolean;
|
|
20
|
-
mapTokensStatus?: 'complete';
|
|
21
|
-
}
|
|
22
|
-
/** Where the wizard goes first: the review screen with the generated definitions, or straight to saving and pushing. */
|
|
23
|
-
export type StartRoute = 'review' | 'push';
|
|
24
|
-
export declare function routeFromHandoff(handoff: ImportHandoff): StartRoute | null;
|
|
25
|
-
export declare function stateFromHandoff(handoff: ImportHandoff): HandoffState;
|
|
26
|
-
export type StartFromHandoff = {
|
|
27
|
-
ok: true;
|
|
28
|
-
handoff: ImportHandoff;
|
|
29
|
-
state: HandoffState;
|
|
30
|
-
route: StartRoute | null;
|
|
31
|
-
} | {
|
|
32
|
-
ok: false;
|
|
33
|
-
error: string;
|
|
34
|
-
};
|
|
35
|
-
/** Reads the handoff the CLI passed. A missing or broken one is an error to show, never a guess at a start. */
|
|
36
|
-
export declare function readHandoff(env?: NodeJS.ProcessEnv): StartFromHandoff;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { FilterCategory } from '../step-filters.js';
|
|
2
|
-
export declare function useSidebarSearchState(): {
|
|
3
|
-
searchOpen: boolean;
|
|
4
|
-
setSearchOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
|
-
searchQuery: string;
|
|
6
|
-
setSearchQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
7
|
-
autocompleteCandidates: string[];
|
|
8
|
-
setAutocompleteCandidates: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
9
|
-
jumpFilterTarget: string | null;
|
|
10
|
-
setJumpFilterTarget: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
11
|
-
columnOneView: "flat" | "grouped";
|
|
12
|
-
setColumnOneView: import("react").Dispatch<import("react").SetStateAction<"flat" | "grouped">>;
|
|
13
|
-
activeFilters: Set<FilterCategory>;
|
|
14
|
-
setActiveFilters: import("react").Dispatch<import("react").SetStateAction<Set<FilterCategory>>>;
|
|
15
|
-
showHelp: boolean;
|
|
16
|
-
setShowHelp: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface UseOverlayPanelOptions {
|
|
2
|
-
toggleKey: string;
|
|
3
|
-
onClose?: () => void;
|
|
4
|
-
}
|
|
5
|
-
export interface UseOverlayPanelResult {
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
open: () => void;
|
|
8
|
-
close: () => void;
|
|
9
|
-
handleInput: (input: string, key: {
|
|
10
|
-
escape?: boolean;
|
|
11
|
-
}) => boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function useOverlayPanel(opts: UseOverlayPanelOptions): UseOverlayPanelResult;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/** Maximum layout rows; the active terminal height determines the actual budget. */
|
|
2
|
-
export declare const VISIBLE_COUNT = 200;
|
|
3
|
-
/** Maximum supported panel window; normal terminals remain terminal-sized. */
|
|
4
|
-
export declare const MAX_PANEL_ROWS = 200;
|
|
5
|
-
/** Floors — both surfaces stay usable even on a small terminal. */
|
|
6
|
-
export declare const SIDEBAR_MIN = 4;
|
|
7
|
-
export declare const MIN_PANEL_ROWS = 4;
|
|
8
|
-
/**
|
|
9
|
-
* Fallback when `stdout.rows` is unavailable (piped output, tests). No TTY
|
|
10
|
-
* means Ink is not interactively repainting, so there is no flicker risk — we
|
|
11
|
-
* assume enough height for a terminal-sized sidebar so the non-interactive
|
|
12
|
-
* render is complete and unclipped.
|
|
13
|
-
*/
|
|
14
|
-
export declare const FALLBACK_ROWS = 40;
|
|
15
|
-
/**
|
|
16
|
-
* Vertical space consumed by everything ABOVE/BELOW the columns row. The panel
|
|
17
|
-
* shares the columns row, so the fit constraint while open is simply
|
|
18
|
-
* `FIXED_OVERHEAD + panelBoxHeight <= rows`.
|
|
19
|
-
*/
|
|
20
|
-
export declare const FIXED_OVERHEAD: number;
|
|
21
|
-
export declare const PANEL_BOX_CHROME = 6;
|
|
22
|
-
/**
|
|
23
|
-
* L2e — fixed vertical chrome around the sidebar in the BASE (no-panel) case,
|
|
24
|
-
* counting EVERYTHING that is not a variable sidebar entry row: the wizard
|
|
25
|
-
* header bar, the counter strip (with its blank separator), the cycle banner,
|
|
26
|
-
* the nothing-selected /
|
|
27
|
-
* AI-exclusion hint, the GroupedSidebar box borders + scroll indicator, the
|
|
28
|
-
* focused-detail block, and the wrapping legend region. The value intentionally
|
|
29
|
-
* leaves a small safety margin so resize-induced wrapping does not overflow.
|
|
30
|
-
*/
|
|
31
|
-
export declare const BASE_CHROME_OVERHEAD = 18;
|
|
32
|
-
export interface LineageLayoutInput {
|
|
33
|
-
/** Terminal height in rows (`stdout.rows`, or the fallback). */
|
|
34
|
-
rows: number;
|
|
35
|
-
/** Whether the lineage panel is currently open. */
|
|
36
|
-
panelOpen: boolean;
|
|
37
|
-
/** Number of lineage entries — caps the panel window so it never over-allocates. */
|
|
38
|
-
entryCount?: number;
|
|
39
|
-
}
|
|
40
|
-
export interface LineageLayout {
|
|
41
|
-
/** Rows the sidebar should render (`visibleCount`). Constant across open/closed. */
|
|
42
|
-
sidebarVisible: number;
|
|
43
|
-
/** Rows a sidebar replacement panel should window to (`maxRows`). */
|
|
44
|
-
panelMaxRows: number;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* The sidebar height is constant (the panel replaces it in the same slot, so
|
|
48
|
-
* there is nothing to shrink). Both values are derived from the terminal so
|
|
49
|
-
* resizing grows or shrinks the viewport without content-driven layout changes.
|
|
50
|
-
*/
|
|
51
|
-
export declare function computeLineageLayout({ rows, panelOpen, entryCount }: LineageLayoutInput): LineageLayout;
|
|
52
|
-
export interface SidebarBudget {
|
|
53
|
-
/** Rows the GroupedSidebar should render (`visibleCount`). */
|
|
54
|
-
sidebarVisibleCount: number;
|
|
55
|
-
/** Rows a sidebar replacement panel should window to (`maxRows`). */
|
|
56
|
-
panelMaxRows: number;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* L2e — autoscale the BASE frame to the terminal height. Even with the lineage
|
|
60
|
-
* panel closed, the visible-row budget follows `stdout.rows` minus
|
|
61
|
-
* `BASE_CHROME_OVERHEAD` so the whole frame stays within the terminal while
|
|
62
|
-
* preserving the shared panel-open sizing behavior.
|
|
63
|
-
*
|
|
64
|
-
* Floor: `BASE_CHROME_OVERHEAD + SIDEBAR_MIN`. Below it `SIDEBAR_MIN`
|
|
65
|
-
* (usability) intentionally wins over the fit — a terminal that small can't
|
|
66
|
-
* host the chrome regardless.
|
|
67
|
-
*/
|
|
68
|
-
export declare function computeSidebarBudget({ rows, panelOpen, entryCount }: LineageLayoutInput): SidebarBudget;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type SearchInputKey = {
|
|
2
|
-
tab: boolean;
|
|
3
|
-
backspace: boolean;
|
|
4
|
-
};
|
|
5
|
-
type SearchInputOptions = {
|
|
6
|
-
query: string;
|
|
7
|
-
names: string[];
|
|
8
|
-
setQuery: (value: string | ((current: string) => string)) => void;
|
|
9
|
-
setCandidates: (value: string[]) => void;
|
|
10
|
-
};
|
|
11
|
-
export declare function handleSidebarSearchInput(input: string, key: SearchInputKey, { query, names, setQuery, setCandidates }: SearchInputOptions): boolean;
|
|
12
|
-
export declare function formatSearchMatchSummary(matches: number, total: number): string;
|
|
13
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ComponentGraphNode, Closure } from '../../analyze/composite-closure.js';
|
|
2
|
-
import { type GroupedSidebarItem } from '../../analyze/select/tui/components/GroupedSidebar.js';
|
|
3
|
-
export declare function collectExpandedGroupRoots(closures: Map<string, Closure>, cycleParticipants: Iterable<string>): Set<string>;
|
|
4
|
-
export declare function computeSidebarViewToggle({ currentView, currentKey, currentScroll, visibleCount, items, cycleParticipants, expandedGroups, graph, showFlatTier, }: {
|
|
5
|
-
currentView: 'grouped' | 'flat';
|
|
6
|
-
currentKey: string | null | undefined;
|
|
7
|
-
currentScroll: number;
|
|
8
|
-
visibleCount: number;
|
|
9
|
-
items: GroupedSidebarItem[];
|
|
10
|
-
cycleParticipants: Set<string>;
|
|
11
|
-
expandedGroups: Set<string>;
|
|
12
|
-
graph: ComponentGraphNode[];
|
|
13
|
-
showFlatTier?: boolean;
|
|
14
|
-
}): {
|
|
15
|
-
view: 'grouped' | 'flat';
|
|
16
|
-
cursor: number;
|
|
17
|
-
scroll: number;
|
|
18
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type FilterCategory = 'broken' | 'cycles' | 'deleted';
|
|
2
|
-
export interface FilterDataSources {
|
|
3
|
-
/** Component keys that participate in a slot cycle. */
|
|
4
|
-
cycles?: Iterable<string>;
|
|
5
|
-
/** Component keys the step considers "broken" (issue/warning/AI-flagged). */
|
|
6
|
-
broken?: Iterable<string>;
|
|
7
|
-
/** Component keys marked for deletion (GenerateReview only). */
|
|
8
|
-
deleted?: Iterable<string>;
|
|
9
|
-
}
|
|
10
|
-
export declare function computeFilterKeys(input: {
|
|
11
|
-
filters: Iterable<FilterCategory>;
|
|
12
|
-
data: FilterDataSources;
|
|
13
|
-
}): Set<string> | undefined;
|
|
14
|
-
export declare function intersectFilterKeys(a: Set<string> | undefined, b: Set<string> | undefined): Set<string> | undefined;
|
|
15
|
-
export declare function buildFlatDimPredicate(input: {
|
|
16
|
-
viewMode: 'grouped' | 'flat';
|
|
17
|
-
searchQuery: string;
|
|
18
|
-
filterVisibleKeys: Set<string> | undefined;
|
|
19
|
-
}): ((componentKey: string) => boolean) | undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ErrorStepProps = {
|
|
3
|
-
stepName: string;
|
|
4
|
-
message: string;
|
|
5
|
-
onExit: () => void;
|
|
6
|
-
onRetryCredentials?: () => void;
|
|
7
|
-
onAcknowledgeBreakingChanges?: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare function ErrorStep({ stepName, message, onExit, onRetryCredentials, onAcknowledgeBreakingChanges, }: ErrorStepProps): React.ReactElement;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type GateStepProps = {
|
|
3
|
-
successMessage: string;
|
|
4
|
-
summary?: string;
|
|
5
|
-
context?: string;
|
|
6
|
-
continueLabel?: string;
|
|
7
|
-
skipLabel?: string;
|
|
8
|
-
onContinue: () => void;
|
|
9
|
-
onSkip?: () => void;
|
|
10
|
-
onQuit: () => void;
|
|
11
|
-
showSkip?: boolean;
|
|
12
|
-
intent?: 'success' | 'error';
|
|
13
|
-
};
|
|
14
|
-
export declare function GateStep({ successMessage, summary, context, continueLabel, skipLabel, onContinue, onSkip, onQuit, showSkip, intent, }: GateStepProps): React.ReactElement;
|
|
15
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PreviewValidationError } from '../../../apply/api-client.js';
|
|
3
|
-
type PreviewValidationErrorStepProps = {
|
|
4
|
-
errors: PreviewValidationError[];
|
|
5
|
-
missingNames: string[];
|
|
6
|
-
onEdit: () => void;
|
|
7
|
-
onSkip: () => void;
|
|
8
|
-
onQuit: () => void;
|
|
9
|
-
};
|
|
10
|
-
export declare function PreviewValidationErrorStep({ errors, missingNames, onEdit, onSkip, onQuit, }: PreviewValidationErrorStepProps): React.ReactElement;
|
|
11
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Progress = {
|
|
3
|
-
done: number;
|
|
4
|
-
total: number;
|
|
5
|
-
};
|
|
6
|
-
type RunningStepProps = {
|
|
7
|
-
stepNumber: number;
|
|
8
|
-
totalSteps: number;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
detail?: string;
|
|
12
|
-
detailComplete?: boolean;
|
|
13
|
-
/** Progress for the detail row (displays as progress bar + ratio). */
|
|
14
|
-
detailProgress?: Progress;
|
|
15
|
-
/** Optional second progress line (own spinner) — e.g. composition resolution
|
|
16
|
-
* running after the file scan on the extracting screen. */
|
|
17
|
-
secondaryDetail?: string;
|
|
18
|
-
secondaryComplete?: boolean;
|
|
19
|
-
/** Progress for the secondary detail row (displays as progress bar + ratio). */
|
|
20
|
-
secondaryProgress?: Progress;
|
|
21
|
-
/** Optional third progress line for another concurrent stage. */
|
|
22
|
-
tertiaryDetail?: string;
|
|
23
|
-
tertiaryComplete?: boolean;
|
|
24
|
-
/** Optional fourth progress line for another concurrent stage. */
|
|
25
|
-
quaternaryDetail?: string;
|
|
26
|
-
quaternaryComplete?: boolean;
|
|
27
|
-
/** Optional fifth progress line for another concurrent stage. */
|
|
28
|
-
quinaryDetail?: string;
|
|
29
|
-
quinaryComplete?: boolean;
|
|
30
|
-
};
|
|
31
|
-
export declare function RunningStep({ stepNumber, totalSteps, title, description, detail, detailComplete, detailProgress, secondaryDetail, secondaryComplete, secondaryProgress, tertiaryDetail, tertiaryComplete, quaternaryDetail, quaternaryComplete, quinaryDetail, quinaryComplete, }: RunningStepProps): React.ReactElement;
|
|
32
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ApiError, type PreviewValidationError } from '../../apply/api-client.js';
|
|
2
|
-
import { patchReviewStateWithValidationErrors, rejectComponentsByName } from '../../analyze/select/command.js';
|
|
3
|
-
export type Preview422Outcome = {
|
|
4
|
-
kind: 'validation-error';
|
|
5
|
-
errors: PreviewValidationError[];
|
|
6
|
-
missingNames: string[];
|
|
7
|
-
} | {
|
|
8
|
-
kind: 'unparseable';
|
|
9
|
-
message: string;
|
|
10
|
-
} | {
|
|
11
|
-
kind: 'not-422';
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Decide what to do with an `ApiError` raised by `previewImport()`.
|
|
15
|
-
* Returns `not-422` if the caller should fall through to its other branches
|
|
16
|
-
* (404 / 401 / 403 / generic), `unparseable` if the body cannot be parsed
|
|
17
|
-
* into structured component-level errors (caller should route to the generic
|
|
18
|
-
* error step), or `validation-error` with the patched-state side effects
|
|
19
|
-
* already applied.
|
|
20
|
-
*
|
|
21
|
-
* Pure decision logic + a single delegated side effect to
|
|
22
|
-
* `patchReviewStateWithValidationErrors`. Extracted from `WizardApp.runPreview`
|
|
23
|
-
* so the routing is unit-testable without driving the full TUI.
|
|
24
|
-
*/
|
|
25
|
-
export declare function handlePreview422(err: ApiError, extractSessionId: string | null, patchFn?: typeof patchReviewStateWithValidationErrors): Promise<Preview422Outcome>;
|
|
26
|
-
/**
|
|
27
|
-
* The WizardState patch the wizard should spread into any update that
|
|
28
|
-
* transitions OUT of the preview-validation-error step (e.g. into
|
|
29
|
-
* preview-gate after a successful retry). Without this, the validation-error
|
|
30
|
-
* arrays linger in state and any future code path that reads them sees stale
|
|
31
|
-
* data from a prior failed attempt.
|
|
32
|
-
*/
|
|
33
|
-
export declare function clearedValidationErrorState(): {
|
|
34
|
-
previewValidationErrors: PreviewValidationError[];
|
|
35
|
-
previewValidationMissingNames: string[];
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Run the "skip and retry" side effect: dedup the offending component
|
|
39
|
-
* names from a list of errors and call `rejectComponentsByName`. Returns
|
|
40
|
-
* the deduped names so the caller can log them or include them in test
|
|
41
|
-
* assertions. No-op when sessionId is null or errors are empty.
|
|
42
|
-
*
|
|
43
|
-
* The DB update inside `rejectComponentsByName` is what makes the next
|
|
44
|
-
* preview see a CDF document with the offenders excluded — see SP-3 retro
|
|
45
|
-
* Bug 1: writing to the JSON state file alone is not enough because
|
|
46
|
-
* `loadCDFComponents` reads from the pipeline DB.
|
|
47
|
-
*/
|
|
48
|
-
export declare function applySkipValidationErrors(sessionId: string | null, errors: PreviewValidationError[], rejectFn?: typeof rejectComponentsByName): Promise<string[]>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow}/components/StepHeader.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{legacy/dist/src/import → dist/src/tui/import/steps/10-flow/support}/path-utils.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/push-progress.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{legacy/dist/src/import/tui → dist/src/tui/import/steps/10-flow/support}/run-teaser.d.ts
RENAMED
|
File without changes
|
/package/{legacy/dist/src/tui → dist/src/tui/import/steps/10-flow/support}/use-blinking-cursor.d.ts
RENAMED
|
File without changes
|
/package/{legacy/dist/src/tui → dist/src/tui/import/steps/10-flow/support}/use-timed-spinner.d.ts
RENAMED
|
File without changes
|