Make Terminal a native feature

- Move the Terminal plugin into src/lib/features/terminal/ on the host Svelte runtime, with xterm 6.0.0 and addon-fit 0.11.0.
- Buttons, shortcuts, Help rows, and the close guard follow the Terminal switch. The first use loads the module.
- Add Settings → Terminal and the terminal settings section. The first start copies the old runestone.terminal key.
- The 16 ANSI colors come from the --rs-ansi-* tokens.
- Off asks first when a shell runs in any window (pty_running).
- Rust: no pty-data or pty-exit events, an owner check for write, resize, and close, output joined up to 64 KiB or 8 ms, and the sessions of a reloaded page close.
- Remove api.pty, the terminal contribution, TerminalSlot, and the plugin loader of the smoke harness.
- Check only the tested switches in the Background smoke test.
- Update the tests, the menu inventory, the docs, and UI-058.
This commit is contained in:
Knotty Wyvern
2026-10-29 19:02:58 -07:00
parent 53b9cea7f0
commit 833f793244
78 changed files with 2971 additions and 659 deletions
+23 -24
View File
@@ -3,7 +3,6 @@
"scope": [
"RuneStone",
"RuneStone_Project_Management",
"RuneStone_Terminal",
"RuneStone_Background_Slideshow",
"RuneStone_Local_Autocomplete",
"RuneStone_PDF_Viewer",
@@ -241,29 +240,6 @@
"design": "Shared choice adapter; native selects hidden on current host, older-host fallback retained",
"check": "RuneStone_Project_Management/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts; tests/list-limits.spec.ts; tests/all-tasks.spec.ts; tests/card-board-details.spec.ts"
},
"RuneStone_Terminal/src/TerminalDock.svelte": {
"counts": {
"action": 1
},
"design": "Synchronized shared action menu snapshot",
"check": "RuneStone_Terminal/scripts/terminal.smoke.mjs"
},
"RuneStone_Terminal/src/TerminalPicker.svelte": {
"counts": {
"picker": 2,
"localPopup": 3
},
"design": "Shared searchable picker",
"check": "RuneStone_Terminal/scripts/terminal.smoke.mjs"
},
"RuneStone_Terminal/src/TerminalSettings.svelte": {
"counts": {
"action": 1,
"localPopup": 1
},
"design": "Synchronized shared action menu snapshot",
"check": "RuneStone_Terminal/scripts/terminal.smoke.mjs"
},
"RuneStone_Background_Slideshow/src/contracts.ts": {
"counts": {
"action": 1
@@ -336,6 +312,29 @@
},
"design": "Shared action menu for the fit and the position of one image. The image list is the shared searchable picker (rs-picker).",
"check": "tests/smoke/features/background.smoke.mjs"
},
"RuneStone/src/lib/features/terminal/TerminalDock.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu through showActionMenu",
"check": "tests/smoke/features/terminal.smoke.mjs"
},
"RuneStone/src/lib/features/terminal/TerminalPicker.svelte": {
"counts": {
"picker": 2,
"localPopup": 3
},
"design": "Shared searchable picker",
"check": "tests/smoke/features/terminal.smoke.mjs"
},
"RuneStone/src/lib/features/TerminalSettings.svelte": {
"counts": {
"action": 1,
"localPopup": 1
},
"design": "Shared action menu for the default profile in Settings → Terminal",
"check": "tests/smoke/features/terminal.smoke.mjs"
}
}
}