Files
RuneStone/docs/menu-surfaces.json
T
Knotty Wyvern bb0b8f88b6 Add the versioned plugin SDK package and its release script
The new package packages/plugin-sdk (@runestone/plugin-sdk) is the one source of the public plugin types.
It contains PluginApi and its members, the manifest type, API_VERSION, and feature checks
(hasFeature, requireFeature, requireFeatures, missingFeatures). It also contains the action icons and
the tooltip helper as DOM functions, because RuneStone has no API for them. Menus stay host-drawn through
api.ui.showActionMenu, so the SDK contains only the menu types. The SDK uses the Apache License 2.0.

The host imports the SDK with relative paths in src/lib/plugins/sdk.ts, src/lib/ui/actionIcons.ts, and
src/lib/ui/tooltip.ts. The completion, Git, background, and contribution contract files export the SDK types.
The menu files keep their types, because the Terminal plugin keeps copies of them. A unit test makes sure
that those types and the SDK types are the same. The menu inventory now scans the SDK source.

pnpm sdk:build compiles the SDK to dist/. pnpm release:sdk --version <v> builds it, then commits and tags
v<v> in a local clone of the public repository. It never pushes, and it prints the push commands.
It stops before a change in these conditions:
- The clone is missing, has changes, or is not on a branch.
- The tag exists, or the version is not greater than the current version.
- The package has no LICENSE file, or the SDK source has changes that are not committed.
A failed attempt restores the version and the clone.

pnpm check type checks the SDK and the example plugin. The example plugin now has JSDoc types from the SDK.
pnpm test covers the feature checks, the host and SDK parity, and the release script with temporary
Git repositories. The plugin development, release, development, and completion guides describe the SDK.
2026-10-28 02:33:16 -07:00

333 lines
12 KiB
JSON

{
"date": "2026-10-15",
"scope": [
"RuneStone",
"RuneStone_Project_Management",
"RuneStone_Terminal",
"RuneStone_Background_Slideshow",
"RuneStone_Local_Autocomplete",
"RuneStone_Git",
"RuneStone_PDF_Viewer",
"RuneStone_CSV_Viewer"
],
"limits": [
"Source patterns detect known menu construction routes. Browser evidence remains a separate check.",
"Native operating-system menus and embedded website controls keep platform presentation.",
"Older plugin hosts without ui.showActionMenu retain documented fallbacks."
],
"surfaces": {
"RuneStone/src/lib/browser/Browser.svelte": {
"counts": {
"action": 2
},
"design": "Shared action menu",
"check": "tests/smoke/browser/builtin.smoke.mjs; tests/smoke/browser/webData.smoke.mjs"
},
"RuneStone/src/lib/browser/Settings.svelte": {
"counts": {
"action": 1,
"localPopup": 2
},
"design": "Shared action menu",
"check": "tests/smoke/browser/builtin.smoke.mjs; tests/smoke/browser/webData.smoke.mjs"
},
"RuneStone/src/lib/browser/WebData.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/browser/builtin.smoke.mjs; tests/smoke/browser/webData.smoke.mjs"
},
"RuneStone/src/lib/editor/codeMenu.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/imageControls.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/markdownMenu.ts": {
"counts": {
"action": 2
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/readingMenu.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/spellingMenu.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/tableSelectionControls.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/WriterHost.svelte": {
"counts": {
"svelteMenu": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
},
"RuneStone/src/lib/layout/ContextMenu.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/layout/FileTree.svelte": {
"counts": {
"svelteMenu": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/layout/QuickOpen.svelte": {
"counts": {
"picker": 1,
"localPopup": 3
},
"design": "Shared searchable picker used by quick file open and document link picker",
"check": "tests/smoke/workspace/openAndCreate.smoke.mjs; tests/smoke/links/linkMenus.smoke.mjs"
},
"RuneStone/src/lib/layout/TabBar.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/layout/Workbench.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/layout/WorkspacePicker.svelte": {
"counts": {
"picker": 1,
"localPopup": 8
},
"design": "Shared rich picker; paths retain a detail row",
"check": "tests/smoke/workspace/openAndCreate.smoke.mjs"
},
"RuneStone/src/lib/plugins/externalSession.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/plugins/PluginAccessMenu.svelte": {
"counts": {
"svelteMenu": 1
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/packages/plugin-sdk/src/api.ts": {
"counts": {
"action": 1
},
"design": "API type declaration, no renderer",
"check": "pnpm check"
},
"RuneStone/src/lib/theme/AppearanceSettings.svelte": {
"counts": {
"action": 2,
"localPopup": 3
},
"design": "Shared action menu",
"check": "tests/smoke/appearance/characterThemes.smoke.mjs"
},
"RuneStone/src/lib/ui/actionMenu.ts": {
"counts": {
"action": 1,
"localPopup": 2
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/ui/managedActionMenu.ts": {
"counts": {
"action": 2
},
"design": "Shared action menu",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone_Project_Management/src/choices-ui.ts": {
"counts": {
"action": 1
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_Project_Management/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_Project_Management/src/details-ui.ts": {
"counts": {
"picker": 1,
"localPopup": 4
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_Project_Management/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_Project_Management/src/labels-ui.ts": {
"counts": {
"picker": 1,
"localPopup": 3
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_Project_Management/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_Project_Management/src/preferences.ts": {
"counts": {
"action": 1,
"nativeChoice": 1
},
"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"
},
"RuneStone_Project_Management/src/priority-ui.ts": {
"counts": {
"action": 1,
"picker": 1,
"localPopup": 3
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_Project_Management/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_Project_Management/src/relations-ui.ts": {
"counts": {
"nativeChoice": 1,
"picker": 1,
"localPopup": 5
},
"design": "Shared relationship choice and direct searchable picker rows; older-host choice fallback retained",
"check": "RuneStone_Project_Management/tests/relations-menu.spec.ts; tests/menu-audit.spec.ts; tests/related-cards.spec.ts"
},
"RuneStone_Project_Management/src/tags.ts": {
"counts": {
"picker": 2,
"localPopup": 2
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_Project_Management/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_Project_Management/src/ui.ts": {
"counts": {
"action": 4,
"nativeChoice": 13,
"picker": 1,
"localPopup": 1
},
"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
},
"design": "API type declaration, no renderer",
"check": "pnpm check"
},
"RuneStone_Background_Slideshow/src/image-settings-ui.ts": {
"counts": {
"action": 1,
"nativeChoice": 1,
"picker": 2,
"localPopup": 3
},
"design": "Host action menus and shared searchable image picker; native image select only on older hosts",
"check": "RuneStone_Background_Slideshow/tests/settings.smoke.mjs"
},
"RuneStone_Background_Slideshow/src/settings.ts": {
"counts": {
"action": 1
},
"design": "Host action menus and shared searchable image picker; native image select only on older hosts",
"check": "RuneStone_Background_Slideshow/tests/settings.smoke.mjs"
},
"RuneStone_Local_Autocomplete/src/main.mjs": {
"counts": {
"action": 1,
"nativeChoice": 1
},
"design": "Host radio menu; native server select only on older hosts",
"check": "tests/smoke/plugins/choiceMenus.smoke.mjs"
},
"RuneStone_Git/src/view.js": {
"counts": {
"picker": 1
},
"design": "Commit history listbox, not a popup menu",
"check": "Source inspection: persistent history list retains its own layout"
},
"RuneStone_CSV_Viewer/src/index.js": {
"counts": {
"action": 1,
"picker": 1,
"localPopup": 5
},
"design": "Shared action menus for sorting, filters, and header actions. Persistent searchable column visibility dialog uses rs-picker rows and shared surfaces.",
"check": "RuneStone_CSV_Viewer/tests/browser.mjs; RuneStone_CSV_Viewer/tests/host.mjs"
},
"RuneStone/src/lib/layout/SettingsDialog.svelte": {
"counts": {
"action": 1,
"localPopup": 1
},
"design": "Shared action menu for interface language; settings retain ordinary controls",
"check": "tests/smoke/settings/displayLanguage.smoke.mjs; tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone_Project_Management/src/workspace-default.ts": {
"counts": {
"nativeChoice": 1
},
"design": "Uses the host menu. Keeps a native selector for older hosts.",
"check": "RuneStone_Project_Management/tests/october-cards.spec.ts with PM_HOST_URL; both themes, narrow layout, keyboard focus"
}
}
}