@contentful/experience-design-system-cli 2.37.1-dev-build-fb8573b6.0 → 2.37.1-dev-build-799db3ac.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-fb8573b6.0",
3
+ "version": "2.37.1-dev-build-799db3ac.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,7 +38,6 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@contentful/experience-design-system-backend-pipeline": "workspace:*",
41
- "@contentful/experience-design-system-generation": "workspace:*",
42
41
  "@contentful/experience-design-system-types": "workspace:*",
43
42
  "@inkjs/ui": "^2.0.0",
44
43
  "@segment/analytics-node": "^3.0.0",
@@ -1,5 +1,5 @@
1
1
  import { type ImportOptions } from '../../commands/import-options.js';
2
- import { type ImportHandoff } from '@contentful/experience-design-system-types/handoff';
2
+ import type { TokenStrategy } from './steps/05-token-reuse/logic.js';
3
3
  interface StepResult {
4
4
  step: string;
5
5
  status: 'complete' | 'failed' | 'skipped';
@@ -20,8 +20,8 @@ export interface SpawnV1ImportOptions extends Partial<ImportOptions> {
20
20
  projectPath?: string;
21
21
  tokens?: string;
22
22
  filePaths?: string[];
23
- /** What the CLI already settled and did; the legacy wizard starts from it. */
24
- handoff?: ImportHandoff;
23
+ skipCredentials?: boolean;
24
+ tokenStrategy?: TokenStrategy;
25
25
  onProgress?: (line: string) => void;
26
26
  }
27
27
  export interface SpawnV1ImportResult {
@@ -1,4 +1,4 @@
1
- export type { TokenStrategy } from '../06-extraction/types.js';
1
+ export type TokenStrategy = 'reuse' | 'regenerate' | 'generate';
2
2
  export type TokensState = {
3
3
  kind: 'none';
4
4
  } | {
@@ -19,3 +19,4 @@ export declare function gateText({ tokensPath, sourceChanged }: {
19
19
  summary: string;
20
20
  context?: string;
21
21
  };
22
+ export {};
@@ -3,4 +3,3 @@ export { TokenInputScreen } from './02-token-input/screen.js';
3
3
  export { PathValidationScreen } from './03-path-validation/screen.js';
4
4
  export { CredentialsScreen } from './04-credentials/screen.js';
5
5
  export { TokenReuseScreen } from './05-token-reuse/screen.js';
6
- export { ExtractionScreen } from './06-extraction/screen.js';
@@ -14,6 +14,14 @@ export declare function buildGenerateComponentsArgs(opts: {
14
14
  restoreCache?: boolean;
15
15
  cachedComponents?: string[];
16
16
  }): string[];
17
+ export declare function buildGenerateTokensArgs(opts: {
18
+ rawTokensPath: string;
19
+ agent: string;
20
+ model?: string;
21
+ bedrock?: boolean;
22
+ noCache?: boolean;
23
+ promptOverrides?: string[];
24
+ }): string[];
17
25
  export declare function buildMapTokensArgs(opts: {
18
26
  sessionId: string;
19
27
  agent: string;
@@ -0,0 +1,9 @@
1
+ import { type AgentName } from '@contentful/experience-design-system-generation';
2
+ export declare function runSelectionAgent(options: {
3
+ sessionId: string;
4
+ agent: AgentName;
5
+ model?: string;
6
+ promptText?: string;
7
+ promptPath?: string;
8
+ noCache?: boolean;
9
+ }): Promise<void>;