推进 INI 面板 workflow status helper
This commit is contained in:
@@ -118,3 +118,14 @@ export function createMachineSessionStateReportExport(state = {}, options = {})
|
||||
text: `${JSON.stringify(report, null, 2)}\n`,
|
||||
};
|
||||
}
|
||||
|
||||
export function createMachineSessionWorkflowStatus(state = {}) {
|
||||
const report = createMachineSessionStateReport(state);
|
||||
return {
|
||||
readiness: report.readiness,
|
||||
lastAction: report.status.lastAction,
|
||||
error: report.status.error,
|
||||
session: report.session,
|
||||
run: report.run,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user