@xemahq/contracts 0.23.0 → 0.25.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 (98) hide show
  1. package/dist/.source-stamp.json +2 -2
  2. package/dist/agent-composition/index.d.ts +1 -0
  3. package/dist/agent-composition/index.d.ts.map +1 -1
  4. package/dist/agent-composition/index.js +1 -0
  5. package/dist/agent-composition/index.js.map +1 -1
  6. package/dist/agent-composition/lib/agent.d.ts +4 -0
  7. package/dist/agent-composition/lib/agent.d.ts.map +1 -1
  8. package/dist/agent-composition/lib/agent.js +2 -1
  9. package/dist/agent-composition/lib/agent.js.map +1 -1
  10. package/dist/agent-composition/lib/delegate-aperture.d.ts +54 -0
  11. package/dist/agent-composition/lib/delegate-aperture.d.ts.map +1 -0
  12. package/dist/agent-composition/lib/delegate-aperture.js +230 -0
  13. package/dist/agent-composition/lib/delegate-aperture.js.map +1 -0
  14. package/dist/agent-permission/lib/permission-map.d.ts +1 -1
  15. package/dist/agent-permission/lib/permission-map.d.ts.map +1 -1
  16. package/dist/agent-permission/lib/permission-map.js +0 -3
  17. package/dist/agent-permission/lib/permission-map.js.map +1 -1
  18. package/dist/agent-session/index.d.ts +1 -0
  19. package/dist/agent-session/index.d.ts.map +1 -1
  20. package/dist/agent-session/index.js +1 -0
  21. package/dist/agent-session/index.js.map +1 -1
  22. package/dist/agent-session/lib/resolved-session-composition.d.ts +2 -0
  23. package/dist/agent-session/lib/resolved-session-composition.d.ts.map +1 -1
  24. package/dist/agent-session/lib/resolved-session-composition.js +40 -0
  25. package/dist/agent-session/lib/resolved-session-composition.js.map +1 -1
  26. package/dist/agent-session/lib/sealed-delegate-aperture.d.ts +23 -0
  27. package/dist/agent-session/lib/sealed-delegate-aperture.d.ts.map +1 -0
  28. package/dist/agent-session/lib/sealed-delegate-aperture.js +132 -0
  29. package/dist/agent-session/lib/sealed-delegate-aperture.js.map +1 -0
  30. package/dist/agent-workspace/awp-spec.json +1 -1
  31. package/dist/agent-workspace/lib/agent-tool-defaults.d.ts.map +1 -1
  32. package/dist/agent-workspace/lib/agent-tool-defaults.js +0 -3
  33. package/dist/agent-workspace/lib/agent-tool-defaults.js.map +1 -1
  34. package/dist/agent-workspace/lib/awp.js +1 -1
  35. package/dist/agent-workspace/lib/awp.js.map +1 -1
  36. package/dist/agent-workspace/lib/logical-workspace-slot.d.ts +0 -1
  37. package/dist/agent-workspace/lib/logical-workspace-slot.d.ts.map +1 -1
  38. package/dist/agent-workspace/lib/logical-workspace-slot.js +0 -1
  39. package/dist/agent-workspace/lib/logical-workspace-slot.js.map +1 -1
  40. package/dist/biome/lib/biome-generated-index.d.ts +375 -0
  41. package/dist/biome/lib/biome-generated-index.d.ts.map +1 -1
  42. package/dist/biome/lib/biome-generated-index.js +5 -0
  43. package/dist/biome/lib/biome-generated-index.js.map +1 -1
  44. package/dist/biome-dependency/index.d.ts +3 -0
  45. package/dist/biome-dependency/index.d.ts.map +1 -0
  46. package/dist/biome-dependency/index.js +19 -0
  47. package/dist/biome-dependency/index.js.map +1 -0
  48. package/dist/biome-dependency/lib/biome-dependency-contract.d.ts +292 -0
  49. package/dist/biome-dependency/lib/biome-dependency-contract.d.ts.map +1 -0
  50. package/dist/biome-dependency/lib/biome-dependency-contract.js +123 -0
  51. package/dist/biome-dependency/lib/biome-dependency-contract.js.map +1 -0
  52. package/dist/biome-dependency/lib/service-peer-contract.d.ts +41 -0
  53. package/dist/biome-dependency/lib/service-peer-contract.d.ts.map +1 -0
  54. package/dist/biome-dependency/lib/service-peer-contract.js +96 -0
  55. package/dist/biome-dependency/lib/service-peer-contract.js.map +1 -0
  56. package/dist/execution-context/lib/execution-context.d.ts +2 -0
  57. package/dist/execution-context/lib/execution-context.d.ts.map +1 -1
  58. package/dist/execution-context/lib/execution-context.js +6 -4
  59. package/dist/execution-context/lib/execution-context.js.map +1 -1
  60. package/dist/session-launch/lib/agent-reach-tier.d.ts +3 -0
  61. package/dist/session-launch/lib/agent-reach-tier.d.ts.map +1 -1
  62. package/dist/session-launch/lib/agent-reach-tier.js +22 -1
  63. package/dist/session-launch/lib/agent-reach-tier.js.map +1 -1
  64. package/dist/subject/index.d.ts +1 -0
  65. package/dist/subject/index.d.ts.map +1 -1
  66. package/dist/subject/index.js +1 -0
  67. package/dist/subject/index.js.map +1 -1
  68. package/dist/subject/lib/delegated-authority.d.ts +26 -0
  69. package/dist/subject/lib/delegated-authority.d.ts.map +1 -0
  70. package/dist/subject/lib/delegated-authority.js +43 -0
  71. package/dist/subject/lib/delegated-authority.js.map +1 -0
  72. package/dist/subject/lib/subject.d.ts +2 -1
  73. package/dist/subject/lib/subject.d.ts.map +1 -1
  74. package/dist/subject/lib/subject.js +1 -0
  75. package/dist/subject/lib/subject.js.map +1 -1
  76. package/dist/subject/lib/token-class.d.ts +2 -1
  77. package/dist/subject/lib/token-class.d.ts.map +1 -1
  78. package/dist/subject/lib/token-class.js +1 -0
  79. package/dist/subject/lib/token-class.js.map +1 -1
  80. package/dist/worker-runtime/lib/enums.d.ts +6 -4
  81. package/dist/worker-runtime/lib/enums.d.ts.map +1 -1
  82. package/dist/worker-runtime/lib/enums.js +6 -4
  83. package/dist/worker-runtime/lib/enums.js.map +1 -1
  84. package/dist/worker-runtime/lib/runtime-layout-adapter.d.ts +2 -9
  85. package/dist/worker-runtime/lib/runtime-layout-adapter.d.ts.map +1 -1
  86. package/dist/worker-runtime/lib/runtime-layout-adapter.js +1 -12
  87. package/dist/worker-runtime/lib/runtime-layout-adapter.js.map +1 -1
  88. package/dist/worker-runtime/lib/runtime-layout-profile.d.ts +0 -8
  89. package/dist/worker-runtime/lib/runtime-layout-profile.d.ts.map +1 -1
  90. package/dist/worker-runtime/lib/runtime-layout-profile.js +4 -14
  91. package/dist/worker-runtime/lib/runtime-layout-profile.js.map +1 -1
  92. package/dist/worker-runtime/lib/workspace-sandbox.d.ts.map +1 -1
  93. package/dist/worker-runtime/lib/workspace-sandbox.js +0 -20
  94. package/dist/worker-runtime/lib/workspace-sandbox.js.map +1 -1
  95. package/dist/worker-runtime/lib/workspace-slot-paths.d.ts.map +1 -1
  96. package/dist/worker-runtime/lib/workspace-slot-paths.js +0 -3
  97. package/dist/worker-runtime/lib/workspace-slot-paths.js.map +1 -1
  98. package/package.json +1 -1
@@ -0,0 +1,292 @@
1
+ import { z } from 'zod';
2
+ export declare const BIOME_DEPENDENCY_CONTRACT_VERSION: 1;
3
+ export declare enum PeerRelationship {
4
+ ServicePeer = "service-peer",
5
+ ContributionOwner = "contribution-owner",
6
+ DatabasePool = "database-pool",
7
+ EventPlane = "event-plane",
8
+ BiomeDelivery = "biome-delivery"
9
+ }
10
+ export declare const PeerRelationshipSchema: z.ZodEnum<typeof PeerRelationship>;
11
+ export declare enum PeerLifecycle {
12
+ Startup = "startup",
13
+ Runtime = "runtime"
14
+ }
15
+ export declare const PeerLifecycleSchema: z.ZodEnum<typeof PeerLifecycle>;
16
+ export declare enum DynamicPeerKind {
17
+ ContributionSync = "contribution-sync",
18
+ CapabilityInvoke = "capability-invoke",
19
+ RouteForward = "route-forward",
20
+ AdapterHost = "adapter-host",
21
+ RunnerDispatch = "runner-dispatch"
22
+ }
23
+ export declare const DynamicPeerKindSchema: z.ZodEnum<typeof DynamicPeerKind>;
24
+ export declare enum PeerInclusionKind {
25
+ Required = "required",
26
+ Optional = "optional"
27
+ }
28
+ export declare const PeerInclusionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
32
+ }, z.core.$strict>], "kind">;
33
+ export type PeerInclusion = z.infer<typeof PeerInclusionSchema>;
34
+ export declare const PeerServiceNameSchema: z.ZodString;
35
+ export declare const DependencyContractEvidenceSchema: z.ZodObject<{
36
+ path: z.ZodString;
37
+ line: z.ZodNumber;
38
+ seam: z.ZodString;
39
+ }, z.core.$strict>;
40
+ export type DependencyContractEvidence = z.infer<typeof DependencyContractEvidenceSchema>;
41
+ export declare const DependencyContractConsumerSchema: z.ZodObject<{
42
+ componentKey: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strict>;
44
+ export declare const PeerEdgeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
45
+ relationship: z.ZodLiteral<PeerRelationship.ServicePeer>;
46
+ consumer: z.ZodObject<{
47
+ componentKey: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>;
49
+ target: z.ZodObject<{
50
+ serviceName: z.ZodString;
51
+ }, z.core.$strict>;
52
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
53
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
57
+ }, z.core.$strict>], "kind">;
58
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
59
+ path: z.ZodString;
60
+ line: z.ZodNumber;
61
+ seam: z.ZodString;
62
+ }, z.core.$strict>>>;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ relationship: z.ZodLiteral<PeerRelationship.DatabasePool>;
65
+ consumer: z.ZodObject<{
66
+ componentKey: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>;
68
+ target: z.ZodObject<{
69
+ serviceName: z.ZodString;
70
+ }, z.core.$strict>;
71
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
72
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
73
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
76
+ }, z.core.$strict>], "kind">;
77
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
78
+ path: z.ZodString;
79
+ line: z.ZodNumber;
80
+ seam: z.ZodString;
81
+ }, z.core.$strict>>>;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ relationship: z.ZodLiteral<PeerRelationship.EventPlane>;
84
+ consumer: z.ZodObject<{
85
+ componentKey: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strict>;
87
+ target: z.ZodObject<{
88
+ serviceName: z.ZodString;
89
+ }, z.core.$strict>;
90
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
91
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
92
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
93
+ }, z.core.$strict>, z.ZodObject<{
94
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
95
+ }, z.core.$strict>], "kind">;
96
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
97
+ path: z.ZodString;
98
+ line: z.ZodNumber;
99
+ seam: z.ZodString;
100
+ }, z.core.$strict>>>;
101
+ }, z.core.$strict>, z.ZodObject<{
102
+ relationship: z.ZodLiteral<PeerRelationship.BiomeDelivery>;
103
+ consumer: z.ZodObject<{
104
+ componentKey: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strict>;
106
+ target: z.ZodObject<{
107
+ serviceName: z.ZodString;
108
+ }, z.core.$strict>;
109
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
110
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
111
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
112
+ }, z.core.$strict>, z.ZodObject<{
113
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
114
+ }, z.core.$strict>], "kind">;
115
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
116
+ path: z.ZodString;
117
+ line: z.ZodNumber;
118
+ seam: z.ZodString;
119
+ }, z.core.$strict>>>;
120
+ }, z.core.$strict>, z.ZodObject<{
121
+ relationship: z.ZodLiteral<PeerRelationship.ContributionOwner>;
122
+ consumer: z.ZodObject<{
123
+ componentKey: z.ZodOptional<z.ZodString>;
124
+ }, z.core.$strict>;
125
+ target: z.ZodObject<{
126
+ contributionKind: z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>;
127
+ }, z.core.$strict>;
128
+ lifecycle: z.ZodLiteral<PeerLifecycle.Runtime>;
129
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
130
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
133
+ }, z.core.$strict>], "kind">;
134
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
135
+ path: z.ZodString;
136
+ line: z.ZodNumber;
137
+ seam: z.ZodString;
138
+ }, z.core.$strict>>>;
139
+ }, z.core.$strict>], "relationship">;
140
+ export type PeerEdge = z.infer<typeof PeerEdgeSchema>;
141
+ export declare const DynamicPeerSchema: z.ZodObject<{
142
+ consumer: z.ZodObject<{
143
+ componentKey: z.ZodOptional<z.ZodString>;
144
+ }, z.core.$strict>;
145
+ kind: z.ZodEnum<typeof DynamicPeerKind>;
146
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
147
+ path: z.ZodString;
148
+ line: z.ZodNumber;
149
+ seam: z.ZodString;
150
+ }, z.core.$strict>>>;
151
+ }, z.core.$strict>;
152
+ export type DynamicPeer = z.infer<typeof DynamicPeerSchema>;
153
+ export declare const ProvidedContributionKindsSchema: z.ZodObject<{
154
+ consumer: z.ZodObject<{
155
+ componentKey: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strict>;
157
+ contributionKinds: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>>>;
158
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
159
+ path: z.ZodString;
160
+ line: z.ZodNumber;
161
+ seam: z.ZodString;
162
+ }, z.core.$strict>>>;
163
+ }, z.core.$strict>;
164
+ export type ProvidedContributionKinds = z.infer<typeof ProvidedContributionKindsSchema>;
165
+ export declare const BiomeDependencyContractSchema: z.ZodObject<{
166
+ contractVersion: z.ZodLiteral<1>;
167
+ seamTable: z.ZodObject<{
168
+ version: z.ZodNumber;
169
+ sha256: z.ZodString;
170
+ }, z.core.$strict>;
171
+ peers: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
172
+ relationship: z.ZodLiteral<PeerRelationship.ServicePeer>;
173
+ consumer: z.ZodObject<{
174
+ componentKey: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strict>;
176
+ target: z.ZodObject<{
177
+ serviceName: z.ZodString;
178
+ }, z.core.$strict>;
179
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
180
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
181
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
184
+ }, z.core.$strict>], "kind">;
185
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
186
+ path: z.ZodString;
187
+ line: z.ZodNumber;
188
+ seam: z.ZodString;
189
+ }, z.core.$strict>>>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ relationship: z.ZodLiteral<PeerRelationship.DatabasePool>;
192
+ consumer: z.ZodObject<{
193
+ componentKey: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strict>;
195
+ target: z.ZodObject<{
196
+ serviceName: z.ZodString;
197
+ }, z.core.$strict>;
198
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
199
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
200
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
201
+ }, z.core.$strict>, z.ZodObject<{
202
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
203
+ }, z.core.$strict>], "kind">;
204
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
205
+ path: z.ZodString;
206
+ line: z.ZodNumber;
207
+ seam: z.ZodString;
208
+ }, z.core.$strict>>>;
209
+ }, z.core.$strict>, z.ZodObject<{
210
+ relationship: z.ZodLiteral<PeerRelationship.EventPlane>;
211
+ consumer: z.ZodObject<{
212
+ componentKey: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strict>;
214
+ target: z.ZodObject<{
215
+ serviceName: z.ZodString;
216
+ }, z.core.$strict>;
217
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
218
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
219
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
222
+ }, z.core.$strict>], "kind">;
223
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
224
+ path: z.ZodString;
225
+ line: z.ZodNumber;
226
+ seam: z.ZodString;
227
+ }, z.core.$strict>>>;
228
+ }, z.core.$strict>, z.ZodObject<{
229
+ relationship: z.ZodLiteral<PeerRelationship.BiomeDelivery>;
230
+ consumer: z.ZodObject<{
231
+ componentKey: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strict>;
233
+ target: z.ZodObject<{
234
+ serviceName: z.ZodString;
235
+ }, z.core.$strict>;
236
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
237
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
238
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
239
+ }, z.core.$strict>, z.ZodObject<{
240
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
241
+ }, z.core.$strict>], "kind">;
242
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
243
+ path: z.ZodString;
244
+ line: z.ZodNumber;
245
+ seam: z.ZodString;
246
+ }, z.core.$strict>>>;
247
+ }, z.core.$strict>, z.ZodObject<{
248
+ relationship: z.ZodLiteral<PeerRelationship.ContributionOwner>;
249
+ consumer: z.ZodObject<{
250
+ componentKey: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strict>;
252
+ target: z.ZodObject<{
253
+ contributionKind: z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>;
254
+ }, z.core.$strict>;
255
+ lifecycle: z.ZodLiteral<PeerLifecycle.Runtime>;
256
+ inclusion: z.ZodDiscriminatedUnion<[z.ZodObject<{
257
+ kind: z.ZodLiteral<PeerInclusionKind.Required>;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ kind: z.ZodLiteral<PeerInclusionKind.Optional>;
260
+ }, z.core.$strict>], "kind">;
261
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
262
+ path: z.ZodString;
263
+ line: z.ZodNumber;
264
+ seam: z.ZodString;
265
+ }, z.core.$strict>>>;
266
+ }, z.core.$strict>], "relationship">>>;
267
+ dynamicPeers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
268
+ consumer: z.ZodObject<{
269
+ componentKey: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strict>;
271
+ kind: z.ZodEnum<typeof DynamicPeerKind>;
272
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
273
+ path: z.ZodString;
274
+ line: z.ZodNumber;
275
+ seam: z.ZodString;
276
+ }, z.core.$strict>>>;
277
+ }, z.core.$strict>>>;
278
+ provides: z.ZodReadonly<z.ZodArray<z.ZodObject<{
279
+ consumer: z.ZodObject<{
280
+ componentKey: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strict>;
282
+ contributionKinds: z.ZodReadonly<z.ZodArray<z.ZodType<import("../../contribution").ContributionKindRef, unknown, z.core.$ZodTypeInternals<import("../../contribution").ContributionKindRef, unknown>>>>;
283
+ evidence: z.ZodReadonly<z.ZodArray<z.ZodObject<{
284
+ path: z.ZodString;
285
+ line: z.ZodNumber;
286
+ seam: z.ZodString;
287
+ }, z.core.$strict>>>;
288
+ }, z.core.$strict>>>;
289
+ }, z.core.$strict>;
290
+ export type BiomeDependencyContract = z.infer<typeof BiomeDependencyContractSchema>;
291
+ export declare function dependencyContractEvidencePaths(contract: BiomeDependencyContract): readonly string[];
292
+ //# sourceMappingURL=biome-dependency-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome-dependency-contract.d.ts","sourceRoot":"","sources":["../../../src/biome-dependency/lib/biome-dependency-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,iCAAiC,EAAG,CAAU,CAAC;AAO5D,oBAAY,gBAAgB;IAE1B,WAAW,iBAAiB;IAE5B,iBAAiB,uBAAuB;IAExC,YAAY,kBAAkB;IAE9B,UAAU,gBAAgB;IAE1B,aAAa,mBAAmB;CACjC;AACD,eAAO,MAAM,sBAAsB,oCAAiC,CAAC;AAGrE,oBAAY,aAAa;IAEvB,OAAO,YAAY;IAEnB,OAAO,YAAY;CACpB;AACD,eAAO,MAAM,mBAAmB,iCAA8B,CAAC;AAQ/D,oBAAY,eAAe;IAEzB,gBAAgB,sBAAsB;IAEtC,gBAAgB,sBAAsB;IAEtC,YAAY,kBAAkB;IAE9B,WAAW,iBAAiB;IAE5B,cAAc,oBAAoB;CACnC;AACD,eAAO,MAAM,qBAAqB,mCAAgC,CAAC;AAqBnE,oBAAY,iBAAiB;IAC3B,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AACD,eAAO,MAAM,mBAAmB;;;;4BAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGhE,eAAO,MAAM,qBAAqB,aAEhC,CAAC;AAMH,eAAO,MAAM,gCAAgC;;;;kBAMlC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAOF,eAAO,MAAM,gCAAgC;;kBAElC,CAAC;AAmBZ,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAiBzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAMnB,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,+BAA+B;;;;;;;;;;kBAMjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAc/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAGF,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,uBAAuB,GAChC,SAAS,MAAM,EAAE,CAQnB"}
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BiomeDependencyContractSchema = exports.ProvidedContributionKindsSchema = exports.DynamicPeerSchema = exports.PeerEdgeSchema = exports.DependencyContractConsumerSchema = exports.DependencyContractEvidenceSchema = exports.PeerServiceNameSchema = exports.PeerInclusionSchema = exports.PeerInclusionKind = exports.DynamicPeerKindSchema = exports.DynamicPeerKind = exports.PeerLifecycleSchema = exports.PeerLifecycle = exports.PeerRelationshipSchema = exports.PeerRelationship = exports.BIOME_DEPENDENCY_CONTRACT_VERSION = void 0;
4
+ exports.dependencyContractEvidencePaths = dependencyContractEvidencePaths;
5
+ const contribution_1 = require("../../contribution");
6
+ const zod_1 = require("zod");
7
+ exports.BIOME_DEPENDENCY_CONTRACT_VERSION = 1;
8
+ var PeerRelationship;
9
+ (function (PeerRelationship) {
10
+ PeerRelationship["ServicePeer"] = "service-peer";
11
+ PeerRelationship["ContributionOwner"] = "contribution-owner";
12
+ PeerRelationship["DatabasePool"] = "database-pool";
13
+ PeerRelationship["EventPlane"] = "event-plane";
14
+ PeerRelationship["BiomeDelivery"] = "biome-delivery";
15
+ })(PeerRelationship || (exports.PeerRelationship = PeerRelationship = {}));
16
+ exports.PeerRelationshipSchema = zod_1.z.nativeEnum(PeerRelationship);
17
+ var PeerLifecycle;
18
+ (function (PeerLifecycle) {
19
+ PeerLifecycle["Startup"] = "startup";
20
+ PeerLifecycle["Runtime"] = "runtime";
21
+ })(PeerLifecycle || (exports.PeerLifecycle = PeerLifecycle = {}));
22
+ exports.PeerLifecycleSchema = zod_1.z.nativeEnum(PeerLifecycle);
23
+ var DynamicPeerKind;
24
+ (function (DynamicPeerKind) {
25
+ DynamicPeerKind["ContributionSync"] = "contribution-sync";
26
+ DynamicPeerKind["CapabilityInvoke"] = "capability-invoke";
27
+ DynamicPeerKind["RouteForward"] = "route-forward";
28
+ DynamicPeerKind["AdapterHost"] = "adapter-host";
29
+ DynamicPeerKind["RunnerDispatch"] = "runner-dispatch";
30
+ })(DynamicPeerKind || (exports.DynamicPeerKind = DynamicPeerKind = {}));
31
+ exports.DynamicPeerKindSchema = zod_1.z.nativeEnum(DynamicPeerKind);
32
+ var PeerInclusionKind;
33
+ (function (PeerInclusionKind) {
34
+ PeerInclusionKind["Required"] = "required";
35
+ PeerInclusionKind["Optional"] = "optional";
36
+ })(PeerInclusionKind || (exports.PeerInclusionKind = PeerInclusionKind = {}));
37
+ exports.PeerInclusionSchema = zod_1.z.discriminatedUnion('kind', [
38
+ zod_1.z.object({ kind: zod_1.z.literal(PeerInclusionKind.Required) }).strict(),
39
+ zod_1.z.object({ kind: zod_1.z.literal(PeerInclusionKind.Optional) }).strict(),
40
+ ]);
41
+ const SERVICE_NAME = /^[a-z][a-z0-9-]*$/;
42
+ exports.PeerServiceNameSchema = zod_1.z.string().regex(SERVICE_NAME, {
43
+ message: 'a peer service name is a lowercase slug',
44
+ });
45
+ exports.DependencyContractEvidenceSchema = zod_1.z
46
+ .object({
47
+ path: zod_1.z.string().min(1),
48
+ line: zod_1.z.number().int().positive(),
49
+ seam: zod_1.z.string().min(1),
50
+ })
51
+ .strict();
52
+ const EvidenceListSchema = zod_1.z
53
+ .array(exports.DependencyContractEvidenceSchema)
54
+ .min(1)
55
+ .readonly();
56
+ exports.DependencyContractConsumerSchema = zod_1.z
57
+ .object({ componentKey: zod_1.z.string().min(1).optional() })
58
+ .strict();
59
+ const serviceEdge = (relationship) => zod_1.z
60
+ .object({
61
+ relationship: zod_1.z.literal(relationship),
62
+ consumer: exports.DependencyContractConsumerSchema,
63
+ target: zod_1.z.object({ serviceName: exports.PeerServiceNameSchema }).strict(),
64
+ lifecycle: exports.PeerLifecycleSchema,
65
+ inclusion: exports.PeerInclusionSchema,
66
+ evidence: EvidenceListSchema,
67
+ })
68
+ .strict();
69
+ exports.PeerEdgeSchema = zod_1.z.discriminatedUnion('relationship', [
70
+ serviceEdge(PeerRelationship.ServicePeer),
71
+ serviceEdge(PeerRelationship.DatabasePool),
72
+ serviceEdge(PeerRelationship.EventPlane),
73
+ serviceEdge(PeerRelationship.BiomeDelivery),
74
+ zod_1.z
75
+ .object({
76
+ relationship: zod_1.z.literal(PeerRelationship.ContributionOwner),
77
+ consumer: exports.DependencyContractConsumerSchema,
78
+ target: zod_1.z
79
+ .object({ contributionKind: contribution_1.ContributionKindRefSchema })
80
+ .strict(),
81
+ lifecycle: zod_1.z.literal(PeerLifecycle.Runtime),
82
+ inclusion: exports.PeerInclusionSchema,
83
+ evidence: EvidenceListSchema,
84
+ })
85
+ .strict(),
86
+ ]);
87
+ exports.DynamicPeerSchema = zod_1.z
88
+ .object({
89
+ consumer: exports.DependencyContractConsumerSchema,
90
+ kind: exports.DynamicPeerKindSchema,
91
+ evidence: EvidenceListSchema,
92
+ })
93
+ .strict();
94
+ exports.ProvidedContributionKindsSchema = zod_1.z
95
+ .object({
96
+ consumer: exports.DependencyContractConsumerSchema,
97
+ contributionKinds: zod_1.z.array(contribution_1.ContributionKindRefSchema).min(1).readonly(),
98
+ evidence: EvidenceListSchema,
99
+ })
100
+ .strict();
101
+ exports.BiomeDependencyContractSchema = zod_1.z
102
+ .object({
103
+ contractVersion: zod_1.z.literal(exports.BIOME_DEPENDENCY_CONTRACT_VERSION),
104
+ seamTable: zod_1.z
105
+ .object({
106
+ version: zod_1.z.number().int().positive(),
107
+ sha256: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
108
+ })
109
+ .strict(),
110
+ peers: zod_1.z.array(exports.PeerEdgeSchema).readonly(),
111
+ dynamicPeers: zod_1.z.array(exports.DynamicPeerSchema).readonly(),
112
+ provides: zod_1.z.array(exports.ProvidedContributionKindsSchema).readonly(),
113
+ })
114
+ .strict();
115
+ function dependencyContractEvidencePaths(contract) {
116
+ const paths = new Set();
117
+ const add = (evidence) => evidence.forEach(({ path }) => paths.add(path));
118
+ contract.peers.forEach((edge) => add(edge.evidence));
119
+ contract.dynamicPeers.forEach((peer) => add(peer.evidence));
120
+ contract.provides.forEach((fact) => add(fact.evidence));
121
+ return [...paths];
122
+ }
123
+ //# sourceMappingURL=biome-dependency-contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"biome-dependency-contract.js","sourceRoot":"","sources":["../../../src/biome-dependency/lib/biome-dependency-contract.ts"],"names":[],"mappings":";;;AA6MA,0EAUC;AAvND,qDAA+D;AAC/D,6BAAwB;AAkBX,QAAA,iCAAiC,GAAG,CAAU,CAAC;AAO5D,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAE1B,gDAA4B,CAAA;IAE5B,4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AAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IACzC,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,uCAA+B,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC;KACD,MAAM,EAAE,CAAC;AAMZ,SAAgB,+BAA+B,CAC7C,QAAiC;IAEjC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,MAAM,GAAG,GAAG,CAAC,QAA+C,EAAE,EAAE,CAC9D,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;AACpB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod';
2
+ import { DynamicPeerKind, PeerLifecycle, PeerRelationship, type BiomeDependencyContract } from './biome-dependency-contract';
3
+ export declare const ServicePeerContractSchema: z.ZodObject<{
4
+ contractVersion: z.ZodLiteral<1>;
5
+ peers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
6
+ relationship: z.ZodEnum<{
7
+ "service-peer": PeerRelationship.ServicePeer;
8
+ "database-pool": PeerRelationship.DatabasePool;
9
+ "event-plane": PeerRelationship.EventPlane;
10
+ "biome-delivery": PeerRelationship.BiomeDelivery;
11
+ }>;
12
+ serviceName: z.ZodString;
13
+ lifecycle: z.ZodEnum<typeof PeerLifecycle>;
14
+ }, z.core.$strict>>>;
15
+ dynamicPeers: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof DynamicPeerKind>>>;
16
+ }, z.core.$strict>;
17
+ export type ServicePeerContract = z.infer<typeof ServicePeerContractSchema>;
18
+ export declare function servicePeerContractFor(contract: BiomeDependencyContract, componentKey: string): ServicePeerContract;
19
+ export type PeerResolutionRequest = {
20
+ readonly relationship: PeerRelationship.ServicePeer | PeerRelationship.DatabasePool | PeerRelationship.EventPlane | PeerRelationship.BiomeDelivery;
21
+ readonly serviceName: string;
22
+ readonly phase: PeerLifecycle;
23
+ } | {
24
+ readonly relationship: 'dynamic-peer';
25
+ readonly dynamicKind: DynamicPeerKind;
26
+ readonly serviceName: string;
27
+ readonly phase: PeerLifecycle;
28
+ };
29
+ export declare enum PeerResolutionVerdictKind {
30
+ Declared = "declared",
31
+ Undeclared = "undeclared",
32
+ LifecycleMismatch = "lifecycle-mismatch"
33
+ }
34
+ export type PeerResolutionVerdict = {
35
+ readonly kind: PeerResolutionVerdictKind.Declared;
36
+ } | {
37
+ readonly kind: PeerResolutionVerdictKind.Undeclared | PeerResolutionVerdictKind.LifecycleMismatch;
38
+ readonly message: string;
39
+ };
40
+ export declare function evaluatePeerResolution(contract: ServicePeerContract, request: PeerResolutionRequest): PeerResolutionVerdict;
41
+ //# sourceMappingURL=service-peer-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-peer-contract.d.ts","sourceRoot":"","sources":["../../../src/biome-dependency/lib/service-peer-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,eAAe,EAEf,aAAa,EAEb,gBAAgB,EAEhB,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAC;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ServicePeerContractSchema = void 0;
4
+ exports.servicePeerContractFor = servicePeerContractFor;
5
+ exports.evaluatePeerResolution = evaluatePeerResolution;
6
+ const zod_1 = require("zod");
7
+ const biome_dependency_contract_1 = require("./biome-dependency-contract");
8
+ exports.ServicePeerContractSchema = zod_1.z
9
+ .object({
10
+ contractVersion: zod_1.z.literal(biome_dependency_contract_1.BIOME_DEPENDENCY_CONTRACT_VERSION),
11
+ peers: zod_1.z
12
+ .array(zod_1.z
13
+ .object({
14
+ relationship: zod_1.z.enum([
15
+ biome_dependency_contract_1.PeerRelationship.ServicePeer,
16
+ biome_dependency_contract_1.PeerRelationship.DatabasePool,
17
+ biome_dependency_contract_1.PeerRelationship.EventPlane,
18
+ biome_dependency_contract_1.PeerRelationship.BiomeDelivery,
19
+ ]),
20
+ serviceName: biome_dependency_contract_1.PeerServiceNameSchema,
21
+ lifecycle: biome_dependency_contract_1.PeerLifecycleSchema,
22
+ })
23
+ .strict())
24
+ .readonly(),
25
+ dynamicPeers: zod_1.z.array(biome_dependency_contract_1.DynamicPeerKindSchema).readonly(),
26
+ })
27
+ .strict();
28
+ function servicePeerContractFor(contract, componentKey) {
29
+ const applies = (consumer) => consumer.componentKey === undefined ||
30
+ consumer.componentKey === componentKey;
31
+ const seen = new Map();
32
+ for (const edge of contract.peers) {
33
+ if (edge.relationship === biome_dependency_contract_1.PeerRelationship.ContributionOwner)
34
+ continue;
35
+ if (!applies(edge.consumer))
36
+ continue;
37
+ const key = `${edge.relationship}\u0000${edge.target.serviceName}`;
38
+ const previous = seen.get(key);
39
+ if (previous === undefined || edge.lifecycle === biome_dependency_contract_1.PeerLifecycle.Startup) {
40
+ seen.set(key, {
41
+ relationship: edge.relationship,
42
+ serviceName: edge.target.serviceName,
43
+ lifecycle: edge.lifecycle,
44
+ });
45
+ }
46
+ }
47
+ const peers = [...seen.values()].sort((a, b) => a.relationship === b.relationship
48
+ ? compareCodeUnits(a.serviceName, b.serviceName)
49
+ : compareCodeUnits(a.relationship, b.relationship));
50
+ const dynamicPeers = [
51
+ ...new Set(contract.dynamicPeers
52
+ .filter((p) => applies(p.consumer))
53
+ .map((p) => p.kind)),
54
+ ].sort(compareCodeUnits);
55
+ return {
56
+ contractVersion: biome_dependency_contract_1.BIOME_DEPENDENCY_CONTRACT_VERSION,
57
+ peers,
58
+ dynamicPeers,
59
+ };
60
+ }
61
+ function compareCodeUnits(a, b) {
62
+ return a < b ? -1 : a > b ? 1 : 0;
63
+ }
64
+ var PeerResolutionVerdictKind;
65
+ (function (PeerResolutionVerdictKind) {
66
+ PeerResolutionVerdictKind["Declared"] = "declared";
67
+ PeerResolutionVerdictKind["Undeclared"] = "undeclared";
68
+ PeerResolutionVerdictKind["LifecycleMismatch"] = "lifecycle-mismatch";
69
+ })(PeerResolutionVerdictKind || (exports.PeerResolutionVerdictKind = PeerResolutionVerdictKind = {}));
70
+ function evaluatePeerResolution(contract, request) {
71
+ if (request.relationship === 'dynamic-peer') {
72
+ return contract.dynamicPeers.includes(request.dynamicKind)
73
+ ? { kind: PeerResolutionVerdictKind.Declared }
74
+ : {
75
+ kind: PeerResolutionVerdictKind.Undeclared,
76
+ message: `dynamic peer resolution of "${request.serviceName}" via ${request.dynamicKind} is not declared by this service's dependency contract`,
77
+ };
78
+ }
79
+ const edge = contract.peers.find((peer) => peer.relationship === request.relationship &&
80
+ peer.serviceName === request.serviceName);
81
+ if (edge === undefined) {
82
+ return {
83
+ kind: PeerResolutionVerdictKind.Undeclared,
84
+ message: `"${request.serviceName}" is not declared as a ${request.relationship} peer by this service's dependency contract`,
85
+ };
86
+ }
87
+ if (request.phase === biome_dependency_contract_1.PeerLifecycle.Startup &&
88
+ edge.lifecycle === biome_dependency_contract_1.PeerLifecycle.Runtime) {
89
+ return {
90
+ kind: PeerResolutionVerdictKind.LifecycleMismatch,
91
+ message: `"${request.serviceName}" is declared as a runtime ${request.relationship} peer but was resolved at startup`,
92
+ };
93
+ }
94
+ return { kind: PeerResolutionVerdictKind.Declared };
95
+ }
96
+ //# sourceMappingURL=service-peer-contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-peer-contract.js","sourceRoot":"","sources":["../../../src/biome-dependency/lib/service-peer-contract.ts"],"names":[],"mappings":";;;AAmDA,wDAuCC;AA8CD,wDAiCC;AAzKD,6BAAwB;AAExB,2EASqC;AAUxB,QAAA,yBAAyB,GAAG,OAAC;KACvC,MAAM,CAAC;IACN,eAAe,EAAE,OAAC,CAAC,OAAO,CAAC,6DAAiC,CAAC;IAC7D,KAAK,EAAE,OAAC;SACL,KAAK,CACJ,OAAC;SACE,MAAM,CAAC;QACN,YAAY,EAAE,OAAC,CAAC,IAAI,CAAC;YACnB,4CAAgB,CAAC,WAAW;YAC5B,4CAAgB,CAAC,YAAY;YAC7B,4CAAgB,CAAC,UAAU;YAC3B,4CAAgB,CAAC,aAAa;SAC/B,CAAC;QACF,WAAW,EAAE,iDAAqB;QAClC,SAAS,EAAE,+CAAmB;KAC/B,CAAC;SACD,MAAM,EAAE,CACZ;SACA,QAAQ,EAAE;IACb,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAqB,CAAC,CAAC,QAAQ,EAAE;CACxD,CAAC;KACD,MAAM,EAAE,CAAC;AASZ,SAAgB,sBAAsB,CACpC,QAAiC,EACjC,YAAoB;IAEpB,MAAM,OAAO,GAAG,CAAC,QAAwD,EAAE,EAAE,CAC3E,QAAQ,CAAC,YAAY,KAAK,SAAS;QACnC,QAAQ,CAAC,YAAY,KAAK,YAAY,CAAC;IACzC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAgD,CAAC;IACrE,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;QAClC,IAAI,IAAI,CAAC,YAAY,KAAK,4CAAgB,CAAC,iBAAiB;YAAE,SAAS;QACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC;YAAE,SAAS;QACtC,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,YAAY,SA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AAI,OAAO,CAAC,WAAW,8BAA8B,OAAO,CAAC,YAAY,mCAAmC;SACtH,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC;AACtD,CAAC"}
@@ -4,6 +4,7 @@ import { type CapabilityAperture, type CapabilityRef } from '../../capability';
4
4
  import { ExecutionEnvironmentKind } from '../../execution-environment';
5
5
  import { DataClassification, type SpaceRef } from '../../space';
6
6
  import { type Caller } from './caller';
7
+ import { type DelegatedAuthority } from '../../subject';
7
8
  import { type ActingForRef, type AgentSubjectRef, type SubjectRef } from './subject';
8
9
  export declare enum BiomeExecutionTrustTier {
9
10
  Official = "official",
@@ -57,6 +58,7 @@ export interface ExecutionContext {
57
58
  actingAgent?: AgentSubjectRef;
58
59
  participantRole?: SessionParticipantRole;
59
60
  aperture?: CapabilityAperture;
61
+ delegation?: DelegatedAuthority;
60
62
  }
61
63
  export declare const ExecutionContextSchema: z.ZodType<ExecutionContext>;
62
64
  //# sourceMappingURL=execution-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-context.d.ts","sourceRoot":"","sources":["../../../src/execution-context/lib/execution-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAGlB,KAAK,QAAQ,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AAiCnB,oBAAY,uBAAuB;IAEjC,QAA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AClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,2BAA2B,CAAC;IACzC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,UAAU,EAAE,0BAA0B,CAAC;IACvC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAM1C,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAM5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAuC7B,WAAW,CAAC,EAAE,eAAe,CAAC;IAU9B,eAAe,CAAC,EAAE,sBAAsB,CAAC;IAqBzC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B;AAED,eAAO,MAAM,sBAAsB,EAiB7B,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"execution-context.d.ts","sourceRoot":"","sources":["../../../src/execution-context/lib/execution-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAGlB,KAAK,QAAQ,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AAiCnB,oBAAY,uBAAuB;IAEjC,QAAQ,aAAa;IAErB,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,MAAM,CAAC;IAChB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,2BAA2B,CAAC;IACzC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,UAAU,EAAE,0BAA0B,CAAC;IACvC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAM1C,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAM5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAuC7B,WAAW,CAAC,EAAE,eAAe,CAAC;IAU9B,eAAe,CAAC,EAAE,sBAAsB,CAAC;IAqBzC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAkB9B,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC;AAED,eAAO,MAAM,sBAAsB,EAkB7B,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
@@ -8,7 +8,8 @@ const address_1 = require("../../address");
8
8
  const execution_environment_1 = require("../../execution-environment");
9
9
  const space_1 = require("../../space");
10
10
  const caller_1 = require("./caller");
11
- const subject_1 = require("./subject");
11
+ const subject_1 = require("../../subject");
12
+ const subject_2 = require("./subject");
12
13
  var BiomeExecutionTrustTier;
13
14
  (function (BiomeExecutionTrustTier) {
14
15
  BiomeExecutionTrustTier["Official"] = "official";
@@ -52,7 +53,7 @@ exports.ExecutionContextSchema = zod_1.z.object({
52
53
  id: zod_1.z.string().min(1),
53
54
  requestId: zod_1.z.string().min(1),
54
55
  traceId: zod_1.z.string().min(1),
55
- subject: subject_1.SubjectRefSchema,
56
+ subject: subject_2.SubjectRefSchema,
56
57
  caller: caller_1.CallerSchema,
57
58
  space: space_1.SpaceRefSchema,
58
59
  environment: exports.ExecutionContextEnvironmentSchema,
@@ -60,10 +61,11 @@ exports.ExecutionContextSchema = zod_1.z.object({
60
61
  capability: exports.ExecutionContextCapabilitySchema,
61
62
  resource: exports.ExecutionContextResourceSchema.optional(),
62
63
  constraints: exports.ExecutionContextConstraintsSchema.optional(),
63
- actorChain: zod_1.z.array(subject_1.ActingForRefSchema).optional(),
64
+ actorChain: zod_1.z.array(subject_2.ActingForRefSchema).optional(),
64
65
  credentialBindingId: zod_1.z.string().min(1).optional(),
65
- actingAgent: subject_1.AgentSubjectRefSchema.optional(),
66
+ actingAgent: subject_2.AgentSubjectRefSchema.optional(),
66
67
  participantRole: agent_session_1.SessionParticipantRoleSchema.optional(),
67
68
  aperture: capability_1.CapabilityApertureSchema.optional(),
69
+ delegation: subject_1.DelegatedAuthoritySchema.optional(),
68
70
  });
69
71
  //# sourceMappingURL=execution-context.js.map