swarm: the commands and skills an agent's message box offers
GET /api/agents/{name}/commands answers with the swarm's own commands, a table
in the controller, then the skills the agent's harness published to its key of
the agent-commands bucket. The published part is untrusted and cut down: plain
names only, no repeats, never a command's name, a capped list and one short line
per description. The agent credential may publish its own key. Nothing publishes
yet; the harness half and the swarm UI menu follow.
This commit is contained in:
parent
06c338ff40
commit
8f11a38d17
1 changed files with 389 additions and 7 deletions
|
|
@ -995,6 +995,11 @@ in
|
|||
# and swarm-controller creates the bucket, so no
|
||||
# `$$JS.API.*` subject.
|
||||
"--agent-token-publish-subject ${lib.escapeShellArg "\$\$KV.subagent-status.{agent}.*"}"
|
||||
# Its own key in the `agent-commands` KV bucket
|
||||
# (`swarm_wire::agent_commands`): the skills the swarm UI offers
|
||||
# in its message box. As for the icon, one put and no
|
||||
# `$$JS.API.*` subject; swarm-controller creates the bucket.
|
||||
"--agent-token-publish-subject ${lib.escapeShellArg "\$\$KV.agent-commands.{agent}"}"
|
||||
# Its bash tasks (`swarm_wire::bash_task`): one status key per
|
||||
# task in the `bash-task-status` KV bucket and the task's output
|
||||
# rows. Publish only and no `$JS.API.*` subject:
|
||||
|
|
|
|||
Loading…
Reference in a new issue