Expand description
SDK and CLI harness for code-backed Cadencr provider packages.
Modules§
- meta
_meta.cadencrconventions a connector attaches to standard ACP objects.
Structs§
- Host
Integration - What the host may do for this provider beyond the ACP session.
- Provider
Error - Resume
Command - A bare executable name plus arguments;
SESSION_ID_PLACEHOLDERmarks the session id. The host runs it in the session’s working directory. - Slash
Command - One
/nameentry, as the ACPAvailableCommandthe agent would send. - Update
Report - Versions known to the connector. Versions are opaque display strings; the
connector decides what “newer” means and reports it through
latest_version.
Enums§
- Slash
Command Kind - How the host groups an entry in its
/menu.
Constants§
- ACP_
V1_ PROTOCOL - HOST_
INTEGRATION_ FORMAT - MAX_
SLASH_ COMMANDS - At most this many entries per list.
- MAX_
SLASH_ COMMAND_ DESCRIPTION_ CHARS - Description length bound, in characters.
- MAX_
SLASH_ COMMAND_ NAME_ CHARS - Name length bound, in characters.
- MODEL_
DISCOVERY_ FORMAT - SESSION_
ID_ PLACEHOLDER - The only placeholder
resumeCommand.argsmay contain; the host replaces it with the session id it stored (the ACPsessionId). - SLASH_
COMMANDS_ FORMAT - UPDATE_
REPORT_ FORMAT
Traits§
Functions§
- is_
valid_ slash_ command_ name - Whether the host accepts
name: 1-128 characters without a leading/, whitespace or control characters. - run_cli
- sanitize_
slash_ command_ description - Make a free-form description acceptable to the host: control characters other than newlines and tabs become spaces, and it is cut to 4096 characters.
- validate_
slash_ commands - Check the contract rules the host enforces: bounded count, names of
1-128 characters without a leading
/, whitespace or control characters, unique names, and descriptions of at most 4096 characters whose only control characters are newlines and tabs.