feat: add pluggable Excel analyst report guard
Memind CI / Test, build, and release guards (push) Has been cancelled
Memind CI / Test, build, and release guards (push) Has been cancelled
This commit is contained in:
+7
-3
@@ -1869,10 +1869,14 @@ export function createUserAuth(pool, options = {}) {
|
||||
policyState.policies,
|
||||
);
|
||||
// Wire up the sandbox MCP for user workspace tools and the private data space.
|
||||
// File operations are OS-bound to the user's workspace; private_data_* tools
|
||||
// only touch the user's isolated PostgreSQL schema.
|
||||
// File and Excel operations are OS-bound to the user's workspace;
|
||||
// private_data_* tools only touch the user's isolated PostgreSQL schema.
|
||||
let sandboxMcp = null;
|
||||
if (effectiveCapabilities.static_publish || effectiveCapabilities.private_data_space) {
|
||||
if (
|
||||
effectiveCapabilities.static_publish ||
|
||||
effectiveCapabilities.private_data_space ||
|
||||
effectiveCapabilities.excel_analysis
|
||||
) {
|
||||
try {
|
||||
const workspaceCapability = resolveMindSpaceAgentWorkspaceCapability({
|
||||
h5Root,
|
||||
|
||||
Reference in New Issue
Block a user