@claudexor/schema 1.0.0 → 2.0.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.
- package/dist/agent-capabilities.d.ts +88 -16
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +49 -18
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +22 -6
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +113 -48
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +60 -45
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +1423 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +317 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +133 -16
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +65 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +449 -115
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +114 -41
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +31 -7
- package/dist/context.js.map +1 -1
- package/dist/control-operation-responses.d.ts +1172 -0
- package/dist/control-operation-responses.d.ts.map +1 -0
- package/dist/control-operation-responses.js +35 -0
- package/dist/control-operation-responses.js.map +1 -0
- package/dist/control-run-detail.d.ts +443 -242
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +72 -17
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +88 -0
- package/dist/control-run-retry.d.ts.map +1 -0
- package/dist/control-run-retry.js +40 -0
- package/dist/control-run-retry.js.map +1 -0
- package/dist/control-run-scope.d.ts +25 -0
- package/dist/control-run-scope.d.ts.map +1 -0
- package/dist/control-run-scope.js +22 -0
- package/dist/control-run-scope.js.map +1 -0
- package/dist/control-secret.d.ts +90 -0
- package/dist/control-secret.d.ts.map +1 -0
- package/dist/control-secret.js +35 -0
- package/dist/control-secret.js.map +1 -0
- package/dist/control-spec.d.ts +592 -0
- package/dist/control-spec.d.ts.map +1 -0
- package/dist/control-spec.js +85 -0
- package/dist/control-spec.js.map +1 -0
- package/dist/control-thread-apply.d.ts +175 -0
- package/dist/control-thread-apply.d.ts.map +1 -0
- package/dist/control-thread-apply.js +31 -0
- package/dist/control-thread-apply.js.map +1 -0
- package/dist/control-trust.d.ts +74 -10
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +31 -11
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1391 -878
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +468 -310
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +10 -10
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +62 -15
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +99 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +19 -0
- package/dist/delivery.js.map +1 -0
- package/dist/events.d.ts +25 -2
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +25 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +25 -5
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +558 -175
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +207 -82
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +185 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +50 -0
- package/dist/operation.js.map +1 -0
- package/dist/orchestrate.d.ts +127 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +61 -7
- package/dist/orchestrate.js.map +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +29 -0
- package/dist/problem.d.ts.map +1 -0
- package/dist/problem.js +17 -0
- package/dist/problem.js.map +1 -0
- package/dist/project.d.ts +97 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +27 -0
- package/dist/project.js.map +1 -0
- package/dist/quota.d.ts +251 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +46 -0
- package/dist/quota.js.map +1 -0
- package/dist/raw.d.ts +195 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +58 -0
- package/dist/raw.js.map +1 -0
- package/dist/recovery.d.ts +515 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +93 -0
- package/dist/recovery.js.map +1 -0
- package/dist/request-requirements.d.ts +36 -0
- package/dist/request-requirements.d.ts.map +1 -0
- package/dist/request-requirements.js +26 -0
- package/dist/request-requirements.js.map +1 -0
- package/dist/review.d.ts +26 -26
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +50 -10
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +10 -10
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +19 -4
- package/dist/route.js.map +1 -1
- package/dist/setup.d.ts +9766 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +450 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +174 -57
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js +69 -16
- package/dist/spec.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +25 -21
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +1560 -58
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +97 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +233 -60
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +97 -15
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +68 -41
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +45 -11
- package/dist/thread.js.map +1 -1
- package/dist/workproduct.d.ts +3 -3
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -3
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +53 -11
- package/generated/BudgetLease.schema.json +55 -6
- package/generated/BudgetObservation.schema.json +28 -7
- package/generated/ConformanceReport.schema.json +49 -0
- package/generated/ControlApplyCheckResponse.schema.json +34 -0
- package/generated/ControlArtifactListResponse.schema.json +57 -0
- package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
- package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +103 -12
- package/generated/ControlHarnessSettingsPatch.schema.json +0 -12
- package/generated/ControlJournalEvent.schema.json +42 -0
- package/generated/ControlJournalExportReceipt.schema.json +49 -0
- package/generated/ControlJournalInspection.schema.json +149 -0
- package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
- package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
- package/generated/ControlJournalValidation.schema.json +181 -0
- package/generated/ControlOperationCatalog.schema.json +128 -0
- package/generated/ControlOperationDescriptor.schema.json +110 -0
- package/generated/ControlProblem.schema.json +59 -0
- package/generated/ControlProject.schema.json +42 -0
- package/generated/ControlProjectListResponse.schema.json +54 -0
- package/generated/ControlProjectRegisterRequest.schema.json +19 -0
- package/generated/ControlProjectRelinkRequest.schema.json +19 -0
- package/generated/ControlQueuedRunInfo.schema.json +4 -2
- package/generated/ControlQuotaResponse.schema.json +176 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +499 -0
- package/generated/ControlRunDetail.schema.json +197 -30
- package/generated/ControlRunListResponse.schema.json +797 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +83 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +140 -20
- package/generated/ControlSecretListResponse.schema.json +8 -14
- package/generated/ControlSecretMutationResponse.schema.json +32 -0
- package/generated/ControlSecretSetRequest.schema.json +27 -0
- package/generated/ControlSettingsSnapshot.schema.json +118 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +110 -40
- package/generated/ControlSetupJob.schema.json +763 -65
- package/generated/ControlSetupJobCreateRequest.schema.json +11 -13
- package/generated/ControlSetupJobEvent.schema.json +861 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +763 -65
- package/generated/ControlSetupJobSnapshot.schema.json +870 -0
- package/generated/ControlSpecAnswersRequest.schema.json +74 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
- package/generated/ControlSpecSession.schema.json +249 -0
- package/generated/ControlSpecSessionListResponse.schema.json +261 -0
- package/generated/ControlThread.schema.json +20 -2
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadDetail.schema.json +32 -4
- package/generated/ControlThreadListResponse.schema.json +20 -2
- package/generated/ControlThreadTurnRequest.schema.json +373 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +1 -1
- package/generated/ControlTrustListResponse.schema.json +6 -0
- package/generated/ControlTrustState.schema.json +6 -0
- package/generated/ControlTrustUpdateRequest.schema.json +65 -3
- package/generated/ControlUploadCreateRequest.schema.json +37 -0
- package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
- package/generated/ControlUploadStatus.schema.json +40 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +105 -58
- package/generated/HarnessEvent.schema.json +201 -10
- package/generated/HarnessManifest.schema.json +63 -12
- package/generated/HarnessStatusDto.schema.json +103 -12
- package/generated/OrchestrateContract.schema.json +32 -6
- package/generated/OrchestratePlan.schema.json +20 -0
- package/generated/OrchestratePlanProgress.schema.json +61 -0
- package/generated/PaidBudget.schema.json +42 -0
- package/generated/Project.schema.json +45 -0
- package/generated/ProjectConfig.schema.json +45 -18
- package/generated/RawContextPacket.schema.json +184 -0
- package/generated/RawGitPatchEnvelope.schema.json +70 -0
- package/generated/RunTelemetry.schema.json +80 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +159 -26
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +62 -6
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +1 -1
- package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
- package/generated/ControlSpecFreezeRequest.schema.json +0 -83
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const JournalRecoveryLocation: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"byte">;
|
|
4
|
+
byteOffset: z.ZodNumber;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
kind: "byte";
|
|
7
|
+
byteOffset: number;
|
|
8
|
+
}, {
|
|
9
|
+
kind: "byte";
|
|
10
|
+
byteOffset: number;
|
|
11
|
+
}>, z.ZodObject<{
|
|
12
|
+
kind: z.ZodLiteral<"cursor">;
|
|
13
|
+
epoch: z.ZodString;
|
|
14
|
+
seq: z.ZodNumber;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
kind: "cursor";
|
|
17
|
+
seq: number;
|
|
18
|
+
epoch: string;
|
|
19
|
+
}, {
|
|
20
|
+
kind: "cursor";
|
|
21
|
+
seq: number;
|
|
22
|
+
epoch: string;
|
|
23
|
+
}>]>;
|
|
24
|
+
export declare const ControlJournalRecoveryState: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
25
|
+
status: z.ZodLiteral<"ready">;
|
|
26
|
+
discardedTailBytes: z.ZodNumber;
|
|
27
|
+
}, "strict", z.ZodTypeAny, {
|
|
28
|
+
status: "ready";
|
|
29
|
+
discardedTailBytes: number;
|
|
30
|
+
}, {
|
|
31
|
+
status: "ready";
|
|
32
|
+
discardedTailBytes: number;
|
|
33
|
+
}>, z.ZodObject<{
|
|
34
|
+
status: z.ZodLiteral<"recovery_required">;
|
|
35
|
+
location: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"byte">;
|
|
37
|
+
byteOffset: z.ZodNumber;
|
|
38
|
+
}, "strict", z.ZodTypeAny, {
|
|
39
|
+
kind: "byte";
|
|
40
|
+
byteOffset: number;
|
|
41
|
+
}, {
|
|
42
|
+
kind: "byte";
|
|
43
|
+
byteOffset: number;
|
|
44
|
+
}>, z.ZodObject<{
|
|
45
|
+
kind: z.ZodLiteral<"cursor">;
|
|
46
|
+
epoch: z.ZodString;
|
|
47
|
+
seq: z.ZodNumber;
|
|
48
|
+
}, "strict", z.ZodTypeAny, {
|
|
49
|
+
kind: "cursor";
|
|
50
|
+
seq: number;
|
|
51
|
+
epoch: string;
|
|
52
|
+
}, {
|
|
53
|
+
kind: "cursor";
|
|
54
|
+
seq: number;
|
|
55
|
+
epoch: string;
|
|
56
|
+
}>]>;
|
|
57
|
+
reason: z.ZodString;
|
|
58
|
+
discardedTailBytes: z.ZodNumber;
|
|
59
|
+
}, "strict", z.ZodTypeAny, {
|
|
60
|
+
status: "recovery_required";
|
|
61
|
+
reason: string;
|
|
62
|
+
discardedTailBytes: number;
|
|
63
|
+
location: {
|
|
64
|
+
kind: "byte";
|
|
65
|
+
byteOffset: number;
|
|
66
|
+
} | {
|
|
67
|
+
kind: "cursor";
|
|
68
|
+
seq: number;
|
|
69
|
+
epoch: string;
|
|
70
|
+
};
|
|
71
|
+
}, {
|
|
72
|
+
status: "recovery_required";
|
|
73
|
+
reason: string;
|
|
74
|
+
discardedTailBytes: number;
|
|
75
|
+
location: {
|
|
76
|
+
kind: "byte";
|
|
77
|
+
byteOffset: number;
|
|
78
|
+
} | {
|
|
79
|
+
kind: "cursor";
|
|
80
|
+
seq: number;
|
|
81
|
+
epoch: string;
|
|
82
|
+
};
|
|
83
|
+
}>]>;
|
|
84
|
+
export declare const ControlJournalInspection: z.ZodEffects<z.ZodObject<{
|
|
85
|
+
readonly schemaVersion: z.ZodLiteral<1>;
|
|
86
|
+
readonly partition: z.ZodString;
|
|
87
|
+
readonly generation: z.ZodNumber;
|
|
88
|
+
readonly status: z.ZodEnum<["ready", "recovery_required"]>;
|
|
89
|
+
readonly recovery: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
90
|
+
status: z.ZodLiteral<"ready">;
|
|
91
|
+
discardedTailBytes: z.ZodNumber;
|
|
92
|
+
}, "strict", z.ZodTypeAny, {
|
|
93
|
+
status: "ready";
|
|
94
|
+
discardedTailBytes: number;
|
|
95
|
+
}, {
|
|
96
|
+
status: "ready";
|
|
97
|
+
discardedTailBytes: number;
|
|
98
|
+
}>, z.ZodObject<{
|
|
99
|
+
status: z.ZodLiteral<"recovery_required">;
|
|
100
|
+
location: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
101
|
+
kind: z.ZodLiteral<"byte">;
|
|
102
|
+
byteOffset: z.ZodNumber;
|
|
103
|
+
}, "strict", z.ZodTypeAny, {
|
|
104
|
+
kind: "byte";
|
|
105
|
+
byteOffset: number;
|
|
106
|
+
}, {
|
|
107
|
+
kind: "byte";
|
|
108
|
+
byteOffset: number;
|
|
109
|
+
}>, z.ZodObject<{
|
|
110
|
+
kind: z.ZodLiteral<"cursor">;
|
|
111
|
+
epoch: z.ZodString;
|
|
112
|
+
seq: z.ZodNumber;
|
|
113
|
+
}, "strict", z.ZodTypeAny, {
|
|
114
|
+
kind: "cursor";
|
|
115
|
+
seq: number;
|
|
116
|
+
epoch: string;
|
|
117
|
+
}, {
|
|
118
|
+
kind: "cursor";
|
|
119
|
+
seq: number;
|
|
120
|
+
epoch: string;
|
|
121
|
+
}>]>;
|
|
122
|
+
reason: z.ZodString;
|
|
123
|
+
discardedTailBytes: z.ZodNumber;
|
|
124
|
+
}, "strict", z.ZodTypeAny, {
|
|
125
|
+
status: "recovery_required";
|
|
126
|
+
reason: string;
|
|
127
|
+
discardedTailBytes: number;
|
|
128
|
+
location: {
|
|
129
|
+
kind: "byte";
|
|
130
|
+
byteOffset: number;
|
|
131
|
+
} | {
|
|
132
|
+
kind: "cursor";
|
|
133
|
+
seq: number;
|
|
134
|
+
epoch: string;
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
status: "recovery_required";
|
|
138
|
+
reason: string;
|
|
139
|
+
discardedTailBytes: number;
|
|
140
|
+
location: {
|
|
141
|
+
kind: "byte";
|
|
142
|
+
byteOffset: number;
|
|
143
|
+
} | {
|
|
144
|
+
kind: "cursor";
|
|
145
|
+
seq: number;
|
|
146
|
+
epoch: string;
|
|
147
|
+
};
|
|
148
|
+
}>]>;
|
|
149
|
+
readonly fingerprint: z.ZodString;
|
|
150
|
+
readonly observedAt: z.ZodString;
|
|
151
|
+
readonly evidenceRefs: z.ZodArray<z.ZodString, "many">;
|
|
152
|
+
}, "strict", z.ZodTypeAny, {
|
|
153
|
+
status: "ready" | "recovery_required";
|
|
154
|
+
observedAt: string;
|
|
155
|
+
schemaVersion: 1;
|
|
156
|
+
evidenceRefs: string[];
|
|
157
|
+
recovery: {
|
|
158
|
+
status: "ready";
|
|
159
|
+
discardedTailBytes: number;
|
|
160
|
+
} | {
|
|
161
|
+
status: "recovery_required";
|
|
162
|
+
reason: string;
|
|
163
|
+
discardedTailBytes: number;
|
|
164
|
+
location: {
|
|
165
|
+
kind: "byte";
|
|
166
|
+
byteOffset: number;
|
|
167
|
+
} | {
|
|
168
|
+
kind: "cursor";
|
|
169
|
+
seq: number;
|
|
170
|
+
epoch: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
partition: string;
|
|
174
|
+
generation: number;
|
|
175
|
+
fingerprint: string;
|
|
176
|
+
}, {
|
|
177
|
+
status: "ready" | "recovery_required";
|
|
178
|
+
observedAt: string;
|
|
179
|
+
schemaVersion: 1;
|
|
180
|
+
evidenceRefs: string[];
|
|
181
|
+
recovery: {
|
|
182
|
+
status: "ready";
|
|
183
|
+
discardedTailBytes: number;
|
|
184
|
+
} | {
|
|
185
|
+
status: "recovery_required";
|
|
186
|
+
reason: string;
|
|
187
|
+
discardedTailBytes: number;
|
|
188
|
+
location: {
|
|
189
|
+
kind: "byte";
|
|
190
|
+
byteOffset: number;
|
|
191
|
+
} | {
|
|
192
|
+
kind: "cursor";
|
|
193
|
+
seq: number;
|
|
194
|
+
epoch: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
partition: string;
|
|
198
|
+
generation: number;
|
|
199
|
+
fingerprint: string;
|
|
200
|
+
}>, {
|
|
201
|
+
status: "ready" | "recovery_required";
|
|
202
|
+
observedAt: string;
|
|
203
|
+
schemaVersion: 1;
|
|
204
|
+
evidenceRefs: string[];
|
|
205
|
+
recovery: {
|
|
206
|
+
status: "ready";
|
|
207
|
+
discardedTailBytes: number;
|
|
208
|
+
} | {
|
|
209
|
+
status: "recovery_required";
|
|
210
|
+
reason: string;
|
|
211
|
+
discardedTailBytes: number;
|
|
212
|
+
location: {
|
|
213
|
+
kind: "byte";
|
|
214
|
+
byteOffset: number;
|
|
215
|
+
} | {
|
|
216
|
+
kind: "cursor";
|
|
217
|
+
seq: number;
|
|
218
|
+
epoch: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
partition: string;
|
|
222
|
+
generation: number;
|
|
223
|
+
fingerprint: string;
|
|
224
|
+
}, {
|
|
225
|
+
status: "ready" | "recovery_required";
|
|
226
|
+
observedAt: string;
|
|
227
|
+
schemaVersion: 1;
|
|
228
|
+
evidenceRefs: string[];
|
|
229
|
+
recovery: {
|
|
230
|
+
status: "ready";
|
|
231
|
+
discardedTailBytes: number;
|
|
232
|
+
} | {
|
|
233
|
+
status: "recovery_required";
|
|
234
|
+
reason: string;
|
|
235
|
+
discardedTailBytes: number;
|
|
236
|
+
location: {
|
|
237
|
+
kind: "byte";
|
|
238
|
+
byteOffset: number;
|
|
239
|
+
} | {
|
|
240
|
+
kind: "cursor";
|
|
241
|
+
seq: number;
|
|
242
|
+
epoch: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
partition: string;
|
|
246
|
+
generation: number;
|
|
247
|
+
fingerprint: string;
|
|
248
|
+
}>;
|
|
249
|
+
export type ControlJournalInspection = z.infer<typeof ControlJournalInspection>;
|
|
250
|
+
export declare const ControlJournalValidation: z.ZodEffects<z.ZodObject<{
|
|
251
|
+
projectionStatus: z.ZodArray<z.ZodObject<{
|
|
252
|
+
name: z.ZodString;
|
|
253
|
+
status: z.ZodEnum<["valid", "invalid"]>;
|
|
254
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
255
|
+
}, "strict", z.ZodTypeAny, {
|
|
256
|
+
status: "valid" | "invalid";
|
|
257
|
+
detail: string | null;
|
|
258
|
+
name: string;
|
|
259
|
+
}, {
|
|
260
|
+
status: "valid" | "invalid";
|
|
261
|
+
detail: string | null;
|
|
262
|
+
name: string;
|
|
263
|
+
}>, "many">;
|
|
264
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
265
|
+
partition: z.ZodString;
|
|
266
|
+
generation: z.ZodNumber;
|
|
267
|
+
status: z.ZodEnum<["ready", "recovery_required"]>;
|
|
268
|
+
recovery: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
269
|
+
status: z.ZodLiteral<"ready">;
|
|
270
|
+
discardedTailBytes: z.ZodNumber;
|
|
271
|
+
}, "strict", z.ZodTypeAny, {
|
|
272
|
+
status: "ready";
|
|
273
|
+
discardedTailBytes: number;
|
|
274
|
+
}, {
|
|
275
|
+
status: "ready";
|
|
276
|
+
discardedTailBytes: number;
|
|
277
|
+
}>, z.ZodObject<{
|
|
278
|
+
status: z.ZodLiteral<"recovery_required">;
|
|
279
|
+
location: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
280
|
+
kind: z.ZodLiteral<"byte">;
|
|
281
|
+
byteOffset: z.ZodNumber;
|
|
282
|
+
}, "strict", z.ZodTypeAny, {
|
|
283
|
+
kind: "byte";
|
|
284
|
+
byteOffset: number;
|
|
285
|
+
}, {
|
|
286
|
+
kind: "byte";
|
|
287
|
+
byteOffset: number;
|
|
288
|
+
}>, z.ZodObject<{
|
|
289
|
+
kind: z.ZodLiteral<"cursor">;
|
|
290
|
+
epoch: z.ZodString;
|
|
291
|
+
seq: z.ZodNumber;
|
|
292
|
+
}, "strict", z.ZodTypeAny, {
|
|
293
|
+
kind: "cursor";
|
|
294
|
+
seq: number;
|
|
295
|
+
epoch: string;
|
|
296
|
+
}, {
|
|
297
|
+
kind: "cursor";
|
|
298
|
+
seq: number;
|
|
299
|
+
epoch: string;
|
|
300
|
+
}>]>;
|
|
301
|
+
reason: z.ZodString;
|
|
302
|
+
discardedTailBytes: z.ZodNumber;
|
|
303
|
+
}, "strict", z.ZodTypeAny, {
|
|
304
|
+
status: "recovery_required";
|
|
305
|
+
reason: string;
|
|
306
|
+
discardedTailBytes: number;
|
|
307
|
+
location: {
|
|
308
|
+
kind: "byte";
|
|
309
|
+
byteOffset: number;
|
|
310
|
+
} | {
|
|
311
|
+
kind: "cursor";
|
|
312
|
+
seq: number;
|
|
313
|
+
epoch: string;
|
|
314
|
+
};
|
|
315
|
+
}, {
|
|
316
|
+
status: "recovery_required";
|
|
317
|
+
reason: string;
|
|
318
|
+
discardedTailBytes: number;
|
|
319
|
+
location: {
|
|
320
|
+
kind: "byte";
|
|
321
|
+
byteOffset: number;
|
|
322
|
+
} | {
|
|
323
|
+
kind: "cursor";
|
|
324
|
+
seq: number;
|
|
325
|
+
epoch: string;
|
|
326
|
+
};
|
|
327
|
+
}>]>;
|
|
328
|
+
fingerprint: z.ZodString;
|
|
329
|
+
observedAt: z.ZodString;
|
|
330
|
+
evidenceRefs: z.ZodArray<z.ZodString, "many">;
|
|
331
|
+
}, "strict", z.ZodTypeAny, {
|
|
332
|
+
status: "ready" | "recovery_required";
|
|
333
|
+
observedAt: string;
|
|
334
|
+
schemaVersion: 1;
|
|
335
|
+
evidenceRefs: string[];
|
|
336
|
+
recovery: {
|
|
337
|
+
status: "ready";
|
|
338
|
+
discardedTailBytes: number;
|
|
339
|
+
} | {
|
|
340
|
+
status: "recovery_required";
|
|
341
|
+
reason: string;
|
|
342
|
+
discardedTailBytes: number;
|
|
343
|
+
location: {
|
|
344
|
+
kind: "byte";
|
|
345
|
+
byteOffset: number;
|
|
346
|
+
} | {
|
|
347
|
+
kind: "cursor";
|
|
348
|
+
seq: number;
|
|
349
|
+
epoch: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
partition: string;
|
|
353
|
+
generation: number;
|
|
354
|
+
fingerprint: string;
|
|
355
|
+
projectionStatus: {
|
|
356
|
+
status: "valid" | "invalid";
|
|
357
|
+
detail: string | null;
|
|
358
|
+
name: string;
|
|
359
|
+
}[];
|
|
360
|
+
}, {
|
|
361
|
+
status: "ready" | "recovery_required";
|
|
362
|
+
observedAt: string;
|
|
363
|
+
schemaVersion: 1;
|
|
364
|
+
evidenceRefs: string[];
|
|
365
|
+
recovery: {
|
|
366
|
+
status: "ready";
|
|
367
|
+
discardedTailBytes: number;
|
|
368
|
+
} | {
|
|
369
|
+
status: "recovery_required";
|
|
370
|
+
reason: string;
|
|
371
|
+
discardedTailBytes: number;
|
|
372
|
+
location: {
|
|
373
|
+
kind: "byte";
|
|
374
|
+
byteOffset: number;
|
|
375
|
+
} | {
|
|
376
|
+
kind: "cursor";
|
|
377
|
+
seq: number;
|
|
378
|
+
epoch: string;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
partition: string;
|
|
382
|
+
generation: number;
|
|
383
|
+
fingerprint: string;
|
|
384
|
+
projectionStatus: {
|
|
385
|
+
status: "valid" | "invalid";
|
|
386
|
+
detail: string | null;
|
|
387
|
+
name: string;
|
|
388
|
+
}[];
|
|
389
|
+
}>, {
|
|
390
|
+
status: "ready" | "recovery_required";
|
|
391
|
+
observedAt: string;
|
|
392
|
+
schemaVersion: 1;
|
|
393
|
+
evidenceRefs: string[];
|
|
394
|
+
recovery: {
|
|
395
|
+
status: "ready";
|
|
396
|
+
discardedTailBytes: number;
|
|
397
|
+
} | {
|
|
398
|
+
status: "recovery_required";
|
|
399
|
+
reason: string;
|
|
400
|
+
discardedTailBytes: number;
|
|
401
|
+
location: {
|
|
402
|
+
kind: "byte";
|
|
403
|
+
byteOffset: number;
|
|
404
|
+
} | {
|
|
405
|
+
kind: "cursor";
|
|
406
|
+
seq: number;
|
|
407
|
+
epoch: string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
partition: string;
|
|
411
|
+
generation: number;
|
|
412
|
+
fingerprint: string;
|
|
413
|
+
projectionStatus: {
|
|
414
|
+
status: "valid" | "invalid";
|
|
415
|
+
detail: string | null;
|
|
416
|
+
name: string;
|
|
417
|
+
}[];
|
|
418
|
+
}, {
|
|
419
|
+
status: "ready" | "recovery_required";
|
|
420
|
+
observedAt: string;
|
|
421
|
+
schemaVersion: 1;
|
|
422
|
+
evidenceRefs: string[];
|
|
423
|
+
recovery: {
|
|
424
|
+
status: "ready";
|
|
425
|
+
discardedTailBytes: number;
|
|
426
|
+
} | {
|
|
427
|
+
status: "recovery_required";
|
|
428
|
+
reason: string;
|
|
429
|
+
discardedTailBytes: number;
|
|
430
|
+
location: {
|
|
431
|
+
kind: "byte";
|
|
432
|
+
byteOffset: number;
|
|
433
|
+
} | {
|
|
434
|
+
kind: "cursor";
|
|
435
|
+
seq: number;
|
|
436
|
+
epoch: string;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
partition: string;
|
|
440
|
+
generation: number;
|
|
441
|
+
fingerprint: string;
|
|
442
|
+
projectionStatus: {
|
|
443
|
+
status: "valid" | "invalid";
|
|
444
|
+
detail: string | null;
|
|
445
|
+
name: string;
|
|
446
|
+
}[];
|
|
447
|
+
}>;
|
|
448
|
+
export type ControlJournalValidation = z.infer<typeof ControlJournalValidation>;
|
|
449
|
+
export declare const ControlJournalExportReceipt: z.ZodObject<{
|
|
450
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
451
|
+
exportId: z.ZodString;
|
|
452
|
+
partition: z.ZodString;
|
|
453
|
+
fingerprint: z.ZodString;
|
|
454
|
+
bundlePath: z.ZodString;
|
|
455
|
+
manifestSha256: z.ZodString;
|
|
456
|
+
createdAt: z.ZodString;
|
|
457
|
+
}, "strict", z.ZodTypeAny, {
|
|
458
|
+
schemaVersion: 1;
|
|
459
|
+
createdAt: string;
|
|
460
|
+
partition: string;
|
|
461
|
+
fingerprint: string;
|
|
462
|
+
exportId: string;
|
|
463
|
+
bundlePath: string;
|
|
464
|
+
manifestSha256: string;
|
|
465
|
+
}, {
|
|
466
|
+
schemaVersion: 1;
|
|
467
|
+
createdAt: string;
|
|
468
|
+
partition: string;
|
|
469
|
+
fingerprint: string;
|
|
470
|
+
exportId: string;
|
|
471
|
+
bundlePath: string;
|
|
472
|
+
manifestSha256: string;
|
|
473
|
+
}>;
|
|
474
|
+
export type ControlJournalExportReceipt = z.infer<typeof ControlJournalExportReceipt>;
|
|
475
|
+
export declare const ControlJournalQuarantineRequest: z.ZodObject<{
|
|
476
|
+
expectedFingerprint: z.ZodString;
|
|
477
|
+
confirmation: z.ZodLiteral<"quarantine_and_start_fresh">;
|
|
478
|
+
}, "strict", z.ZodTypeAny, {
|
|
479
|
+
expectedFingerprint: string;
|
|
480
|
+
confirmation: "quarantine_and_start_fresh";
|
|
481
|
+
}, {
|
|
482
|
+
expectedFingerprint: string;
|
|
483
|
+
confirmation: "quarantine_and_start_fresh";
|
|
484
|
+
}>;
|
|
485
|
+
export type ControlJournalQuarantineRequest = z.infer<typeof ControlJournalQuarantineRequest>;
|
|
486
|
+
export declare const ControlJournalQuarantineReceipt: z.ZodObject<{
|
|
487
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
488
|
+
operationId: z.ZodString;
|
|
489
|
+
partition: z.ZodString;
|
|
490
|
+
previousFingerprint: z.ZodString;
|
|
491
|
+
quarantineArtifactId: z.ZodString;
|
|
492
|
+
quarantinePath: z.ZodString;
|
|
493
|
+
newEpoch: z.ZodString;
|
|
494
|
+
completedAt: z.ZodString;
|
|
495
|
+
}, "strict", z.ZodTypeAny, {
|
|
496
|
+
schemaVersion: 1;
|
|
497
|
+
completedAt: string;
|
|
498
|
+
partition: string;
|
|
499
|
+
operationId: string;
|
|
500
|
+
previousFingerprint: string;
|
|
501
|
+
quarantineArtifactId: string;
|
|
502
|
+
quarantinePath: string;
|
|
503
|
+
newEpoch: string;
|
|
504
|
+
}, {
|
|
505
|
+
schemaVersion: 1;
|
|
506
|
+
completedAt: string;
|
|
507
|
+
partition: string;
|
|
508
|
+
operationId: string;
|
|
509
|
+
previousFingerprint: string;
|
|
510
|
+
quarantineArtifactId: string;
|
|
511
|
+
quarantinePath: string;
|
|
512
|
+
newEpoch: string;
|
|
513
|
+
}>;
|
|
514
|
+
export type ControlJournalQuarantineReceipt = z.infer<typeof ControlJournalQuarantineReceipt>;
|
|
515
|
+
//# sourceMappingURL=recovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery.d.ts","sourceRoot":"","sources":["../src/recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;IASlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYtC,CAAC;AA6BH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;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 offset: true });
|
|
4
|
+
const JournalPartition = z.string().trim().min(1).max(256);
|
|
5
|
+
export const JournalRecoveryLocation = z.discriminatedUnion("kind", [
|
|
6
|
+
z.object({ kind: z.literal("byte"), byteOffset: z.number().int().nonnegative() }).strict(),
|
|
7
|
+
z
|
|
8
|
+
.object({
|
|
9
|
+
kind: z.literal("cursor"),
|
|
10
|
+
epoch: z.string().min(1),
|
|
11
|
+
seq: z.number().int().nonnegative(),
|
|
12
|
+
})
|
|
13
|
+
.strict(),
|
|
14
|
+
]);
|
|
15
|
+
export const ControlJournalRecoveryState = z.discriminatedUnion("status", [
|
|
16
|
+
z
|
|
17
|
+
.object({ status: z.literal("ready"), discardedTailBytes: z.number().int().nonnegative() })
|
|
18
|
+
.strict(),
|
|
19
|
+
z
|
|
20
|
+
.object({
|
|
21
|
+
status: z.literal("recovery_required"),
|
|
22
|
+
location: JournalRecoveryLocation,
|
|
23
|
+
reason: z.string().min(1),
|
|
24
|
+
discardedTailBytes: z.number().int().nonnegative(),
|
|
25
|
+
})
|
|
26
|
+
.strict(),
|
|
27
|
+
]);
|
|
28
|
+
const JournalInspectionFields = {
|
|
29
|
+
schemaVersion: z.literal(1),
|
|
30
|
+
partition: JournalPartition,
|
|
31
|
+
generation: z.number().int().nonnegative(),
|
|
32
|
+
status: z.enum(["ready", "recovery_required"]),
|
|
33
|
+
recovery: ControlJournalRecoveryState,
|
|
34
|
+
fingerprint: Sha256Hex,
|
|
35
|
+
observedAt: Timestamp,
|
|
36
|
+
evidenceRefs: z.array(z.string().min(1)).min(1),
|
|
37
|
+
};
|
|
38
|
+
function requireMatchingRecoveryStatus(value, context) {
|
|
39
|
+
if (value.status !== value.recovery.status) {
|
|
40
|
+
context.addIssue({
|
|
41
|
+
code: z.ZodIssueCode.custom,
|
|
42
|
+
path: ["status"],
|
|
43
|
+
message: "inspection status must match recovery status",
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export const ControlJournalInspection = z
|
|
48
|
+
.object(JournalInspectionFields)
|
|
49
|
+
.strict()
|
|
50
|
+
.superRefine(requireMatchingRecoveryStatus);
|
|
51
|
+
export const ControlJournalValidation = z
|
|
52
|
+
.object({
|
|
53
|
+
...JournalInspectionFields,
|
|
54
|
+
projectionStatus: z.array(z
|
|
55
|
+
.object({
|
|
56
|
+
name: z.string().min(1),
|
|
57
|
+
status: z.enum(["valid", "invalid"]),
|
|
58
|
+
detail: z.string().nullable(),
|
|
59
|
+
})
|
|
60
|
+
.strict()),
|
|
61
|
+
})
|
|
62
|
+
.strict()
|
|
63
|
+
.superRefine(requireMatchingRecoveryStatus);
|
|
64
|
+
export const ControlJournalExportReceipt = z
|
|
65
|
+
.object({
|
|
66
|
+
schemaVersion: z.literal(1),
|
|
67
|
+
exportId: z.string().min(1),
|
|
68
|
+
partition: JournalPartition,
|
|
69
|
+
fingerprint: Sha256Hex,
|
|
70
|
+
bundlePath: z.string().min(1),
|
|
71
|
+
manifestSha256: Sha256Hex,
|
|
72
|
+
createdAt: Timestamp,
|
|
73
|
+
})
|
|
74
|
+
.strict();
|
|
75
|
+
export const ControlJournalQuarantineRequest = z
|
|
76
|
+
.object({
|
|
77
|
+
expectedFingerprint: Sha256Hex,
|
|
78
|
+
confirmation: z.literal("quarantine_and_start_fresh"),
|
|
79
|
+
})
|
|
80
|
+
.strict();
|
|
81
|
+
export const ControlJournalQuarantineReceipt = z
|
|
82
|
+
.object({
|
|
83
|
+
schemaVersion: z.literal(1),
|
|
84
|
+
operationId: z.string().uuid(),
|
|
85
|
+
partition: JournalPartition,
|
|
86
|
+
previousFingerprint: Sha256Hex,
|
|
87
|
+
quarantineArtifactId: z.string().min(1),
|
|
88
|
+
quarantinePath: z.string().min(1),
|
|
89
|
+
newEpoch: z.string().min(1),
|
|
90
|
+
completedAt: Timestamp,
|
|
91
|
+
})
|
|
92
|
+
.strict();
|
|
93
|
+
//# sourceMappingURL=recovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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AC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,mBAAmB,EAAE,SAAS;IAC9B,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,WAAW,EAAE,SAAS;CACvB,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Why one selected lane did or did not receive a requested capability. */
|
|
3
|
+
export declare const RequestRequirementReason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible"]>;
|
|
4
|
+
export type RequestRequirementReason = z.infer<typeof RequestRequirementReason>;
|
|
5
|
+
/**
|
|
6
|
+
* Preflight truth for one requested capability on one selected harness lane.
|
|
7
|
+
* A lane may remain eligible for the run while a mixed-pool capability is not
|
|
8
|
+
* effective there; consumers must use `effective`, never infer from manifest.
|
|
9
|
+
*/
|
|
10
|
+
export declare const RequestRequirementResolution: z.ZodObject<{
|
|
11
|
+
capability: z.ZodLiteral<"browser">;
|
|
12
|
+
harness_id: z.ZodString;
|
|
13
|
+
eligible: z.ZodBoolean;
|
|
14
|
+
requested: z.ZodBoolean;
|
|
15
|
+
effective: z.ZodBoolean;
|
|
16
|
+
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible"]>;
|
|
17
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
requested: boolean;
|
|
20
|
+
effective: boolean;
|
|
21
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
22
|
+
evidence_refs: string[];
|
|
23
|
+
harness_id: string;
|
|
24
|
+
eligible: boolean;
|
|
25
|
+
capability: "browser";
|
|
26
|
+
}, {
|
|
27
|
+
requested: boolean;
|
|
28
|
+
effective: boolean;
|
|
29
|
+
reason: "effective" | "not_requested" | "manifest_unsupported" | "web_policy_off" | "access_profile_incompatible";
|
|
30
|
+
harness_id: string;
|
|
31
|
+
eligible: boolean;
|
|
32
|
+
capability: "browser";
|
|
33
|
+
evidence_refs?: string[] | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export type RequestRequirementResolution = z.infer<typeof RequestRequirementResolution>;
|
|
36
|
+
//# sourceMappingURL=request-requirements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-requirements.d.ts","sourceRoot":"","sources":["../src/request-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,oHAMnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EAUoD,CAAC;AAC9F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Why one selected lane did or did not receive a requested capability. */
|
|
3
|
+
export const RequestRequirementReason = z.enum([
|
|
4
|
+
"not_requested",
|
|
5
|
+
"effective",
|
|
6
|
+
"manifest_unsupported",
|
|
7
|
+
"web_policy_off",
|
|
8
|
+
"access_profile_incompatible",
|
|
9
|
+
]);
|
|
10
|
+
/**
|
|
11
|
+
* Preflight truth for one requested capability on one selected harness lane.
|
|
12
|
+
* A lane may remain eligible for the run while a mixed-pool capability is not
|
|
13
|
+
* effective there; consumers must use `effective`, never infer from manifest.
|
|
14
|
+
*/
|
|
15
|
+
export const RequestRequirementResolution = z
|
|
16
|
+
.object({
|
|
17
|
+
capability: z.literal("browser"),
|
|
18
|
+
harness_id: z.string().min(1),
|
|
19
|
+
eligible: z.boolean(),
|
|
20
|
+
requested: z.boolean(),
|
|
21
|
+
effective: z.boolean(),
|
|
22
|
+
reason: RequestRequirementReason,
|
|
23
|
+
evidence_refs: z.array(z.string()).default([]),
|
|
24
|
+
})
|
|
25
|
+
.describe("Preflight resolution of one requested capability on one selected harness lane.");
|
|
26
|
+
//# sourceMappingURL=request-requirements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-requirements.js","sourceRoot":"","sources":["../src/request-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2EAA2E;AAC3E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,eAAe;IACf,WAAW;IACX,sBAAsB;IACtB,gBAAgB;IAChB,6BAA6B;CAC9B,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,MAAM,EAAE,wBAAwB;IAChC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC/C,CAAC;KACD,QAAQ,CAAC,gFAAgF,CAAC,CAAC"}
|