mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-27 02:45:24 +08:00
fix: bot routing setup and busy-session response checks (#2728)
Apply group response rules before busy-session steering. Initialize usable private-message and group-mention routes for new bots, including Wizard-created pipelines, and preserve member-configured rules across saves and retries. Fix empty pipeline configuration, refresh the processor sidebar after automatic creation, and show creation feedback. Align routing regressions and use Node 24 for the browser CI job. Correct the task's erroneous agent attribution while preserving every code tree and the original human contribution. Co-authored-by: multica-agent <[email protected]>
This commit is contained in:
co-authored by
multica-agent
parent
f8e32ef14f
commit
d13ae56ea5
@@ -387,6 +387,35 @@ class LangBotMCPServer:
|
||||
async def list_bot_event_route_statuses(bot_uuid: str) -> str:
|
||||
return _dump(await ap.bot_service.list_event_route_statuses(bot_uuid))
|
||||
|
||||
@mcp.tool(
|
||||
description=(
|
||||
'Preview promoting the pipeline at-bot trigger rule to a routing-layer '
|
||||
'is_at_bot filter. Reports which bindings and pipelines need migration '
|
||||
'without persisting changes.'
|
||||
)
|
||||
)
|
||||
async def preview_bot_group_filter_migration(bot_uuid: str) -> str:
|
||||
context = _authorized(Permission.RESOURCE_VIEW)
|
||||
return _dump(await ap.bot_service.preview_group_filter_migration(context, bot_uuid))
|
||||
|
||||
@mcp.tool(
|
||||
description=(
|
||||
'Apply the group filter migration previewed by '
|
||||
'preview_bot_group_filter_migration. Adds is_at_bot=true filter to group '
|
||||
'message bindings and, when disable_pipeline_at_bot is true (default), '
|
||||
'turns off the pipeline trigger at-bot rule. Idempotent.'
|
||||
)
|
||||
)
|
||||
async def apply_bot_group_filter_migration(bot_uuid: str, disable_pipeline_at_bot: bool = True) -> str:
|
||||
context = _authorized(Permission.RESOURCE_MANAGE)
|
||||
return _dump(
|
||||
await ap.bot_service.apply_group_filter_migration(
|
||||
context,
|
||||
bot_uuid,
|
||||
disable_pipeline_at_bot=disable_pipeline_at_bot,
|
||||
)
|
||||
)
|
||||
|
||||
# ----- Pipelines ----------------------------------------------- #
|
||||
@mcp.tool(description='List all pipelines.')
|
||||
async def list_pipelines() -> str:
|
||||
|
||||
Reference in New Issue
Block a user