feat(mindspace): add page quota grace write and local delivery guardrails.
Memind CI / Test, build, and release guards (pull_request) Failing after 18s
Memind CI / Test, build, and release guards (pull_request) Failing after 18s
Centralize page HTML quota checks with grace-write semantics across page services and workspace tools, keep localhost MindSpace links clickable in chat display, and expand Page Data/static-page skill plus local dev docs for quota, delivery URLs, and native Aider/OpenHands tooling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -78,17 +78,22 @@ try {
|
||||
codeHasCodeTools: grantedTools.includes('aider') || grantedTools.includes('openhands'),
|
||||
}));
|
||||
|
||||
const roleCodeToolsDefault = ['1', 'true', 'yes', 'on'].includes(
|
||||
String(process.env.MEMIND_ROLE_CODE_TOOLS_DEFAULT ?? '').trim().toLowerCase(),
|
||||
);
|
||||
const expectedRoleCodeTools = roleCodeToolsDefault;
|
||||
const ok = Boolean(
|
||||
roleDefaults.aider === false &&
|
||||
roleDefaults.openhands === false &&
|
||||
roleDefaults.aider === expectedRoleCodeTools &&
|
||||
roleDefaults.openhands === expectedRoleCodeTools &&
|
||||
sampledUsers.every((user) => user.chatHasCodeTools === false) &&
|
||||
sampledUsers.every((user) => user.codeHasCodeTools === true),
|
||||
(roleCodeToolsDefault || sampledUsers.every((user) => user.codeHasCodeTools === true)),
|
||||
);
|
||||
|
||||
console.log(JSON.stringify({
|
||||
ok,
|
||||
checkedAt: new Date().toISOString(),
|
||||
roleDefaults,
|
||||
roleCodeToolsDefault,
|
||||
whitelistUserCount: grantsByUser.size,
|
||||
sampledUsers,
|
||||
runtimePolicy: {
|
||||
|
||||
Reference in New Issue
Block a user