Documentation
¶
Index ¶
- func EffectiveGitRoot(workspaceRoot, projectRoot string) string
- func FileExists(path string) bool
- func NormalizeScope(scope string) string
- func PreferredExistingPath(candidates ...string) string
- func ProjectRoot(workspaceRoot, projectRoot string) string
- func ProtectionForScope(scope string) domain.ProtectionClass
- func RequireContainedChild(base, candidate string) error
- func RequireExactPath(expected, candidate string) error
- func UserHome(explicit string) string
- func ValidateLeafID(value string) error
- func ValidatePortablePathSegment(value string) error
- func WorkspaceRootFromApply(in ports.ApplyInput) string
- func WorkspaceRootFromInspect(in ports.InspectInput) string
- func WorkspaceRootFromRecord(record domain.InstallationRecord) string
- type Policy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EffectiveGitRoot ¶
func FileExists ¶
func NormalizeScope ¶
func PreferredExistingPath ¶
func ProjectRoot ¶
func ProtectionForScope ¶
func ProtectionForScope(scope string) domain.ProtectionClass
func RequireContainedChild ¶
RequireContainedChild rejects a destructive target unless it is a strict lexical child of base and no existing component at or below base is a symlink. Call it immediately before remove/replace operations.
func RequireExactPath ¶
RequireExactPath verifies that persisted metadata still points at the one deterministic managed path computed by the adapter.
func ValidateLeafID ¶
ValidateLeafID validates an identifier before it is used as one physical filesystem path component. Product-specific schemas may impose stricter semantic rules in addition to this portable path-safety invariant.
func ValidatePortablePathSegment ¶
ValidatePortablePathSegment validates one package-tree path component while still allowing the Unicode names permitted by Agent Plugins packages.
func WorkspaceRootFromApply ¶
func WorkspaceRootFromApply(in ports.ApplyInput) string
func WorkspaceRootFromInspect ¶
func WorkspaceRootFromInspect(in ports.InspectInput) string
func WorkspaceRootFromRecord ¶
func WorkspaceRootFromRecord(record domain.InstallationRecord) string
Types ¶
type Policy ¶
type Policy struct{}
Policy is the one implementation of the agentplugins PathPolicy port. It adds no logic of its own: every method forwards to the package function that already carries the containment rules.