Plugins can ask whether they run in the desktop app or terminal, and read feature flags.
What's wrong with this entry?
Two operations are new to the plugin host: one reports whether the request came from the desktop app or a terminal, and one reads a feature flag value. Separately, a plugin asking for the session's working directory or repository now gets the directory of the call that invoked it rather than the directory the process started in.
- Neither of the two new operations exists in v2.1.245.
- The cwd change matters for sessions that have moved directory mid-run, where the process cwd and the live session cwd differ.
"session.surface": { run: (t, n) => op.sessionSurface(n.plugin) }
Strings lifted out of the shipped bundle, so the claim above can be checked against them.