app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 8 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

This section is empty.

Types

type ResolvedProject

type ResolvedProject struct {
	Resolution resolver.ProjectResolution
	ProjectID  string
	LocationID 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 (*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