Give plugins SDK APIs for terminals, granted folders, and plugin services

Plugins can now do through the SDK what they did with direct native calls.
The SDK checks plugin shutdown, so these APIs can move to an isolated
plugin context later.

- api.pty opens shell sessions. pty_open accepts an optional channel.
  A channel session sends its output as raw bytes to its own webview
  and sends no pty-data or pty-exit events. Without a channel, the
  events stay, so the released Terminal plugin keeps working. The host
  closes the open sessions of a plugin when the plugin stops.
- api.files gives folder grants. The user selects the folder, the
  host keeps the grants of each plugin in its retained data, and the
  plugin uses an opaque grant ID. The host rejects names with folder
  parts, links, and files over the size limit. Sidecar JSON files
  replace the per-image settings commands.
- api.services lets one plugin offer data to another plugin in the
  same window. The host copies arguments and results.
- The folder methods of api.backgrounds are deprecated. They stay for
  released Background Slideshow versions.
- The plugin reference lists the native calls of each plugin and the
  SDK member that replaces each call.
This commit is contained in:
Knotty Wyvern
2026-10-28 01:46:55 -07:00
parent eb2adf6a11
commit a6d6e96d6d
20 changed files with 1325 additions and 48 deletions
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!
[[permission]]
identifier = "allow-folders-revoke"
description = "Enables the folders_revoke command without any pre-configured scope."
commands.allow = ["folders_revoke"]
[[permission]]
identifier = "deny-folders-revoke"
description = "Denies the folders_revoke command without any pre-configured scope."
commands.deny = ["folders_revoke"]