Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions cli/common/clicore/skillscan_aliases.go

This file was deleted.

7 changes: 4 additions & 3 deletions cli/common/clicore/tool_catalog.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package clicore

import (
"github.com/hatayama/unity-cli-loop/common/skillscan"
"github.com/hatayama/unity-cli-loop/common/tools"
)

Expand All @@ -17,11 +18,11 @@ type (
)

func LoadTools(projectRoot string) (ToolsCache, error) {
return tools.Load(projectRoot, collectInternalSkillToolNames(projectRoot))
return tools.Load(projectRoot, skillscan.CollectInternalSkillToolNames(projectRoot))
}

func LoadProjectToolCache(projectRoot string) (ToolsCache, bool) {
return tools.LoadProjectCache(projectRoot, collectInternalSkillToolNames(projectRoot))
return tools.LoadProjectCache(projectRoot, skillscan.CollectInternalSkillToolNames(projectRoot))
}

func LoadDefaultTools() ToolsCache {
Expand All @@ -37,7 +38,7 @@ func FindDefaultTool(name string) (ToolDefinition, bool) {
}

func FindToolForCommand(projectRoot string, command string) (ToolDefinition, ToolsCache, bool, error) {
return findToolForCommandWithInternalToolNames(projectRoot, command, collectInternalSkillToolNames)
return findToolForCommandWithInternalToolNames(projectRoot, command, skillscan.CollectInternalSkillToolNames)
}

func findToolForCommandWithInternalToolNames(
Expand Down
3 changes: 2 additions & 1 deletion cli/common/clicore/tool_catalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"testing"

"github.com/hatayama/unity-cli-loop/common/clitest"
"github.com/hatayama/unity-cli-loop/common/skillscan"
)

// Tests that run-tests-specific help text does not leak into unrelated tool schemas.
Expand Down Expand Up @@ -340,5 +341,5 @@ func writeToolCache(t *testing.T, projectRoot string, content string) {
// shared clitest.WriteSkillFile helper, which owns the CRLF normalization.
func writeTestSkill(t *testing.T, projectRoot string, relativeDir string, content string) {
t.Helper()
clitest.WriteSkillFile(t, projectRoot, relativeDir, SkillFileName, content)
clitest.WriteSkillFile(t, projectRoot, relativeDir, skillscan.SkillFileName, content)
}
Loading
Loading