@dreamboard-games/sdk 0.4.0-alpha.12 → 0.4.0-alpha.13
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/REFERENCE.md +218 -9
- package/dist/authoring/index.js +2 -2
- package/dist/authoring-compiler.js +3 -3
- package/dist/authoring-materialize-cli.js +3 -3
- package/dist/{chunk-FYJRMV7A.js → chunk-42HQLHVA.js} +2 -2
- package/dist/{chunk-PZEM2VOI.js → chunk-MLFHVYF7.js} +2 -2
- package/dist/{chunk-64FUL7XN.js → chunk-OFIDC7DJ.js} +2 -2
- package/dist/{chunk-RYIRARLV.js → chunk-THWT4V3Z.js} +2 -2
- package/dist/{chunk-RYIRARLV.js.map → chunk-THWT4V3Z.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/runtime.js +2 -2
- package/dist/testing.d.ts +84 -20
- package/dist/testing.js +165 -21
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-FYJRMV7A.js.map → chunk-42HQLHVA.js.map} +0 -0
- /package/dist/{chunk-PZEM2VOI.js.map → chunk-MLFHVYF7.js.map} +0 -0
- /package/dist/{chunk-64FUL7XN.js.map → chunk-OFIDC7DJ.js.map} +0 -0
package/REFERENCE.md
CHANGED
|
@@ -48,7 +48,7 @@ _No JSDoc summary is available yet._
|
|
|
48
48
|
|
|
49
49
|
```ts
|
|
50
50
|
const DREAMBOARD_SDK_PACKAGES: {
|
|
51
|
-
readonly "@dreamboard-games/sdk": "0.4.0-alpha.
|
|
51
|
+
readonly "@dreamboard-games/sdk": "0.4.0-alpha.13";
|
|
52
52
|
};
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -57,7 +57,7 @@ _No JSDoc summary is available yet._
|
|
|
57
57
|
### DREAMBOARD_SDK_VERSION
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
|
-
const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.
|
|
60
|
+
const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.13";
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
_No JSDoc summary is available yet._
|
|
@@ -96,7 +96,7 @@ _No JSDoc summary is available yet._
|
|
|
96
96
|
|
|
97
97
|
```ts
|
|
98
98
|
const DREAMBOARD_SDK_PACKAGES: {
|
|
99
|
-
readonly "@dreamboard-games/sdk": "0.4.0-alpha.
|
|
99
|
+
readonly "@dreamboard-games/sdk": "0.4.0-alpha.13";
|
|
100
100
|
};
|
|
101
101
|
```
|
|
102
102
|
|
|
@@ -105,7 +105,7 @@ _No JSDoc summary is available yet._
|
|
|
105
105
|
### DREAMBOARD_SDK_VERSION
|
|
106
106
|
|
|
107
107
|
```ts
|
|
108
|
-
const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.
|
|
108
|
+
const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.13";
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
_No JSDoc summary is available yet._
|
|
@@ -22079,8 +22079,8 @@ _No JSDoc summary is available yet._
|
|
|
22079
22079
|
|
|
22080
22080
|
```ts
|
|
22081
22081
|
function compareUIParityObservations(
|
|
22082
|
-
expected:
|
|
22083
|
-
actual:
|
|
22082
|
+
expected: UIParityObservation,
|
|
22083
|
+
actual: UIParityObservation,
|
|
22084
22084
|
): UIParityComparisonResult;
|
|
22085
22085
|
```
|
|
22086
22086
|
|
|
@@ -22212,7 +22212,22 @@ function createUIParityObservationFromFixture({
|
|
|
22212
22212
|
fixtureDigest,
|
|
22213
22213
|
screenshotsByStepId,
|
|
22214
22214
|
diagnostics,
|
|
22215
|
-
}: CreateUIParityObservationFromFixtureOptions):
|
|
22215
|
+
}: CreateUIParityObservationFromFixtureOptions): UIParityObservation;
|
|
22216
|
+
```
|
|
22217
|
+
|
|
22218
|
+
_No JSDoc summary is available yet._
|
|
22219
|
+
|
|
22220
|
+
### CreateUIParityObservationFromFixtureOptions
|
|
22221
|
+
|
|
22222
|
+
```ts
|
|
22223
|
+
interface CreateUIParityObservationFromFixtureOptions {
|
|
22224
|
+
readonly fixture: UIScenarioFixture;
|
|
22225
|
+
readonly sdkCandidateDigest: string;
|
|
22226
|
+
readonly environment: UIParityObservationEnvironment;
|
|
22227
|
+
readonly fixtureDigest?: string;
|
|
22228
|
+
readonly screenshotsByStepId?: Readonly<Record<string, string>>;
|
|
22229
|
+
readonly diagnostics?: readonly UIParityDiagnostic[];
|
|
22230
|
+
}
|
|
22216
22231
|
```
|
|
22217
22232
|
|
|
22218
22233
|
_No JSDoc summary is available yet._
|
|
@@ -22630,10 +22645,26 @@ function isStaleContractArtifactError(
|
|
|
22630
22645
|
|
|
22631
22646
|
_No JSDoc summary is available yet._
|
|
22632
22647
|
|
|
22633
|
-
###
|
|
22648
|
+
### parseUIParityObservation
|
|
22649
|
+
|
|
22650
|
+
```ts
|
|
22651
|
+
function parseUIParityObservation(value: unknown): UIParityObservation;
|
|
22652
|
+
```
|
|
22653
|
+
|
|
22654
|
+
_No JSDoc summary is available yet._
|
|
22655
|
+
|
|
22656
|
+
### parseUIParityRealHostReceipt
|
|
22657
|
+
|
|
22658
|
+
```ts
|
|
22659
|
+
function parseUIParityRealHostReceipt(value: unknown): UIParityRealHostReceipt;
|
|
22660
|
+
```
|
|
22661
|
+
|
|
22662
|
+
_No JSDoc summary is available yet._
|
|
22663
|
+
|
|
22664
|
+
### parseUIParityRunInput
|
|
22634
22665
|
|
|
22635
22666
|
```ts
|
|
22636
|
-
function
|
|
22667
|
+
function parseUIParityRunInput(value: unknown): UIParityRunInput;
|
|
22637
22668
|
```
|
|
22638
22669
|
|
|
22639
22670
|
_No JSDoc summary is available yet._
|
|
@@ -23418,6 +23449,184 @@ declare const uiFixtureProtocolStepSchema: ...;
|
|
|
23418
23449
|
|
|
23419
23450
|
_No JSDoc summary is available yet._
|
|
23420
23451
|
|
|
23452
|
+
### UIParityArtifactReference
|
|
23453
|
+
|
|
23454
|
+
```ts
|
|
23455
|
+
interface UIParityArtifactReference {
|
|
23456
|
+
readonly path: string;
|
|
23457
|
+
readonly sha256: string;
|
|
23458
|
+
}
|
|
23459
|
+
```
|
|
23460
|
+
|
|
23461
|
+
_No JSDoc summary is available yet._
|
|
23462
|
+
|
|
23463
|
+
### UIParityComparisonFailure
|
|
23464
|
+
|
|
23465
|
+
```ts
|
|
23466
|
+
interface UIParityComparisonFailure {
|
|
23467
|
+
readonly code: UIParityFailureCode;
|
|
23468
|
+
readonly message: string;
|
|
23469
|
+
readonly path: string;
|
|
23470
|
+
readonly expected: unknown;
|
|
23471
|
+
readonly actual: unknown;
|
|
23472
|
+
readonly checkpointIndex?: number;
|
|
23473
|
+
readonly stepId?: string;
|
|
23474
|
+
}
|
|
23475
|
+
```
|
|
23476
|
+
|
|
23477
|
+
_No JSDoc summary is available yet._
|
|
23478
|
+
|
|
23479
|
+
### UIParityComparisonResult
|
|
23480
|
+
|
|
23481
|
+
```ts
|
|
23482
|
+
type UIParityComparisonResult =
|
|
23483
|
+
| {
|
|
23484
|
+
readonly ok: true;
|
|
23485
|
+
}
|
|
23486
|
+
| {
|
|
23487
|
+
readonly ok: false;
|
|
23488
|
+
readonly failure: UIParityComparisonFailure;
|
|
23489
|
+
};
|
|
23490
|
+
```
|
|
23491
|
+
|
|
23492
|
+
_No JSDoc summary is available yet._
|
|
23493
|
+
|
|
23494
|
+
### UIParityDiagnostic
|
|
23495
|
+
|
|
23496
|
+
```ts
|
|
23497
|
+
interface UIParityDiagnostic {
|
|
23498
|
+
readonly code: string;
|
|
23499
|
+
readonly message: string;
|
|
23500
|
+
}
|
|
23501
|
+
```
|
|
23502
|
+
|
|
23503
|
+
_No JSDoc summary is available yet._
|
|
23504
|
+
|
|
23505
|
+
### UIParityFailureCode
|
|
23506
|
+
|
|
23507
|
+
```ts
|
|
23508
|
+
type UIParityFailureCode =
|
|
23509
|
+
| "candidate-mismatch"
|
|
23510
|
+
| "fixture-source-mismatch"
|
|
23511
|
+
| "protocol-mismatch"
|
|
23512
|
+
| "interaction-resolution-mismatch"
|
|
23513
|
+
| "preparation-mismatch"
|
|
23514
|
+
| "draft-mismatch"
|
|
23515
|
+
| "submission-mismatch"
|
|
23516
|
+
| "projection-mismatch"
|
|
23517
|
+
| "semantic-snapshot-mismatch"
|
|
23518
|
+
| "visual-mismatch"
|
|
23519
|
+
| "host-setup-failure";
|
|
23520
|
+
```
|
|
23521
|
+
|
|
23522
|
+
_No JSDoc summary is available yet._
|
|
23523
|
+
|
|
23524
|
+
### UIParityObservation
|
|
23525
|
+
|
|
23526
|
+
```ts
|
|
23527
|
+
interface UIParityObservation { ... }
|
|
23528
|
+
```
|
|
23529
|
+
|
|
23530
|
+
_No JSDoc summary is available yet._
|
|
23531
|
+
|
|
23532
|
+
### UIParityObservationCheckpoint
|
|
23533
|
+
|
|
23534
|
+
```ts
|
|
23535
|
+
interface UIParityObservationCheckpoint { ... }
|
|
23536
|
+
```
|
|
23537
|
+
|
|
23538
|
+
_No JSDoc summary is available yet._
|
|
23539
|
+
|
|
23540
|
+
### UIParityObservationEnvironment
|
|
23541
|
+
|
|
23542
|
+
```ts
|
|
23543
|
+
interface UIParityObservationEnvironment {
|
|
23544
|
+
readonly project: string;
|
|
23545
|
+
readonly viewport: UIParityViewport;
|
|
23546
|
+
}
|
|
23547
|
+
```
|
|
23548
|
+
|
|
23549
|
+
_No JSDoc summary is available yet._
|
|
23550
|
+
|
|
23551
|
+
### UIParityObservationProvenance
|
|
23552
|
+
|
|
23553
|
+
```ts
|
|
23554
|
+
interface UIParityObservationProvenance {
|
|
23555
|
+
readonly kind:
|
|
23556
|
+
| "fixture-expectation"
|
|
23557
|
+
| "source-workbench"
|
|
23558
|
+
| "packed-real-host";
|
|
23559
|
+
readonly evidence?: string;
|
|
23560
|
+
}
|
|
23561
|
+
```
|
|
23562
|
+
|
|
23563
|
+
_No JSDoc summary is available yet._
|
|
23564
|
+
|
|
23565
|
+
### UIParityRealHostReceipt
|
|
23566
|
+
|
|
23567
|
+
```ts
|
|
23568
|
+
interface UIParityRealHostReceipt { ... }
|
|
23569
|
+
```
|
|
23570
|
+
|
|
23571
|
+
_No JSDoc summary is available yet._
|
|
23572
|
+
|
|
23573
|
+
### UIParityReceiptComparison
|
|
23574
|
+
|
|
23575
|
+
```ts
|
|
23576
|
+
interface UIParityReceiptComparison {
|
|
23577
|
+
readonly scenarioId: string;
|
|
23578
|
+
readonly actual: string;
|
|
23579
|
+
readonly comparison: string;
|
|
23580
|
+
readonly evidence?: string;
|
|
23581
|
+
}
|
|
23582
|
+
```
|
|
23583
|
+
|
|
23584
|
+
_No JSDoc summary is available yet._
|
|
23585
|
+
|
|
23586
|
+
### UIParityRunInput
|
|
23587
|
+
|
|
23588
|
+
```ts
|
|
23589
|
+
interface UIParityRunInput {
|
|
23590
|
+
readonly schemaVersion: 2;
|
|
23591
|
+
readonly sdk: {
|
|
23592
|
+
readonly tarball: UIParityArtifactReference;
|
|
23593
|
+
};
|
|
23594
|
+
readonly referenceBundle: UIParityArtifactReference;
|
|
23595
|
+
readonly fixtureBundle: {
|
|
23596
|
+
readonly index: UIParityArtifactReference;
|
|
23597
|
+
readonly scenarios: readonly UIParityRunScenario[];
|
|
23598
|
+
};
|
|
23599
|
+
readonly project: string;
|
|
23600
|
+
}
|
|
23601
|
+
```
|
|
23602
|
+
|
|
23603
|
+
_No JSDoc summary is available yet._
|
|
23604
|
+
|
|
23605
|
+
### UIParityRunScenario
|
|
23606
|
+
|
|
23607
|
+
```ts
|
|
23608
|
+
interface UIParityRunScenario {
|
|
23609
|
+
readonly id: string;
|
|
23610
|
+
readonly fixture: UIParityArtifactReference;
|
|
23611
|
+
readonly renderModule: UIParityArtifactReference;
|
|
23612
|
+
readonly expectation: UIParityArtifactReference;
|
|
23613
|
+
readonly source: UIParityArtifactReference;
|
|
23614
|
+
}
|
|
23615
|
+
```
|
|
23616
|
+
|
|
23617
|
+
_No JSDoc summary is available yet._
|
|
23618
|
+
|
|
23619
|
+
### UIParityViewport
|
|
23620
|
+
|
|
23621
|
+
```ts
|
|
23622
|
+
interface UIParityViewport {
|
|
23623
|
+
readonly width: number;
|
|
23624
|
+
readonly height: number;
|
|
23625
|
+
}
|
|
23626
|
+
```
|
|
23627
|
+
|
|
23628
|
+
_No JSDoc summary is available yet._
|
|
23629
|
+
|
|
23421
23630
|
### UIReplayExecution
|
|
23422
23631
|
|
|
23423
23632
|
```ts
|
package/dist/authoring/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
materializeManifest,
|
|
8
8
|
projectAuthoringAdapter,
|
|
9
9
|
validateManifest
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-OFIDC7DJ.js";
|
|
11
|
+
import "../chunk-THWT4V3Z.js";
|
|
12
12
|
import "../chunk-HIH6Y4FA.js";
|
|
13
13
|
import "../chunk-PZ5AY32C.js";
|
|
14
14
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
materializeWorkspace
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-42HQLHVA.js";
|
|
4
|
+
import "./chunk-OFIDC7DJ.js";
|
|
5
5
|
import "./chunk-UNVCT5Z7.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-THWT4V3Z.js";
|
|
7
7
|
import "./chunk-HIH6Y4FA.js";
|
|
8
8
|
import "./chunk-PZ5AY32C.js";
|
|
9
9
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
materializeWorkspace
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-42HQLHVA.js";
|
|
5
|
+
import "./chunk-OFIDC7DJ.js";
|
|
6
6
|
import "./chunk-UNVCT5Z7.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-THWT4V3Z.js";
|
|
8
8
|
import "./chunk-HIH6Y4FA.js";
|
|
9
9
|
import "./chunk-PZ5AY32C.js";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateWorkspaceArtifacts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OFIDC7DJ.js";
|
|
4
4
|
import {
|
|
5
5
|
compareReferenceGameCanonicalStrings
|
|
6
6
|
} from "./chunk-UNVCT5Z7.js";
|
|
@@ -166,4 +166,4 @@ async function isFile(filePath) {
|
|
|
166
166
|
export {
|
|
167
167
|
materializeWorkspace
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-42HQLHVA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GENERATED_AUTHORING_METADATA
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-THWT4V3Z.js";
|
|
4
4
|
|
|
5
5
|
// src/package-set.ts
|
|
6
6
|
var DREAMBOARD_SDK_VERSION = GENERATED_AUTHORING_METADATA.sdkVersion;
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
DREAMBOARD_SDK_PACKAGES,
|
|
19
19
|
DREAMBOARD_SDK_PACKAGE_SET
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-MLFHVYF7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GENERATED_AUTHORING_METADATA
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-THWT4V3Z.js";
|
|
4
4
|
import {
|
|
5
5
|
AUTHORITATIVE_GENERATED_FILES,
|
|
6
6
|
SEED_FILES,
|
|
@@ -529,4 +529,4 @@ export {
|
|
|
529
529
|
MANIFEST_CONFORMANCE_CASES,
|
|
530
530
|
projectAuthoringAdapter
|
|
531
531
|
};
|
|
532
|
-
//# sourceMappingURL=chunk-
|
|
532
|
+
//# sourceMappingURL=chunk-OFIDC7DJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/authoring/generated-metadata.ts
|
|
2
2
|
var GENERATED_AUTHORING_METADATA = {
|
|
3
|
-
sdkVersion: "0.4.0-alpha.
|
|
3
|
+
sdkVersion: "0.4.0-alpha.13",
|
|
4
4
|
codegenVersion: "0.3.0-alpha.0",
|
|
5
5
|
manifestSchemaVersion: 2,
|
|
6
6
|
generatedArtifactSchemaVersion: 1
|
|
@@ -9,4 +9,4 @@ var GENERATED_AUTHORING_METADATA = {
|
|
|
9
9
|
export {
|
|
10
10
|
GENERATED_AUTHORING_METADATA
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-THWT4V3Z.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/authoring/generated-metadata.ts"],"sourcesContent":["// Generated by scripts/generate-authoring-metadata.mjs. Do not edit by hand.\nimport type { GeneratedAuthoringMetadataV1 } from \"./types.js\";\n\nexport const GENERATED_AUTHORING_METADATA = {\n sdkVersion: \"0.4.0-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/authoring/generated-metadata.ts"],"sourcesContent":["// Generated by scripts/generate-authoring-metadata.mjs. Do not edit by hand.\nimport type { GeneratedAuthoringMetadataV1 } from \"./types.js\";\n\nexport const GENERATED_AUTHORING_METADATA = {\n sdkVersion: \"0.4.0-alpha.13\",\n codegenVersion: \"0.3.0-alpha.0\",\n manifestSchemaVersion: 2,\n generatedArtifactSchemaVersion: 1,\n} as const satisfies GeneratedAuthoringMetadataV1;\n"],"mappings":";AAGO,IAAM,+BAA+B;AAAA,EAC1C,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,uBAAuB;AAAA,EACvB,gCAAgC;AAClC;","names":[]}
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DREAMBOARD_SDK_PACKAGES,
|
|
3
3
|
DREAMBOARD_SDK_PACKAGE_SET,
|
|
4
4
|
DREAMBOARD_SDK_VERSION
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MLFHVYF7.js";
|
|
6
|
+
import "./chunk-THWT4V3Z.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
package/dist/package-set.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.
|
|
1
|
+
declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.13";
|
|
2
2
|
declare const DREAMBOARD_SDK_PACKAGES: {
|
|
3
|
-
readonly "@dreamboard-games/sdk": "0.4.0-alpha.
|
|
3
|
+
readonly "@dreamboard-games/sdk": "0.4.0-alpha.13";
|
|
4
4
|
};
|
|
5
5
|
type DreamboardSdkPackageName = keyof typeof DREAMBOARD_SDK_PACKAGES;
|
|
6
6
|
type DreamboardSdkPackageSet = {
|
package/dist/package-set.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DREAMBOARD_SDK_PACKAGES,
|
|
3
3
|
DREAMBOARD_SDK_PACKAGE_SET,
|
|
4
4
|
DREAMBOARD_SDK_VERSION
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MLFHVYF7.js";
|
|
6
|
+
import "./chunk-THWT4V3Z.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
package/dist/runtime.js
CHANGED
|
@@ -20,8 +20,8 @@ import "./chunk-WHR5UW3F.js";
|
|
|
20
20
|
import "./chunk-PF7L4BMG.js";
|
|
21
21
|
import {
|
|
22
22
|
DREAMBOARD_SDK_VERSION
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-MLFHVYF7.js";
|
|
24
|
+
import "./chunk-THWT4V3Z.js";
|
|
25
25
|
import {
|
|
26
26
|
DREAMBOARD_PLUGIN_PROTOCOL,
|
|
27
27
|
DREAMBOARD_PLUGIN_PROTOCOL_VERSION,
|
package/dist/testing.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { g as ScenarioIdentity, f as PerspectiveSelector, e as InspectScenarioRe
|
|
|
5
5
|
export { I as InspectAction, b as InspectInteraction, c as InspectInteractionInput, j as assertScenario, p as probeScenarioCommand, r as replayScenario } from './types-B-FI0jrx.js';
|
|
6
6
|
import { w as wire, a as ReducerBundleContract } from './index.d-C7Ztirg6.js';
|
|
7
7
|
import { R as RuntimeJson } from './runtime-json-CQ9QbLZ5.js';
|
|
8
|
-
import { B, y, z as z$1, v, E } from './protocol-Bcas2Xa8.js';
|
|
8
|
+
import { B, y, z as z$1, v, e, E } from './protocol-Bcas2Xa8.js';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
import { r as BrowserInteractionIntentRequest, l as BrowserInteractionEffectRequest } from './types-DJj5MJkl.js';
|
|
11
11
|
import { b as PluginTransport, P as PluginRuntimeClient } from './types-CR9yEmXt.js';
|
|
@@ -646,44 +646,106 @@ interface UIParityViewport {
|
|
|
646
646
|
readonly width: number;
|
|
647
647
|
readonly height: number;
|
|
648
648
|
}
|
|
649
|
-
interface
|
|
649
|
+
interface UIParityObservationEnvironment {
|
|
650
650
|
readonly project: string;
|
|
651
651
|
readonly viewport: UIParityViewport;
|
|
652
652
|
}
|
|
653
|
-
interface
|
|
653
|
+
interface UIParityDiagnostic {
|
|
654
654
|
readonly code: string;
|
|
655
655
|
readonly message: string;
|
|
656
656
|
}
|
|
657
|
-
interface
|
|
657
|
+
interface UIParityObservationCheckpoint {
|
|
658
658
|
readonly stepId: string;
|
|
659
659
|
readonly interactionKey?: string;
|
|
660
660
|
readonly interactionId?: string;
|
|
661
661
|
readonly actuatorId?: string;
|
|
662
662
|
readonly descriptorDigest?: string;
|
|
663
663
|
readonly draftDigest?: string;
|
|
664
|
-
readonly
|
|
665
|
-
readonly actionSetVersion: string;
|
|
666
|
-
readonly perspectivePlayerId: string | null;
|
|
664
|
+
readonly basis: e;
|
|
667
665
|
readonly projectionDigest: string;
|
|
668
666
|
readonly semanticDigest: string;
|
|
669
667
|
readonly submissionDigest?: string;
|
|
670
668
|
readonly screenshot?: string;
|
|
671
669
|
}
|
|
672
|
-
interface
|
|
670
|
+
interface UIParityObservationProvenance {
|
|
673
671
|
readonly kind: "fixture-expectation" | "source-workbench" | "packed-real-host";
|
|
674
672
|
readonly evidence?: string;
|
|
675
673
|
}
|
|
676
|
-
interface
|
|
677
|
-
readonly schemaVersion:
|
|
674
|
+
interface UIParityObservation {
|
|
675
|
+
readonly schemaVersion: 2;
|
|
678
676
|
readonly scenarioId: string;
|
|
679
677
|
readonly fixtureDigest: string;
|
|
680
678
|
readonly sdkCandidateDigest: string;
|
|
681
679
|
readonly pluginRuntimeProtocol: 4;
|
|
682
680
|
readonly browserInteractionProtocol: string;
|
|
683
|
-
readonly environment:
|
|
684
|
-
readonly provenance:
|
|
685
|
-
readonly checkpoints: readonly
|
|
686
|
-
readonly diagnostics: readonly
|
|
681
|
+
readonly environment: UIParityObservationEnvironment;
|
|
682
|
+
readonly provenance: UIParityObservationProvenance;
|
|
683
|
+
readonly checkpoints: readonly UIParityObservationCheckpoint[];
|
|
684
|
+
readonly diagnostics: readonly UIParityDiagnostic[];
|
|
685
|
+
}
|
|
686
|
+
interface UIParityArtifactReference {
|
|
687
|
+
readonly path: string;
|
|
688
|
+
readonly sha256: string;
|
|
689
|
+
}
|
|
690
|
+
interface UIParityRunScenario {
|
|
691
|
+
readonly id: string;
|
|
692
|
+
readonly fixture: UIParityArtifactReference;
|
|
693
|
+
readonly renderModule: UIParityArtifactReference;
|
|
694
|
+
readonly expectation: UIParityArtifactReference;
|
|
695
|
+
readonly source: UIParityArtifactReference;
|
|
696
|
+
}
|
|
697
|
+
interface UIParityRunInput {
|
|
698
|
+
readonly schemaVersion: 2;
|
|
699
|
+
readonly sdk: {
|
|
700
|
+
readonly tarball: UIParityArtifactReference;
|
|
701
|
+
};
|
|
702
|
+
readonly referenceBundle: UIParityArtifactReference;
|
|
703
|
+
readonly fixtureBundle: {
|
|
704
|
+
readonly index: UIParityArtifactReference;
|
|
705
|
+
readonly scenarios: readonly UIParityRunScenario[];
|
|
706
|
+
};
|
|
707
|
+
readonly project: string;
|
|
708
|
+
}
|
|
709
|
+
interface UIParityReceiptComparison {
|
|
710
|
+
readonly scenarioId: string;
|
|
711
|
+
readonly actual: string;
|
|
712
|
+
readonly comparison: string;
|
|
713
|
+
readonly evidence?: string;
|
|
714
|
+
}
|
|
715
|
+
interface UIParityRealHostReceipt {
|
|
716
|
+
readonly schemaVersion: 2;
|
|
717
|
+
readonly kind: "dreamboard-ui-real-host-parity";
|
|
718
|
+
readonly mode: "real-host-parity";
|
|
719
|
+
readonly result: "passed";
|
|
720
|
+
readonly realHostExecutor: true;
|
|
721
|
+
readonly input: UIParityArtifactReference;
|
|
722
|
+
readonly sdkTarballSha256: string;
|
|
723
|
+
readonly fixtureBundleSha256: string;
|
|
724
|
+
readonly scenarios: readonly {
|
|
725
|
+
readonly id: string;
|
|
726
|
+
readonly fixtureDigest: string;
|
|
727
|
+
}[];
|
|
728
|
+
readonly source: {
|
|
729
|
+
readonly result: "passed";
|
|
730
|
+
readonly comparisons: readonly UIParityReceiptComparison[];
|
|
731
|
+
};
|
|
732
|
+
readonly internal: {
|
|
733
|
+
readonly result: "passed";
|
|
734
|
+
readonly comparisons: ReadonlyArray<{
|
|
735
|
+
readonly scenarioId: string;
|
|
736
|
+
readonly actual: string;
|
|
737
|
+
readonly expectationComparison: string;
|
|
738
|
+
readonly sourceComparison: string;
|
|
739
|
+
}>;
|
|
740
|
+
};
|
|
741
|
+
readonly project: string;
|
|
742
|
+
readonly host: {
|
|
743
|
+
readonly route: string;
|
|
744
|
+
readonly pluginIframe: true;
|
|
745
|
+
readonly pluginSessionGateway: true;
|
|
746
|
+
readonly playwright: "chromium";
|
|
747
|
+
readonly webLogPath: string;
|
|
748
|
+
};
|
|
687
749
|
}
|
|
688
750
|
type UIParityFailureCode = "candidate-mismatch" | "fixture-source-mismatch" | "protocol-mismatch" | "interaction-resolution-mismatch" | "preparation-mismatch" | "draft-mismatch" | "submission-mismatch" | "projection-mismatch" | "semantic-snapshot-mismatch" | "visual-mismatch" | "host-setup-failure";
|
|
689
751
|
interface UIParityComparisonFailure {
|
|
@@ -704,14 +766,16 @@ type UIParityComparisonResult = {
|
|
|
704
766
|
interface CreateUIParityObservationFromFixtureOptions {
|
|
705
767
|
readonly fixture: UIScenarioFixture;
|
|
706
768
|
readonly sdkCandidateDigest: string;
|
|
707
|
-
readonly environment:
|
|
769
|
+
readonly environment: UIParityObservationEnvironment;
|
|
708
770
|
readonly fixtureDigest?: string;
|
|
709
771
|
readonly screenshotsByStepId?: Readonly<Record<string, string>>;
|
|
710
|
-
readonly diagnostics?: readonly
|
|
772
|
+
readonly diagnostics?: readonly UIParityDiagnostic[];
|
|
711
773
|
}
|
|
712
|
-
declare function createUIParityObservationFromFixture({ fixture, sdkCandidateDigest, environment, fixtureDigest, screenshotsByStepId, diagnostics, }: CreateUIParityObservationFromFixtureOptions):
|
|
713
|
-
declare function
|
|
714
|
-
declare function compareUIParityObservations(expected:
|
|
774
|
+
declare function createUIParityObservationFromFixture({ fixture, sdkCandidateDigest, environment, fixtureDigest, screenshotsByStepId, diagnostics, }: CreateUIParityObservationFromFixtureOptions): UIParityObservation;
|
|
775
|
+
declare function parseUIParityObservation(value: unknown): UIParityObservation;
|
|
776
|
+
declare function compareUIParityObservations(expected: UIParityObservation, actual: UIParityObservation): UIParityComparisonResult;
|
|
777
|
+
declare function parseUIParityRunInput(value: unknown): UIParityRunInput;
|
|
778
|
+
declare function parseUIParityRealHostReceipt(value: unknown): UIParityRealHostReceipt;
|
|
715
779
|
|
|
716
780
|
interface FixtureHostEvent {
|
|
717
781
|
readonly sequence: number;
|
|
@@ -811,4 +875,4 @@ declare function drag(options: DragReplayStepOptions): UIScenarioReplayStep;
|
|
|
811
875
|
declare function submit(options: ReplayStepOptions): UIScenarioReplayStep;
|
|
812
876
|
declare function assertStep(stepId: string, expect: UIStepExpectation): UIScenarioReplayStep;
|
|
813
877
|
|
|
814
|
-
export { ActorRef, type CompilePluginProtocolTapeOptions, type CompileUIScenarioFixtureOptions, type CreateFixtureHostHarnessOptions, type CreateReducerScenarioRunnerOptions, type DeterministicIdFactory, ExpectFn, type ExploreScenarioOptions, type ExploreScenarioResult, type ExploreSeedResult, type ExploreTransitionResult, type FixtureEnvironmentInit, type FixtureHostEvent, type FixtureHostHarness, FixturePluginRuntime, FlowDiagnostic, InspectEntropy, InspectNode, type InspectScenarioOptions, InspectScenarioResult, PerspectiveRef, PerspectiveSelector, type PluginProtocolTape, type PortableSemanticReplayStep, type ProtocolUIScenarioAuthority, type ReducerScenarioBundle, type ReducerScenarioDiagnostic, type ReducerScenarioExchange, type ReducerScenarioFrame, type ReducerScenarioOperation, type ReducerScenarioRunner, type ReducerScenarioTrace, type ReducerScenarioViewer, type ReducerUIScenarioAuthority, ScenarioAssertionError, ScenarioCheckpoint, ScenarioCommand, ScenarioDispatchTraceEntry, ScenarioIdentity, ScenarioReplayDefinition, Sha256Digest, SnapshotMatcherHandler, type UIFixtureFrame, type UIFixtureProtocolStep, type UIReplayExecution, type UIReplayIdentityCandidate, type UIReplayRequest, type UIResolvedReplayIdentity, type UIScenarioAuthority, type UIScenarioAuthorityKind, type UIScenarioDefinition, type UIScenarioEnvironmentDefinition, type UIScenarioFixture, type UIScenarioFixtureBundleIndex, type UIScenarioReplayStep, type UIStepExpectation, UI_SCENARIO_FIXTURE_BUNDLE_SCHEMA_VERSION, UI_SCENARIO_FIXTURE_PLUGIN_RUNTIME_PROTOCOL, UI_SCENARIO_FIXTURE_SCHEMA_VERSION, UI_SCENARIO_FIXTURE_SUPPORTED_BROWSER_PROTOCOL_MAJOR, activate, assertDeterministicUIScenarioFixture, assertStep, assertSupportedBrowserInteractionProtocol, assertUIStepExpectationSatisfied, assertUniqueReplayIdentity, canonicalUIFixtureJson, canonicalizeUIFixtureJson, canonicalizeUIScenarioFixture, compareUIParityObservations, compilePluginProtocolTape, compileUIScenarioFixture, createDeterministicIdFactory, createExpectApi, createFixtureHostHarness, createReducerScenarioRunner, createUIParityObservationFromFixture, defaultFixtureEnvironmentInit, defineUIScenario, digestPluginProtocolTape, digestUIFixtureJson, digestUIFixtureRequest, digestUIFixtureTransportRequest, digestUIScenarioFixture, drag, exploreScenario, fill, fixtureEnvironmentInitFor, inspectScenario, isSha256Digest,
|
|
878
|
+
export { ActorRef, type CompilePluginProtocolTapeOptions, type CompileUIScenarioFixtureOptions, type CreateFixtureHostHarnessOptions, type CreateReducerScenarioRunnerOptions, type CreateUIParityObservationFromFixtureOptions, type DeterministicIdFactory, ExpectFn, type ExploreScenarioOptions, type ExploreScenarioResult, type ExploreSeedResult, type ExploreTransitionResult, type FixtureEnvironmentInit, type FixtureHostEvent, type FixtureHostHarness, FixturePluginRuntime, FlowDiagnostic, InspectEntropy, InspectNode, type InspectScenarioOptions, InspectScenarioResult, PerspectiveRef, PerspectiveSelector, type PluginProtocolTape, type PortableSemanticReplayStep, type ProtocolUIScenarioAuthority, type ReducerScenarioBundle, type ReducerScenarioDiagnostic, type ReducerScenarioExchange, type ReducerScenarioFrame, type ReducerScenarioOperation, type ReducerScenarioRunner, type ReducerScenarioTrace, type ReducerScenarioViewer, type ReducerUIScenarioAuthority, ScenarioAssertionError, ScenarioCheckpoint, ScenarioCommand, ScenarioDispatchTraceEntry, ScenarioIdentity, ScenarioReplayDefinition, Sha256Digest, SnapshotMatcherHandler, type UIFixtureFrame, type UIFixtureProtocolStep, type UIParityArtifactReference, type UIParityComparisonFailure, type UIParityComparisonResult, type UIParityDiagnostic, type UIParityFailureCode, type UIParityObservation, type UIParityObservationCheckpoint, type UIParityObservationEnvironment, type UIParityObservationProvenance, type UIParityRealHostReceipt, type UIParityReceiptComparison, type UIParityRunInput, type UIParityRunScenario, type UIParityViewport, type UIReplayExecution, type UIReplayIdentityCandidate, type UIReplayRequest, type UIResolvedReplayIdentity, type UIScenarioAuthority, type UIScenarioAuthorityKind, type UIScenarioDefinition, type UIScenarioEnvironmentDefinition, type UIScenarioFixture, type UIScenarioFixtureBundleIndex, type UIScenarioReplayStep, type UIStepExpectation, UI_SCENARIO_FIXTURE_BUNDLE_SCHEMA_VERSION, UI_SCENARIO_FIXTURE_PLUGIN_RUNTIME_PROTOCOL, UI_SCENARIO_FIXTURE_SCHEMA_VERSION, UI_SCENARIO_FIXTURE_SUPPORTED_BROWSER_PROTOCOL_MAJOR, activate, assertDeterministicUIScenarioFixture, assertStep, assertSupportedBrowserInteractionProtocol, assertUIStepExpectationSatisfied, assertUniqueReplayIdentity, canonicalUIFixtureJson, canonicalizeUIFixtureJson, canonicalizeUIScenarioFixture, compareUIParityObservations, compilePluginProtocolTape, compileUIScenarioFixture, createDeterministicIdFactory, createExpectApi, createFixtureHostHarness, createReducerScenarioRunner, createUIParityObservationFromFixture, defaultFixtureEnvironmentInit, defineUIScenario, digestPluginProtocolTape, digestUIFixtureJson, digestUIFixtureRequest, digestUIFixtureTransportRequest, digestUIScenarioFixture, drag, exploreScenario, fill, fixtureEnvironmentInitFor, inspectScenario, isSha256Digest, parseUIParityObservation, parseUIParityRealHostReceipt, parseUIParityRunInput, parseUIScenarioFixture, parseUIScenarioFixtureBundleIndex, pluginProtocolTapeSchema, portableSemanticReplayStepSchema, press, serializeUIScenarioFixture, submit, uiFixtureFrameSchema, uiFixtureProtocolStepSchema, uiReplayExecutionSchema, uiReplayRequestSchema, uiResolvedReplayIdentitySchema, uiScenarioFixtureBundleIndexSchema, uiScenarioFixtureSchema, uiScenarioReplayStepSchema, uiStepExpectationSchema };
|