workspace

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package workspace holds workspace resolution contracts and views (design §2, §9, §16).

Index

Constants

This section is empty.

Variables

View Source
var ErrResolverNotConfigured = errors.New("lipsdk/workspace: workspace resolver not configured")

ErrResolverNotConfigured means workspace resolution is not bound for this execution snapshot.

Functions

This section is empty.

Types

type DisabledResolver

type DisabledResolver struct{}

DisabledResolver returns ErrResolverNotConfigured until core workspace plumbing exists.

func (DisabledResolver) Resolve

type Resolver

type Resolver interface {
	Resolve(ctx context.Context) (WorkspaceView, error)
}

Resolver supplies the resolved workspace snapshot for the active request (design §9).

type WorkspaceView

type WorkspaceView struct {
	// ID is an optional opaque workspace identifier when the resolver can provide one.
	ID          string `yaml:"id,omitempty"`
	ProjectRoot string
	DirtyTree   bool
	Markers     []string
	Labels      map[string]string
}

WorkspaceView is a read-only workspace snapshot for safety and path policy plugins (design §2).

Jump to

Keyboard shortcuts

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