@cratis/chronicle 6.67.5 → 6.67.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/testing/ConstraintKey.d.ts.map +1 -1
- package/dist/testing/ConstraintKey.js +17 -9
- package/dist/testing/ConstraintKey.js.map +1 -1
- package/dist/testing/EventScenario.d.ts.map +1 -1
- package/dist/testing/EventScenario.js +2 -3
- package/dist/testing/EventScenario.js.map +1 -1
- package/dist/testing/InProcessEventPayload.d.ts.map +1 -1
- package/dist/testing/InProcessEventPayload.js +4 -2
- package/dist/testing/InProcessEventPayload.js.map +1 -1
- package/dist/testing/KernelTextHash.d.ts +7 -0
- package/dist/testing/KernelTextHash.d.ts.map +1 -0
- package/dist/testing/KernelTextHash.js +15 -0
- package/dist/testing/KernelTextHash.js.map +1 -0
- package/dist/testing/MeasuredConstraintKeys.d.ts +19 -0
- package/dist/testing/MeasuredConstraintKeys.d.ts.map +1 -0
- package/dist/testing/MeasuredConstraintKeys.js +36 -0
- package/dist/testing/MeasuredConstraintKeys.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/testing/ConstraintKey.ts +17 -9
- package/testing/EventScenario.batches.spec.ts +1 -1
- package/testing/EventScenario.constraint-values.spec.ts +3 -2
- package/testing/EventScenario.fixtures.spec.ts +9 -11
- package/testing/EventScenario.rejections.spec.ts +2 -2
- package/testing/EventScenario.ts +2 -3
- package/testing/InProcessEventPayload.ts +4 -2
- package/testing/KernelTextHash.ts +17 -0
- package/testing/MeasuredConstraintKeys.ts +43 -0
- package/testing/for_EventScenario/when_appending_astral_text/with_plain_text.spec.ts +34 -0
- package/testing/for_EventScenario/when_appending_field_types/field_key_measurements.fixture.ts +162 -0
- package/testing/for_EventScenario/when_appending_field_types/with_field_key_measurements.legacy.spec.ts +16 -0
- package/testing/for_EventScenario/when_appending_field_types/with_field_key_measurements.standard.spec.ts +15 -0
- package/testing/for_EventScenario/when_appending_field_types/with_unproven_schemas.legacy.spec.ts +1 -1
- package/testing/for_KernelTextHash/when_escaping_json/with_supplementary_characters.spec.ts +28 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstraintKey.d.ts","sourceRoot":"","sources":["../../testing/ConstraintKey.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ConstraintKey.d.ts","sourceRoot":"","sources":["../../testing/ConstraintKey.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAK3D,KAAK,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAiE9E,qGAAqG;AACrG,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAClF,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,GAAG,SAAS,CAU1E"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
import { createHash } from 'node:crypto';
|
|
4
4
|
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
5
|
+
import { isMeasuredNumericFormat, isMeasuredText, measuredNumericKey } from './MeasuredConstraintKeys.js';
|
|
5
6
|
// Only characters captured by the packaged oracle, not every valid event-content character.
|
|
6
7
|
const provenString = /^[A-Za-z0-9 .@_:\-|{}$\u00e9]*$/;
|
|
7
8
|
function guidKey(value, name) {
|
|
@@ -30,17 +31,23 @@ function kernelKeyString(value, context, schema) {
|
|
|
30
31
|
if (schema?.format === 'guid')
|
|
31
32
|
return guidKey(value, context.name);
|
|
32
33
|
if (schema?.type === 'number')
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
});
|
|
36
|
-
return scalarKey(value, context.name);
|
|
34
|
+
return schemaNumericKey(value, context, schema.format);
|
|
35
|
+
return scalarKey(value, context);
|
|
37
36
|
}
|
|
38
|
-
function
|
|
39
|
-
if (
|
|
40
|
-
return value;
|
|
37
|
+
function schemaNumericKey(value, context, format) {
|
|
38
|
+
if (isMeasuredNumericFormat(format))
|
|
39
|
+
return measuredNumericKey(value, format, context.name, context.measured);
|
|
40
|
+
return numericKey(value, { ...context, fractions: context.fractions && [undefined, 'double'].includes(format) });
|
|
41
|
+
}
|
|
42
|
+
function scalarKey(value, context) {
|
|
43
|
+
if (typeof value === 'string') {
|
|
44
|
+
const accepted = provenString.test(value) || context.measured && isMeasuredText(value);
|
|
45
|
+
if (accepted)
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
41
48
|
if (typeof value === 'boolean')
|
|
42
49
|
return value ? 'True' : 'False';
|
|
43
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only fixture-backed scalar string and boolean keys are supported.');
|
|
50
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', context.name, 'Only fixture-backed scalar string and boolean keys are supported.');
|
|
44
51
|
}
|
|
45
52
|
function supportsFractions(capture) {
|
|
46
53
|
const unique = capture.uniqueConstraint;
|
|
@@ -63,7 +70,8 @@ export function claimOf(name, capture, event, options) {
|
|
|
63
70
|
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === event.eventType.id.value)?.properties;
|
|
64
71
|
if (properties === undefined)
|
|
65
72
|
return undefined;
|
|
66
|
-
const
|
|
73
|
+
const fractions = options.isolated && supportsFractions(capture);
|
|
74
|
+
const context = { name, fractions, measured: fractions && unique.eventDefinitions.length === 1 };
|
|
67
75
|
const parts = properties.map(property => ({ property,
|
|
68
76
|
raw: kernelKeyString(event.content[property], context, options.schema?.properties?.[property]) }));
|
|
69
77
|
const joined = parts.map(part => part.raw).join('-');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstraintKey.js","sourceRoot":"","sources":["../../testing/ConstraintKey.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"ConstraintKey.js","sourceRoot":"","sources":["../../testing/ConstraintKey.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAK1G,4FAA4F;AAC5F,MAAM,YAAY,GAAG,iCAAiC,CAAC;AAEvD,SAAS,OAAO,CAAC,KAAc,EAAE,IAAY;IACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,gDAAgD,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC1H,MAAM,IAAI,iCAAiC,CAAC,uBAAuB,EAAE,IAAI,EAAE,2CAA2C,CAAC,CAAC;AAC5H,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAa;IACpC,+FAA+F;IAC/F,oGAAoG;IACpG,OAAO,MAAM,CA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AC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrD,OAAO,EAAE,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;AACvH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventScenario.d.ts","sourceRoot":"","sources":["../../testing/EventScenario.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"EventScenario.d.ts","sourceRoot":"","sources":["../../testing/EventScenario.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAYhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AA+HzE,sFAAsF;AACtF,qBAAa,aAAa;IACtB,QAAQ,CAAC,aAAa,EAAE,cAAc,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IAExC,YAAY,OAAO,GAAE,oBAAyB,EAiE7C;IAED,qDAAqD;IACrD,IAAI,QAAQ,IAAI,SAAS,CAKxB;IACK,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAE1F;IACD,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC/F,UAAU,CAAC,MAAM,EAAE,qBAAqB,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAO9F,IAAI,OAAO,IAAI,SAAS,YAAY,EAAE,CAAmE;IACzG,IAAI,cAAc,IAAI,SAAS,aAAa,EAAE,CAA0E;IAExH,+DAA+D;IAC/D,IAAI,IAAI,IAAI;QAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;QAAC,QAAQ,CAAC,cAAc,EAAE,SAAS,aAAa,EAAE,CAAA;KAAE,CAE3G;CACJ"}
|
|
@@ -11,6 +11,7 @@ import { getRemovedConstraintNames } from '../events/constraints/removeConstrain
|
|
|
11
11
|
import { getConstraintMetadata } from '../events/constraints/constraint.js';
|
|
12
12
|
import { InProcessConstraints } from './InProcessConstraints.js';
|
|
13
13
|
import { supportsPropertyOverlap } from './PropertyDefinitionSupport.js';
|
|
14
|
+
import { supportsMeasuredKeySchema } from './MeasuredConstraintKeys.js';
|
|
14
15
|
import { EventScenarioGivenBuilder } from './EventScenarioGivenBuilder.js';
|
|
15
16
|
import { EventScenarioWhenBuilder } from './EventScenarioWhenBuilder.js';
|
|
16
17
|
import { InProcessEventSequence } from './InProcessEventSequence.js';
|
|
@@ -51,9 +52,7 @@ function validateKeySchemas(name, schemas, options) {
|
|
|
51
52
|
fail('Scoped property keys must be schema-backed strings, booleans, Guids or unformatted numbers.');
|
|
52
53
|
}
|
|
53
54
|
for (const schema of schemas) {
|
|
54
|
-
const supported = schema
|
|
55
|
-
schema?.type === 'string' && (schema.format === undefined || schema.format === 'guid') ||
|
|
56
|
-
schema?.type === 'number' && (schema.format === undefined || schema.format === 'double');
|
|
55
|
+
const supported = supportsMeasuredKeySchema(schema, options, schemas.length);
|
|
57
56
|
if (!supported)
|
|
58
57
|
fail(`Unique keys with schema ${schema?.type ?? 'missing'}/${schema?.format ?? 'unformatted'} are not fixture-backed; date, object and other numeric formats require a kernel-backed test.`);
|
|
59
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventScenario.js","sourceRoot":"","sources":["../../testing/EventScenario.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAOhE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,E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,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,4CAA4C,CAAC,CAAC;QACvI,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,MAAc,EAAE,KAAa,EAAE,OAAuB;QAC/D,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAGD,KAAK,CAAC,UAAU,CAAC,cAAgD,EAAE,eAA0C,EAAE,OAAuB;QAClI,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,EAAE,eAA2B,EAAE,OAAO,CAAC,CAAC;QAC/F,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,cAAc,EAAE,eAA4C,CAAC,CAAC;IACvG,CAAC;IACD,IAAI,OAAO,KAA8B,OAAQ,IAAI,CAAC,aAAwC,CAAC,OAAO,CAAC,CAAC,CAAC;IACzG,IAAI,cAAc,KAA+B,OAAQ,IAAI,CAAC,aAAwC,CAAC,cAAc,CAAC,CAAC,CAAC;IAExH,+DAA+D;IAC/D,IAAI,IAAI;QACJ,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1E,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InProcessEventPayload.d.ts","sourceRoot":"","sources":["../../testing/InProcessEventPayload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"InProcessEventPayload.d.ts","sourceRoot":"","sources":["../../testing/InProcessEventPayload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAUhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG,0FAA0F;AAC1F,qBAAa,qBAAqB;IAClB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAAqC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAA1G,YAA6B,WAAW,EAAE,iCAAiC,EAAmB,WAAW,CAAC,EAAE,oBAAoB,YAAA,EAAI;IAEpI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAC/D,cAAc,SAA2C,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQtF;IAED,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAG7E;IAED,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAa5C;IAED,OAAO,CAAC,KAAK;IAKb,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,iBAAiB;CAI5B"}
|
|
@@ -8,6 +8,8 @@ import { EventTypeGeneration } from '../events/EventTypeGeneration.js';
|
|
|
8
8
|
import { Tag } from '../events/Tag.js';
|
|
9
9
|
import { Identity } from '../identity/Identity.js';
|
|
10
10
|
import { matchesEventField } from './EventFieldSchema.js';
|
|
11
|
+
import { kernelEscapedJson } from './KernelTextHash.js';
|
|
12
|
+
import { isMeasuredText } from './MeasuredConstraintKeys.js';
|
|
11
13
|
/** Schema-bound payload validation, canonical hashing, and isolated history snapshots. */
|
|
12
14
|
export class InProcessEventPayload {
|
|
13
15
|
environment;
|
|
@@ -27,7 +29,7 @@ export class InProcessEventPayload {
|
|
|
27
29
|
}
|
|
28
30
|
hash(typeId, source, content) {
|
|
29
31
|
const canonical = Object.fromEntries(Object.entries(content).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0));
|
|
30
|
-
return createHash('sha256').update(`${typeId}|${source}|${JSON.stringify(canonical)}`).digest('base64');
|
|
32
|
+
return createHash('sha256').update(`${typeId}|${source}|${kernelEscapedJson(JSON.stringify(canonical))}`).digest('base64');
|
|
31
33
|
}
|
|
32
34
|
snapshot(event) {
|
|
33
35
|
const eventType = new EventType(new EventTypeId(event.eventType.id.value), new EventTypeGeneration(event.eventType.generation.value), event.eventType.tombstone);
|
|
@@ -70,7 +72,7 @@ export class InProcessEventPayload {
|
|
|
70
72
|
matchesText(value, property) {
|
|
71
73
|
if (property.type !== 'string' || property.format !== undefined)
|
|
72
74
|
return true;
|
|
73
|
-
return
|
|
75
|
+
return isMeasuredText(value);
|
|
74
76
|
}
|
|
75
77
|
matchesConstraint(event, content, key) {
|
|
76
78
|
const metadata = this.environment.catalog.get(event.constructor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InProcessEventPayload.js","sourceRoot":"","sources":["../../testing/InProcessEventPayload.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAoB,MAAM,sBAAsB,CAAC;AAErG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OA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I,QAAQ,CAAC,MAAM,KAAK,SAAS;YAAE,OAAO,IAAI,CAAC;QAC7E,OAAO,cAAc,CAAC,KAAe,CAAC,CAAC;IAC3C,CAAC;IAEO,iBAAiB,CAAC,KAAa,EAAE,OAAgC,EAAE,GAAW;QAClF,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAE,CAAC;QAClE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC5F,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC;IAEO,uBAAuB,CAAC,KAAc,EAAE,OAAgB;QAC5D,sFAAsF;QACtF,wFAAwF;QACxF,IAAI,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;YAAE,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACtG,OAAO,KAAK,KAAK,OAAO,CAAC;IAC7B,CAAC;IAEO,iBAAiB,CAAC,KAAc;QACpC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACtD,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,WAA0B,CAAC,IAAI,EAAE,CAAC,CAAC;IAClG,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kernel hashes JSON written with the relaxed encoder, which escapes every supplementary-plane character
|
|
3
|
+
* as two uppercase UTF-16 escapes while keeping measured BMP characters literal. Only actual surrogate pairs are
|
|
4
|
+
* rewritten, so literal backslash-u text and the stored content are untouched.
|
|
5
|
+
*/
|
|
6
|
+
export declare function kernelEscapedJson(json: string): string;
|
|
7
|
+
//# sourceMappingURL=KernelTextHash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KernelTextHash.d.ts","sourceRoot":"","sources":["../../testing/KernelTextHash.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const surrogatePair = /[\ud800-\udbff][\udc00-\udfff]/g;
|
|
4
|
+
function escapeUnit(unit) {
|
|
5
|
+
return `\\u${unit.charCodeAt(0).toString(16).toUpperCase().padStart(4, '0')}`;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The kernel hashes JSON written with the relaxed encoder, which escapes every supplementary-plane character
|
|
9
|
+
* as two uppercase UTF-16 escapes while keeping measured BMP characters literal. Only actual surrogate pairs are
|
|
10
|
+
* rewritten, so literal backslash-u text and the stored content are untouched.
|
|
11
|
+
*/
|
|
12
|
+
export function kernelEscapedJson(json) {
|
|
13
|
+
return json.replace(surrogatePair, pair => escapeUnit(pair[0]) + escapeUnit(pair[1]));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=KernelTextHash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KernelTextHash.js","sourceRoot":"","sources":["../../testing/KernelTextHash.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,MAAM,aAAa,GAAG,iCAAiC,CAAC;AAExD,SAAS,UAAU,CAAC,IAAY;IAC5B,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAClF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Strings with measured JSON round-trip and kernel content-hash parity; never normalizes Unicode. */
|
|
2
|
+
export declare function isMeasuredText(value: string): boolean;
|
|
3
|
+
type DefinitionShape = {
|
|
4
|
+
scoped: boolean;
|
|
5
|
+
isolated: boolean;
|
|
6
|
+
definitions: number;
|
|
7
|
+
ignoreCasing: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** Existing unique-key schemas plus the isolated decimal/float measurements. */
|
|
10
|
+
export declare function supportsMeasuredKeySchema(schema: {
|
|
11
|
+
type?: string;
|
|
12
|
+
format?: string;
|
|
13
|
+
} | undefined, options: DefinitionShape, properties: number): boolean;
|
|
14
|
+
/** The numeric schemas measured by the raw-JSON oracle, not a promise about other values. */
|
|
15
|
+
export declare function isMeasuredNumericFormat(format: string | undefined): boolean;
|
|
16
|
+
/** Exact input values with matching key spelling, content and hash, in an isolated definition only. */
|
|
17
|
+
export declare function measuredNumericKey(value: unknown, format: string, name: string, enabled: boolean): string;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=MeasuredConstraintKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeasuredConstraintKeys.d.ts","sourceRoot":"","sources":["../../testing/MeasuredConstraintKeys.ts"],"names":[],"mappings":"AAaA,sGAAsG;AACtG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAqC;AAG3F,KAAK,eAAe,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAAC;AAM1G,gFAAgF;AAChF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC5F,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAIzD;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE3E;AAED,uGAAuG;AACvG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAKzG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
4
|
+
// constraints-field-key-measurements.json: exact characters and scalars, not a general Unicode/control range.
|
|
5
|
+
// The unicode flag matches whole scalars, so lone or unmeasured surrogate combinations never match.
|
|
6
|
+
const measuredText = /^[\x00\x01\x08-\x0a\x0c\x0d\x20-\x7e\u00c9\u00df\u00e9\u00f8\u0301\u4eac\u6771\u{10000}\u{10400}\u{1d11e}\u{1f600}\u{1f642}\u{20000}\u{10ffff}]*$/u;
|
|
7
|
+
const numericValues = {
|
|
8
|
+
decimal: [0.1, -1.2345, 1.2345678901234567, 0.000001],
|
|
9
|
+
float: [0.1, -1.2345, 1.2345679]
|
|
10
|
+
};
|
|
11
|
+
/** Strings with measured JSON round-trip and kernel content-hash parity; never normalizes Unicode. */
|
|
12
|
+
export function isMeasuredText(value) { return measuredText.test(value); }
|
|
13
|
+
const basicKeySchemas = new Set(['boolean/undefined', 'string/undefined', 'string/guid', 'number/undefined', 'number/double']);
|
|
14
|
+
function isolatedMeasurement(options, properties) {
|
|
15
|
+
return options.isolated && !options.scoped && !options.ignoreCasing && options.definitions === 1 && properties === 1;
|
|
16
|
+
}
|
|
17
|
+
/** Existing unique-key schemas plus the isolated decimal/float measurements. */
|
|
18
|
+
export function supportsMeasuredKeySchema(schema, options, properties) {
|
|
19
|
+
if (basicKeySchemas.has(`${schema?.type}/${schema?.format}`))
|
|
20
|
+
return true;
|
|
21
|
+
if (schema?.type !== 'number' || !isMeasuredNumericFormat(schema.format))
|
|
22
|
+
return false;
|
|
23
|
+
return isolatedMeasurement(options, properties);
|
|
24
|
+
}
|
|
25
|
+
/** The numeric schemas measured by the raw-JSON oracle, not a promise about other values. */
|
|
26
|
+
export function isMeasuredNumericFormat(format) {
|
|
27
|
+
return format === 'decimal' || format === 'float';
|
|
28
|
+
}
|
|
29
|
+
/** Exact input values with matching key spelling, content and hash, in an isolated definition only. */
|
|
30
|
+
export function measuredNumericKey(value, format, name, enabled) {
|
|
31
|
+
const candidates = enabled ? numericValues[format] ?? [] : [];
|
|
32
|
+
if (typeof value === 'number' && candidates.includes(value))
|
|
33
|
+
return String(value);
|
|
34
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, `Only explicitly measured ${format} numeric key values in isolated, unscoped single-property constraints are fixture-backed.`);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=MeasuredConstraintKeys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeasuredConstraintKeys.js","sourceRoot":"","sources":["../../testing/MeasuredConstraintKeys.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,8GAA8G;A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uG;AACvG,MAAM,UAAU,kBAAkB,CAAC,KAAc,EAAE,MAAc,EAAE,IAAY,EAAE,OAAgB;IAC7F,MAAM,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAClF,MAAM,IAAI,iCAAiC,CAAC,uBAAuB,EAAE,IAAI,EACrE,4BAA4B,MAAM,2FAA2F,CAAC,CAAC;AACvI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["../ArtifactRegistrationResult.ts","../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../WellKnownTelemetryNames.ts","../index.ts","../artifacts/ActivatedArtifact.ts","../artifacts/ArtifactActivationContext.ts","../artifacts/ArtifactCompletionFailed.ts","../artifacts/ArtifactDelivery.ts","../artifacts/ArtifactInvocationContext.ts","../artifacts/ArtifactKind.ts","../artifacts/ArtifactRegistrationAttempt.ts","../artifacts/ClientArtifactsActivator.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/refuseClientHostedObservers.ts","../artifacts/validateArtifactSchemas.ts","../artifacts/withActivatedArtifact.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/resolveEventSubject.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/ChronicleTlsMaterial.ts","../connection/ClientObserversRequireKeepAlive.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/TraceContextMiddleware.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/encodeExplicitFalse.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../connection/for_encodeExplicitFalse/wireFields.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompensateOptions.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventEnrichmentContext.ts","../eventSequences/EventEnrichmentProvider.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/NamedTagsWithRegisteredEventSourceNotSupported.ts","../eventSequences/PreparedBatchAppend.ts","../eventSequences/PreparedSingleAppend.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/WireBatchEvent.ts","../eventSequences/createAppendNotification.ts","../eventSequences/createAppendResult.ts","../eventSequences/enrichEventContent.ts","../eventSequences/ensureNamedTagBatchIsSupported.ts","../eventSequences/index.ts","../eventSequences/prepareBatchAppend.ts","../eventSequences/prepareSingleAppend.ts","../eventSequences/resolveEventSourceRouting.ts","../eventSequences/toContractsCausation.ts","../eventSources/ConcurrencyDimensions.ts","../eventSources/DuplicateEventSourceName.ts","../eventSources/DuplicateEventStreamName.ts","../eventSources/EventRoutingContradictsEventSource.ts","../eventSources/EventSourceDefinition.ts","../eventSources/EventSources.ts","../eventSources/EventStreamDefinition.ts","../eventSources/EventStreamDoesNotBelongToEventSource.ts","../eventSources/EventStreamRequiresEventSource.ts","../eventSources/IEventSources.ts","../eventSources/ResolvedEventRouting.ts","../eventSources/UnknownEventSource.ts","../eventSources/eventSource.ts","../eventSources/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/InvalidNamedTag.ts","../events/NamedTag.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/compensationForDecorator.ts","../events/eventSourceTypeDecorator.ts","../events/eventStreamTypeDecorator.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/handles.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeNamedTags.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintEventSequences.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/UniqueOptions.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/constraints/for_Constraints/when_scoping_to_event_sequences/given/registered_constraints.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../for_ChronicleClient/when_skipping_keep_alive/native-exit-probe.ts","../for_EventStore/when_inspecting_registration/given/an_event_store.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../imports/EventImport.ts","../imports/EventImportSettings.ts","../imports/IEventImport.ts","../imports/ImportChunkRefused.ts","../imports/ImportCouldNotBegin.ts","../imports/ImportOptions.ts","../imports/ImportProgress.ts","../imports/ImportRejection.ts","../imports/ImportResult.ts","../imports/ImportState.ts","../imports/ImportTarget.ts","../imports/ImportWasAbandoned.ts","../imports/ImportsNotSupported.ts","../imports/OnInvalidEvent.ts","../imports/abortable.ts","../imports/beginEventImport.ts","../imports/importEvents.ts","../imports/index.ts","../imports/isTransientImportFailure.ts","../imports/sizeOfImportEvent.ts","../imports/toImportEvent.ts","../imports/toImportProgress.ts","../imports/toImportResult.ts","../imports/for_EventImport/given/a_kernel_import_session.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../logging/ChronicleLogEntry.ts","../logging/ChronicleLogLevel.ts","../logging/DiagChronicleLogger.ts","../logging/IChronicleLogger.ts","../logging/createLogger.ts","../observation/EventHandler.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/FastForwardOutcome.ts","../observation/FastForwardResult.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObservationReconnectBackoff.ts","../observation/ObservationStreamOutcome.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/classifyStreamError.ts","../observation/createHandlerInstanceValidator.ts","../observation/getEventHandlers.ts","../observation/getInstanceMethods.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toFastForwardResult.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../observation/batches/BatchContext.ts","../observation/batches/BatchContextObserver.ts","../observation/batches/BatchContextValues.ts","../observation/batches/BatchMethod.ts","../observation/batches/BatchMethodReturnedAValue.ts","../observation/batches/BatchMethods.ts","../observation/batches/BatchOutcome.ts","../observation/batches/BatchOutcomeKind.ts","../observation/batches/DeferralNotSupportedByKernel.ts","../observation/batches/DeliveredPartition.ts","../observation/batches/EventAndContext.ts","../observation/batches/EventBatch.ts","../observation/batches/EventTypeObservedByMoreThanOneMethod.ts","../observation/batches/InvalidBatchMethod.ts","../observation/batches/ObservationOrigin.ts","../observation/batches/ObservedEventType.ts","../observation/batches/PageMessages.ts","../observation/batches/PartitionFailedInBatch.ts","../observation/batches/PartitionNotInBatch.ts","../observation/batches/PartitionOutcome.ts","../observation/batches/PartitionProblem.ts","../observation/batches/PartitionSettlement.ts","../observation/batches/ReducerMixesBatchAndPerEventMethods.ts","../observation/batches/batchSize.ts","../observation/batches/createBatchContext.ts","../observation/batches/observes.ts","../observation/batches/runConcurrently.ts","../observation/for_ObservationReconnectBackoff/given/a_backoff.ts","../observation/for_ObservationReconnectBackoff/given/a_scripted_stream.ts","../patterns/BehaviorPattern.ts","../patterns/DayOfWeek.ts","../patterns/FacetName.ts","../patterns/FacetSet.ts","../patterns/IPatterns.ts","../patterns/PatternMoment.ts","../patterns/PatternQueryOptions.ts","../patterns/Patterns.ts","../patterns/PatternsAtOptions.ts","../patterns/TimeBucket.ts","../patterns/index.ts","../patterns/toBehaviorPattern.ts","../patterns/toDayOfWeek.ts","../patterns/toOffsetDate.ts","../patterns/toTimeBucket.ts","../projections/ChildrenOrderingNotSupportedByContracts.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/InvalidCausedByProperty.ts","../projections/InvalidEventContextPropertyError.ts","../projections/ProjectionCapabilityProvenance.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionEventSchema.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/captureProjectionProvenance.ts","../projections/causedBy.ts","../projections/childrenOrdering.ts","../projections/childrenOrderingSupport.ts","../projections/constantValueExpression.ts","../projections/eventContextPropertyExpression.ts","../projections/eventContractPath.ts","../projections/index.ts","../projections/invalidEventContextPropertyInProjection.ts","../projections/notSetPropertyPath.ts","../projections/propertyExpressions.ts","../projections/registerProjectionWithRetry.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/ChildrenOrderingAlreadyDefined.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/DictionaryKey.ts","../projections/declarative/FromAllBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/ICompositeKeySetBuilder.ts","../projections/declarative/IFromAllBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/InvalidDictionaryKey.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/declarative/projectionBuilderProvenance.ts","../projections/for_Graphs/given/a_discovered_graph.ts","../projections/for_Graphs/given/a_fake_connection.ts","../projections/for_Graphs/given/a_graph_with_views.ts","../projections/for_Graphs/given/organization.ts","../projections/for_ProjectionDefinitionCompiler/given/compile_model_bound.ts","../projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.ts","../projections/graphs/EdgeMustHaveOneSourceAndOneTarget.ts","../projections/graphs/GraphDeclaredMoreThanOnce.ts","../projections/graphs/GraphDefinitionBuilder.ts","../projections/graphs/GraphEdgeBuilder.ts","../projections/graphs/GraphEdgeFromBuilder.ts","../projections/graphs/GraphEdgeFromModel.ts","../projections/graphs/GraphEdgeModel.ts","../projections/graphs/GraphEdgeRemovedWithBuilder.ts","../projections/graphs/GraphEdgeRemovedWithModel.ts","../projections/graphs/GraphElementCannotBeReadModel.ts","../projections/graphs/GraphHasDuplicateElement.ts","../projections/graphs/GraphKeyPropertyNotFound.ts","../projections/graphs/GraphMappingBuilder.ts","../projections/graphs/GraphMemberMappings.ts","../projections/graphs/GraphModel.ts","../projections/graphs/GraphNameRequired.ts","../projections/graphs/GraphNodeBuilder.ts","../projections/graphs/GraphNodeFromBuilder.ts","../projections/graphs/GraphNodeFromModel.ts","../projections/graphs/GraphNodeModel.ts","../projections/graphs/GraphNodeRemovedWithBuilder.ts","../projections/graphs/GraphNodeRemovedWithModel.ts","../projections/graphs/GraphProjectionBuilder.ts","../projections/graphs/GraphRegistration.ts","../projections/graphs/GraphSchemaWriter.ts","../projections/graphs/Graphs.ts","../projections/graphs/IGraphEdgeBuilder.ts","../projections/graphs/IGraphEdgeFromBuilder.ts","../projections/graphs/IGraphEdgeRemovedWithBuilder.ts","../projections/graphs/IGraphMappingBuilder.ts","../projections/graphs/IGraphNodeBuilder.ts","../projections/graphs/IGraphNodeFromBuilder.ts","../projections/graphs/IGraphNodeRemovedWithBuilder.ts","../projections/graphs/IGraphProjection.ts","../projections/graphs/IGraphProjectionBuilder.ts","../projections/graphs/IGraphs.ts","../projections/graphs/ModelBoundGraphReader.ts","../projections/graphs/NestedObjectInGraph.ts","../projections/graphs/NodeMustHaveExactlyOneKey.ts","../projections/graphs/SetOnceNotSupportedInGraph.ts","../projections/graphs/UnknownGraphEventProperty.ts","../projections/graphs/UnknownGraphNode.ts","../projections/graphs/edge.ts","../projections/graphs/edgeFrom.ts","../projections/graphs/edgeRemovedWith.ts","../projections/graphs/edgeSource.ts","../projections/graphs/edgeTarget.ts","../projections/graphs/graph.ts","../projections/graphs/graphKey.ts","../projections/graphs/graphProjection.ts","../projections/graphs/index.ts","../projections/graphs/isGraphElement.ts","../projections/graphs/node.ts","../projections/graphs/nodeFrom.ts","../projections/graphs/nodeRemovedWith.ts","../projections/graphs/propertyPathOf.ts","../projections/graphs/views/AmbiguousDirection.ts","../projections/graphs/views/DuplicateViewName.ts","../projections/graphs/views/EdgeNotIncidentOnRoot.ts","../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts","../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts","../projections/graphs/views/FollowsOptions.ts","../projections/graphs/views/GraphEdgeDirection.ts","../projections/graphs/views/GraphView.ts","../projections/graphs/views/GraphViewBuildResult.ts","../projections/graphs/views/GraphViewCardinality.ts","../projections/graphs/views/GraphViewDefinition.ts","../projections/graphs/views/GraphViewDefinitionBuilder.ts","../projections/graphs/views/GraphViewDefinitionSerializer.ts","../projections/graphs/views/GraphViewEdgeReference.ts","../projections/graphs/views/GraphViewMember.ts","../projections/graphs/views/GraphViewMemberKind.ts","../projections/graphs/views/GraphViewMemberMetadata.ts","../projections/graphs/views/GraphViewPropertyMember.ts","../projections/graphs/views/GraphViewReason.ts","../projections/graphs/views/GraphViewRelationMember.ts","../projections/graphs/views/GraphViewSchema.ts","../projections/graphs/views/GraphViewSchemaEdge.ts","../projections/graphs/views/GraphViewSchemaNode.ts","../projections/graphs/views/GraphViewSerializerOptions.ts","../projections/graphs/views/RecursiveView.ts","../projections/graphs/views/RelationTargetNotAView.ts","../projections/graphs/views/TargetLabelMismatch.ts","../projections/graphs/views/UnknownEdge.ts","../projections/graphs/views/UnknownEdgeProperty.ts","../projections/graphs/views/UnknownNodeProperty.ts","../projections/graphs/views/ViewIsAlsoSchema.ts","../projections/graphs/views/ViewOfMetadata.ts","../projections/graphs/views/ViewOfOptions.ts","../projections/graphs/views/ViewRootNotANode.ts","../projections/graphs/views/declareGraphViewMember.ts","../projections/graphs/views/follows.ts","../projections/graphs/views/fromEdge.ts","../projections/graphs/views/index.ts","../projections/graphs/views/viewKey.ts","../projections/graphs/views/viewOf.ts","../projections/graphs/views/viewProperty.ts","../projections/modelBound/ConflictingChildrenOrdering.ts","../projections/modelBound/FromAllEventsMetadata.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromAllEvents.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/isModelBoundProjection.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorDelivery.ts","../reactors/ReactorDispatcher.ts","../reactors/ReactorId.ts","../reactors/ReactorObservationTarget.ts","../reactors/ReactorPageDispatcher.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorServices.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../reactors/startAtTail.ts","../reactors/for_Reactors/given/deliver_to_reactor.ts","../reactors/for_Reactors/given/observe_reactor_messages.ts","../reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModelWatcher.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeContext.ts","../readModels/ReadModelChangeType.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelNamingPolicy.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModelWatchOptions.ts","../readModels/ReadModelWatcher.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../readModels/for_ReadModelNamingPolicy/given/registered_read_models.ts","../readModels/for_ReadModelWatcher/given/a_kernel_stream.ts","../readModels/for_ReadModelWatcher/given/a_watched_read_model.ts","../readModels/for_ReadModels/given/Book.ts","../readModels/for_ReadModels/given/BookBorrowed.ts","../readModels/for_ReadModels/given/BookRegistered.ts","../readModels/for_ReadModels/given/BookReturned.ts","../readModels/for_ReadModels/given/a_stored_read_model.ts","../readModels/for_deserializeReadModel/given/Address.ts","../readModels/for_deserializeReadModel/given/a_read_model_with_defaults.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/ReducerObservation.ts","../reducers/ReducerObservationSession.ts","../reducers/Reducers.ts","../reducers/ReductionOutcome.ts","../reducers/index.ts","../reducers/reducer.ts","../reducers/for_Reducers/given/observe_reducer_messages.ts","../reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../telemetry/ChronicleTelemetryOptions.ts","../telemetry/observeOperation.ts","../telemetry/runInBackgroundContext.ts","../telemetry/spanAttributes.ts","../testing/BatchPartitionOutcome.ts","../testing/ConstraintKey.ts","../testing/ConstraintScope.ts","../testing/EventFieldSchema.ts","../testing/EventScenario.ts","../testing/EventScenarioGiven.ts","../testing/EventScenarioGivenBuilder.ts","../testing/EventScenarioOptions.ts","../testing/EventScenarioSeed.ts","../testing/EventScenarioWhen.ts","../testing/EventScenarioWhenBuilder.ts","../testing/IReadModelProcessor.ts","../testing/InProcessAppendMetadata.ts","../testing/InProcessBatchAppend.ts","../testing/InProcessConstraints.ts","../testing/InProcessEventPayload.ts","../testing/InProcessEventReadCriteria.ts","../testing/InProcessEventReadFilter.ts","../testing/InProcessEventSequence.ts","../testing/InProcessEventSequenceEnvironment.ts","../testing/InProcessSingleAppend.ts","../testing/PropertyDefinitionSupport.ts","../testing/ReactorDeliveryResult.ts","../testing/ReactorScenario.ts","../testing/ReactorScenarioOptions.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/ReadModelState.ts","../testing/RecordedReactorSideEffect.ts","../testing/ReducerReadModelProcessor.ts","../testing/ScenarioEvent.ts","../testing/UnsupportedEventSequenceOperation.ts","../testing/UnsupportedReactorOperation.ts","../testing/UnsupportedReducerOperation.ts","../testing/deliverToBatchMethods.ts","../testing/index.ts","../testing/singleAppendRoute.ts","../testing/projections/ProjectionArithmetic.ts","../testing/projections/ProjectionCapabilities.ts","../testing/projections/ProjectionCapabilityReject.ts","../testing/projections/ProjectionCapabilityReporter.ts","../testing/projections/ProjectionChildrenCapabilities.ts","../testing/projections/ProjectionDefinitionCapabilities.ts","../testing/projections/ProjectionEventSchemaResolver.ts","../testing/projections/ProjectionExpressionCapabilities.ts","../testing/projections/ProjectionExpressionEvaluator.ts","../testing/projections/ProjectionInitialValueCapabilities.ts","../testing/projections/ProjectionJoinRecord.ts","../testing/projections/ProjectionJoinValidationContext.ts","../testing/projections/ProjectionJoins.ts","../testing/projections/ProjectionJoinsCapabilities.ts","../testing/projections/ProjectionMappingCapabilities.ts","../testing/projections/ProjectionMappingValidation.ts","../testing/projections/ProjectionReadModelCapabilities.ts","../testing/projections/ProjectionReadModelProcessor.ts","../testing/projections/ProjectionRootCapabilities.ts","../testing/projections/ProjectionScalarConverter.ts","../testing/projections/ProjectionSchemaCapabilities.ts","../testing/projections/ProjectionValueConverter.ts","../testing/projections/UnsupportedProjectionOperation.ts","../testing/projections/for_ProjectionCapabilities/given/Changed.ts","../testing/projections/for_ProjectionCapabilities/given/Model.ts","../testing/projections/for_ProjectionCapabilities/given/Removed.ts","../testing/projections/for_ProjectionCapabilities/given/compile.ts","../transactions/AppendOptionNotSupportedInUnitOfWork.ts","../transactions/ConflictingAppendOptionNamesInUnitOfWork.ts","../transactions/ConflictingConcurrencyScopesInUnitOfWork.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/TransactionalAppendOptions.ts","../transactions/TransactionalEventRouting.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/concurrencyScopesAreEqual.ts","../transactions/index.ts","../transactions/resolveTransactionalAppendOptions.ts","../transactions/toEventForEventSourceId.ts","../transactions/for_UnitOfWork/given/a_unit_of_work_with_a_recording_store.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/chai/package.json","../../node_modules/@types/deep-eql/package.json","../../node_modules/@types/node/package.json","../../node_modules/@vitest/mocker/package.json","../../node_modules/assertion-error/package.json","../../node_modules/chai/package.json","../../node_modules/esbuild/package.json","../../node_modules/expect-type/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/tinybench/package.json","../../node_modules/ts-error/package.json","../../node_modules/tsx/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json","../../node_modules/vite/package.json","../../node_modules/vitest/package.json","../../node_modules/yaml/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@edge-runtime/vm/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/@vitejs/devtools/package.json","../../node_modules/@vitest/browser-playwright/package.json","../../node_modules/@vitest/browser-preview/package.json","../../node_modules/@vitest/browser-webdriverio/package.json","../../node_modules/@vitest/coverage-istanbul/package.json","../../node_modules/@vitest/coverage-v8/package.json","../../node_modules/@vitest/mocker/dist/package.json","../../node_modules/@vitest/ui/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/deep-eql/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/expect-type/dist/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/happy-dom/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/jiti/package.json","../../node_modules/jsdom/package.json","../../node_modules/less/package.json","../../node_modules/module/package.json","../../node_modules/msw/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sass-embedded/package.json","../../node_modules/sass/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/stylus/package.json","../../node_modules/sugarss/package.json","../../node_modules/terser/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tinybench/dist/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vite/dist/node/chunks/package.json","../../node_modules/vite/dist/node/package.json","../../node_modules/vite/dist/package.json","../../node_modules/vite/module-runner/package.json","../../node_modules/vite/types/package.json","../../node_modules/vitest/dist/chunks/package.json","../../node_modules/vitest/dist/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
|
1
|
+
{"version":"7.0.2","root":["../ArtifactRegistrationResult.ts","../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../WellKnownTelemetryNames.ts","../index.ts","../artifacts/ActivatedArtifact.ts","../artifacts/ArtifactActivationContext.ts","../artifacts/ArtifactCompletionFailed.ts","../artifacts/ArtifactDelivery.ts","../artifacts/ArtifactInvocationContext.ts","../artifacts/ArtifactKind.ts","../artifacts/ArtifactRegistrationAttempt.ts","../artifacts/ClientArtifactsActivator.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/refuseClientHostedObservers.ts","../artifacts/validateArtifactSchemas.ts","../artifacts/withActivatedArtifact.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/resolveEventSubject.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/ChronicleTlsMaterial.ts","../connection/ClientObserversRequireKeepAlive.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/TraceContextMiddleware.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/encodeExplicitFalse.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../connection/for_encodeExplicitFalse/wireFields.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompensateOptions.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventEnrichmentContext.ts","../eventSequences/EventEnrichmentProvider.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/NamedTagsWithRegisteredEventSourceNotSupported.ts","../eventSequences/PreparedBatchAppend.ts","../eventSequences/PreparedSingleAppend.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/WireBatchEvent.ts","../eventSequences/createAppendNotification.ts","../eventSequences/createAppendResult.ts","../eventSequences/enrichEventContent.ts","../eventSequences/ensureNamedTagBatchIsSupported.ts","../eventSequences/index.ts","../eventSequences/prepareBatchAppend.ts","../eventSequences/prepareSingleAppend.ts","../eventSequences/resolveEventSourceRouting.ts","../eventSequences/toContractsCausation.ts","../eventSources/ConcurrencyDimensions.ts","../eventSources/DuplicateEventSourceName.ts","../eventSources/DuplicateEventStreamName.ts","../eventSources/EventRoutingContradictsEventSource.ts","../eventSources/EventSourceDefinition.ts","../eventSources/EventSources.ts","../eventSources/EventStreamDefinition.ts","../eventSources/EventStreamDoesNotBelongToEventSource.ts","../eventSources/EventStreamRequiresEventSource.ts","../eventSources/IEventSources.ts","../eventSources/ResolvedEventRouting.ts","../eventSources/UnknownEventSource.ts","../eventSources/eventSource.ts","../eventSources/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/InvalidNamedTag.ts","../events/NamedTag.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/compensationForDecorator.ts","../events/eventSourceTypeDecorator.ts","../events/eventStreamTypeDecorator.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/handles.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeNamedTags.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintEventSequences.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/UniqueOptions.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/constraints/for_Constraints/when_scoping_to_event_sequences/given/registered_constraints.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../for_ChronicleClient/when_skipping_keep_alive/native-exit-probe.ts","../for_EventStore/when_inspecting_registration/given/an_event_store.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../imports/EventImport.ts","../imports/EventImportSettings.ts","../imports/IEventImport.ts","../imports/ImportChunkRefused.ts","../imports/ImportCouldNotBegin.ts","../imports/ImportOptions.ts","../imports/ImportProgress.ts","../imports/ImportRejection.ts","../imports/ImportResult.ts","../imports/ImportState.ts","../imports/ImportTarget.ts","../imports/ImportWasAbandoned.ts","../imports/ImportsNotSupported.ts","../imports/OnInvalidEvent.ts","../imports/abortable.ts","../imports/beginEventImport.ts","../imports/importEvents.ts","../imports/index.ts","../imports/isTransientImportFailure.ts","../imports/sizeOfImportEvent.ts","../imports/toImportEvent.ts","../imports/toImportProgress.ts","../imports/toImportResult.ts","../imports/for_EventImport/given/a_kernel_import_session.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../logging/ChronicleLogEntry.ts","../logging/ChronicleLogLevel.ts","../logging/DiagChronicleLogger.ts","../logging/IChronicleLogger.ts","../logging/createLogger.ts","../observation/EventHandler.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/FastForwardOutcome.ts","../observation/FastForwardResult.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObservationReconnectBackoff.ts","../observation/ObservationStreamOutcome.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/classifyStreamError.ts","../observation/createHandlerInstanceValidator.ts","../observation/getEventHandlers.ts","../observation/getInstanceMethods.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toFastForwardResult.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../observation/batches/BatchContext.ts","../observation/batches/BatchContextObserver.ts","../observation/batches/BatchContextValues.ts","../observation/batches/BatchMethod.ts","../observation/batches/BatchMethodReturnedAValue.ts","../observation/batches/BatchMethods.ts","../observation/batches/BatchOutcome.ts","../observation/batches/BatchOutcomeKind.ts","../observation/batches/DeferralNotSupportedByKernel.ts","../observation/batches/DeliveredPartition.ts","../observation/batches/EventAndContext.ts","../observation/batches/EventBatch.ts","../observation/batches/EventTypeObservedByMoreThanOneMethod.ts","../observation/batches/InvalidBatchMethod.ts","../observation/batches/ObservationOrigin.ts","../observation/batches/ObservedEventType.ts","../observation/batches/PageMessages.ts","../observation/batches/PartitionFailedInBatch.ts","../observation/batches/PartitionNotInBatch.ts","../observation/batches/PartitionOutcome.ts","../observation/batches/PartitionProblem.ts","../observation/batches/PartitionSettlement.ts","../observation/batches/ReducerMixesBatchAndPerEventMethods.ts","../observation/batches/batchSize.ts","../observation/batches/createBatchContext.ts","../observation/batches/observes.ts","../observation/batches/runConcurrently.ts","../observation/for_ObservationReconnectBackoff/given/a_backoff.ts","../observation/for_ObservationReconnectBackoff/given/a_scripted_stream.ts","../patterns/BehaviorPattern.ts","../patterns/DayOfWeek.ts","../patterns/FacetName.ts","../patterns/FacetSet.ts","../patterns/IPatterns.ts","../patterns/PatternMoment.ts","../patterns/PatternQueryOptions.ts","../patterns/Patterns.ts","../patterns/PatternsAtOptions.ts","../patterns/TimeBucket.ts","../patterns/index.ts","../patterns/toBehaviorPattern.ts","../patterns/toDayOfWeek.ts","../patterns/toOffsetDate.ts","../patterns/toTimeBucket.ts","../projections/ChildrenOrderingNotSupportedByContracts.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/InvalidCausedByProperty.ts","../projections/InvalidEventContextPropertyError.ts","../projections/ProjectionCapabilityProvenance.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionEventSchema.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/captureProjectionProvenance.ts","../projections/causedBy.ts","../projections/childrenOrdering.ts","../projections/childrenOrderingSupport.ts","../projections/constantValueExpression.ts","../projections/eventContextPropertyExpression.ts","../projections/eventContractPath.ts","../projections/index.ts","../projections/invalidEventContextPropertyInProjection.ts","../projections/notSetPropertyPath.ts","../projections/propertyExpressions.ts","../projections/registerProjectionWithRetry.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/ChildrenOrderingAlreadyDefined.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/DictionaryKey.ts","../projections/declarative/FromAllBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/ICompositeKeySetBuilder.ts","../projections/declarative/IFromAllBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/InvalidDictionaryKey.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/declarative/projectionBuilderProvenance.ts","../projections/for_Graphs/given/a_discovered_graph.ts","../projections/for_Graphs/given/a_fake_connection.ts","../projections/for_Graphs/given/a_graph_with_views.ts","../projections/for_Graphs/given/organization.ts","../projections/for_ProjectionDefinitionCompiler/given/compile_model_bound.ts","../projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.ts","../projections/graphs/EdgeMustHaveOneSourceAndOneTarget.ts","../projections/graphs/GraphDeclaredMoreThanOnce.ts","../projections/graphs/GraphDefinitionBuilder.ts","../projections/graphs/GraphEdgeBuilder.ts","../projections/graphs/GraphEdgeFromBuilder.ts","../projections/graphs/GraphEdgeFromModel.ts","../projections/graphs/GraphEdgeModel.ts","../projections/graphs/GraphEdgeRemovedWithBuilder.ts","../projections/graphs/GraphEdgeRemovedWithModel.ts","../projections/graphs/GraphElementCannotBeReadModel.ts","../projections/graphs/GraphHasDuplicateElement.ts","../projections/graphs/GraphKeyPropertyNotFound.ts","../projections/graphs/GraphMappingBuilder.ts","../projections/graphs/GraphMemberMappings.ts","../projections/graphs/GraphModel.ts","../projections/graphs/GraphNameRequired.ts","../projections/graphs/GraphNodeBuilder.ts","../projections/graphs/GraphNodeFromBuilder.ts","../projections/graphs/GraphNodeFromModel.ts","../projections/graphs/GraphNodeModel.ts","../projections/graphs/GraphNodeRemovedWithBuilder.ts","../projections/graphs/GraphNodeRemovedWithModel.ts","../projections/graphs/GraphProjectionBuilder.ts","../projections/graphs/GraphRegistration.ts","../projections/graphs/GraphSchemaWriter.ts","../projections/graphs/Graphs.ts","../projections/graphs/IGraphEdgeBuilder.ts","../projections/graphs/IGraphEdgeFromBuilder.ts","../projections/graphs/IGraphEdgeRemovedWithBuilder.ts","../projections/graphs/IGraphMappingBuilder.ts","../projections/graphs/IGraphNodeBuilder.ts","../projections/graphs/IGraphNodeFromBuilder.ts","../projections/graphs/IGraphNodeRemovedWithBuilder.ts","../projections/graphs/IGraphProjection.ts","../projections/graphs/IGraphProjectionBuilder.ts","../projections/graphs/IGraphs.ts","../projections/graphs/ModelBoundGraphReader.ts","../projections/graphs/NestedObjectInGraph.ts","../projections/graphs/NodeMustHaveExactlyOneKey.ts","../projections/graphs/SetOnceNotSupportedInGraph.ts","../projections/graphs/UnknownGraphEventProperty.ts","../projections/graphs/UnknownGraphNode.ts","../projections/graphs/edge.ts","../projections/graphs/edgeFrom.ts","../projections/graphs/edgeRemovedWith.ts","../projections/graphs/edgeSource.ts","../projections/graphs/edgeTarget.ts","../projections/graphs/graph.ts","../projections/graphs/graphKey.ts","../projections/graphs/graphProjection.ts","../projections/graphs/index.ts","../projections/graphs/isGraphElement.ts","../projections/graphs/node.ts","../projections/graphs/nodeFrom.ts","../projections/graphs/nodeRemovedWith.ts","../projections/graphs/propertyPathOf.ts","../projections/graphs/views/AmbiguousDirection.ts","../projections/graphs/views/DuplicateViewName.ts","../projections/graphs/views/EdgeNotIncidentOnRoot.ts","../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts","../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts","../projections/graphs/views/FollowsOptions.ts","../projections/graphs/views/GraphEdgeDirection.ts","../projections/graphs/views/GraphView.ts","../projections/graphs/views/GraphViewBuildResult.ts","../projections/graphs/views/GraphViewCardinality.ts","../projections/graphs/views/GraphViewDefinition.ts","../projections/graphs/views/GraphViewDefinitionBuilder.ts","../projections/graphs/views/GraphViewDefinitionSerializer.ts","../projections/graphs/views/GraphViewEdgeReference.ts","../projections/graphs/views/GraphViewMember.ts","../projections/graphs/views/GraphViewMemberKind.ts","../projections/graphs/views/GraphViewMemberMetadata.ts","../projections/graphs/views/GraphViewPropertyMember.ts","../projections/graphs/views/GraphViewReason.ts","../projections/graphs/views/GraphViewRelationMember.ts","../projections/graphs/views/GraphViewSchema.ts","../projections/graphs/views/GraphViewSchemaEdge.ts","../projections/graphs/views/GraphViewSchemaNode.ts","../projections/graphs/views/GraphViewSerializerOptions.ts","../projections/graphs/views/RecursiveView.ts","../projections/graphs/views/RelationTargetNotAView.ts","../projections/graphs/views/TargetLabelMismatch.ts","../projections/graphs/views/UnknownEdge.ts","../projections/graphs/views/UnknownEdgeProperty.ts","../projections/graphs/views/UnknownNodeProperty.ts","../projections/graphs/views/ViewIsAlsoSchema.ts","../projections/graphs/views/ViewOfMetadata.ts","../projections/graphs/views/ViewOfOptions.ts","../projections/graphs/views/ViewRootNotANode.ts","../projections/graphs/views/declareGraphViewMember.ts","../projections/graphs/views/follows.ts","../projections/graphs/views/fromEdge.ts","../projections/graphs/views/index.ts","../projections/graphs/views/viewKey.ts","../projections/graphs/views/viewOf.ts","../projections/graphs/views/viewProperty.ts","../projections/modelBound/ConflictingChildrenOrdering.ts","../projections/modelBound/FromAllEventsMetadata.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromAllEvents.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/isModelBoundProjection.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorDelivery.ts","../reactors/ReactorDispatcher.ts","../reactors/ReactorId.ts","../reactors/ReactorObservationTarget.ts","../reactors/ReactorPageDispatcher.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorServices.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../reactors/startAtTail.ts","../reactors/for_Reactors/given/deliver_to_reactor.ts","../reactors/for_Reactors/given/observe_reactor_messages.ts","../reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModelWatcher.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeContext.ts","../readModels/ReadModelChangeType.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelNamingPolicy.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModelWatchOptions.ts","../readModels/ReadModelWatcher.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../readModels/for_ReadModelNamingPolicy/given/registered_read_models.ts","../readModels/for_ReadModelWatcher/given/a_kernel_stream.ts","../readModels/for_ReadModelWatcher/given/a_watched_read_model.ts","../readModels/for_ReadModels/given/Book.ts","../readModels/for_ReadModels/given/BookBorrowed.ts","../readModels/for_ReadModels/given/BookRegistered.ts","../readModels/for_ReadModels/given/BookReturned.ts","../readModels/for_ReadModels/given/a_stored_read_model.ts","../readModels/for_deserializeReadModel/given/Address.ts","../readModels/for_deserializeReadModel/given/a_read_model_with_defaults.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/ReducerObservation.ts","../reducers/ReducerObservationSession.ts","../reducers/Reducers.ts","../reducers/ReductionOutcome.ts","../reducers/index.ts","../reducers/reducer.ts","../reducers/for_Reducers/given/observe_reducer_messages.ts","../reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../telemetry/ChronicleTelemetryOptions.ts","../telemetry/observeOperation.ts","../telemetry/runInBackgroundContext.ts","../telemetry/spanAttributes.ts","../testing/BatchPartitionOutcome.ts","../testing/ConstraintKey.ts","../testing/ConstraintScope.ts","../testing/EventFieldSchema.ts","../testing/EventScenario.ts","../testing/EventScenarioGiven.ts","../testing/EventScenarioGivenBuilder.ts","../testing/EventScenarioOptions.ts","../testing/EventScenarioSeed.ts","../testing/EventScenarioWhen.ts","../testing/EventScenarioWhenBuilder.ts","../testing/IReadModelProcessor.ts","../testing/InProcessAppendMetadata.ts","../testing/InProcessBatchAppend.ts","../testing/InProcessConstraints.ts","../testing/InProcessEventPayload.ts","../testing/InProcessEventReadCriteria.ts","../testing/InProcessEventReadFilter.ts","../testing/InProcessEventSequence.ts","../testing/InProcessEventSequenceEnvironment.ts","../testing/InProcessSingleAppend.ts","../testing/KernelTextHash.ts","../testing/MeasuredConstraintKeys.ts","../testing/PropertyDefinitionSupport.ts","../testing/ReactorDeliveryResult.ts","../testing/ReactorScenario.ts","../testing/ReactorScenarioOptions.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/ReadModelState.ts","../testing/RecordedReactorSideEffect.ts","../testing/ReducerReadModelProcessor.ts","../testing/ScenarioEvent.ts","../testing/UnsupportedEventSequenceOperation.ts","../testing/UnsupportedReactorOperation.ts","../testing/UnsupportedReducerOperation.ts","../testing/deliverToBatchMethods.ts","../testing/index.ts","../testing/singleAppendRoute.ts","../testing/projections/ProjectionArithmetic.ts","../testing/projections/ProjectionCapabilities.ts","../testing/projections/ProjectionCapabilityReject.ts","../testing/projections/ProjectionCapabilityReporter.ts","../testing/projections/ProjectionChildrenCapabilities.ts","../testing/projections/ProjectionDefinitionCapabilities.ts","../testing/projections/ProjectionEventSchemaResolver.ts","../testing/projections/ProjectionExpressionCapabilities.ts","../testing/projections/ProjectionExpressionEvaluator.ts","../testing/projections/ProjectionInitialValueCapabilities.ts","../testing/projections/ProjectionJoinRecord.ts","../testing/projections/ProjectionJoinValidationContext.ts","../testing/projections/ProjectionJoins.ts","../testing/projections/ProjectionJoinsCapabilities.ts","../testing/projections/ProjectionMappingCapabilities.ts","../testing/projections/ProjectionMappingValidation.ts","../testing/projections/ProjectionReadModelCapabilities.ts","../testing/projections/ProjectionReadModelProcessor.ts","../testing/projections/ProjectionRootCapabilities.ts","../testing/projections/ProjectionScalarConverter.ts","../testing/projections/ProjectionSchemaCapabilities.ts","../testing/projections/ProjectionValueConverter.ts","../testing/projections/UnsupportedProjectionOperation.ts","../testing/projections/for_ProjectionCapabilities/given/Changed.ts","../testing/projections/for_ProjectionCapabilities/given/Model.ts","../testing/projections/for_ProjectionCapabilities/given/Removed.ts","../testing/projections/for_ProjectionCapabilities/given/compile.ts","../transactions/AppendOptionNotSupportedInUnitOfWork.ts","../transactions/ConflictingAppendOptionNamesInUnitOfWork.ts","../transactions/ConflictingConcurrencyScopesInUnitOfWork.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/TransactionalAppendOptions.ts","../transactions/TransactionalEventRouting.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/concurrencyScopesAreEqual.ts","../transactions/index.ts","../transactions/resolveTransactionalAppendOptions.ts","../transactions/toEventForEventSourceId.ts","../transactions/for_UnitOfWork/given/a_unit_of_work_with_a_recording_store.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/chai/package.json","../../node_modules/@types/deep-eql/package.json","../../node_modules/@types/node/package.json","../../node_modules/@vitest/mocker/package.json","../../node_modules/assertion-error/package.json","../../node_modules/chai/package.json","../../node_modules/esbuild/package.json","../../node_modules/expect-type/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/tinybench/package.json","../../node_modules/ts-error/package.json","../../node_modules/tsx/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json","../../node_modules/vite/package.json","../../node_modules/vitest/package.json","../../node_modules/yaml/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@edge-runtime/vm/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/@vitejs/devtools/package.json","../../node_modules/@vitest/browser-playwright/package.json","../../node_modules/@vitest/browser-preview/package.json","../../node_modules/@vitest/browser-webdriverio/package.json","../../node_modules/@vitest/coverage-istanbul/package.json","../../node_modules/@vitest/coverage-v8/package.json","../../node_modules/@vitest/mocker/dist/package.json","../../node_modules/@vitest/ui/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/deep-eql/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/expect-type/dist/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/happy-dom/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/jiti/package.json","../../node_modules/jsdom/package.json","../../node_modules/less/package.json","../../node_modules/module/package.json","../../node_modules/msw/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sass-embedded/package.json","../../node_modules/sass/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/stylus/package.json","../../node_modules/sugarss/package.json","../../node_modules/terser/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tinybench/dist/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vite/dist/node/chunks/package.json","../../node_modules/vite/dist/node/package.json","../../node_modules/vite/dist/package.json","../../node_modules/vite/module-runner/package.json","../../node_modules/vite/types/package.json","../../node_modules/vitest/dist/chunks/package.json","../../node_modules/vitest/dist/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
package/package.json
CHANGED
package/testing/ConstraintKey.ts
CHANGED
|
@@ -6,8 +6,9 @@ import type { AppendedEvent } from '../events/AppendedEvent.js';
|
|
|
6
6
|
import type { ConstraintCapture } from '../events/constraints/ConstraintBuilder.js';
|
|
7
7
|
import type { JsonSchema } from '../schemas/JsonSchema.js';
|
|
8
8
|
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
9
|
+
import { isMeasuredNumericFormat, isMeasuredText, measuredNumericKey } from './MeasuredConstraintKeys.js';
|
|
9
10
|
|
|
10
|
-
type KeyContext = { name: string; fractions: boolean };
|
|
11
|
+
type KeyContext = { name: string; fractions: boolean; measured: boolean };
|
|
11
12
|
type Claim = { key: string; parts: Array<{ property: string; raw: string }> };
|
|
12
13
|
|
|
13
14
|
// Only characters captured by the packaged oracle, not every valid event-content character.
|
|
@@ -37,16 +38,22 @@ function numericKey(value: unknown, context: KeyContext): string {
|
|
|
37
38
|
|
|
38
39
|
function kernelKeyString(value: unknown, context: KeyContext, schema?: JsonSchema): string {
|
|
39
40
|
if (schema?.format === 'guid') return guidKey(value, context.name);
|
|
40
|
-
if (schema?.type === 'number') return
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
return scalarKey(value, context.name);
|
|
41
|
+
if (schema?.type === 'number') return schemaNumericKey(value, context, schema.format);
|
|
42
|
+
return scalarKey(value, context);
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
function
|
|
47
|
-
if (
|
|
45
|
+
function schemaNumericKey(value: unknown, context: KeyContext, format: string | undefined): string {
|
|
46
|
+
if (isMeasuredNumericFormat(format)) return measuredNumericKey(value, format!, context.name, context.measured);
|
|
47
|
+
return numericKey(value, { ...context, fractions: context.fractions && [undefined, 'double'].includes(format) });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function scalarKey(value: unknown, context: KeyContext): string {
|
|
51
|
+
if (typeof value === 'string') {
|
|
52
|
+
const accepted = provenString.test(value) || context.measured && isMeasuredText(value);
|
|
53
|
+
if (accepted) return value;
|
|
54
|
+
}
|
|
48
55
|
if (typeof value === 'boolean') return value ? 'True' : 'False';
|
|
49
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name,
|
|
56
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', context.name,
|
|
50
57
|
'Only fixture-backed scalar string and boolean keys are supported.');
|
|
51
58
|
}
|
|
52
59
|
|
|
@@ -73,7 +80,8 @@ export function claimOf(name: string, capture: ConstraintCapture, event: Appende
|
|
|
73
80
|
const unique = capture.uniqueConstraint!;
|
|
74
81
|
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === event.eventType.id.value)?.properties;
|
|
75
82
|
if (properties === undefined) return undefined;
|
|
76
|
-
const
|
|
83
|
+
const fractions = options.isolated && supportsFractions(capture);
|
|
84
|
+
const context = { name, fractions, measured: fractions && unique.eventDefinitions.length === 1 };
|
|
77
85
|
const parts = properties.map(property => ({ property,
|
|
78
86
|
raw: kernelKeyString(event.content[property], context, options.schema?.properties?.[property]) }));
|
|
79
87
|
const joined = parts.map(part => part.raw).join('-');
|
|
@@ -278,7 +278,7 @@ describe('when appending batches against committed kernel fixtures', () => {
|
|
|
278
278
|
|
|
279
279
|
it('should reject a malformed entry before committing any of the batch or recording results', async () => {
|
|
280
280
|
const scenario = create();
|
|
281
|
-
await scenario.appendMany('A', [new OracleEventRecorded('valid', true), new OracleEventRecorded('
|
|
281
|
+
await scenario.appendMany('A', [new OracleEventRecorded('valid', true), new OracleEventRecorded('\u0002', true)]).then(
|
|
282
282
|
() => { throw new Error('Unsupported content was accepted'); },
|
|
283
283
|
error => { (error instanceof UnsupportedEventSequenceOperation).should.be.true; (error as Error).message.should.include('appendMany.content'); }
|
|
284
284
|
);
|
|
@@ -166,8 +166,9 @@ describe('fixture-backed unique scalar values', () => {
|
|
|
166
166
|
(await scenario.append('A', new OracleDomainText('0'))).isSuccess.should.be.true;
|
|
167
167
|
const before = historyOf(scenario);
|
|
168
168
|
const results = scenario.results;
|
|
169
|
-
const unprovenKeys = ['!', '#', '%', '&', "'", '(', ')', '*', '+', ',', '/', ';', '<', '=', '>', '?', '[', ']', '^', '`', '~'
|
|
170
|
-
|
|
169
|
+
const unprovenKeys = ['!', '#', '%', '&', "'", '(', ')', '*', '+', ',', '/', ';', '<', '=', '>', '?', '[', ']', '^', '`', '~',
|
|
170
|
+
'É', 'e\u0301', '"', '\\', '\n'];
|
|
171
|
+
const invalidContent: unknown[] = [1, 0, 1.5, undefined, [], {}, new Date()];
|
|
171
172
|
// Fundamentals preserves null in JSON, so checkedContent rejects it as unsupported string content.
|
|
172
173
|
for (const [value, operation] of [
|
|
173
174
|
...unprovenKeys.map(value => [value, 'artifacts.constraints']),
|
|
@@ -61,7 +61,7 @@ const fixtures = readdirSync(directory).filter(name => name.endsWith('.json') &&
|
|
|
61
61
|
'constraints-event-type-siblings.json', 'constraints-composite.json',
|
|
62
62
|
'constraints-ignore-casing.json', 'constraints-scopes.json', 'constraints-field-types.json', 'constraints-event-sequences.json',
|
|
63
63
|
'constraints-field-combinations.json', 'constraints-removal-combinations.json', 'constraints-overlapping-definitions.json',
|
|
64
|
-
'constraints-fractional-field-types.json', 'constraints-fractional-collisions.json'].includes(name)).map(name => ({
|
|
64
|
+
'constraints-fractional-field-types.json', 'constraints-fractional-collisions.json', 'constraints-field-key-measurements.json'].includes(name)).map(name => ({
|
|
65
65
|
name, fixture: JSON.parse(readFileSync(new URL(name, directory), 'utf8')) as Fixture
|
|
66
66
|
}));
|
|
67
67
|
const artifacts = { eventTypes: [OracleEventRecorded, AlternateRecorded, BoundaryRecorded], constraints: [] };
|
|
@@ -74,21 +74,19 @@ const makeScenario = (action?: Fixture['actions'][number]) => new EventScenario(
|
|
|
74
74
|
async function unsupportedAsync(action: () => Promise<unknown>, operation: string): Promise<void> {
|
|
75
75
|
await action().then(
|
|
76
76
|
() => { throw new Error(`Expected ${operation} rejection`); },
|
|
77
|
-
error =>
|
|
78
|
-
(error instanceof UnsupportedEventSequenceOperation).should.be.true;
|
|
79
|
-
(error as Error).message.should.include(operation);
|
|
80
|
-
(error as Error).message.should.include('Use a kernel-backed test.');
|
|
81
|
-
}
|
|
77
|
+
error => unsupportedError(error, operation)
|
|
82
78
|
);
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
function unsupported(action: () => unknown, operation: string): void {
|
|
86
82
|
try { action(); throw new Error('Expected rejection'); }
|
|
87
|
-
catch (error) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
catch (error) { unsupportedError(error, operation); }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function unsupportedError(error: unknown, operation: string): void {
|
|
87
|
+
(error instanceof UnsupportedEventSequenceOperation).should.be.true;
|
|
88
|
+
(error as Error).message.should.include(operation);
|
|
89
|
+
(error as Error).message.should.include('Use a kernel-backed test.');
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
describe('when appending against committed kernel event fixtures', () => {
|
|
@@ -195,8 +195,8 @@ describe('when the fixture-bounded event sequence encounters unproven operations
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
for (const [name, value] of [
|
|
198
|
-
['
|
|
199
|
-
['
|
|
198
|
+
['DEL', '\u007f'], ['Japanese outside measured characters', '日本'], ['unmeasured control', '\u0002'],
|
|
199
|
+
['unmeasured emoji', '\u{1f601}'], ['lone high surrogate', '\ud83d'], ['reversed surrogate pair', '\ude00\ud83d'], ['Greek outside measured letters', 'λ']
|
|
200
200
|
] as const) {
|
|
201
201
|
it(`should reject ${name} outside the fixture-backed content domain`, async () => {
|
|
202
202
|
const subject = scenario();
|
package/testing/EventScenario.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { getRemovedConstraintNames } from '../events/constraints/removeConstrain
|
|
|
20
20
|
import { getConstraintMetadata } from '../events/constraints/constraint.js';
|
|
21
21
|
import { InProcessConstraints } from './InProcessConstraints.js';
|
|
22
22
|
import { supportsPropertyOverlap } from './PropertyDefinitionSupport.js';
|
|
23
|
+
import { supportsMeasuredKeySchema } from './MeasuredConstraintKeys.js';
|
|
23
24
|
import type { EventScenarioOptions } from './EventScenarioOptions.js';
|
|
24
25
|
import { EventScenarioGivenBuilder } from './EventScenarioGivenBuilder.js';
|
|
25
26
|
import { EventScenarioWhenBuilder } from './EventScenarioWhenBuilder.js';
|
|
@@ -70,9 +71,7 @@ function validateKeySchemas(name: string, schemas: ReadonlyArray<{ type?: string
|
|
|
70
71
|
fail('Scoped property keys must be schema-backed strings, booleans, Guids or unformatted numbers.');
|
|
71
72
|
}
|
|
72
73
|
for (const schema of schemas) {
|
|
73
|
-
const supported = schema
|
|
74
|
-
schema?.type === 'string' && (schema.format === undefined || schema.format === 'guid') ||
|
|
75
|
-
schema?.type === 'number' && (schema.format === undefined || schema.format === 'double');
|
|
74
|
+
const supported = supportsMeasuredKeySchema(schema, options, schemas.length);
|
|
76
75
|
if (!supported) fail(`Unique keys with schema ${schema?.type ?? 'missing'}/${schema?.format ?? 'unformatted'} are not fixture-backed; date, object and other numeric formats require a kernel-backed test.`);
|
|
77
76
|
}
|
|
78
77
|
if (schemas.some(isGuidOrNumericKey) &&
|
|
@@ -11,6 +11,8 @@ import { Tag } from '../events/Tag.js';
|
|
|
11
11
|
import { Identity } from '../identity/Identity.js';
|
|
12
12
|
import type { JsonSchema } from '../schemas/JsonSchema.js';
|
|
13
13
|
import { matchesEventField } from './EventFieldSchema.js';
|
|
14
|
+
import { kernelEscapedJson } from './KernelTextHash.js';
|
|
15
|
+
import { isMeasuredText } from './MeasuredConstraintKeys.js';
|
|
14
16
|
import type { InProcessConstraints } from './InProcessConstraints.js';
|
|
15
17
|
import type { InProcessEventSequenceEnvironment } from './InProcessEventSequenceEnvironment.js';
|
|
16
18
|
|
|
@@ -31,7 +33,7 @@ export class InProcessEventPayload {
|
|
|
31
33
|
|
|
32
34
|
hash(typeId: string, source: string, content: Record<string, unknown>): string {
|
|
33
35
|
const canonical = Object.fromEntries(Object.entries(content).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0));
|
|
34
|
-
return createHash('sha256').update(`${typeId}|${source}|${JSON.stringify(canonical)}`).digest('base64');
|
|
36
|
+
return createHash('sha256').update(`${typeId}|${source}|${kernelEscapedJson(JSON.stringify(canonical))}`).digest('base64');
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
snapshot(event: AppendedEvent): AppendedEvent {
|
|
@@ -77,7 +79,7 @@ export class InProcessEventPayload {
|
|
|
77
79
|
|
|
78
80
|
private matchesText(value: unknown, property: JsonSchema): boolean {
|
|
79
81
|
if (property.type !== 'string' || property.format !== undefined) return true;
|
|
80
|
-
return
|
|
82
|
+
return isMeasuredText(value as string);
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
private matchesConstraint(event: object, content: Record<string, unknown>, key: string): boolean {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
const surrogatePair = /[\ud800-\udbff][\udc00-\udfff]/g;
|
|
5
|
+
|
|
6
|
+
function escapeUnit(unit: string): string {
|
|
7
|
+
return `\\u${unit.charCodeAt(0).toString(16).toUpperCase().padStart(4, '0')}`;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The kernel hashes JSON written with the relaxed encoder, which escapes every supplementary-plane character
|
|
12
|
+
* as two uppercase UTF-16 escapes while keeping measured BMP characters literal. Only actual surrogate pairs are
|
|
13
|
+
* rewritten, so literal backslash-u text and the stored content are untouched.
|
|
14
|
+
*/
|
|
15
|
+
export function kernelEscapedJson(json: string): string {
|
|
16
|
+
return json.replace(surrogatePair, pair => escapeUnit(pair[0]) + escapeUnit(pair[1]));
|
|
17
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
5
|
+
|
|
6
|
+
// constraints-field-key-measurements.json: exact characters and scalars, not a general Unicode/control range.
|
|
7
|
+
// The unicode flag matches whole scalars, so lone or unmeasured surrogate combinations never match.
|
|
8
|
+
const measuredText = /^[\x00\x01\x08-\x0a\x0c\x0d\x20-\x7e\u00c9\u00df\u00e9\u00f8\u0301\u4eac\u6771\u{10000}\u{10400}\u{1d11e}\u{1f600}\u{1f642}\u{20000}\u{10ffff}]*$/u;
|
|
9
|
+
const numericValues: Readonly<Record<string, readonly number[]>> = {
|
|
10
|
+
decimal: [0.1, -1.2345, 1.2345678901234567, 0.000001],
|
|
11
|
+
float: [0.1, -1.2345, 1.2345679]
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** Strings with measured JSON round-trip and kernel content-hash parity; never normalizes Unicode. */
|
|
15
|
+
export function isMeasuredText(value: string): boolean { return measuredText.test(value); }
|
|
16
|
+
|
|
17
|
+
const basicKeySchemas = new Set(['boolean/undefined', 'string/undefined', 'string/guid', 'number/undefined', 'number/double']);
|
|
18
|
+
type DefinitionShape = { scoped: boolean; isolated: boolean; definitions: number; ignoreCasing: boolean };
|
|
19
|
+
|
|
20
|
+
function isolatedMeasurement(options: DefinitionShape, properties: number): boolean {
|
|
21
|
+
return options.isolated && !options.scoped && !options.ignoreCasing && options.definitions === 1 && properties === 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Existing unique-key schemas plus the isolated decimal/float measurements. */
|
|
25
|
+
export function supportsMeasuredKeySchema(schema: { type?: string; format?: string } | undefined,
|
|
26
|
+
options: DefinitionShape, properties: number): boolean {
|
|
27
|
+
if (basicKeySchemas.has(`${schema?.type}/${schema?.format}`)) return true;
|
|
28
|
+
if (schema?.type !== 'number' || !isMeasuredNumericFormat(schema.format)) return false;
|
|
29
|
+
return isolatedMeasurement(options, properties);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** The numeric schemas measured by the raw-JSON oracle, not a promise about other values. */
|
|
33
|
+
export function isMeasuredNumericFormat(format: string | undefined): boolean {
|
|
34
|
+
return format === 'decimal' || format === 'float';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Exact input values with matching key spelling, content and hash, in an isolated definition only. */
|
|
38
|
+
export function measuredNumericKey(value: unknown, format: string, name: string, enabled: boolean): string {
|
|
39
|
+
const candidates = enabled ? numericValues[format] ?? [] : [];
|
|
40
|
+
if (typeof value === 'number' && candidates.includes(value)) return String(value);
|
|
41
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name,
|
|
42
|
+
`Only explicitly measured ${format} numeric key values in isolated, unscoped single-property constraints are fixture-backed.`);
|
|
43
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import 'reflect-metadata';
|
|
5
|
+
import { createHash } from 'node:crypto';
|
|
6
|
+
import { chai, describe, it } from 'vitest';
|
|
7
|
+
import { field } from '@cratis/fundamentals';
|
|
8
|
+
import { eventType } from '../../../events/eventTypeDecorator.js';
|
|
9
|
+
import { EventScenario } from '../../index.js';
|
|
10
|
+
|
|
11
|
+
chai.should();
|
|
12
|
+
|
|
13
|
+
class Noted {
|
|
14
|
+
@field(String) name = '';
|
|
15
|
+
}
|
|
16
|
+
eventType('AstralNoted')(Noted);
|
|
17
|
+
|
|
18
|
+
describe('when appending a plain string with a supplementary character', () => {
|
|
19
|
+
it('should keep the content literal and hash the kernel-escaped JSON', async () => {
|
|
20
|
+
const scenario = new EventScenario({ artifacts: { eventTypes: [Noted] }, constraints: 'disabled' });
|
|
21
|
+
const result = await scenario.append('A', Object.assign(new Noted(), { name: 'a\u{1f600}\u{10ffff}' }));
|
|
22
|
+
result.isSuccess.should.equal(true);
|
|
23
|
+
scenario.appendedEvents[0].content.should.deep.equal({ name: 'a\u{1f600}\u{10ffff}' });
|
|
24
|
+
scenario.appendedEvents[0].context.hash.should.equal(createHash('sha256')
|
|
25
|
+
.update('AstralNoted|A|{"name":"a\\uD83D\\uDE00\\uDBFF\\uDFFF"}').digest('base64'));
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('should reject an unmeasured supplementary character', async () => {
|
|
29
|
+
const scenario = new EventScenario({ artifacts: { eventTypes: [Noted] }, constraints: 'disabled' });
|
|
30
|
+
const error = await scenario.append('A', Object.assign(new Noted(), { name: '\u{1f601}' })).then(() => undefined, caught => caught);
|
|
31
|
+
(error !== undefined).should.equal(true);
|
|
32
|
+
scenario.appendedEvents.should.have.lengthOf(0);
|
|
33
|
+
});
|
|
34
|
+
});
|
package/testing/for_EventScenario/when_appending_field_types/field_key_measurements.fixture.ts
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { readFileSync } from 'node:fs';
|
|
5
|
+
import type { Constructor } from '@cratis/fundamentals';
|
|
6
|
+
import { beforeEach, chai, describe, it, vi, type Assertion } from 'vitest';
|
|
7
|
+
import type { AppendResult } from '../../../eventSequences/AppendResult.js';
|
|
8
|
+
import type { JsonSchema } from '../../../schemas/JsonSchema.js';
|
|
9
|
+
import { constraint } from '../../../events/constraints/constraint.js';
|
|
10
|
+
import type { IConstraintBuilder } from '../../../events/constraints/IConstraintBuilder.js';
|
|
11
|
+
import { getEventTypeMetadata } from '../../../events/eventTypeDecorator.js';
|
|
12
|
+
import { EventScenario, UnsupportedEventSequenceOperation } from '../../index.js';
|
|
13
|
+
import { InProcessConstraints } from '../../InProcessConstraints.js';
|
|
14
|
+
|
|
15
|
+
chai.should();
|
|
16
|
+
const should = (value: unknown): Assertion => (value as { should: Assertion }).should;
|
|
17
|
+
type KeyEvent = { key: unknown };
|
|
18
|
+
type Types = { text: Constructor<KeyEvent>; decimal: Constructor<KeyEvent>; float: Constructor<KeyEvent> };
|
|
19
|
+
type Operation = { mode: string; events: Array<{ source: string; content: string }> };
|
|
20
|
+
type History = { source: string; sequence: string; content: Record<string, unknown>; hash: string | undefined };
|
|
21
|
+
type WireViolation = { ConstraintName: string; Message: string; Details: Record<string, string> };
|
|
22
|
+
type Outcome = { success: boolean; sequences: string[]; wireViolations: WireViolation[]; history: History[]; next: string };
|
|
23
|
+
const fixture = JSON.parse(readFileSync(new URL('../../fixtures/constraints-field-key-measurements.json', import.meta.url), 'utf8')) as {
|
|
24
|
+
fieldSchemas: Record<string, JsonSchema>;
|
|
25
|
+
fieldConstraintCases: Array<{ eventType: string; localSteps: number; operations: Operation[] }>;
|
|
26
|
+
expected: Array<{ steps: Outcome[] }>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function definition(type: Constructor<KeyEvent>, mode = 'plain', name = 'OracleFieldKey'): Constructor {
|
|
30
|
+
class Definition {
|
|
31
|
+
define(builder: IConstraintBuilder) {
|
|
32
|
+
if (mode === 'scoped') builder.perEventSourceType();
|
|
33
|
+
builder.unique(key => {
|
|
34
|
+
key.on(type, event => event.key);
|
|
35
|
+
if (mode === 'ignoreCasing') key.ignoreCasing();
|
|
36
|
+
if (mode === 'removable') key.removedWith(type);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
constraint(name)(Definition);
|
|
41
|
+
return Definition;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function scenarioFor(type: Constructor<KeyEvent>, constraints = [definition(type)]): EventScenario {
|
|
45
|
+
return new EventScenario({ artifacts: { eventTypes: [type], constraints } });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function eventFor(type: Constructor<KeyEvent>, content: string): KeyEvent {
|
|
49
|
+
return Object.assign(new type(), JSON.parse(content));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function historyOf(scenario: EventScenario): History[] {
|
|
53
|
+
return scenario.appendedEvents.map(event => ({ source: event.context.eventSourceId,
|
|
54
|
+
sequence: event.context.sequenceNumber.toString(), content: event.content, hash: event.context.hash }));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function append(scenario: EventScenario, type: Constructor<KeyEvent>, operation: Operation): Promise<AppendResult[]> {
|
|
58
|
+
const events = operation.events.map(entry => ({ eventSourceId: entry.source, event: eventFor(type, entry.content) }));
|
|
59
|
+
return operation.mode === 'single'
|
|
60
|
+
? [await scenario.append(events[0].eventSourceId, events[0].event)]
|
|
61
|
+
: scenario.appendMany(events);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function replay(type: Constructor<KeyEvent>, index: number): void {
|
|
65
|
+
describe(`when replaying the measured ${getEventTypeMetadata(type)!.eventType.id.value} keys`, () => {
|
|
66
|
+
it('should match collision details, sequences, hashes and rollback through the production serializer', async () => {
|
|
67
|
+
const validate = vi.spyOn(InProcessConstraints.prototype, 'validate');
|
|
68
|
+
const scenario = scenarioFor(type);
|
|
69
|
+
const test = fixture.fieldConstraintCases[index];
|
|
70
|
+
should(test.localSteps).greaterThan(0);
|
|
71
|
+
for (const [step, operation] of test.operations.slice(0, test.localSteps).entries()) {
|
|
72
|
+
const results = await append(scenario, type, operation);
|
|
73
|
+
const expected = fixture.expected[index].steps[step];
|
|
74
|
+
should(results.every(result => result.isSuccess === expected.success)).equal(true);
|
|
75
|
+
should(results.map(result => result.sequenceNumber.value.toString())).deep.equal(
|
|
76
|
+
expected.success ? expected.sequences : results.map(() => '0'));
|
|
77
|
+
const raw = validate.mock.results.at(-1)!.value as ReturnType<InProcessConstraints['validate']>;
|
|
78
|
+
should(raw.map(violation => ({ ...violation, SequenceNumber: violation.SequenceNumber.toString() }))).deep.equal(expected.wireViolations);
|
|
79
|
+
for (const result of results) {
|
|
80
|
+
should(result.constraintViolations.map(item => ({ id: item.constraintId, message: item.message, details: item.details })))
|
|
81
|
+
.deep.equal(expected.wireViolations.map(item => ({ id: item.ConstraintName, message: item.Message, details: item.Details })));
|
|
82
|
+
}
|
|
83
|
+
should(historyOf(scenario)).deep.equal(expected.history);
|
|
84
|
+
should((await scenario.eventSequence.getNextSequenceNumber()).value.toString()).equal(expected.next);
|
|
85
|
+
}
|
|
86
|
+
validate.mockRestore();
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function fieldKeyMeasurements(types: Types): void {
|
|
92
|
+
for (const type of Object.values(types)) {
|
|
93
|
+
const metadata = getEventTypeMetadata(type)!;
|
|
94
|
+
metadata.schema.properties!.key = fixture.fieldSchemas[metadata.eventType.id.value];
|
|
95
|
+
}
|
|
96
|
+
// Replay complete supported prefixes; later numeric vectors remain kernel-only measurements.
|
|
97
|
+
replay(types.text, 0);
|
|
98
|
+
replay(types.decimal, 1);
|
|
99
|
+
replay(types.float, 2);
|
|
100
|
+
|
|
101
|
+
rejectUnmeasured(types);
|
|
102
|
+
rejectShapes(types);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function rejectUnmeasured(types: Types): void {
|
|
106
|
+
for (const [type, values] of [
|
|
107
|
+
[types.text, ['\u{1f601}', '\u{10001}', '\ud83d', '\ude00', '\ude00\ud83d', '\ud83dx', 'λ', '\u0002']],
|
|
108
|
+
[types.decimal, [1e-7, 1e21, 1.5]],
|
|
109
|
+
[types.float, [1.23456789, 1e-7, 1e21, 0.000001, 1.5]]
|
|
110
|
+
] as const) {
|
|
111
|
+
for (const value of values) {
|
|
112
|
+
describe(`when the ${type.name} key is unproven ${JSON.stringify(value)}`, () => {
|
|
113
|
+
let scenario: EventScenario;
|
|
114
|
+
beforeEach(() => { scenario = scenarioFor(type); });
|
|
115
|
+
for (const mode of ['single', 'batch']) {
|
|
116
|
+
it(`should keep prior history, results and the next sequence after a rejected ${mode} append`, async () => {
|
|
117
|
+
const good = Object.assign(new type(), { key: type === types.text ? 'safe' : 0.1 });
|
|
118
|
+
await scenario.append('A', good);
|
|
119
|
+
const history = historyOf(scenario);
|
|
120
|
+
const results = [...scenario.results];
|
|
121
|
+
const invalid = Object.assign(new type(), { key: value });
|
|
122
|
+
const pending = mode === 'single' ? scenario.append('B', invalid)
|
|
123
|
+
: scenario.appendMany([{ eventSourceId: 'B', event: good }, { eventSourceId: 'C', event: invalid }]);
|
|
124
|
+
const error = await pending.then(() => undefined, error => error);
|
|
125
|
+
should(error).instanceOf(UnsupportedEventSequenceOperation);
|
|
126
|
+
should(historyOf(scenario)).deep.equal(history);
|
|
127
|
+
should(scenario.results).deep.equal(results);
|
|
128
|
+
should((await scenario.eventSequence.getNextSequenceNumber()).value).equal(1n);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
it('should reject atomically and leave setup results, history and the next sequence unchanged', async () => {
|
|
132
|
+
const good = Object.assign(new type(), { key: type === types.text ? 'safe' : 0.1 });
|
|
133
|
+
const invalid = Object.assign(new type(), { key: value });
|
|
134
|
+
const error = await scenario.given.forEventSource('A').events(good, invalid).then(() => undefined, error => error);
|
|
135
|
+
should(error).instanceOf(UnsupportedEventSequenceOperation);
|
|
136
|
+
should(scenario.appendedEvents).have.lengthOf(0);
|
|
137
|
+
should(scenario.results).have.lengthOf(0);
|
|
138
|
+
should((await scenario.eventSequence.getNextSequenceNumber()).value).equal(0n);
|
|
139
|
+
should((await scenario.append('A', good)).isSuccess).equal(true);
|
|
140
|
+
should((await scenario.eventSequence.getNextSequenceNumber()).value).equal(1n);
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function rejectShapes(types: Types): void {
|
|
149
|
+
for (const mode of ['scoped', 'removable', 'ignoreCasing', 'overlapping']) {
|
|
150
|
+
for (const [type, value] of [[types.text, '東京'], [types.text, '\u{1f600}'], [types.decimal, 0.1], [types.float, 0.1]] as const) {
|
|
151
|
+
it(`should keep new ${type.name} key ${JSON.stringify(value)} rejected for ${mode} definitions`, async () => {
|
|
152
|
+
const constraints = mode === 'overlapping'
|
|
153
|
+
? [definition(type), definition(type, 'plain', 'OtherKey')]
|
|
154
|
+
: [definition(type, mode)];
|
|
155
|
+
const error = await Promise.resolve().then(() => scenarioFor(type, constraints))
|
|
156
|
+
.then(scenario => scenario.append('A', Object.assign(new type(), { key: value }))).then(() => undefined, error => error);
|
|
157
|
+
should(error).instanceOf(UnsupportedEventSequenceOperation);
|
|
158
|
+
should(String(error)).include('artifacts.constraints');
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import 'reflect-metadata';
|
|
5
|
+
import { field } from '@cratis/fundamentals';
|
|
6
|
+
import { eventType } from '../../../events/eventTypeDecorator.js';
|
|
7
|
+
import { fieldKeyMeasurements } from './field_key_measurements.fixture.js';
|
|
8
|
+
|
|
9
|
+
class TextClaimed { @field(String) key = ''; }
|
|
10
|
+
eventType('OracleFieldText')(TextClaimed);
|
|
11
|
+
class DecimalClaimed { @field(Number) key = 0.1; }
|
|
12
|
+
eventType('OracleFieldDecimal')(DecimalClaimed);
|
|
13
|
+
class FloatClaimed { @field(Number) key = 0.1; }
|
|
14
|
+
eventType('OracleFieldFloat')(FloatClaimed);
|
|
15
|
+
|
|
16
|
+
fieldKeyMeasurements({ text: TextClaimed, decimal: DecimalClaimed, float: FloatClaimed });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { field } from '@cratis/fundamentals';
|
|
5
|
+
import { eventType } from '../../../events/eventTypeDecorator.js';
|
|
6
|
+
import { fieldKeyMeasurements } from './field_key_measurements.fixture.js';
|
|
7
|
+
|
|
8
|
+
@eventType('OracleFieldText')
|
|
9
|
+
class TextClaimed { @field(String) key = ''; }
|
|
10
|
+
@eventType('OracleFieldDecimal')
|
|
11
|
+
class DecimalClaimed { @field(Number) key = 0.1; }
|
|
12
|
+
@eventType('OracleFieldFloat')
|
|
13
|
+
class FloatClaimed { @field(Number) key = 0.1; }
|
|
14
|
+
|
|
15
|
+
fieldKeyMeasurements({ text: TextClaimed, decimal: DecimalClaimed, float: FloatClaimed });
|
package/testing/for_EventScenario/when_appending_field_types/with_unproven_schemas.legacy.spec.ts
CHANGED
|
@@ -15,7 +15,7 @@ chai.should();
|
|
|
15
15
|
|
|
16
16
|
for (const schema of [
|
|
17
17
|
{ type: 'string', format: 'date' }, { type: 'string', format: 'date-time' },
|
|
18
|
-
{ type: 'object' }, { type: 'integer', format: 'int64' }, { type: '
|
|
18
|
+
{ type: 'object' }, { type: 'integer', format: 'int64' }, { type: 'integer', format: 'uint64' }
|
|
19
19
|
] satisfies JsonSchema[]) {
|
|
20
20
|
describe(`when registering a ${schema.type}/${schema.format ?? 'unformatted'} constrained schema`, () => {
|
|
21
21
|
it('should reject the constraint without rejecting an unconstrained field', async () => {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { chai, describe, it } from 'vitest';
|
|
5
|
+
import { kernelEscapedJson } from '../../KernelTextHash.js';
|
|
6
|
+
|
|
7
|
+
chai.should();
|
|
8
|
+
|
|
9
|
+
describe('when escaping JSON with supplementary characters', () => {
|
|
10
|
+
it('should write each surrogate as an uppercase escape', () => {
|
|
11
|
+
kernelEscapedJson(JSON.stringify({ key: '\u{1f600}' })).should.equal('{"key":"\\uD83D\\uDE00"}');
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('should escape the highest scalar and adjacent pairs', () => {
|
|
15
|
+
kernelEscapedJson('"\u{10ffff}\u{10000}\u{1f600}\u{1f642}"').should.equal('"\\uDBFF\\uDFFF\\uD800\\uDC00\\uD83D\\uDE00\\uD83D\\uDE42"');
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should keep BMP characters, quotes and escapes literal', () => {
|
|
19
|
+
const json = JSON.stringify({ key: '\u00e9\u4eac\u0301"\\\n\u0000' });
|
|
20
|
+
kernelEscapedJson(json).should.equal(json);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should not touch literal backslash-u text or escape it twice', () => {
|
|
24
|
+
const json = JSON.stringify({ key: '\\uD83D\\uDE00' });
|
|
25
|
+
kernelEscapedJson(json).should.equal(json);
|
|
26
|
+
kernelEscapedJson(kernelEscapedJson(JSON.stringify('\u{1f600}'))).should.equal('"\\uD83D\\uDE00"');
|
|
27
|
+
});
|
|
28
|
+
});
|