fix: fix some displays and features
This commit is contained in:
@ -25,6 +25,8 @@ import type {
|
||||
LayoutTree,
|
||||
Project,
|
||||
ProfileAvailability,
|
||||
Skill,
|
||||
SkillScope,
|
||||
Template,
|
||||
Unsubscribe,
|
||||
} from "@/domain";
|
||||
@ -260,6 +262,53 @@ export interface TemplateGateway {
|
||||
): Promise<{ synced: boolean; version: number | null }>;
|
||||
}
|
||||
|
||||
/** Input for {@link SkillGateway.createSkill}. */
|
||||
export interface CreateSkillInput {
|
||||
/** Owning project (resolved to a root; ignored on disk for `global`). */
|
||||
projectId: string;
|
||||
name: string;
|
||||
content: string;
|
||||
scope: SkillScope;
|
||||
}
|
||||
|
||||
/**
|
||||
* Skills (L12): CRUD for reusable, model-agnostic workflows in either scope, and
|
||||
* agent↔skill assignment. Assigned skills are injected into the agent's
|
||||
* convention file at activation (handled backend-side, ARCHITECTURE §14.2).
|
||||
*/
|
||||
export interface SkillGateway {
|
||||
/** Lists the skills in one scope for the given project. */
|
||||
listSkills(projectId: string, scope: SkillScope): Promise<Skill[]>;
|
||||
/** Creates a new skill; returns the created skill. */
|
||||
createSkill(input: CreateSkillInput): Promise<Skill>;
|
||||
/** Updates a skill's content; returns the updated skill. */
|
||||
updateSkill(
|
||||
projectId: string,
|
||||
scope: SkillScope,
|
||||
skillId: string,
|
||||
content: string,
|
||||
): Promise<Skill>;
|
||||
/** Deletes a skill by id from its scope's store. */
|
||||
deleteSkill(
|
||||
projectId: string,
|
||||
scope: SkillScope,
|
||||
skillId: string,
|
||||
): Promise<void>;
|
||||
/** Assigns a skill to an agent (idempotent). */
|
||||
assignSkill(
|
||||
projectId: string,
|
||||
agentId: string,
|
||||
skillId: string,
|
||||
scope: SkillScope,
|
||||
): Promise<void>;
|
||||
/** Unassigns a skill from an agent (idempotent). */
|
||||
unassignSkill(
|
||||
projectId: string,
|
||||
agentId: string,
|
||||
skillId: string,
|
||||
): Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* AI profiles & first-run (L5). Drives the first-run wizard and profile
|
||||
* management: the pre-filled reference catalogue, detection of installed CLIs,
|
||||
@ -296,4 +345,5 @@ export interface Gateways {
|
||||
remote: RemoteGateway;
|
||||
profile: ProfileGateway;
|
||||
template: TemplateGateway;
|
||||
skill: SkillGateway;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user