@rvdbreemen/adr-kit-opencode 0.52.0 → 0.52.2

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.
Files changed (82) hide show
  1. package/.claude-plugin/plugin.json +29 -29
  2. package/README.md +861 -850
  3. package/bin/adr +0 -0
  4. package/bin/adr-audit +0 -0
  5. package/bin/adr-context +0 -0
  6. package/bin/adr-discover +0 -0
  7. package/bin/adr-doctor +0 -0
  8. package/bin/adr-generate-scripts +0 -0
  9. package/bin/adr-grill-signal +0 -0
  10. package/bin/adr-guardian +0 -0
  11. package/bin/adr-index +0 -0
  12. package/bin/adr-judge +0 -0
  13. package/bin/adr-judge-precommit +0 -0
  14. package/bin/adr-lint +0 -0
  15. package/bin/adr-mcp +0 -0
  16. package/bin/adr-migrate +0 -0
  17. package/bin/adr-quality +0 -0
  18. package/bin/adr-readiness +0 -0
  19. package/bin/adr-readiness-ci +0 -0
  20. package/bin/adr-related +0 -0
  21. package/bin/adr-renumber +254 -254
  22. package/bin/adr-retire +0 -0
  23. package/bin/adr-settings +0 -0
  24. package/bin/adr-status +0 -0
  25. package/bin/adr-suggest +0 -0
  26. package/bin/adr-watch +0 -0
  27. package/bin/bump-version +0 -0
  28. package/clients/workflows.json +229 -229
  29. package/hooks/__init__.py +1 -1
  30. package/hooks/adapters/__init__.py +13 -13
  31. package/hooks/adapters/claude.py +27 -27
  32. package/hooks/adapters/codex.py +26 -26
  33. package/hooks/adapters/copilot.py +11 -11
  34. package/hooks/adr-hook.py +128 -128
  35. package/hooks/adr_hook_core.py +843 -843
  36. package/hooks/adr_pr_guard.py +367 -367
  37. package/instructions/ADR-guide.md +48 -48
  38. package/instructions/adr.coding.md +82 -82
  39. package/instructions/adr.review.md +182 -182
  40. package/opencode/plugin.ts +1 -4
  41. package/package.json +5 -2
  42. package/schemas/adr-context-probes.schema.json +56 -56
  43. package/schemas/adr-enforcement.schema.json +57 -57
  44. package/schemas/adr-frontmatter.schema.json +144 -144
  45. package/schemas/adr-index.schema.json +276 -276
  46. package/schemas/adr-kit-config.schema.json +371 -371
  47. package/schemas/adr-readiness.schema.json +41 -41
  48. package/schemas/client-capabilities.schema.json +503 -503
  49. package/schemas/client-certification.schema.json +101 -101
  50. package/schemas/doctor-output.schema.json +92 -92
  51. package/skills/adr/SKILL.md +780 -780
  52. package/skills/audit/SKILL.md +103 -103
  53. package/skills/context/SKILL.md +77 -77
  54. package/skills/grill/SKILL.md +84 -84
  55. package/skills/grill/agents/openai.yaml +4 -4
  56. package/skills/guardian/SKILL.md +316 -316
  57. package/skills/init/SKILL.md +499 -499
  58. package/skills/install-hooks/SKILL.md +154 -154
  59. package/skills/judge/SKILL.md +168 -168
  60. package/skills/lint/SKILL.md +321 -321
  61. package/skills/migrate/SKILL.md +313 -313
  62. package/skills/related/SKILL.md +62 -62
  63. package/skills/retire/SKILL.md +41 -41
  64. package/skills/review/SKILL.md +167 -167
  65. package/skills/settings/SKILL.md +73 -73
  66. package/skills/setup/SKILL.md +128 -128
  67. package/skills/supersede/SKILL.md +136 -136
  68. package/skills/upgrade/SKILL.md +273 -273
  69. package/templates/adr-kit-guide.md +354 -354
  70. package/templates/adr-template.canonical.md +115 -115
  71. package/templates/adr-template.madr.md +131 -131
  72. package/templates/adr-template.md +131 -131
  73. package/templates/adr-template.nygard.md +111 -111
  74. package/templates/cc-settings/guardian-hook-entry.json +9 -9
  75. package/templates/githooks/pre-commit +1 -1
  76. package/templates/github-workflows/adr-audit.yml +58 -58
  77. package/templates/github-workflows/adr-guardian-audit.yml +133 -133
  78. package/templates/github-workflows/adr-index-check.yml +30 -30
  79. package/templates/github-workflows/adr-judge.yml +31 -31
  80. package/templates/github-workflows/adr-readiness.yml +18 -18
  81. package/templates/validate_adr_template.py +38 -38
  82. package/templates/validate_adr_template.sh +74 -74
@@ -1,276 +1,276 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://github.com/rvdbreemen/adr-kit/schemas/adr-index.schema.json",
4
- "title": "ADR Kit generated graph index",
5
- "description": "Versioned machine-readable projection of Markdown ADR metadata and declared relationships.",
6
- "type": "object",
7
- "additionalProperties": false,
8
- "required": [
9
- "$schema",
10
- "schema_version",
11
- "adrs",
12
- "relationships"
13
- ],
14
- "properties": {
15
- "$schema": {
16
- "type": "string",
17
- "minLength": 1
18
- },
19
- "schema_version": {
20
- "const": 2
21
- },
22
- "adrs": {
23
- "type": "array",
24
- "items": {
25
- "$ref": "#/$defs/adr"
26
- }
27
- },
28
- "relationships": {
29
- "type": "array",
30
- "items": {
31
- "$ref": "#/$defs/relationship"
32
- }
33
- }
34
- },
35
- "$defs": {
36
- "adrId": {
37
- "type": "string",
38
- "pattern": "^ADR-[0-9]{3,4}$"
39
- },
40
- "nullableAdrId": {
41
- "oneOf": [
42
- {
43
- "$ref": "#/$defs/adrId"
44
- },
45
- {
46
- "type": "null"
47
- }
48
- ]
49
- },
50
- "adr": {
51
- "type": "object",
52
- "additionalProperties": false,
53
- "required": [
54
- "id",
55
- "title",
56
- "path",
57
- "format",
58
- "status",
59
- "date",
60
- "decision_summary",
61
- "topics",
62
- "aliases",
63
- "components",
64
- "symbols",
65
- "context_scope",
66
- "decision_contract",
67
- "scope",
68
- "metadata"
69
- ],
70
- "properties": {
71
- "id": {
72
- "$ref": "#/$defs/adrId"
73
- },
74
- "title": {
75
- "type": "string",
76
- "minLength": 1
77
- },
78
- "path": {
79
- "type": "string",
80
- "minLength": 1,
81
- "description": "Source Markdown path relative to ADR-INDEX.json."
82
- },
83
- "format": {
84
- "type": "string",
85
- "enum": [
86
- "madr",
87
- "nygard",
88
- "canonical",
89
- "hybrid",
90
- "unknown"
91
- ]
92
- },
93
- "status": {
94
- "type": "string",
95
- "enum": [
96
- "Proposed",
97
- "Accepted",
98
- "Deprecated",
99
- "Superseded",
100
- "Amended",
101
- "Rejected",
102
- "Unknown"
103
- ]
104
- },
105
- "date": {
106
- "type": [
107
- "string",
108
- "null"
109
- ],
110
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
111
- },
112
- "decision_summary": {
113
- "type": "string",
114
- "maxLength": 120
115
- },
116
- "topics": {
117
- "$ref": "#/$defs/retrievalStrings"
118
- },
119
- "aliases": {
120
- "$ref": "#/$defs/retrievalStrings"
121
- },
122
- "components": {
123
- "$ref": "#/$defs/retrievalStrings"
124
- },
125
- "symbols": {
126
- "$ref": "#/$defs/retrievalStrings"
127
- },
128
- "context_scope": {
129
- "type": "string",
130
- "enum": [
131
- "global",
132
- "selective"
133
- ]
134
- },
135
- "decision_contract": {
136
- "$ref": "#/$defs/decisionContract"
137
- },
138
- "scope": {
139
- "type": "object",
140
- "additionalProperties": false,
141
- "required": [
142
- "path_globs"
143
- ],
144
- "properties": {
145
- "path_globs": {
146
- "type": "array",
147
- "uniqueItems": true,
148
- "items": {
149
- "type": "string",
150
- "minLength": 1
151
- }
152
- }
153
- }
154
- },
155
- "metadata": {
156
- "type": "object",
157
- "additionalProperties": false,
158
- "required": [
159
- "binding",
160
- "gate",
161
- "documents_shipped",
162
- "verified_in",
163
- "supersedes",
164
- "superseded_by"
165
- ],
166
- "properties": {
167
- "binding": {
168
- "type": "boolean"
169
- },
170
- "gate": {
171
- "type": [
172
- "string",
173
- "null"
174
- ],
175
- "minLength": 1
176
- },
177
- "documents_shipped": {
178
- "type": "boolean"
179
- },
180
- "verified_in": {
181
- "type": "array",
182
- "items": {
183
- "type": "string",
184
- "minLength": 1
185
- }
186
- },
187
- "supersedes": {
188
- "type": "array",
189
- "uniqueItems": true,
190
- "items": {
191
- "$ref": "#/$defs/adrId"
192
- }
193
- },
194
- "superseded_by": {
195
- "$ref": "#/$defs/nullableAdrId"
196
- }
197
- }
198
- }
199
- }
200
- },
201
- "retrievalStrings": {
202
- "type": "array",
203
- "maxItems": 32,
204
- "uniqueItems": true,
205
- "items": {
206
- "type": "string",
207
- "minLength": 1,
208
- "maxLength": 120
209
- }
210
- },
211
- "contractStrings": {
212
- "type": "array",
213
- "maxItems": 20,
214
- "uniqueItems": true,
215
- "items": {
216
- "type": "string",
217
- "minLength": 1,
218
- "maxLength": 240
219
- }
220
- },
221
- "decisionContract": {
222
- "type": "object",
223
- "additionalProperties": false,
224
- "required": [
225
- "must",
226
- "must_not",
227
- "exceptions",
228
- "verification"
229
- ],
230
- "properties": {
231
- "must": {
232
- "$ref": "#/$defs/contractStrings"
233
- },
234
- "must_not": {
235
- "$ref": "#/$defs/contractStrings"
236
- },
237
- "exceptions": {
238
- "$ref": "#/$defs/contractStrings"
239
- },
240
- "verification": {
241
- "$ref": "#/$defs/contractStrings"
242
- }
243
- }
244
- },
245
- "relationship": {
246
- "type": "object",
247
- "additionalProperties": false,
248
- "required": [
249
- "source",
250
- "target",
251
- "type",
252
- "resolved"
253
- ],
254
- "properties": {
255
- "source": {
256
- "$ref": "#/$defs/adrId"
257
- },
258
- "target": {
259
- "$ref": "#/$defs/adrId"
260
- },
261
- "type": {
262
- "type": "string",
263
- "enum": [
264
- "related",
265
- "supersedes",
266
- "superseded-by",
267
- "amended-by"
268
- ]
269
- },
270
- "resolved": {
271
- "type": "boolean"
272
- }
273
- }
274
- }
275
- }
276
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/rvdbreemen/adr-kit/schemas/adr-index.schema.json",
4
+ "title": "ADR Kit generated graph index",
5
+ "description": "Versioned machine-readable projection of Markdown ADR metadata and declared relationships.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "$schema",
10
+ "schema_version",
11
+ "adrs",
12
+ "relationships"
13
+ ],
14
+ "properties": {
15
+ "$schema": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "schema_version": {
20
+ "const": 2
21
+ },
22
+ "adrs": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "#/$defs/adr"
26
+ }
27
+ },
28
+ "relationships": {
29
+ "type": "array",
30
+ "items": {
31
+ "$ref": "#/$defs/relationship"
32
+ }
33
+ }
34
+ },
35
+ "$defs": {
36
+ "adrId": {
37
+ "type": "string",
38
+ "pattern": "^ADR-[0-9]{3,4}$"
39
+ },
40
+ "nullableAdrId": {
41
+ "oneOf": [
42
+ {
43
+ "$ref": "#/$defs/adrId"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ]
49
+ },
50
+ "adr": {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": [
54
+ "id",
55
+ "title",
56
+ "path",
57
+ "format",
58
+ "status",
59
+ "date",
60
+ "decision_summary",
61
+ "topics",
62
+ "aliases",
63
+ "components",
64
+ "symbols",
65
+ "context_scope",
66
+ "decision_contract",
67
+ "scope",
68
+ "metadata"
69
+ ],
70
+ "properties": {
71
+ "id": {
72
+ "$ref": "#/$defs/adrId"
73
+ },
74
+ "title": {
75
+ "type": "string",
76
+ "minLength": 1
77
+ },
78
+ "path": {
79
+ "type": "string",
80
+ "minLength": 1,
81
+ "description": "Source Markdown path relative to ADR-INDEX.json."
82
+ },
83
+ "format": {
84
+ "type": "string",
85
+ "enum": [
86
+ "madr",
87
+ "nygard",
88
+ "canonical",
89
+ "hybrid",
90
+ "unknown"
91
+ ]
92
+ },
93
+ "status": {
94
+ "type": "string",
95
+ "enum": [
96
+ "Proposed",
97
+ "Accepted",
98
+ "Deprecated",
99
+ "Superseded",
100
+ "Amended",
101
+ "Rejected",
102
+ "Unknown"
103
+ ]
104
+ },
105
+ "date": {
106
+ "type": [
107
+ "string",
108
+ "null"
109
+ ],
110
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
111
+ },
112
+ "decision_summary": {
113
+ "type": "string",
114
+ "maxLength": 120
115
+ },
116
+ "topics": {
117
+ "$ref": "#/$defs/retrievalStrings"
118
+ },
119
+ "aliases": {
120
+ "$ref": "#/$defs/retrievalStrings"
121
+ },
122
+ "components": {
123
+ "$ref": "#/$defs/retrievalStrings"
124
+ },
125
+ "symbols": {
126
+ "$ref": "#/$defs/retrievalStrings"
127
+ },
128
+ "context_scope": {
129
+ "type": "string",
130
+ "enum": [
131
+ "global",
132
+ "selective"
133
+ ]
134
+ },
135
+ "decision_contract": {
136
+ "$ref": "#/$defs/decisionContract"
137
+ },
138
+ "scope": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "required": [
142
+ "path_globs"
143
+ ],
144
+ "properties": {
145
+ "path_globs": {
146
+ "type": "array",
147
+ "uniqueItems": true,
148
+ "items": {
149
+ "type": "string",
150
+ "minLength": 1
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "metadata": {
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": [
159
+ "binding",
160
+ "gate",
161
+ "documents_shipped",
162
+ "verified_in",
163
+ "supersedes",
164
+ "superseded_by"
165
+ ],
166
+ "properties": {
167
+ "binding": {
168
+ "type": "boolean"
169
+ },
170
+ "gate": {
171
+ "type": [
172
+ "string",
173
+ "null"
174
+ ],
175
+ "minLength": 1
176
+ },
177
+ "documents_shipped": {
178
+ "type": "boolean"
179
+ },
180
+ "verified_in": {
181
+ "type": "array",
182
+ "items": {
183
+ "type": "string",
184
+ "minLength": 1
185
+ }
186
+ },
187
+ "supersedes": {
188
+ "type": "array",
189
+ "uniqueItems": true,
190
+ "items": {
191
+ "$ref": "#/$defs/adrId"
192
+ }
193
+ },
194
+ "superseded_by": {
195
+ "$ref": "#/$defs/nullableAdrId"
196
+ }
197
+ }
198
+ }
199
+ }
200
+ },
201
+ "retrievalStrings": {
202
+ "type": "array",
203
+ "maxItems": 32,
204
+ "uniqueItems": true,
205
+ "items": {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "maxLength": 120
209
+ }
210
+ },
211
+ "contractStrings": {
212
+ "type": "array",
213
+ "maxItems": 20,
214
+ "uniqueItems": true,
215
+ "items": {
216
+ "type": "string",
217
+ "minLength": 1,
218
+ "maxLength": 240
219
+ }
220
+ },
221
+ "decisionContract": {
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "required": [
225
+ "must",
226
+ "must_not",
227
+ "exceptions",
228
+ "verification"
229
+ ],
230
+ "properties": {
231
+ "must": {
232
+ "$ref": "#/$defs/contractStrings"
233
+ },
234
+ "must_not": {
235
+ "$ref": "#/$defs/contractStrings"
236
+ },
237
+ "exceptions": {
238
+ "$ref": "#/$defs/contractStrings"
239
+ },
240
+ "verification": {
241
+ "$ref": "#/$defs/contractStrings"
242
+ }
243
+ }
244
+ },
245
+ "relationship": {
246
+ "type": "object",
247
+ "additionalProperties": false,
248
+ "required": [
249
+ "source",
250
+ "target",
251
+ "type",
252
+ "resolved"
253
+ ],
254
+ "properties": {
255
+ "source": {
256
+ "$ref": "#/$defs/adrId"
257
+ },
258
+ "target": {
259
+ "$ref": "#/$defs/adrId"
260
+ },
261
+ "type": {
262
+ "type": "string",
263
+ "enum": [
264
+ "related",
265
+ "supersedes",
266
+ "superseded-by",
267
+ "amended-by"
268
+ ]
269
+ },
270
+ "resolved": {
271
+ "type": "boolean"
272
+ }
273
+ }
274
+ }
275
+ }
276
+ }