@contentful/experience-design-system-cli 2.37.1-dev-build-8757f66c.0 → 2.37.1-dev-build-932fd115.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-8757f66c.0",
3
+ "version": "2.37.1-dev-build-932fd115.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,13 @@
1
+ export interface ImportOptions {
2
+ agent?: string;
3
+ prompt: string[];
4
+ cache: boolean;
5
+ }
6
+ interface RawImportOptions {
7
+ agent?: string;
8
+ prompt?: string[];
9
+ cache?: boolean;
10
+ }
11
+ export declare function toImportOptions(raw: RawImportOptions): ImportOptions;
12
+ export declare function importOptionArgs(options: ImportOptions): string[];
13
+ export {};
@@ -1,2 +1,3 @@
1
1
  import type { Command } from 'commander';
2
- export declare function registerImportCommand(program: Command, openTui: () => Promise<void>): void;
2
+ import { type ImportOptions } from './import-options.js';
3
+ export declare function registerImportCommand(program: Command, openTui: (options: ImportOptions) => Promise<void>): void;
@@ -1,3 +1,4 @@
1
+ import { type ImportOptions } from '../../commands/import-options.js';
1
2
  interface StepResult {
2
3
  step: string;
3
4
  status: 'complete' | 'failed' | 'skipped';
@@ -14,7 +15,7 @@ interface PipelineResult {
14
15
  report: string[];
15
16
  };
16
17
  }
17
- export interface SpawnV1ImportOptions {
18
+ export interface SpawnV1ImportOptions extends Partial<ImportOptions> {
18
19
  projectPath?: string;
19
20
  tokens?: string;
20
21
  filePaths?: string[];
@@ -27,5 +28,6 @@ export interface SpawnV1ImportResult {
27
28
  stdout: string;
28
29
  stderr: string;
29
30
  }
31
+ export declare function buildArgs(options: SpawnV1ImportOptions): string[];
30
32
  export declare function spawnV1Import(options?: SpawnV1ImportOptions): Promise<SpawnV1ImportResult>;
31
33
  export {};
@@ -1,6 +1,7 @@
1
1
  export declare const FIELDS: readonly ["spaceId", "environmentId", "cmaToken", "host"];
2
2
  export type CredentialField = (typeof FIELDS)[number];
3
3
  export type CredentialValues = Record<CredentialField, string>;
4
+ export declare const DEFAULT_HOST = "api.contentful.com";
4
5
  interface Key {
5
6
  escape: boolean;
6
7
  tab: boolean;
@@ -9,6 +10,8 @@ interface Key {
9
10
  export type KeyAction = 'back' | 'next-field' | 'skip' | null;
10
11
  export declare function keyAction(input: string, key: Key): KeyAction;
11
12
  export declare function nextField(field: CredentialField): CredentialField;
13
+ export declare function toConfiguredHost(host: string | undefined): string;
14
+ export declare function toApiHost(host: string): string;
12
15
  export declare function normalize(values: CredentialValues): CredentialValues;
13
16
  export declare function missingField(values: CredentialValues): boolean;
14
17
  export declare function isUnchanged(current: CredentialValues, initial: CredentialValues): boolean;
@@ -1,4 +1,4 @@
1
- import type { CredentialValues } from './logic.js';
1
+ import { type CredentialValues } from './logic.js';
2
2
  export type ValidationResult = {
3
3
  ok: true;
4
4
  } | {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-8757f66c.0",
3
+ "version": "2.37.1-dev-build-932fd115.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
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-8757f66c.0",
3
+ "version": "2.37.1-dev-build-932fd115.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,8 +44,8 @@
44
44
  "ts-morph": "^27.0.2",
45
45
  "typescript": "^5.9.3",
46
46
  "zod": "^4.6.5",
47
- "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-8757f66c.0",
48
- "@contentful/experience-design-system-types": "2.37.1-dev-build-8757f66c.0"
47
+ "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-932fd115.0",
48
+ "@contentful/experience-design-system-types": "2.37.1-dev-build-932fd115.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@tsconfig/node24": "^24.0.4",