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

Function buildBootstrapPromptForKind

internal/app/do.go:743–745  ·  view source on GitHub ↗

buildBootstrapPromptForKind dispatches to the right prompt variant based on task kind. For kind='playbook_run' the playbook variant is used; otherwise the regular task variant. Empty kind (legacy rows that somehow didn't migrate) falls through to the regular variant. The bootstrap prompt is intenti

(slug, kind, playbookSlug string)

Source from the content-addressed store, hash-verified

741 return 0
742}
743
744// bgPlaybookContext computes (playbookSlug, isFirstRun) for a task's
745// bootstrap prompt, mirroring the interactive bootstrap path. Returns
746// ("", false) for regular tasks.
747func bgPlaybookContext(db *sql.DB, task *flowdb.Task) (string, bool) {
748 if !task.PlaybookSlug.Valid {

Calls 1