@velum-labs/routekit-eval-setup 1.0.26 → 1.1.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/adapters/git-basis-snapshot.d.ts +27 -0
- package/dist/adapters/git-basis-snapshot.js +178 -0
- package/dist/basis-candidates.d.ts +72 -0
- package/dist/basis-candidates.js +157 -0
- package/dist/basis-projection.d.ts +9 -0
- package/dist/basis-projection.js +30 -0
- package/dist/basis-validation.d.ts +38 -0
- package/dist/basis-validation.js +187 -0
- package/dist/effect-api.d.ts +8 -0
- package/dist/effect-api.js +5 -0
- package/dist/errors.d.ts +11 -1
- package/dist/errors.js +5 -0
- package/dist/index.d.ts +15 -3
- package/dist/index.js +10 -2
- package/dist/project-artifacts.d.ts +26 -1
- package/dist/project-artifacts.js +52 -1
- package/dist/project-contracts.d.ts +3594 -0
- package/dist/project-contracts.js +344 -1
- package/dist/project-store.d.ts +3 -1
- package/dist/project-store.js +39 -33
- package/dist/project-workflow.d.ts +2 -2
- package/dist/services/basis-authoring/service.d.ts +253 -0
- package/dist/services/basis-authoring/service.js +547 -0
- package/dist/services/basis-onboarding/service.d.ts +48 -0
- package/dist/services/basis-onboarding/service.js +491 -0
- package/dist/services/basis-repair/service.d.ts +25 -0
- package/dist/services/basis-repair/service.js +249 -0
- package/dist/test/basis-authoring.test.d.ts +1 -0
- package/dist/test/basis-authoring.test.js +194 -0
- package/dist/test/basis-onboarding.test.d.ts +1 -0
- package/dist/test/basis-onboarding.test.js +385 -0
- package/dist/test/basis-repair.test.d.ts +1 -0
- package/dist/test/basis-repair.test.js +338 -0
- package/dist/test/basis-v3.test.d.ts +1 -0
- package/dist/test/basis-v3.test.js +262 -0
- package/dist/test/project-v2.test.d.ts +1 -0
- package/dist/test/project-v2.test.js +99 -0
- package/package.json +4 -3
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { type RoutingBasisV3 } from "@velum-labs/routekit-eval-contracts";
|
|
2
|
+
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
+
import { EvalProjectAuthoringError, EvalProjectTransitionError } from "../../errors.js";
|
|
4
|
+
import { EvalProjectArtifacts } from "../../project-artifacts.js";
|
|
5
|
+
import { EvalAuthoringTransport } from "../../project-authoring.js";
|
|
6
|
+
import type { EvalProjectStateV2 } from "../../project-contracts.js";
|
|
7
|
+
import { EvalProjectStore } from "../../project-store.js";
|
|
8
|
+
import { BasisOnboarding } from "../basis-onboarding/service.js";
|
|
9
|
+
export declare const AuthoredBasis: Schema.Struct<{
|
|
10
|
+
readonly facetSnapshot: Schema.Struct<{
|
|
11
|
+
readonly repositoryId: Schema.String;
|
|
12
|
+
readonly name: Schema.String;
|
|
13
|
+
readonly purpose: Schema.String;
|
|
14
|
+
readonly languages: Schema.$Array<Schema.String>;
|
|
15
|
+
readonly frameworks: Schema.$Array<Schema.String>;
|
|
16
|
+
readonly components: Schema.$Array<Schema.Struct<{
|
|
17
|
+
readonly id: Schema.String;
|
|
18
|
+
readonly name: Schema.String;
|
|
19
|
+
readonly purpose: Schema.String;
|
|
20
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
21
|
+
}>>;
|
|
22
|
+
}>;
|
|
23
|
+
readonly dimensions: Schema.$Array<Schema.Struct<{
|
|
24
|
+
readonly id: Schema.String;
|
|
25
|
+
readonly name: Schema.String;
|
|
26
|
+
readonly description: Schema.String;
|
|
27
|
+
readonly inclusions: Schema.$Array<Schema.String>;
|
|
28
|
+
readonly exclusions: Schema.$Array<Schema.String>;
|
|
29
|
+
readonly confusableDimensionIds: Schema.$Array<Schema.String>;
|
|
30
|
+
readonly boundaryRules: Schema.$Array<Schema.String>;
|
|
31
|
+
readonly repositoryFacets: Schema.Struct<{
|
|
32
|
+
readonly componentIds: Schema.$Array<Schema.String>;
|
|
33
|
+
readonly pathAnchors: Schema.$Array<Schema.String>;
|
|
34
|
+
readonly symbolAnchors: Schema.$Array<Schema.String>;
|
|
35
|
+
}>;
|
|
36
|
+
readonly positiveExamples: Schema.$Array<Schema.String>;
|
|
37
|
+
readonly negativeExamples: Schema.$Array<Schema.String>;
|
|
38
|
+
readonly codeSummaries: Schema.$Array<Schema.String>;
|
|
39
|
+
readonly representativeSnippets: Schema.$Array<Schema.String>;
|
|
40
|
+
}>>;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const AUTHORED_BASIS_JSON_SCHEMA: {
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly additionalProperties: false;
|
|
45
|
+
readonly required: readonly ["facetSnapshot", "dimensions"];
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly facetSnapshot: {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
readonly required: readonly ["repositoryId", "name", "purpose", "languages", "frameworks", "components"];
|
|
51
|
+
readonly properties: {
|
|
52
|
+
readonly repositoryId: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
readonly pattern: "^[a-z0-9](?:[a-z0-9-]{0,62})$";
|
|
55
|
+
};
|
|
56
|
+
readonly name: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
readonly minLength: 1;
|
|
59
|
+
readonly maxLength: 2048;
|
|
60
|
+
};
|
|
61
|
+
readonly purpose: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly minLength: 1;
|
|
64
|
+
readonly maxLength: 2048;
|
|
65
|
+
};
|
|
66
|
+
readonly languages: {
|
|
67
|
+
readonly type: "array";
|
|
68
|
+
readonly items: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly minLength: 1;
|
|
71
|
+
readonly maxLength: 2048;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly frameworks: {
|
|
75
|
+
readonly type: "array";
|
|
76
|
+
readonly items: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly minLength: 1;
|
|
79
|
+
readonly maxLength: 2048;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly components: {
|
|
83
|
+
readonly type: "array";
|
|
84
|
+
readonly minItems: 1;
|
|
85
|
+
readonly items: {
|
|
86
|
+
readonly type: "object";
|
|
87
|
+
readonly additionalProperties: false;
|
|
88
|
+
readonly required: readonly ["id", "name", "purpose", "paths"];
|
|
89
|
+
readonly properties: {
|
|
90
|
+
readonly id: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly pattern: "^[a-z0-9](?:[a-z0-9-]{0,62})$";
|
|
93
|
+
};
|
|
94
|
+
readonly name: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly minLength: 1;
|
|
97
|
+
readonly maxLength: 2048;
|
|
98
|
+
};
|
|
99
|
+
readonly purpose: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
readonly minLength: 1;
|
|
102
|
+
readonly maxLength: 2048;
|
|
103
|
+
};
|
|
104
|
+
readonly paths: {
|
|
105
|
+
readonly type: "array";
|
|
106
|
+
readonly minItems: 1;
|
|
107
|
+
readonly items: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly minLength: 1;
|
|
110
|
+
readonly maxLength: 512;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly dimensions: {
|
|
119
|
+
readonly type: "array";
|
|
120
|
+
readonly minItems: 1;
|
|
121
|
+
readonly items: {
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly additionalProperties: false;
|
|
124
|
+
readonly required: readonly ["id", "name", "description", "inclusions", "exclusions", "confusableDimensionIds", "boundaryRules", "repositoryFacets", "positiveExamples", "negativeExamples", "codeSummaries", "representativeSnippets"];
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly id: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
readonly pattern: "^[a-z0-9](?:[a-z0-9-]{0,62})$";
|
|
129
|
+
};
|
|
130
|
+
readonly name: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly minLength: 1;
|
|
133
|
+
readonly maxLength: 256;
|
|
134
|
+
};
|
|
135
|
+
readonly description: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
readonly minLength: 1;
|
|
138
|
+
readonly maxLength: 2048;
|
|
139
|
+
};
|
|
140
|
+
readonly inclusions: {
|
|
141
|
+
readonly type: "array";
|
|
142
|
+
readonly minItems: 1;
|
|
143
|
+
readonly items: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly minLength: 1;
|
|
146
|
+
readonly maxLength: 1024;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly exclusions: {
|
|
150
|
+
readonly type: "array";
|
|
151
|
+
readonly minItems: 1;
|
|
152
|
+
readonly items: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly minLength: 1;
|
|
155
|
+
readonly maxLength: 1024;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly confusableDimensionIds: {
|
|
159
|
+
readonly type: "array";
|
|
160
|
+
readonly items: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly pattern: "^[a-z0-9](?:[a-z0-9-]{0,62})$";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
readonly boundaryRules: {
|
|
166
|
+
readonly type: "array";
|
|
167
|
+
readonly minItems: 1;
|
|
168
|
+
readonly items: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly minLength: 1;
|
|
171
|
+
readonly maxLength: 1024;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly repositoryFacets: {
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly additionalProperties: false;
|
|
177
|
+
readonly required: readonly ["componentIds", "pathAnchors", "symbolAnchors"];
|
|
178
|
+
readonly properties: {
|
|
179
|
+
readonly componentIds: {
|
|
180
|
+
readonly type: "array";
|
|
181
|
+
readonly items: {
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
readonly pattern: "^[a-z0-9](?:[a-z0-9-]{0,62})$";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly pathAnchors: {
|
|
187
|
+
readonly type: "array";
|
|
188
|
+
readonly items: {
|
|
189
|
+
readonly type: "string";
|
|
190
|
+
readonly minLength: 1;
|
|
191
|
+
readonly maxLength: 512;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
readonly symbolAnchors: {
|
|
195
|
+
readonly type: "array";
|
|
196
|
+
readonly items: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly minLength: 1;
|
|
199
|
+
readonly maxLength: 512;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly positiveExamples: {
|
|
205
|
+
readonly type: "array";
|
|
206
|
+
readonly items: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly minLength: 1;
|
|
209
|
+
readonly maxLength: 2048;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
readonly negativeExamples: {
|
|
213
|
+
readonly type: "array";
|
|
214
|
+
readonly items: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly minLength: 1;
|
|
217
|
+
readonly maxLength: 2048;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly codeSummaries: {
|
|
221
|
+
readonly type: "array";
|
|
222
|
+
readonly items: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly minLength: 1;
|
|
225
|
+
readonly maxLength: 2048;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly representativeSnippets: {
|
|
229
|
+
readonly type: "array";
|
|
230
|
+
readonly items: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly minLength: 1;
|
|
233
|
+
readonly maxLength: 8192;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
export declare function withBasisDigest(basis: Omit<RoutingBasisV3, "basisDigest">): RoutingBasisV3;
|
|
242
|
+
export type BasisAuthoringShape = {
|
|
243
|
+
readonly generate: (input: {
|
|
244
|
+
readonly repositoryRoot: string;
|
|
245
|
+
readonly incumbent: RoutingBasisV3;
|
|
246
|
+
}) => Effect.Effect<EvalProjectStateV2, EvalProjectAuthoringError | EvalProjectTransitionError | import("../../errors.js").EvalBasisSnapshotError | import("../../errors.js").EvalProjectArtifactError | import("../../errors.js").EvalProjectStoreError>;
|
|
247
|
+
};
|
|
248
|
+
declare const BasisAuthoring_base: Context.ServiceClass<BasisAuthoring, "@velum-labs/routekit-eval-setup/BasisAuthoring", BasisAuthoringShape>;
|
|
249
|
+
export declare class BasisAuthoring extends BasisAuthoring_base {
|
|
250
|
+
}
|
|
251
|
+
export declare const makeBasisAuthoring: Effect.Effect<BasisAuthoringShape, never, EvalProjectArtifacts | EvalAuthoringTransport | EvalProjectStore | BasisOnboarding>;
|
|
252
|
+
export declare const BasisAuthoringLive: Layer.Layer<BasisAuthoring, never, EvalProjectArtifacts | EvalAuthoringTransport | EvalProjectStore | BasisOnboarding>;
|
|
253
|
+
export {};
|