-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
48 lines (43 loc) · 940 Bytes
/
Copy pathtypes.ts
File metadata and controls
48 lines (43 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type { Skill } from "../types.js";
export interface PluginManifest {
name: string;
version?: string;
description?: string;
author?: string;
}
export interface SlashCommand {
name: string;
description: string;
body: string;
source: string;
argumentHint?: string;
}
export interface SubagentDefinition {
name: string;
description: string;
body: string;
source: string;
tools?: string[];
model?: string;
}
export interface HookSpec {
event:
| "PreToolUse"
| "PostToolUse"
| "Stop"
| "SessionStart"
| "SessionEnd"
| "UserPromptSubmit";
matcher?: string;
command: string;
timeout_ms?: number;
}
export interface LoadedPlugin {
manifest: PluginManifest;
root: string;
commands: SlashCommand[];
agents: SubagentDefinition[];
skills: Skill[];
hooks: HookSpec[];
mcpServers: { name: string; command: string; args?: string[]; env?: Record<string, string> }[];
}