@fusedashlabs/ui9000-workspace
Version:
UI9000 workspace MCP. One tool, show_workspace, draws a chart from your table. Set TYPESAFE_API_KEY to let Jev choose the chart.
16 lines (15 loc) • 496 B
JavaScript
export function openProposalSession() {
return { proposals: [] };
}
/** High-risk actions return a preview. Low-risk actions return null and are not held. */
export function holdAction(session, action) {
if (action.band !== 'held')
return null;
const proposal = {
id: `proposal:${action.action}`,
action: action.action,
preview: `Preview ${action.action}. This is not an execution.`,
};
session.proposals.push(proposal);
return proposal;
}