@contentful/experience-design-system-cli 2.15.1-dev-build-b11e821.0 → 2.15.1-dev-build-484aae5.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
|
@@ -306,7 +306,7 @@ export function registerAnalyzeSelectAgentCommand(program) {
|
|
|
306
306
|
.option('--session <id>', 'Session ID from analyze extract (defaults to most recent)')
|
|
307
307
|
.option('--project-root <path>', 'Project root for resolving component source files')
|
|
308
308
|
.option('--agent <name>', 'Agent to use: claude, codex, opencode, cursor (defaults to value saved by experiences setup)')
|
|
309
|
-
.option('--model <name>', 'Model to use (defaults to a
|
|
309
|
+
.option('--model <name>', 'Model to use (defaults to a lightweight per-agent model; override with EDS_AGENT_MODEL_<AGENT>)')
|
|
310
310
|
.option('--verbose', 'Show full agent output including reasoning text')
|
|
311
311
|
.option('--dry-run', 'Print the prompt for the first component without invoking the agent')
|
|
312
312
|
.option('--exclude-invalid', 'Auto-reject components with validation errors instead of failing loud (LLM cannot fix structural issues)')
|
|
@@ -92,8 +92,8 @@ export declare function resolveBinary(agent: AgentName): string;
|
|
|
92
92
|
/**
|
|
93
93
|
* Resolve the model for an agent. Explicit flag/creds value wins, then a
|
|
94
94
|
* per-agent `EDS_AGENT_MODEL_<AGENT>` env override (mirrors the
|
|
95
|
-
* `EDS_AGENT_BINARY_<AGENT>` pattern), otherwise the
|
|
96
|
-
* agent.
|
|
95
|
+
* `EDS_AGENT_BINARY_<AGENT>` pattern), otherwise the lightweight default for
|
|
96
|
+
* that agent.
|
|
97
97
|
*/
|
|
98
98
|
export declare function resolveAgentModel(agent: AgentName, explicit?: string): string;
|
|
99
99
|
export declare function buildArgs(agent: AgentName, prompt: string, model?: string, promptViaStdin?: boolean): string[];
|
|
@@ -116,8 +116,9 @@ export declare function checkAgentAuth(agent: AgentName): Promise<AgentAuthStatu
|
|
|
116
116
|
/**
|
|
117
117
|
* Build a diagnostic string from a failed agent run, surfacing the agent's own
|
|
118
118
|
* stderr (or stdout, when stderr is empty) so callers never emit a context-free
|
|
119
|
-
* "agent failed"
|
|
120
|
-
*
|
|
119
|
+
* "agent failed". Callers only invoke this on a failed run: either a non-zero
|
|
120
|
+
* exit, or a zero exit that produced no tool calls. A non-zero exit is reported
|
|
121
|
+
* as such; a zero exit is therefore the "produced no tool calls" case.
|
|
121
122
|
*/
|
|
122
123
|
export declare function describeAgentFailure(result: AgentRunResult, maxDetail?: number): string;
|
|
123
124
|
export declare function extractSentinelOutput(stdout: string): string | null | 'multiple';
|
|
@@ -219,8 +219,8 @@ export function resolveBinary(agent) {
|
|
|
219
219
|
return AGENT_BINARIES[agent];
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
|
-
* Default models per agent —
|
|
223
|
-
* model is configured. cursor uses `gpt-mini` (verified alias from
|
|
222
|
+
* Default models per agent — lightweight/fast picks to control cost when no
|
|
223
|
+
* explicit model is configured. cursor uses `gpt-mini` (verified alias from
|
|
224
224
|
* GetUsableModels; haiku is not available in cursor's model catalog).
|
|
225
225
|
*/
|
|
226
226
|
const DEFAULT_MODELS = {
|
|
@@ -232,8 +232,8 @@ const DEFAULT_MODELS = {
|
|
|
232
232
|
/**
|
|
233
233
|
* Resolve the model for an agent. Explicit flag/creds value wins, then a
|
|
234
234
|
* per-agent `EDS_AGENT_MODEL_<AGENT>` env override (mirrors the
|
|
235
|
-
* `EDS_AGENT_BINARY_<AGENT>` pattern), otherwise the
|
|
236
|
-
* agent.
|
|
235
|
+
* `EDS_AGENT_BINARY_<AGENT>` pattern), otherwise the lightweight default for
|
|
236
|
+
* that agent.
|
|
237
237
|
*/
|
|
238
238
|
export function resolveAgentModel(agent, explicit) {
|
|
239
239
|
if (explicit && explicit.trim())
|
|
@@ -355,7 +355,7 @@ export async function checkAgentAuth(agent) {
|
|
|
355
355
|
return 'not-found';
|
|
356
356
|
// Only Claude exposes `auth status --json`. Non-Claude agents are considered
|
|
357
357
|
// authenticated once their binary is present — never gate them on claude
|
|
358
|
-
// (
|
|
358
|
+
// (e.g. Codex-via-Bedrock users would otherwise be blocked by a claude check).
|
|
359
359
|
if (agent !== 'claude')
|
|
360
360
|
return 'ok';
|
|
361
361
|
// Use `claude auth status` — fast, no API call, works regardless of which
|
|
@@ -398,8 +398,9 @@ export async function checkAgentAuth(agent) {
|
|
|
398
398
|
/**
|
|
399
399
|
* Build a diagnostic string from a failed agent run, surfacing the agent's own
|
|
400
400
|
* stderr (or stdout, when stderr is empty) so callers never emit a context-free
|
|
401
|
-
* "agent failed"
|
|
402
|
-
*
|
|
401
|
+
* "agent failed". Callers only invoke this on a failed run: either a non-zero
|
|
402
|
+
* exit, or a zero exit that produced no tool calls. A non-zero exit is reported
|
|
403
|
+
* as such; a zero exit is therefore the "produced no tool calls" case.
|
|
403
404
|
*/
|
|
404
405
|
export function describeAgentFailure(result, maxDetail = 800) {
|
|
405
406
|
const base = result.exitCode !== 0 ? `agent exited with code ${result.exitCode}` : 'agent produced no tool calls';
|
|
@@ -570,7 +570,7 @@ async function runGenerateSkill(skill, opts, verbose = false) {
|
|
|
570
570
|
function addAgentFlags(cmd) {
|
|
571
571
|
return cmd
|
|
572
572
|
.option('--agent <name>', 'Agent to use: claude, codex, opencode, cursor (defaults to value saved by experiences setup)')
|
|
573
|
-
.option('--model <name>', 'Model to use (defaults to a
|
|
573
|
+
.option('--model <name>', 'Model to use (defaults to a lightweight per-agent model; override with EDS_AGENT_MODEL_<AGENT>)')
|
|
574
574
|
.option('--verbose', 'Show full agent output including reasoning text')
|
|
575
575
|
.option('--dry-run', 'Print the prompt without invoking the agent')
|
|
576
576
|
.option('--no-cache', 'Bypass ALL fine-grained caches (extract, select, generate) and force AI re-run. ' +
|
|
@@ -20,7 +20,7 @@ export function registerImportCommand(program) {
|
|
|
20
20
|
.option('--project <path>', 'Path to the project root to analyze', '.')
|
|
21
21
|
.option('--out <path>', 'Output directory for pipeline artifacts')
|
|
22
22
|
.option('--agent <name>', 'Agent to use for generate components (overrides credentials.json; falls back to "claude")')
|
|
23
|
-
.option('--model <name>', 'Model to use for generate components (defaults to a
|
|
23
|
+
.option('--model <name>', 'Model to use for generate components (defaults to a lightweight per-agent model; override with EDS_AGENT_MODEL_<AGENT>)')
|
|
24
24
|
.option('--tokens <path>', 'Path to a DTCG tokens.json file to push alongside generated components')
|
|
25
25
|
.option('--raw-tokens <path>', 'Path to a raw token source file (SCSS, CSS variables, JS/TS, Style Dictionary, etc.) to classify and import alongside components. Bypasses the interactive token prompt.')
|
|
26
26
|
.option('--select-all', 'Select all extracted components for generation (default)')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.15.1-dev-build-
|
|
3
|
+
"version": "2.15.1-dev-build-484aae5.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"react": "^18.3.1",
|
|
35
35
|
"react-devtools-core": "^4.19.1",
|
|
36
36
|
"react-dom": "^18.3.1",
|
|
37
|
-
"@contentful/experience-design-system-
|
|
38
|
-
"@contentful/experience-design-system-
|
|
37
|
+
"@contentful/experience-design-system-types": "2.15.1-dev-build-484aae5.0",
|
|
38
|
+
"@contentful/experience-design-system-extraction": "2.15.1-dev-build-484aae5.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tsconfig/node24": "^24.0.3",
|