@contentful/experience-design-system-cli 2.27.5-dev-build-fa61a4f.0 → 2.27.5-dev-build-63dfc4a.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 +1 -1
- package/dist/src/index.js +5 -12
- package/package.json +5 -5
package/dist/package.json
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -29199,7 +29199,7 @@ function resolveProjectRoot(sessionId2, projectRootFlag) {
|
|
|
29199
29199
|
db.close();
|
|
29200
29200
|
}
|
|
29201
29201
|
}
|
|
29202
|
-
async function selectBatch(agent, model,
|
|
29202
|
+
async function selectBatch(agent, model, batch, total, verbose, skillPathOverride) {
|
|
29203
29203
|
const prompt2 = await buildPrompt({
|
|
29204
29204
|
skill: "select",
|
|
29205
29205
|
mode: "autonomous",
|
|
@@ -29218,7 +29218,6 @@ async function selectBatch(agent, model, bedrock, batch, total, verbose, skillPa
|
|
|
29218
29218
|
const result = await invoker.invoke({
|
|
29219
29219
|
agent,
|
|
29220
29220
|
model,
|
|
29221
|
-
bedrock,
|
|
29222
29221
|
prompt: prompt2,
|
|
29223
29222
|
timeoutMs: DEFAULT_TIMEOUT_MS,
|
|
29224
29223
|
onOutput: (chunk) => formatter.push(chunk)
|
|
@@ -29305,7 +29304,7 @@ ${outputBuf}`);
|
|
|
29305
29304
|
}
|
|
29306
29305
|
return results;
|
|
29307
29306
|
}
|
|
29308
|
-
async function selectAllComponents(agent, model,
|
|
29307
|
+
async function selectAllComponents(agent, model, components, verbose, skillPathOverride, cacheConfig = { noCache: true }) {
|
|
29309
29308
|
const concurrency = Number(process.env.EDS_GENERATE_CONCURRENCY ?? DEFAULT_CONCURRENCY);
|
|
29310
29309
|
const batchSize = resolveBatchSize();
|
|
29311
29310
|
const total = components.length;
|
|
@@ -29370,7 +29369,7 @@ async function selectAllComponents(agent, model, bedrock, components, verbose, s
|
|
|
29370
29369
|
while (nextBatch < batches.length) {
|
|
29371
29370
|
const b = nextBatch++;
|
|
29372
29371
|
const batch = batches[b];
|
|
29373
|
-
const batchResults = await selectBatch(agent, model,
|
|
29372
|
+
const batchResults = await selectBatch(agent, model, batch, total, verbose, skillPathOverride);
|
|
29374
29373
|
for (let k = 0; k < batch.length; k++) {
|
|
29375
29374
|
results[batch[k].index] = batchResults[k];
|
|
29376
29375
|
}
|
|
@@ -29538,7 +29537,6 @@ function registerAnalyzeSelectAgentCommand(program) {
|
|
|
29538
29537
|
const selectResults = await selectAllComponents(
|
|
29539
29538
|
agent,
|
|
29540
29539
|
model,
|
|
29541
|
-
opts.bedrock,
|
|
29542
29540
|
selectionCandidates,
|
|
29543
29541
|
opts.verbose ?? false,
|
|
29544
29542
|
selectPromptPath ? resolve12(selectPromptPath) : void 0,
|
|
@@ -30838,7 +30836,6 @@ function registerAnalyzeCommand(program) {
|
|
|
30838
30836
|
prompt: prompt2,
|
|
30839
30837
|
timeoutMs: 12e4,
|
|
30840
30838
|
promptViaStdin: true,
|
|
30841
|
-
bedrock: opts.bedrock,
|
|
30842
30839
|
onDebugEvent: (name, payload) => getDebugLogger().event("agent", name, payload)
|
|
30843
30840
|
});
|
|
30844
30841
|
lastAgentExitCode = res.exitCode;
|
|
@@ -31307,7 +31304,7 @@ function printFallbackInstructions(options) {
|
|
|
31307
31304
|
lines.push(` Re-run the generate command with the agent available, or use --dry-run to inspect the prompt.`);
|
|
31308
31305
|
process.stderr.write(lines.join("\n") + "\n");
|
|
31309
31306
|
}
|
|
31310
|
-
async function runOneComponent(agent, model,
|
|
31307
|
+
async function runOneComponent(agent, model, db, sessionId2, component, tokensInline, tokenMapInline, index, total, verbose, noCache, skillPathOverride, promptHash) {
|
|
31311
31308
|
const pos = c.dim(`[${index + 1}/${total}]`);
|
|
31312
31309
|
if (!noCache) {
|
|
31313
31310
|
const inputHash = computeComponentInputHash(component);
|
|
@@ -31392,7 +31389,6 @@ async function runOneComponent(agent, model, bedrock, db, sessionId2, component,
|
|
|
31392
31389
|
const result = await invoker2.invoke({
|
|
31393
31390
|
agent,
|
|
31394
31391
|
model,
|
|
31395
|
-
bedrock,
|
|
31396
31392
|
prompt: prompt2,
|
|
31397
31393
|
timeoutMs: DEFAULT_TIMEOUT_MS3,
|
|
31398
31394
|
onOutput: (chunk) => formatter.push(chunk)
|
|
@@ -31448,7 +31444,7 @@ ${outputBuf}`);
|
|
|
31448
31444
|
renamedSlotsCount: renames.length
|
|
31449
31445
|
};
|
|
31450
31446
|
}
|
|
31451
|
-
async function runAllComponents(agent, model,
|
|
31447
|
+
async function runAllComponents(agent, model, db, sessionId2, components, tokensInline, tokenMapInline, verbose, noCache, skillPathOverride, promptHash) {
|
|
31452
31448
|
const concurrency = Number(process.env.EDS_GENERATE_CONCURRENCY ?? DEFAULT_COMPONENT_CONCURRENCY);
|
|
31453
31449
|
process.stderr.write(
|
|
31454
31450
|
`Categorizing ${c.bold(String(components.length))} component${components.length === 1 ? "" : "s"}` + c.dim(` (concurrency: ${concurrency})`) + "\n"
|
|
@@ -31462,7 +31458,6 @@ async function runAllComponents(agent, model, bedrock, db, sessionId2, component
|
|
|
31462
31458
|
results[i] = await runOneComponent(
|
|
31463
31459
|
agent,
|
|
31464
31460
|
model,
|
|
31465
|
-
bedrock,
|
|
31466
31461
|
db,
|
|
31467
31462
|
sessionId2,
|
|
31468
31463
|
components[i],
|
|
@@ -31642,7 +31637,6 @@ async function runGenerateSkill(skill, opts, verbose = false) {
|
|
|
31642
31637
|
componentResults = await runAllComponents(
|
|
31643
31638
|
agent,
|
|
31644
31639
|
model,
|
|
31645
|
-
opts.bedrock,
|
|
31646
31640
|
db,
|
|
31647
31641
|
sessionId2,
|
|
31648
31642
|
allComponents,
|
|
@@ -31755,7 +31749,6 @@ session=${sessionId2 ?? ""}
|
|
|
31755
31749
|
const result = await invoker2.invoke({
|
|
31756
31750
|
agent,
|
|
31757
31751
|
model,
|
|
31758
|
-
bedrock: opts.bedrock,
|
|
31759
31752
|
prompt: prompt2,
|
|
31760
31753
|
timeoutMs: DEFAULT_TIMEOUT_MS3 * 5
|
|
31761
31754
|
});
|
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-63dfc4a.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-63dfc4a.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-63dfc4a.0",
|
|
55
|
+
"@contentful/experience-design-system-extraction": "2.27.5-dev-build-63dfc4a.0",
|
|
56
|
+
"@contentful/experience-design-system-generation": "2.27.5-dev-build-63dfc4a.0"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
59
59
|
"type": "git",
|