@contentful/experience-design-system-cli 2.34.5-dev-build-ea694b2.0 → 2.34.5-dev-build-57e4802.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.
@@ -4,12 +4,12 @@ export declare const MODEL_DESCRIPTION = "Model to use (defaults to a lightweigh
4
4
  export interface AgentModelOptionsConfig {
5
5
  agentDescription?: string;
6
6
  includeModel?: boolean;
7
- includeBedrock?: boolean;
8
7
  modelDescription?: string;
9
8
  }
10
9
  /**
11
- * Register --agent plus optional --model and --bedrock flags with a Commander
12
- * command. The optional flags can be omitted for commands with a narrower
13
- * public surface.
10
+ * Register --agent, --bedrock, and optional --model flags with a Commander
11
+ * command. Pass includeModel: false to omit --model only — --bedrock is
12
+ * independent of model selection (it's a routing switch, not a model choice)
13
+ * and is always registered alongside --agent.
14
14
  */
15
15
  export declare function addAgentModelOptions(cmd: Command, config?: AgentModelOptionsConfig): Command;
@@ -29,8 +29,9 @@ export declare function __resetDebugLoggerForTest(): void;
29
29
  * Resolve effective debug-mode setting from three sources.
30
30
  *
31
31
  * Precedence (highest first):
32
- * 1. `EDSI_DEBUG` env var (truthy: 1, true, yes, on)
33
- * 2. Persisted `debug` field in credentials.json
32
+ * 1. `--debug` / `--no-debug` CLI flag
33
+ * 2. `EDSI_DEBUG` env var (truthy: 1, true, yes, on)
34
+ * 3. Persisted `debug` field in credentials.json
34
35
  * 4. Default: OFF
35
36
  */
36
37
  export declare function resolveDebugMode(opts: {
@@ -17,7 +17,7 @@ export declare function runBuild(opts: {
17
17
  }>;
18
18
  /**
19
19
  * Walks `actionCommand` and its ancestors for a truthy `--bedrock`. --bedrock
20
- * is registered per-subcommand, so a
20
+ * is registered per-subcommand (not at program scope, unlike --debug), so a
21
21
  * root-level or subcommand-level setting can each carry it.
22
22
  */
23
23
  export declare function resolveBedrockFromAncestors(actionCommand: Command): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.34.5-dev-build-ea694b2.0",
3
+ "version": "2.34.5-dev-build-57e4802.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,8 +41,8 @@
41
41
  "svelte": "^5.56.4",
42
42
  "ts-morph": "^27.0.2",
43
43
  "typescript": "^5.9.3",
44
- "@contentful/experience-design-system-cli-v2": "2.34.5-dev-build-ea694b2.0",
45
- "@contentful/experience-design-system-types": "2.34.5-dev-build-ea694b2.0"
44
+ "@contentful/experience-design-system-cli-v2": "2.34.5-dev-build-57e4802.0",
45
+ "@contentful/experience-design-system-types": "2.34.5-dev-build-57e4802.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",
@@ -54,9 +54,9 @@
54
54
  "ink-testing-library": "^4.0.0",
55
55
  "typescript-eslint": "^8.67.0",
56
56
  "vitest": "^4.0.16",
57
- "@contentful/experience-design-system-extraction": "2.34.5-dev-build-ea694b2.0",
58
- "@contentful/experience-design-system-generation": "2.34.5-dev-build-ea694b2.0",
59
- "@contentful/experience-design-system-client": "2.34.5-dev-build-ea694b2.0"
57
+ "@contentful/experience-design-system-client": "2.34.5-dev-build-57e4802.0",
58
+ "@contentful/experience-design-system-generation": "2.34.5-dev-build-57e4802.0",
59
+ "@contentful/experience-design-system-extraction": "2.34.5-dev-build-57e4802.0"
60
60
  },
61
61
  "repository": {
62
62
  "type": "git",
@@ -1,27 +0,0 @@
1
- /**
2
- * Resolution chain for the combined `--agent` override on `experiences import`.
3
- *
4
- * The wizard path previously hard-defaulted `--agent` to `'claude'` at the
5
- * commander layer, which (a) shadowed the stored `credentials.json` value when
6
- * the user passed no flag, and (b) made it impossible to distinguish "user
7
- * explicitly passed --agent claude" from "user passed nothing". The combined
8
- * flag accepts either `agent:model` or `agent model`.
9
- *
10
- * These helpers produce the resolved values to feed into `WizardApp` /
11
- * the import wizard:
12
- *
13
- * 1. CLI flag wins when provided.
14
- * 2. Otherwise, the value persisted in `credentials.json` (written by
15
- * `experiences setup`) is used.
16
- * 3. Otherwise, the built-in default (currently `'claude'`) is used for
17
- * the agent. Model has no default — agents pick a small/fast model
18
- * themselves when no model is included in `--agent`.
19
- */
20
- /** Built-in fallback agent when neither a flag nor a stored preference is set. */
21
- export declare const DEFAULT_AGENT = "claude";
22
- export declare function parseAgentModel(value: string | undefined): {
23
- agent?: string;
24
- model?: string;
25
- };
26
- export declare function resolveAgent(flagValue: string | undefined, storedValue: string | undefined): string;
27
- export declare function resolveModel(flagValue: string | undefined, storedValue: string | undefined): string | undefined;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { ReviewStepProps } from './review-step-props.js';
3
- export type FinalReviewHostProps = Omit<ReviewStepProps, 'extractSessionId'> & {
4
- extractSessionId: string | null;
5
- };
6
- export declare function FinalReviewHost({ extractSessionId, tokenSessionId, onFinalize, onQuit, livePreview, spaceId, environmentId, cmaToken, host, tokensPath, initialFinalizeError, }: FinalReviewHostProps): React.ReactElement;
@@ -1,13 +0,0 @@
1
- export type ReviewStepProps = {
2
- extractSessionId: string;
3
- tokenSessionId?: string | null;
4
- onFinalize: (accepted: number, rejected: number, unresolved: number) => void;
5
- onQuit: () => void;
6
- livePreview?: boolean;
7
- spaceId?: string;
8
- environmentId?: string;
9
- cmaToken?: string;
10
- host?: string;
11
- tokensPath?: string;
12
- initialFinalizeError?: string | null;
13
- };
@@ -1,8 +0,0 @@
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
- }): Promise<void>;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { ScopeComponent } from './steps/ScopeGateStep.js';
3
- export type { ScopeComponent };
4
- export type ScopeGateHostProps = {
5
- components: ReadonlyArray<ScopeComponent>;
6
- onConfirm: (decisions: {
7
- accepted: string[];
8
- rejected: string[];
9
- }) => void;
10
- onQuit: () => void;
11
- /** Retained for fixture compatibility; filtering is no longer performed here. */
12
- aiFilterStatus?: string;
13
- aiFilterProgress?: {
14
- done: number;
15
- total: number;
16
- } | null;
17
- aiFilterError?: string | null;
18
- };
19
- export declare function ScopeGateHost({ components, onConfirm, onQuit }: ScopeGateHostProps): React.ReactElement;
@@ -1 +0,0 @@
1
- export declare function useTerminalColumns(): number;