Skip to main content

Crate cadencr_provider_sdk

Crate cadencr_provider_sdk 

Source
Expand description

SDK and CLI harness for code-backed Cadencr provider packages.

Modules§

meta
_meta.cadencr conventions a connector attaches to standard ACP objects.

Structs§

HostIntegration
What the host may do for this provider beyond the ACP session.
ProviderError
ResumeCommand
A bare executable name plus arguments; SESSION_ID_PLACEHOLDER marks the session id. The host runs it in the session’s working directory.
SlashCommand
One /name entry, as the ACP AvailableCommand the agent would send.
UpdateReport
Versions known to the connector. Versions are opaque display strings; the connector decides what “newer” means and reports it through latest_version.

Enums§

SlashCommandKind
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.args may contain; the host replaces it with the session id it stored (the ACP sessionId).
SLASH_COMMANDS_FORMAT
UPDATE_REPORT_FORMAT

Traits§

CadencrProvider

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.