Arcana::AgentConfig
Who a project's agent is on the bus, read from the project's
.ai/config.yml (the dot-ai convention):
arcana:
handle: "@arcana"
description: >
The agent for the Arcana bus itself.
Without a handle in the config, the handle falls back to @ plus the
project directory's name, which is what the session hooks used before
the config existed.
The owner token proves to the bus that a registration is this
project's (see Directory#claim). It lives in .ai/arcana.token,
kept out of git through the repository's info/exclude since it only
means something to this machine's bus. A project without .ai/ keeps
it under $XDG_STATE_HOME/arcana/tokens/ instead.
Constants
CONFIG_FILES = {"config.yml", "config.yaml"}
TOKEN_FILE = "arcana.token"
Constructors
Raises AgentConfig::Error when the config exists but can't be
read, rather than quietly falling back to the directory name.
Class methods
Instance methods
ai_dir?
Sourcedescription
Sourcehandle
Sourceproject_dir
Sourcetoken_path
Source