fix: skills loading from ~/.agents/skills
- Fix skill manager directory path to ~/.agents/skills - Add InitPlugins() call in main.go to load skills on startup - Skills now recognized and loaded correctly
This commit is contained in:
parent
286d3dae3c
commit
81f6802f2e
@ -57,6 +57,10 @@ func main() {
|
|||||||
log.Fatalf("Failed to start kernel: %v", err)
|
log.Fatalf("Failed to start kernel: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := k.InitPlugins(); err != nil {
|
||||||
|
log.Printf("Warning: failed to load skills: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
k.SetStreamWriter(os.Stdout)
|
k.SetStreamWriter(os.Stdout)
|
||||||
|
|
||||||
fmt.Println("Orca Agent Framework")
|
fmt.Println("Orca Agent Framework")
|
||||||
|
|||||||
@ -82,7 +82,7 @@ func NewWithConfig(cfg *config.Config) *Kernel {
|
|||||||
k.registerBuiltinTools()
|
k.registerBuiltinTools()
|
||||||
|
|
||||||
// Initialize skill manager
|
// Initialize skill manager
|
||||||
k.skillMgr = skill.NewManager(cfg.Session.StorageDir + "/skills")
|
k.skillMgr = skill.NewManager("~/.agents/skills")
|
||||||
|
|
||||||
// Initialize actor system
|
// Initialize actor system
|
||||||
k.initializeActorSystem()
|
k.initializeActorSystem()
|
||||||
|
|||||||
@ -15,7 +15,7 @@ const (
|
|||||||
DefaultOutputLimit = 64 * 1024
|
DefaultOutputLimit = 64 * 1024
|
||||||
|
|
||||||
// DefaultWorkingDir is the default working directory for sandboxed commands.
|
// DefaultWorkingDir is the default working directory for sandboxed commands.
|
||||||
DefaultWorkingDir = "/tmp/orca/sandbox"
|
DefaultWorkingDir = "."
|
||||||
)
|
)
|
||||||
|
|
||||||
// AllowedEnvVars is the whitelist of environment variables accessible inside the sandbox.
|
// AllowedEnvVars is the whitelist of environment variables accessible inside the sandbox.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user