@contentful/experience-design-system-cli 2.40.1-dev-build-54dd0c33.0 → 2.40.1-dev-build-58bdf9b8.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.js +180 -105
- package/dist/index.js +188 -112
- package/dist/package.json +1 -1
- package/dist/src/tui/import/steps/04-credentials/logic.d.ts +23 -1
- package/dist/src/tui/import/steps/04-credentials/screen.d.ts +4 -1
- package/dist/src/tui/settings/configuration/agents/agent-debug.d.ts +1 -1
- package/package.json +3 -3
- /package/dist/src/tui/{settings/shared → shared}/debug-trail.d.ts +0 -0
package/dist/package.json
CHANGED
|
@@ -7,6 +7,28 @@ 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
|
-
|
|
10
|
+
/** The required fields that are still empty, by name. */
|
|
11
|
+
export declare function missingFields(values: CredentialValues): CredentialField[];
|
|
11
12
|
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>;
|
|
12
34
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ImportTarget } from '../00-preflight/logic.js';
|
|
2
3
|
import { type CredentialValues } from './logic.js';
|
|
3
4
|
import { type ValidationResult } from './validate.js';
|
|
4
5
|
export type CredentialsResult = {
|
|
@@ -8,6 +9,8 @@ export type CredentialsResult = {
|
|
|
8
9
|
skipped: true;
|
|
9
10
|
};
|
|
10
11
|
interface CredentialsScreenProps {
|
|
12
|
+
/** What the user chose to import at Preflight; it decides which steps run, so every log notes it. */
|
|
13
|
+
mode: ImportTarget;
|
|
11
14
|
onDone: (result: CredentialsResult) => void;
|
|
12
15
|
onBack: () => void;
|
|
13
16
|
initial?: Partial<CredentialValues>;
|
|
@@ -15,5 +18,5 @@ interface CredentialsScreenProps {
|
|
|
15
18
|
/** The import only generates tokens, so there are no components to look up in the space. */
|
|
16
19
|
tokensOnly?: boolean;
|
|
17
20
|
}
|
|
18
|
-
export declare function CredentialsScreen({ onDone, onBack, initial, validate, tokensOnly, }: CredentialsScreenProps): React.ReactElement;
|
|
21
|
+
export declare function CredentialsScreen({ mode, onDone, onBack, initial, validate, tokensOnly, }: CredentialsScreenProps): React.ReactElement;
|
|
19
22
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AgentName } from '@contentful/experience-design-system-backend-pipeline';
|
|
2
|
-
import type { Snapshot } from '
|
|
2
|
+
import type { Snapshot } from '@tui/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-
|
|
3
|
+
"version": "2.40.1-dev-build-58bdf9b8.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-
|
|
48
|
+
"@contentful/experience-design-system-types": "2.40.1-dev-build-58bdf9b8.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-
|
|
62
|
+
"@contentful/experience-design-system-backend-pipeline": "2.40.1-dev-build-58bdf9b8.0"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|
|
File without changes
|