hanzo_protocol/skills.rs
1use serde::Deserialize;
2use serde::Serialize;
3use std::path::PathBuf;
4use ts_rs::TS;
5
6#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, TS)]
7pub enum SkillScope {
8 Repo,
9 User,
10 System,
11}
12
13#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, TS)]
14pub struct Skill {
15 pub name: String,
16 pub description: String,
17 pub path: PathBuf,
18 pub scope: SkillScope,
19 pub content: String,
20}