@contentful/experience-design-system-cli 2.27.5-dev-build-63dfc4a.0 → 2.27.5-dev-build-288ad9b.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
|
@@ -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[];
|
|
@@ -40,7 +38,6 @@ export type WizardAppProps = {
|
|
|
40
38
|
initialHost?: string;
|
|
41
39
|
initialAgent?: string;
|
|
42
40
|
initialModel?: string;
|
|
43
|
-
bedrock?: boolean;
|
|
44
41
|
initialProjectPath?: string;
|
|
45
42
|
host?: string;
|
|
46
43
|
autoAcceptScope?: boolean;
|
|
@@ -71,4 +68,4 @@ export type WizardAppProps = {
|
|
|
71
68
|
onRunPicked?: (selection: RunPickerSelection) => void;
|
|
72
69
|
allowDeletions?: boolean;
|
|
73
70
|
};
|
|
74
|
-
export declare function WizardApp({ initialSpaceId, initialEnvironmentId, initialCmaToken, initialHost, initialAgent, initialModel,
|
|
71
|
+
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, seedExtractSessionId, seedGenerateSessionId, seedTokenSessionId, seedTokensPath, initialStep, initialRawTokensPath, initialRuns, onRunPicked, allowDeletions, }?: WizardAppProps): React.ReactElement;
|
package/dist/src/index.js
CHANGED
|
@@ -231,9 +231,6 @@ function resolveBinary(agent) {
|
|
|
231
231
|
return override.trim();
|
|
232
232
|
return AGENT_BINARIES[agent];
|
|
233
233
|
}
|
|
234
|
-
function agentSupportsBedrock(agent) {
|
|
235
|
-
return agent in BEDROCK_ENV_BY_AGENT;
|
|
236
|
-
}
|
|
237
234
|
function resolveAgentModel(agent, explicit) {
|
|
238
235
|
if (explicit && explicit.trim())
|
|
239
236
|
return explicit.trim();
|
|
@@ -258,7 +255,6 @@ function buildArgs(agent, prompt2, model, promptViaStdin = false) {
|
|
|
258
255
|
}
|
|
259
256
|
async function runAgent(options) {
|
|
260
257
|
const { agent, prompt: prompt2, timeoutMs, model, onOutput, promptViaStdin, onDebugEvent } = options;
|
|
261
|
-
const bedrock = options.bedrock ?? process.env.EDS_BEDROCK === "1";
|
|
262
258
|
const binary = resolveBinary(agent);
|
|
263
259
|
const useStdin2 = !!promptViaStdin;
|
|
264
260
|
const args = buildArgs(agent, prompt2, model, useStdin2);
|
|
@@ -267,16 +263,13 @@ async function runAgent(options) {
|
|
|
267
263
|
agent,
|
|
268
264
|
binary,
|
|
269
265
|
model,
|
|
270
|
-
bedrock: !!bedrock,
|
|
271
266
|
timeoutMs,
|
|
272
267
|
promptLen: prompt2.length,
|
|
273
268
|
promptHead: prompt2.slice(0, 500)
|
|
274
269
|
});
|
|
275
270
|
return new Promise((resolve27) => {
|
|
276
|
-
const bedrockEnv = bedrock ? BEDROCK_ENV_BY_AGENT[agent] : void 0;
|
|
277
271
|
const child = spawn(binary, args, {
|
|
278
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
279
|
-
...bedrockEnv ? { env: { ...process.env, ...bedrockEnv } } : {}
|
|
272
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
280
273
|
});
|
|
281
274
|
if (useStdin2 && child.stdin) {
|
|
282
275
|
child.stdin.on("error", () => {
|
|
@@ -394,7 +387,7 @@ function extractSentinelOutput(stdout) {
|
|
|
394
387
|
return "multiple";
|
|
395
388
|
return stdout.slice(startIdx + START.length, endIdx).trim();
|
|
396
389
|
}
|
|
397
|
-
var VALID_SELECT_TOOL_NAMES, VALID_TOOL_NAMES, VALID_TOKEN_TOOL_NAMES, VALID_CDF_TYPES, VALID_CATEGORIES, AGENT_BINARIES,
|
|
390
|
+
var VALID_SELECT_TOOL_NAMES, VALID_TOOL_NAMES, VALID_TOKEN_TOOL_NAMES, VALID_CDF_TYPES, VALID_CATEGORIES, AGENT_BINARIES, DEFAULT_MODELS;
|
|
398
391
|
var init_agent_runner = __esm({
|
|
399
392
|
"packages/experience-design-system-generation/dist/src/agent-runner.js"() {
|
|
400
393
|
"use strict";
|
|
@@ -410,9 +403,6 @@ var init_agent_runner = __esm({
|
|
|
410
403
|
opencode: "opencode",
|
|
411
404
|
cursor: "cursor-agent"
|
|
412
405
|
};
|
|
413
|
-
BEDROCK_ENV_BY_AGENT = {
|
|
414
|
-
claude: { CLAUDE_CODE_USE_BEDROCK: "1" }
|
|
415
|
-
};
|
|
416
406
|
DEFAULT_MODELS = {
|
|
417
407
|
claude: "haiku",
|
|
418
408
|
codex: "gpt-5.4-mini",
|
|
@@ -681,7 +671,6 @@ var src_exports = {};
|
|
|
681
671
|
__export(src_exports, {
|
|
682
672
|
AGENT_NAMES: () => AGENT_NAMES,
|
|
683
673
|
DEFAULT_AGENT_NAME: () => DEFAULT_AGENT_NAME,
|
|
684
|
-
agentSupportsBedrock: () => agentSupportsBedrock,
|
|
685
674
|
buildArgs: () => buildArgs,
|
|
686
675
|
buildPrompt: () => buildPrompt,
|
|
687
676
|
checkAgentAuth: () => checkAgentAuth,
|
|
@@ -26550,7 +26539,6 @@ import { jsx as jsx50, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
|
26550
26539
|
function buildSelectAgentArgs(opts) {
|
|
26551
26540
|
const args = ["analyze", "select-agent", "--agent", opts.agent, "--session", opts.sessionId, "--exclude-invalid"];
|
|
26552
26541
|
if (opts.model) args.push("--model", opts.model);
|
|
26553
|
-
if (opts.bedrock) args.push("--bedrock");
|
|
26554
26542
|
if (opts.selectPromptPath) args.push("--select-prompt-path", opts.selectPromptPath);
|
|
26555
26543
|
if (opts.noCache) args.push("--no-cache");
|
|
26556
26544
|
return args;
|
|
@@ -26586,7 +26574,6 @@ function buildGenerateComponentsArgs(opts) {
|
|
|
26586
26574
|
const args = ["generate", "components", "--agent", opts.agent, "--session", opts.sessionId];
|
|
26587
26575
|
if (opts.tokensPath) args.push("--tokens", opts.tokensPath);
|
|
26588
26576
|
if (opts.model) args.push("--model", opts.model);
|
|
26589
|
-
if (opts.bedrock) args.push("--bedrock");
|
|
26590
26577
|
if (opts.noCache) args.push("--no-cache");
|
|
26591
26578
|
if (opts.generatePromptPath) args.push("--generate-prompt-path", opts.generatePromptPath);
|
|
26592
26579
|
return args;
|
|
@@ -26619,7 +26606,6 @@ function WizardApp({
|
|
|
26619
26606
|
initialHost,
|
|
26620
26607
|
initialAgent,
|
|
26621
26608
|
initialModel,
|
|
26622
|
-
bedrock = false,
|
|
26623
26609
|
initialProjectPath,
|
|
26624
26610
|
host,
|
|
26625
26611
|
autoAcceptScope = false,
|
|
@@ -26680,7 +26666,6 @@ function WizardApp({
|
|
|
26680
26666
|
step: modifyEntryReady || rawTokensEntryReady || pushFromPickerReady ? initialStepResolved : initialRuns && initialRuns.length > 0 ? "run-picker" : initialStepResolved,
|
|
26681
26667
|
agent: initialAgent ?? "claude",
|
|
26682
26668
|
...initialModel ? { agentModel: initialModel } : {},
|
|
26683
|
-
...bedrock ? { bedrock: true } : {},
|
|
26684
26669
|
projectPath: initialProjectPath ?? "",
|
|
26685
26670
|
outDir: initialOutDir,
|
|
26686
26671
|
rawTokensPath: rawTokensEntryReady ? initialRawTokensPath : "",
|
|
@@ -26819,7 +26804,6 @@ If you are using AWS Bedrock, run:
|
|
|
26819
26804
|
const result = await new Promise((res) => {
|
|
26820
26805
|
const tokenArgs = [findCliPath(), "generate", "tokens", "--agent", state.agent, "--raw-tokens", rawTokensPath];
|
|
26821
26806
|
if (state.agentModel) tokenArgs.push("--model", state.agentModel);
|
|
26822
|
-
if (state.bedrock) tokenArgs.push("--bedrock");
|
|
26823
26807
|
const child = spawn4("node", tokenArgs);
|
|
26824
26808
|
let stdout2 = "";
|
|
26825
26809
|
let stderr = "";
|
|
@@ -26886,7 +26870,6 @@ If you are using AWS Bedrock, run:
|
|
|
26886
26870
|
if (generateMap) extractArgs.push("--generate-map", generateMap);
|
|
26887
26871
|
for (const p of promptOverrides ?? []) extractArgs.push("--prompt", p);
|
|
26888
26872
|
if (state.agent) extractArgs.push("--agent", state.agent);
|
|
26889
|
-
if (state.bedrock) extractArgs.push("--bedrock");
|
|
26890
26873
|
}
|
|
26891
26874
|
const child = spawn4("node", extractArgs);
|
|
26892
26875
|
let stdout2 = "";
|
|
@@ -26978,7 +26961,6 @@ Make sure this path contains TypeScript/React/Vue component files (.tsx, .ts, .v
|
|
|
26978
26961
|
sessionId: sessionId2,
|
|
26979
26962
|
agent: state.agent,
|
|
26980
26963
|
...state.agentModel ? { model: state.agentModel } : {},
|
|
26981
|
-
...state.bedrock ? { bedrock: true } : {},
|
|
26982
26964
|
selectPromptPath,
|
|
26983
26965
|
noCache
|
|
26984
26966
|
});
|
|
@@ -27077,7 +27059,6 @@ Make sure this path contains TypeScript/React/Vue component files (.tsx, .ts, .v
|
|
|
27077
27059
|
tokensPath,
|
|
27078
27060
|
agent: state.agent,
|
|
27079
27061
|
...state.agentModel ? { model: state.agentModel } : {},
|
|
27080
|
-
...state.bedrock ? { bedrock: true } : {},
|
|
27081
27062
|
noCache: effectiveNoCache
|
|
27082
27063
|
})
|
|
27083
27064
|
];
|
|
@@ -27147,7 +27128,6 @@ Make sure this path contains TypeScript/React/Vue component files (.tsx, .ts, .v
|
|
|
27147
27128
|
tokensPath,
|
|
27148
27129
|
agent: state.agent,
|
|
27149
27130
|
...state.agentModel ? { model: state.agentModel } : {},
|
|
27150
|
-
...state.bedrock ? { bedrock: true } : {},
|
|
27151
27131
|
noCache: effectiveNoCache,
|
|
27152
27132
|
generatePromptPath
|
|
27153
27133
|
})
|
|
@@ -28636,15 +28616,12 @@ import { isAbsolute as isAbsolute4, join as join15, relative as relative3, resol
|
|
|
28636
28616
|
init_src();
|
|
28637
28617
|
var AGENT_DESCRIPTION = `Agent to use: ${AGENT_NAMES.join(", ")} (defaults to value saved by experiences setup)`;
|
|
28638
28618
|
var MODEL_DESCRIPTION = "Model to use (defaults to a lightweight per-agent model; override with EDS_AGENT_MODEL_<AGENT>)";
|
|
28639
|
-
var BEDROCK_AGENTS = AGENT_NAMES.filter((agent) => agentSupportsBedrock(agent)).join(", ");
|
|
28640
|
-
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}).`;
|
|
28641
28619
|
function addAgentModelOptions(cmd, config = {}) {
|
|
28642
28620
|
const { agentDescription = AGENT_DESCRIPTION, includeModel = true, modelDescription = MODEL_DESCRIPTION } = config;
|
|
28643
28621
|
cmd.option("--agent <name>", agentDescription);
|
|
28644
28622
|
if (includeModel) {
|
|
28645
28623
|
cmd.option("--model <name>", modelDescription);
|
|
28646
28624
|
}
|
|
28647
|
-
cmd.option("--bedrock", BEDROCK_DESCRIPTION);
|
|
28648
28625
|
return cmd;
|
|
28649
28626
|
}
|
|
28650
28627
|
|
|
@@ -29433,12 +29410,6 @@ function registerAnalyzeSelectAgentCommand(program) {
|
|
|
29433
29410
|
return;
|
|
29434
29411
|
}
|
|
29435
29412
|
const agent = agentName;
|
|
29436
|
-
if (opts.bedrock && !agentSupportsBedrock(agent)) {
|
|
29437
|
-
process.stderr.write(`Error: --bedrock is not supported for --agent ${agent}
|
|
29438
|
-
`);
|
|
29439
|
-
await exitWithAnalytics(1);
|
|
29440
|
-
return;
|
|
29441
|
-
}
|
|
29442
29413
|
const selectPromptPath = opts.selectPromptPath ?? savedCreds.selectPromptPath;
|
|
29443
29414
|
if (selectPromptPath) {
|
|
29444
29415
|
const resolvedPath = resolve12(selectPromptPath);
|
|
@@ -30682,14 +30653,6 @@ function registerAnalyzeCommand(program) {
|
|
|
30682
30653
|
}
|
|
30683
30654
|
return v;
|
|
30684
30655
|
})();
|
|
30685
|
-
if (opts.bedrock) {
|
|
30686
|
-
const bedrockAgent = resolveCompositionAgentName(opts.agent);
|
|
30687
|
-
if (!agentSupportsBedrock(bedrockAgent)) {
|
|
30688
|
-
process.stderr.write(`Error: --bedrock is not supported for --agent ${bedrockAgent}
|
|
30689
|
-
`);
|
|
30690
|
-
process.exit(1);
|
|
30691
|
-
}
|
|
30692
|
-
}
|
|
30693
30656
|
const projectRoot = resolve15(opts.project);
|
|
30694
30657
|
const outDir = join15(projectRoot, ".contentful");
|
|
30695
30658
|
let sourceDirectory;
|
|
@@ -31525,9 +31488,6 @@ async function runGenerateSkill(skill, opts, verbose = false) {
|
|
|
31525
31488
|
);
|
|
31526
31489
|
}
|
|
31527
31490
|
const agent = agentName;
|
|
31528
|
-
if (opts.bedrock && !agentSupportsBedrock(agent)) {
|
|
31529
|
-
die2(`Error: --bedrock is not supported for --agent ${agent}`);
|
|
31530
|
-
}
|
|
31531
31491
|
const generatePromptPath = skill === "components" ? opts.generatePromptPath ?? savedCreds.generatePromptPath : void 0;
|
|
31532
31492
|
if (generatePromptPath) {
|
|
31533
31493
|
if (!await pathExists3(resolve17(generatePromptPath))) {
|
|
@@ -32772,7 +32732,6 @@ function registerPrintCommand(program) {
|
|
|
32772
32732
|
}
|
|
32773
32733
|
|
|
32774
32734
|
// packages/experience-design-system-cli/src/import/command.ts
|
|
32775
|
-
init_src();
|
|
32776
32735
|
init_path_utils();
|
|
32777
32736
|
import { resolve as resolve25, join as join25 } from "node:path";
|
|
32778
32737
|
|
|
@@ -32927,7 +32886,6 @@ async function runPipeline(opts, progressWriter, cliPathOverride) {
|
|
|
32927
32886
|
if (opts.generateMap) analyzeArgs.push("--generate-map", opts.generateMap);
|
|
32928
32887
|
for (const p of opts.promptOverrides ?? []) analyzeArgs.push("--prompt", p);
|
|
32929
32888
|
if (opts.agent) analyzeArgs.push("--agent", opts.agent);
|
|
32930
|
-
if (opts.bedrock) analyzeArgs.push("--bedrock");
|
|
32931
32889
|
}
|
|
32932
32890
|
const r = await runStep(analyzeArgs, cliPath, sessionId2);
|
|
32933
32891
|
const durationMs = Date.now() - t0;
|
|
@@ -32978,7 +32936,6 @@ async function runPipeline(opts, progressWriter, cliPathOverride) {
|
|
|
32978
32936
|
if (useAgentSelect) {
|
|
32979
32937
|
editArgs = ["analyze", "select-agent", "--session", extractSessionId, "--agent", opts.agent];
|
|
32980
32938
|
if (opts.model) editArgs.push("--model", opts.model);
|
|
32981
|
-
if (opts.bedrock) editArgs.push("--bedrock");
|
|
32982
32939
|
if (opts.excludeInvalid) editArgs.push("--exclude-invalid");
|
|
32983
32940
|
if (opts.noCache) editArgs.push("--no-cache");
|
|
32984
32941
|
if (opts.selectPromptPath) editArgs.push("--select-prompt-path", opts.selectPromptPath);
|
|
@@ -33040,7 +32997,6 @@ async function runPipeline(opts, progressWriter, cliPathOverride) {
|
|
|
33040
32997
|
const generateLabel = stepLabel("Categorizing component props");
|
|
33041
32998
|
const generateArgs = ["generate", "components", "--agent", opts.agent];
|
|
33042
32999
|
if (opts.model) generateArgs.push("--model", opts.model);
|
|
33043
|
-
if (opts.bedrock) generateArgs.push("--bedrock");
|
|
33044
33000
|
if (extractSessionId) generateArgs.push("--session", extractSessionId);
|
|
33045
33001
|
if (opts.dryRun) generateArgs.push("--dry-run");
|
|
33046
33002
|
if (opts.verbose) generateArgs.push("--verbose");
|
|
@@ -33984,11 +33940,6 @@ function registerImportCommand(program) {
|
|
|
33984
33940
|
const resolvedAgent = resolveAgent(opts.agent, creds.agent);
|
|
33985
33941
|
const resolvedModel = resolveModel(opts.model, creds.agentModel);
|
|
33986
33942
|
const resolvedCompositionMode = resolveCompositionMode(opts, creds.compositionMode);
|
|
33987
|
-
if (opts.bedrock && !(isAgentName(resolvedAgent) && agentSupportsBedrock(resolvedAgent))) {
|
|
33988
|
-
process.stderr.write(`Error: --bedrock is not supported for --agent ${resolvedAgent}
|
|
33989
|
-
`);
|
|
33990
|
-
process.exit(1);
|
|
33991
|
-
}
|
|
33992
33943
|
const pickerDecision = await shouldShowRunPicker({
|
|
33993
33944
|
flags: {
|
|
33994
33945
|
...opts.pushFromRun !== void 0 ? { pushFromRun: opts.pushFromRun } : {},
|
|
@@ -34017,7 +33968,6 @@ function registerImportCommand(program) {
|
|
|
34017
33968
|
initialHost: toConfiguredHost(opts.host ?? creds.host) ?? DEFAULT_CONFIGURED_HOST,
|
|
34018
33969
|
initialAgent: resolvedAgent,
|
|
34019
33970
|
...resolvedModel ? { initialModel: resolvedModel } : {},
|
|
34020
|
-
...opts.bedrock ? { bedrock: true } : {},
|
|
34021
33971
|
initialProjectPath: opts.project !== "." ? normalizePath(opts.project) : void 0,
|
|
34022
33972
|
host: opts.host,
|
|
34023
33973
|
autoAcceptScope,
|
|
@@ -34080,11 +34030,6 @@ function registerImportCommand(program) {
|
|
|
34080
34030
|
const headlessAgent = resolveAgent(opts.agent, headlessCreds.agent);
|
|
34081
34031
|
const headlessModel = resolveModel(opts.model, headlessCreds.agentModel);
|
|
34082
34032
|
const headlessCompositionMode = resolveCompositionMode(opts, headlessCreds.compositionMode);
|
|
34083
|
-
if (opts.bedrock && !(isAgentName(headlessAgent) && agentSupportsBedrock(headlessAgent))) {
|
|
34084
|
-
process.stderr.write(`Error: --bedrock is not supported for --agent ${headlessAgent}
|
|
34085
|
-
`);
|
|
34086
|
-
process.exit(1);
|
|
34087
|
-
}
|
|
34088
34033
|
const result = await runPipeline(
|
|
34089
34034
|
{
|
|
34090
34035
|
project: projectRoot,
|
|
@@ -34094,7 +34039,6 @@ function registerImportCommand(program) {
|
|
|
34094
34039
|
cmaToken,
|
|
34095
34040
|
agent: headlessAgent,
|
|
34096
34041
|
model: headlessModel,
|
|
34097
|
-
...opts.bedrock ? { bedrock: true } : {},
|
|
34098
34042
|
tokens: opts.tokens,
|
|
34099
34043
|
selectAll: opts.selectAll,
|
|
34100
34044
|
select: opts.select.length > 0 ? opts.select : void 0,
|
|
@@ -35230,13 +35174,6 @@ async function runBuild(opts) {
|
|
|
35230
35174
|
child.on("exit", (code) => settle(code ?? 1));
|
|
35231
35175
|
});
|
|
35232
35176
|
}
|
|
35233
|
-
function resolveBedrockFromAncestors(actionCommand) {
|
|
35234
|
-
for (let c2 = actionCommand; c2; c2 = c2.parent) {
|
|
35235
|
-
const opts = c2.opts();
|
|
35236
|
-
if (opts.bedrock) return true;
|
|
35237
|
-
}
|
|
35238
|
-
return false;
|
|
35239
|
-
}
|
|
35240
35177
|
function registerBuildCommand(program) {
|
|
35241
35178
|
program.command("build").description("Rebuild from source and re-link exo/experiences binaries to this build").action(async () => {
|
|
35242
35179
|
const pkgRoot = resolve26(dirname14(fileURLToPath5(import.meta.url)), "..", "..");
|
|
@@ -35273,9 +35210,6 @@ function createProgram() {
|
|
|
35273
35210
|
break;
|
|
35274
35211
|
}
|
|
35275
35212
|
}
|
|
35276
|
-
if (resolveBedrockFromAncestors(actionCommand)) {
|
|
35277
|
-
process.env.EDS_BEDROCK = "1";
|
|
35278
|
-
}
|
|
35279
35213
|
const chain = [];
|
|
35280
35214
|
for (let c2 = actionCommand; c2 && c2.parent; c2 = c2.parent) chain.unshift(c2.name());
|
|
35281
35215
|
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
|
|
12
|
-
*
|
|
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;
|
package/dist/src/program.d.ts
CHANGED
|
@@ -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.27.5-dev-build-
|
|
3
|
+
"version": "2.27.5-dev-build-288ad9b.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"svelte": "^5.56.4",
|
|
40
40
|
"ts-morph": "^27.0.2",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
|
-
"@contentful/experience-design-system-types": "2.27.5-dev-build-
|
|
42
|
+
"@contentful/experience-design-system-types": "2.27.5-dev-build-288ad9b.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"ink-testing-library": "^4.0.0",
|
|
52
52
|
"typescript-eslint": "^8.67.0",
|
|
53
53
|
"vitest": "^4.0.16",
|
|
54
|
-
"@contentful/experience-design-system-client": "2.27.5-dev-build-
|
|
55
|
-
"@contentful/experience-design-system-extraction": "2.27.5-dev-build-
|
|
56
|
-
"@contentful/experience-design-system-generation": "2.27.5-dev-build-
|
|
54
|
+
"@contentful/experience-design-system-client": "2.27.5-dev-build-288ad9b.0",
|
|
55
|
+
"@contentful/experience-design-system-extraction": "2.27.5-dev-build-288ad9b.0",
|
|
56
|
+
"@contentful/experience-design-system-generation": "2.27.5-dev-build-288ad9b.0"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
59
59
|
"type": "git",
|