@vitest-agent/sdk 1.3.4 → 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/errors/DataStoreError.js +22 -13
- package/index.d.ts +1032 -1101
- package/index.js +3 -3
- package/layers/ConfigLive.js +8 -9
- package/layers/DataReaderLive.js +2 -2
- package/layers/DataStoreLive.js +2 -2
- package/layers/DiscoveryRegistryLive.js +1 -1
- package/layers/LoggerLive.js +24 -24
- package/layers/PathResolutionLive.js +18 -17
- package/layers/PerClientSessionMapLive.js +1 -1
- package/layers/ProjectDiscoveryLive.js +1 -2
- package/layers/ProjectIdentityLive.js +16 -12
- package/layers/RunContextLive.js +20 -20
- package/migrations/0001_initial.js +1 -1
- package/migrations/registry_0001_initial.js +1 -1
- package/migrations/session_map_0001_initial.js +1 -1
- package/package.json +18 -18
- package/schemas/AgentReport.js +6 -9
- package/schemas/Baselines.js +3 -3
- package/schemas/CacheManifest.js +2 -2
- package/schemas/ChannelEvent.js +30 -3
- package/schemas/Common.js +76 -14
- package/schemas/ConsoleLeaks.js +2 -2
- package/schemas/Coverage.js +8 -8
- package/schemas/CoverageTargets.js +16 -10
- package/schemas/History.js +4 -4
- package/schemas/Identity.js +19 -7
- package/schemas/Options.js +3 -3
- package/schemas/RenderState.js +26 -19
- package/schemas/RunEvent.js +154 -115
- package/schemas/Tdd.js +16 -6
- package/schemas/Thresholds.js +6 -6
- package/schemas/Transport.js +1 -1
- package/schemas/Trends.js +7 -3
- package/schemas/turns/FileEditPayload.js +5 -1
- package/schemas/turns/HookFirePayload.js +15 -1
- package/schemas/turns/index.js +9 -1
- package/services/Config.js +3 -3
- package/services/DataReader.js +1 -1
- package/services/DataStore.js +1 -1
- package/services/DetailResolver.js +1 -1
- package/services/DiscoveryRegistry.js +1 -1
- package/services/EnvironmentDetector.js +1 -1
- package/services/ExecutorResolver.js +1 -1
- package/services/FormatSelector.js +1 -1
- package/services/HistoryTracker.js +1 -1
- package/services/OutputRenderer.js +1 -1
- package/services/PerClientSessionMap.js +2 -2
- package/services/ProjectDiscovery.js +1 -1
- package/services/ProjectIdentity.js +1 -1
- package/services/RunContext.js +1 -1
- package/testing/layers.js +2 -2
- package/testing.d.ts +312 -332
- package/tsdoc-metadata.json +1 -1
- package/utils/build-report.js +16 -1
- package/utils/ensure-migrated.js +3 -3
- package/utils/resolve-data-path.js +3 -3
- package/utils/resolve-workspace-key.js +11 -6
package/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Option, Schema } from "effect";
|
|
2
|
-
import * as
|
|
2
|
+
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
3
3
|
import * as SqliteMigrator from "@effect/sql-sqlite-node/SqliteMigrator";
|
|
4
4
|
//#region src/schemas/Identity.d.ts
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ import * as SqliteMigrator from "@effect/sql-sqlite-node/SqliteMigrator";
|
|
|
8
8
|
* agent's lifetime.
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
declare const AgentId: Schema.brand<
|
|
11
|
+
declare const AgentId: Schema.brand<Schema.String, "AgentId">;
|
|
12
12
|
/** @public */
|
|
13
13
|
type AgentId = Schema.Schema.Type<typeof AgentId>;
|
|
14
14
|
/**
|
|
@@ -18,7 +18,7 @@ type AgentId = Schema.Schema.Type<typeof AgentId>;
|
|
|
18
18
|
* `sessions.id` (the SQLite agent-run PK).
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
declare const ChatId: Schema.brand<
|
|
21
|
+
declare const ChatId: Schema.brand<Schema.String, "ChatId">;
|
|
22
22
|
/** @public */
|
|
23
23
|
type ChatId = Schema.Schema.Type<typeof ChatId>;
|
|
24
24
|
//#endregion
|
|
@@ -153,21 +153,19 @@ declare class IllegalStatusTransitionError extends IllegalStatusTransitionError_
|
|
|
153
153
|
}
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/schemas/Agent.d.ts
|
|
156
|
-
declare const Agent_base: Schema.
|
|
157
|
-
readonly
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
idempotencyKey: typeof Schema.String;
|
|
170
|
-
}>;
|
|
156
|
+
declare const Agent_base: Schema.Class<Agent, Schema.TaggedStruct<"Agent", {
|
|
157
|
+
readonly agentId: Schema.brand<Schema.String, "AgentId">;
|
|
158
|
+
readonly sessionId: Schema.Number;
|
|
159
|
+
readonly parentAgentId: Schema.NullOr<Schema.brand<Schema.String, "AgentId">>;
|
|
160
|
+
readonly conversationId: Schema.NullOr<Schema.brand<Schema.String, "ConversationId">>;
|
|
161
|
+
readonly agentType: Schema.String;
|
|
162
|
+
readonly startedAt: Schema.Number;
|
|
163
|
+
readonly endedAt: Schema.NullOr<Schema.Number>;
|
|
164
|
+
readonly startGitBranch: Schema.NullOr<Schema.String>;
|
|
165
|
+
readonly startGitCommitSha: Schema.NullOr<Schema.String>;
|
|
166
|
+
readonly startWorktreeDir: Schema.NullOr<Schema.String>;
|
|
167
|
+
readonly idempotencyKey: Schema.String;
|
|
168
|
+
}>, {}>;
|
|
171
169
|
/**
|
|
172
170
|
* Successful registration row. The fields mirror the `agents` SQLite
|
|
173
171
|
* table 1:1 in camelCase.
|
|
@@ -181,7 +179,7 @@ declare const Agent_base: Schema.TaggedClass<Agent, "Agent", {
|
|
|
181
179
|
declare class Agent extends Agent_base {}
|
|
182
180
|
declare const IdempotencyHit_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Readonly<A> & {
|
|
183
181
|
readonly _tag: "IdempotencyHit";
|
|
184
|
-
};
|
|
182
|
+
} & import("effect/Pipeable").Pipeable;
|
|
185
183
|
/**
|
|
186
184
|
* Returned by `DataStore.registerAgent` when the
|
|
187
185
|
* `(session_id, idempotency_key)` UNIQUE constraint already has a
|
|
@@ -203,99 +201,97 @@ declare class IdempotencyHit extends IdempotencyHit_base<{
|
|
|
203
201
|
* @public
|
|
204
202
|
*/
|
|
205
203
|
declare const CoverageBaselines: Schema.Struct<{
|
|
206
|
-
updatedAt:
|
|
207
|
-
global: Schema.Struct<{
|
|
208
|
-
lines: Schema.optional<
|
|
209
|
-
functions: Schema.optional<
|
|
210
|
-
branches: Schema.optional<
|
|
211
|
-
statements: Schema.optional<
|
|
212
|
-
}>;
|
|
213
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
214
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
215
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
216
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
217
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
218
|
-
}>>>, {
|
|
219
|
-
default: () => never[];
|
|
204
|
+
readonly updatedAt: Schema.String;
|
|
205
|
+
readonly global: Schema.Struct<{
|
|
206
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
207
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
208
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
209
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
220
210
|
}>;
|
|
211
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
212
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
213
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
214
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
215
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
216
|
+
}>]>>, never>;
|
|
221
217
|
}>;
|
|
222
218
|
/** @public */
|
|
223
219
|
type CoverageBaselines = typeof CoverageBaselines.Type;
|
|
224
220
|
//#endregion
|
|
225
221
|
//#region src/schemas/Tdd.d.ts
|
|
226
222
|
/** @public */
|
|
227
|
-
declare const GoalStatus: Schema.
|
|
223
|
+
declare const GoalStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
228
224
|
/** @public */
|
|
229
225
|
type GoalStatus = typeof GoalStatus.Type;
|
|
230
226
|
/** @public */
|
|
231
|
-
declare const BehaviorStatus: Schema.
|
|
227
|
+
declare const BehaviorStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
232
228
|
/** @public */
|
|
233
229
|
type BehaviorStatus = typeof BehaviorStatus.Type;
|
|
234
230
|
/** @public */
|
|
235
231
|
declare const GoalRow: Schema.Struct<{
|
|
236
|
-
id:
|
|
237
|
-
sessionId:
|
|
238
|
-
ordinal:
|
|
239
|
-
goal:
|
|
240
|
-
status: Schema.
|
|
241
|
-
createdAt:
|
|
232
|
+
readonly id: Schema.Number;
|
|
233
|
+
readonly sessionId: Schema.Number;
|
|
234
|
+
readonly ordinal: Schema.Number;
|
|
235
|
+
readonly goal: Schema.String;
|
|
236
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
237
|
+
readonly createdAt: Schema.String;
|
|
242
238
|
}>;
|
|
243
239
|
/** @public */
|
|
244
240
|
type GoalRow = typeof GoalRow.Type;
|
|
245
241
|
/** @public */
|
|
246
242
|
declare const BehaviorRow: Schema.Struct<{
|
|
247
|
-
id:
|
|
248
|
-
goalId:
|
|
249
|
-
ordinal:
|
|
250
|
-
behavior:
|
|
251
|
-
suggestedTestName: Schema.NullOr<
|
|
252
|
-
status: Schema.
|
|
253
|
-
createdAt:
|
|
243
|
+
readonly id: Schema.Number;
|
|
244
|
+
readonly goalId: Schema.Number;
|
|
245
|
+
readonly ordinal: Schema.Number;
|
|
246
|
+
readonly behavior: Schema.String;
|
|
247
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
248
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
249
|
+
readonly createdAt: Schema.String;
|
|
254
250
|
}>;
|
|
255
251
|
/** @public */
|
|
256
252
|
type BehaviorRow = typeof BehaviorRow.Type;
|
|
257
253
|
/** @public */
|
|
258
254
|
declare const GoalDetail: Schema.Struct<{
|
|
259
|
-
id:
|
|
260
|
-
sessionId:
|
|
261
|
-
ordinal:
|
|
262
|
-
goal:
|
|
263
|
-
status: Schema.
|
|
264
|
-
createdAt:
|
|
265
|
-
behaviors: Schema
|
|
266
|
-
id:
|
|
267
|
-
goalId:
|
|
268
|
-
ordinal:
|
|
269
|
-
behavior:
|
|
270
|
-
suggestedTestName: Schema.NullOr<
|
|
271
|
-
status: Schema.
|
|
272
|
-
createdAt:
|
|
255
|
+
readonly id: Schema.Number;
|
|
256
|
+
readonly sessionId: Schema.Number;
|
|
257
|
+
readonly ordinal: Schema.Number;
|
|
258
|
+
readonly goal: Schema.String;
|
|
259
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
260
|
+
readonly createdAt: Schema.String;
|
|
261
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
262
|
+
readonly id: Schema.Number;
|
|
263
|
+
readonly goalId: Schema.Number;
|
|
264
|
+
readonly ordinal: Schema.Number;
|
|
265
|
+
readonly behavior: Schema.String;
|
|
266
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
267
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
268
|
+
readonly createdAt: Schema.String;
|
|
273
269
|
}>>;
|
|
274
270
|
}>;
|
|
275
271
|
/** @public */
|
|
276
272
|
type GoalDetail = typeof GoalDetail.Type;
|
|
277
273
|
/** @public */
|
|
278
274
|
declare const BehaviorDetail: Schema.Struct<{
|
|
279
|
-
id:
|
|
280
|
-
goalId:
|
|
281
|
-
ordinal:
|
|
282
|
-
behavior:
|
|
283
|
-
suggestedTestName: Schema.NullOr<
|
|
284
|
-
status: Schema.
|
|
285
|
-
createdAt:
|
|
286
|
-
parentGoal: Schema.Struct<{
|
|
287
|
-
id:
|
|
288
|
-
goal:
|
|
289
|
-
status: Schema.
|
|
275
|
+
readonly id: Schema.Number;
|
|
276
|
+
readonly goalId: Schema.Number;
|
|
277
|
+
readonly ordinal: Schema.Number;
|
|
278
|
+
readonly behavior: Schema.String;
|
|
279
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
280
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
281
|
+
readonly createdAt: Schema.String;
|
|
282
|
+
readonly parentGoal: Schema.Struct<{
|
|
283
|
+
readonly id: Schema.Number;
|
|
284
|
+
readonly goal: Schema.String;
|
|
285
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
290
286
|
}>;
|
|
291
|
-
dependencies: Schema
|
|
292
|
-
id:
|
|
293
|
-
goalId:
|
|
294
|
-
ordinal:
|
|
295
|
-
behavior:
|
|
296
|
-
suggestedTestName: Schema.NullOr<
|
|
297
|
-
status: Schema.
|
|
298
|
-
createdAt:
|
|
287
|
+
readonly dependencies: Schema.$Array<Schema.Struct<{
|
|
288
|
+
readonly id: Schema.Number;
|
|
289
|
+
readonly goalId: Schema.Number;
|
|
290
|
+
readonly ordinal: Schema.Number;
|
|
291
|
+
readonly behavior: Schema.String;
|
|
292
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
293
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
294
|
+
readonly createdAt: Schema.String;
|
|
299
295
|
}>>;
|
|
300
296
|
}>;
|
|
301
297
|
/** @public */
|
|
@@ -307,21 +303,21 @@ type BehaviorDetail = typeof BehaviorDetail.Type;
|
|
|
307
303
|
* @public
|
|
308
304
|
*/
|
|
309
305
|
declare const TrendEntry: Schema.Struct<{
|
|
310
|
-
timestamp:
|
|
311
|
-
coverage: Schema.Struct<{
|
|
312
|
-
statements:
|
|
313
|
-
branches:
|
|
314
|
-
functions:
|
|
315
|
-
lines:
|
|
306
|
+
readonly timestamp: Schema.String;
|
|
307
|
+
readonly coverage: Schema.Struct<{
|
|
308
|
+
readonly statements: Schema.Number;
|
|
309
|
+
readonly branches: Schema.Number;
|
|
310
|
+
readonly functions: Schema.Number;
|
|
311
|
+
readonly lines: Schema.Number;
|
|
316
312
|
}>;
|
|
317
|
-
delta: Schema.Struct<{
|
|
318
|
-
statements:
|
|
319
|
-
branches:
|
|
320
|
-
functions:
|
|
321
|
-
lines:
|
|
313
|
+
readonly delta: Schema.Struct<{
|
|
314
|
+
readonly statements: Schema.Number;
|
|
315
|
+
readonly branches: Schema.Number;
|
|
316
|
+
readonly functions: Schema.Number;
|
|
317
|
+
readonly lines: Schema.Number;
|
|
322
318
|
}>;
|
|
323
|
-
direction: Schema.
|
|
324
|
-
targetsHash: Schema.optional<
|
|
319
|
+
readonly direction: Schema.Literals<readonly ["improving", "regressing", "stable"]>;
|
|
320
|
+
readonly targetsHash: Schema.optional<Schema.String>;
|
|
325
321
|
}>;
|
|
326
322
|
/** @public */
|
|
327
323
|
type TrendEntry = typeof TrendEntry.Type;
|
|
@@ -330,22 +326,22 @@ type TrendEntry = typeof TrendEntry.Type;
|
|
|
330
326
|
* @public
|
|
331
327
|
*/
|
|
332
328
|
declare const TrendRecord: Schema.Struct<{
|
|
333
|
-
entries: Schema
|
|
334
|
-
timestamp:
|
|
335
|
-
coverage: Schema.Struct<{
|
|
336
|
-
statements:
|
|
337
|
-
branches:
|
|
338
|
-
functions:
|
|
339
|
-
lines:
|
|
329
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
330
|
+
readonly timestamp: Schema.String;
|
|
331
|
+
readonly coverage: Schema.Struct<{
|
|
332
|
+
readonly statements: Schema.Number;
|
|
333
|
+
readonly branches: Schema.Number;
|
|
334
|
+
readonly functions: Schema.Number;
|
|
335
|
+
readonly lines: Schema.Number;
|
|
340
336
|
}>;
|
|
341
|
-
delta: Schema.Struct<{
|
|
342
|
-
statements:
|
|
343
|
-
branches:
|
|
344
|
-
functions:
|
|
345
|
-
lines:
|
|
337
|
+
readonly delta: Schema.Struct<{
|
|
338
|
+
readonly statements: Schema.Number;
|
|
339
|
+
readonly branches: Schema.Number;
|
|
340
|
+
readonly functions: Schema.Number;
|
|
341
|
+
readonly lines: Schema.Number;
|
|
346
342
|
}>;
|
|
347
|
-
direction: Schema.
|
|
348
|
-
targetsHash: Schema.optional<
|
|
343
|
+
readonly direction: Schema.Literals<readonly ["improving", "regressing", "stable"]>;
|
|
344
|
+
readonly targetsHash: Schema.optional<Schema.String>;
|
|
349
345
|
}>>;
|
|
350
346
|
}>;
|
|
351
347
|
/** @public */
|
|
@@ -733,7 +729,7 @@ interface AssociateRunSessionInput {
|
|
|
733
729
|
readonly chatId: string;
|
|
734
730
|
readonly invocationMethod: RunInvocationMethod;
|
|
735
731
|
}
|
|
736
|
-
declare const DataStore_base: Context.
|
|
732
|
+
declare const DataStore_base: Context.ServiceClass<DataStore, "vitest-agent/DataStore", {
|
|
737
733
|
readonly writeSettings: (hash: string, settings: SettingsInput, envVars: Record<string, string>) => Effect.Effect<void, DataStoreError>;
|
|
738
734
|
readonly writeRun: (input: TestRunInput) => Effect.Effect<number, DataStoreError>;
|
|
739
735
|
readonly writeModules: (runId: number, modules: ReadonlyArray<ModuleInput>) => Effect.Effect<ReadonlyArray<number>, DataStoreError>;
|
|
@@ -819,149 +815,141 @@ declare class DataStore extends DataStore_base {}
|
|
|
819
815
|
* @public
|
|
820
816
|
*/
|
|
821
817
|
declare const AgentReport: Schema.Struct<{
|
|
822
|
-
timestamp:
|
|
823
|
-
project: Schema.optional<
|
|
824
|
-
reason: Schema.
|
|
825
|
-
summary: Schema.Struct<{
|
|
826
|
-
total:
|
|
827
|
-
passed:
|
|
828
|
-
failed:
|
|
829
|
-
skipped:
|
|
830
|
-
duration:
|
|
818
|
+
readonly timestamp: Schema.String;
|
|
819
|
+
readonly project: Schema.optional<Schema.String>;
|
|
820
|
+
readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
|
|
821
|
+
readonly summary: Schema.Struct<{
|
|
822
|
+
readonly total: Schema.Number;
|
|
823
|
+
readonly passed: Schema.Number;
|
|
824
|
+
readonly failed: Schema.Number;
|
|
825
|
+
readonly skipped: Schema.Number;
|
|
826
|
+
readonly duration: Schema.Number;
|
|
831
827
|
}>;
|
|
832
|
-
failed: Schema
|
|
833
|
-
file:
|
|
834
|
-
state: Schema.
|
|
835
|
-
duration: Schema.optional<
|
|
836
|
-
errors: Schema.optional<Schema
|
|
837
|
-
message:
|
|
838
|
-
stack: Schema.optional<
|
|
839
|
-
diff: Schema.optional<
|
|
840
|
-
expected: Schema.optional<
|
|
841
|
-
received: Schema.optional<
|
|
828
|
+
readonly failed: Schema.$Array<Schema.Struct<{
|
|
829
|
+
readonly file: Schema.String;
|
|
830
|
+
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
831
|
+
readonly duration: Schema.optional<Schema.Number>;
|
|
832
|
+
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
833
|
+
readonly message: Schema.String;
|
|
834
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
835
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
836
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
837
|
+
readonly received: Schema.optional<Schema.String>;
|
|
842
838
|
}>>>;
|
|
843
|
-
tests: Schema
|
|
844
|
-
name:
|
|
845
|
-
fullName:
|
|
846
|
-
state: Schema.
|
|
847
|
-
duration: Schema.optional<
|
|
848
|
-
flaky: Schema.optional<
|
|
849
|
-
slow: Schema.optional<
|
|
850
|
-
errors: Schema.optional<Schema
|
|
851
|
-
message:
|
|
852
|
-
stack: Schema.optional<
|
|
853
|
-
diff: Schema.optional<
|
|
854
|
-
expected: Schema.optional<
|
|
855
|
-
received: Schema.optional<
|
|
839
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
840
|
+
readonly name: Schema.String;
|
|
841
|
+
readonly fullName: Schema.String;
|
|
842
|
+
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
843
|
+
readonly duration: Schema.optional<Schema.Number>;
|
|
844
|
+
readonly flaky: Schema.optional<Schema.Boolean>;
|
|
845
|
+
readonly slow: Schema.optional<Schema.Boolean>;
|
|
846
|
+
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
847
|
+
readonly message: Schema.String;
|
|
848
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
849
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
850
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
851
|
+
readonly received: Schema.optional<Schema.String>;
|
|
856
852
|
}>>>;
|
|
857
|
-
classification: Schema.optional<Schema.
|
|
853
|
+
readonly classification: Schema.optional<Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>>;
|
|
858
854
|
}>>;
|
|
859
855
|
}>>;
|
|
860
|
-
unhandledErrors: Schema
|
|
861
|
-
message:
|
|
862
|
-
stack: Schema.optional<
|
|
863
|
-
diff: Schema.optional<
|
|
864
|
-
expected: Schema.optional<
|
|
865
|
-
received: Schema.optional<
|
|
856
|
+
readonly unhandledErrors: Schema.$Array<Schema.Struct<{
|
|
857
|
+
readonly message: Schema.String;
|
|
858
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
859
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
860
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
861
|
+
readonly received: Schema.optional<Schema.String>;
|
|
866
862
|
}>>;
|
|
867
|
-
failedFiles: Schema
|
|
868
|
-
coverage: Schema.optional<Schema.Struct<{
|
|
869
|
-
totals: Schema.Struct<{
|
|
870
|
-
statements:
|
|
871
|
-
branches:
|
|
872
|
-
functions:
|
|
873
|
-
lines:
|
|
863
|
+
readonly failedFiles: Schema.$Array<Schema.String>;
|
|
864
|
+
readonly coverage: Schema.optional<Schema.Struct<{
|
|
865
|
+
readonly totals: Schema.Struct<{
|
|
866
|
+
readonly statements: Schema.Number;
|
|
867
|
+
readonly branches: Schema.Number;
|
|
868
|
+
readonly functions: Schema.Number;
|
|
869
|
+
readonly lines: Schema.Number;
|
|
874
870
|
}>;
|
|
875
|
-
thresholds: Schema.Struct<{
|
|
876
|
-
global: Schema.Struct<{
|
|
877
|
-
lines: Schema.optional<
|
|
878
|
-
functions: Schema.optional<
|
|
879
|
-
branches: Schema.optional<
|
|
880
|
-
statements: Schema.optional<
|
|
881
|
-
}>;
|
|
882
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
883
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
884
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
885
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
886
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
887
|
-
}>>>, {
|
|
888
|
-
default: () => never[];
|
|
871
|
+
readonly thresholds: Schema.Struct<{
|
|
872
|
+
readonly global: Schema.Struct<{
|
|
873
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
874
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
875
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
876
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
889
877
|
}>;
|
|
878
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
879
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
880
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
881
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
882
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
883
|
+
}>]>>, never>;
|
|
890
884
|
}>;
|
|
891
|
-
targets: Schema.optional<Schema.Struct<{
|
|
892
|
-
global: Schema.Struct<{
|
|
893
|
-
lines: Schema.optional<
|
|
894
|
-
functions: Schema.optional<
|
|
895
|
-
branches: Schema.optional<
|
|
896
|
-
statements: Schema.optional<
|
|
897
|
-
}>;
|
|
898
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
899
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
900
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
901
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
902
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
903
|
-
}>>>, {
|
|
904
|
-
default: () => never[];
|
|
885
|
+
readonly targets: Schema.optional<Schema.Struct<{
|
|
886
|
+
readonly global: Schema.Struct<{
|
|
887
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
888
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
889
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
890
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
905
891
|
}>;
|
|
892
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
893
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
894
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
895
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
896
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
897
|
+
}>]>>, never>;
|
|
906
898
|
}>>;
|
|
907
|
-
baselines: Schema.optional<Schema.Struct<{
|
|
908
|
-
global: Schema.Struct<{
|
|
909
|
-
lines: Schema.optional<
|
|
910
|
-
functions: Schema.optional<
|
|
911
|
-
branches: Schema.optional<
|
|
912
|
-
statements: Schema.optional<
|
|
913
|
-
}>;
|
|
914
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
915
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
916
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
917
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
918
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
919
|
-
}>>>, {
|
|
920
|
-
default: () => never[];
|
|
899
|
+
readonly baselines: Schema.optional<Schema.Struct<{
|
|
900
|
+
readonly global: Schema.Struct<{
|
|
901
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
902
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
903
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
904
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
921
905
|
}>;
|
|
906
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
907
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
908
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
909
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
910
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
911
|
+
}>]>>, never>;
|
|
922
912
|
}>>;
|
|
923
|
-
scoped: Schema.
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
functions: typeof Schema.Number;
|
|
933
|
-
lines: typeof Schema.Number;
|
|
913
|
+
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
914
|
+
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
915
|
+
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
916
|
+
readonly file: Schema.String;
|
|
917
|
+
readonly summary: Schema.Struct<{
|
|
918
|
+
readonly statements: Schema.Number;
|
|
919
|
+
readonly branches: Schema.Number;
|
|
920
|
+
readonly functions: Schema.Number;
|
|
921
|
+
readonly lines: Schema.Number;
|
|
934
922
|
}>;
|
|
935
|
-
uncoveredLines:
|
|
923
|
+
readonly uncoveredLines: Schema.String;
|
|
936
924
|
}>>;
|
|
937
|
-
lowCoverageFiles: Schema
|
|
938
|
-
belowTarget: Schema.optional<Schema
|
|
939
|
-
file:
|
|
940
|
-
summary: Schema.Struct<{
|
|
941
|
-
statements:
|
|
942
|
-
branches:
|
|
943
|
-
functions:
|
|
944
|
-
lines:
|
|
925
|
+
readonly lowCoverageFiles: Schema.$Array<Schema.String>;
|
|
926
|
+
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
927
|
+
readonly file: Schema.String;
|
|
928
|
+
readonly summary: Schema.Struct<{
|
|
929
|
+
readonly statements: Schema.Number;
|
|
930
|
+
readonly branches: Schema.Number;
|
|
931
|
+
readonly functions: Schema.Number;
|
|
932
|
+
readonly lines: Schema.Number;
|
|
945
933
|
}>;
|
|
946
|
-
uncoveredLines:
|
|
934
|
+
readonly uncoveredLines: Schema.String;
|
|
947
935
|
}>>>;
|
|
948
|
-
belowTargetFiles: Schema.optional<Schema
|
|
936
|
+
readonly belowTargetFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
949
937
|
}>>;
|
|
950
|
-
tagCounts: Schema.optional<Schema
|
|
951
|
-
passed: Schema.optional<
|
|
952
|
-
failed: Schema.optional<
|
|
953
|
-
skipped: Schema.optional<
|
|
938
|
+
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
939
|
+
readonly passed: Schema.optional<Schema.Number>;
|
|
940
|
+
readonly failed: Schema.optional<Schema.Number>;
|
|
941
|
+
readonly skipped: Schema.optional<Schema.Number>;
|
|
954
942
|
}>>>;
|
|
955
|
-
consoleLeaks: Schema.optional<Schema.Struct<{
|
|
956
|
-
total:
|
|
957
|
-
byFile: Schema
|
|
958
|
-
file:
|
|
959
|
-
stdout:
|
|
960
|
-
stderr:
|
|
961
|
-
tests: Schema.optional<Schema
|
|
962
|
-
sample: Schema.optional<
|
|
943
|
+
readonly consoleLeaks: Schema.optional<Schema.Struct<{
|
|
944
|
+
readonly total: Schema.Number;
|
|
945
|
+
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
946
|
+
readonly file: Schema.String;
|
|
947
|
+
readonly stdout: Schema.Number;
|
|
948
|
+
readonly stderr: Schema.Number;
|
|
949
|
+
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
950
|
+
readonly sample: Schema.optional<Schema.String>;
|
|
963
951
|
}>>;
|
|
964
|
-
truncated: Schema.optional<
|
|
952
|
+
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
965
953
|
}>>;
|
|
966
954
|
}>;
|
|
967
955
|
/** @public */
|
|
@@ -973,14 +961,14 @@ type AgentReport = typeof AgentReport.Type;
|
|
|
973
961
|
* @public
|
|
974
962
|
*/
|
|
975
963
|
declare const CacheManifest: Schema.Struct<{
|
|
976
|
-
updatedAt:
|
|
977
|
-
cacheDir:
|
|
978
|
-
projects: Schema
|
|
979
|
-
project:
|
|
980
|
-
reportFile:
|
|
981
|
-
historyFile: Schema.optional<
|
|
982
|
-
lastRun: Schema.NullOr<
|
|
983
|
-
lastResult: Schema.NullOr<Schema.
|
|
964
|
+
readonly updatedAt: Schema.String;
|
|
965
|
+
readonly cacheDir: Schema.String;
|
|
966
|
+
readonly projects: Schema.$Array<Schema.Struct<{
|
|
967
|
+
readonly project: Schema.String;
|
|
968
|
+
readonly reportFile: Schema.String;
|
|
969
|
+
readonly historyFile: Schema.optional<Schema.String>;
|
|
970
|
+
readonly lastRun: Schema.NullOr<Schema.String>;
|
|
971
|
+
readonly lastResult: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "interrupted"]>>;
|
|
984
972
|
}>>;
|
|
985
973
|
}>;
|
|
986
974
|
/** @public */
|
|
@@ -992,14 +980,14 @@ type CacheManifest = typeof CacheManifest.Type;
|
|
|
992
980
|
* @public
|
|
993
981
|
*/
|
|
994
982
|
declare const FileCoverageReport: Schema.Struct<{
|
|
995
|
-
file:
|
|
996
|
-
summary: Schema.Struct<{
|
|
997
|
-
statements:
|
|
998
|
-
branches:
|
|
999
|
-
functions:
|
|
1000
|
-
lines:
|
|
983
|
+
readonly file: Schema.String;
|
|
984
|
+
readonly summary: Schema.Struct<{
|
|
985
|
+
readonly statements: Schema.Number;
|
|
986
|
+
readonly branches: Schema.Number;
|
|
987
|
+
readonly functions: Schema.Number;
|
|
988
|
+
readonly lines: Schema.Number;
|
|
1001
989
|
}>;
|
|
1002
|
-
uncoveredLines:
|
|
990
|
+
readonly uncoveredLines: Schema.String;
|
|
1003
991
|
}>;
|
|
1004
992
|
/** @public */
|
|
1005
993
|
type FileCoverageReport = typeof FileCoverageReport.Type;
|
|
@@ -1008,86 +996,78 @@ type FileCoverageReport = typeof FileCoverageReport.Type;
|
|
|
1008
996
|
* @public
|
|
1009
997
|
*/
|
|
1010
998
|
declare const CoverageReport: Schema.Struct<{
|
|
1011
|
-
totals: Schema.Struct<{
|
|
1012
|
-
statements:
|
|
1013
|
-
branches:
|
|
1014
|
-
functions:
|
|
1015
|
-
lines:
|
|
999
|
+
readonly totals: Schema.Struct<{
|
|
1000
|
+
readonly statements: Schema.Number;
|
|
1001
|
+
readonly branches: Schema.Number;
|
|
1002
|
+
readonly functions: Schema.Number;
|
|
1003
|
+
readonly lines: Schema.Number;
|
|
1016
1004
|
}>;
|
|
1017
|
-
thresholds: Schema.Struct<{
|
|
1018
|
-
global: Schema.Struct<{
|
|
1019
|
-
lines: Schema.optional<
|
|
1020
|
-
functions: Schema.optional<
|
|
1021
|
-
branches: Schema.optional<
|
|
1022
|
-
statements: Schema.optional<
|
|
1023
|
-
}>;
|
|
1024
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
1025
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
1026
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
1027
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
1028
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
1029
|
-
}>>>, {
|
|
1030
|
-
default: () => never[];
|
|
1005
|
+
readonly thresholds: Schema.Struct<{
|
|
1006
|
+
readonly global: Schema.Struct<{
|
|
1007
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
1008
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
1009
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
1010
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
1031
1011
|
}>;
|
|
1012
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1013
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
1014
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
1015
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
1016
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
1017
|
+
}>]>>, never>;
|
|
1032
1018
|
}>;
|
|
1033
|
-
targets: Schema.optional<Schema.Struct<{
|
|
1034
|
-
global: Schema.Struct<{
|
|
1035
|
-
lines: Schema.optional<
|
|
1036
|
-
functions: Schema.optional<
|
|
1037
|
-
branches: Schema.optional<
|
|
1038
|
-
statements: Schema.optional<
|
|
1039
|
-
}>;
|
|
1040
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
1041
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
1042
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
1043
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
1044
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
1045
|
-
}>>>, {
|
|
1046
|
-
default: () => never[];
|
|
1019
|
+
readonly targets: Schema.optional<Schema.Struct<{
|
|
1020
|
+
readonly global: Schema.Struct<{
|
|
1021
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
1022
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
1023
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
1024
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
1047
1025
|
}>;
|
|
1026
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1027
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
1028
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
1029
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
1030
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
1031
|
+
}>]>>, never>;
|
|
1048
1032
|
}>>;
|
|
1049
|
-
baselines: Schema.optional<Schema.Struct<{
|
|
1050
|
-
global: Schema.Struct<{
|
|
1051
|
-
lines: Schema.optional<
|
|
1052
|
-
functions: Schema.optional<
|
|
1053
|
-
branches: Schema.optional<
|
|
1054
|
-
statements: Schema.optional<
|
|
1055
|
-
}>;
|
|
1056
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
1057
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
1058
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
1059
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
1060
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
1061
|
-
}>>>, {
|
|
1062
|
-
default: () => never[];
|
|
1033
|
+
readonly baselines: Schema.optional<Schema.Struct<{
|
|
1034
|
+
readonly global: Schema.Struct<{
|
|
1035
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
1036
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
1037
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
1038
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
1063
1039
|
}>;
|
|
1040
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1041
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
1042
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
1043
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
1044
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
1045
|
+
}>]>>, never>;
|
|
1064
1046
|
}>>;
|
|
1065
|
-
scoped: Schema.
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
functions: typeof Schema.Number;
|
|
1075
|
-
lines: typeof Schema.Number;
|
|
1047
|
+
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
1048
|
+
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1049
|
+
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
1050
|
+
readonly file: Schema.String;
|
|
1051
|
+
readonly summary: Schema.Struct<{
|
|
1052
|
+
readonly statements: Schema.Number;
|
|
1053
|
+
readonly branches: Schema.Number;
|
|
1054
|
+
readonly functions: Schema.Number;
|
|
1055
|
+
readonly lines: Schema.Number;
|
|
1076
1056
|
}>;
|
|
1077
|
-
uncoveredLines:
|
|
1057
|
+
readonly uncoveredLines: Schema.String;
|
|
1078
1058
|
}>>;
|
|
1079
|
-
lowCoverageFiles: Schema
|
|
1080
|
-
belowTarget: Schema.optional<Schema
|
|
1081
|
-
file:
|
|
1082
|
-
summary: Schema.Struct<{
|
|
1083
|
-
statements:
|
|
1084
|
-
branches:
|
|
1085
|
-
functions:
|
|
1086
|
-
lines:
|
|
1059
|
+
readonly lowCoverageFiles: Schema.$Array<Schema.String>;
|
|
1060
|
+
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1061
|
+
readonly file: Schema.String;
|
|
1062
|
+
readonly summary: Schema.Struct<{
|
|
1063
|
+
readonly statements: Schema.Number;
|
|
1064
|
+
readonly branches: Schema.Number;
|
|
1065
|
+
readonly functions: Schema.Number;
|
|
1066
|
+
readonly lines: Schema.Number;
|
|
1087
1067
|
}>;
|
|
1088
|
-
uncoveredLines:
|
|
1068
|
+
readonly uncoveredLines: Schema.String;
|
|
1089
1069
|
}>>>;
|
|
1090
|
-
belowTargetFiles: Schema.optional<Schema
|
|
1070
|
+
readonly belowTargetFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1091
1071
|
}>;
|
|
1092
1072
|
/** @public */
|
|
1093
1073
|
type CoverageReport = typeof CoverageReport.Type;
|
|
@@ -1098,14 +1078,14 @@ type CoverageReport = typeof CoverageReport.Type;
|
|
|
1098
1078
|
* @public
|
|
1099
1079
|
*/
|
|
1100
1080
|
declare const HistoryRecord: Schema.Struct<{
|
|
1101
|
-
project:
|
|
1102
|
-
updatedAt:
|
|
1103
|
-
tests: Schema
|
|
1104
|
-
modulePath:
|
|
1105
|
-
fullName:
|
|
1106
|
-
runs: Schema
|
|
1107
|
-
timestamp:
|
|
1108
|
-
state: Schema.
|
|
1081
|
+
readonly project: Schema.String;
|
|
1082
|
+
readonly updatedAt: Schema.String;
|
|
1083
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
1084
|
+
readonly modulePath: Schema.String;
|
|
1085
|
+
readonly fullName: Schema.String;
|
|
1086
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
1087
|
+
readonly timestamp: Schema.String;
|
|
1088
|
+
readonly state: Schema.Literals<readonly ["passed", "failed"]>;
|
|
1109
1089
|
}>>;
|
|
1110
1090
|
}>>;
|
|
1111
1091
|
}>;
|
|
@@ -1399,7 +1379,7 @@ interface TagInventoryRow {
|
|
|
1399
1379
|
*/
|
|
1400
1380
|
readonly testCount: number;
|
|
1401
1381
|
}
|
|
1402
|
-
declare const DataReader_base: Context.
|
|
1382
|
+
declare const DataReader_base: Context.ServiceClass<DataReader, "vitest-agent/DataReader", {
|
|
1403
1383
|
readonly getLatestRun: (project: string) => Effect.Effect<Option.Option<AgentReport>, DataStoreError>;
|
|
1404
1384
|
readonly getRunsByProject: () => Effect.Effect<ReadonlyArray<ProjectRunSummary>, DataStoreError>;
|
|
1405
1385
|
readonly getHistory: (project: string) => Effect.Effect<HistoryRecord, DataStoreError>;
|
|
@@ -1520,21 +1500,21 @@ declare class DataReader extends DataReader_base {}
|
|
|
1520
1500
|
//#endregion
|
|
1521
1501
|
//#region src/testing/layers.d.ts
|
|
1522
1502
|
/** @public */
|
|
1523
|
-
declare function makeTestLayer(filename: string): Layer.Layer<DataReader | DataStore | import("
|
|
1503
|
+
declare function makeTestLayer(filename: string): Layer.Layer<DataReader | DataStore | import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | NodeServices.NodeServices, SqliteMigrator.MigrationError | import("effect/unstable/sql/SqlError").SqlError, never>;
|
|
1524
1504
|
/** @public */
|
|
1525
|
-
declare const DataStoreTestLayer: Layer.Layer<DataReader | DataStore | import("
|
|
1505
|
+
declare const DataStoreTestLayer: Layer.Layer<DataReader | DataStore | import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | NodeServices.NodeServices, SqliteMigrator.MigrationError | import("effect/unstable/sql/SqlError").SqlError, never>;
|
|
1526
1506
|
//#endregion
|
|
1527
1507
|
//#region src/testing/index.d.ts
|
|
1528
1508
|
/** @public */
|
|
1529
|
-
declare function empty(filename: string): Layer.Layer<DataReader | DataStore | import("
|
|
1509
|
+
declare function empty(filename: string): Layer.Layer<DataReader | DataStore | import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | import("@effect/platform-node/NodeServices").NodeServices, import("@effect/sql-sqlite-node/SqliteMigrator").MigrationError | import("effect/unstable/sql/SqlError").SqlError, never>;
|
|
1530
1510
|
/** @public */
|
|
1531
|
-
declare function singlePassingRun(filename: string): Layer.Layer<DataReader | DataStore | import("
|
|
1511
|
+
declare function singlePassingRun(filename: string): Layer.Layer<DataReader | DataStore | import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | import("@effect/platform-node/NodeServices").NodeServices, DataStoreError | import("@effect/sql-sqlite-node/SqliteMigrator").MigrationError | import("effect/unstable/sql/SqlError").SqlError, never>;
|
|
1532
1512
|
/** @public */
|
|
1533
|
-
declare function withFailures(filename: string): Layer.Layer<DataReader | DataStore | import("
|
|
1513
|
+
declare function withFailures(filename: string): Layer.Layer<DataReader | DataStore | import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | import("@effect/platform-node/NodeServices").NodeServices, DataStoreError | import("@effect/sql-sqlite-node/SqliteMigrator").MigrationError | import("effect/unstable/sql/SqlError").SqlError, never>;
|
|
1534
1514
|
/** @public */
|
|
1535
|
-
declare function flaky(filename: string): Layer.Layer<DataReader | DataStore | import("
|
|
1515
|
+
declare function flaky(filename: string): Layer.Layer<DataReader | DataStore | import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | import("@effect/platform-node/NodeServices").NodeServices, DataStoreError | import("@effect/sql-sqlite-node/SqliteMigrator").MigrationError | import("effect/unstable/sql/SqlError").SqlError, never>;
|
|
1536
1516
|
/** @public */
|
|
1537
|
-
declare function withTddTask(filename: string): Layer.Layer<DataReader | DataStore | import("
|
|
1517
|
+
declare function withTddTask(filename: string): Layer.Layer<DataReader | DataStore | import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | import("@effect/platform-node/NodeServices").NodeServices, BehaviorNotFoundError | DataStoreError | GoalNotFoundError | IllegalStatusTransitionError | import("@effect/sql-sqlite-node/SqliteMigrator").MigrationError | import("effect/unstable/sql/SqlError").SqlError | TddTaskAlreadyEndedError | TddTaskNotFoundError, never>;
|
|
1538
1518
|
//#endregion
|
|
1539
1519
|
export { type AcceptanceMetrics, Agent, AgentId, AgentNotFoundError, AgentReport, type ArtifactKind, type AssociateRunSessionInput, BehaviorDetail, BehaviorNotFoundError, BehaviorRow, BehaviorStatus, CacheManifest, type ChangeKind, ChatId, type CitedArtifact, type CitedArtifactRow, type CommitChangesEntry, CoverageBaselines, CoverageReport, type CreateBehaviorInput, type CreateGoalInput, type CurrentTddPhase, DataReader, DataStore, DataStoreError, DataStoreTestLayer, type EndTddTaskInput, type FailureSignatureDetail, type FailureSignatureWriteInput, type FileCoverageInput, FileCoverageReport, type FlakyTest, GoalDetail, GoalNotFoundError, GoalRow, GoalStatus, HistoryRecord, type HypothesisDetail, type HypothesisInput, IdempotencyHit, type IdempotentResponseInput, type IllegalStatusTransitionEntity, IllegalStatusTransitionError, type ModuleInput, type ModuleListEntry, type NoteInput, type NoteRow, type PersistentFailure, type Phase, type ProjectRunSummary, type RegisterAgentInput, RegistrationConflictError, type RunChangedFile, type RunInvocationMethod, type SessionDetail, type SessionInput, type SettingsInput, type SettingsListEntry, type SettingsRow, type StackFrameInput, type SuiteInput, type SuiteListEntry, type TagInventoryRow, type TddArtifactDetail, type TddArtifactRow, type TddPhaseDetail, TddTaskAlreadyEndedError, type TddTaskDetail, type TddTaskEndOutcome, type TddTaskInput, TddTaskNotFoundError, type TddTaskSummary, type TestCaseInput, type TestError, type TestErrorInput, type TestListEntry, type TestRunInput, TrendEntry, TrendRecord, type TurnInput, type TurnSearchOptions, type TurnSummary, type UpdateBehaviorInput, type UpdateGoalInput, type ValidateHypothesisInput, type WriteCommitInput, type WriteRunChangedFilesInput, type WriteTddArtifactInput, type WriteTddPhaseInput, type WriteTddPhaseOutput, empty, flaky, makeTestLayer, singlePassingRun, withFailures, withTddTask };
|
|
1540
1520
|
//# sourceMappingURL=testing.d.ts.map
|