@claudetree/core
v0.4.5
Published
Core domain and infrastructure for claudetree
Downloads
1,542
Readme
@claudetree/core
claudetree的核心领域和基础设施。
概述
此包包含:
- 领域层: Repository接口和业务逻辑
- 基础设施层: Git worktree、Claude CLI、GitHub API、Slack适配器
- 应用层: 会话管理和编排
安装
npm install @claudetree/core
# 或
pnpm add @claudetree/core主要组件
适配器
GitWorktreeAdapter- Git worktree管理ClaudeSessionAdapter- Claude CLI进程管理GitHubAdapter- GitHub API(问题、PR)SlackNotifier- Slack webhook通知WebSocketBroadcaster- 实时事件广播
存储库
FileSessionRepository- 会话状态持久化FileEventRepository- 事件日志TemplateLoader- 会话模板管理
使用方法
import {
GitWorktreeAdapter,
ClaudeSessionAdapter,
FileSessionRepository,
} from '@claudetree/core';
const git = new GitWorktreeAdapter(projectPath);
const worktrees = await git.list();链接
许可证
MIT
