Skip to main content

Module widget_access_handlers

Module widget_access_handlers 

Source
Expand description

The RPCs a sandboxed widget’s pane host makes for it (docs/specs/SPEC_USER_WIDGETS_AND_WIDGET_API_2026_10_09.md §6.3, §11): widgets.session when the pane opens, widgets.endsession when it closes, and widgets.call for each bridge method srv answers (storage, net, agents). Every call is checked here again against the session’s package and its grants (backend/widget/access.rs).

Structs§

WidgetCallReq
WidgetCallResult
WidgetEndSessionReq
WidgetSessionReq
WidgetSessionResult

Constants§

TASKS_FINISHED_WINDOW_MS 🔒
Finished tasks a widget sees, as the Kanban shows them: the last 7 days.
TASKS_LIMIT 🔒

Functions§

agent_rows 🔒
The user’s running agents on this machine, with whether each is busy.
call 🔒
packages 🔒
param 🔒
register
storage_changed 🔒
Tells the package’s panes, in every window, which key changed (never its value), so each can read it again.
task_row 🔒
One Kanban task as tasks:read shows it (SPEC_WARDEN_KANBAN_2026_10_20.md §9): what it is, who is on it and where it stands. Not the prompt, the operator’s own words or the result, which can carry anything the operator typed; a widget that needs those asks the user to open the Kanban.