workspace

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 CopyFromFS

func CopyFromFS(targetDir string) error

CopyFromFS 从嵌入的文件系统复制所有模板文件到指定目录

func GetDefaultWorkspaceDir

func GetDefaultWorkspaceDir() (string, error)

GetDefaultWorkspaceDir 获取默认 workspace 目录

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager 管理 workspace 目录

func NewManager

func NewManager(workspaceDir string) *Manager

NewManager 创建 workspace 管理器

func (*Manager) AppendTodayLog

func (m *Manager) AppendTodayLog(content string) error

AppendTodayLog 追加内容到今日日志

func (*Manager) Ensure

func (m *Manager) Ensure() error

Ensure 确保 workspace 目录存在且包含所有必要的文件

func (*Manager) GetWorkspaceDir

func (m *Manager) GetWorkspaceDir() string

GetWorkspaceDir 获取 workspace 目录路径

func (*Manager) ListFiles

func (m *Manager) ListFiles() ([]string, error)

ListFiles 列出 workspace 目录下的所有文件

func (*Manager) ListMemoryFiles

func (m *Manager) ListMemoryFiles() ([]string, error)

ListMemoryFiles 列出 memory 目录下的所有文件

func (*Manager) ReadBootstrapFile

func (m *Manager) ReadBootstrapFile(filename string) (string, error)

ReadBootstrapFile 读取 bootstrap 文件内容

func (*Manager) ReadMemoryFile

func (m *Manager) ReadMemoryFile(filename string) (string, error)

ReadMemoryFile 读取 memory 目录下的文件

func (*Manager) ReadTodayLog

func (m *Manager) ReadTodayLog() (string, error)

ReadTodayLog 读取今日日志

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL