archctx-contracts 0.17.1 → 0.18.0

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 (112) hide show
  1. package/fixtures/valid/archctx-capabilities.json +2 -2
  2. package/fixtures/valid/product-version-manifest.json +4 -10
  3. package/package.json +4 -1
  4. package/schemas/repo/refactor-decision.schema.json +283 -37
  5. package/schemas/runtime/archctx-capabilities.schema.json +144 -20
  6. package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
  7. package/schemas/runtime/architecture-debt.schema.json +42 -42
  8. package/schemas/runtime/architecture-event.schema.json +1 -1
  9. package/schemas/runtime/architecture-history.schema.json +354 -0
  10. package/schemas/runtime/capability-dependencies.schema.json +266 -59
  11. package/schemas/runtime/cli-check.schema.json +197 -0
  12. package/schemas/runtime/cli-help.schema.json +28 -0
  13. package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
  14. package/schemas/runtime/docs-anchors.schema.json +250 -67
  15. package/schemas/runtime/doctor-code-facts.schema.json +49 -0
  16. package/schemas/runtime/evidence-binding.schema.json +1 -1
  17. package/schemas/runtime/flow-selector-check.schema.json +179 -46
  18. package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
  19. package/schemas/runtime/index-seed.schema.json +56 -0
  20. package/schemas/runtime/path-context.schema.json +108 -0
  21. package/schemas/runtime/product-version-manifest.schema.json +142 -54
  22. package/schemas/runtime/projection-slice.schema.json +34 -34
  23. package/schemas/runtime/recommendation-v3.schema.json +372 -1
  24. package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
  25. package/schemas/runtime/ref-impact-batch.schema.json +83 -13
  26. package/schemas/runtime/ref-impact.schema.json +68 -61
  27. package/schemas/runtime/refactor-scan-v2.schema.json +434 -0
  28. package/schemas/runtime/refactor-simulate.schema.json +505 -0
  29. package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
  30. package/schemas/runtime/resolve-path.schema.json +69 -0
  31. package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
  32. package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
  33. package/schemas/runtime/runtime-verify.schema.json +274 -56
  34. package/schemas/runtime/state-machine-check.schema.json +357 -89
  35. package/schemas/runtime/structural-observation-payload.schema.json +372 -1
  36. package/schemas/runtime/sync-check.schema.json +65 -0
  37. package/src/architecture-debt.ts +125 -38
  38. package/src/architecture-history.ts +168 -42
  39. package/src/architecture.ts +100 -0
  40. package/src/cli-read.ts +228 -0
  41. package/src/docs-anchors.ts +105 -50
  42. package/src/explorer-occurrence-ports.ts +175 -0
  43. package/src/explorer-query-ports.ts +270 -0
  44. package/src/failure.ts +3 -0
  45. package/src/index-seed.ts +42 -0
  46. package/src/index.ts +5 -0
  47. package/src/ledger-records.ts +262 -0
  48. package/src/ledger.ts +27 -566
  49. package/src/ownership-dependencies.ts +115 -5
  50. package/src/ports.ts +6 -541
  51. package/src/product-version.ts +74 -55
  52. package/src/projection-apply-types.ts +216 -0
  53. package/src/projection-apply-validators.ts +355 -0
  54. package/src/projection-capabilities.ts +181 -0
  55. package/src/projection-constants.ts +317 -0
  56. package/src/projection-manifest-types.ts +298 -0
  57. package/src/projection-manifest.ts +12 -299
  58. package/src/projection-recovery-validators.ts +229 -0
  59. package/src/projection-request-validators.ts +326 -0
  60. package/src/projection-types.ts +365 -0
  61. package/src/projection-validation-helpers.ts +15 -0
  62. package/src/projection.ts +7 -1689
  63. package/src/ref-impact.ts +225 -33
  64. package/src/refactor-constants.ts +213 -0
  65. package/src/refactor-decision-validators.ts +350 -0
  66. package/src/refactor-evidence-types.ts +286 -0
  67. package/src/refactor-observation-validators.ts +359 -0
  68. package/src/refactor-resolution-validators.ts +229 -0
  69. package/src/refactor-snapshot-validators.ts +368 -0
  70. package/src/refactor-types.ts +270 -0
  71. package/src/refactor-v2.ts +389 -0
  72. package/src/refactor-validation-helpers.ts +195 -0
  73. package/src/refactor.ts +7 -1849
  74. package/src/review-guards.ts +3 -23
  75. package/src/runtime-verify.ts +87 -0
  76. package/src/schema-kit.ts +183 -0
  77. package/src/schema-registry.ts +73 -0
  78. package/src/schema.ts +0 -4
  79. package/src/state-machine-schemas.ts +192 -0
  80. package/src/state-machine-types.ts +188 -0
  81. package/src/state-machine.ts +9 -189
  82. package/fixtures/boundary/agent-job-expired.json +0 -33
  83. package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
  84. package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
  85. package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
  86. package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
  87. package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
  88. package/fixtures/invalid/notification-event-code-field.json +0 -11
  89. package/fixtures/valid/adapter-fidelity.json +0 -9
  90. package/fixtures/valid/agent-job.json +0 -33
  91. package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
  92. package/fixtures/valid/architecture-candidate-delta.json +0 -188
  93. package/fixtures/valid/chatgpt-ga-tool.json +0 -9
  94. package/fixtures/valid/cloud-egress-envelope.json +0 -11
  95. package/fixtures/valid/entitlement.json +0 -12
  96. package/fixtures/valid/investigation-report.json +0 -38
  97. package/fixtures/valid/likec4-mapping.json +0 -14
  98. package/fixtures/valid/notification-event.json +0 -10
  99. package/fixtures/valid/notification-provider.json +0 -12
  100. package/fixtures/valid/structurizr-mapping.json +0 -15
  101. package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
  102. package/schemas/cloud/entitlement.schema.json +0 -24
  103. package/schemas/integrations/adapter-fidelity.schema.json +0 -21
  104. package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
  105. package/schemas/integrations/likec4-mapping.schema.json +0 -32
  106. package/schemas/integrations/structurizr-mapping.schema.json +0 -33
  107. package/schemas/runtime/agent-job.schema.json +0 -63
  108. package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
  109. package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
  110. package/schemas/runtime/investigation-report.schema.json +0 -119
  111. package/schemas/runtime/notification-event.schema.json +0 -18
  112. package/schemas/runtime/notification-provider.schema.json +0 -26
@@ -1,53 +1,78 @@
1
- export const ARCHCONTEXT_PRODUCT_NAME = "archctx";
2
- export const ARCHCONTEXT_PRODUCT_VERSION = "0.17.1";
3
- export const ARCHCONTEXT_PACKAGE_MANAGER = "bun@1.4.4";
4
- export const ARCHCONTEXT_NODE_RANGE = ">=22.22 <26";
5
- export const LOCAL_RUNTIME_RPC_SCHEMA_VERSION = "archcontext.runtime-rpc/v2";
6
- export const ARCHCONTEXT_SCHEMA_SET_VERSION = "2026-07-11.explorer-view-v2";
1
+ import {
2
+ Const,
3
+ RawEnum,
4
+ Ref,
5
+ SchemaDocument,
6
+ SemverSchema,
7
+ StrictObject,
8
+ Type,
9
+ type Static
10
+ } from "./schema-kit";
7
11
 
8
- export interface ProductVersionManifest {
9
- schemaVersion: "archcontext.product-version-manifest/v1";
10
- product: {
11
- name: typeof ARCHCONTEXT_PRODUCT_NAME;
12
- version: typeof ARCHCONTEXT_PRODUCT_VERSION;
13
- distribution: "one-package";
14
- };
15
- packageManager: typeof ARCHCONTEXT_PACKAGE_MANAGER;
16
- engines: {
17
- node: typeof ARCHCONTEXT_NODE_RANGE;
18
- };
19
- surfaces: {
20
- cli: ProductSurfaceVersion;
21
- daemon: ProductSurfaceVersion & {
22
- rpcSchemaVersion: typeof LOCAL_RUNTIME_RPC_SCHEMA_VERSION;
23
- };
24
- mcp: ProductSurfaceVersion & {
25
- transport: "stdio";
26
- };
27
- };
28
- schemas: {
29
- schemaSetVersion: typeof ARCHCONTEXT_SCHEMA_SET_VERSION;
30
- contractsPackageVersion: typeof ARCHCONTEXT_PRODUCT_VERSION;
31
- };
32
- runtime: {
33
- localRpc: {
34
- schemaVersion: typeof LOCAL_RUNTIME_RPC_SCHEMA_VERSION;
35
- protocol: "http-loopback";
36
- };
37
- sqliteMigrations: string;
38
- codeGraph: {
39
- packageName: "@colbymchenry/codegraph";
40
- requiredVersion: "1.6.4";
41
- adapter: "codegraph-cli";
42
- };
43
- };
44
- }
12
+ export const ARCHCONTEXT_PRODUCT_NAME = "archctx" as const;
13
+ export const ARCHCONTEXT_PRODUCT_VERSION = "0.18.0" as const;
14
+ export const ARCHCONTEXT_PACKAGE_MANAGER = "bun@1.4.4" as const;
15
+ export const ARCHCONTEXT_NODE_RANGE = ">=22.22 <26" as const;
16
+ export const LOCAL_RUNTIME_RPC_SCHEMA_VERSION = "archcontext.runtime-rpc/v2" as const;
17
+ export const ARCHCONTEXT_SCHEMA_SET_VERSION = "2026-07-11.explorer-view-v2" as const;
45
18
 
46
- interface ProductSurfaceVersion {
47
- packageName: string;
48
- version: typeof ARCHCONTEXT_PRODUCT_VERSION;
49
- entrypoint: string;
50
- }
19
+ const SurfaceBodySchema = StrictObject({
20
+ packageName: Type.String({ minLength: 1 }),
21
+ version: Ref<string>("#/$defs/semver"),
22
+ entrypoint: Type.String({ minLength: 1 })
23
+ });
24
+
25
+ export type ProductSurfaceVersion = Static<typeof SurfaceBodySchema>;
26
+
27
+ export const ProductVersionManifestBodySchema = StrictObject({
28
+ schemaVersion: Const("archcontext.product-version-manifest/v1"),
29
+ product: StrictObject({
30
+ name: Const(ARCHCONTEXT_PRODUCT_NAME),
31
+ version: Ref<string>("#/$defs/semver"),
32
+ distribution: RawEnum(["one-package"] as const)
33
+ }),
34
+ packageManager: Type.String({ minLength: 1 }),
35
+ engines: StrictObject({
36
+ node: Const(ARCHCONTEXT_NODE_RANGE)
37
+ }),
38
+ surfaces: StrictObject({
39
+ cli: Ref<ProductSurfaceVersion>("#/$defs/surface"),
40
+ daemon: StrictObject({
41
+ packageName: Type.String({ minLength: 1 }),
42
+ version: Ref<string>("#/$defs/semver"),
43
+ entrypoint: Type.String({ minLength: 1 }),
44
+ rpcSchemaVersion: Const(LOCAL_RUNTIME_RPC_SCHEMA_VERSION)
45
+ })
46
+ }),
47
+ schemas: StrictObject({
48
+ schemaSetVersion: Type.String({ minLength: 1 }),
49
+ contractsPackageVersion: Ref<string>("#/$defs/semver")
50
+ }),
51
+ runtime: StrictObject({
52
+ localRpc: StrictObject({
53
+ schemaVersion: Const(LOCAL_RUNTIME_RPC_SCHEMA_VERSION),
54
+ protocol: RawEnum(["http-loopback"] as const)
55
+ }),
56
+ sqliteMigrations: Type.String({ minLength: 1 }),
57
+ codeGraph: StrictObject({
58
+ packageName: Const("@colbymchenry/codegraph"),
59
+ requiredVersion: Type.String({ minLength: 1 }),
60
+ adapter: RawEnum(["codegraph-cli"] as const)
61
+ })
62
+ })
63
+ });
64
+
65
+ export const ProductVersionManifestSchema = SchemaDocument({
66
+ $id: "https://archcontext.dev/schemas/runtime/product-version-manifest.schema.json",
67
+ title: "ProductVersionManifest",
68
+ schema: ProductVersionManifestBodySchema,
69
+ $defs: {
70
+ semver: SemverSchema,
71
+ surface: SurfaceBodySchema
72
+ }
73
+ });
74
+
75
+ export type ProductVersionManifest = Static<typeof ProductVersionManifestSchema>;
51
76
 
52
77
  export function productVersionManifest(): ProductVersionManifest {
53
78
  return {
@@ -72,17 +97,11 @@ export function productVersionManifest(): ProductVersionManifest {
72
97
  version: ARCHCONTEXT_PRODUCT_VERSION,
73
98
  entrypoint: "archctx daemon start",
74
99
  rpcSchemaVersion: LOCAL_RUNTIME_RPC_SCHEMA_VERSION
75
- },
76
- mcp: {
77
- packageName: "@archcontext/surfaces",
78
- version: ARCHCONTEXT_PRODUCT_VERSION,
79
- entrypoint: "archctx mcp",
80
- transport: "stdio"
81
100
  }
82
101
  },
83
102
  schemas: {
84
103
  schemaSetVersion: ARCHCONTEXT_SCHEMA_SET_VERSION,
85
- contractsPackageVersion: ARCHCONTEXT_PRODUCT_VERSION,
104
+ contractsPackageVersion: ARCHCONTEXT_PRODUCT_VERSION
86
105
  },
87
106
  runtime: {
88
107
  localRpc: {
@@ -0,0 +1,216 @@
1
+ import type {
2
+ AGENT_CONTEXT_RENDERER_VERSION,
3
+ ARCHCTX_CAPABILITIES_SCHEMA_VERSION,
4
+ ARCHITECTURE_DOCS_RENDERER_VERSION,
5
+ ARCHITECTURE_REFRESH_SIGNAL_SCHEMA_VERSION,
6
+ PROJECTION_APPLY_READBACK_RESULT_SCHEMA_VERSION,
7
+ PROJECTION_APPLY_RECEIPT_SCHEMA_VERSION,
8
+ PROJECTION_APPLY_RECOVERY_BINDING_SCHEMA_VERSION,
9
+ PROJECTION_APPLY_RECOVERY_INTENT_SCHEMA_VERSION,
10
+ PROJECTION_APPLY_RECOVERY_PROOF_SCHEMA_VERSION,
11
+ PROJECTION_APPLY_RECOVERY_RESULT_SCHEMA_VERSION,
12
+ PROJECTION_REQUEST_SCHEMA_VERSION,
13
+ PROJECTION_RESULT_SCHEMA_VERSION,
14
+ ArchctxFeature,
15
+ ProjectionResultStatus,
16
+ ProjectionTarget,
17
+ Sha256Digest
18
+ } from "./projection-constants";
19
+ import type {
20
+ AcceptedArchitectureChangeReferenceV1,
21
+ ArchitectureDigestSetV2,
22
+ ArchitectureRefreshSignalV2,
23
+ ProjectionApplyIdentityV1,
24
+ ProjectionArchitectureDebtV1,
25
+ ProjectionCoverageV1,
26
+ ProjectionExpectedSnapshotV1,
27
+ ProjectionFileResultV1,
28
+ ProjectionFreshnessV2,
29
+ ProjectionHumanActionV1,
30
+ ProjectionPriorCommittedApplyV1,
31
+ ProjectionSnapshotV1,
32
+ ProjectionTargetChangeV2
33
+ } from "./projection-types";
34
+
35
+ export interface ProjectionResultV3 {
36
+ schemaVersion: typeof PROJECTION_RESULT_SCHEMA_VERSION;
37
+ requestId: string;
38
+ status: ProjectionResultStatus;
39
+ inputSnapshot: ProjectionSnapshotV1;
40
+ outputSnapshot: ProjectionSnapshotV1;
41
+ affectedNodeIds: string[];
42
+ files: ProjectionFileResultV1[];
43
+ humanActions: ProjectionHumanActionV1[];
44
+ refreshSignals: ArchitectureRefreshSignalV2[];
45
+ applyReceipt?: ProjectionApplyIdentityV1;
46
+ /**
47
+ * Omitted, never `[]`, when no earlier attempt of this requestId committed. Never present on
48
+ * `check` results: a check runs in-process without the daemon journal, so read committed applies
49
+ * through `apply` or `readback`.
50
+ */
51
+ priorCommittedApplies?: ProjectionPriorCommittedApplyV1[];
52
+ /**
53
+ * Present on `check` results only: which targets render differently from the committed
54
+ * manifest. Consumers gate on the `projection-check-freshness-v2` capability, not on field presence.
55
+ */
56
+ freshness?: ProjectionFreshnessV2;
57
+ /**
58
+ * Present on every `check` and `plan` result, and on no other: the architecture debt this run
59
+ * found. It never changes `status`. Consumers gate on the `projection-architecture-debt-v1`
60
+ * capability, not on field presence.
61
+ */
62
+ architectureDebt?: ProjectionArchitectureDebtV1;
63
+ /**
64
+ * Present on every `check` and `plan` result, and on no other: per-target change classification,
65
+ * sorted by path, then targetId (#327). It never changes `status` or `files`.
66
+ */
67
+ changes?: ProjectionTargetChangeV2[];
68
+ /**
69
+ * Present, as `true`, only when this response returns an apply this requestId already committed
70
+ * for the same request digest, without applying again (#265). It is excluded from
71
+ * `receiptDigest`, so a replay carries the committed receipt digest unchanged.
72
+ */
73
+ replayed?: true;
74
+ /**
75
+ * Present exactly when `replayed` is: whether this response wrote projection-owned files (#325).
76
+ * `false` means it wrote nothing; the committed result is returned as recorded. `true` means
77
+ * the projection-owned outputs differed from the approved result at the approved snapshot, so
78
+ * the provider wrote the committed fixed point again under the original receipt. Excluded from
79
+ * `receiptDigest`.
80
+ */
81
+ written?: boolean;
82
+ /**
83
+ * Present only on a `human-action-required` result whose request sent `acceptObservedMajorChange`
84
+ * and the provider declined it: `declined-unprovable-proof` means a capability's P1 or P2 proof is
85
+ * unprovable, so no observed change can be accepted. The result then carries an
86
+ * `unprovable-required-flow` action naming those capabilities, never `unresolved-major-change`,
87
+ * so a caller can tell a declined flag from an absent one (#275).
88
+ */
89
+ majorChangeAcceptance?: "declined-unprovable-proof";
90
+ /**
91
+ * Present exactly on `planned-partial` and `applied-partial` results, with `complete: false`; a
92
+ * result that covers every target omits it. Consumers gate on `projection-capability-isolation-v1`.
93
+ */
94
+ coverage?: ProjectionCoverageV1;
95
+ receiptDigest: Sha256Digest;
96
+ }
97
+
98
+ export interface ProjectionApplyReceiptV1 {
99
+ schemaVersion: typeof PROJECTION_APPLY_RECEIPT_SCHEMA_VERSION;
100
+ identity: ProjectionApplyIdentityV1;
101
+ result: ProjectionResultV3;
102
+ /**
103
+ * Present only on receipts written after recovery protocol v1 shipped. Receipts created by
104
+ * v0.4.7 remain inspectable, but cannot be recovered because they never recorded this exact
105
+ * approval binding.
106
+ */
107
+ recovery?: ProjectionApplyRecoveryBindingV2;
108
+ }
109
+
110
+ /** Immutable approval metadata recorded with a new committed apply receipt, never inferred later. */
111
+ export interface ProjectionApplyRecoveryBindingV2 {
112
+ schemaVersion: typeof PROJECTION_APPLY_RECOVERY_BINDING_SCHEMA_VERSION;
113
+ targets: ProjectionTarget[];
114
+ changedPaths: string[];
115
+ originalExpectedSnapshot: ProjectionExpectedSnapshotV1;
116
+ expectedResultingDigests: ArchitectureDigestSetV2;
117
+ rendererVersion: typeof ARCHITECTURE_DOCS_RENDERER_VERSION;
118
+ layoutVersion: "archcontext.docs-layout/v1";
119
+ generatedFrom: ProjectionSnapshotV1["generatedFrom"];
120
+ ownedOutputDigest: Sha256Digest;
121
+ receiptDigest: Sha256Digest;
122
+ /**
123
+ * `digestJson` of the caller's ProjectionRequestV1 exactly as received. With the result's
124
+ * requestId it is the replay key of #265; it never includes provider-generated ids. Receipts
125
+ * committed before it existed lack it and are never replayed.
126
+ */
127
+ requestDigest?: Sha256Digest;
128
+ }
129
+
130
+ /**
131
+ * The only client-supplied recovery input. The daemon resolves every semantic field from the
132
+ * committed receipt and repository authority while it holds the writer boundary.
133
+ */
134
+ export interface ProjectionApplyRecoveryIntentV1 {
135
+ schemaVersion: typeof PROJECTION_APPLY_RECOVERY_INTENT_SCHEMA_VERSION;
136
+ requestId: string;
137
+ profile: "repo-harness/v1";
138
+ receipt: {
139
+ lookupKey: Sha256Digest;
140
+ applyId: Sha256Digest;
141
+ };
142
+ }
143
+
144
+ export type ProjectionApplyRecoveryDeliveryStatus = "delivered" | "already-delivered";
145
+
146
+ /**
147
+ * A semantic proof created only after the CLI has rebuilt the current projection fixed point.
148
+ * `proofDigest` intentionally excludes deliveryStatus so an idempotent repeat can change only
149
+ * that explicitly declared field.
150
+ */
151
+ export interface ProjectionApplyRecoveryProofV2 {
152
+ schemaVersion: typeof PROJECTION_APPLY_RECOVERY_PROOF_SCHEMA_VERSION;
153
+ requestId: string;
154
+ requestDigest: Sha256Digest;
155
+ proofDigest: Sha256Digest;
156
+ deliveryStatus: ProjectionApplyRecoveryDeliveryStatus;
157
+ receipt: {
158
+ lookupKey: Sha256Digest;
159
+ applyId: Sha256Digest;
160
+ receiptDigest: Sha256Digest;
161
+ };
162
+ acceptedChange: AcceptedArchitectureChangeReferenceV1;
163
+ expectedResultingDigests: ArchitectureDigestSetV2;
164
+ current: {
165
+ snapshot: ProjectionSnapshotV1;
166
+ resultingDigests: ArchitectureDigestSetV2;
167
+ ownedOutputDigest: Sha256Digest;
168
+ fixedPointDigest: Sha256Digest;
169
+ };
170
+ }
171
+
172
+ export interface ProjectionApplyRecoveryResultV2 {
173
+ schemaVersion: typeof PROJECTION_APPLY_RECOVERY_RESULT_SCHEMA_VERSION;
174
+ proof: ProjectionApplyRecoveryProofV2;
175
+ refreshSignals: ArchitectureRefreshSignalV2[];
176
+ }
177
+
178
+ /** Non-consuming receipt retrieval; current state is rebuilt for every response. */
179
+ export interface ProjectionApplyReadbackResultV2 {
180
+ schemaVersion: typeof PROJECTION_APPLY_READBACK_RESULT_SCHEMA_VERSION;
181
+ requestId: string;
182
+ requestDigest: Sha256Digest;
183
+ receipt: ProjectionApplyReceiptV1;
184
+ current: ProjectionApplyRecoveryProofV2["current"];
185
+ readbackDigest: Sha256Digest;
186
+ }
187
+
188
+ /** Exact-request absence observed under the same writer boundary used by apply. */
189
+ export interface ProjectionApplyAbsenceV1 {
190
+ schemaVersion: "archcontext.projection-apply-absence/v1";
191
+ requestId: string;
192
+ requestDigest: Sha256Digest;
193
+ lookupKey: Sha256Digest;
194
+ current: ProjectionExpectedSnapshotV1;
195
+ absenceDigest: Sha256Digest;
196
+ }
197
+
198
+ export type ProjectionApplyReadbackV1 = ProjectionApplyReadbackResultV2 | ProjectionApplyAbsenceV1;
199
+
200
+ export interface ArchctxCapabilitiesV1 {
201
+ schemaVersion: typeof ARCHCTX_CAPABILITIES_SCHEMA_VERSION;
202
+ package: {
203
+ name: "archctx";
204
+ version: string;
205
+ };
206
+ protocols: {
207
+ projectionRequest: typeof PROJECTION_REQUEST_SCHEMA_VERSION;
208
+ projectionResult: typeof PROJECTION_RESULT_SCHEMA_VERSION;
209
+ architectureRefreshSignal: typeof ARCHITECTURE_REFRESH_SIGNAL_SCHEMA_VERSION;
210
+ };
211
+ renderers: {
212
+ architectureDocs: typeof ARCHITECTURE_DOCS_RENDERER_VERSION;
213
+ agentContext: typeof AGENT_CONTEXT_RENDERER_VERSION;
214
+ };
215
+ features: ArchctxFeature[];
216
+ }