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,
|
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(
|
await runMessagesTransformHookSafely(
|
||||||
"thinkingBlockValidator",
|
"thinkingBlockValidator",
|
||||||
args.hooks.thinkingBlockValidator?.[
|
args.hooks.thinkingBlockValidator?.[
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export async function createSkillContext(args: {
|
|||||||
const builtinSkills = createBuiltinSkills({
|
const builtinSkills = createBuiltinSkills({
|
||||||
browserProvider,
|
browserProvider,
|
||||||
disabledSkills,
|
disabledSkills,
|
||||||
|
teamModeEnabled: pluginConfig.team_mode?.enabled ?? false,
|
||||||
}).filter((skill) => {
|
}).filter((skill) => {
|
||||||
if (skill.mcpConfig) {
|
if (skill.mcpConfig) {
|
||||||
for (const mcpName of Object.keys(skill.mcpConfig)) {
|
for (const mcpName of Object.keys(skill.mcpConfig)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user