@@ -60573,13 +60573,13 @@ function createPrompt(view) {
6057360573 rl.on("close", hooksCleanup);
6057460574 cleanups.add(() => rl.removeListener("close", hooksCleanup));
6057560575 cycle(() => {
60576- var _a, _b ;
60576+ var _a;
6057760577 try {
6057860578 const nextView = view(config2, (value) => {
6057960579 setImmediate(() => resolve(value));
6058060580 });
6058160581 if (nextView === void 0) {
60582- const callerFilename = (_b = ( _a = callSites[1]) == null ? void 0 : _a.getFileName) == null ? void 0 : _b.call(_a );
60582+ const callerFilename = (_a = callSites[1]) == null ? void 0 : _a.getFileName( );
6058360583 throw new Error(`Prompt functions must return a string.
6058460584 at ${callerFilename}`);
6058560585 }
@@ -60665,14 +60665,17 @@ function normalizeChoices(choices) {
6066560665 };
6066660666 }
6066760667 const name = choice.name ?? String(choice.value);
60668- return {
60668+ const normalizedChoice = {
6066960669 value: choice.value,
6067060670 name,
6067160671 short: choice.short ?? name,
60672- description: choice.description,
6067360672 disabled: choice.disabled ?? false,
6067460673 checked: choice.checked ?? false
6067560674 };
60675+ if (choice.description) {
60676+ normalizedChoice.description = choice.description;
60677+ }
60678+ return normalizedChoice;
6067660679 });
6067760680}
6067860681var esm_default2 = createPrompt((config2, done) => {
@@ -61311,13 +61314,16 @@ function normalizeChoices4(choices) {
6131161314 };
6131261315 }
6131361316 const name = choice.name ?? String(choice.value);
61314- return {
61317+ const normalizedChoice = {
6131561318 value: choice.value,
6131661319 name,
61317- description: choice.description,
6131861320 short: choice.short ?? name,
6131961321 disabled: choice.disabled ?? false
6132061322 };
61323+ if (choice.description) {
61324+ normalizedChoice.description = choice.description;
61325+ }
61326+ return normalizedChoice;
6132161327 });
6132261328}
6132361329var esm_default10 = createPrompt((config2, done) => {
@@ -61475,13 +61481,16 @@ function normalizeChoices5(choices) {
6147561481 };
6147661482 }
6147761483 const name = choice.name ?? String(choice.value);
61478- return {
61484+ const normalizedChoice = {
6147961485 value: choice.value,
6148061486 name,
61481- description: choice.description,
6148261487 short: choice.short ?? name,
6148361488 disabled: choice.disabled ?? false
6148461489 };
61490+ if (choice.description) {
61491+ normalizedChoice.description = choice.description;
61492+ }
61493+ return normalizedChoice;
6148561494 });
6148661495}
6148761496var esm_default11 = createPrompt((config2, done) => {
0 commit comments