app

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package app coordinates domain resolution and local infrastructure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkpoint added in v0.2.0

func Checkpoint(ctx context.Context, home string) error

Types

type ResolvedProject

type ResolvedProject struct {
	Resolution   resolver.ProjectResolution
	ProjectID    string
	LocationID   string
	LocationPath string
	CWD          string
	GitRoot      string
}

ResolvedProject keeps central project resolution separate from capture adapters.

type Service

type Service struct {
	Paths config.Paths
	Store *storepkg.Store
}

func Initialize

func Initialize(ctx context.Context, home string) (*Service, error)

func Open

func Open(ctx context.Context, home string) (*Service, error)

func OpenReadOnly added in v0.2.0

func OpenReadOnly(ctx context.Context, home string) (*Service, error)

OpenReadOnly opens an initialized local ledger without creating configuration or migrations.

func (*Service) Close

func (s *Service) Close() error

func (*Service) ResolveCurrent

func (s *Service) ResolveCurrent(ctx context.Context, explicitProject string) (resolver.ProjectResolution, error)

func (*Service) ResolveProject

func (s *Service) ResolveProject(ctx context.Context, explicitProject, adapterProject, cwd string) (ResolvedProject, error)

ResolveProject is the sole application boundary that turns user and capture signals into project attribution. Adapters cannot resolve projects themselves.

Jump to

Keyboard shortcuts

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