推进 INI 面板 readonly status API manifest
This commit is contained in:
@@ -21,6 +21,35 @@ export function createMachineSessionReadonlyStatus({
|
||||
};
|
||||
}
|
||||
|
||||
export function createMachineSessionReadonlyStatusApiManifest() {
|
||||
return {
|
||||
apiName: "machine-session-readonly-status",
|
||||
methods: {
|
||||
readStatus: {
|
||||
input: "{ getPanelApi, getControlView }",
|
||||
output: "readonly machine-session status snapshot",
|
||||
},
|
||||
},
|
||||
relatedControlPageMethods: [
|
||||
"loadSessionState",
|
||||
"readStatus",
|
||||
"refresh",
|
||||
"renderView",
|
||||
],
|
||||
statusFields: [
|
||||
"stateBundle",
|
||||
"workflowStatus",
|
||||
"overview",
|
||||
"controlView",
|
||||
"report",
|
||||
"runReadiness",
|
||||
"run",
|
||||
"session",
|
||||
"status",
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
export function readMachineSessionReadonlyStatus({ getPanelApi, getControlView } = {}) {
|
||||
if (typeof getPanelApi !== "function") {
|
||||
throw new Error("A panel API getter is required.");
|
||||
|
||||
Reference in New Issue
Block a user