archctx 0.5.11 → 0.5.12
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/assets/catalog.yaml +2 -2
- package/bin/archctx.mjs +42266 -33624
- package/package.json +1 -1
- package/schemas/runtime/changeset.schema.json +208 -35
package/package.json
CHANGED
|
@@ -4,62 +4,235 @@
|
|
|
4
4
|
"title": "ChangeSet",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
-
"required": [
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"id",
|
|
10
|
+
"status",
|
|
11
|
+
"base",
|
|
12
|
+
"reason",
|
|
13
|
+
"operations",
|
|
14
|
+
"preconditions",
|
|
15
|
+
"postconditions",
|
|
16
|
+
"requiresConfirmation",
|
|
17
|
+
"idempotencyKey"
|
|
18
|
+
],
|
|
8
19
|
"properties": {
|
|
9
|
-
"schemaVersion": {
|
|
10
|
-
|
|
11
|
-
|
|
20
|
+
"schemaVersion": {
|
|
21
|
+
"const": "archcontext.changeset/v1"
|
|
22
|
+
},
|
|
23
|
+
"id": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^changeset\\.[a-zA-Z0-9_-]+$"
|
|
26
|
+
},
|
|
27
|
+
"status": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"proposed",
|
|
31
|
+
"approved",
|
|
32
|
+
"applied",
|
|
33
|
+
"rolled-back",
|
|
34
|
+
"rejected"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
12
37
|
"base": {
|
|
13
38
|
"type": "object",
|
|
14
39
|
"additionalProperties": false,
|
|
15
|
-
"required": [
|
|
40
|
+
"required": [
|
|
41
|
+
"headSha",
|
|
42
|
+
"worktreeDigest",
|
|
43
|
+
"modelDigest"
|
|
44
|
+
],
|
|
16
45
|
"properties": {
|
|
17
|
-
"headSha": {
|
|
18
|
-
|
|
19
|
-
|
|
46
|
+
"headSha": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"worktreeDigest": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
52
|
+
},
|
|
53
|
+
"modelDigest": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
56
|
+
}
|
|
20
57
|
}
|
|
21
58
|
},
|
|
22
59
|
"reason": {
|
|
23
60
|
"type": "object",
|
|
24
61
|
"additionalProperties": false,
|
|
25
|
-
"required": [
|
|
62
|
+
"required": [
|
|
63
|
+
"taskSessionId"
|
|
64
|
+
],
|
|
26
65
|
"properties": {
|
|
27
|
-
"taskSessionId": {
|
|
28
|
-
|
|
66
|
+
"taskSessionId": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"interventionId": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
29
72
|
}
|
|
30
73
|
},
|
|
31
74
|
"operations": {
|
|
32
75
|
"type": "array",
|
|
33
76
|
"minItems": 1,
|
|
34
77
|
"items": {
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
78
|
+
"oneOf": [
|
|
79
|
+
{
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": true,
|
|
82
|
+
"required": [
|
|
83
|
+
"op",
|
|
84
|
+
"expectedHash"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"op": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"create_entity",
|
|
91
|
+
"update_entity_fields",
|
|
92
|
+
"delete_entity",
|
|
93
|
+
"write_policy",
|
|
94
|
+
"write_waiver",
|
|
95
|
+
"render_projection",
|
|
96
|
+
"render_agent_context"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"entityId": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"path": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"expectedHash": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"projectionFiles": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"items": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": [
|
|
114
|
+
"path",
|
|
115
|
+
"expectedHash",
|
|
116
|
+
"body"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"path": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"expectedHash": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"body": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "object",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": [
|
|
137
|
+
"op",
|
|
138
|
+
"path",
|
|
139
|
+
"expectedHash",
|
|
140
|
+
"fields"
|
|
141
|
+
],
|
|
142
|
+
"properties": {
|
|
143
|
+
"op": {
|
|
144
|
+
"const": "update_manifest_fields"
|
|
145
|
+
},
|
|
146
|
+
"path": {
|
|
147
|
+
"const": ".archcontext/manifest.yaml"
|
|
148
|
+
},
|
|
149
|
+
"expectedHash": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
152
|
+
},
|
|
153
|
+
"fields": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"required": [
|
|
157
|
+
"content.decisions"
|
|
158
|
+
],
|
|
159
|
+
"properties": {
|
|
160
|
+
"content.decisions": {
|
|
161
|
+
"const": "docs/adr"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "object",
|
|
169
|
+
"additionalProperties": false,
|
|
170
|
+
"required": [
|
|
171
|
+
"op",
|
|
172
|
+
"path",
|
|
173
|
+
"expectedHash",
|
|
174
|
+
"references"
|
|
175
|
+
],
|
|
176
|
+
"properties": {
|
|
177
|
+
"op": {
|
|
178
|
+
"const": "update_adr_references"
|
|
179
|
+
},
|
|
180
|
+
"path": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"pattern": "^docs/adr/ADR-[0-9]{4}-[a-z0-9][a-z0-9-]*\\.md$"
|
|
183
|
+
},
|
|
184
|
+
"expectedHash": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
187
|
+
},
|
|
188
|
+
"references": {
|
|
189
|
+
"type": "array",
|
|
190
|
+
"minItems": 1,
|
|
191
|
+
"items": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": [
|
|
195
|
+
"from",
|
|
196
|
+
"to"
|
|
197
|
+
],
|
|
198
|
+
"properties": {
|
|
199
|
+
"from": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"pattern": "^[a-z0-9][a-z0-9._-]{2,127}$"
|
|
202
|
+
},
|
|
203
|
+
"to": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"pattern": "^[a-z0-9][a-z0-9._-]{2,127}$"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
53
209
|
}
|
|
54
210
|
}
|
|
55
211
|
}
|
|
56
|
-
|
|
212
|
+
]
|
|
57
213
|
}
|
|
58
214
|
},
|
|
59
|
-
"preconditions": {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
215
|
+
"preconditions": {
|
|
216
|
+
"type": "array",
|
|
217
|
+
"items": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"postconditions": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"requiresConfirmation": {
|
|
228
|
+
"type": "boolean"
|
|
229
|
+
},
|
|
230
|
+
"idempotencyKey": {
|
|
231
|
+
"type": "string"
|
|
232
|
+
},
|
|
233
|
+
"extensions": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"additionalProperties": true
|
|
236
|
+
}
|
|
64
237
|
}
|
|
65
238
|
}
|