botmode

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BotChatTitle = "Bot Chat"

BotChatTitle is the only session title that receives the teammate protocol section

View Source
const DMRunnerEntry = "__icebath_bot_mode_dm__"

Argv word that runs this binary as the Bot Mode DM delivery runner

View Source
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

func AliasForms(value string) map[string]bool

AliasForms gives the lower cased slug and collapsed mention forms of a friendly name, reserved and empty dropped

func CapabilityFingerprint

func CapabilityFingerprint(h string) string

CapabilityFingerprint is the 12 hex digest of the capability surface of a profile, unavailable on failure

func CleanupBotDMCache

func CleanupBotDMCache(maxAgeHours float64, now *float64) int

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 DMDir

func DMDir() (string, error)

Per user DM payload directory a message file is written into

func DisplayName

func DisplayName(name, profileDir string, names []string) string

DisplayName is the sender name, Bot Mode title, then display name, else the handle

func EpochLine

func EpochLine(h string) string

EpochLine is the epoch stamp appended to a Bot Chat prompt

func Handle

func Handle(name string, names []string) string

Handle is the at handle a local profile answers to among the roster folder ids

func IcebathCLI

func IcebathCLI() string

Command a delivery runs the CLI through, the published launcher, then the binary's sibling, then PATH

func InstallRoot

func InstallRoot(h string) string

InstallRoot is the install root shared by the default profile and every named profile

func IsBotModeManaged

func IsBotModeManaged(h string) bool

IsBotModeManaged is true when any profile on the install of a home is Bot Mode managed, never failing

func LocalAliasMap

func LocalAliasMap(root string) map[string]map[string]bool

LocalAliasMap maps each friendly name alias form to the folder ids answering to it, empty on failure

func Peers

func Peers(root string) []string

Registered peer gateway names of an install root, sorted and empty on any failure

func ProfileForHandle

func ProfileForHandle(handle string, names []string) string

ProfileForHandle is the folder id a bare handle names on this install

func ProfileName

func ProfileName(h string) string

Folder id of the profile a home belongs to, default for the install root

func ProtocolSection

func ProtocolSection(h string, forceRefresh bool) string

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

func StoredBotChatPromptNeedsUpgrade(storedPrompt, h string) bool

StoredBotChatPromptNeedsUpgrade is true for an unstamped Bot Chat prompt when the probe would emit a section

func StoredPromptCapabilityStale

func StoredPromptCapabilityStale(storedPrompt, h string) bool

StoredPromptCapabilityStale is true when a stamped prompt's epoch no longer matches disk, unstamped never stale

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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