feat(mindspace): add page quota grace write and local delivery guardrails.
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:
john
2026-07-30 10:27:16 +08:00
parent b553107817
commit 371900bae5
18 changed files with 503 additions and 39 deletions
+8 -3
View File
@@ -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: {