archctx 0.4.7 → 0.5.1

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.7",
3
+ "version": "0.5.1",
4
4
  "description": "Local architecture context CLI for agentic coding workflows.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -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-apply-receipt-v1", "projection-protocol-v2"] }
42
+ "items": { "enum": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"] }
43
43
  }
44
44
  }
45
45
  }
@@ -0,0 +1,188 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://archcontext.dev/schemas/runtime/projection-apply-recovery.schema.json",
4
+ "title": "ProjectionApplyRecoveryV1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion"],
8
+ "properties": {
9
+ "schemaVersion": { "enum": ["archcontext.projection-apply-recovery-intent/v1", "archcontext.projection-apply-recovery-proof/v1", "archcontext.projection-apply-recovery-result/v1"] },
10
+ "requestId": {},
11
+ "profile": {},
12
+ "acceptedChange": {},
13
+ "receipt": {},
14
+ "requestDigest": {},
15
+ "proofDigest": {},
16
+ "deliveryStatus": {},
17
+ "expectedResultingDigests": {},
18
+ "current": {},
19
+ "proof": {},
20
+ "refreshSignals": {}
21
+ },
22
+ "allOf": [
23
+ {
24
+ "if": { "properties": { "schemaVersion": { "const": "archcontext.projection-apply-recovery-intent/v1" } }, "required": ["schemaVersion"] },
25
+ "then": { "$ref": "#/$defs/intent" }
26
+ },
27
+ {
28
+ "if": { "properties": { "schemaVersion": { "const": "archcontext.projection-apply-recovery-proof/v1" } }, "required": ["schemaVersion"] },
29
+ "then": { "$ref": "#/$defs/proof" }
30
+ },
31
+ {
32
+ "if": { "properties": { "schemaVersion": { "const": "archcontext.projection-apply-recovery-result/v1" } }, "required": ["schemaVersion"] },
33
+ "then": { "$ref": "#/$defs/result" }
34
+ }
35
+ ],
36
+ "$defs": {
37
+ "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
38
+ "generatedFrom": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["codeGraphPackage", "codeGraphVersion", "codeGraphBinaryDigest", "codeGraphStatus"],
42
+ "properties": {
43
+ "codeGraphPackage": { "const": "@colbymchenry/codegraph" },
44
+ "codeGraphVersion": { "const": "1.5.0" },
45
+ "codeGraphBinaryDigest": { "$ref": "#/$defs/digest" },
46
+ "codeGraphStatus": { "enum": ["ready", "unavailable"] }
47
+ }
48
+ },
49
+ "readyGeneratedFrom": {
50
+ "allOf": [
51
+ { "$ref": "#/$defs/generatedFrom" },
52
+ { "properties": { "codeGraphStatus": { "const": "ready" } }, "required": ["codeGraphStatus"] }
53
+ ]
54
+ },
55
+ "digestSet": {
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "required": ["modelDigest", "sourceTreeDigest", "flowProofDigest", "projectionDigest"],
59
+ "properties": {
60
+ "modelDigest": { "$ref": "#/$defs/digest" },
61
+ "sourceTreeDigest": { "$ref": "#/$defs/digest" },
62
+ "flowProofDigest": { "$ref": "#/$defs/digest" },
63
+ "projectionDigest": { "$ref": "#/$defs/digest" }
64
+ }
65
+ },
66
+ "reasonCode": {
67
+ "enum": ["constraint-changed", "entrypoint-changed", "interface-changed", "lifecycle-changed", "node-added", "node-moved", "node-removed", "node-renamed", "ownership-changed", "relation-changed", "responsibility-changed", "risk-boundary-changed", "verified-flow-proof-changed"]
68
+ },
69
+ "acceptedChange": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": ["changeSetId", "eventId", "reasonCodes", "affectedNodeIds"],
73
+ "properties": {
74
+ "changeSetId": { "type": "string", "minLength": 1 },
75
+ "eventId": { "type": "string", "minLength": 1 },
76
+ "reasonCodes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/reasonCode" } },
77
+ "affectedNodeIds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
78
+ }
79
+ },
80
+ "intentReceipt": {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": ["lookupKey", "applyId"],
84
+ "properties": {
85
+ "lookupKey": { "$ref": "#/$defs/digest" },
86
+ "applyId": { "$ref": "#/$defs/digest" }
87
+ }
88
+ },
89
+ "intent": {
90
+ "type": "object",
91
+ "additionalProperties": false,
92
+ "required": ["schemaVersion", "requestId", "profile", "receipt"],
93
+ "properties": {
94
+ "schemaVersion": { "const": "archcontext.projection-apply-recovery-intent/v1" },
95
+ "requestId": { "type": "string", "pattern": "^[a-zA-Z0-9_.:-]+$", "minLength": 1 },
96
+ "profile": { "const": "repo-harness/v1" },
97
+ "receipt": { "$ref": "#/$defs/intentReceipt" }
98
+ }
99
+ },
100
+ "snapshot": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": ["repositoryId", "workspaceId", "headSha", "baseHeadSha", "worktreeDigest", "sourceTreeDigest", "modelDigest", "codeGraphDigest", "indexedWorktreeDigest", "projectionInputDigest", "rendererVersion", "layoutVersion", "generatedFrom"],
104
+ "properties": {
105
+ "repositoryId": { "type": "string", "minLength": 1 },
106
+ "workspaceId": { "type": "string", "minLength": 1 },
107
+ "headSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
108
+ "baseHeadSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
109
+ "worktreeDigest": { "$ref": "#/$defs/digest" },
110
+ "sourceTreeDigest": { "$ref": "#/$defs/digest" },
111
+ "modelDigest": { "$ref": "#/$defs/digest" },
112
+ "codeGraphDigest": { "$ref": "#/$defs/digest" },
113
+ "indexedWorktreeDigest": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" },
114
+ "projectionInputDigest": { "$ref": "#/$defs/digest" },
115
+ "rendererVersion": { "const": "archcontext.docs-renderer/v4" },
116
+ "layoutVersion": { "const": "archcontext.docs-layout/v1" },
117
+ "generatedFrom": { "$ref": "#/$defs/readyGeneratedFrom" }
118
+ }
119
+ },
120
+ "proofReceipt": {
121
+ "type": "object",
122
+ "additionalProperties": false,
123
+ "required": ["lookupKey", "applyId", "receiptDigest"],
124
+ "properties": {
125
+ "lookupKey": { "$ref": "#/$defs/digest" },
126
+ "applyId": { "$ref": "#/$defs/digest" },
127
+ "receiptDigest": { "$ref": "#/$defs/digest" }
128
+ }
129
+ },
130
+ "proof": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": ["schemaVersion", "requestId", "requestDigest", "proofDigest", "deliveryStatus", "receipt", "acceptedChange", "expectedResultingDigests", "current"],
134
+ "properties": {
135
+ "schemaVersion": { "const": "archcontext.projection-apply-recovery-proof/v1" },
136
+ "requestId": { "type": "string", "pattern": "^[a-zA-Z0-9_.:-]+$", "minLength": 1 },
137
+ "requestDigest": { "$ref": "#/$defs/digest" },
138
+ "proofDigest": { "$ref": "#/$defs/digest" },
139
+ "deliveryStatus": { "enum": ["delivered", "already-delivered"] },
140
+ "receipt": { "$ref": "#/$defs/proofReceipt" },
141
+ "acceptedChange": { "$ref": "#/$defs/acceptedChange" },
142
+ "expectedResultingDigests": { "$ref": "#/$defs/digestSet" },
143
+ "current": {
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "required": ["snapshot", "resultingDigests", "ownedOutputDigest", "fixedPointDigest"],
147
+ "properties": {
148
+ "snapshot": { "$ref": "#/$defs/snapshot" },
149
+ "resultingDigests": { "$ref": "#/$defs/digestSet" },
150
+ "ownedOutputDigest": { "$ref": "#/$defs/digest" },
151
+ "fixedPointDigest": { "$ref": "#/$defs/digest" }
152
+ }
153
+ }
154
+ }
155
+ },
156
+ "refreshSignal": {
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": ["schemaVersion", "signalId", "idempotencyKey", "mode", "repository", "worktree", "cause", "reasonCodes", "affectedNodeIds", "refreshTargets", "baseDigests", "resultingDigests", "projectionReceiptDigest"],
160
+ "properties": {
161
+ "schemaVersion": { "const": "archcontext.architecture-refresh-signal/v1" },
162
+ "signalId": { "$ref": "#/$defs/digest" },
163
+ "idempotencyKey": { "$ref": "#/$defs/digest" },
164
+ "mode": { "enum": ["human-action-required", "refresh-required"] },
165
+ "repository": { "type": "object", "additionalProperties": false, "required": ["repositoryId"], "properties": { "repositoryId": { "type": "string", "minLength": 1 } } },
166
+ "worktree": { "type": "object", "additionalProperties": false, "required": ["workspaceId", "headSha", "worktreeDigest"], "properties": { "workspaceId": { "type": "string", "minLength": 1 }, "headSha": { "type": "string", "pattern": "^[a-f0-9]{40}$" }, "worktreeDigest": { "$ref": "#/$defs/digest" } } },
167
+ "cause": { "enum": ["accepted-semantic-delta", "unresolved-major-candidate", "verified-flow-proof-delta"] },
168
+ "acceptedChange": { "$ref": "#/$defs/acceptedChange" },
169
+ "reasonCodes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/reasonCode" } },
170
+ "affectedNodeIds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
171
+ "refreshTargets": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["architecture-contract-context", "architecture-readiness", "architecture-request-index", "capability-context", "capability-index"] } },
172
+ "baseDigests": { "$ref": "#/$defs/digestSet" },
173
+ "resultingDigests": { "$ref": "#/$defs/digestSet" },
174
+ "projectionReceiptDigest": { "$ref": "#/$defs/digest" }
175
+ }
176
+ },
177
+ "result": {
178
+ "type": "object",
179
+ "additionalProperties": false,
180
+ "required": ["schemaVersion", "proof", "refreshSignals"],
181
+ "properties": {
182
+ "schemaVersion": { "const": "archcontext.projection-apply-recovery-result/v1" },
183
+ "proof": { "$ref": "#/$defs/proof" },
184
+ "refreshSignals": { "type": "array", "items": { "$ref": "#/$defs/refreshSignal" } }
185
+ }
186
+ }
187
+ }
188
+ }