@contentful/experience-design-system-cli 2.40.1-dev-build-58bdf9b8.0 → 2.40.1-dev-build-1691fb91.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.40.1-dev-build-58bdf9b8.0",
3
+ "version": "2.40.1-dev-build-1691fb91.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -7,28 +7,6 @@ export type CredentialValues = Record<CredentialField, string>;
7
7
  */
8
8
  export declare function credentialsPurpose(tokensOnly: boolean): string;
9
9
  export declare function normalize(values: CredentialValues): CredentialValues;
10
- /** The required fields that are still empty, by name. */
11
- export declare function missingFields(values: CredentialValues): CredentialField[];
10
+ export declare function missingField(values: CredentialValues): boolean;
12
11
  export declare function isUnchanged(current: CredentialValues, initial: CredentialValues): boolean;
13
- export type CredentialAttempt = {
14
- host: string;
15
- reason: string;
16
- };
17
- /**
18
- * One rejected attempt as the log records it. The reason is scrubbed of the token first: an API error can echo what it
19
- * was sent, so the message the user saw may contain it.
20
- */
21
- export declare function rejectedAttempt(reason: string, credentials: CredentialValues): CredentialAttempt;
22
- /**
23
- * The credentials as the log shows them. `cma_token` is the only key the token may be under: the logger reduces it to
24
- * "present, N chars", which is enough to spot a truncated paste without writing the secret.
25
- */
26
- export declare function credentialsLog(credentials: CredentialValues): Record<string, unknown>;
27
- /** The log's outputs: where the user ended up, the credentials, which fields they changed (names only), and the rejections. */
28
- export declare function credentialsOutputs({ outcome, credentials, initial, attempts, }: {
29
- outcome: 'validated' | 'back';
30
- credentials: CredentialValues;
31
- initial: CredentialValues;
32
- attempts: readonly CredentialAttempt[];
33
- }): Record<string, unknown>;
34
12
  export {};
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { ImportTarget } from '../00-preflight/logic.js';
3
2
  import { type CredentialValues } from './logic.js';
4
3
  import { type ValidationResult } from './validate.js';
5
4
  export type CredentialsResult = {
@@ -9,8 +8,6 @@ export type CredentialsResult = {
9
8
  skipped: true;
10
9
  };
11
10
  interface CredentialsScreenProps {
12
- /** What the user chose to import at Preflight; it decides which steps run, so every log notes it. */
13
- mode: ImportTarget;
14
11
  onDone: (result: CredentialsResult) => void;
15
12
  onBack: () => void;
16
13
  initial?: Partial<CredentialValues>;
@@ -18,5 +15,5 @@ interface CredentialsScreenProps {
18
15
  /** The import only generates tokens, so there are no components to look up in the space. */
19
16
  tokensOnly?: boolean;
20
17
  }
21
- export declare function CredentialsScreen({ mode, onDone, onBack, initial, validate, tokensOnly, }: CredentialsScreenProps): React.ReactElement;
18
+ export declare function CredentialsScreen({ onDone, onBack, initial, validate, tokensOnly, }: CredentialsScreenProps): React.ReactElement;
22
19
  export {};
@@ -1,5 +1,5 @@
1
1
  import { type AgentName } from '@contentful/experience-design-system-backend-pipeline';
2
- import type { Snapshot } from '@tui/shared/debug-trail.js';
2
+ import type { Snapshot } from '../../shared/debug-trail.js';
3
3
  import type { AgentConfig } from './agent-store.js';
4
4
  /**
5
5
  * The agent settings as flat text, for `diffSnapshots`: `default_agent`, then `<agent>.model` and `<agent>.binary` for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.40.1-dev-build-58bdf9b8.0",
3
+ "version": "2.40.1-dev-build-1691fb91.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "ts-morph": "^27.0.2",
46
46
  "typescript": "^5.9.3",
47
47
  "zod": "^4.6.5",
48
- "@contentful/experience-design-system-types": "2.40.1-dev-build-58bdf9b8.0"
48
+ "@contentful/experience-design-system-types": "2.40.1-dev-build-1691fb91.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@tsconfig/node24": "^24.0.4",
@@ -59,7 +59,7 @@
59
59
  "ink-testing-library": "^4.0.0",
60
60
  "typescript-eslint": "^8.67.0",
61
61
  "vitest": "^4.0.16",
62
- "@contentful/experience-design-system-backend-pipeline": "2.40.1-dev-build-58bdf9b8.0"
62
+ "@contentful/experience-design-system-backend-pipeline": "2.40.1-dev-build-1691fb91.0"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",