-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
49 lines (49 loc) · 1.48 KB
/
Copy pathplugin.json
File metadata and controls
49 lines (49 loc) · 1.48 KB
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
49
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "hello-runtime",
"version": "1.0.0",
"description": "A worked example of the C2 plugin protocol: a Node process that contributes a command, calls one of the host's, and listens for host events.",
"author": { "name": "C2" },
"license": "MIT",
"keywords": ["example", "plugin-protocol", "runtime"],
"extensions": {
"dev.codetwo": {
"standardVersion": "1.2.0",
"commands": [
{
"id": "hello.dirty",
"title": "Check changes",
"description": "Count modified files in the active workspace.",
"argsSchema": {
"type": "object",
"additionalProperties": false,
"required": ["cwd"],
"properties": { "cwd": { "type": "string" } }
}
}
],
"runtime": {
"protocol": "1.0.0",
"command": "node",
"args": ["plugin.js"],
"inject": []
},
"ui": [
{
"id": "dirty-workspace",
"slot": "session.header",
"label": "Check changes",
"description": "Count modified files in the active workspace.",
"command": "hello.dirty"
},
{
"id": "dirty-workspace-toolbar",
"slot": "composer.toolbar",
"label": "Check changes",
"description": "Count modified files in the active workspace.",
"command": "hello.dirty"
}
]
}
}
}