@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
25 lines • 1.3 kB
TypeScript
import { type SkillLike, type SkillMcpDeclarations } from "./skills.ts";
type McpRegisteredTool = {
name: string;
toolName: string;
server: string;
};
export interface McpSkillReveal {
/** The skills this scope's turn lists; its declarations are returned so the caller attaches their servers. */
startTurn(scope: object, skills: readonly SkillLike[]): SkillMcpDeclarations;
/** The skills this scope's turn listed, to recognize a read of a skill's own file. */
skills(scope: object): Iterable<[string, SkillLike]>;
/** Reveal one skill for this scope: a skill it never listed, or already revealed, reveals nothing again. */
reveal(scope: object, skillName: string): void;
}
/**
* Skills-carry-MCP reveal state, per execution scope (brain/hand S16c). A runtime serving several scopes keeps one
* state per scope, so one scope's turn does not replace another's skills and one scope's `/skill:<name>` does not
* use up another's reveal of the same skill. A runtime serving one scope keeps exactly one state, as before.
*/
export declare function createMcpSkillReveal(options: {
readonly registered: () => ReadonlyArray<McpRegisteredTool>;
readonly activate: (targets: string[]) => void;
}): McpSkillReveal;
export {};
//# sourceMappingURL=skill-reveal.d.ts.map