tdsetup

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tdsetup owns Sidecar's narrow boundary for initializing a td project. The td CLI remains the source of truth; Sidecar only performs the preflight both of its setup surfaces need and invokes td's public command.

Index

Constants

View Source
const (
	OriginNotes     = "notes"
	OriginTDMonitor = "td-monitor"
)

Variables

View Source
var ErrNotInitialized = errors.New("td is not initialized for this project")

Functions

func Initialize

func Initialize(projectRoot string) error

Initialize runs td's public initialization command. A blank response is supplied to td's optional agent-instructions prompt, so this boundary never accepts a change to AGENTS.md or CLAUDE.md. td still owns its documented .todos and .gitignore behavior.

func Status

func Status(projectRoot string) error

Status reports whether td has an environment to open. It deliberately checks only for the .todos directory: td init itself treats that directory as the initialization marker. The caller must run this off the startup and render paths because td-root resolution may inspect git worktree state.

Types

type ResultMsg

type ResultMsg struct {
	ProjectRoot string
	Origin      string
	Epoch       uint64
	Err         error
}

ResultMsg is broadcast after a user-confirmed initialization attempt. Both td-backed plugins consume successful results so neither stays on a stale setup screen after the other initialized the project. Origin lets only the surface that started a failed attempt present its error.

func (ResultMsg) GetEpoch

func (m ResultMsg) GetEpoch() uint64

Jump to

Keyboard shortcuts

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