archctx-contracts 0.5.10 → 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/fixtures/valid/archctx-capabilities.json +2 -2
- package/fixtures/valid/product-version-manifest.json +5 -5
- package/package.json +1 -1
- package/schemas/runtime/archctx-capabilities.schema.json +1 -1
- package/schemas/runtime/changeset.schema.json +208 -35
- package/schemas/runtime/projection-apply-readback.schema.json +1064 -0
- package/src/architecture.ts +79 -0
- package/src/ports.ts +89 -1
- package/src/product-version.ts +1 -1
- package/src/projection.ts +107 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "archcontext.capabilities/v1",
|
|
3
|
-
"package": { "name": "archctx", "version": "0.5.
|
|
3
|
+
"package": { "name": "archctx", "version": "0.5.12" },
|
|
4
4
|
"protocols": {
|
|
5
5
|
"projectionRequest": "archcontext.projection-request/v1",
|
|
6
6
|
"projectionResult": "archcontext.projection-result/v2",
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
"architectureDocs": "archcontext.docs-renderer/v4",
|
|
11
11
|
"agentContext": "archcontext.agent-context-renderer/v1"
|
|
12
12
|
},
|
|
13
|
-
"features": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"]
|
|
13
|
+
"features": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"]
|
|
14
14
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": "archcontext.product-version-manifest/v1",
|
|
3
3
|
"product": {
|
|
4
4
|
"name": "archctx",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.12",
|
|
6
6
|
"distribution": "one-package"
|
|
7
7
|
},
|
|
8
8
|
"packageManager": "bun@1.4.0",
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
"surfaces": {
|
|
13
13
|
"cli": {
|
|
14
14
|
"packageName": "@archcontext/surfaces",
|
|
15
|
-
"version": "0.5.
|
|
15
|
+
"version": "0.5.12",
|
|
16
16
|
"entrypoint": "archctx"
|
|
17
17
|
},
|
|
18
18
|
"daemon": {
|
|
19
19
|
"packageName": "@archcontext/local-runtime",
|
|
20
|
-
"version": "0.5.
|
|
20
|
+
"version": "0.5.12",
|
|
21
21
|
"entrypoint": "archctx daemon start",
|
|
22
22
|
"rpcSchemaVersion": "archcontext.runtime-rpc/v1"
|
|
23
23
|
},
|
|
24
24
|
"mcp": {
|
|
25
25
|
"packageName": "@archcontext/surfaces",
|
|
26
|
-
"version": "0.5.
|
|
26
|
+
"version": "0.5.12",
|
|
27
27
|
"entrypoint": "archctx mcp",
|
|
28
28
|
"transport": "stdio"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"schemas": {
|
|
32
32
|
"schemaSetVersion": "2026-06-25.al0-ledger",
|
|
33
|
-
"contractsPackageVersion": "0.5.
|
|
33
|
+
"contractsPackageVersion": "0.5.12",
|
|
34
34
|
"reviewChallenge": "archcontext.review-challenge/v2",
|
|
35
35
|
"attestation": "archcontext.attestation/v2",
|
|
36
36
|
"deviceIdentity": "archcontext.device-identity/v1",
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"type": "array",
|
|
40
40
|
"minItems": 3,
|
|
41
41
|
"uniqueItems": true,
|
|
42
|
-
"items": { "enum": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"] }
|
|
42
|
+
"items": { "enum": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"] }
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -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
|
}
|