定时发布目录(ops_scheduled_publications),并加固 catalog 生成器。 Co-authored-by: Cursor <cursoragent@cursor.com>
66 lines
1.7 KiB
JSON
66 lines
1.7 KiB
JSON
{
|
|
"ecr": "028",
|
|
"slug": "tool-definition",
|
|
"concept": "ToolDefinition",
|
|
"list_method": "ToolDefinitions",
|
|
"get_method": "ToolDefinition",
|
|
"table": "tool_definitions",
|
|
"migration": "000029",
|
|
"route_group": "/ai",
|
|
"route_resource": "tools",
|
|
"perm_const": "PermAIConfigRead",
|
|
"perm_code": "admin.ai_config.read",
|
|
"seed_code": "fetch_profile_summary",
|
|
"register_fn": "registerToolDefinitions",
|
|
"test_name": "TestAICoreToolDefinitions",
|
|
"row_type": "ToolDefinitionRow",
|
|
"err_name": "ErrToolDefinitionNotFound",
|
|
"capability": "AICoreConfig",
|
|
"bc": "Ask_Ops",
|
|
"predecessor": "ECR-027",
|
|
"title": "AICoreConfig · ToolDefinition(只读薄切片)",
|
|
"non_goals": "工具在线编辑 · 运行时绑定 · UGC · 真支付",
|
|
"columns": [
|
|
{
|
|
"name": "code",
|
|
"sql": "varchar(64) NOT NULL UNIQUE",
|
|
"go_name": "Code",
|
|
"go_type": "string",
|
|
"json": "code",
|
|
"seed": "fetch_profile_summary"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"sql": "varchar(128) NOT NULL",
|
|
"go_name": "Title",
|
|
"go_type": "string",
|
|
"json": "title",
|
|
"seed": "拉取档案摘要"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"sql": "text NULL",
|
|
"go_name": "Description",
|
|
"go_type": "*string",
|
|
"json": "description,omitempty",
|
|
"seed": "只读工具定义占位"
|
|
},
|
|
{
|
|
"name": "active",
|
|
"sql": "boolean NOT NULL DEFAULT true",
|
|
"go_name": "Active",
|
|
"go_type": "bool",
|
|
"json": "active",
|
|
"seed": true
|
|
},
|
|
{
|
|
"name": "system",
|
|
"sql": "boolean NOT NULL DEFAULT false",
|
|
"go_name": "System",
|
|
"go_type": "bool",
|
|
"json": "system",
|
|
"seed": true
|
|
}
|
|
]
|
|
}
|