MCPcopy Create free account
hub / github.com/compozy/agh / actorContextFromScope

Function actorContextFromScope

internal/daemon/native_tools.go:5974–5979  ·  view source on GitHub ↗
(scope toolspkg.Scope)

Source from the content-addressed store, hash-verified

5972}
5973
5974func actorContextFromScope(scope toolspkg.Scope) (taskpkg.ActorContext, error) {
5975 if sessionID := strings.TrimSpace(scope.SessionID); sessionID != "" {
5976 return taskpkg.DeriveAgentSessionActorContext(sessionID)
5977 }
5978 return taskpkg.DeriveDaemonActorContext("native-tools", "tool.registry")
5979}
5980
5981func searchSkills(skillList []*skills.Skill, query string) []*skills.Skill {
5982 needle := strings.ToLower(strings.TrimSpace(query))

Callers 15

taskListMethod · 0.85
taskReadMethod · 0.85
taskCreateMethod · 0.85
taskChildCreateMethod · 0.85
taskUpdateMethod · 0.85
taskCancelMethod · 0.85
taskBlocksMethod · 0.85
taskRunListMethod · 0.85
taskPromoteFromThreadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected