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:
+28
-3
@@ -142,12 +142,12 @@ export const DEFAULT_USER_CAPABILITIES = Object.fromEntries(
|
||||
filesystem: false,
|
||||
code_browse: false,
|
||||
image_read: true,
|
||||
skills: false,
|
||||
skills: true,
|
||||
subagent: false,
|
||||
code_sandbox: false,
|
||||
chat_recall: false,
|
||||
chat_recall: true,
|
||||
context_memory: true,
|
||||
memory_store: false,
|
||||
memory_store: true,
|
||||
extension_admin: false,
|
||||
apps: false,
|
||||
todo: false,
|
||||
@@ -287,6 +287,31 @@ export function buildAgentExtensionPolicy(
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Narrow policy for in-preview page edit sub-sessions: patch API via shell when allowed,
|
||||
* otherwise reply-only patches via mindspace-page-update blocks.
|
||||
*/
|
||||
export function buildPageEditAgentPolicy(basePolicy) {
|
||||
if (basePolicy?.unrestricted) {
|
||||
return {
|
||||
...basePolicy,
|
||||
enableContextMemory: false,
|
||||
gooseMode: 'auto',
|
||||
};
|
||||
}
|
||||
|
||||
const baseDeveloper = basePolicy?.extensionOverrides?.find((ext) => ext.name === 'developer');
|
||||
const canShell = baseDeveloper?.available_tools?.includes('shell') ?? false;
|
||||
const extensions = canShell ? [makeExtension('platform', 'developer', ['shell'])] : [];
|
||||
|
||||
return {
|
||||
...basePolicy,
|
||||
extensionOverrides: extensions,
|
||||
enableContextMemory: false,
|
||||
gooseMode: 'auto',
|
||||
};
|
||||
}
|
||||
|
||||
export function normalizeCapabilityPatch(patch) {
|
||||
const normalized = {};
|
||||
for (const [key, value] of Object.entries(patch ?? {})) {
|
||||
|
||||
Reference in New Issue
Block a user