You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace complex template literals with two complete prompt constants
- Remove nested ternary operators for better readability
- Hide todos parameter completely when disabled (not shown as optional)
- Update tests to reflect new behavior
- Reduce code from 105 to 66 lines for better maintainability
// Always show the todos parameter, but mark it as optional or required based on setting
7
-
return`## new_task
8
-
Description: This will let you create a new task instance in the chosen mode using your provided message${todosRequired ? " and initial todo list" : ""}.
3
+
/**
4
+
* Prompt when todos are NOT required (default)
5
+
*/
6
+
constPROMPT_WITHOUT_TODOS=`## new_task
7
+
Description: This will let you create a new task instance in the chosen mode using your provided message.
9
8
10
9
Parameters:
11
10
- mode: (required) The slug of the mode to start the new task in (e.g., "code", "debug", "architect").
12
11
- message: (required) The initial user message or instructions for this new task.
13
-
- todos: (${todosRequired ? "required" : "optional"}) The initial todo list in markdown checklist format for the new task.
0 commit comments