Add MindSpace page live edit, chat skills, and H5 deploy tooling.
Introduce page edit sessions with draft preview and patch API, chat skill picker, user memory profile, h5ApiBase resolution, voice WAV transport, and scripts for 105/g2 deployment and Plaza local dev. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+8
-2
@@ -62,6 +62,12 @@ export function createSseBillingTransform({ onFinish }) {
|
||||
});
|
||||
}
|
||||
|
||||
export function appendBalanceEvent(balanceCents) {
|
||||
return `event: balance\ndata: ${JSON.stringify({ balanceCents })}\n\n`;
|
||||
export function appendBalanceEvent(payload) {
|
||||
const data =
|
||||
typeof payload === 'number'
|
||||
? { balanceCents: payload }
|
||||
: payload && typeof payload === 'object'
|
||||
? payload
|
||||
: { balanceCents: 0 };
|
||||
return `event: balance\ndata: ${JSON.stringify(data)}\n\n`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user