__init__.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. """
  2. Trace module - 执行追踪与计划管理
  3. 包含:
  4. - Trace, Goal, Message 数据模型
  5. - TraceStore 存储接口和实现
  6. - goal 工具(计划管理)
  7. - Context 压缩
  8. - REST/WebSocket API
  9. """
  10. from .models import Trace, Message
  11. from .goal_models import Goal, GoalTree, GoalStatus, GoalType, GoalStats
  12. from .attachments import AttachmentRef
  13. from .protocols import TraceAttachmentStore, TraceStore
  14. from .store import FileSystemTraceStore
  15. from .trace_id import generate_trace_id, generate_sub_trace_id, parse_parent_trace_id
  16. from .tree_dump import StepTreeDumper, dump_json, dump_markdown, dump_tree
  17. __all__ = [
  18. # Models
  19. "Trace",
  20. "Message",
  21. "Goal",
  22. "GoalTree",
  23. "GoalStatus",
  24. "GoalType",
  25. "GoalStats",
  26. # Store
  27. "TraceStore",
  28. "TraceAttachmentStore",
  29. "AttachmentRef",
  30. "FileSystemTraceStore",
  31. # Utils
  32. "generate_trace_id",
  33. "generate_sub_trace_id",
  34. "parse_parent_trace_id",
  35. # Debug helpers (kept for the documented compatibility import)
  36. "StepTreeDumper",
  37. "dump_tree",
  38. "dump_json",
  39. "dump_markdown",
  40. ]