@vitest-agent/sdk 2.5.0 → 2.5.1
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/dispatch.d.ts +4 -4
- package/index.d.ts +460 -460
- package/index.js +1 -1
- package/package.json +11 -11
- package/testing.d.ts +52 -52
package/index.js
CHANGED
|
@@ -119,7 +119,7 @@ import { requiredArtifactForTransition, transitionEnforcesBehaviorMatch, validat
|
|
|
119
119
|
* substituted yet. Exported for version introspection by downstream tooling.
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
const CURRENT_SDK_VERSION = "2.5.
|
|
122
|
+
const CURRENT_SDK_VERSION = "2.5.1";
|
|
123
123
|
|
|
124
124
|
//#endregion
|
|
125
125
|
export { ActionSeverity, ActorType, Agent, AgentConsoleMode, AgentContext, AgentId, AgentNotFoundError, AgentPluginOptions, AgentReport, AgentReporterOptions, BehaviorAbandonedEvent, BehaviorAddedEvent, BehaviorCompletedEvent, BehaviorDetail, BehaviorNotFoundError, BehaviorRow, BehaviorScopedEventTypes, BehaviorStartedEvent, BehaviorStatus, BehaviorsReadyEvent, BlockedEvent, CURRENT_SDK_VERSION, CacheManifest, CacheManifestEntry, ChannelEvent, ChatId, CiConsoleMode, ConfigLive, ConsoleLeakFile, ConsoleLeaks, ConsoleLeaksFromFailingTests, ConsoleLogLevel, ConsoleMode, ConsoleOutputMode, ConsoleOutputs, ConversationId, ConversationNotFoundError, CoverageBaselines, FileCoverageReport as CoverageFile, CoverageGap, CoverageLevel, CoverageMetric, CoverageRenderState, CoverageReport, CoverageTargets, CoverageTargetsMetrics, CoverageTotals, DATABASE_FILENAME, DataReader, DataReaderLive, DataStore, DataStoreError, DataStoreLive, DetailLevel, DetailResolver, DetailResolverLive, DiscoveryError, DiscoveryRegistry, DiscoveryRegistryLive, Environment, EnvironmentDetector, EnvironmentDetectorLive, EnvironmentDetectorTest, Executor, ExecutorResolver, ExecutorResolverLive, FailureRecord, FileCoverageReport, FileEditPayload, FormatSelector, FormatSelectorLive, GfmFormatter, GitCommandError, GoalAbandonedEvent, GoalAddedEvent, GoalCompletedEvent, GoalDetail, GoalNotFoundError, GoalRow, GoalStartedEvent, GoalStatus, GoalsReadyEvent, HistoryRecord, HistoryTracker, HistoryTrackerLive, HistoryTrackerTest, HookFirePayload, HookStatus, HookType, HostKind, HostMetadataParseError, HumanConsoleMode, HypothesisPayload, IDEMPOTENCY_ROOT_SENTINEL, IdempotencyHit, IllegalStatusTransitionError, JsonFormatter, LoggerLive, MarkdownFormatter, MetricThresholds, ModuleRecord, ModuleReport, NON_DISCOVERABLE_DIRS, NotePayload, OutputFormat, OutputPipelineLive, OutputRenderer, OutputRendererLive, PackageManager, PathResolutionError, PathResolutionLive, PatternThresholds, PerClientSessionMapReader, PerClientSessionMapReaderLive, PerClientSessionMapWriter, PerClientSessionMapWriterLive, PhaseTransitionEvent, ProbeMissError, ProjectDiscovery, ProjectDiscoveryLive, ProjectDiscoveryTest, ProjectIdentity, ProjectIdentityLive, ProjectIdentityNotResolvableError, ProjectIdentityTest, ProjectKey, RegistrationConflictError, RenderState, RenderTotals, ReportError, ReportSummary, ResolvedThresholds, RunContext, RunContext$, RunContextLive, RunContextService, RunContextTest, RunEvent, SRC_DIR, SessionCompleteEvent, SessionNotFoundError, SessionOutcome, SidecarTimeoutError, SilentFormatter, SuggestedActionRecord, TEST_DIR, TEST_FILE_GLOB_SUFFIX, TEST_HELPER_DIRS, TagCountEntry, TddTaskAlreadyEndedError, TddTaskId, TddTaskNotFoundError, TerminalFormatter, TestClassification, TestHistory, TestRecord, TestReport, TestRun, TestRunReason, TestState, ToolCallPayload, ToolResultPayload, Transport, TrendEntry, TrendRecord, TurnPayload, UserPromptPayload, VitestAgentConfig, VitestAgentConfigFile, _resetMigrationCacheForTesting, ansi, assembleHistoryRecord, assembleManifest, buildAgentReport, buildConsoleLeaks, buildEnvPrefix, canonicalizeGitUrl, ciAnnotationsFormatter, classifyTest, classifyTestPath, coerceErrorField, coerceErrorText, collectConsoleLeakEntries, compressLines, computeFailureSignature, computeTrend, countSuiteFailures, deriveIdempotencyKey, detectNonDefaultDiscoverStrategy, detectPackageManager, detectVitestScripts, determineTier, ensureMigrated, extractSqlReason, findFunctionBoundary, findOwningWorkspace, formatConsoleMarkdown, formatFatalError, formatGfm, formatScopedCoverageNote, formatTriageEffect, formatWrapupEffect, getRecentDirection, getRunCommand, getWorstMetric, gitUrlToProjectKey, hashTargets, historyKey, initialRenderState, isTestFileName, isTimeoutError, isVitestInvocation, migration as migration0001, normalizeAssertionShape, normalizeWorkspaceKey, osc8, probeHostMetadataFromEnv, migration$1 as registryMigration0001, relativePath, requiredArtifactForTransition, resolveCoverageInput, resolveDataPath, resolveLogFile, resolveLogLevel, resolveProjectIdentityFromCandidates, resolveProjectKeyFromCwd, resolveWorkspaceKey, rewriteBashCommand, safeFilename, migration$2 as sessionMapMigration0001, stripAnsi, transitionEnforcesBehaviorMatch, validateCoverageConfig, validateCoverageTargetsShape, validatePhaseTransition };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/sdk",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Effect Schema, SQLite migrations, data layer, services, formatters, and utilities for vitest-agent packages.",
|
|
6
6
|
"keywords": [
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"./package.json": "./package.json"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
49
|
-
"@effect/sql-sqlite-node": "4.0.0-rc.
|
|
50
|
-
"@effected/config-file": "^0.
|
|
51
|
-
"@effected/jsonc": "^0.
|
|
52
|
-
"@effected/toml": "^0.
|
|
53
|
-
"@effected/walker": "^0.
|
|
54
|
-
"@effected/workspaces": "^0.
|
|
55
|
-
"@effected/xdg": "^0.
|
|
56
|
-
"@effected/yaml": "^0.
|
|
48
|
+
"@effect/platform-node": "4.0.0-rc.112",
|
|
49
|
+
"@effect/sql-sqlite-node": "4.0.0-rc.112",
|
|
50
|
+
"@effected/config-file": "^0.6.0",
|
|
51
|
+
"@effected/jsonc": "^0.9.0",
|
|
52
|
+
"@effected/toml": "^0.6.0",
|
|
53
|
+
"@effected/walker": "^0.6.0",
|
|
54
|
+
"@effected/workspaces": "^0.20.0",
|
|
55
|
+
"@effected/xdg": "^0.4.0",
|
|
56
|
+
"@effected/yaml": "^0.13.0",
|
|
57
57
|
"acorn": "^8.18.0",
|
|
58
58
|
"acorn-typescript": "^1.4.13",
|
|
59
59
|
"ajv": "^8.20.0",
|
|
60
|
-
"effect": "4.0.0-rc.
|
|
60
|
+
"effect": "4.0.0-rc.112",
|
|
61
61
|
"std-env": "^4.2.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
package/testing.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare const DataStoreError_base: new <A extends Record<string, any> = {}>(args
|
|
|
9
9
|
* Error raised when a SQLite operation fails at read, write, or migration time.
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
declare class DataStoreError extends DataStoreError_base<{
|
|
12
|
+
export declare class DataStoreError extends DataStoreError_base<{
|
|
13
13
|
readonly operation: "read" | "write" | "migrate";
|
|
14
14
|
readonly table: string;
|
|
15
15
|
readonly reason: string;
|
|
@@ -26,7 +26,7 @@ declare class DataStoreError extends DataStoreError_base<{
|
|
|
26
26
|
* Complete per-project test report written to disk as JSON.
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
|
-
declare const AgentReport: Schema.Struct<{
|
|
29
|
+
export declare const AgentReport: Schema.Struct<{
|
|
30
30
|
readonly timestamp: Schema.String;
|
|
31
31
|
readonly project: Schema.optional<Schema.String>;
|
|
32
32
|
readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
|
|
@@ -178,14 +178,14 @@ declare const AgentReport: Schema.Struct<{
|
|
|
178
178
|
}>>;
|
|
179
179
|
}>;
|
|
180
180
|
/** @public */
|
|
181
|
-
type AgentReport = typeof AgentReport.Type;
|
|
181
|
+
export type AgentReport = typeof AgentReport.Type;
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region src/schemas/Baselines.d.ts
|
|
184
184
|
/**
|
|
185
185
|
* Coverage baselines -- the auto-ratcheting high-water mark.
|
|
186
186
|
* @public
|
|
187
187
|
*/
|
|
188
|
-
declare const CoverageBaselines: Schema.Struct<{
|
|
188
|
+
export declare const CoverageBaselines: Schema.Struct<{
|
|
189
189
|
readonly updatedAt: Schema.String;
|
|
190
190
|
readonly global: Schema.Struct<{
|
|
191
191
|
readonly lines: Schema.optional<Schema.Number>;
|
|
@@ -201,14 +201,14 @@ declare const CoverageBaselines: Schema.Struct<{
|
|
|
201
201
|
}>]>>, never>;
|
|
202
202
|
}>;
|
|
203
203
|
/** @public */
|
|
204
|
-
type CoverageBaselines = typeof CoverageBaselines.Type;
|
|
204
|
+
export type CoverageBaselines = typeof CoverageBaselines.Type;
|
|
205
205
|
//#endregion
|
|
206
206
|
//#region src/schemas/CacheManifest.d.ts
|
|
207
207
|
/**
|
|
208
208
|
* Root manifest file that indexes all project reports.
|
|
209
209
|
* @public
|
|
210
210
|
*/
|
|
211
|
-
declare const CacheManifest: Schema.Struct<{
|
|
211
|
+
export declare const CacheManifest: Schema.Struct<{
|
|
212
212
|
readonly updatedAt: Schema.String;
|
|
213
213
|
readonly cacheDir: Schema.String;
|
|
214
214
|
readonly projects: Schema.$Array<Schema.Struct<{
|
|
@@ -220,14 +220,14 @@ declare const CacheManifest: Schema.Struct<{
|
|
|
220
220
|
}>>;
|
|
221
221
|
}>;
|
|
222
222
|
/** @public */
|
|
223
|
-
type CacheManifest = typeof CacheManifest.Type;
|
|
223
|
+
export type CacheManifest = typeof CacheManifest.Type;
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region src/schemas/Coverage.d.ts
|
|
226
226
|
/**
|
|
227
227
|
* Per-file coverage data including uncovered line ranges.
|
|
228
228
|
* @public
|
|
229
229
|
*/
|
|
230
|
-
declare const FileCoverageReport: Schema.Struct<{
|
|
230
|
+
export declare const FileCoverageReport: Schema.Struct<{
|
|
231
231
|
readonly file: Schema.String;
|
|
232
232
|
readonly summary: Schema.Struct<{
|
|
233
233
|
readonly statements: Schema.Number;
|
|
@@ -238,12 +238,12 @@ declare const FileCoverageReport: Schema.Struct<{
|
|
|
238
238
|
readonly uncoveredLines: Schema.String;
|
|
239
239
|
}>;
|
|
240
240
|
/** @public */
|
|
241
|
-
type FileCoverageReport = typeof FileCoverageReport.Type;
|
|
241
|
+
export type FileCoverageReport = typeof FileCoverageReport.Type;
|
|
242
242
|
/**
|
|
243
243
|
* Complete coverage report attached to an AgentReport.
|
|
244
244
|
* @public
|
|
245
245
|
*/
|
|
246
|
-
declare const CoverageReport: Schema.Struct<{
|
|
246
|
+
export declare const CoverageReport: Schema.Struct<{
|
|
247
247
|
readonly totals: Schema.Struct<{
|
|
248
248
|
readonly statements: Schema.Number;
|
|
249
249
|
readonly branches: Schema.Number;
|
|
@@ -319,14 +319,14 @@ declare const CoverageReport: Schema.Struct<{
|
|
|
319
319
|
readonly belowTargetFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
320
320
|
}>;
|
|
321
321
|
/** @public */
|
|
322
|
-
type CoverageReport = typeof CoverageReport.Type;
|
|
322
|
+
export type CoverageReport = typeof CoverageReport.Type;
|
|
323
323
|
//#endregion
|
|
324
324
|
//#region src/schemas/History.d.ts
|
|
325
325
|
/**
|
|
326
326
|
* Per-project history record containing all tracked tests.
|
|
327
327
|
* @public
|
|
328
328
|
*/
|
|
329
|
-
declare const HistoryRecord: Schema.Struct<{
|
|
329
|
+
export declare const HistoryRecord: Schema.Struct<{
|
|
330
330
|
readonly project: Schema.String;
|
|
331
331
|
readonly updatedAt: Schema.String;
|
|
332
332
|
readonly tests: Schema.$Array<Schema.Struct<{
|
|
@@ -339,19 +339,19 @@ declare const HistoryRecord: Schema.Struct<{
|
|
|
339
339
|
}>>;
|
|
340
340
|
}>;
|
|
341
341
|
/** @public */
|
|
342
|
-
type HistoryRecord = typeof HistoryRecord.Type;
|
|
342
|
+
export type HistoryRecord = typeof HistoryRecord.Type;
|
|
343
343
|
//#endregion
|
|
344
344
|
//#region src/schemas/Tdd.d.ts
|
|
345
345
|
/** @public */
|
|
346
|
-
declare const GoalStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
346
|
+
export declare const GoalStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
347
347
|
/** @public */
|
|
348
|
-
type GoalStatus = typeof GoalStatus.Type;
|
|
348
|
+
export type GoalStatus = typeof GoalStatus.Type;
|
|
349
349
|
/** @public */
|
|
350
|
-
declare const BehaviorStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
350
|
+
export declare const BehaviorStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
351
351
|
/** @public */
|
|
352
|
-
type BehaviorStatus = typeof BehaviorStatus.Type;
|
|
352
|
+
export type BehaviorStatus = typeof BehaviorStatus.Type;
|
|
353
353
|
/** @public */
|
|
354
|
-
declare const GoalRow: Schema.Struct<{
|
|
354
|
+
export declare const GoalRow: Schema.Struct<{
|
|
355
355
|
readonly id: Schema.Number;
|
|
356
356
|
readonly sessionId: Schema.Number;
|
|
357
357
|
readonly ordinal: Schema.Number;
|
|
@@ -360,9 +360,9 @@ declare const GoalRow: Schema.Struct<{
|
|
|
360
360
|
readonly createdAt: Schema.String;
|
|
361
361
|
}>;
|
|
362
362
|
/** @public */
|
|
363
|
-
type GoalRow = typeof GoalRow.Type;
|
|
363
|
+
export type GoalRow = typeof GoalRow.Type;
|
|
364
364
|
/** @public */
|
|
365
|
-
declare const BehaviorRow: Schema.Struct<{
|
|
365
|
+
export declare const BehaviorRow: Schema.Struct<{
|
|
366
366
|
readonly id: Schema.Number;
|
|
367
367
|
readonly goalId: Schema.Number;
|
|
368
368
|
readonly ordinal: Schema.Number;
|
|
@@ -372,9 +372,9 @@ declare const BehaviorRow: Schema.Struct<{
|
|
|
372
372
|
readonly createdAt: Schema.String;
|
|
373
373
|
}>;
|
|
374
374
|
/** @public */
|
|
375
|
-
type BehaviorRow = typeof BehaviorRow.Type;
|
|
375
|
+
export type BehaviorRow = typeof BehaviorRow.Type;
|
|
376
376
|
/** @public */
|
|
377
|
-
declare const GoalDetail: Schema.Struct<{
|
|
377
|
+
export declare const GoalDetail: Schema.Struct<{
|
|
378
378
|
readonly id: Schema.Number;
|
|
379
379
|
readonly sessionId: Schema.Number;
|
|
380
380
|
readonly ordinal: Schema.Number;
|
|
@@ -392,9 +392,9 @@ declare const GoalDetail: Schema.Struct<{
|
|
|
392
392
|
}>>;
|
|
393
393
|
}>;
|
|
394
394
|
/** @public */
|
|
395
|
-
type GoalDetail = typeof GoalDetail.Type;
|
|
395
|
+
export type GoalDetail = typeof GoalDetail.Type;
|
|
396
396
|
/** @public */
|
|
397
|
-
declare const BehaviorDetail: Schema.Struct<{
|
|
397
|
+
export declare const BehaviorDetail: Schema.Struct<{
|
|
398
398
|
readonly id: Schema.Number;
|
|
399
399
|
readonly goalId: Schema.Number;
|
|
400
400
|
readonly ordinal: Schema.Number;
|
|
@@ -418,14 +418,14 @@ declare const BehaviorDetail: Schema.Struct<{
|
|
|
418
418
|
}>>;
|
|
419
419
|
}>;
|
|
420
420
|
/** @public */
|
|
421
|
-
type BehaviorDetail = typeof BehaviorDetail.Type;
|
|
421
|
+
export type BehaviorDetail = typeof BehaviorDetail.Type;
|
|
422
422
|
//#endregion
|
|
423
423
|
//#region src/schemas/Trends.d.ts
|
|
424
424
|
/**
|
|
425
425
|
* A single coverage trend data point recorded on a full test run.
|
|
426
426
|
* @public
|
|
427
427
|
*/
|
|
428
|
-
declare const TrendEntry: Schema.Struct<{
|
|
428
|
+
export declare const TrendEntry: Schema.Struct<{
|
|
429
429
|
readonly timestamp: Schema.String;
|
|
430
430
|
readonly coverage: Schema.Struct<{
|
|
431
431
|
readonly statements: Schema.Number;
|
|
@@ -443,12 +443,12 @@ declare const TrendEntry: Schema.Struct<{
|
|
|
443
443
|
readonly targetsHash: Schema.optional<Schema.String>;
|
|
444
444
|
}>;
|
|
445
445
|
/** @public */
|
|
446
|
-
type TrendEntry = typeof TrendEntry.Type;
|
|
446
|
+
export type TrendEntry = typeof TrendEntry.Type;
|
|
447
447
|
/**
|
|
448
448
|
* Per-project trend record with sliding window of entries.
|
|
449
449
|
* @public
|
|
450
450
|
*/
|
|
451
|
-
declare const TrendRecord: Schema.Struct<{
|
|
451
|
+
export declare const TrendRecord: Schema.Struct<{
|
|
452
452
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
453
453
|
readonly timestamp: Schema.String;
|
|
454
454
|
readonly coverage: Schema.Struct<{
|
|
@@ -468,7 +468,7 @@ declare const TrendRecord: Schema.Struct<{
|
|
|
468
468
|
}>>;
|
|
469
469
|
}>;
|
|
470
470
|
/** @public */
|
|
471
|
-
type TrendRecord = typeof TrendRecord.Type;
|
|
471
|
+
export type TrendRecord = typeof TrendRecord.Type;
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region src/utils/validate-phase-transition.d.ts
|
|
474
474
|
/** @public */
|
|
@@ -519,9 +519,9 @@ interface CitedArtifact {
|
|
|
519
519
|
* agent's lifetime.
|
|
520
520
|
* @public
|
|
521
521
|
*/
|
|
522
|
-
declare const AgentId: Schema.brand<Schema.String, "AgentId">;
|
|
522
|
+
export declare const AgentId: Schema.brand<Schema.String, "AgentId">;
|
|
523
523
|
/** @public */
|
|
524
|
-
type AgentId = Schema.Schema.Type<typeof AgentId>;
|
|
524
|
+
export type AgentId = Schema.Schema.Type<typeof AgentId>;
|
|
525
525
|
/**
|
|
526
526
|
* The agent host process's chat id (Claude Code's per-process chat
|
|
527
527
|
* UUID, etc.). Shorter-lived than a conversation; one conversation can
|
|
@@ -529,9 +529,9 @@ type AgentId = Schema.Schema.Type<typeof AgentId>;
|
|
|
529
529
|
* `sessions.id` (the SQLite agent-run PK).
|
|
530
530
|
* @public
|
|
531
531
|
*/
|
|
532
|
-
declare const ChatId: Schema.brand<Schema.String, "ChatId">;
|
|
532
|
+
export declare const ChatId: Schema.brand<Schema.String, "ChatId">;
|
|
533
533
|
/** @public */
|
|
534
|
-
type ChatId = Schema.Schema.Type<typeof ChatId>;
|
|
534
|
+
export type ChatId = Schema.Schema.Type<typeof ChatId>;
|
|
535
535
|
//#endregion
|
|
536
536
|
//#region src/errors/AgentErrors.d.ts
|
|
537
537
|
declare const AgentNotFoundError_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]; }>) => import("effect/Cause").YieldableError & {
|
|
@@ -543,7 +543,7 @@ declare const AgentNotFoundError_base: new <A extends Record<string, any> = {}>(
|
|
|
543
543
|
* this agent first.
|
|
544
544
|
* @public
|
|
545
545
|
*/
|
|
546
|
-
declare class AgentNotFoundError extends AgentNotFoundError_base<{
|
|
546
|
+
export declare class AgentNotFoundError extends AgentNotFoundError_base<{
|
|
547
547
|
readonly agentId: AgentId;
|
|
548
548
|
readonly chatId?: ChatId;
|
|
549
549
|
}> {}
|
|
@@ -556,7 +556,7 @@ declare const RegistrationConflictError_base: new <A extends Record<string, any>
|
|
|
556
556
|
* caller named. Distinct from `IdempotencyHit`, which is a success.
|
|
557
557
|
* @public
|
|
558
558
|
*/
|
|
559
|
-
declare class RegistrationConflictError extends RegistrationConflictError_base<{
|
|
559
|
+
export declare class RegistrationConflictError extends RegistrationConflictError_base<{
|
|
560
560
|
readonly reason: string;
|
|
561
561
|
}> {
|
|
562
562
|
constructor(args: {
|
|
@@ -569,7 +569,7 @@ declare const GoalNotFoundError_base: new <A extends Record<string, any> = {}>(a
|
|
|
569
569
|
readonly _tag: "GoalNotFoundError";
|
|
570
570
|
} & Readonly<A>;
|
|
571
571
|
/** @public */
|
|
572
|
-
declare class GoalNotFoundError extends GoalNotFoundError_base<{
|
|
572
|
+
export declare class GoalNotFoundError extends GoalNotFoundError_base<{
|
|
573
573
|
readonly id: number;
|
|
574
574
|
readonly reason: string;
|
|
575
575
|
}> {
|
|
@@ -582,7 +582,7 @@ declare const BehaviorNotFoundError_base: new <A extends Record<string, any> = {
|
|
|
582
582
|
readonly _tag: "BehaviorNotFoundError";
|
|
583
583
|
} & Readonly<A>;
|
|
584
584
|
/** @public */
|
|
585
|
-
declare class BehaviorNotFoundError extends BehaviorNotFoundError_base<{
|
|
585
|
+
export declare class BehaviorNotFoundError extends BehaviorNotFoundError_base<{
|
|
586
586
|
readonly id: number;
|
|
587
587
|
readonly reason: string;
|
|
588
588
|
}> {
|
|
@@ -595,7 +595,7 @@ declare const TddTaskNotFoundError_base: new <A extends Record<string, any> = {}
|
|
|
595
595
|
readonly _tag: "TddTaskNotFoundError";
|
|
596
596
|
} & Readonly<A>;
|
|
597
597
|
/** @public */
|
|
598
|
-
declare class TddTaskNotFoundError extends TddTaskNotFoundError_base<{
|
|
598
|
+
export declare class TddTaskNotFoundError extends TddTaskNotFoundError_base<{
|
|
599
599
|
readonly id: number;
|
|
600
600
|
readonly reason: string;
|
|
601
601
|
}> {
|
|
@@ -610,7 +610,7 @@ declare const TddTaskAlreadyEndedError_base: new <A extends Record<string, any>
|
|
|
610
610
|
readonly _tag: "TddTaskAlreadyEndedError";
|
|
611
611
|
} & Readonly<A>;
|
|
612
612
|
/** @public */
|
|
613
|
-
declare class TddTaskAlreadyEndedError extends TddTaskAlreadyEndedError_base<{
|
|
613
|
+
export declare class TddTaskAlreadyEndedError extends TddTaskAlreadyEndedError_base<{
|
|
614
614
|
readonly id: number;
|
|
615
615
|
readonly endedAt: string;
|
|
616
616
|
readonly outcome: TddTaskEndOutcome;
|
|
@@ -627,7 +627,7 @@ declare const IllegalStatusTransitionError_base: new <A extends Record<string, a
|
|
|
627
627
|
readonly _tag: "IllegalStatusTransitionError";
|
|
628
628
|
} & Readonly<A>;
|
|
629
629
|
/** @public */
|
|
630
|
-
declare class IllegalStatusTransitionError extends IllegalStatusTransitionError_base<{
|
|
630
|
+
export declare class IllegalStatusTransitionError extends IllegalStatusTransitionError_base<{
|
|
631
631
|
readonly entity: IllegalStatusTransitionEntity;
|
|
632
632
|
readonly id: number;
|
|
633
633
|
readonly from: string;
|
|
@@ -667,7 +667,7 @@ declare const Agent_base: Schema.Class<Agent, Schema.TaggedStruct<"Agent", {
|
|
|
667
667
|
* two reveals a mid-session branch switch, which is itself signal.
|
|
668
668
|
* @public
|
|
669
669
|
*/
|
|
670
|
-
declare class Agent extends Agent_base {}
|
|
670
|
+
export declare class Agent extends Agent_base {}
|
|
671
671
|
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> & {
|
|
672
672
|
readonly _tag: "IdempotencyHit";
|
|
673
673
|
} & import("effect/Pipeable").Pipeable;
|
|
@@ -682,7 +682,7 @@ declare const IdempotencyHit_base: new <A extends Record<string, any> = {}>(args
|
|
|
682
682
|
* downstream code uses `Match.tag` to branch.
|
|
683
683
|
* @public
|
|
684
684
|
*/
|
|
685
|
-
declare class IdempotencyHit extends IdempotencyHit_base<{
|
|
685
|
+
export declare class IdempotencyHit extends IdempotencyHit_base<{
|
|
686
686
|
readonly existingAgentId: typeof AgentId.Type;
|
|
687
687
|
}> {}
|
|
688
688
|
//#endregion
|
|
@@ -1187,7 +1187,7 @@ declare const DataStore_base: Context.ServiceClass<DataStore, "vitest-agent/Data
|
|
|
1187
1187
|
readonly endAgent: (agentId: string, endedAt: number) => Effect.Effect<void, AgentNotFoundError | DataStoreError>;
|
|
1188
1188
|
}>;
|
|
1189
1189
|
/** @public */
|
|
1190
|
-
declare class DataStore extends DataStore_base {}
|
|
1190
|
+
export declare class DataStore extends DataStore_base {}
|
|
1191
1191
|
//#endregion
|
|
1192
1192
|
//#region src/services/DataReader.d.ts
|
|
1193
1193
|
/** @public */
|
|
@@ -1675,25 +1675,25 @@ declare const DataReader_base: Context.ServiceClass<DataReader, "vitest-agent/Da
|
|
|
1675
1675
|
}) => Effect.Effect<ReadonlyArray<TestListEntry>, DataStoreError>;
|
|
1676
1676
|
}>;
|
|
1677
1677
|
/** @public */
|
|
1678
|
-
declare class DataReader extends DataReader_base {}
|
|
1678
|
+
export declare class DataReader extends DataReader_base {}
|
|
1679
1679
|
//#endregion
|
|
1680
1680
|
//#region src/testing/layers.d.ts
|
|
1681
1681
|
/** @public */
|
|
1682
|
-
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>;
|
|
1682
|
+
export 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>;
|
|
1683
1683
|
/** @public */
|
|
1684
|
-
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>;
|
|
1684
|
+
export 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>;
|
|
1685
1685
|
//#endregion
|
|
1686
1686
|
//#region src/testing/index.d.ts
|
|
1687
1687
|
/** @public */
|
|
1688
|
-
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>;
|
|
1688
|
+
export 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>;
|
|
1689
1689
|
/** @public */
|
|
1690
|
-
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>;
|
|
1690
|
+
export 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>;
|
|
1691
1691
|
/** @public */
|
|
1692
|
-
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>;
|
|
1692
|
+
export 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>;
|
|
1693
1693
|
/** @public */
|
|
1694
|
-
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>;
|
|
1694
|
+
export 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>;
|
|
1695
1695
|
/** @public */
|
|
1696
|
-
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>;
|
|
1696
|
+
export 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>;
|
|
1697
1697
|
//#endregion
|
|
1698
|
-
export {
|
|
1698
|
+
export type { AcceptanceMetrics, ArtifactKind, ArtifactSuite, AssociateRunSessionInput, ChangeKind, CitedArtifact, CitedArtifactRow, ClassificationQueryOptions, CommitChangesEntry, CreateBehaviorInput, CreateGoalInput, CurrentTddPhase, EndTddTaskInput, FailureSignatureDetail, FailureSignatureWriteInput, FileCoverageInput, FlakyTest, HistoryQueryOptions, HypothesisDetail, HypothesisInput, IdempotentResponseInput, IllegalStatusTransitionEntity, ModuleInput, ModuleListEntry, NoteInput, NoteRow, PersistentFailure, Phase, ProjectRunSummary, RegisterAgentInput, ResolvedThresholds, RunChangedFile, RunInvocationMethod, SessionDetail, SessionInput, SettingsInput, SettingsListEntry, SettingsRow, StackFrameInput, SuiteInput, SuiteListEntry, TagInventoryRow, TddArtifactDetail, TddArtifactRow, TddPhaseDetail, TddTaskDetail, TddTaskEndOutcome, TddTaskInput, TddTaskSummary, TestCaseInput, TestError, TestErrorInput, TestListEntry, TestLookupOptions, TestRunInput, TurnInput, TurnSearchOptions, TurnSummary, UpdateBehaviorInput, UpdateGoalInput, ValidateHypothesisInput, WriteCommitInput, WriteRunChangedFilesInput, WriteTddArtifactInput, WriteTddPhaseInput, WriteTddPhaseOutput };
|
|
1699
1699
|
//# sourceMappingURL=testing.d.ts.map
|