@contentful/experience-design-system-generation 2.32.1-dev-build-7d7e3cc.0 → 2.32.1-dev-build-a0479a6.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-generation",
3
- "version": "2.32.1-dev-build-7d7e3cc.0",
3
+ "version": "2.32.1-dev-build-a0479a6.0",
4
4
  "description": "Agent-invocation and skill-prompt engine for the Contentful Experience Design System SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -108,7 +108,7 @@ export declare function resolveBinary(agent: AgentName): string;
108
108
  * `EDS_AGENT_BINARY_<AGENT>` pattern), otherwise the lightweight default for
109
109
  * that agent.
110
110
  */
111
- export declare function resolveAgentModel(agent: AgentName, explicit?: string): string;
111
+ export declare function resolveAgentModel(agent: AgentName, explicit?: string): string | undefined;
112
112
  export type AgentDebugEvent = (name: string, payload?: Record<string, unknown>) => void;
113
113
  export declare function buildArgs(agent: AgentName, prompt: string, model?: string, promptViaStdin?: boolean): string[];
114
114
  export declare function runAgent(options: {
@@ -282,12 +282,12 @@ export function resolveBinary(agent) {
282
282
  }
283
283
  /**
284
284
  * Default models per agent — lightweight/fast picks to control cost when no
285
- * explicit model is configured. cursor uses `gpt-mini` (verified alias from
286
- * GetUsableModels; haiku is not available in cursor's model catalog).
285
+ * explicit model is configured. cursor uses `gpt-mini`
286
+ * (verified alias from GetUsableModels; haiku is not available in cursor's
287
+ * model catalog).
287
288
  */
288
289
  const DEFAULT_MODELS = {
289
290
  claude: 'haiku',
290
- codex: 'gpt-5.4-mini', // requires OPENAI_API_KEY; ChatGPT account users must pass --model
291
291
  opencode: 'claude-haiku-4-5',
292
292
  cursor: 'gpt-mini', // cursor alias for gpt-5.4-mini-medium; haiku not in cursor's catalog
293
293
  copilot: 'Auto', // the only model guaranteed on every Copilot plan (Free/Pro/Business/Enterprise); Pro+ users override via EDS_AGENT_MODEL_COPILOT
@@ -307,7 +307,8 @@ export function resolveAgentModel(agent, explicit) {
307
307
  return DEFAULT_MODELS[agent];
308
308
  }
309
309
  export function buildArgs(agent, prompt, model, promptViaStdin = false) {
310
- const modelArg = ['--model', resolveAgentModel(agent, model)];
310
+ const resolvedModel = resolveAgentModel(agent, model);
311
+ const modelArg = resolvedModel ? ['--model', resolvedModel] : [];
311
312
  // When the prompt is delivered on stdin, omit it from argv — a large prompt
312
313
  // as a command-line argument overflows ARG_MAX (spawn E2BIG). All four CLIs
313
314
  // read the prompt from stdin when it isn't passed positionally.
@@ -339,7 +340,7 @@ export function buildArgs(agent, prompt, model, promptViaStdin = false) {
339
340
  // value, so promptViaStdin will fail here — callers must pass the
340
341
  // prompt inline for copilot.
341
342
  const copilotModel = resolveAgentModel('copilot', model);
342
- const copilotModelArg = copilotModel === 'Auto' ? [] : ['--model', copilotModel];
343
+ const copilotModelArg = !copilotModel || copilotModel === 'Auto' ? [] : ['--model', copilotModel];
343
344
  return ['-p', ...promptArg, ...copilotModelArg, '--allow-all-tools'];
344
345
  }
345
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-generation",
3
- "version": "2.32.1-dev-build-7d7e3cc.0",
3
+ "version": "2.32.1-dev-build-a0479a6.0",
4
4
  "description": "Agent-invocation and skill-prompt engine for the Contentful Experience Design System SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "skills/"
23
23
  ],
24
24
  "dependencies": {
25
- "@contentful/experience-design-system-types": "2.32.1-dev-build-7d7e3cc.0"
25
+ "@contentful/experience-design-system-types": "2.32.1-dev-build-a0479a6.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tsconfig/node24": "^24.0.4",