MCPcopy Create free account
hub / github.com/Facets-cloud/flow / buildTaskBootstrapPrompt

Function buildTaskBootstrapPrompt

internal/app/do.go:760–770  ·  view source on GitHub ↗

buildTaskBootstrapPrompt is the prompt for regular tasks.

(slug string)

Source from the content-addressed store, hash-verified

758 }
759 return playbookSlug, runCount <= 1
760}
761
762// bumpWorkdirUsed updates workdirs.last_used_at, best-effort.
763func 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//

Callers 2

buildBootstrapPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected