Files
zeekay 2899aeaa9f feat: merge agents control plane + SDKs into unified agent repo
Consolidate all Hanzo agent infrastructure into one repo:
- control-plane/: Go control plane server (was agents-new)
- sdk/: Go, Python, TypeScript SDKs
- deployments/: Docker, Kubernetes, Helm configs
- Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest)
- CI builds both SDK + control-plane images

No more agentfield — everything is hanzoai/agent.
2026-02-13 12:24:31 -08:00

45 lines
1020 B
Go

// hanzo-agents/internal/infrastructure/storage/filesystem.go
package storage
import (
"os"
"github.com/hanzoai/agents/control-plane/internal/core/interfaces"
)
type DefaultFileSystemAdapter struct{}
func NewFileSystemAdapter() interfaces.FileSystemAdapter {
return &DefaultFileSystemAdapter{}
}
func (fs *DefaultFileSystemAdapter) ReadFile(path string) ([]byte, error) {
return os.ReadFile(path)
}
func (fs *DefaultFileSystemAdapter) WriteFile(path string, data []byte) error {
return os.WriteFile(path, data, 0644)
}
func (fs *DefaultFileSystemAdapter) Exists(path string) bool {
_, err := os.Stat(path)
return err == nil
}
func (fs *DefaultFileSystemAdapter) CreateDirectory(path string) error {
return os.MkdirAll(path, 0755)
}
func (fs *DefaultFileSystemAdapter) ListDirectory(path string) ([]string, error) {
entries, err := os.ReadDir(path)
if err != nil {
return nil, err
}
var names []string
for _, entry := range entries {
names = append(names, entry.Name())
}
return names, nil
}