Download packages/agent-core-v2/src/features/cron/cronFeature.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/cron/cronFeature.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/features/cron/cronFeature.ts
-
curl -L -o cronFeature.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/cron/cronFeature.ts
1.18 kB
| import { Feature } from '#/features/feature'; | |
| import { registerFeature } from '#/features/featureRegistry'; | |
| import { AgentCronService, IAgentCronService } from '#/features/cron/cronService'; | |
| import { ICronCreateTool } from '#/features/cron/tools/cron-create/cron-create'; | |
| import { CronCreateTool } from '#/features/cron/tools/cron-create/cronCreateTool'; | |
| import { ICronDeleteTool } from '#/features/cron/tools/cron-delete/cron-delete'; | |
| import { CronDeleteTool } from '#/features/cron/tools/cron-delete/cronDeleteTool'; | |
| import { ICronListTool } from '#/features/cron/tools/cron-list/cron-list'; | |
| import { CronListTool } from '#/features/cron/tools/cron-list/cronListTool'; | |
| export class CronFeature extends Feature { | |
| static override readonly name = 'cron'; | |
| constructor() { | |
| super(); | |
| this.contributeAgentService(IAgentCronService, AgentCronService); | |
| this.contributeTool(ICronCreateTool, CronCreateTool, { name: 'CronCreate', domain: 'cron' }); | |
| this.contributeTool(ICronListTool, CronListTool, { name: 'CronList', domain: 'cron' }); | |
| this.contributeTool(ICronDeleteTool, CronDeleteTool, { name: 'CronDelete', domain: 'cron' }); | |
| } | |
| } | |
| registerFeature(CronFeature); | |