@contentful/experience-design-system-cli 2.30.2-dev-build-2c13c19.0 → 2.31.1-dev-build-bd7d043.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.30.2-dev-build-2c13c19.0",
3
+ "version": "2.31.1-dev-build-bd7d043.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -7,7 +7,6 @@ export interface PipelineOptions {
7
7
  cmaToken?: string;
8
8
  agent: string;
9
9
  model?: string;
10
- bedrock?: boolean;
11
10
  skipAnalyze: boolean;
12
11
  skipGenerate: boolean;
13
12
  print: boolean;
@@ -7,7 +7,6 @@ export declare function buildSelectAgentArgs(opts: {
7
7
  sessionId: string;
8
8
  agent: string;
9
9
  model?: string;
10
- bedrock?: boolean;
11
10
  selectPromptPath?: string;
12
11
  noCache?: boolean;
13
12
  }): string[];
@@ -24,7 +23,6 @@ export declare function buildGenerateComponentsArgs(opts: {
24
23
  tokensPath?: string;
25
24
  agent: string;
26
25
  model?: string;
27
- bedrock?: boolean;
28
26
  noCache?: boolean;
29
27
  generatePromptPath?: string;
30
28
  }): string[];
@@ -51,7 +49,6 @@ export type WizardAppProps = {
51
49
  initialHost?: string;
52
50
  initialAgent?: string;
53
51
  initialModel?: string;
54
- bedrock?: boolean;
55
52
  initialProjectPath?: string;
56
53
  host?: string;
57
54
  autoAcceptScope?: boolean;
@@ -83,4 +80,4 @@ export type WizardAppProps = {
83
80
  onRunPicked?: (selection: RunPickerSelection) => void;
84
81
  allowDeletions?: boolean;
85
82
  };
86
- export declare function WizardApp({ initialSpaceId, initialEnvironmentId, initialCmaToken, initialHost, initialAgent, initialModel, bedrock, initialProjectPath, host, autoAcceptScope, autoRejectCycles, compositionMode, compositionMap, compositionAgent, compositionAgentMode, compositionRefresh, generateMap, promptOverrides, noCache, autoFilter, livePreview, noPush, noSave, outDirOverride, onConflictMode, selectPromptPath, generatePromptPath, skipMapTokens, seedExtractSessionId, seedGenerateSessionId, seedTokenSessionId, seedTokensPath, initialStep, initialRawTokensPath, initialRuns, onRunPicked, allowDeletions, }?: WizardAppProps): React.ReactElement;
83
+ export declare function WizardApp({ initialSpaceId, initialEnvironmentId, initialCmaToken, initialHost, initialAgent, initialModel, initialProjectPath, host, autoAcceptScope, autoRejectCycles, compositionMode, compositionMap, compositionAgent, compositionAgentMode, compositionRefresh, generateMap, promptOverrides, noCache, autoFilter, livePreview, noPush, noSave, outDirOverride, onConflictMode, selectPromptPath, generatePromptPath, skipMapTokens, seedExtractSessionId, seedGenerateSessionId, seedTokenSessionId, seedTokensPath, initialStep, initialRawTokensPath, initialRuns, onRunPicked, allowDeletions, }?: WizardAppProps): React.ReactElement;
package/dist/src/index.js CHANGED
@@ -275,38 +275,22 @@ function resolveBinary(agent) {
275
275
  return override.trim();
276
276
  return AGENT_BINARIES[agent];
277
277
  }
278
- function agentSupportsBedrock(agent) {
279
- return BEDROCK_CAPABLE_AGENTS.has(agent);
280
- }
281
- function resolveAgentModel(agent, explicit, bedrock = false) {
278
+ function resolveAgentModel(agent, explicit) {
282
279
  if (explicit && explicit.trim())
283
280
  return explicit.trim();
284
281
  const override = process.env[`EDS_AGENT_MODEL_${agent.toUpperCase()}`];
285
282
  if (override && override.trim())
286
283
  return override.trim();
287
- if (bedrock && agent === "codex")
288
- return DEFAULT_CODEX_BEDROCK_MODEL;
289
- if (bedrock && agent === "opencode")
290
- return withBedrockProviderPrefix(DEFAULT_MODELS.opencode);
291
284
  return DEFAULT_MODELS[agent];
292
285
  }
293
- function withBedrockProviderPrefix(model) {
294
- return model.includes("/") ? model : `amazon-bedrock/${model}`;
295
- }
296
- function codexBedrockConfigArgs() {
297
- const region = process.env.AWS_REGION?.trim() || process.env.AWS_DEFAULT_REGION?.trim() || DEFAULT_CODEX_BEDROCK_REGION;
298
- return ["-c", "model_provider=amazon-bedrock", "-c", `model_providers.amazon-bedrock.region=${region}`];
299
- }
300
- function buildArgs(agent, prompt2, model, promptViaStdin = false, bedrock = false) {
301
- const modelArg = ["--model", resolveAgentModel(agent, model, bedrock)];
286
+ function buildArgs(agent, prompt2, model, promptViaStdin = false) {
287
+ const modelArg = ["--model", resolveAgentModel(agent, model)];
302
288
  const promptArg = promptViaStdin ? [] : [prompt2];
303
289
  switch (agent) {
304
290
  case "claude":
305
291
  return ["--print", ...modelArg, ...promptArg];
306
- case "codex": {
307
- const bedrockArgs = bedrock ? codexBedrockConfigArgs() : [];
308
- return ["exec", ...bedrockArgs, ...modelArg, "--dangerously-bypass-approvals-and-sandbox", ...promptArg];
309
- }
292
+ case "codex":
293
+ return ["exec", ...modelArg, "--dangerously-bypass-approvals-and-sandbox", ...promptArg];
310
294
  case "opencode":
311
295
  return ["run", ...modelArg, ...promptArg];
312
296
  case "cursor":
@@ -320,25 +304,21 @@ function buildArgs(agent, prompt2, model, promptViaStdin = false, bedrock = fals
320
304
  }
321
305
  async function runAgent(options) {
322
306
  const { agent, prompt: prompt2, timeoutMs, model, onOutput, promptViaStdin, onDebugEvent } = options;
323
- const bedrock = options.bedrock ?? process.env.EDS_BEDROCK === "1";
324
307
  const binary = resolveBinary(agent);
325
308
  const useStdin2 = !!promptViaStdin;
326
- const args = buildArgs(agent, prompt2, model, useStdin2, bedrock);
309
+ const args = buildArgs(agent, prompt2, model, useStdin2);
327
310
  const startedAt = Date.now();
328
311
  onDebugEvent?.("run.start", {
329
312
  agent,
330
313
  binary,
331
314
  model,
332
- bedrock: !!bedrock,
333
315
  timeoutMs,
334
316
  promptLen: prompt2.length,
335
317
  promptHead: prompt2.slice(0, 500)
336
318
  });
337
319
  return new Promise((resolve27) => {
338
- const bedrockEnv = bedrock ? BEDROCK_ENV_BY_AGENT[agent] : void 0;
339
320
  const child = spawn(binary, args, {
340
- stdio: ["pipe", "pipe", "pipe"],
341
- ...bedrockEnv ? { env: { ...process.env, ...bedrockEnv } } : {}
321
+ stdio: ["pipe", "pipe", "pipe"]
342
322
  });
343
323
  if (useStdin2 && child.stdin) {
344
324
  child.stdin.on("error", () => {
@@ -456,7 +436,7 @@ function extractSentinelOutput(stdout) {
456
436
  return "multiple";
457
437
  return stdout.slice(startIdx + START.length, endIdx).trim();
458
438
  }
459
- var VALID_SELECT_TOOL_NAMES, VALID_TOOL_NAMES, VALID_TOKEN_TOOL_NAMES, VALID_CDF_TYPES, VALID_CATEGORIES, AGENT_BINARIES, BEDROCK_ENV_BY_AGENT, BEDROCK_CAPABLE_AGENTS, DEFAULT_CODEX_BEDROCK_REGION, DEFAULT_MODELS, DEFAULT_CODEX_BEDROCK_MODEL;
439
+ var VALID_SELECT_TOOL_NAMES, VALID_TOOL_NAMES, VALID_TOKEN_TOOL_NAMES, VALID_CDF_TYPES, VALID_CATEGORIES, AGENT_BINARIES, DEFAULT_MODELS;
460
440
  var init_agent_runner = __esm({
461
441
  "packages/experience-design-system-generation/dist/src/agent-runner.js"() {
462
442
  "use strict";
@@ -473,14 +453,9 @@ var init_agent_runner = __esm({
473
453
  cursor: "cursor-agent",
474
454
  copilot: "copilot"
475
455
  };
476
- BEDROCK_ENV_BY_AGENT = {
477
- claude: { CLAUDE_CODE_USE_BEDROCK: "1" }
478
- };
479
- BEDROCK_CAPABLE_AGENTS = /* @__PURE__ */ new Set(["claude", "codex", "opencode"]);
480
- DEFAULT_CODEX_BEDROCK_REGION = "us-east-1";
481
456
  DEFAULT_MODELS = {
482
457
  claude: "haiku",
483
- codex: "gpt-5.6-luna",
458
+ codex: "gpt-5.4-mini",
484
459
  // requires OPENAI_API_KEY; ChatGPT account users must pass --model
485
460
  opencode: "claude-haiku-4-5",
486
461
  cursor: "gpt-mini",
@@ -488,7 +463,6 @@ var init_agent_runner = __esm({
488
463
  copilot: "Auto"
489
464
  // the only model guaranteed on every Copilot plan (Free/Pro/Business/Enterprise); Pro+ users override via EDS_AGENT_MODEL_COPILOT
490
465
  };
491
- DEFAULT_CODEX_BEDROCK_MODEL = "openai.gpt-5.6-luna";
492
466
  }
493
467
  });
494
468
 
@@ -878,7 +852,6 @@ var src_exports = {};
878
852
  __export(src_exports, {
879
853
  AGENT_NAMES: () => AGENT_NAMES,
880
854
  DEFAULT_AGENT_NAME: () => DEFAULT_AGENT_NAME,
881
- agentSupportsBedrock: () => agentSupportsBedrock,
882
855
  buildArgs: () => buildArgs,
883
856
  buildPrompt: () => buildPrompt,
884
857
  checkAgentAuth: () => checkAgentAuth,
@@ -27618,7 +27591,6 @@ import { jsx as jsx52, jsxs as jsxs51 } from "react/jsx-runtime";
27618
27591
  function buildSelectAgentArgs(opts) {
27619
27592
  const args = ["analyze", "select-agent", "--agent", opts.agent, "--session", opts.sessionId, "--exclude-invalid"];
27620
27593
  if (opts.model) args.push("--model", opts.model);
27621
- if (opts.bedrock) args.push("--bedrock");
27622
27594
  if (opts.selectPromptPath) args.push("--select-prompt-path", opts.selectPromptPath);
27623
27595
  if (opts.noCache) args.push("--no-cache");
27624
27596
  return args;
@@ -27654,7 +27626,6 @@ function buildGenerateComponentsArgs(opts) {
27654
27626
  const args = ["generate", "components", "--agent", opts.agent, "--session", opts.sessionId];
27655
27627
  if (opts.tokensPath) args.push("--tokens", opts.tokensPath);
27656
27628
  if (opts.model) args.push("--model", opts.model);
27657
- if (opts.bedrock) args.push("--bedrock");
27658
27629
  if (opts.noCache) args.push("--no-cache");
27659
27630
  if (opts.generatePromptPath) args.push("--generate-prompt-path", opts.generatePromptPath);
27660
27631
  return args;
@@ -27697,7 +27668,6 @@ function WizardApp({
27697
27668
  initialHost,
27698
27669
  initialAgent,
27699
27670
  initialModel,
27700
- bedrock = false,
27701
27671
  initialProjectPath,
27702
27672
  host,
27703
27673
  autoAcceptScope = false,
@@ -27759,7 +27729,6 @@ function WizardApp({
27759
27729
  step: modifyEntryReady || rawTokensEntryReady || pushFromPickerReady ? initialStepResolved : initialRuns && initialRuns.length > 0 ? "run-picker" : initialStepResolved,
27760
27730
  agent: initialAgent ?? "claude",
27761
27731
  ...initialModel ? { agentModel: initialModel } : {},
27762
- ...bedrock ? { bedrock: true } : {},
27763
27732
  projectPath: initialProjectPath ?? "",
27764
27733
  outDir: initialOutDir,
27765
27734
  rawTokensPath: rawTokensEntryReady ? initialRawTokensPath : "",
@@ -27899,7 +27868,6 @@ If you are using AWS Bedrock, run:
27899
27868
  const result = await new Promise((res) => {
27900
27869
  const tokenArgs = [findCliPath(), "generate", "tokens", "--agent", state.agent, "--raw-tokens", rawTokensPath];
27901
27870
  if (state.agentModel) tokenArgs.push("--model", state.agentModel);
27902
- if (state.bedrock) tokenArgs.push("--bedrock");
27903
27871
  const child = spawn4("node", tokenArgs);
27904
27872
  let stdout2 = "";
27905
27873
  let stderr = "";
@@ -28020,7 +27988,6 @@ If you are using AWS Bedrock, run:
28020
27988
  if (generateMap) extractArgs.push("--generate-map", generateMap);
28021
27989
  for (const p of promptOverrides ?? []) extractArgs.push("--prompt", p);
28022
27990
  if (state.agent) extractArgs.push("--agent", state.agent);
28023
- if (state.bedrock) extractArgs.push("--bedrock");
28024
27991
  }
28025
27992
  const child = spawn4("node", extractArgs);
28026
27993
  let stdout2 = "";
@@ -28112,7 +28079,6 @@ Make sure this path contains TypeScript/React/Vue component files (.tsx, .ts, .v
28112
28079
  sessionId: sessionId2,
28113
28080
  agent: state.agent,
28114
28081
  ...state.agentModel ? { model: state.agentModel } : {},
28115
- ...state.bedrock ? { bedrock: true } : {},
28116
28082
  selectPromptPath,
28117
28083
  noCache
28118
28084
  });
@@ -28211,7 +28177,6 @@ Make sure this path contains TypeScript/React/Vue component files (.tsx, .ts, .v
28211
28177
  tokensPath,
28212
28178
  agent: state.agent,
28213
28179
  ...state.agentModel ? { model: state.agentModel } : {},
28214
- ...state.bedrock ? { bedrock: true } : {},
28215
28180
  noCache: effectiveNoCache
28216
28181
  })
28217
28182
  ];
@@ -28281,7 +28246,6 @@ Make sure this path contains TypeScript/React/Vue component files (.tsx, .ts, .v
28281
28246
  tokensPath,
28282
28247
  agent: state.agent,
28283
28248
  ...state.agentModel ? { model: state.agentModel } : {},
28284
- ...state.bedrock ? { bedrock: true } : {},
28285
28249
  noCache: effectiveNoCache,
28286
28250
  generatePromptPath
28287
28251
  })
@@ -29789,15 +29753,12 @@ import { isAbsolute as isAbsolute4, join as join15, relative as relative3, resol
29789
29753
  init_src();
29790
29754
  var AGENT_DESCRIPTION = `Agent to use: ${AGENT_NAMES.join(", ")} (defaults to value saved by experiences setup)`;
29791
29755
  var MODEL_DESCRIPTION = "Model to use (defaults to a lightweight per-agent model; override with EDS_AGENT_MODEL_<AGENT>)";
29792
- var BEDROCK_AGENTS = AGENT_NAMES.filter((agent) => agentSupportsBedrock(agent)).join(", ");
29793
- var BEDROCK_DESCRIPTION = `Route the selected agent through AWS Bedrock instead of its default model provider (requires AWS credentials in the environment: AWS_PROFILE, or AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY/AWS_SESSION_TOKEN, plus AWS_REGION). Only supported by agents with a Bedrock routing mechanism (currently: ${BEDROCK_AGENTS}).`;
29794
29756
  function addAgentModelOptions(cmd, config = {}) {
29795
29757
  const { agentDescription = AGENT_DESCRIPTION, includeModel = true, modelDescription = MODEL_DESCRIPTION } = config;
29796
29758
  cmd.option("--agent <name>", agentDescription);
29797
29759
  if (includeModel) {
29798
29760
  cmd.option("--model <name>", modelDescription);
29799
29761
  }
29800
- cmd.option("--bedrock", BEDROCK_DESCRIPTION);
29801
29762
  return cmd;
29802
29763
  }
29803
29764
 
@@ -30586,12 +30547,6 @@ function registerAnalyzeSelectAgentCommand(program) {
30586
30547
  return;
30587
30548
  }
30588
30549
  const agent = agentName;
30589
- if (opts.bedrock && !agentSupportsBedrock(agent)) {
30590
- process.stderr.write(`Error: --bedrock is not supported for --agent ${agent}
30591
- `);
30592
- await exitWithAnalytics(1);
30593
- return;
30594
- }
30595
30550
  const selectPromptPath = opts.selectPromptPath ?? savedCreds.selectPromptPath;
30596
30551
  if (selectPromptPath) {
30597
30552
  const resolvedPath = resolve12(selectPromptPath);
@@ -31835,14 +31790,6 @@ function registerAnalyzeCommand(program) {
31835
31790
  }
31836
31791
  return v;
31837
31792
  })();
31838
- if (opts.bedrock) {
31839
- const bedrockAgent = resolveCompositionAgentName(opts.agent);
31840
- if (!agentSupportsBedrock(bedrockAgent)) {
31841
- process.stderr.write(`Error: --bedrock is not supported for --agent ${bedrockAgent}
31842
- `);
31843
- process.exit(1);
31844
- }
31845
- }
31846
31793
  const projectRoot = resolve15(opts.project);
31847
31794
  const outDir = join15(projectRoot, ".contentful");
31848
31795
  let sourceDirectory;
@@ -32689,9 +32636,6 @@ async function runGenerateSkill(skill, opts, verbose = false) {
32689
32636
  );
32690
32637
  }
32691
32638
  const agent = agentName;
32692
- if (opts.bedrock && !agentSupportsBedrock(agent)) {
32693
- die2(`Error: --bedrock is not supported for --agent ${agent}`);
32694
- }
32695
32639
  const generatePromptPath = skill === "components" ? opts.generatePromptPath ?? savedCreds.generatePromptPath : void 0;
32696
32640
  if (generatePromptPath) {
32697
32641
  if (!await pathExists3(resolve17(generatePromptPath))) {
@@ -34356,7 +34300,6 @@ function registerMapTokensCommand(program) {
34356
34300
  }
34357
34301
 
34358
34302
  // packages/experience-design-system-cli/src/import/command.ts
34359
- init_src();
34360
34303
  init_path_utils();
34361
34304
  import { resolve as resolve25, join as join25 } from "node:path";
34362
34305
 
@@ -34512,7 +34455,6 @@ async function runPipeline(opts, progressWriter, cliPathOverride) {
34512
34455
  if (opts.generateMap) analyzeArgs.push("--generate-map", opts.generateMap);
34513
34456
  for (const p of opts.promptOverrides ?? []) analyzeArgs.push("--prompt", p);
34514
34457
  if (opts.agent) analyzeArgs.push("--agent", opts.agent);
34515
- if (opts.bedrock) analyzeArgs.push("--bedrock");
34516
34458
  }
34517
34459
  const r = await runStep(analyzeArgs, cliPath, sessionId2);
34518
34460
  const durationMs = Date.now() - t0;
@@ -34563,7 +34505,6 @@ async function runPipeline(opts, progressWriter, cliPathOverride) {
34563
34505
  if (useAgentSelect) {
34564
34506
  editArgs = ["analyze", "select-agent", "--session", extractSessionId, "--agent", opts.agent];
34565
34507
  if (opts.model) editArgs.push("--model", opts.model);
34566
- if (opts.bedrock) editArgs.push("--bedrock");
34567
34508
  if (opts.excludeInvalid) editArgs.push("--exclude-invalid");
34568
34509
  if (opts.noCache) editArgs.push("--no-cache");
34569
34510
  if (opts.selectPromptPath) editArgs.push("--select-prompt-path", opts.selectPromptPath);
@@ -34625,7 +34566,6 @@ async function runPipeline(opts, progressWriter, cliPathOverride) {
34625
34566
  const generateLabel = stepLabel("Categorizing component props");
34626
34567
  const generateArgs = ["generate", "components", "--agent", opts.agent];
34627
34568
  if (opts.model) generateArgs.push("--model", opts.model);
34628
- if (opts.bedrock) generateArgs.push("--bedrock");
34629
34569
  if (extractSessionId) generateArgs.push("--session", extractSessionId);
34630
34570
  if (opts.dryRun) generateArgs.push("--dry-run");
34631
34571
  if (opts.verbose) generateArgs.push("--verbose");
@@ -35656,11 +35596,6 @@ function registerImportCommand(program) {
35656
35596
  const resolvedAgent = resolveAgent(opts.agent, creds.agent);
35657
35597
  const resolvedModel = resolveModel(opts.model, creds.agentModel);
35658
35598
  const resolvedCompositionMode = resolveCompositionMode(opts, creds.compositionMode);
35659
- if (opts.bedrock && !(isAgentName(resolvedAgent) && agentSupportsBedrock(resolvedAgent))) {
35660
- process.stderr.write(`Error: --bedrock is not supported for --agent ${resolvedAgent}
35661
- `);
35662
- process.exit(1);
35663
- }
35664
35599
  const pickerDecision = await shouldShowRunPicker({
35665
35600
  flags: {
35666
35601
  ...opts.pushFromRun !== void 0 ? { pushFromRun: opts.pushFromRun } : {},
@@ -35689,7 +35624,6 @@ function registerImportCommand(program) {
35689
35624
  initialHost: toConfiguredHost(opts.host ?? creds.host) ?? DEFAULT_CONFIGURED_HOST,
35690
35625
  initialAgent: resolvedAgent,
35691
35626
  ...resolvedModel ? { initialModel: resolvedModel } : {},
35692
- ...opts.bedrock ? { bedrock: true } : {},
35693
35627
  initialProjectPath: opts.project !== "." ? normalizePath(opts.project) : void 0,
35694
35628
  host: opts.host,
35695
35629
  autoAcceptScope,
@@ -35753,11 +35687,6 @@ function registerImportCommand(program) {
35753
35687
  const headlessAgent = resolveAgent(opts.agent, headlessCreds.agent);
35754
35688
  const headlessModel = resolveModel(opts.model, headlessCreds.agentModel);
35755
35689
  const headlessCompositionMode = resolveCompositionMode(opts, headlessCreds.compositionMode);
35756
- if (opts.bedrock && !(isAgentName(headlessAgent) && agentSupportsBedrock(headlessAgent))) {
35757
- process.stderr.write(`Error: --bedrock is not supported for --agent ${headlessAgent}
35758
- `);
35759
- process.exit(1);
35760
- }
35761
35690
  const result = await runPipeline(
35762
35691
  {
35763
35692
  project: projectRoot,
@@ -35767,7 +35696,6 @@ function registerImportCommand(program) {
35767
35696
  cmaToken,
35768
35697
  agent: headlessAgent,
35769
35698
  model: headlessModel,
35770
- ...opts.bedrock ? { bedrock: true } : {},
35771
35699
  tokens: opts.tokens,
35772
35700
  selectAll: opts.selectAll,
35773
35701
  select: opts.select.length > 0 ? opts.select : void 0,
@@ -36905,13 +36833,6 @@ async function runBuild(opts) {
36905
36833
  child.on("exit", (code) => settle(code ?? 1));
36906
36834
  });
36907
36835
  }
36908
- function resolveBedrockFromAncestors(actionCommand) {
36909
- for (let c2 = actionCommand; c2; c2 = c2.parent) {
36910
- const opts = c2.opts();
36911
- if (opts.bedrock) return true;
36912
- }
36913
- return false;
36914
- }
36915
36836
  function registerImportV2Command(program) {
36916
36837
  program.command("importv2").description("Launch the v2 import TUI (experience-design-system-cli-v2)").action(async () => {
36917
36838
  const { render: render7 } = await import("ink");
@@ -36959,9 +36880,6 @@ function createProgram() {
36959
36880
  break;
36960
36881
  }
36961
36882
  }
36962
- if (resolveBedrockFromAncestors(actionCommand)) {
36963
- process.env.EDS_BEDROCK = "1";
36964
- }
36965
36883
  const chain = [];
36966
36884
  for (let c2 = actionCommand; c2 && c2.parent; c2 = c2.parent) chain.unshift(c2.name());
36967
36885
  const commandChain = chain.join(" ") || actionCommand.name();
@@ -1,16 +1,13 @@
1
1
  import type { Command } from 'commander';
2
2
  export declare const AGENT_DESCRIPTION: string;
3
3
  export declare const MODEL_DESCRIPTION = "Model to use (defaults to a lightweight per-agent model; override with EDS_AGENT_MODEL_<AGENT>)";
4
- export declare const BEDROCK_DESCRIPTION: string;
5
4
  export interface AgentModelOptionsConfig {
6
5
  agentDescription?: string;
7
6
  includeModel?: boolean;
8
7
  modelDescription?: string;
9
8
  }
10
9
  /**
11
- * Register --agent, --bedrock, and optional --model flags with a Commander
12
- * command. Pass includeModel: false to omit --model only — --bedrock is
13
- * independent of model selection (it's a routing switch, not a model choice)
14
- * and is always registered alongside --agent.
10
+ * Register --agent and optionally --model flags to a Commander command, with customizable descriptions.
11
+ * Pass `includeModel: false` for commands where the model dimension is not applicable (e.g., mapping-resolution agents that select an agent for logic, not model choice).
15
12
  */
16
13
  export declare function addAgentModelOptions(cmd: Command, config?: AgentModelOptionsConfig): Command;
@@ -15,11 +15,5 @@ export declare function runBuild(opts: {
15
15
  }): Promise<{
16
16
  exitCode: number;
17
17
  }>;
18
- /**
19
- * Walks `actionCommand` and its ancestors for a truthy `--bedrock`. --bedrock
20
- * is registered per-subcommand (not at program scope, unlike --debug), so a
21
- * root-level or subcommand-level setting can each carry it.
22
- */
23
- export declare function resolveBedrockFromAncestors(actionCommand: Command): boolean;
24
18
  export declare function createProgram(): Command;
25
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.30.2-dev-build-2c13c19.0",
3
+ "version": "2.31.1-dev-build-bd7d043.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "svelte": "^5.56.4",
40
40
  "ts-morph": "^27.0.2",
41
41
  "typescript": "^5.9.3",
42
- "@contentful/experience-design-system-cli-v2": "2.30.2-dev-build-2c13c19.0",
43
- "@contentful/experience-design-system-types": "2.30.2-dev-build-2c13c19.0"
42
+ "@contentful/experience-design-system-cli-v2": "2.31.1-dev-build-bd7d043.0",
43
+ "@contentful/experience-design-system-types": "2.31.1-dev-build-bd7d043.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@tsconfig/node24": "^24.0.4",
@@ -52,9 +52,9 @@
52
52
  "ink-testing-library": "^4.0.0",
53
53
  "typescript-eslint": "^8.67.0",
54
54
  "vitest": "^4.0.16",
55
- "@contentful/experience-design-system-client": "2.30.2-dev-build-2c13c19.0",
56
- "@contentful/experience-design-system-extraction": "2.30.2-dev-build-2c13c19.0",
57
- "@contentful/experience-design-system-generation": "2.30.2-dev-build-2c13c19.0"
55
+ "@contentful/experience-design-system-extraction": "2.31.1-dev-build-bd7d043.0",
56
+ "@contentful/experience-design-system-generation": "2.31.1-dev-build-bd7d043.0",
57
+ "@contentful/experience-design-system-client": "2.31.1-dev-build-bd7d043.0"
58
58
  },
59
59
  "repository": {
60
60
  "type": "git",