microstandup

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package microstandup generates focused per-task micro-standup cards with blocker detection. Unlike plan-level standups, each card is scoped to a single in-progress task and includes time tracking, heal attempt info, and a 1-5 confidence score with reasoning.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPrompt

func BuildPrompt(c *TaskContext) string

BuildPrompt constructs the AI prompt for a single task's micro-standup.

func FormatCard

func FormatCard(card *Card) string

FormatCard renders a Card as a compact, ≤15 line terminal card.

func FormatSlack

func FormatSlack(card *Card) string

FormatSlack formats a Card as a Slack-friendly plain text message.

Types

type Card

type Card struct {
	TaskID           int
	TaskTitle        string
	Yesterday        string // what was accomplished
	Today            string // next 3 steps
	Blockers         string // specific blockers or "None"
	Confidence       int    // 1-5
	ConfidenceReason string
	ElapsedMinutes   int
	EstimatedMinutes int
	HealAttempts     int
}

Card is the AI-generated micro-standup for one task.

func Generate

func Generate(ctx context.Context, prov provider.Provider, opts provider.Options, c *TaskContext) (*Card, error)

Generate calls the AI provider to produce a standup card for the given context.

type TaskContext

type TaskContext struct {
	Task             *pm.Task
	Goal             string
	RecentSteps      []string // last 20 step log lines
	CheckpointDiff   string   // human-readable diff between last two checkpoints
	ElapsedMinutes   int      // minutes since task.StartedAt (0 if unknown)
	EstimatedMinutes int      // from task.EstimatedMinutes
	HealAttempts     int      // from task.HealAttempts
	Links            []pm.Link
	GitHubIssue      int
}

TaskContext holds all gathered context for a single in-progress task.

func Collect

func Collect(workDir string, task *pm.Task, goal string) (*TaskContext, error)

Collect gathers all available context for the given task.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL