Download packages/server/src/handlers/skill.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/server/src/handlers/skill.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/server/src/handlers/skill.ts
-
curl -L -o skill.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/server/src/handlers/skill.ts
357 Bytes
| import { SkillV2 } from "@opencode-ai/core/skill" | |
| import { HttpApiBuilder } from "effect/unstable/httpapi" | |
| import { Api } from "../api" | |
| import { response } from "../location" | |
| export const SkillHandler = HttpApiBuilder.group(Api, "server.skill", (handlers) => | |
| handlers.handle("skill.list", () => response(SkillV2.Service.use((skill) => skill.list()))), | |
| ) | |