v1

package
v0.0.0-...-18baaf5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1 暴露 /api/v1/skills 端点,从 agentresource.Repo 读 DB(agent_skills + agent_skill_versions),不再扫描 /app/skills 文件系统。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SkillHandler

type SkillHandler struct {
	// contains filtered or unexported fields
}

SkillHandler skill 列表处理器

func NewSkillHandler

func NewSkillHandler(i *do.Injector) (*SkillHandler, error)

NewSkillHandler 创建 skill handler

func (*SkillHandler) ListEnabled

func (h *SkillHandler) ListEnabled(c *web.Context) error

ListEnabled 获取当前用户视角下的 Skill 列表

@Summary		获取本用户的 Skill 列表
@Description	并集返回 (global ∪ 用户 active team ∪ 用户个人) 三级 scope 下、enabled=true 的 skill。禁用的 skill 不返回。
@Tags			【用户】任务管理
@Security		MonkeyCodeAIAuth
@Accept			json
@Produce		json
@Success		200	{object}	web.Resp{data=[]domain.SkillListItem}	"获取成功"
@Failure		500	{object}	web.Resp								"服务器内部错误"
@Router			/api/v1/skills [get]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL