datapath

package
v0.107.6-beta.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LiveAgentHomeEnv = "LIVEAGENT_HOME"
	LegacyHomeEnv    = "K_BRAIN_HOME"
	LiveAgentDirName = ".liveagent"
	LegacyDirName    = ".k-brain"
)

Variables

This section is empty.

Functions

func LegacyProjectDir

func LegacyProjectDir(project string) string

func Migrate

func Migrate(src, dst string) error

Migrate imports a legacy directory once. Completed imports are not replayed after users delete or archive data in the destination. Root symlinks are rejected; links inside the source are copied verbatim without following them.

func MigrateProjectDir

func MigrateProjectDir(project string) error

func ProjectDir

func ProjectDir(project string) string

ProjectDir returns the project-scoped data directory. It uses .liveagent exclusively; .k-brain remains available for one-way prompt compatibility.

func Report

func Report(err error)

Report keeps migration failures visible in discovery APIs without error returns.

func Resolve

func Resolve(home, preferred, legacyOverride string) (string, error)

func UserDir

func UserDir() (string, error)

UserDir resolves the global data directory and imports legacy entries without replacing files already present in the new directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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