feat: implement skill debug resume functionality and related API endpoints

This commit is contained in:
mlogclub
2026-04-10 17:27:44 +08:00
parent 1087ddca44
commit 97f0df17b6
6 changed files with 292 additions and 0 deletions
@@ -186,3 +186,19 @@ func (c *SkillDefinitionController) PostDebug_run() *web.JsonResult {
}
return web.JsonData(resp)
}
func (c *SkillDefinitionController) PostDebug_resume() *web.JsonResult {
if _, err := services.AuthService.RequirePermission(c.Ctx, constants.PermissionSkillDefinitionView); err != nil {
return web.JsonError(err)
}
req := request.SkillDebugResumeRequest{}
if err := params.ReadJSON(c.Ctx, &req); err != nil {
return web.JsonError(err)
}
resp, err := services.SkillRuntimeService.DebugResume(context.Background(), req)
if err != nil {
return web.JsonError(err)
}
return web.JsonData(resp)
}