mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
A plugin web view can open interactive PTY sessions (spawn, input, resize, kill, streamed output and exit). Spawning requires the exact granted `process:<program>` and its pinned executable, with no PATH re-resolution or fallback shell; the cwd is the trusted project, arguments, environment (append-only) and sizes are validated, and at most eight sessions run per plugin. A frame can only drive the sessions it opened; output is acknowledged chunk by chunk and input/output are bounded. Sessions end on permission change, reload, disable, uninstall, frame teardown or window close. Requires API ^1.3; adds a web-pty test fixture. Verified on macOS; Windows/Linux not run. Co-authored-by: dengliu <[email protected]>
22 lines
460 B
TOML
22 lines
460 B
TOML
id = "web-pty"
|
|
name = "Web PTY Probe"
|
|
version = "0.1.0"
|
|
description = "Test fixture for capability-gated web frame PTYs."
|
|
engines.openidea = "^1.3"
|
|
wasm = "dist/plugin.wasm"
|
|
activation = ["on-command:ping"]
|
|
|
|
[capabilities]
|
|
optional = ["process:bash", "process:git"]
|
|
|
|
[[contributes.views]]
|
|
id = "terminal"
|
|
title = "PTY Probe"
|
|
icon = "toolwindow-terminal"
|
|
location = "right"
|
|
web = "web/index.html"
|
|
|
|
[[contributes.commands]]
|
|
id = "ping"
|
|
title = "PTY Probe: Ping"
|