buildTaskBootstrapPrompt is the prompt for regular tasks.
(slug string)
| 758 | } |
| 759 | return playbookSlug, runCount <= 1 |
| 760 | } |
| 761 | |
| 762 | // bumpWorkdirUsed updates workdirs.last_used_at, best-effort. |
| 763 | func bumpWorkdirUsed(db *sql.DB, path string) { |
| 764 | if _, err := db.Exec(`UPDATE workdirs SET last_used_at = ? WHERE path = ?`, flowdb.NowISO(), path); err != nil { |
| 765 | fmt.Fprintf(os.Stderr, "warning: bump workdir last_used_at: %v\n", err) |
| 766 | } |
| 767 | } |
| 768 | |
| 769 | // buildBootstrapPromptForKind dispatches to the right prompt variant |
| 770 | // based on task kind. For kind='playbook_run' the playbook variant is |
| 771 | // used; otherwise the regular task variant. Empty kind (legacy rows |
| 772 | // that somehow didn't migrate) falls through to the regular variant. |
| 773 | // |
no outgoing calls
no test coverage detected