Feat : Skills
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,71 @@
|
||||
// Agent Skills metadata — single source of truth for /dashboard/skills page.
|
||||
// Each skill = 1 raw GitHub URL the user copies and pastes to any AI agent.
|
||||
|
||||
const REPO = "decolua/9router";
|
||||
const BRANCH = "main";
|
||||
const SKILL_PATH = "app/skills";
|
||||
|
||||
export const SKILLS_REPO_URL = `https://github.com/${REPO}`;
|
||||
export const SKILLS_RAW_BASE = `https://raw.githubusercontent.com/${REPO}/${BRANCH}/${SKILL_PATH}`;
|
||||
export const SKILLS_BLOB_BASE = `https://github.com/${REPO}/blob/${BRANCH}/${SKILL_PATH}`;
|
||||
|
||||
export const SKILLS = [
|
||||
{
|
||||
id: "9router",
|
||||
name: "9Router (Entry)",
|
||||
description: "Setup + index of all capabilities. Start here — covers base URL, auth, model discovery, and links to every capability skill.",
|
||||
endpoint: null,
|
||||
icon: "hub",
|
||||
isEntry: true,
|
||||
},
|
||||
{
|
||||
id: "9router-chat",
|
||||
name: "Chat",
|
||||
description: "Chat / code-gen via OpenAI or Anthropic format with streaming.",
|
||||
endpoint: "/v1/chat/completions",
|
||||
icon: "chat",
|
||||
},
|
||||
{
|
||||
id: "9router-image",
|
||||
name: "Image Generation",
|
||||
description: "Text-to-image via DALL-E, Imagen, FLUX, MiniMax, SDWebUI…",
|
||||
endpoint: "/v1/images/generations",
|
||||
icon: "image",
|
||||
},
|
||||
{
|
||||
id: "9router-tts",
|
||||
name: "Text-to-Speech",
|
||||
description: "OpenAI / ElevenLabs / Edge / Google / Deepgram voices.",
|
||||
endpoint: "/v1/audio/speech",
|
||||
icon: "record_voice_over",
|
||||
},
|
||||
{
|
||||
id: "9router-embeddings",
|
||||
name: "Embeddings",
|
||||
description: "Vectors for RAG / semantic search via OpenAI, Gemini, Mistral…",
|
||||
endpoint: "/v1/embeddings",
|
||||
icon: "scatter_plot",
|
||||
},
|
||||
{
|
||||
id: "9router-web-search",
|
||||
name: "Web Search",
|
||||
description: "Tavily / Exa / Brave / Serper / SearXNG / Google PSE / You.com.",
|
||||
endpoint: "/v1/search",
|
||||
icon: "search",
|
||||
},
|
||||
{
|
||||
id: "9router-web-fetch",
|
||||
name: "Web Fetch",
|
||||
description: "URL → markdown / text / HTML via Firecrawl, Jina, Tavily, Exa.",
|
||||
endpoint: "/v1/web/fetch",
|
||||
icon: "language",
|
||||
},
|
||||
];
|
||||
|
||||
export function getSkillRawUrl(id) {
|
||||
return `${SKILLS_RAW_BASE}/${id}/SKILL.md`;
|
||||
}
|
||||
|
||||
export function getSkillBlobUrl(id) {
|
||||
return `${SKILLS_BLOB_BASE}/${id}/SKILL.md`;
|
||||
}
|
||||
Reference in New Issue
Block a user