Download packages/agent-core-v2/src/features/skill/skillOps.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/skill/skillOps.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/features/skill/skillOps.ts
-
curl -L -o skillOps.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/skill/skillOps.ts
1.12 kB
| /* oxlint-disable typescript-eslint/no-unsafe-declaration-merging, eslint-plugin-import/namespace -- Event2 class+payload-interface declaration merging is the sanctioned event-declaration idiom. */ | |
| import type { SkillSource } from '#/agent/contextMemory/types'; | |
| import { AgentEvent2 } from '#/app/event/event2'; | |
| export interface SkillActivatedPayload { | |
| readonly agentId: string; | |
| readonly activationId: string; | |
| readonly skillName: string; | |
| readonly trigger: string; | |
| readonly skillArgs?: string; | |
| readonly skillPath?: string; | |
| readonly skillSource?: SkillSource; | |
| } | |
| export class SkillActivated extends AgentEvent2<SkillActivatedPayload> { | |
| static override readonly type = 'skill.activated'; | |
| static override readonly observable = true; | |
| } | |
| export interface SkillActivated extends SkillActivatedPayload {} | |
| export interface SkillActivatedEvent { | |
| readonly type: 'skill.activated'; | |
| readonly activationId: string; | |
| readonly skillName: string; | |
| readonly skillArgs?: string; | |
| readonly trigger: 'user-slash' | 'model-tool' | 'nested-skill'; | |
| readonly skillPath?: string; | |
| readonly skillSource?: SkillSource; | |
| } | |