推进 INI 面板 readonly status API manifest

This commit is contained in:
2026-06-15 05:48:26 +08:00
parent 3280f3a53e
commit f7de24d4a5
7 changed files with 148 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ import {
getVisibleIniPanelEntries,
createMachineSessionControlPageController,
createMachineSessionReadonlyStatus,
createMachineSessionReadonlyStatusApiManifest,
readMachineSessionReadonlyStatus,
loadMachineSessionForControlPageWorkflow,
createControlPageSessionLoadState,
@@ -26,8 +27,8 @@ import {
```
`ui-shell.js` re-exports the entry manifest, the read-only control-page
controller, the unified read-only status API, and the control-view renderer. It
does not implement CNC behavior.
controller, the unified read-only status API, the readonly-status API manifest,
and the control-view renderer. It does not implement CNC behavior.
## Pages
@@ -56,6 +57,9 @@ mounting the existing control-page controller, refresh workflow, and renderer.
Use `controlPage.readStatus` or `readMachineSessionReadonlyStatus()` when an
outer shell needs one stable read of `stateBundle`, `workflowStatus`,
`overview`, `controlView`, `session`, `runReadiness`, and `run`.
Use `createMachineSessionReadonlyStatusApiManifest()` or
`controlPage.readonlyStatusApiManifest` when you only need the API shape and
method names.
The control-page refresh workflow lives in
`runtime/ui/ini-panel/control-page-refresh-workflow.js`. Use