MCPcopy Create free account
hub / github.com/diillson/chatcli / NewBootstrapLoader

Function NewBootstrapLoader

cli/workspace/bootstrap.go:39–46  ·  view source on GitHub ↗

NewBootstrapLoader creates a new loader.

(workspaceDir, globalDir string, logger *zap.Logger)

Source from the content-addressed store, hash-verified

37
38// NewBootstrapLoader creates a new loader.
39func NewBootstrapLoader(workspaceDir, globalDir string, logger *zap.Logger) *BootstrapLoader {
40 return &BootstrapLoader{
41 workspaceDir: workspaceDir,
42 globalDir: globalDir,
43 cache: make(map[string]cachedFile),
44 logger: logger,
45 }
46}
47
48// LoadBootstrapContent loads all bootstrap files with mtime-based cache invalidation.
49// Priority: workspace > global (workspace files override global).

Calls

no outgoing calls