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:
John
2026-06-15 22:09:38 -07:00
parent 3cd322ccfe
commit 6ee6fd64dd
94 changed files with 7015 additions and 2136 deletions
+18 -2
View File
@@ -81,6 +81,10 @@ export type MindSpaceChatContext = {
status: string;
categoryCode: MindSpaceCategory['code'];
}>;
agentSessionId?: string;
h5ApiBase?: string;
pageEditMode?: boolean;
parentAgentSessionId?: string;
};
export type TokenState = {
@@ -123,7 +127,7 @@ export type HarnessBootstrapResponse = {
refreshed: boolean;
};
export type ChatState = 'idle' | 'loading' | 'streaming' | 'waiting' | 'error';
export type ChatState = 'idle' | 'loading' | 'connecting' | 'streaming' | 'waiting' | 'error';
export type ToolConfirmation = {
id: string;
@@ -296,7 +300,7 @@ export type MindSpaceRedactedCopyResult = {
export type MindSpaceCleanupItem = {
id: string;
kind: 'stale_upload' | 'orphan_tmp' | 'workspace_temp';
kind: 'stale_upload' | 'orphan_tmp' | 'workspace_temp' | 'stale_page_version';
label: string;
path: string;
sizeBytes: number;
@@ -484,6 +488,12 @@ export type MindSpacePageDeleteResult = {
deletedAssetCount: number;
freedBytes: number;
clearedAgentJobCount: number;
quota?: MindSpaceQuota;
};
export type MindSpaceRefreshOptions = {
quota?: MindSpaceQuota;
freedBytes?: number;
};
export type CapabilityDefinition = {
@@ -599,6 +609,12 @@ export type UsageRecord = {
createdAt: number;
};
export type BalanceUpdate = {
balanceCents: number;
tokensUsed?: number;
lastUsage?: Pick<UsageRecord, 'inputTokens' | 'outputTokens' | 'costCents'>;
};
export type LedgerEntry = {
id: number;
userId: string;