leros

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package leros provides shared Leros filesystem conventions.

Index

Constants

View Source
const (
	// EnvWorkspaceRoot is the worker-local root used for Leros state.
	EnvWorkspaceRoot = "LEROS_WORKSPACE_ROOT"

	// EnvAuthToken is the JWT bearer token used for worker↔server authentication.
	EnvAuthToken = "LEROS_AUTH_TOKEN"
)

Variables

This section is empty.

Functions

func EnsureStateDir

func EnsureStateDir() (string, error)

EnsureStateDir 确保 workspace_root/.leros 目录存在并返回其路径。

func JoinWorkspace

func JoinWorkspace(elem ...string) (string, error)

JoinWorkspace joins path elements under the Leros workspace root.

func MemoryDir

func MemoryDir() (string, error)

MemoryDir returns the default Leros memory directory under workspace_root/.leros.

func SkillsDir

func SkillsDir() (string, error)

SkillsDir returns the default Leros skills directory under workspace_root/.leros.

func StateDBPath

func StateDBPath() (string, error)

StateDBPath 返回状态数据库文件的完整路径(workspace_root/.leros/leros.db),不保证文件存在。

func TempDir

func TempDir() (string, error)

TempDir returns the fallback workspace directory used when a run has no project workspace.

func WorkspaceRoot

func WorkspaceRoot() (string, error)

WorkspaceRoot returns $LEROS_WORKSPACE_ROOT, or the platform default workspace root when unset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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