workspace

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeGlobal = "global"
	ScopeLocal  = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout added in v0.3.23

type Layout interface {
	Service
	WorkDirRel() string
	UploadDirRel() string
}

Layout reports tenant-local agent directory layout (inbound uploads, shell cwd). workspace/default and workspace/tenant implement this; keep tool/fs-workspace.config.root and tool/shell-bash.config.workDir aligned with WorkDirRel().

type LocalTenantWalker added in v0.3.13

type LocalTenantWalker interface {
	Service
	WalkLocalTenants(ctx context.Context, fn func(context.Context) error) error
}

LocalTenantWalker enumerates isolated local workspace roots (multi-tenant setups). Implementations call fn with TurnEnvelope.Workspace set for each tenant.

type Service

type Service interface {
	Resolve(ctx context.Context, rel string) (string, error)
}

Service resolves config-relative paths for the current request context. Implementations may scope roots by session, agent, or other ctx values; swap the workspace plugin to change isolation policy.

Jump to

Keyboard shortcuts

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