MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / InstructionAppLevels

Function InstructionAppLevels

internal/entities/apps.go:382–395  ·  view source on GitHub ↗

InstructionAppLevels returns the supported install levels for an app.

(app string)

Source from the content-addressed store, hash-verified

380
381// InstructionAppLevels returns the supported install levels for an app.
382func InstructionAppLevels(app string) []InstallLevel {
383 paths, ok := instructionApps[app]
384 if !ok {
385 return nil
386 }
387 var levels []InstallLevel
388 if paths.UserPath != "" {
389 levels = append(levels, InstallLevelUser)
390 }
391 if paths.ProjectPath != "" {
392 levels = append(levels, InstallLevelProject)
393 }
394 return levels
395}
396
397// SupportedApps returns the supported app names for the kind, sorted.
398func SupportedApps(kind Kind) []string {

Callers 3

levelSupportedFunction · 0.92
TestInstructionAppLevelsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestInstructionAppLevelsFunction · 0.74