Files
session-notify/index.js
T

30 lines
1.2 KiB
JavaScript

/**
* Host half of the session-notify bundle.
*
* Every notification in this plugin is produced by the browser half: the page
* owns the DOM (the in-app light popup) and is the only place a Web
* `Notification` can be constructed, which is the one system-notification
* channel that behaves the same on Windows, macOS, and Linux inside the Harness
* Desktop shell. The Host half therefore owns no state, registers no service,
* no route, and no event listener — it exists so the bundle has the ordinary
* profile-level plugin row its patch declares, and so a future Host-side
* capability (for example persisting the per-kind switches into this profile's
* patch) has a place to live.
*
* The export form is the documented one — `export function apply(ctx, config)`
* with no `inject` and no `Config` — and it is deliberately the only export
* form this package uses.
*
* @module @dsh-plugin/session-notify
*/
/**
* Mount the Host row.
* @param ctx - Host context; no service is required, so this never blocks activation.
*/
export function apply(ctx) {
ctx.logger?.debug?.(
'session-notify: host half idle by design — notifications run in the browser half',
)
}