Documentation
¶
Index ¶
- Variables
- func CopyFromFS(targetDir string) error
- func GetDefaultWorkspaceDir() (string, error)
- type Manager
- func (m *Manager) AppendTodayLog(content string) error
- func (m *Manager) Ensure() error
- func (m *Manager) GetWorkspaceDir() string
- func (m *Manager) ListFiles() ([]string, error)
- func (m *Manager) ListMemoryFiles() ([]string, error)
- func (m *Manager) ReadBootstrapFile(filename string) (string, error)
- func (m *Manager) ReadMemoryFile(filename string) (string, error)
- func (m *Manager) ReadTodayLog() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BootstrapFiles = []string{
"AGENTS.md",
"SOUL.md",
"IDENTITY.md",
"USER.md",
"TOOLS.md",
"HEARTBEAT.md",
"BOOT.md",
"BOOTSTRAP.md",
}
BootstrapFiles 定义所有 bootstrap 文件
Functions ¶
func GetDefaultWorkspaceDir ¶
GetDefaultWorkspaceDir 获取默认 workspace 目录
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager 管理 workspace 目录
func (*Manager) AppendTodayLog ¶
AppendTodayLog 追加内容到今日日志
func (*Manager) GetWorkspaceDir ¶
GetWorkspaceDir 获取 workspace 目录路径
func (*Manager) ListMemoryFiles ¶
ListMemoryFiles 列出 memory 目录下的所有文件
func (*Manager) ReadBootstrapFile ¶
ReadBootstrapFile 读取 bootstrap 文件内容
func (*Manager) ReadMemoryFile ¶
ReadMemoryFile 读取 memory 目录下的文件
Click to show internal directories.
Click to hide internal directories.