Skip to main content

Module local_cli

Module local_cli 

Source
Expand description

Local socket verbs and the workspace config.toml plugin array.

Structs§

LocalCli
Local CLI handlers share the intent queue with plugin-originated sends.
PluginAction
What one plugin verb did, split by the stream each line belongs to.

Constants§

CLIENT_PROBE_TIMEOUT
Wait bound for one handshake with a running client.
RESTART_HINT
Line an operator sees when a plugin change needs a client restart.

Functions§

agent_install
Install a coding-agent plugin package into agent/<id>/.
agent_mount_frame
Frame the client would send to hot-mount a plugin over its local socket.
agent_package_dir
Directory holding one vendored coding-agent plugin package.
agent_stop_frame
Frame the client would send to stop a mounted plugin.
agent_uninstall
Remove a plugin package and its config entry.
heal_workspace_config
Startup hook: fold the legacy blocks and print exactly one operator line when the workspace self-healed or the fold was refused.
install_verb
Install a package, then tell a running client about it.
map_complete
map_control
map_handoff
map_history
map_query_ledger
map_query_roles
map_query_sessions
map_reply
map_send
map_subscribe
migrate_plugin_blocks
Self-heal a workspace whose config.toml still carries the [[plugin]] tables the 1.2.1 installer appended: merge their ids into the top-level plugins array, drop the blocks, and rewrite the file atomically. Duplicate top-level plugins lines merge onto the first line even when no legacy block remains. Returns the number of folded blocks; 0 means no block was folded, so an unrelated parse failure keeps reporting its own serde error. A plugins array this module refuses to edit aborts the fold without writing, and the loader’s refusal then reaches the operator.
notify_client
Tell a running client that a plugin package changed.
plugin_exit_code
Operator refusal for a plugin verb.
uninstall_verb
Remove a package and its config entry, then tell a running client.
valid_plugin_id
Plugin id rule: the id becomes a path component under agent/<id>/.