@autotelic/protocol 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +183 -2
- package/dist/baseline.d.ts +41 -0
- package/dist/baseline.d.ts.map +1 -0
- package/dist/baseline.js +62 -0
- package/dist/baseline.js.map +1 -0
- package/dist/catalog.d.ts +275 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +437 -0
- package/dist/catalog.js.map +1 -0
- package/dist/compat.d.ts +12 -0
- package/dist/compat.d.ts.map +1 -0
- package/dist/compat.js +104 -0
- package/dist/compat.js.map +1 -0
- package/dist/config.d.ts +179 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +302 -0
- package/dist/config.js.map +1 -0
- package/dist/decode.d.ts +32 -0
- package/dist/decode.d.ts.map +1 -0
- package/dist/decode.js +71 -0
- package/dist/decode.js.map +1 -0
- package/dist/doc.d.ts +105 -0
- package/dist/doc.d.ts.map +1 -0
- package/dist/doc.js +159 -0
- package/dist/doc.js.map +1 -0
- package/dist/graph.d.ts +139 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +258 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/intent.d.ts +32 -0
- package/dist/intent.d.ts.map +1 -0
- package/dist/intent.js +54 -0
- package/dist/intent.js.map +1 -0
- package/dist/json.d.ts +3 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +18 -0
- package/dist/json.js.map +1 -0
- package/dist/lexicon.d.ts +58 -0
- package/dist/lexicon.d.ts.map +1 -0
- package/dist/lexicon.js +176 -0
- package/dist/lexicon.js.map +1 -0
- package/dist/patterns.d.ts +65 -0
- package/dist/patterns.d.ts.map +1 -0
- package/dist/patterns.js +166 -0
- package/dist/patterns.js.map +1 -0
- package/dist/recipes.d.ts +34 -0
- package/dist/recipes.d.ts.map +1 -0
- package/dist/recipes.js +74 -0
- package/dist/recipes.js.map +1 -0
- package/dist/report.d.ts +218 -0
- package/dist/report.d.ts.map +1 -0
- package/dist/report.js +330 -0
- package/dist/report.js.map +1 -0
- package/dist/version.d.ts +9 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +9 -0
- package/dist/version.js.map +1 -0
- package/package.json +45 -3
- package/schema/baseline.json +29 -0
- package/schema/catalog.json +206 -0
- package/schema/cutlist.config.json +103 -0
- package/schema/intent.json +43 -0
- package/schema/jig.config.json +56 -0
- package/schema/manifest.json +67 -0
- package/schema/menu.json +169 -0
- package/schema/onboarding.json +25 -0
- package/schema/patterns.json +141 -0
- package/schema/recipes.json +57 -0
- package/schema/report.json +141 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://autotelic.dev/tackle/protocol/baseline.json",
|
|
4
|
+
"title": "Baseline",
|
|
5
|
+
"description": "The findings a repository has already accepted, keyed by identity. Committed, so the ratchet is a property of the code. Stores identities only — never lines, never counts.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["identities"],
|
|
8
|
+
"anyOf": [{ "required": ["lexicon"] }, { "required": ["protocolVersion"] }],
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"lexicon": { "$ref": "#/$defs/lexicon" },
|
|
12
|
+
"protocolVersion": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Legacy: the single version the format carried before per-lexicon versioning. Accepted forever; superseded by `lexicon`."
|
|
15
|
+
},
|
|
16
|
+
"identities": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }
|
|
17
|
+
},
|
|
18
|
+
"$defs": {
|
|
19
|
+
"lexicon": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": ["name", "version"],
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"name": { "enum": ["baseline"] },
|
|
25
|
+
"version": { "type": "integer", "minimum": 1 }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://autotelic.dev/tackle/protocol/catalog.json",
|
|
4
|
+
"title": "Catalog",
|
|
5
|
+
"description": "The model cutlist computes once and renders many ways. Every rendering derives from this object, so none can drift from another.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"hash",
|
|
9
|
+
"root",
|
|
10
|
+
"tokens",
|
|
11
|
+
"tiers",
|
|
12
|
+
"sharedRoots",
|
|
13
|
+
"localRoots",
|
|
14
|
+
"components",
|
|
15
|
+
"orphans",
|
|
16
|
+
"duplicates"
|
|
17
|
+
],
|
|
18
|
+
"anyOf": [{ "required": ["lexicon"] }, { "required": ["protocolVersion"] }],
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"properties": {
|
|
21
|
+
"lexicon": { "$ref": "#/$defs/lexicon" },
|
|
22
|
+
"protocolVersion": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Legacy: the single version the format carried before per-lexicon versioning. Accepted forever; superseded by `lexicon`."
|
|
25
|
+
},
|
|
26
|
+
"hash": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Content hash of everything below, so a reader can verify rather than trust."
|
|
29
|
+
},
|
|
30
|
+
"root": { "type": "string" },
|
|
31
|
+
"tokens": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"required": ["colors", "type", "shape", "spacing"],
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"properties": {
|
|
36
|
+
"colors": { "type": "array", "items": { "type": "string" } },
|
|
37
|
+
"type": { "type": "array", "items": { "type": "string" } },
|
|
38
|
+
"shape": { "type": "array", "items": { "type": "string" } },
|
|
39
|
+
"spacing": { "type": "array", "items": { "type": "string" } }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"tiers": { "$ref": "#/$defs/tiers" },
|
|
43
|
+
"sharedRoots": { "type": "array", "items": { "type": "string" } },
|
|
44
|
+
"localRoots": { "type": "array", "items": { "type": "string" } },
|
|
45
|
+
"components": { "type": "array", "items": { "$ref": "#/$defs/component" } },
|
|
46
|
+
"features": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": { "$ref": "#/$defs/feature" },
|
|
49
|
+
"description": "Composition features, derived from parts: a context plus a provider or a dot-notation barrel in one directory."
|
|
50
|
+
},
|
|
51
|
+
"health": {
|
|
52
|
+
"$ref": "#/$defs/health",
|
|
53
|
+
"description": "Adoption and duplication pressure: the numbers inventory alone cannot show."
|
|
54
|
+
},
|
|
55
|
+
"clusters": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": { "$ref": "#/$defs/cluster" },
|
|
58
|
+
"description": "Near-duplicate clusters, each with the most-used member as its canonical."
|
|
59
|
+
},
|
|
60
|
+
"orphans": { "type": "array", "items": { "type": "string" } },
|
|
61
|
+
"duplicates": { "type": "array", "items": { "$ref": "#/$defs/duplicate" } }
|
|
62
|
+
},
|
|
63
|
+
"$defs": {
|
|
64
|
+
"lexicon": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": ["name", "version"],
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"name": { "enum": ["catalog"] },
|
|
70
|
+
"version": { "type": "integer", "minimum": 1 }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"tier": { "enum": ["primitive", "shared", "local"] },
|
|
74
|
+
"tiers": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"required": ["primitive", "shared", "local"],
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"properties": {
|
|
79
|
+
"primitive": { "type": "array", "items": { "type": "string" } },
|
|
80
|
+
"shared": { "type": "array", "items": { "type": "string" } },
|
|
81
|
+
"local": { "type": "array", "items": { "type": "string" } }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"component": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"required": ["path", "name", "tier", "owners", "props", "tags", "signature", "documented"],
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"properties": {
|
|
89
|
+
"id": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "Stable path-derived identity: the repository-relative path without its source extension, with `/` flattened to `--`. Optional so catalogs written before ids landed still read; readers fall back to `name`."
|
|
92
|
+
},
|
|
93
|
+
"kind": { "$ref": "#/$defs/role" },
|
|
94
|
+
"roles": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": { "$ref": "#/$defs/role" },
|
|
97
|
+
"description": "Every role the part carries; `kind` is the one a list files it under."
|
|
98
|
+
},
|
|
99
|
+
"feature": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"description": "The composition feature's directory, when the part belongs to one."
|
|
102
|
+
},
|
|
103
|
+
"exports": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": { "type": "string" },
|
|
106
|
+
"description": "The public names a consumer imports from this module, types excluded."
|
|
107
|
+
},
|
|
108
|
+
"usedBy": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"minimum": 0,
|
|
111
|
+
"description": "How many modules import it. Inventory says it exists; this says it is used."
|
|
112
|
+
},
|
|
113
|
+
"declarations": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": { "$ref": "#/$defs/declaration" },
|
|
116
|
+
"description": "Top-level declarations, the raw material a rule reads instead of re-parsing source."
|
|
117
|
+
},
|
|
118
|
+
"path": { "type": "string" },
|
|
119
|
+
"name": { "type": "string" },
|
|
120
|
+
"tier": { "$ref": "#/$defs/tier" },
|
|
121
|
+
"owners": { "type": "array", "items": { "type": "string" } },
|
|
122
|
+
"props": { "type": "array", "items": { "type": "string" } },
|
|
123
|
+
"tags": { "type": "array", "items": { "type": "string" } },
|
|
124
|
+
"signature": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": { "type": "string" },
|
|
127
|
+
"description": "The behavioral skeleton — the similarity signature, not props ∪ tags."
|
|
128
|
+
},
|
|
129
|
+
"documented": { "type": "boolean" }
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"role": {
|
|
133
|
+
"enum": ["component", "hook", "context", "provider", "barrel", "route", "module"]
|
|
134
|
+
},
|
|
135
|
+
"declaration": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"required": ["name", "kind", "exported", "renders", "calls"],
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"properties": {
|
|
140
|
+
"name": { "type": "string" },
|
|
141
|
+
"kind": { "enum": ["function", "class", "variable", "type"] },
|
|
142
|
+
"exported": { "type": "boolean" },
|
|
143
|
+
"renders": { "type": "boolean" },
|
|
144
|
+
"calls": { "type": "array", "items": { "type": "string" } },
|
|
145
|
+
"objectKeys": { "type": "array", "items": { "type": "string" } }
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"feature": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"required": ["dir", "name", "context", "blocks", "hooks", "valueKeys"],
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"properties": {
|
|
153
|
+
"dir": { "type": "string" },
|
|
154
|
+
"name": { "type": "string" },
|
|
155
|
+
"context": { "type": "string" },
|
|
156
|
+
"provider": { "type": "string" },
|
|
157
|
+
"barrel": { "type": "string" },
|
|
158
|
+
"blocks": { "type": "array", "items": { "type": "string" } },
|
|
159
|
+
"hooks": { "type": "array", "items": { "type": "string" } },
|
|
160
|
+
"valueKeys": { "type": "array", "items": { "type": "string" } }
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"health": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"required": ["parts", "sharedReach", "localOnly", "duplicateClusters"],
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"properties": {
|
|
168
|
+
"parts": { "type": "integer", "minimum": 0 },
|
|
169
|
+
"sharedReach": {
|
|
170
|
+
"type": "number",
|
|
171
|
+
"minimum": 0,
|
|
172
|
+
"maximum": 1,
|
|
173
|
+
"description": "Share of component/hook/route modules that import at least one shared or primitive part."
|
|
174
|
+
},
|
|
175
|
+
"localOnly": { "type": "integer", "minimum": 0 },
|
|
176
|
+
"duplicateClusters": { "type": "integer", "minimum": 0 }
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"cluster": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"required": ["canonical", "name", "members", "score", "usedBy"],
|
|
182
|
+
"additionalProperties": false,
|
|
183
|
+
"properties": {
|
|
184
|
+
"canonical": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"description": "The path of the member with the most importers."
|
|
187
|
+
},
|
|
188
|
+
"name": { "type": "string" },
|
|
189
|
+
"members": { "type": "array", "items": { "type": "string" }, "minItems": 2 },
|
|
190
|
+
"score": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
191
|
+
"usedBy": { "type": "integer", "minimum": 0 }
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"duplicate": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"required": ["left", "right", "score", "basis"],
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"properties": {
|
|
199
|
+
"left": { "type": "string" },
|
|
200
|
+
"right": { "type": "string" },
|
|
201
|
+
"score": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
202
|
+
"basis": { "enum": ["skeleton"] }
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://autotelic.dev/tackle/protocol/cutlist.config.json",
|
|
4
|
+
"title": "CutlistConfig",
|
|
5
|
+
"description": "A repo's vocabulary: where app code lives, how imports alias, which roots are which tier, where tokens come from, and which convention packs apply.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["roots", "tiers", "tokens", "ownership"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "type": "string" },
|
|
11
|
+
"roots": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
12
|
+
"alias": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": { "type": "array", "items": { "type": "string" } }
|
|
15
|
+
},
|
|
16
|
+
"tiers": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": ["primitive", "shared", "local"],
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"properties": {
|
|
21
|
+
"primitive": { "type": "array", "items": { "type": "string" } },
|
|
22
|
+
"shared": { "type": "array", "items": { "type": "string" } },
|
|
23
|
+
"local": { "type": "array", "items": { "type": "string" } }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"tokens": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["from"],
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"properties": {
|
|
31
|
+
"from": { "type": "string" },
|
|
32
|
+
"theme": { "type": "string" },
|
|
33
|
+
"vars": { "type": "string" }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"hooks": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": { "barrel": { "type": "string" } }
|
|
40
|
+
},
|
|
41
|
+
"ownership": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["routeOwner", "transitive"],
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"properties": {
|
|
46
|
+
"routeOwner": { "enum": ["first-segment", "full"] },
|
|
47
|
+
"transitive": { "type": "boolean" },
|
|
48
|
+
"entries": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": { "type": "string" },
|
|
51
|
+
"description": "Entry-point suffixes relative to any source root; nothing imports them by design."
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"patterns": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"properties": {
|
|
59
|
+
"composition": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["providerSuffix", "hookPrefix"],
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"properties": {
|
|
64
|
+
"providerSuffix": { "type": "string" },
|
|
65
|
+
"hookPrefix": { "type": "string" },
|
|
66
|
+
"valueKeys": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": { "type": "string" },
|
|
69
|
+
"description": "The keys of the object a provider supplies. Defaults to state/actions/meta."
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"urlState": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"required": ["router", "reader"],
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"properties": {
|
|
78
|
+
"router": { "enum": ["remix", "tanstack", "next", "react-router"] },
|
|
79
|
+
"reader": { "type": "string" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"output": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"properties": {
|
|
88
|
+
"catalog": { "type": "string" },
|
|
89
|
+
"manifest": { "type": "string" },
|
|
90
|
+
"menuJson": { "type": "string" },
|
|
91
|
+
"menu": { "type": "string" },
|
|
92
|
+
"intent": { "type": "string" },
|
|
93
|
+
"patterns": { "type": "string" },
|
|
94
|
+
"patternsJson": { "type": "string" },
|
|
95
|
+
"recipes": { "type": "string" },
|
|
96
|
+
"recipesJson": { "type": "string" },
|
|
97
|
+
"diagrams": { "type": "string" },
|
|
98
|
+
"hooks": { "type": "string" },
|
|
99
|
+
"tokens": { "type": "string" }
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://autotelic.dev/tackle/protocol/intent.json",
|
|
4
|
+
"title": "Intent",
|
|
5
|
+
"description": "The authored half of a part: what it is for, when it is wrong, its lifecycle, and what to reach for instead. Stored beside the generated catalog, never inside it, so a rebuild cannot overwrite a sentence someone wrote.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"minProperties": 1,
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "type": "string" },
|
|
11
|
+
"summary": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "One line on what this part is for."
|
|
14
|
+
},
|
|
15
|
+
"whenToUse": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The situation the part is the right answer for."
|
|
18
|
+
},
|
|
19
|
+
"whenNotToUse": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The situation it is the wrong answer for, and what to do instead."
|
|
22
|
+
},
|
|
23
|
+
"states": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": { "type": "string" },
|
|
26
|
+
"description": "Named states the part handles: loading, empty, error, disabled."
|
|
27
|
+
},
|
|
28
|
+
"status": {
|
|
29
|
+
"enum": ["stable", "beta", "experimental", "deprecated"],
|
|
30
|
+
"description": "The lifecycle a consumer can rely on."
|
|
31
|
+
},
|
|
32
|
+
"examples": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "type": "string" },
|
|
35
|
+
"description": "Real call sites or canonical snippets that show the approved use."
|
|
36
|
+
},
|
|
37
|
+
"useInstead": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": { "type": "string" },
|
|
40
|
+
"description": "What to reach for instead, when a near-duplicate or a retirement exists."
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://autotelic.dev/tackle/protocol/jig.config.json",
|
|
4
|
+
"title": "HarnessConfig",
|
|
5
|
+
"description": "`jig.config.json`: which engines are active, and how a run is gated. Each engine keeps its own config file; this one only says who runs and what counts as failure. `jig init` writes it.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["engines", "gate"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "type": "string" },
|
|
11
|
+
"engines": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["id", "kind"],
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": { "type": "string" },
|
|
19
|
+
"kind": { "enum": ["process", "oxlint-plugin", "internal"] },
|
|
20
|
+
"command": { "type": "string" },
|
|
21
|
+
"config": { "type": "string" },
|
|
22
|
+
"args": { "type": "array", "items": { "type": "string" } },
|
|
23
|
+
"enabled": { "type": "boolean" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"gate": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": ["mode", "baseline"],
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"properties": {
|
|
32
|
+
"mode": { "enum": ["touched-files", "all"] },
|
|
33
|
+
"baseline": { "type": "string" },
|
|
34
|
+
"failOn": { "enum": ["error", "warn", "any-new"] }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"report": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"properties": {
|
|
41
|
+
"format": {
|
|
42
|
+
"enum": ["text", "json", "jsonl", "github", "sarif", "lsp", "codeclimate"]
|
|
43
|
+
},
|
|
44
|
+
"maxWarnings": { "type": "number" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"agent": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"properties": {
|
|
51
|
+
"cookbook": { "type": "string" },
|
|
52
|
+
"onboarding": { "type": "string" }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://autotelic.dev/tackle/protocol/manifest.json",
|
|
4
|
+
"title": "Manifest",
|
|
5
|
+
"description": "The lint-facing projection of the catalog that plumb-ui parses. Field names match plumb/src/ui/manifest.ts exactly. `lexicon` is optional because the first readers predate versioning and read a manifest without one; cutlist's projector always writes it.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["colors", "sharedRoots", "localRoots", "components"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"lexicon": { "$ref": "#/$defs/lexicon" },
|
|
11
|
+
"protocolVersion": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Legacy: the single version the format carried before per-lexicon versioning. Accepted forever; superseded by `lexicon`."
|
|
14
|
+
},
|
|
15
|
+
"colors": { "type": "array", "items": { "type": "string" } },
|
|
16
|
+
"sharedRoots": { "type": "array", "items": { "type": "string" } },
|
|
17
|
+
"localRoots": { "type": "array", "items": { "type": "string" } },
|
|
18
|
+
"components": { "type": "array", "items": { "$ref": "#/$defs/component" } }
|
|
19
|
+
},
|
|
20
|
+
"$defs": {
|
|
21
|
+
"lexicon": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["name", "version"],
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"name": { "enum": ["manifest"] },
|
|
27
|
+
"version": { "type": "integer", "minimum": 1 }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"tier": { "enum": ["primitive", "shared", "local"] },
|
|
31
|
+
"role": {
|
|
32
|
+
"enum": ["component", "hook", "context", "provider", "barrel", "route", "module"]
|
|
33
|
+
},
|
|
34
|
+
"component": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": ["path", "name", "tier", "owners", "props", "tags"],
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"properties": {
|
|
39
|
+
"kind": { "$ref": "#/$defs/role" },
|
|
40
|
+
"roles": { "type": "array", "items": { "$ref": "#/$defs/role" } },
|
|
41
|
+
"feature": { "type": "string" },
|
|
42
|
+
"exports": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": { "type": "string" },
|
|
45
|
+
"description": "The names a consumer imports, so a rule can match an import binding to a part."
|
|
46
|
+
},
|
|
47
|
+
"usedBy": { "type": "integer", "minimum": 0 },
|
|
48
|
+
"status": {
|
|
49
|
+
"enum": ["stable", "beta", "experimental", "deprecated"],
|
|
50
|
+
"description": "Authored lifecycle. A rule can refuse a direct import of a deprecated part."
|
|
51
|
+
},
|
|
52
|
+
"useInstead": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": { "type": "string" },
|
|
55
|
+
"description": "Authored migration target, carried to the rule that reports the import."
|
|
56
|
+
},
|
|
57
|
+
"path": { "type": "string" },
|
|
58
|
+
"name": { "type": "string" },
|
|
59
|
+
"tier": { "$ref": "#/$defs/tier" },
|
|
60
|
+
"owners": { "type": "array", "items": { "type": "string" } },
|
|
61
|
+
"props": { "type": "array", "items": { "type": "string" } },
|
|
62
|
+
"tags": { "type": "array", "items": { "type": "string" } },
|
|
63
|
+
"signature": { "type": "array", "items": { "type": "string" } }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|