bd307f3a11
* feat(gateway): graph gateway protocol * refactor(cli): wire gateway in cli/tui * refactor(gateway): centralize runtime gateway init * chore(gateway): restrict RunRequest message type * feat(gateway): add langgraph server gateway * chore(cli): tighten serve runtime state typing * refactor(cli): route async task state reads through graph gateway * refactor(gateway): support graph targets in server gateway * refactor(cli): route session commands through graph gateway * refactor(cli): fold thread store under graph gateway * refactor(gateway): route graph state access through gateway * refactor(channels): wire graph gateway * refactor(memory): preserve graph threads for cloning * feat(gateway): add thread cloning * fix(tui): pass effective workspace for thread creation * chore(memory): add workspare dir to memory worker metadata * fix(sessions): filter preloaded UUID registy entries by the current scope * test(fakes): use https * refactor(consumer): consolidate imports * fix(stream): optional summarization event * fix(gateway): resolve abbreviated thread IDs by search * fix(gateway): page server thread listings * fix(gateway): emit pending interrupt events * style: fmt * feat(gateway): persist workspace_dir & model in thread metadata * fix(gateway): page server thread prefix resolution * fix(gateway): expose server thread list metadata * refactor: add back type def * refactor: tighten types * revert: add back worker thread deletion The worker thread forking changes are out of scope for now, so to maintain parity with the existing behavior we'll leave this intact. * fix(gateway): apply compaction to server thread history * refactor(stream): restore direct summary replay suppression * fix(gateway): preserve compaction state and server stream output * fix(gateway): close local stream generator on cancellation --------- Co-authored-by: Xi Zhang <106144707+X-iZhang@users.noreply.github.com>
49 lines
1.1 KiB
Python
49 lines
1.1 KiB
Python
"""Graph/thread gateway abstractions.
|
|
|
|
The gateway package is the migration seam between UI surfaces and graph
|
|
execution. CLI, TUI, channels, and future frontends should depend on this
|
|
package for thread/run operations instead of reaching directly into
|
|
``sessions.py``, ``stream.events``, or the LangGraph SDK.
|
|
"""
|
|
|
|
from .local import LocalGraphGateway, LocalThreadStore
|
|
from .runtime import (
|
|
RuntimeGatewayBackend,
|
|
RuntimeGateways,
|
|
create_runtime_gateways,
|
|
)
|
|
from .server import (
|
|
LangGraphServerGateway,
|
|
LangGraphServerThreadStore,
|
|
)
|
|
from .types import (
|
|
DEFAULT_GRAPH_ID,
|
|
GraphEvent,
|
|
GraphGateway,
|
|
GraphRunInput,
|
|
GraphStateValues,
|
|
GraphTarget,
|
|
RunRequest,
|
|
ThreadResolution,
|
|
ThreadStore,
|
|
)
|
|
|
|
__all__ = [
|
|
"DEFAULT_GRAPH_ID",
|
|
"GraphEvent",
|
|
"GraphGateway",
|
|
"GraphRunInput",
|
|
"GraphStateValues",
|
|
"GraphTarget",
|
|
"LangGraphServerGateway",
|
|
"LangGraphServerThreadStore",
|
|
"LocalGraphGateway",
|
|
"LocalThreadStore",
|
|
"RunRequest",
|
|
"RuntimeGatewayBackend",
|
|
"RuntimeGateways",
|
|
"ThreadResolution",
|
|
"ThreadStore",
|
|
"create_runtime_gateways",
|
|
]
|