MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / managedDir

Function managedDir

internal/instructions/paths.go:13–15  ·  view source on GitHub ↗

managedDir returns the directory holding CAM-managed instruction files. It honors CAM_CONFIG_DIR (via pathutil.ConfigDir) so tests can isolate it.

()

Source from the content-addressed store, hash-verified

11// managedDir returns the directory holding CAM-managed instruction files.
12// It honors CAM_CONFIG_DIR (via pathutil.ConfigDir) so tests can isolate it.
13func managedDir() string {
14 return filepath.Join(pathutil.ConfigDir(), "instructions")
15}
16
17// safeName maps a human instruction name to a filesystem-safe basename by
18// replacing every character outside [A-Za-z0-9._-] with '_'.

Callers 4

InitMethod · 0.85
writeManagedFileFunction · 0.85
managedFilePathFunction · 0.85
isUnderManagedDirFunction · 0.85

Calls 1

ConfigDirFunction · 0.92

Tested by

no test coverage detected