Documentation
¶
Index ¶
- Constants
- func DisplayStand(summary string) string
- func FallbackStand(log *db.TaskLog) string
- func GenerateAndStore(ctx context.Context, database *db.DB, taskID int64) (string, error)
- func GenerateAndStoreForce(ctx context.Context, database *db.DB, taskID int64) (string, error)
- func IsNoiseLog(content string) bool
- func IsStandLine(summary string) bool
- func KickoffGenerate(database *db.DB, taskID int64)
- func KickoffOnStatusChange(database *db.DB, oldStatus, newStatus string, taskID int64)
- func KickoffRewrite(database *db.DB, taskID int64)
- func NeedsRefresh(task *db.Task, latest *db.TaskLog) bool
- func NormalizeStand(s string) string
- func ShouldRewriteOnStatus(oldStatus, newStatus string) bool
- type Service
Constants ¶
const StandMaxChars = 40
StandMaxChars is a hard cap after the word clamp (very long tokens).
const StandMaxWords = 5
StandMaxWords is the sticky-note length: enough to queue the brain, short enough to fit a kanban card without ellipsis.
Variables ¶
This section is empty.
Functions ¶
func DisplayStand ¶ added in v0.3.25
DisplayStand returns the stand to show, or empty when summary is a fossil recap / empty. Long valid stands are clamped to StandMaxWords.
func FallbackStand ¶ added in v0.3.25
FallbackStand is the card/header fallback when there is no stand: the agent's question. Reconnect / continuation noise is never shown.
func GenerateAndStore ¶
func GenerateAndStoreForce ¶
func IsNoiseLog ¶ added in v0.3.25
IsNoiseLog reports log lines that must never appear as a stand fallback (session reconnects, continuation markers, empty).
func IsStandLine ¶ added in v0.3.25
IsStandLine reports whether summary is a one-line stand (queue-the-brain), not an old 2–4 bullet recap. Fossils must not render as the stand.
func KickoffGenerate ¶ added in v0.3.25
KickoffGenerate starts a background skip-if-exists generation (freeze-on-done).
func KickoffOnStatusChange ¶ added in v0.3.25
KickoffOnStatusChange rewrites the stand when a task first enters blocked.
func KickoffRewrite ¶ added in v0.3.25
KickoffRewrite starts a background Force rewrite of the stand line.
func NeedsRefresh ¶ added in v0.3.25
NeedsRefresh reports whether a stand should be rewritten for this task. Frozen on done/archived. Not while running (live crumb is enough). On blocked: rewrite fossils, or when new logs arrived after last distill.
func NormalizeStand ¶ added in v0.3.25
NormalizeStand flattens model output into a single stored stand line.
func ShouldRewriteOnStatus ¶ added in v0.3.25
ShouldRewriteOnStatus is true on the transition into blocked. That is the attention-change rewrite: the stand is the question now in front of you.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}