Ajoute SkillKind (Workflow/Reference) sur Skill, extrait le use case ResolveAgentCapabilities à partir des SkillRef assignés, et enrichit idea_list_agents d'un champ additif capabilities (name, description, kind) — remplace l'exposition de SkillRef opaques par un inventaire de capacités interrogeable, source commune avec le bloc « Skills disponibles » injecté au lancement (#119). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
1.1 KiB
Rust
23 lines
1.1 KiB
Rust
//! Skill use cases (ARCHITECTURE §14.2; L12).
|
|
//!
|
|
//! Skills are reusable, model-agnostic workflows (IdeA's universal equivalent of
|
|
//! a CLI slash-command). This module owns their CRUD across both scopes
|
|
//! ([`domain::skill::SkillScope`]) and the agent↔skill assignment that records a
|
|
//! [`domain::skill::SkillRef`] in the project manifest. The actual injection of
|
|
//! an assigned skill's body into the generated convention file happens at agent
|
|
//! activation (L6).
|
|
//!
|
|
//! Every use case talks only to ports ([`domain::ports::SkillStore`],
|
|
//! [`domain::ports::AgentContextStore`], [`domain::ports::IdGenerator`],
|
|
//! [`domain::ports::EventBus`]).
|
|
|
|
mod usecases;
|
|
|
|
pub use usecases::{
|
|
AgentCapability, AssignSkillToAgent, AssignSkillToAgentInput, AssignedSkillResolver,
|
|
CreateSkill, CreateSkillInput, CreateSkillOutput, DeleteSkill, DeleteSkillInput, ListSkills,
|
|
ListSkillsInput, ListSkillsOutput, ReadSkill, ReadSkillInput, ResolveAgentCapabilities,
|
|
ResolveAgentCapabilitiesInput, UnassignSkillFromAgent, UnassignSkillFromAgentInput,
|
|
UpdateSkill, UpdateSkillInput, UpdateSkillOutput,
|
|
};
|