openvibers/openvibe.contracts Commits

Contracts 0.174.0: browser, a computer kind (the agent's own browser on a person's machine) (#132)

OP OpenVibers committed 29 days ago · tag v0.174 · 0 files, +0 −0

Plan T14/T17 next step: a browser kind for a person's own machine (OpenVibe.Node#46, computer plugin 0.5.0).

**`browser`, a computer kind.** `bot.command@1` takes `{ action, url, selector, text, key, max_width }`:
- `open` an http(s) `url` (the schema refuses any other scheme);
- `click` a CSS `selector` or the button or link showing `text`;
- `fill` a field (`selector`, `text`);
- `press` a named key (Enter, Tab, Escape, Backspace, Delete, arrows, PageUp, PageDown, Home, End, Space);
- `back`, `read`, `screenshot` (`max_width`) and `close`.

The browser is the agent's own, in a profile of its own on the machine. `read`, `screenshot` and `close` run at every level; the rest are refused at observe and approved one by one at ask. Below level full, `open` refuses an address on the machine's own network.

`bot.computer.control` and the device frame list `browser`. Fixtures: valid `browser-open` and `browser-fill`; invalid `browser-open-file`.

Additive; 0.174.0. `npm test`: 19,958 checks. `compat.js v0.173.0`: no breaking changes.

This commit has no diff to show.