@damper/cli 0.9.7 → 0.9.8
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/ui/task-picker.js +7 -2
- package/package.json +1 -1
package/dist/ui/task-picker.js
CHANGED
|
@@ -293,6 +293,9 @@ async function handleCreateNewTask(api) {
|
|
|
293
293
|
message: 'What needs to be done?',
|
|
294
294
|
validate: (value) => value.trim().length > 0 || 'Instructions are required',
|
|
295
295
|
});
|
|
296
|
+
const details = await input({
|
|
297
|
+
message: 'Additional details (optional, press Enter to skip):',
|
|
298
|
+
});
|
|
296
299
|
const type = await select({
|
|
297
300
|
message: 'Task type:',
|
|
298
301
|
choices: [
|
|
@@ -303,9 +306,11 @@ async function handleCreateNewTask(api) {
|
|
|
303
306
|
],
|
|
304
307
|
});
|
|
305
308
|
const trimmed = instructions.trim();
|
|
309
|
+
const trimmedDetails = details.trim();
|
|
310
|
+
const fullInput = trimmedDetails ? `${trimmed}\n\n${trimmedDetails}` : trimmed;
|
|
306
311
|
// Generate title with Claude, fall back to truncation
|
|
307
312
|
console.log(pc.dim('\nGenerating title...'));
|
|
308
|
-
const generatedTitle = await generateTaskTitle(
|
|
313
|
+
const generatedTitle = await generateTaskTitle(fullInput, type);
|
|
309
314
|
let title;
|
|
310
315
|
if (generatedTitle) {
|
|
311
316
|
title = generatedTitle;
|
|
@@ -317,7 +322,7 @@ async function handleCreateNewTask(api) {
|
|
|
317
322
|
: trimmed.slice(0, trimmed.lastIndexOf(' ', maxTitleLen) || maxTitleLen) + '…';
|
|
318
323
|
}
|
|
319
324
|
console.log(pc.dim('Creating task in Damper...'));
|
|
320
|
-
const task = await api.createTask(title, type,
|
|
325
|
+
const task = await api.createTask(title, type, fullInput);
|
|
321
326
|
console.log(pc.green(`✓ Created task #${shortIdRaw(task.id)}: ${task.title}`));
|
|
322
327
|
return {
|
|
323
328
|
task,
|