Download packages/klient/src/contract/session/skills.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/klient/src/contract/session/skills.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/klient/src/contract/session/skills.ts
-
curl -L -o skills.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/klient/src/contract/session/skills.ts
844 Bytes
| /** | |
| * `sessionSkillCatalog` — the session-merged skill catalog. Mirrors | |
| * `agent-core-v2/features/skill/session/skillCatalog.ts` (the thin | |
| * `list()` method; the `catalog` / `ready` properties and the sink interface | |
| * are not wire methods). `SkillSummary` mirrors | |
| * `agent-core-v2/features/skill/catalog/types.ts`. | |
| */ | |
| import { z } from 'zod'; | |
| import type { ServiceContract } from '../types.js'; | |
| export const skillSummarySchema = z.object({ | |
| name: z.string(), | |
| description: z.string(), | |
| path: z.string(), | |
| source: z.enum(['project', 'user', 'extra', 'builtin']), | |
| type: z.string().optional(), | |
| disableModelInvocation: z.boolean().optional(), | |
| isSubSkill: z.boolean().optional(), | |
| }); | |
| export const sessionSkillCatalogContract = { | |
| list: { input: z.tuple([]), output: z.array(skillSummarySchema) }, | |
| } satisfies ServiceContract; | |