package
Version:
v0.27.5
Opens a new window with list of versions in this module.
Published: Jul 8, 2026
License: CC0-1.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package profiles loads and saves the local per-agent profile config
(profiles.json). Only the profile name reaches the server; the path is local.
Version is the on-disk schema version of profiles.json.
Save atomically writes profiles.json with 0600 permissions.
type Config struct {
Version int `json:"version"`
Agents map[string][]Profile `json:"agents"`
}
Config is the profiles.json document, keyed by agent name.
Load reads profiles.json; a missing file yields an empty config.
For returns an agent's configured profiles in name order.
Remove deletes a named profile; returns false when nothing matched.
Resolve returns an agent's effective profiles: a synthesized "default"
(overridable via config) first, then the configured extras by name.
Set inserts or replaces a profile; returns true when it replaced one.
type Profile struct {
Name string `json:"name"`
Path string `json:"path"`
}
Profile is one named location for an agent. Path is the agent's home dir
(e.g. ~/.codex-work); the importer derives its scan roots from it.
Resolved is one effective profile: a name plus the roots to scan for it.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.