MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / ExecuteInline

Method ExecuteInline

skills/executor.go:41–51  ·  view source on GitHub ↗
(skill SkillSpec, args, sessionID string, approveProjectShell func(SkillShellPermissionRequest) bool)

Source from the content-addressed store, hash-verified

39}
40
41func (e *SkillExecutor) ExecuteInline(skill SkillSpec, args, sessionID string, approveProjectShell func(SkillShellPermissionRequest) bool) (SkillExecutionResult, error) {
42 loaded := e.Loader.LoadFullContent(skill)
43 if sessionID == "" {
44 sessionID = uuid.NewString()[:12]
45 }
46 prompt, err := e.PromptProcessor.Process(loaded, args, sessionID, approveProjectShell)
47 if err != nil {
48 return SkillExecutionResult{}, err
49 }
50 return SkillExecutionResult{Mode: "inline", Prompt: &prompt}, nil
51}
52
53func (e *SkillExecutor) Execute(ctx context.Context, skill SkillSpec, args, sessionID string, approveProjectShell func(SkillShellPermissionRequest) bool, baseRegistry *coretools.ToolRegistry, parentState any, extraContext coretools.ExecutionContext) (SkillExecutionResult, error) {
54 if skill.Frontmatter.Context == "fork" {

Callers 1

ExecuteMethod · 0.95

Calls 2

LoadFullContentMethod · 0.80
ProcessMethod · 0.80

Tested by

no test coverage detected