(skill SkillSpec, args, sessionID string, approveProjectShell func(SkillShellPermissionRequest) bool)
| 39 | } |
| 40 | |
| 41 | func (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 | |
| 53 | func (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" { |
no test coverage detected