heartbeat

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIntervalSec = 30 * 60

	DefaultPrompt = "Read HEARTBEAT.md in your workspace (if it exists).\n" +
		"Follow any instructions or tasks listed there.\n" +
		"If nothing needs attention, reply with just: HEARTBEAT_OK"

	OKToken = "HEARTBEAT_OK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Enabled     bool
	IntervalSec int
	OnHeartbeat func(ctx context.Context, prompt string) (string, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(workspace string, opts Options) *Service

func (*Service) Start

func (s *Service) Start(ctx context.Context)

func (*Service) Stop

func (s *Service) Stop()

func (*Service) TriggerNow

func (s *Service) TriggerNow(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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