Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/bub-mcp-server/src/bub_mcp_server/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import bub
from bub import hookimpl
from bub.channels import Channel
from bub.channels import Channel, Lifecycle
from bub.channels.message import ChannelMessage
from bub.types import MessageHandler
from fastmcp import FastMCP
Expand All @@ -18,7 +18,7 @@
from bub.framework import BubFramework


class MCPServerChannel(Channel):
class MCPServerChannel(Lifecycle):
name = "mcp-server"

def __init__(self, framework: BubFramework) -> None:
Expand Down
4 changes: 2 additions & 2 deletions packages/bub-mcp/src/bub_mcp/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import typer
import bub
from bub import hookimpl, tool
from bub.channels import Channel
from bub.channels import Channel, Lifecycle
from bub.tools import REGISTRY
from bub.types import Envelope, MessageHandler, State
from loguru import logger
Expand Down Expand Up @@ -100,7 +100,7 @@ class MCPServerState:
error: str | None = None


class MCPChannel(Channel):
class MCPChannel(Lifecycle):
name = LIFECYCLE_CHANNEL_NAME

def __init__(self) -> None:
Expand Down
4 changes: 2 additions & 2 deletions packages/bub-schedule/src/bub_schedule/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from asyncio import Event

from apscheduler.schedulers.base import BaseScheduler
from bub.channels import Channel
from bub.channels import Lifecycle
from bub.framework import BubFramework
from loguru import logger


class ScheduleChannel(Channel):
class ScheduleChannel(Lifecycle):
name = "schedule"

# Class-level runtime state (singleton per process)
Expand Down
18 changes: 9 additions & 9 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.