feat(plugin): include team-mode in message transform and skill context
This commit is contained in:
@@ -44,6 +44,24 @@ export function createMessagesTransformHandler(args: {
|
||||
output,
|
||||
)
|
||||
|
||||
await runMessagesTransformHookSafely(
|
||||
"teamModeStatusInjector",
|
||||
args.hooks.teamModeStatusInjector?.[
|
||||
"experimental.chat.messages.transform"
|
||||
],
|
||||
input,
|
||||
output,
|
||||
)
|
||||
|
||||
await runMessagesTransformHookSafely(
|
||||
"teamMailboxInjector",
|
||||
args.hooks.teamMailboxInjector?.[
|
||||
"experimental.chat.messages.transform"
|
||||
],
|
||||
input,
|
||||
output,
|
||||
)
|
||||
|
||||
await runMessagesTransformHookSafely(
|
||||
"thinkingBlockValidator",
|
||||
args.hooks.thinkingBlockValidator?.[
|
||||
|
||||
@@ -62,6 +62,7 @@ export async function createSkillContext(args: {
|
||||
const builtinSkills = createBuiltinSkills({
|
||||
browserProvider,
|
||||
disabledSkills,
|
||||
teamModeEnabled: pluginConfig.team_mode?.enabled ?? false,
|
||||
}).filter((skill) => {
|
||||
if (skill.mcpConfig) {
|
||||
for (const mcpName of Object.keys(skill.mcpConfig)) {
|
||||
|
||||
Reference in New Issue
Block a user