archctx 0.4.3 → 0.4.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archctx",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Local architecture context CLI for agentic coding workflows.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "required": ["projectionRequest", "projectionResult", "architectureRefreshSignal"],
23
23
  "properties": {
24
24
  "projectionRequest": { "const": "archcontext.projection-request/v1" },
25
- "projectionResult": { "const": "archcontext.projection-result/v1" },
25
+ "projectionResult": { "const": "archcontext.projection-result/v2" },
26
26
  "architectureRefreshSignal": { "const": "archcontext.architecture-refresh-signal/v1" }
27
27
  }
28
28
  },
@@ -31,7 +31,7 @@
31
31
  "additionalProperties": false,
32
32
  "required": ["architectureDocs", "agentContext"],
33
33
  "properties": {
34
- "architectureDocs": { "const": "archcontext.docs-renderer/v3" },
34
+ "architectureDocs": { "const": "archcontext.docs-renderer/v4" },
35
35
  "agentContext": { "const": "archcontext.agent-context-renderer/v1" }
36
36
  }
37
37
  },
@@ -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", "projection-protocol-v1"] }
42
+ "items": { "enum": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "projection-apply-receipt-v1", "projection-protocol-v2"] }
43
43
  }
44
44
  }
45
45
  }
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://archcontext.dev/schemas/runtime/projection-result.schema.json",
4
- "title": "ProjectionResultV1",
4
+ "title": "ProjectionResultV2",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
7
  "required": ["schemaVersion", "requestId", "status", "inputSnapshot", "outputSnapshot", "affectedNodeIds", "files", "humanActions", "refreshSignals", "receiptDigest"],
8
8
  "properties": {
9
- "schemaVersion": { "const": "archcontext.projection-result/v1" },
9
+ "schemaVersion": { "const": "archcontext.projection-result/v2" },
10
10
  "requestId": { "type": "string", "pattern": "^[a-zA-Z0-9_.:-]+$", "minLength": 1 },
11
- "status": { "enum": ["adoption-required", "applied", "blocked", "human-action-required", "noop", "permanent-failure", "planned", "retryable-failure"] },
11
+ "status": { "enum": ["adoption-required", "applied", "applied-reconcile-required", "blocked", "human-action-required", "noop", "permanent-failure", "planned", "retryable-failure"] },
12
12
  "inputSnapshot": { "$ref": "#/$defs/snapshot" },
13
13
  "outputSnapshot": { "$ref": "#/$defs/snapshot" },
14
14
  "affectedNodeIds": { "type": "array", "uniqueItems": true, "description": "Canonical wire order is lexicographic and is enforced by projectionResultInvariantIssues.", "items": { "type": "string", "minLength": 1 } },
15
15
  "files": { "type": "array", "description": "Canonical wire order is by path and is enforced by projectionResultInvariantIssues.", "items": { "$ref": "#/$defs/file" } },
16
16
  "humanActions": { "type": "array", "items": { "$ref": "#/$defs/humanAction" } },
17
17
  "refreshSignals": { "type": "array", "description": "Canonical wire order is by signalId and cross-object receipt/snapshot bindings are enforced by projectionResultInvariantIssues.", "items": { "$ref": "#/$defs/refreshSignal" } },
18
+ "applyReceipt": { "$ref": "#/$defs/applyIdentity" },
18
19
  "receiptDigest": { "$ref": "#/$defs/digest" }
19
20
  },
20
21
  "allOf": [
@@ -22,6 +23,13 @@
22
23
  "if": { "properties": { "status": { "enum": ["adoption-required", "human-action-required"] } }, "required": ["status"] },
23
24
  "then": { "properties": { "humanActions": { "minItems": 1 } } },
24
25
  "else": { "properties": { "humanActions": { "maxItems": 0 } } }
26
+ },
27
+ {
28
+ "if": { "properties": { "status": { "const": "applied-reconcile-required" } }, "required": ["status"] },
29
+ "then": {
30
+ "required": ["applyReceipt"],
31
+ "properties": { "refreshSignals": { "maxItems": 0 } }
32
+ }
25
33
  }
26
34
  ],
27
35
  "$defs": {
@@ -42,7 +50,7 @@
42
50
  "codeGraphDigest": { "$ref": "#/$defs/digest" },
43
51
  "indexedWorktreeDigest": { "$ref": "#/$defs/nullableDigest" },
44
52
  "projectionInputDigest": { "$ref": "#/$defs/digest" },
45
- "rendererVersion": { "const": "archcontext.docs-renderer/v3" },
53
+ "rendererVersion": { "const": "archcontext.docs-renderer/v4" },
46
54
  "layoutVersion": { "const": "archcontext.docs-layout/v1" },
47
55
  "generatedFrom": {
48
56
  "type": "object",
@@ -157,6 +165,30 @@
157
165
  "reasonCodes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/reasonCode" } },
158
166
  "affectedNodeIds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
159
167
  }
168
+ },
169
+ "applyIdentity": {
170
+ "type": "object",
171
+ "additionalProperties": false,
172
+ "required": ["schemaVersion", "applyId", "lookupKey", "repositoryId", "workspaceId", "acceptedChange", "semanticCommit", "ownedFilesDigest", "refreshSignalsDigest"],
173
+ "properties": {
174
+ "schemaVersion": { "const": "archcontext.projection-apply-identity/v1" },
175
+ "applyId": { "$ref": "#/$defs/digest" },
176
+ "lookupKey": { "$ref": "#/$defs/digest" },
177
+ "repositoryId": { "type": "string", "minLength": 1 },
178
+ "workspaceId": { "type": "string", "minLength": 1 },
179
+ "acceptedChange": { "$ref": "#/$defs/acceptedChange" },
180
+ "semanticCommit": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": ["changeSetId", "idempotencyKey"],
184
+ "properties": {
185
+ "changeSetId": { "type": "string", "minLength": 1 },
186
+ "idempotencyKey": { "type": "string", "minLength": 1 }
187
+ }
188
+ },
189
+ "ownedFilesDigest": { "$ref": "#/$defs/digest" },
190
+ "refreshSignalsDigest": { "$ref": "#/$defs/digest" }
191
+ }
160
192
  }
161
193
  }
162
194
  }