-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegraphy.schema.json
More file actions
118 lines (118 loc) · 3.77 KB
/
codegraphy.schema.json
File metadata and controls
118 lines (118 loc) · 3.77 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://codegraphy.dev/schemas/codegraphy.schema.json",
"title": "CodeGraphy Plugin Manifest",
"description": "Schema for codegraphy.json plugin manifest files",
"type": "object",
"required": ["id", "name", "version", "apiVersion", "supportedExtensions"],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "Path or URL to the JSON schema for validation"
},
"id": {
"type": "string",
"description": "Unique plugin identifier (e.g. codegraphy.typescript)"
},
"name": {
"type": "string",
"description": "Human-readable plugin name"
},
"version": {
"type": "string",
"description": "Semver version of the plugin"
},
"apiVersion": {
"type": "string",
"description": "Semver range of the CodeGraphy API this plugin is compatible with"
},
"tier": {
"type": "integer",
"enum": [1, 2],
"description": "Plugin tier: 1 = built-in, 2 = community"
},
"supportedExtensions": {
"type": "array",
"items": { "type": "string" },
"description": "File extensions this plugin handles (e.g. [\".ts\", \".tsx\"])"
},
"capabilities": {
"type": "array",
"items": {
"type": "string",
"enum": ["connections", "decorations", "events", "views", "commands", "context-menus"]
},
"description": "Capabilities this plugin provides"
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "name", "description"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "Unique rule identifier"
},
"name": {
"type": "string",
"description": "Human-readable rule name"
},
"description": {
"type": "string",
"description": "Short description of what the rule detects"
}
}
},
"description": "Connection sources provided by this plugin"
},
"fileColors": {
"type": "object",
"additionalProperties": {
"oneOf": [
{ "type": "string" },
{
"type": "object",
"required": ["color"],
"additionalProperties": false,
"properties": {
"color": { "type": "string" },
"shape2D": { "type": "string", "enum": ["circle", "square", "diamond", "triangle", "hexagon", "star"] },
"shape3D": { "type": "string", "enum": ["sphere", "cube", "octahedron", "cone", "dodecahedron", "icosahedron"] },
"imagePath": { "type": "string", "description": "Relative path from plugin root to image file" }
}
}
]
},
"description": "Mapping of file extensions or filenames to color strings or shape/imagePath objects"
},
"defaultFilters": {
"type": "array",
"items": { "type": "string" },
"description": "Glob patterns to exclude from file discovery by default"
},
"webviewApiVersion": {
"type": "string",
"description": "Semver range of the webview API this plugin targets"
},
"webviewContributions": {
"type": "object",
"additionalProperties": false,
"properties": {
"scripts": {
"type": "array",
"items": { "type": "string" },
"description": "Script files contributed to the webview"
},
"styles": {
"type": "array",
"items": { "type": "string" },
"description": "Stylesheet files contributed to the webview"
}
},
"description": "Assets this plugin contributes to the webview"
}
}
}