A Task Proxy plugin is a small WebAssembly program with a manifest. It describes its screens as data, which Task Proxy draws with its own components, and it reaches nothing outside its sandbox except through Task Proxy, which checks every request against what the manifest declared.
The plugins Stoic Dreams publishes, and the Rust kit for writing them, are open source in TaskProxyPlugins. Its spec folder holds the same spec as this page.
Overview
taskproxy_host, which takes one JSON request, such as reading a variable or sending an HTTPS request, and answers with {"ok": ...} or {"error": "..."}. Task Proxy refuses anything the manifest doesn't allow.| Piece | What it is |
|---|---|
plugin.json | The manifest: the plugin's id, name, version, the spec versions it supports, its permissions, and its pages. |
render | Draws one of the plugin's pages. |
action | Answers a button, link, or form the plugin drew, and returns what happens next. |
branch_info | Optional. A card for the Git Controller about the current branch. |
notifications | Optional. Notifications for Task Proxy's Alerts panel. |
Your First Plugin
You need Rust with the WebAssembly target, and PowerShell for the build script.
rustup target add wasm32-unknown-unknown git clone https://github.com/StoicDreams/TaskProxyPlugins
plugins/jira as a starting point: a cdylib crate that depends on taskproxy-plugin-sdk, with a plugin.json.id and name, and list only the permissions it needs."spec": ["0.1.0"], naming the lowest patch it needs, and keep "apiVersion": 1 beside it for older Task Proxy releases.Plugin trait, with render and action, and export it with export_plugin!(MyPlugin).A minimal manifest:
{ "id": "hello", "name": "Hello", "version": "0.1.0", "spec": ["0.1.0"], "apiVersion": 1, "description": "Says hello from a plugin.", "icon": "code", "pages": [{ "id": "home", "name": "Hello", "icon": "code" }] }
dist/<id> with pwsh ./scripts/build.ps1.dist/<id>. A plugin from a folder is marked unsigned.Spec Versions
The plugin spec is versioned on its own, apart from Task Proxy and from each plugin, so each can update without waiting on the others. A version is major.minor.patch, and each major.minor, such as 0.1, is a line.
spec, for each line it supports, the lowest patch it needs.| Task Proxy | Spec versions |
|---|---|
| 0.1.123 and later | 0.1.3 |
| 0.1.122 | 0.1.2 |
| 0.1.118 to 0.1.121 | 0.1.0, as apiVersion: 1. spec is not read. |
| 0.1.115 to 0.1.117 | An early form of 0.1.0, as apiVersion: 1 |
| Plugin | Versions | Spec versions |
|---|---|---|
| Jira | 0.1.3 and later | 0.1.0, with drag and drop in its column editor where Task Proxy supports 0.1.2, and description images, editable View fields, and editable branch names where it supports 0.1.3 |
| Jira | 0.1.0 to 0.1.2 | 0.1.0, as apiVersion: 1 |
Guidelines
*.example.com only when each user has their own subdomain.secret, with help that says where to get them. Never ask for a token in a page's own form..taskproxy/plugins/<id>/, and keep personal data in the plugin's storage.now.spec.openUrl unless that is what it is.Testing and Publishing
&dyn Host, so unit tests pass a fake host with recorded responses, and need no WebAssembly.spec, and the variables it reads.wasm32-unknown-unknown is caught before a release.Each tab is one version of the spec, complete, newest first. Rules marked MUST are enforced: Task Proxy refuses a plugin that breaks one. JSON names are camelCase, and both sides ignore fields they don't know.
0.1.4 (Draft)
A draft for the Task Manager plugin, which lists running processes, including stuck background ones, and closes them. No Task Proxy release supports it yet, and it may change before it is released. It is everything in 0.1.3, plus the following.
processes permission"processes": ["list"], or ["list", "stop"].
| Value | Allows |
|---|---|
list | The processes host call. |
stop | The process.stop and process.kill host actions. Needs list too. |
A manifest that asks for processes MUST NOT also ask for hosts. Command lines and folders can hold secrets and private paths, so a plugin that reads them can't send anything off the machine.
processes host call{"op": "processes"} answers with {"processes": [...], "ownPid": number}, where ownPid is Task Proxy's own process. It lists only the user's own processes. Each is:
| Field | Type | Meaning |
|---|---|---|
pid | number | |
parentPid | number or null | |
name | string | |
command | string[] | The program and its arguments. |
cwd | string or null | Its working folder, when the platform reports it. |
started | number | When it started, in milliseconds since the Unix epoch. With pid, it names one process, since pids are reused. |
cpu | number | Percent of one core since the last call. |
memory | number | Resident memory in bytes. |
ports | object[] | Each {"port", "protocol", "address"} it listens on or has bound. |
orphaned | boolean | Its parent exited, so it now belongs to init, systemd --user, or launchd. |
inProject | boolean | Its working folder is inside the open project. |
The host actions process.stop and process.kill take {"pid", "started", "tree"}.
process.stop asks the process to end: SIGTERM, or a close request on Windows.process.kill ends it: SIGKILL, or termination on Windows.tree: true also ends its child processes, children first.Task Proxy refuses:
startedIt always asks the user to confirm, naming the process, its pid, and its command.
Processes belong to the whole machine, but a plugin shows only in projects set up for it. This draft either keeps that rule, with the Task Manager turned on for each project and filtered to that project by default, or adds a kind of plugin that shows in every project once turned on.
0.1.3
Supported by Task Proxy 0.1.123 and later.
New in 0.1.3:
toggle, a switch between rendered and rawedit, an editor shown when the label is clickedEverything else is as in 0.1.2.
plugin.json: the manifest.plugin.wasm: a WebAssembly module for wasm32-unknown-unknown, at most 20 MB, run with Extism with no WASI.taskproxy_host in the extism:host/user module.| Field | Type | Rules |
|---|---|---|
id | string | Required. Lowercase letters, digits, and dashes, starting with a letter, at most 64 characters. Never changes. |
name | string | Required. Not blank. |
version | string | Required. The plugin's own version, three numbers. |
spec | string[] | Required. The spec versions it supports, one per line, each the lowest patch it needs, such as ["0.1.0"]. |
apiVersion | number | 1 while it supports line 0.1, for Task Proxy 0.1.121 and earlier. Without spec, it means spec 0.1.0. |
description | string | A sentence or two, shown before installing. |
category | string | A slug, such as issue-tracking. |
icon | string | An icon name from the icon list. |
permissions | object | hosts, variables, and git, below. |
pages | object[] | Each {"id", "name", "icon", "hidden"}, at /plugin/<id>/<page>. A hidden page is left out of the menu. |
contributes | string[] | gitBranchInfo for a Git Controller card, and notifications for the Alerts panel. Unknown values are ignored. |
| Permission | Rules |
|---|---|
hosts | Domains for HTTPS requests: api.example.com exactly, or *.example.com for its subdomains only. A pattern needs at least two labels, so * and *.com are refused. |
variables | Each {"key", "label", "secret", "help"}. Keys are letters, digits, _, and -, and MUST NOT start with app- or session-. Users enter them per project, and secret ones are masked and never shown again. |
git | currentBranch to read the current branch, and createBranch for the branch host action. |
Each takes one JSON value and returns {"ok": ...} or {"error": "..."}. Errors are shown to the user.
| Export | Input | Result |
|---|---|---|
render | {"page", "params"} | A node: the page's content. params is the address's query. |
action | {"page", "pageParams", "action", "params", "form"} | An action result. |
branch_info | {"branch"} | A node, or null. With gitBranchInfo. |
notifications | {} | A list of {"id", "title", "text", "theme", "time", "links"}. With notifications. Polled every two minutes. |
notification_read | {"id"} | Ignored. Called when the user closes a notification. |
A request names its op. A request Task Proxy does not understand is answered with an error.
op | Request | Answer |
|---|---|---|
var | {"key"} | A declared variable from the project's own variables, then its settings, or null. |
storeGet | {"key"} | The plugin's saved value, or null. |
storeSet | {"key", "value"} | Saves it, encrypted. null removes it. |
projectFileRead | {"path"} | Text under .taskproxy/plugins/<id>/ in the open project, or null. |
projectFileWrite | {"path", "text"} | Writes there, at most 1 MB. Paths can't leave that folder. |
currentBranch | {} | The branch's name, or null. Needs git: currentBranch. |
now | {} | Milliseconds since the Unix epoch. |
http | {"request": {"method", "url", "headers", "body", "encoding"}} | {"status", "body"}. HTTPS to declared hosts only, no redirects, at most 10 MB back, and no credentials in the URL. With encoding: "base64", the body is the bytes as base64, for images and other files. New in 0.1.3. |
hostInfo | {} | {"app", "spec", "platform"}: Task Proxy's version, the spec version it runs the plugin with, and linux, macos, or windows. |
Every field is optional, and {} changes nothing.
| Field | Effect |
|---|---|
message | {"text", "theme"}: a short alert. |
closeDialog | Closes the dialog the action came from. |
navigate | {"page", "params"}: opens one of the plugin's pages. |
dialog | {"title", "ui"}: opens a dialog. |
ui | Replaces the page's content, or the dialog's. |
refresh | Draws the page again. |
options | [{"value", "label"}]: choices for a select node or a field's suggest. |
Every node has a type. An unknown type is drawn as a placeholder. Themes are primary, secondary, tertiary, info, success, warning, and danger.
type | Fields |
|---|---|
stack, row, toolbar | children |
heading | text, level (1 to 4, default 2) |
text | text, muted, strong |
markdown | text, sanitized, images (names used as , each a data:image/...;base64, URI, and the only images shown), and toggle (a switch to the raw text). The last two are new in 0.1.3. |
badge | text, theme |
link | text, action |
button | action, theme |
properties | items, each {"label", "value", "edit"} with nodes as the value and editor. Clicking the label switches to edit, new in 0.1.3. |
table | columns, titles or {"label", "action", "sort"}, and rows, each {"cells", "action"} |
select | text, theme, options (an action that returns the choices when clicked), action (run with the choice as form.value) |
clip | text, max (30), tip (100), action, always, muted |
section | key, title, subtitle, open, children. Remembered open or closed by key. |
panel | key, open, children. Shown and hidden by the toggle host action. |
form | fields, submit, cancel, buttons, children, inline (new in 0.1.2: fields and buttons in one row) |
inputs | fields, more of a form's fields among its children |
notice | text, theme |
empty | text |
reorder | items, each {"id", "children"}, and action. New in 0.1.2. |
An action is {"id", "label", "params", "confirm", "icon", "host"}. With confirm, the user is asked first. As a form's submit, a host action takes its fields of the same name from the form, new in 0.1.3.
A reorder list shows each item with a drag handle. The user drags items, or moves them with Alt+Up and Alt+Down, and Task Proxy then runs action with form.order, the ids in their new order. Older hosts show a placeholder, so check hostInfo and draw something else for them.
A field is {"name", "label", "kind", "value", "options", "required", "placeholder", "help", "suggest"}:
text, password, textarea, number, select, multiselect, checkbox, and hidden.suggest: runs when the user types @ and a few letters, with them as query. The form also sends <name>.mentions.Run by Task Proxy only when the user clicks the button that names them.
type | Fields | Does |
|---|---|---|
git.createBranch | name | Creates a branch and switches to it. Needs git: createBranch. |
openUrl | url | Opens an HTTPS address in the browser. |
copy | text | Copies to the clipboard. |
openSettings | Opens the plugin's settings. | |
toggle | key | Shows or hides a panel. |
spec, and the URLs and signatures of both files.versions lists older versions for spec lines the newest one dropped, and Task Proxy installs the newest version it can run.0.1.2
Supported by Task Proxy 0.1.122 and later.
New in 0.1.2:
reorder node, for items the user drags into orderinline, for fields and buttons in one rowEverything else is as in 0.1.1.
plugin.json: the manifest.plugin.wasm: a WebAssembly module for wasm32-unknown-unknown, at most 20 MB, run with Extism with no WASI.taskproxy_host in the extism:host/user module.| Field | Type | Rules |
|---|---|---|
id | string | Required. Lowercase letters, digits, and dashes, starting with a letter, at most 64 characters. Never changes. |
name | string | Required. Not blank. |
version | string | Required. The plugin's own version, three numbers. |
spec | string[] | Required. The spec versions it supports, one per line, each the lowest patch it needs, such as ["0.1.0"]. |
apiVersion | number | 1 while it supports line 0.1, for Task Proxy 0.1.121 and earlier. Without spec, it means spec 0.1.0. |
description | string | A sentence or two, shown before installing. |
category | string | A slug, such as issue-tracking. |
icon | string | An icon name from the icon list. |
permissions | object | hosts, variables, and git, below. |
pages | object[] | Each {"id", "name", "icon", "hidden"}, at /plugin/<id>/<page>. A hidden page is left out of the menu. |
contributes | string[] | gitBranchInfo for a Git Controller card, and notifications for the Alerts panel. Unknown values are ignored. |
| Permission | Rules |
|---|---|
hosts | Domains for HTTPS requests: api.example.com exactly, or *.example.com for its subdomains only. A pattern needs at least two labels, so * and *.com are refused. |
variables | Each {"key", "label", "secret", "help"}. Keys are letters, digits, _, and -, and MUST NOT start with app- or session-. Users enter them per project, and secret ones are masked and never shown again. |
git | currentBranch to read the current branch, and createBranch for the branch host action. |
Each takes one JSON value and returns {"ok": ...} or {"error": "..."}. Errors are shown to the user.
| Export | Input | Result |
|---|---|---|
render | {"page", "params"} | A node: the page's content. params is the address's query. |
action | {"page", "pageParams", "action", "params", "form"} | An action result. |
branch_info | {"branch"} | A node, or null. With gitBranchInfo. |
notifications | {} | A list of {"id", "title", "text", "theme", "time", "links"}. With notifications. Polled every two minutes. |
notification_read | {"id"} | Ignored. Called when the user closes a notification. |
A request names its op. A request Task Proxy does not understand is answered with an error.
op | Request | Answer |
|---|---|---|
var | {"key"} | A declared variable from the project's own variables, then its settings, or null. |
storeGet | {"key"} | The plugin's saved value, or null. |
storeSet | {"key", "value"} | Saves it, encrypted. null removes it. |
projectFileRead | {"path"} | Text under .taskproxy/plugins/<id>/ in the open project, or null. |
projectFileWrite | {"path", "text"} | Writes there, at most 1 MB. Paths can't leave that folder. |
currentBranch | {} | The branch's name, or null. Needs git: currentBranch. |
now | {} | Milliseconds since the Unix epoch. |
http | {"request": {"method", "url", "headers", "body"}} | {"status", "body"}. HTTPS to declared hosts only, no redirects, at most 10 MB back, and no credentials in the URL. |
hostInfo | {} | {"app", "spec", "platform"}: Task Proxy's version, the spec version it runs the plugin with, and linux, macos, or windows. |
Every field is optional, and {} changes nothing.
| Field | Effect |
|---|---|
message | {"text", "theme"}: a short alert. |
closeDialog | Closes the dialog the action came from. |
navigate | {"page", "params"}: opens one of the plugin's pages. |
dialog | {"title", "ui"}: opens a dialog. |
ui | Replaces the page's content, or the dialog's. |
refresh | Draws the page again. |
options | [{"value", "label"}]: choices for a select node or a field's suggest. |
Every node has a type. An unknown type is drawn as a placeholder. Themes are primary, secondary, tertiary, info, success, warning, and danger.
type | Fields |
|---|---|
stack, row, toolbar | children |
heading | text, level (1 to 4, default 2) |
text | text, muted, strong |
markdown | text, sanitized |
badge | text, theme |
link | text, action |
button | action, theme |
properties | items, each {"label", "value"} with a node as the value |
table | columns, titles or {"label", "action", "sort"}, and rows, each {"cells", "action"} |
select | text, theme, options (an action that returns the choices when clicked), action (run with the choice as form.value) |
clip | text, max (30), tip (100), action, always, muted |
section | key, title, subtitle, open, children. Remembered open or closed by key. |
panel | key, open, children. Shown and hidden by the toggle host action. |
form | fields, submit, cancel, buttons, children, inline (new in 0.1.2: fields and buttons in one row) |
inputs | fields, more of a form's fields among its children |
notice | text, theme |
empty | text |
reorder | items, each {"id", "children"}, and action. New in 0.1.2. |
An action is {"id", "label", "params", "confirm", "icon", "host"}. With confirm, the user is asked first.
A reorder list shows each item with a drag handle. The user drags items, or moves them with Alt+Up and Alt+Down, and Task Proxy then runs action with form.order, the ids in their new order. Older hosts show a placeholder, so check hostInfo and draw something else for them.
A field is {"name", "label", "kind", "value", "options", "required", "placeholder", "help", "suggest"}:
text, password, textarea, number, select, multiselect, checkbox, and hidden.suggest: runs when the user types @ and a few letters, with them as query. The form also sends <name>.mentions.Run by Task Proxy only when the user clicks the button that names them.
type | Fields | Does |
|---|---|---|
git.createBranch | name | Creates a branch and switches to it. Needs git: createBranch. |
openUrl | url | Opens an HTTPS address in the browser. |
copy | text | Copies to the clipboard. |
openSettings | Opens the plugin's settings. | |
toggle | key | Shows or hides a panel. |
spec, and the URLs and signatures of both files.versions lists older versions for spec lines the newest one dropped, and Task Proxy installs the newest version it can run.0.1.1
Supported by Task Proxy 0.1.122 and later.
New in 0.1.1:
hostInfo host callspec listspec and versionsEverything else is as in 0.1.0.
plugin.json: the manifest.plugin.wasm: a WebAssembly module for wasm32-unknown-unknown, at most 20 MB, run with Extism with no WASI.taskproxy_host in the extism:host/user module.| Field | Type | Rules |
|---|---|---|
id | string | Required. Lowercase letters, digits, and dashes, starting with a letter, at most 64 characters. Never changes. |
name | string | Required. Not blank. |
version | string | Required. The plugin's own version, three numbers. |
spec | string[] | Required. The spec versions it supports, one per line, each the lowest patch it needs, such as ["0.1.0"]. |
apiVersion | number | 1 while it supports line 0.1, for Task Proxy 0.1.121 and earlier. Without spec, it means spec 0.1.0. |
description | string | A sentence or two, shown before installing. |
category | string | A slug, such as issue-tracking. |
icon | string | An icon name from the icon list. |
permissions | object | hosts, variables, and git, below. |
pages | object[] | Each {"id", "name", "icon", "hidden"}, at /plugin/<id>/<page>. A hidden page is left out of the menu. |
contributes | string[] | gitBranchInfo for a Git Controller card, and notifications for the Alerts panel. Unknown values are ignored. |
| Permission | Rules |
|---|---|
hosts | Domains for HTTPS requests: api.example.com exactly, or *.example.com for its subdomains only. A pattern needs at least two labels, so * and *.com are refused. |
variables | Each {"key", "label", "secret", "help"}. Keys are letters, digits, _, and -, and MUST NOT start with app- or session-. Users enter them per project, and secret ones are masked and never shown again. |
git | currentBranch to read the current branch, and createBranch for the branch host action. |
Each takes one JSON value and returns {"ok": ...} or {"error": "..."}. Errors are shown to the user.
| Export | Input | Result |
|---|---|---|
render | {"page", "params"} | A node: the page's content. params is the address's query. |
action | {"page", "pageParams", "action", "params", "form"} | An action result. |
branch_info | {"branch"} | A node, or null. With gitBranchInfo. |
notifications | {} | A list of {"id", "title", "text", "theme", "time", "links"}. With notifications. Polled every two minutes. |
notification_read | {"id"} | Ignored. Called when the user closes a notification. |
A request names its op. A request Task Proxy does not understand is answered with an error.
op | Request | Answer |
|---|---|---|
var | {"key"} | A declared variable from the project's own variables, then its settings, or null. |
storeGet | {"key"} | The plugin's saved value, or null. |
storeSet | {"key", "value"} | Saves it, encrypted. null removes it. |
projectFileRead | {"path"} | Text under .taskproxy/plugins/<id>/ in the open project, or null. |
projectFileWrite | {"path", "text"} | Writes there, at most 1 MB. Paths can't leave that folder. |
currentBranch | {} | The branch's name, or null. Needs git: currentBranch. |
now | {} | Milliseconds since the Unix epoch. |
http | {"request": {"method", "url", "headers", "body"}} | {"status", "body"}. HTTPS to declared hosts only, no redirects, at most 10 MB back, and no credentials in the URL. |
hostInfo | {} | {"app", "spec", "platform"}: Task Proxy's version, the spec version it runs the plugin with, and linux, macos, or windows. New in 0.1.1. |
Every field is optional, and {} changes nothing.
| Field | Effect |
|---|---|
message | {"text", "theme"}: a short alert. |
closeDialog | Closes the dialog the action came from. |
navigate | {"page", "params"}: opens one of the plugin's pages. |
dialog | {"title", "ui"}: opens a dialog. |
ui | Replaces the page's content, or the dialog's. |
refresh | Draws the page again. |
options | [{"value", "label"}]: choices for a select node or a field's suggest. |
Every node has a type. An unknown type is drawn as a placeholder. Themes are primary, secondary, tertiary, info, success, warning, and danger.
type | Fields |
|---|---|
stack, row, toolbar | children |
heading | text, level (1 to 4, default 2) |
text | text, muted, strong |
markdown | text, sanitized |
badge | text, theme |
link | text, action |
button | action, theme |
properties | items, each {"label", "value"} with a node as the value |
table | columns, titles or {"label", "action", "sort"}, and rows, each {"cells", "action"} |
select | text, theme, options (an action that returns the choices when clicked), action (run with the choice as form.value) |
clip | text, max (30), tip (100), action, always, muted |
section | key, title, subtitle, open, children. Remembered open or closed by key. |
panel | key, open, children. Shown and hidden by the toggle host action. |
form | fields, submit, cancel, buttons, children |
inputs | fields, more of a form's fields among its children |
notice | text, theme |
empty | text |
An action is {"id", "label", "params", "confirm", "icon", "host"}. With confirm, the user is asked first.
A field is {"name", "label", "kind", "value", "options", "required", "placeholder", "help", "suggest"}:
text, password, textarea, number, select, multiselect, checkbox, and hidden.suggest: runs when the user types @ and a few letters, with them as query. The form also sends <name>.mentions.Run by Task Proxy only when the user clicks the button that names them.
type | Fields | Does |
|---|---|---|
git.createBranch | name | Creates a branch and switches to it. Needs git: createBranch. |
openUrl | url | Opens an HTTPS address in the browser. |
copy | text | Copies to the clipboard. |
openSettings | Opens the plugin's settings. | |
toggle | key | Shows or hides a panel. |
spec, and the URLs and signatures of both files.versions lists older versions for spec lines the newest one dropped, and Task Proxy installs the newest version it can run.0.1.0
The first spec, run by Task Proxy 0.1.118 to 0.1.121 as apiVersion: 1, and by later releases.
plugin.json: the manifest.plugin.wasm: a WebAssembly module for wasm32-unknown-unknown, at most 20 MB, run with Extism with no WASI.taskproxy_host in the extism:host/user module.| Field | Type | Rules |
|---|---|---|
id | string | Required. Lowercase letters, digits, and dashes, starting with a letter, at most 64 characters. Never changes. |
name | string | Required. Not blank. |
version | string | Required. The plugin's own version, three numbers. |
apiVersion | number | Required, and 1. |
description | string | A sentence or two, shown before installing. |
category | string | A slug, such as issue-tracking. |
icon | string | An icon name from the icon list. |
permissions | object | hosts, variables, and git, below. |
pages | object[] | Each {"id", "name", "icon", "hidden"}, at /plugin/<id>/<page>. A hidden page is left out of the menu. |
contributes | string[] | gitBranchInfo for a Git Controller card, and notifications for the Alerts panel. Unknown values are ignored. |
| Permission | Rules |
|---|---|
hosts | Domains for HTTPS requests: api.example.com exactly, or *.example.com for its subdomains only. A pattern needs at least two labels, so * and *.com are refused. |
variables | Each {"key", "label", "secret", "help"}. Keys are letters, digits, _, and -, and MUST NOT start with app- or session-. Users enter them per project, and secret ones are masked and never shown again. |
git | currentBranch to read the current branch, and createBranch for the branch host action. |
Each takes one JSON value and returns {"ok": ...} or {"error": "..."}. Errors are shown to the user.
| Export | Input | Result |
|---|---|---|
render | {"page", "params"} | A node: the page's content. params is the address's query. |
action | {"page", "pageParams", "action", "params", "form"} | An action result. |
branch_info | {"branch"} | A node, or null. With gitBranchInfo. |
notifications | {} | A list of {"id", "title", "text", "theme", "time", "links"}. With notifications. Polled every two minutes. |
notification_read | {"id"} | Ignored. Called when the user closes a notification. |
A request names its op. A request Task Proxy does not understand is answered with an error.
op | Request | Answer |
|---|---|---|
var | {"key"} | A declared variable from the project's own variables, then its settings, or null. |
storeGet | {"key"} | The plugin's saved value, or null. |
storeSet | {"key", "value"} | Saves it, encrypted. null removes it. |
projectFileRead | {"path"} | Text under .taskproxy/plugins/<id>/ in the open project, or null. |
projectFileWrite | {"path", "text"} | Writes there, at most 1 MB. Paths can't leave that folder. |
currentBranch | {} | The branch's name, or null. Needs git: currentBranch. |
now | {} | Milliseconds since the Unix epoch. |
http | {"request": {"method", "url", "headers", "body"}} | {"status", "body"}. HTTPS to declared hosts only, no redirects, at most 10 MB back, and no credentials in the URL. |
Every field is optional, and {} changes nothing.
| Field | Effect |
|---|---|
message | {"text", "theme"}: a short alert. |
closeDialog | Closes the dialog the action came from. |
navigate | {"page", "params"}: opens one of the plugin's pages. |
dialog | {"title", "ui"}: opens a dialog. |
ui | Replaces the page's content, or the dialog's. |
refresh | Draws the page again. |
options | [{"value", "label"}]: choices for a select node or a field's suggest. |
Every node has a type. An unknown type is drawn as a placeholder. Themes are primary, secondary, tertiary, info, success, warning, and danger.
type | Fields |
|---|---|
stack, row, toolbar | children |
heading | text, level (1 to 4, default 2) |
text | text, muted, strong |
markdown | text, sanitized |
badge | text, theme |
link | text, action |
button | action, theme |
properties | items, each {"label", "value"} with a node as the value |
table | columns, titles or {"label", "action", "sort"}, and rows, each {"cells", "action"} |
select | text, theme, options (an action that returns the choices when clicked), action (run with the choice as form.value) |
clip | text, max (30), tip (100), action, always, muted |
section | key, title, subtitle, open, children. Remembered open or closed by key. |
panel | key, open, children. Shown and hidden by the toggle host action. |
form | fields, submit, cancel, buttons, children |
inputs | fields, more of a form's fields among its children |
notice | text, theme |
empty | text |
An action is {"id", "label", "params", "confirm", "icon", "host"}. With confirm, the user is asked first.
A field is {"name", "label", "kind", "value", "options", "required", "placeholder", "help", "suggest"}:
text, password, textarea, number, select, multiselect, checkbox, and hidden.suggest: runs when the user types @ and a few letters, with them as query. The form also sends <name>.mentions.Run by Task Proxy only when the user clicks the button that names them.
type | Fields | Does |
|---|---|---|
git.createBranch | name | Creates a branch and switches to it. Needs git: createBranch. |
openUrl | url | Opens an HTTPS address in the browser. |
copy | text | Copies to the clipboard. |
openSettings | Opens the plugin's settings. | |
toggle | key | Shows or hides a panel. |
You can also come chat with us on the Stoic Dreams discord server.
Use Task Proxy on your computer from this browser: its projects, pages, scripts, and Git Controller.