1pub fn task_not_found_in_queue(task_id: &str) -> String {
17 format!("Task '{task_id}' not found in active queue.")
18}
19
20pub fn task_not_found_in_queue_or_done(task_id: &str) -> String {
22 format!("Task '{task_id}' not found in queue or done archive.")
23}
24
25pub fn task_not_found_with_include_done_hint(task_id: &str) -> String {
27 format!(
28 "Task '{task_id}' not found in active queue. \
29 Use --include-done to search the done archive."
30 )
31}
32
33pub fn root_task_not_found(task_id: &str, include_done: bool) -> String {
35 if include_done {
36 format!("Root task '{task_id}' not found in queue or done archive.")
37 } else {
38 format!(
39 "Root task '{task_id}' not found in active queue. \
40 Use --include-done to search the done archive."
41 )
42 }
43}
44
45pub fn source_task_not_found(task_id: &str, search_done: bool) -> String {
47 if search_done {
48 format!("Source task '{task_id}' not found in queue or done archive.")
49 } else {
50 format!("Source task '{task_id}' not found in active queue.")
51 }
52}
53
54pub fn task_not_found_batch_failure(task_id: &str) -> String {
56 format!("Task not found: {task_id}")
57}
58
59pub fn task_not_found_with_operation(operation: &str, task_id: &str) -> String {
61 format!(
62 "Queue query failed (operation={operation}): \
63 target task not found: {task_id}. \
64 Ensure it exists in .ralph/queue.jsonc."
65 )
66}
67
68pub fn task_not_found_in_done_archive(task_id: &str, context: &str) -> String {
70 format!("Task '{task_id}' not found in done archive for {context}.")
71}
72
73pub fn task_not_found_for_edit(operation: &str, task_id: &str) -> String {
75 format!(
76 "Queue {operation} failed (task_id={task_id}): \
77 task not found in .ralph/queue.jsonc."
78 )
79}
80
81pub fn task_not_found(task_id: &str) -> String {
83 format!("Task not found: {task_id}")
84}
85
86pub fn task_no_longer_exists(task_id: &str) -> String {
89 format!("Task '{task_id}' no longer exists in queue (may have been deleted or archived).")
90}