Documentation
¶
Index ¶
- Constants
- func AliasForms(value string) map[string]bool
- func CapabilityFingerprint(h string) string
- func CleanupBotDMCache(maxAgeHours float64, now *float64) int
- func ConfigRoster(h string) []config.BotProfile
- func DMDir() (string, error)
- func DisplayName(name, profileDir string, names []string) string
- func EpochLine(h string) string
- func Handle(name string, names []string) string
- func IcebathCLI() string
- func InstallRoot(h string) string
- func IsBotModeManaged(h string) bool
- func LocalAliasMap(root string) map[string]map[string]bool
- func Peers(root string) []string
- func ProfileForHandle(handle string, names []string) string
- func ProfileName(h string) string
- func ProtocolSection(h string, forceRefresh bool) string
- func Roster(root string) []config.BotProfile
- func StoredBotChatPromptNeedsUpgrade(storedPrompt, h string) bool
- func StoredPromptCapabilityStale(storedPrompt, h string) bool
Constants ¶
const BotChatTitle = "Bot Chat"
BotChatTitle is the only session title that receives the teammate protocol section
const DMRunnerEntry = "__icebath_bot_mode_dm__"
Argv word that runs this binary as the Bot Mode DM delivery runner
const DMStaleHours = 24.0
Hours an orphaned DM payload file is kept, the stale window of a DM delivery
Variables ¶
This section is empty.
Functions ¶
func AliasForms ¶
AliasForms gives the lower cased slug and collapsed mention forms of a friendly name, reserved and empty dropped
func CapabilityFingerprint ¶
CapabilityFingerprint is the 12 hex digest of the capability surface of a profile, unavailable on failure
func CleanupBotDMCache ¶
Deletes orphaned DM payload files and live delivery intents older than maxAgeHours, returning the count
func ConfigRoster ¶
func ConfigRoster(h string) []config.BotProfile
ConfigRoster is the roster of the install that holds a home, the shape config migrations take
func DisplayName ¶
DisplayName is the sender name, Bot Mode title, then display name, else the handle
func IcebathCLI ¶
func IcebathCLI() string
Command a delivery runs the CLI through, the published launcher, then the binary's sibling, then PATH
func InstallRoot ¶
InstallRoot is the install root shared by the default profile and every named profile
func IsBotModeManaged ¶
IsBotModeManaged is true when any profile on the install of a home is Bot Mode managed, never failing
func LocalAliasMap ¶
LocalAliasMap maps each friendly name alias form to the folder ids answering to it, empty on failure
func ProfileForHandle ¶
ProfileForHandle is the folder id a bare handle names on this install
func ProfileName ¶
Folder id of the profile a home belongs to, default for the install root
func ProtocolSection ¶
ProtocolSection is the cached teammate section of the agent's own home, rebuilt when forced, empty on failure
func Roster ¶
func Roster(root string) []config.BotProfile
Roster lists the default profile and every live named profile, sorted by folder id
func StoredBotChatPromptNeedsUpgrade ¶
StoredBotChatPromptNeedsUpgrade is true for an unstamped Bot Chat prompt when the probe would emit a section
func StoredPromptCapabilityStale ¶
StoredPromptCapabilityStale is true when a stamped prompt's epoch no longer matches disk, unstamped never stale
Types ¶
This section is empty.