Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions PROTOCOL.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ Quick Ask's `quick_shot` fails with `helper_failed` (the message is the helper's
| `add_roles` | `projectId`, `paths?`, `shipped?`, `raise` | `{bots:[id]}`: a bot for each role, in the project (the `lead` role makes its bot the project's `lead` when the project has none of its own, and leaves one that is set); levels in `raises` are applied only with `raise: true`. All or none: `invalid_role` or `no_such_project` and no bot is created. Refused (`forbidden`) for a device on the network |
| `list_skills` | `bot` | `{skills:[{name, description, author?, enabled}]}`, by name; `enabled` is false while the skill is switched off (see Skills) |
| `discover_skills` | none | `{skills:[{name, description, author?, path, from}]}`: valid `SKILL.md` folders found in standard local skill directories on this Mac, deduplicated by real path and sorted by name; `path` can be passed to `preview_skill` and `install_skill`. Refused (`forbidden`) for a device on the network |
| `start_recording` | `bot`, `url?` | `{recording: true, bot}`: starts a browser skill-recording session on `bot`'s Chrome window using the isolated-world `bateUser` binding (optionally opening `url`), launching Chrome off the core thread; `bots_changed` follows with `recording: true`. Refused (`forbidden`) for a device on the network |
| `stop_recording` | `bot`, `name?`, `description?` | `{name, description, steps, markdown}`: stops recording on `bot`'s browser and drafts an editable `SKILL.md` from the captured navigations, clicks, selects, and typed inputs. Password inputs (`type="password"`) are never read, and any value matching a saved Secret of `bot` is replaced with `Secret: <name>`; `bots_changed` follows. Refused (`forbidden`) for a device on the network |
| `save_recorded_skill` | `bot`, `markdown` | `{skill}`: validates `markdown` as a `SKILL.md` document and installs it into `bot`'s `skills/<name>/` folder via staging, turning it on (`skills_changed` follows). Refused (`forbidden`) for a device on the network |
| `set_skill_enabled` | `bot`, `name`, `enabled` | `{}`: switches the installed skill `name` on or off for this bot (`no_such_skill`; `bad_request` when `enabled` is not true or false). `skills_changed` follows, and a running engine is sent `skills_off` |
| `install_skill` | `bot`, `path` or `fromBot` and `name` | `{skill}`; copies the skill folder at `path`, or the skill `name` of the bot `fromBot` (`no_such_bot`), or `invalid_skill`. Refused (`forbidden`) for a device on the network (it names a path on this Mac) |
| `preview_skill` | `path` or `fromBot` and `name` | `{skill, entries, bytes}` of the folder at `path`: what `install_skill` would copy in (files and folders, bytes), checked as it checks, to show before it is installed. Nothing is kept. `invalid_skill`. Refused (`forbidden`) for a device on the network |
Expand Down
Loading
Loading