tholian-network / stealth

:rocket: Stealth - Secure, Peer-to-Peer, Private and Automateable Web Browser/Scraper/Proxy
GNU General Public License v3.0
1.04k stars 301 forks source link

Stealth: Tasks Page #55

Open cookiengineer opened 3 years ago

cookiengineer commented 3 years ago

Stealth needs a new stealth:tasks Page that shows the overview of scheduled tasks that are regularly run, and a manual tasks overview. A task is a new data structure that also should be integrated as a Task Service, and should also be able to be delegated via trusted Peers.

A task probably will consist of the following properties:

The stealth:tasks Page should at least contain these features:

cookiengineer commented 3 years ago

Additionally, scheduled tasks need support to follow links given a specific URL pattern. This specifically results in a UX problem, where it's currently unsure how to integrate the following of links without a guidance in the form of an assistive sidebar that lets the user select specific URLs by examples (e.g. by selecting them via the mouse or via touch).

The question is now whether or not the beacon sidebar can handle this. If a beacon can extract links on an index/overview page, a task could be automated via delegation of the extracted links with another step; but how would this data be stored or transferred from one task to another?

It might be necessary to integrate a special pursue (or follow?) type task for this that allows to select URLs for other tasks automatically via a specified Beacon. If this beacon extracts a list of URLs, then the other tasks are executed directly after it was finished.

In order to implement this workflow automation, it might make sense to implement a stealth.Task that's reusable in a similar manner to a stealth.Request, but focusses on potential endless loops and quirks; and is implemented in an evented manner so that it can prevent those edge cases.