feat: enable permission-aware subagents

This commit is contained in:
叶林立
2026-08-26 10:49:26 +08:00
parent d3bf562189
commit 7571ba6dd9
185 changed files with 48365 additions and 26 deletions
+18
View File
@@ -0,0 +1,18 @@
/**
* Real extension fixture "beta" for the template-driven e2e runner.
* Registers a single tool, used to prove that the `ext:` allowlist flip mutes
* a loaded-but-unselected extension. See ext-alpha.mjs for the conventions.
*/
import { Type } from "@sinclair/typebox";
export default function (pi) {
pi.registerTool({
name: "beta_tool",
label: "beta_tool",
description: "Beta extension tool (e2e fixture).",
parameters: Type.Object({}),
async execute() {
return { content: [{ type: "text", text: "beta_tool" }] };
},
});
}