Documentation
¶
Index ¶
- Variables
- func AttachRel(ws cw.Service, filename string) string
- func CanonicalWorkPath(workDir, rel string) string
- func JoinWork(workDir, rel string) string
- func LocalPath(rel string) string
- func ResolveFile(ctx context.Context, ws cw.Service, path string) (string, error)
- func ScopedPath(scope, rel string) string
- func StripWorkPrefix(workDir, rel string) string
- func TrimRedundantFSRootPrefix(fsRoot, path string) string
- func WorkLayout(ws cw.Service) (workDir, uploadDir string)
Constants ¶
This section is empty.
Variables ¶
var ErrEmptyPath = errEmptyPath{}
ErrEmptyPath is returned when ResolveFile gets an empty path.
Functions ¶
func AttachRel ¶
AttachRel returns the tenant-root-relative path for a file under the configured upload directory.
func CanonicalWorkPath ¶
CanonicalWorkPath normalizes to tenant-root-relative form under workDir. Scoped paths (global:/local:) and Windows drive paths are returned unchanged.
func LocalPath ¶
LocalPath adds the local: scope prefix for configuration (e.g. shell cwd, bootstrap workDir). Runtime code should use tenant-root-relative work/… paths and workpath.ResolveFile instead.
func ResolveFile ¶
ResolveFile maps a stored or model path to an absolute filesystem path. Accepts local:/global: scoped paths or tenant-root-relative paths (work/upload/…).
func ScopedPath ¶
ScopedPath prefixes a tenant-local relative path for workspace.Resolve.
func StripWorkPrefix ¶
StripWorkPrefix removes leading workDir/ segments from tenant-root-relative paths.
func TrimRedundantFSRootPrefix ¶
TrimRedundantFSRootPrefix drops a leading fsRoot/ prefix when the fs tool root is already fsRoot.
func WorkLayout ¶
WorkLayout reads agent work layout from the workspace service.
Types ¶
This section is empty.