Файли
l0ng-ai 2bf412ff0d feat(plugins): let plugin code open streaming log tabs (#2082)
views.open-log-tab(key, title, process-log) (SDK host::open_log_tab) opens the read-only log tab a web view opens with open-log-tab, from a command or event of a window, reusing the Services pane's process-log.

The host checks the process grant and limits when called and remembers what each key runs in that window; the tab starts it by key (plugin_log_tab_spawn) through the web-view PTY checks: pinned program, trusted project, session cap, lifecycle and grant revocation. Remote windows report that these tabs aren't available there yet.
2026-11-08 10:01:35 +08:00

34 рядки
726 B
TOML

id = "web-log"
name = "Web Log Probe"
version = "0.1.0"
description = "Test fixture for a capability-gated streaming editor tab."
engines.openidea = "^1.3"
wasm = "dist/plugin.wasm"
activation = ["on-command:ping", "on-command:open", "on-command:denied", "on-command:code"]
[capabilities]
optional = ["process:bash"]
[[contributes.views]]
id = "logs"
title = "Log Probe"
icon = "file-log"
location = "right"
web = "web/index.html"
[[contributes.commands]]
id = "ping"
title = "Log Probe: Ping"
[[contributes.commands]]
id = "open"
title = "Log Probe: Open Stream"
[[contributes.commands]]
id = "denied"
title = "Log Probe: Try Undeclared Program"
[[contributes.commands]]
id = "code"
title = "Log Probe: Open From Code"