fix(feishu): enforce workspace-only localRoots in docx upload actions [AI-assisted] (#62369)

* fix: address issue

* docs(changelog): add feishu workspace-only docx entry

---------

Co-authored-by: Devin Robison <drobison@nvidia.com>
This commit is contained in:
pgondhi987
2026-04-07 22:05:03 +05:30
committed by GitHub
parent 67a3af7f8d
commit f0c9978030
9 changed files with 239 additions and 26 deletions

View File

@@ -22,7 +22,7 @@ const BROWSER_FIXTURE_ENTRY = `module.exports = {
properties: {},
},
register(api) {
api.registerTool(() => ({
api.registerTool((ctx) => ({
name: "browser",
label: "browser",
description: "browser fixture tool",
@@ -33,7 +33,9 @@ const BROWSER_FIXTURE_ENTRY = `module.exports = {
async execute() {
return {
content: [{ type: "text", text: "ok" }],
details: {},
details: {
workspaceOnly: ctx.fsPolicy?.workspaceOnly ?? null,
},
};
},
}));