@contentful/experience-design-system-cli 2.37.1-dev-build-8b3a1c07.0 → 2.37.1-dev-build-0b786a83.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-8b3a1c07.0",
3
+ "version": "2.37.1-dev-build-0b786a83.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { AgentName } from '@contentful/experience-design-system-backend-pipeline';
3
+ import { type AgentConfig } from './agent-store.js';
4
+ /**
5
+ * One agent's screen: what was found for it, its two settings, and the test. Saving writes the whole agent config, so the
6
+ * default agent and the other agents are kept. The test uses the values on screen, saved or not.
7
+ */
8
+ export declare function AgentDetail({ name, config, setConfig, onBack, }: {
9
+ name: AgentName;
10
+ config: AgentConfig;
11
+ setConfig: (config: AgentConfig) => void;
12
+ onBack: () => void;
13
+ }): React.ReactElement;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  /**
3
- * Settings > Configuration > Agents: which coding agent the CLI uses, and each agent's own settings. Enter on an agent
4
- * opens its form; the first row picks the default agent (←/→ or Enter cycles it, and the change is saved at once).
3
+ * Settings > Configuration > Agents: which coding agent the CLI uses, and what was found for each one. Enter on an agent
4
+ * opens its screen; the first row picks the default agent (←/→ or Enter cycles it, and the change is saved at once).
5
5
  */
6
6
  export declare function AgentsScreen({ onDone }: {
7
7
  onDone: () => void;
@@ -1,13 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { AgentName } from '@contentful/experience-design-system-backend-pipeline';
3
3
  import { type AgentCheck } from './agent-status.js';
4
- /** The one-word state for an agent, shown on its row in the list. */
5
- export declare function AgentStatusBadge({ name, checks, }: {
6
- name: AgentName;
7
- checks: AgentCheck[] | undefined;
8
- }): React.ReactElement;
9
- /** Every check that ran, one per line, and what to do next when the agent is not ready. */
10
- export declare function AgentChecks({ name, checks, }: {
4
+ /** The one-word state for an agent, shown on its row in the list. `binary` is the saved path, empty when none is saved. */
5
+ export declare function AgentStatusBadge({ name, checks, binary, }: {
11
6
  name: AgentName;
12
7
  checks: AgentCheck[] | undefined;
8
+ binary: string;
13
9
  }): React.ReactElement;
@@ -6,8 +6,11 @@ export type AgentCheck = {
6
6
  /** One line for the user: the version string, the reason it failed, or what to run next. */
7
7
  detail: string;
8
8
  };
9
- /** The one-word state shown on an agent's row. `unknown` means it runs but its login cannot be checked. */
10
- export type AgentStatus = 'checking' | 'ready' | 'not-found' | 'not-logged-in' | 'unknown';
9
+ /**
10
+ * The one-word state shown on an agent's row. `not-configured` means no path is saved and the command is not on the
11
+ * PATH; `not-found` means a saved path does not work. `unknown` means it runs but its login cannot be checked.
12
+ */
13
+ export type AgentStatus = 'checking' | 'ready' | 'not-configured' | 'not-found' | 'not-logged-in' | 'unknown';
11
14
  /**
12
15
  * The binary the import will actually run for this agent: the saved path if there is one, otherwise the built-in
13
16
  * command name. Shown in the form so the user sees what is used when the field is empty.
@@ -23,7 +26,19 @@ export declare function inspectAgent(name: AgentName, binary: string): Promise<A
23
26
  /** Steps 1 to 4. The prompt step is the only way to verify login and model name for agents other than claude. */
24
27
  export declare function testAgent(name: AgentName, binary: string, model: string): Promise<AgentCheck[]>;
25
28
  /** Collapses a list of checks into the status shown on the row. */
26
- export declare function statusFromChecks(name: AgentName, checks: readonly AgentCheck[]): AgentStatus;
29
+ export declare function statusFromChecks(name: AgentName, checks: readonly AgentCheck[], savedBinary: string): AgentStatus;
27
30
  /** What to tell a user whose agent is not ready: the install command, or the login command. Empty when nothing is needed. */
28
31
  export declare function nextStepHint(name: AgentName, status: AgentStatus): string;
32
+ export type StatusRow = {
33
+ label: string;
34
+ value: string;
35
+ tone: 'ok' | 'bad' | 'muted';
36
+ };
37
+ /** The resolved path of the command, when the checks found it. For the list, where the user wants to see what runs. */
38
+ export declare function resolvedPath(checks: readonly AgentCheck[] | undefined): string;
39
+ /**
40
+ * What the Status section of an agent's screen shows, one row per thing that was checked. The login row is always
41
+ * there once the command is found, because for most agents it has to say that login cannot be checked without a test.
42
+ */
43
+ export declare function statusRows(_name: AgentName, checks: readonly AgentCheck[] | undefined, savedBinary: string): StatusRow[];
29
44
  export {};
@@ -26,16 +26,10 @@ interface FieldFormProps<K extends string> {
26
26
  busy?: boolean;
27
27
  /** Shown above the controls, for a screen's own explanation. */
28
28
  footer?: React.ReactNode;
29
- /** Extra single-key actions. They only fire when no field is open, so typing a "t" into a path is just a "t". */
30
- actions?: readonly {
31
- key: string;
32
- label: string;
33
- run: () => void;
34
- }[];
35
29
  }
36
30
  /**
37
31
  * The edit-in-place form the Configuration pages share. Fields are read-only until Enter opens one; Enter again closes it.
38
32
  * While one is open, keys type into it (so a "q" in a path is just a "q"), and Esc closes it and restores the old value.
39
33
  */
40
- export declare function FieldForm<K extends string>({ title, subtitle, fields, values, onChange, onSave, onQuit, notice, busy, footer, actions, }: FieldFormProps<K>): React.ReactElement;
34
+ export declare function FieldForm<K extends string>({ title, subtitle, fields, values, onChange, onSave, onQuit, notice, busy, footer, }: FieldFormProps<K>): React.ReactElement;
41
35
  export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.37.1-dev-build-8b3a1c07.0",
3
+ "version": "2.37.1-dev-build-0b786a83.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-8b3a1c07.0",
3
+ "version": "2.37.1-dev-build-0b786a83.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,8 +45,8 @@
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.37.1-dev-build-8b3a1c07.0",
49
- "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-8b3a1c07.0"
48
+ "@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-0b786a83.0",
49
+ "@contentful/experience-design-system-types": "2.37.1-dev-build-0b786a83.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tsconfig/node24": "^24.0.4",