refactor(onboard): extract legacy filename to constant
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ba7ec072cd
commit
9e6c2b2a7b
1 changed files with 4 additions and 1 deletions
|
|
@ -10,6 +10,9 @@ import (
|
||||||
"github.com/sipeed/picoclaw/pkg/config"
|
"github.com/sipeed/picoclaw/pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// legacyAgentFile is the old workspace template filename superseded by AGENTS.md.
|
||||||
|
const legacyAgentFile = "AGENT.md"
|
||||||
|
|
||||||
func onboard() {
|
func onboard() {
|
||||||
configPath := internal.GetConfigPath()
|
configPath := internal.GetConfigPath()
|
||||||
|
|
||||||
|
|
@ -71,7 +74,7 @@ func copyEmbeddedToTarget(targetDir string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip legacy file superseded by AGENTS.md
|
// Skip legacy file superseded by AGENTS.md
|
||||||
if filepath.Base(path) == "AGENT.md" {
|
if filepath.Base(path) == legacyAgentFile {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue