File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 213213 true (conj (str " description: " description))
214214 (seq blocked-by) (conj (str " blocked_by: " (str/join " , " (sort blocked-by))))))))
215215
216- (defn ^:private read-task-line-short [{:keys [id subject status priority blocked-by]}]
217- (let [base (format " - #%d [%s] [%s] %s" id (name status) (name priority) subject)]
218- (str/join " \n "
219- (cond-> [base]
220- (seq blocked-by) (conj (str " blocked_by: " (str/join " , " (sort blocked-by))))))))
216+ (defn ^:private read-task-line-short [{:keys [id subject status]}]
217+ (format " - #%d [%s] %s" id (name status) subject))
221218
222219(defn ^:private read-text [state]
223220 (let [tasks (:tasks state)]
252249(defn ^:private success [state text]
253250 (assoc (tools.util/single-text-content text) :details (todo-details state)))
254251
255- (defn ^:private format-tasks-list [tasks & [full?] ]
256- (str/join " \n " (map ( if full? read-task-line-full read-task-line- short) tasks)))
252+ (defn ^:private format-tasks-list [tasks]
253+ (str/join " \n " (map read-task-line-short tasks)))
257254
258255(defmethod tools.util /tool-call-details-after-invocation :todo
259256 [_name _arguments before-details result _ctx]
401398 (success state
402399 (format " Started %d task(s):\n %s"
403400 (count started)
404- (format-tasks-list started true ))))))))
401+ (format-tasks-list started))))))))
405402
406403(defn ^:private clean-summary-if-no-in-progress [state]
407404 (if (empty? (filter #(= :in-progress (:status %)) (:tasks state)))
You can’t perform that action at this time.
0 commit comments