lee-spec-kit 0.6.19 → 0.6.20
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/index.js +12 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6754,12 +6754,6 @@ function printSuggestionOptions(lang, suggestionOptions) {
|
|
|
6754
6754
|
console.log(chalk6.cyan(` \u21B3 ${finalPrompt}`));
|
|
6755
6755
|
}
|
|
6756
6756
|
}
|
|
6757
|
-
function formatActionSummary2(action) {
|
|
6758
|
-
if (action.type === "command") {
|
|
6759
|
-
return `(${action.scope}) ${action.cmd}`;
|
|
6760
|
-
}
|
|
6761
|
-
return action.message;
|
|
6762
|
-
}
|
|
6763
6757
|
function buildRequiredDocHints(actionOptions) {
|
|
6764
6758
|
const ids = getRecommendedDocIdsForCategories(
|
|
6765
6759
|
actionOptions.map((option) => option.action.category)
|
|
@@ -7462,14 +7456,12 @@ async function runContext(featureName, options) {
|
|
|
7462
7456
|
const actionOptions = state.actionOptions;
|
|
7463
7457
|
console.log(chalk6.green(chalk6.bold("\u{1F449} Next Options (Atomic):")));
|
|
7464
7458
|
let hasDocsCommand = false;
|
|
7465
|
-
actionOptions.forEach((
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
} else {
|
|
7472
|
-
console.log(` ${label}. ${checkTag(action.requiresUserCheck)}${action.message}`);
|
|
7459
|
+
actionOptions.forEach((option) => {
|
|
7460
|
+
const requiresCheck = option.action.requiresUserCheck;
|
|
7461
|
+
const detail = option.detail;
|
|
7462
|
+
console.log(` ${option.label}. ${checkTag(requiresCheck)}${detail}`);
|
|
7463
|
+
if (option.action.type === "command" && option.action.scope === "docs") {
|
|
7464
|
+
hasDocsCommand = true;
|
|
7473
7465
|
}
|
|
7474
7466
|
});
|
|
7475
7467
|
if (hasDocsCommand) {
|
|
@@ -7617,7 +7609,7 @@ async function runApprovedOption(state, config, lang, featureName, selectionOpti
|
|
|
7617
7609
|
}
|
|
7618
7610
|
console.log();
|
|
7619
7611
|
console.log(chalk6.green(`\u2705 Approved option: ${parsedLabel}`));
|
|
7620
|
-
console.log(chalk6.gray(` - Action: ${
|
|
7612
|
+
console.log(chalk6.gray(` - Action: ${freshSelected.detail}`));
|
|
7621
7613
|
if (selectedAction.type === "command") {
|
|
7622
7614
|
const selectedComponent = selectionOptions.component || "";
|
|
7623
7615
|
let executeCommand = buildApprovalCommand(
|
|
@@ -8448,16 +8440,15 @@ async function runView(featureName, options) {
|
|
|
8448
8440
|
console.log(`- State: ${stateLabel}`);
|
|
8449
8441
|
console.log(`- Progress: ${completion}`);
|
|
8450
8442
|
console.log(`- Step: ${f.currentStep}`);
|
|
8451
|
-
|
|
8443
|
+
const nextSummary = state.actionOptions.length > 0 ? state.actionOptions[0].detail : f.nextAction;
|
|
8444
|
+
console.log(`- Next: ${nextSummary}`);
|
|
8452
8445
|
if (state.actionOptions.length > 0) {
|
|
8453
8446
|
console.log();
|
|
8454
8447
|
console.log(chalk6.green("Atomic options:"));
|
|
8455
8448
|
for (const option of state.actionOptions) {
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
}
|
|
8459
|
-
console.log(` ${option.label}. ${option.action.message}`);
|
|
8460
|
-
}
|
|
8449
|
+
const lang = config.lang ?? DEFAULT_LANG;
|
|
8450
|
+
const requiresCheck = option.action.requiresUserCheck ? tr(lang, "cli", "context.checkRequired") : "";
|
|
8451
|
+
console.log(` ${option.label}. ${requiresCheck}${option.detail}`);
|
|
8461
8452
|
}
|
|
8462
8453
|
console.log(
|
|
8463
8454
|
chalk6.gray(
|