claude-fsd 1.4.2 → 1.4.3
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/bin/claudefsd +2 -4
- package/bin/claudefsd-interview +16 -6
- package/package.json +1 -1
package/bin/claudefsd
CHANGED
|
@@ -251,15 +251,13 @@ if [ $# -eq 0 ]; then
|
|
|
251
251
|
if [ $? -eq 0 ]; then
|
|
252
252
|
echo
|
|
253
253
|
echo -e "${GREEN}Questions generated in docs/QUESTIONS.md${NC}"
|
|
254
|
-
echo "Please answer the questions
|
|
254
|
+
echo "Please answer the questions, then run claudefsd again to create the plan."
|
|
255
255
|
echo
|
|
256
256
|
|
|
257
257
|
open_with_editor "docs/QUESTIONS.md"
|
|
258
258
|
|
|
259
259
|
echo
|
|
260
|
-
echo -e "${GREEN}
|
|
261
|
-
echo
|
|
262
|
-
exec "$(dirname "$0")/claudefsd-create-plan"
|
|
260
|
+
echo -e "${GREEN}Questions saved. After answering them, run 'claudefsd' again and select option 2 to create the plan.${NC}"
|
|
263
261
|
fi
|
|
264
262
|
;;
|
|
265
263
|
4)
|
package/bin/claudefsd-interview
CHANGED
|
@@ -273,7 +273,7 @@ Format the output as a clean, well-structured markdown document suitable for fee
|
|
|
273
273
|
|
|
274
274
|
# Main interview loop
|
|
275
275
|
main() {
|
|
276
|
-
echo -e "${GREEN}<� Claude FSD Interactive Interview System${NC}"
|
|
276
|
+
echo -e "${GREEN}<� Claude FSD Interactive Interview System${NC}"
|
|
277
277
|
echo -e "${GREEN}============================================${NC}"
|
|
278
278
|
echo ""
|
|
279
279
|
|
|
@@ -322,7 +322,10 @@ main() {
|
|
|
322
322
|
|
|
323
323
|
# Get answer
|
|
324
324
|
echo -n "> "
|
|
325
|
-
read -r answer
|
|
325
|
+
if ! read -r answer; then
|
|
326
|
+
# EOF detected (Ctrl+D)
|
|
327
|
+
return 1
|
|
328
|
+
fi
|
|
326
329
|
|
|
327
330
|
# Check for exit commands
|
|
328
331
|
if [[ "$answer" =~ ^(done|exit|quit)$ ]]; then
|
|
@@ -347,8 +350,15 @@ main() {
|
|
|
347
350
|
echo "- Next step: Run 'claudefsd' to create project plan"
|
|
348
351
|
}
|
|
349
352
|
|
|
350
|
-
# Handle Ctrl+
|
|
351
|
-
trap 'echo -e "\n${
|
|
353
|
+
# Handle Ctrl+C as hard stop
|
|
354
|
+
trap 'echo -e "\n${RED}Interview cancelled.${NC}"; exit 1' INT
|
|
352
355
|
|
|
353
|
-
# Run main
|
|
354
|
-
main
|
|
356
|
+
# Run main function and handle EOF
|
|
357
|
+
if main; then
|
|
358
|
+
exit 0
|
|
359
|
+
else
|
|
360
|
+
# If main returns false (EOF detected), consolidate and exit
|
|
361
|
+
echo -e "\n${YELLOW}Interview ended.${NC}"
|
|
362
|
+
consolidate_requirements
|
|
363
|
+
exit 0
|
|
364
|
+
fi
|