openmerit 0.1.12 → 0.2.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/CHANGELOG.md +8 -0
- package/README.md +5 -8
- package/dist/pi/scout-extension.mjs +23 -10
- package/dist/terminal/public/app.js +37 -37
- package/dist/terminal/public/styles.css +0 -125
- package/dist/terminal/scout-update.json +1 -1
- package/dist/terminal/src/cli.mjs +2 -0
- package/dist/terminal/src/install.mjs +1 -0
- package/dist/terminal/src/scout-instructions.d.ts +2 -2
- package/dist/terminal/src/scout-instructions.js +23 -10
- package/dist/terminal/src/scout-instructions.ts +23 -10
- package/dist/terminal/src/scout.d.ts +77 -0
- package/dist/terminal/src/scout.js +181 -0
- package/dist/terminal/src/scout.ts +164 -0
- package/dist/terminal/src/server.mjs +1 -1
- package/docs/commands.md +2 -78
- package/docs/getting-started.md +2 -2
- package/docs/index.md +4 -13
- package/docs/inference-terminal.md +2 -63
- package/docs/pi-extension.md +1 -1
- package/docs/roadmap.md +4 -17
- package/docs/scout.md +29 -250
- package/docs/security.md +5 -17
- package/docs/testing.md +7 -35
- package/docs/troubleshooting.md +1 -1
- package/package.json +4 -24
- package/dist/core/src/index.d.ts +0 -101
- package/dist/core/src/index.js +0 -1649
- package/dist/core/src/store.d.ts +0 -35
- package/dist/core/src/store.js +0 -102
- package/dist/protocol/src/index.d.ts +0 -484
- package/dist/protocol/src/index.js +0 -47
- package/dist/protocol/src/schemas.d.ts +0 -576
- package/dist/protocol/src/schemas.js +0 -280
- package/dist/terminal/public/brands/vllm.ico +0 -0
- package/dist/terminal/public/flow.css +0 -1
- package/dist/terminal/public/flow.js +0 -770
- package/dist/terminal/src/demo-policy.mjs +0 -205
- package/dist/terminal/src/enterprise-sample.mjs +0 -151
- package/docs/adapter-guide.md +0 -191
- package/docs/architecture.md +0 -61
- package/docs/automation.md +0 -76
- package/docs/budgets.md +0 -39
- package/docs/demo-backfill.md +0 -31
- package/docs/demo-fieldkit.md +0 -49
- package/docs/demo-placement.md +0 -32
- package/docs/demo-spam.md +0 -17
- package/docs/demo-support.md +0 -44
- package/docs/demo.md +0 -74
- package/docs/first-trial.md +0 -62
- package/docs/interactive-demo.md +0 -118
- package/docs/lifecycle.md +0 -32
- package/docs/metrics-and-evidence.md +0 -48
- package/docs/operations.md +0 -40
- package/docs/pareto-spec.md +0 -76
- package/docs/ux-reference.md +0 -32
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { Type } from "typebox";
|
|
2
|
-
import { Check, Errors } from "typebox/value";
|
|
3
|
-
export const OPENMERIT_SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
4
|
-
export const OPENMERIT_RESULT_SCHEMA_VERSION = "0.2";
|
|
5
|
-
const strictObject = (properties, options = {}) => Type.Object(properties, { additionalProperties: false, ...options });
|
|
6
|
-
const metricIds = [
|
|
7
|
-
"task_quality", "task_success", "consistency", "instruction_following",
|
|
8
|
-
"tool_use_performance", "structured_output_reliability", "hallucination_rate",
|
|
9
|
-
"reasoning_efficiency", "input_token_consumption", "output_token_consumption",
|
|
10
|
-
"total_task_cost", "cost_per_successful_task", "time_to_first_useful_output",
|
|
11
|
-
"end_to_end_task_latency", "throughput", "retry_rate", "agent_steps",
|
|
12
|
-
"recovery_ability", "context_handling", "retrieval_use_quality",
|
|
13
|
-
"long_horizon_performance", "human_intervention_rate", "preference_fit",
|
|
14
|
-
];
|
|
15
|
-
const evidenceSources = [
|
|
16
|
-
"harness_trace", "evaluation_artifact", "observability_record", "external_source", "user_feedback",
|
|
17
|
-
];
|
|
18
|
-
const stringEnum = (values) => Type.Union(values.map((value) => Type.Literal(value)));
|
|
19
|
-
const cadenceSchema = () => strictObject({
|
|
20
|
-
afterCompletedTasks: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
21
|
-
afterElapsedSeconds: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
22
|
-
});
|
|
23
|
-
export const EvidenceReferenceSchema = strictObject({
|
|
24
|
-
id: Type.String({ minLength: 1 }),
|
|
25
|
-
source: stringEnum(evidenceSources),
|
|
26
|
-
uri: Type.String({ minLength: 1 }),
|
|
27
|
-
mediaType: Type.Optional(Type.String({ minLength: 1 })),
|
|
28
|
-
digest: Type.Optional(Type.String({ minLength: 1 })),
|
|
29
|
-
});
|
|
30
|
-
export const MetricObjectiveSchema = strictObject({
|
|
31
|
-
metricId: stringEnum(metricIds),
|
|
32
|
-
required: Type.Boolean(),
|
|
33
|
-
minimumSamples: Type.Integer({ minimum: 1 }),
|
|
34
|
-
tolerance: Type.Number({ minimum: 0 }),
|
|
35
|
-
samplingPlan: strictObject({
|
|
36
|
-
strategy: stringEnum([
|
|
37
|
-
"single_run", "repeated_same_input", "representative_task_set",
|
|
38
|
-
"repeated_representative_task_set", "load_test",
|
|
39
|
-
]),
|
|
40
|
-
representativeCaseCount: Type.Integer({ minimum: 1 }),
|
|
41
|
-
repetitionsPerCase: Type.Integer({ minimum: 1 }),
|
|
42
|
-
aggregation: stringEnum(["single_value", "mean", "rate", "distribution", "percentile"]),
|
|
43
|
-
rationale: Type.String({ minLength: 1 }),
|
|
44
|
-
}),
|
|
45
|
-
constraint: Type.Optional(strictObject({
|
|
46
|
-
operator: stringEnum(["at_least", "at_most"]),
|
|
47
|
-
value: Type.Number(),
|
|
48
|
-
})),
|
|
49
|
-
});
|
|
50
|
-
export const ApplicationLlmTargetSchema = strictObject({
|
|
51
|
-
id: Type.String({ minLength: 1 }),
|
|
52
|
-
kind: Type.Literal("application_llm_call"),
|
|
53
|
-
name: Type.String({ minLength: 1 }),
|
|
54
|
-
applicationId: Type.String({ minLength: 1 }),
|
|
55
|
-
callSites: Type.Array(Type.String({ minLength: 1 }), { minItems: 1 }),
|
|
56
|
-
routeKey: Type.String({ minLength: 1 }),
|
|
57
|
-
confirmedAt: Type.String({ minLength: 1 }),
|
|
58
|
-
});
|
|
59
|
-
export const TaskProfileSchema = strictObject({
|
|
60
|
-
id: Type.String({ minLength: 1 }),
|
|
61
|
-
revision: Type.Integer({ minimum: 1 }),
|
|
62
|
-
name: Type.String({ minLength: 1 }),
|
|
63
|
-
goal: Type.String({ minLength: 1 }),
|
|
64
|
-
applicationTarget: ApplicationLlmTargetSchema,
|
|
65
|
-
objectives: Type.Array(MetricObjectiveSchema, { minItems: 1 }),
|
|
66
|
-
createdAt: Type.String({ minLength: 1 }),
|
|
67
|
-
confirmedAt: Type.Optional(Type.String({ minLength: 1 })),
|
|
68
|
-
});
|
|
69
|
-
export const ObservabilityCoverageSchema = strictObject({
|
|
70
|
-
targetId: Type.String({ minLength: 1 }),
|
|
71
|
-
status: stringEnum(["ready", "incomplete"]),
|
|
72
|
-
requiredMetricIds: Type.Array(stringEnum(metricIds)),
|
|
73
|
-
coveredMetricIds: Type.Array(stringEnum(metricIds)),
|
|
74
|
-
missingMetricIds: Type.Array(stringEnum(metricIds)),
|
|
75
|
-
checkedAt: Type.String({ minLength: 1 }),
|
|
76
|
-
});
|
|
77
|
-
const ConfirmedTaskProfileSchema = strictObject({
|
|
78
|
-
...TaskProfileSchema.properties,
|
|
79
|
-
confirmedAt: Type.String({ minLength: 1 }),
|
|
80
|
-
});
|
|
81
|
-
export const SupervisedGraduationPolicySchema = strictObject({
|
|
82
|
-
mode: Type.Literal("supervised_graduation"),
|
|
83
|
-
evaluationBudget: strictObject({
|
|
84
|
-
currency: Type.String({ minLength: 1 }),
|
|
85
|
-
maximumSpend: Type.Number({ minimum: 0 }),
|
|
86
|
-
maximumCandidateCount: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
87
|
-
maximumRunsPerCandidate: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
88
|
-
expiresAt: Type.Optional(Type.String({ minLength: 1 })),
|
|
89
|
-
}),
|
|
90
|
-
automaticSwapsEnabled: Type.Boolean(),
|
|
91
|
-
confirmationRequiredUntilVerifiedSwaps: Type.Integer({ minimum: 0 }),
|
|
92
|
-
requirePostSwapVerification: Type.Literal(true),
|
|
93
|
-
rollbackOnRegression: Type.Boolean(),
|
|
94
|
-
checkPolicy: strictObject({
|
|
95
|
-
baselineAssessment: cadenceSchema(),
|
|
96
|
-
frontierReassessment: strictObject({
|
|
97
|
-
afterCompletedTasks: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
98
|
-
afterElapsedSeconds: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
99
|
-
onModelCatalogChange: Type.Boolean(),
|
|
100
|
-
}),
|
|
101
|
-
regressionCheck: strictObject({
|
|
102
|
-
afterCompletedTasks: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
103
|
-
afterElapsedSeconds: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
104
|
-
thresholds: Type.Array(strictObject({
|
|
105
|
-
metricId: stringEnum(metricIds),
|
|
106
|
-
relativeChangeAtLeast: Type.Number({ exclusiveMinimum: 0 }),
|
|
107
|
-
})),
|
|
108
|
-
}),
|
|
109
|
-
postSwapVerification: cadenceSchema(),
|
|
110
|
-
cooldownSeconds: Type.Integer({ minimum: 0 }),
|
|
111
|
-
execution: strictObject({
|
|
112
|
-
mode: stringEnum(["active_session_only", "persistent"]),
|
|
113
|
-
infrastructureChangesAllowed: Type.Boolean(),
|
|
114
|
-
}),
|
|
115
|
-
}),
|
|
116
|
-
});
|
|
117
|
-
export const MetricRecordSchema = strictObject({
|
|
118
|
-
targetId: Type.String({ minLength: 1 }),
|
|
119
|
-
metricId: stringEnum(metricIds),
|
|
120
|
-
state: stringEnum(["measured", "not_applicable", "not_configured", "insufficient_evidence"]),
|
|
121
|
-
scope: stringEnum(["single_run", "sample_window"]),
|
|
122
|
-
direction: stringEnum(["maximize", "minimize"]),
|
|
123
|
-
method: stringEnum(["observed", "derived", "evaluator", "human", "external"]),
|
|
124
|
-
aggregation: stringEnum(["single_value", "sum", "mean", "rate", "distribution", "percentile"]),
|
|
125
|
-
value: Type.Optional(Type.Number()),
|
|
126
|
-
unit: Type.String({ minLength: 1 }),
|
|
127
|
-
sampleCount: Type.Integer({ minimum: 0 }),
|
|
128
|
-
interval: Type.Optional(strictObject({
|
|
129
|
-
lower: Type.Number(),
|
|
130
|
-
upper: Type.Number(),
|
|
131
|
-
confidenceLevel: Type.Optional(Type.Number({ minimum: 0, maximum: 1 })),
|
|
132
|
-
})),
|
|
133
|
-
window: Type.Optional(strictObject({
|
|
134
|
-
startedAt: Type.String({ minLength: 1 }),
|
|
135
|
-
endedAt: Type.String({ minLength: 1 }),
|
|
136
|
-
})),
|
|
137
|
-
evidence: Type.Array(EvidenceReferenceSchema),
|
|
138
|
-
note: Type.Optional(Type.String()),
|
|
139
|
-
});
|
|
140
|
-
export const CandidateDescriptorSchema = strictObject({
|
|
141
|
-
targetId: Type.String({ minLength: 1 }),
|
|
142
|
-
candidateId: Type.String({ minLength: 1 }),
|
|
143
|
-
modelId: Type.String({ minLength: 1 }),
|
|
144
|
-
modelVersion: Type.Optional(Type.String({ minLength: 1 })),
|
|
145
|
-
reasons: Type.Array(Type.String()),
|
|
146
|
-
});
|
|
147
|
-
export const PreliminaryModelLeadSchema = strictObject({
|
|
148
|
-
targetId: Type.String({ minLength: 1 }),
|
|
149
|
-
modelId: Type.String({ minLength: 1 }),
|
|
150
|
-
modelVersion: Type.Optional(Type.String({ minLength: 1 })),
|
|
151
|
-
estimatedPrice: strictObject({
|
|
152
|
-
currency: Type.String({ minLength: 1 }),
|
|
153
|
-
inputPerMillionTokens: Type.Number({ minimum: 0 }),
|
|
154
|
-
outputPerMillionTokens: Type.Number({ minimum: 0 }),
|
|
155
|
-
sourceUri: Type.String({ minLength: 1 }),
|
|
156
|
-
checkedAt: Type.String({ minLength: 1 }),
|
|
157
|
-
}),
|
|
158
|
-
reputation: strictObject({
|
|
159
|
-
summary: Type.String({ minLength: 1 }),
|
|
160
|
-
sourceUri: Type.String({ minLength: 1 }),
|
|
161
|
-
checkedAt: Type.String({ minLength: 1 }),
|
|
162
|
-
}),
|
|
163
|
-
});
|
|
164
|
-
export const CandidateAssessmentSchema = strictObject({
|
|
165
|
-
id: Type.String({ minLength: 1 }),
|
|
166
|
-
targetId: Type.String({ minLength: 1 }),
|
|
167
|
-
taskProfileId: Type.String({ minLength: 1 }),
|
|
168
|
-
taskProfileRevision: Type.Integer({ minimum: 1 }),
|
|
169
|
-
candidateId: Type.String({ minLength: 1 }),
|
|
170
|
-
modelId: Type.String({ minLength: 1 }),
|
|
171
|
-
modelVersion: Type.Optional(Type.String({ minLength: 1 })),
|
|
172
|
-
productRevision: Type.String({ minLength: 1 }),
|
|
173
|
-
harnessId: Type.String({ minLength: 1 }),
|
|
174
|
-
startedAt: Type.String({ minLength: 1 }),
|
|
175
|
-
completedAt: Type.String({ minLength: 1 }),
|
|
176
|
-
metrics: Type.Array(MetricRecordSchema),
|
|
177
|
-
});
|
|
178
|
-
export const FrontierSnapshotSchema = strictObject({
|
|
179
|
-
id: Type.String({ minLength: 1 }),
|
|
180
|
-
targetId: Type.String({ minLength: 1 }),
|
|
181
|
-
taskProfileId: Type.String({ minLength: 1 }),
|
|
182
|
-
taskProfileRevision: Type.Integer({ minimum: 1 }),
|
|
183
|
-
productRevision: Type.String({ minLength: 1 }),
|
|
184
|
-
createdAt: Type.String({ minLength: 1 }),
|
|
185
|
-
frontierCandidateIds: Type.Array(Type.String()),
|
|
186
|
-
dominatedCandidateIds: Type.Array(Type.String()),
|
|
187
|
-
ineligibleCandidateIds: Type.Array(Type.String()),
|
|
188
|
-
unresolvedCandidateIds: Type.Array(Type.String()),
|
|
189
|
-
comparisons: Type.Array(strictObject({
|
|
190
|
-
candidateId: Type.String({ minLength: 1 }),
|
|
191
|
-
otherCandidateId: Type.String({ minLength: 1 }),
|
|
192
|
-
state: stringEnum(["dominates", "does_not_dominate", "unresolved"]),
|
|
193
|
-
reasons: Type.Array(Type.String()),
|
|
194
|
-
})),
|
|
195
|
-
assessmentIds: Type.Array(Type.String()),
|
|
196
|
-
calculationEvidence: Type.Array(EvidenceReferenceSchema, { minItems: 1 }),
|
|
197
|
-
});
|
|
198
|
-
export const FrontierRecommendationSchema = strictObject({
|
|
199
|
-
targetId: Type.String({ minLength: 1 }),
|
|
200
|
-
frontierSnapshotId: Type.String({ minLength: 1 }),
|
|
201
|
-
selectedCandidateId: Type.String({ minLength: 1 }),
|
|
202
|
-
currentCandidateId: Type.String({ minLength: 1 }),
|
|
203
|
-
reasons: Type.Array(Type.String()),
|
|
204
|
-
preferenceEvidence: Type.Array(EvidenceReferenceSchema),
|
|
205
|
-
});
|
|
206
|
-
export const INTENT_OUTPUT_SCHEMAS = {
|
|
207
|
-
establish_evals: strictObject({
|
|
208
|
-
taskProfile: ConfirmedTaskProfileSchema,
|
|
209
|
-
incumbent: CandidateDescriptorSchema,
|
|
210
|
-
policy: SupervisedGraduationPolicySchema,
|
|
211
|
-
observability: ObservabilityCoverageSchema,
|
|
212
|
-
preliminaryModelLeads: Type.Optional(Type.Array(PreliminaryModelLeadSchema)),
|
|
213
|
-
}),
|
|
214
|
-
instrument_observability: strictObject({
|
|
215
|
-
targetId: Type.String({ minLength: 1 }),
|
|
216
|
-
coveredMetricIds: Type.Array(stringEnum(metricIds)),
|
|
217
|
-
missingMetricIds: Type.Array(stringEnum(metricIds)),
|
|
218
|
-
}),
|
|
219
|
-
run_assessment: strictObject({
|
|
220
|
-
targetId: Type.String({ minLength: 1 }),
|
|
221
|
-
baselineEvidenceSufficient: Type.Boolean(),
|
|
222
|
-
metrics: Type.Array(MetricRecordSchema),
|
|
223
|
-
}),
|
|
224
|
-
discover_candidates: strictObject({
|
|
225
|
-
targetId: Type.String({ minLength: 1 }),
|
|
226
|
-
candidates: Type.Array(CandidateDescriptorSchema),
|
|
227
|
-
}),
|
|
228
|
-
run_challenger_trials: strictObject({
|
|
229
|
-
targetId: Type.String({ minLength: 1 }),
|
|
230
|
-
assessments: Type.Array(CandidateAssessmentSchema),
|
|
231
|
-
experimentManifest: EvidenceReferenceSchema,
|
|
232
|
-
}),
|
|
233
|
-
calculate_frontier: strictObject({
|
|
234
|
-
targetId: Type.String({ minLength: 1 }),
|
|
235
|
-
assessments: Type.Array(CandidateAssessmentSchema),
|
|
236
|
-
frontierSnapshot: FrontierSnapshotSchema,
|
|
237
|
-
recommendation: Type.Optional(FrontierRecommendationSchema),
|
|
238
|
-
}),
|
|
239
|
-
investigate_regression: strictObject({
|
|
240
|
-
targetId: Type.String({ minLength: 1 }),
|
|
241
|
-
regressionDetected: Type.Boolean(),
|
|
242
|
-
affectedMetricIds: Type.Array(stringEnum(metricIds)),
|
|
243
|
-
likelyCause: Type.Optional(Type.String()),
|
|
244
|
-
}),
|
|
245
|
-
apply_model_swap: strictObject({
|
|
246
|
-
targetId: Type.String({ minLength: 1 }),
|
|
247
|
-
appliedCandidateId: Type.String({ minLength: 1 }),
|
|
248
|
-
previousCandidateId: Type.Optional(Type.String({ minLength: 1 })),
|
|
249
|
-
}),
|
|
250
|
-
verify_model_swap: strictObject({
|
|
251
|
-
targetId: Type.String({ minLength: 1 }),
|
|
252
|
-
verified: Type.Boolean(),
|
|
253
|
-
regressionDetected: Type.Boolean(),
|
|
254
|
-
}),
|
|
255
|
-
rollback_model_swap: strictObject({
|
|
256
|
-
targetId: Type.String({ minLength: 1 }),
|
|
257
|
-
restoredCandidateId: Type.String({ minLength: 1 }),
|
|
258
|
-
}),
|
|
259
|
-
};
|
|
260
|
-
export function intentOutputSchemaFor(kind) {
|
|
261
|
-
return INTENT_OUTPUT_SCHEMAS[kind];
|
|
262
|
-
}
|
|
263
|
-
export function validateIntentOutputSchema(kind, output) {
|
|
264
|
-
const schema = intentOutputSchemaFor(kind);
|
|
265
|
-
if (Check(schema, output))
|
|
266
|
-
return [];
|
|
267
|
-
return [...Errors(schema, output)].map((error) => `${error.instancePath || "/"} ${error.message}`);
|
|
268
|
-
}
|
|
269
|
-
export function completionToolSchemaFor(kind) {
|
|
270
|
-
return strictObject({
|
|
271
|
-
intentId: Type.String({ minLength: 1 }),
|
|
272
|
-
status: stringEnum(["succeeded", "failed", "cancelled"]),
|
|
273
|
-
summary: Type.String({ minLength: 1 }),
|
|
274
|
-
evidence: Type.Array(EvidenceReferenceSchema),
|
|
275
|
-
outputs: Type.Optional(intentOutputSchemaFor(kind)),
|
|
276
|
-
errorCode: Type.Optional(Type.String({ minLength: 1 })),
|
|
277
|
-
errorMessage: Type.Optional(Type.String({ minLength: 1 })),
|
|
278
|
-
retryable: Type.Optional(Type.Boolean()),
|
|
279
|
-
});
|
|
280
|
-
}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-border-default: 1px solid #bbb;--xy-node-border-selected-default: 1px solid #555;--xy-handle-background-color-default: #333;--xy-selection-background-color-default: rgba(150, 150, 180, .1);--xy-selection-border-default: 1px dotted rgba(155, 155, 155, .8);--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default))}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border:var(--xy-node-border, var(--xy-node-border-default));color:var(--xy-node-color, var(--xy-node-color-default))}.react-flow__node-input.selected,.react-flow__node-input:focus,.react-flow__node-input:focus-visible,.react-flow__node-default.selected,.react-flow__node-default:focus,.react-flow__node-default:focus-visible,.react-flow__node-output.selected,.react-flow__node-output:focus,.react-flow__node-output:focus-visible,.react-flow__node-group.selected,.react-flow__node-group:focus,.react-flow__node-group:focus-visible{outline:none;border:var(--xy-node-border-selected, var(--xy-node-border-selected-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.flow-preview{font-family:var(--sans);color:var(--text)}.flow-explore-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 21px 17px;min-height:26px}.flow-spotlight{display:flex;align-items:center;gap:9px;min-width:0;color:var(--quiet);font-size:11px}.flow-spotlight strong{font-size:11px;font-weight:450;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.flow-spotlight button{border:0;background:none;color:var(--muted);font-size:17px;line-height:1;padding:4px 7px}.flow-canvas-scroll{max-height:340px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;margin:0 16px}.flow-stage{width:100%;max-width:900px;min-width:800px;margin-inline:auto}.flow-stage .react-flow{background:transparent;--xy-edge-stroke-default:var(--line-active)}.flow-stage .react-flow__pane{cursor:default}.flow-stage .react-flow__handle{visibility:hidden;width:1px;height:1px;min-width:0;min-height:0;border:0}.flow-stage .react-flow__node{font-family:var(--sans)}.flow-stage .react-flow__edge-path{transition:opacity .13s ease,stroke-width .13s ease}.flow-column-label{font:9px var(--mono);letter-spacing:1.1px;color:var(--quiet);white-space:nowrap}.flow-card-wrap{position:relative;width:100%;height:46px;transition:opacity .13s ease}.flow-card-wrap.is-dimmed{opacity:.28}.flow-stack-back{position:absolute;inset:4px 4px -4px;border:1px solid var(--track);border-radius:7px;background:var(--stack);pointer-events:none}.flow-stack-back.rear{inset:8px 8px -8px}.flow-card{pointer-events:auto;position:relative;display:flex;align-items:center;gap:8px;width:100%;height:46px;padding:0 12px;background:var(--node);border:1px solid var(--line-strong);border-radius:7px;color:var(--text);text-align:left;transition:background .13s ease,border-color .13s ease;cursor:pointer}.flow-card:active{transform:none}.flow-card:focus-visible{outline:1px solid var(--text);outline-offset:2px}.flow-card-wrap.is-active .flow-card{border-color:var(--line-active)}.flow-card img{object-fit:contain;flex:none;width:18px;height:18px}.flow-card-copy{display:grid;gap:5px;flex:1;min-width:0}.flow-card-copy strong{font-size:11px;font-weight:400;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flow-card-copy small{font-size:9px;line-height:1;color:var(--quiet);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flow-stack-count{font:10px var(--mono);align-self:flex-start;margin-top:10px;color:var(--muted);flex:none}.flow-route-mark{display:inline-flex;align-items:center;flex:none}.flow-route-mark svg{width:18px;height:18px}.flow-browser{margin:17px 21px 0;border-top:1px solid var(--line);padding-top:16px}.flow-browser-tools{display:flex;align-items:center;justify-content:space-between;gap:16px}.flow-browser-tabs{display:flex;gap:18px}.flow-browser-tabs button{display:flex;align-items:center;gap:7px;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;padding:8px 0;color:var(--muted);font-size:12px}.flow-browser-tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--secondary)}.flow-browser-tabs button span{font:10px var(--mono);color:var(--quiet)}.flow-browser-tools input{font:12px var(--sans);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:8px 10px;width:210px;min-width:100px;color:var(--text)}.flow-browser-scope{display:flex;justify-content:space-between;gap:14px;padding:13px 0;color:var(--quiet);font-size:11px;line-height:1.6}.flow-browser-scope>span:first-child{display:flex;gap:12px;min-width:0}.flow-browser-scope>span:last-child{white-space:nowrap}.flow-browser-scope .text-button{font-size:11px}.flow-member-list{max-height:270px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;overscroll-behavior:contain}.flow-member-list table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.flow-member-list th{position:sticky;top:0;background:var(--surface);color:var(--muted);font-size:11px;font-weight:400;padding:8px 10px;border-bottom:1px solid var(--line);z-index:1}.flow-member-list td{padding:11px 10px;border-bottom:1px solid var(--line-soft);color:var(--muted)}.flow-member-list th:first-child,.flow-member-list td:first-child{padding-left:0;width:42%}.flow-member-list th:nth-child(3),.flow-member-list td:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}.flow-member-list td:last-child{width:70px;padding-right:0;text-align:right;white-space:nowrap}.flow-member-list tr.selected{background:var(--raised)}.flow-member-list .text-button{font-size:11px}.flow-member-name{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;color:var(--text);text-align:left;padding:0;font:12px var(--sans);overflow-wrap:anywhere;cursor:pointer}.flow-member-name img{width:16px;height:16px;object-fit:contain;flex:none}.flow-member-name small{display:block;margin-top:5px;font-size:10px;color:var(--quiet)}.flow-map-footer{padding:17px 21px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--quiet)}.flow-map-footer .route-legend{display:flex;flex-wrap:wrap;gap:15px}.flow-map-footer .route-legend>span{display:flex;gap:6px;align-items:center;font-size:10px}.flow-map-footer .flow-route-mark svg{width:15px;height:15px}.flow-map-note{margin:10px 21px 13px;color:var(--quiet);font-size:10px;line-height:1.7}.flow-empty{padding:24px 21px;font-size:12px;color:var(--muted);line-height:1.7}@media(hover:hover)and (pointer:fine){.flow-card:hover{background:var(--node-hover);border-color:var(--quiet)}.flow-member-list tbody tr:hover{background:var(--raised)}.flow-member-name:hover{color:var(--strong)}}@media(max-width:700px){.flow-browser-tools{flex-wrap:wrap}.flow-browser-tools input{width:100%}.flow-browser-tabs{gap:16px}.flow-browser-scope{flex-wrap:wrap}.flow-browser-scope>span:first-child{flex-wrap:wrap}.flow-map-footer{flex-wrap:wrap}.flow-spotlight strong{max-width:150px}.flow-member-list table{min-width:540px}.flow-stage{margin:0}.flow-canvas-scroll{margin:0 12px}}@media(prefers-reduced-motion:reduce){.flow-stage .react-flow__edge-path,.flow-card-wrap,.flow-card{transition:none}}body.keyboard .flow-stage .react-flow__edge-path,body.keyboard .flow-card-wrap,body.keyboard .flow-card{transition:none}.flow-browser-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.flow-browser-heading h3{margin:0;font-size:13px;font-weight:450}.flow-browser-heading>button{font-size:19px;padding:0 3px}.flow-row-connection{display:none!important}@media(min-width:1400px){.flow-browser{position:fixed;right:max(var(--page-gutter),calc((100vw - var(--page-width))/2 + var(--page-gutter)));top:calc(var(--header-height) + 24px);bottom:24px;width:276px;z-index:9;display:flex;flex-direction:column;margin:0;padding:18px 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 12px 32px #0003}.flow-browser-tools{flex-wrap:wrap;gap:13px}.flow-browser-tools input{width:100%;font-size:12px}.flow-browser-tabs{width:100%;justify-content:space-between;gap:7px}.flow-browser-tabs button{font-size:11px;gap:4px}.flow-browser-tabs button span{font-size:9px}.flow-browser-scope{flex-wrap:wrap;gap:6px}.flow-browser-scope>span:first-child{flex-wrap:wrap;gap:4px}.flow-member-list{max-height:none;flex:1;min-height:0}.flow-member-list th:nth-child(2),.flow-member-list td:nth-child(2){display:none}.flow-member-list th:first-child,.flow-member-list td:first-child{width:auto}.flow-member-list td{padding:12px 4px}.flow-member-list th{padding:8px 4px}.flow-member-list td:last-child{width:18px}.flow-member-list td:last-child button{padding:4px}.flow-member-name{font-size:11px}.flow-member-name img{width:14px;height:14px}.flow-member-name small{font-size:10px}.flow-row-connection{display:block!important}.flow-details-word{display:none}}.flow-browser-tools input:focus{outline:1px solid var(--line-active);outline-offset:2px;box-shadow:none}@media(min-width:1400px){.flow-browser-scope>span:first-child{flex-direction:column;align-items:flex-start;gap:5px}}
|