WIP: Save agent roles integration work before CHORUS rebrand
- Agent roles and coordination features - Chat API integration testing - New configuration and workspace management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@ type Config struct {
|
||||
GitHub GitHubConfig `yaml:"github"`
|
||||
P2P P2PConfig `yaml:"p2p"`
|
||||
Logging LoggingConfig `yaml:"logging"`
|
||||
HCFS HCFSConfig `yaml:"hcfs"`
|
||||
}
|
||||
|
||||
// HiveAPIConfig holds Hive system integration settings
|
||||
@@ -91,6 +92,32 @@ type LoggingConfig struct {
|
||||
Structured bool `yaml:"structured"`
|
||||
}
|
||||
|
||||
// HCFSConfig holds HCFS integration configuration
|
||||
type HCFSConfig struct {
|
||||
// API settings
|
||||
APIURL string `yaml:"api_url" json:"api_url"`
|
||||
APITimeout time.Duration `yaml:"api_timeout" json:"api_timeout"`
|
||||
|
||||
// Workspace settings
|
||||
MountPath string `yaml:"mount_path" json:"mount_path"`
|
||||
WorkspaceTimeout time.Duration `yaml:"workspace_timeout" json:"workspace_timeout"`
|
||||
|
||||
// FUSE settings
|
||||
FUSEEnabled bool `yaml:"fuse_enabled" json:"fuse_enabled"`
|
||||
FUSEMountPoint string `yaml:"fuse_mount_point" json:"fuse_mount_point"`
|
||||
|
||||
// Cleanup settings
|
||||
IdleCleanupInterval time.Duration `yaml:"idle_cleanup_interval" json:"idle_cleanup_interval"`
|
||||
MaxIdleTime time.Duration `yaml:"max_idle_time" json:"max_idle_time"`
|
||||
|
||||
// Storage settings
|
||||
StoreArtifacts bool `yaml:"store_artifacts" json:"store_artifacts"`
|
||||
CompressArtifacts bool `yaml:"compress_artifacts" json:"compress_artifacts"`
|
||||
|
||||
// Enable/disable HCFS integration
|
||||
Enabled bool `yaml:"enabled" json:"enabled"`
|
||||
}
|
||||
|
||||
// LoadConfig loads configuration from file, environment variables, and defaults
|
||||
func LoadConfig(configPath string) (*Config, error) {
|
||||
// Start with defaults
|
||||
@@ -156,6 +183,19 @@ func getDefaultConfig() *Config {
|
||||
Output: "stdout",
|
||||
Structured: false,
|
||||
},
|
||||
HCFS: HCFSConfig{
|
||||
APIURL: "http://localhost:8000",
|
||||
APITimeout: 30 * time.Second,
|
||||
MountPath: "/tmp/hcfs-workspaces",
|
||||
WorkspaceTimeout: 2 * time.Hour,
|
||||
FUSEEnabled: false,
|
||||
FUSEMountPoint: "/mnt/hcfs",
|
||||
IdleCleanupInterval: 15 * time.Minute,
|
||||
MaxIdleTime: 1 * time.Hour,
|
||||
StoreArtifacts: true,
|
||||
CompressArtifacts: false,
|
||||
Enabled: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user