vpath

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package vpath resolves user-supplied paths under a virtual workspace root without consulting the host filesystem. The server process cannot evaluate symlinks inside a workspace it does not mount, so containment is decided purely on the cleaned path shape. Shared by the ACP runtime and the workdir service so the clamping semantics cannot drift between them.

Index

Constants

View Source
const DataMount = "/data"

DataMount is the canonical mount point of the workspace data volume as seen from inside a bot container.

Variables

This section is empty.

Functions

func ResolveUnderRoot

func ResolveUnderRoot(root, raw string) (string, error)

ResolveUnderRoot resolves raw against root and rejects any result that escapes it. A raw path under DataMount is remapped onto root first, so callers may pass container-view paths even when root is a host-side staging directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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