@proophboard/exploration-runtime 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +68 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/connectionRules.d.ts +39 -0
- package/dist/lib/connectionRules.d.ts.map +1 -0
- package/dist/lib/connectionRules.js +475 -0
- package/dist/lib/connectionRules.js.map +1 -0
- package/dist/lib/toClassName.d.ts +42 -0
- package/dist/lib/toClassName.d.ts.map +1 -0
- package/dist/lib/toClassName.js +82 -0
- package/dist/lib/toClassName.js.map +1 -0
- package/dist/playFunction/ambientTypes.d.ts +30 -0
- package/dist/playFunction/ambientTypes.d.ts.map +1 -0
- package/dist/playFunction/ambientTypes.js +174 -0
- package/dist/playFunction/ambientTypes.js.map +1 -0
- package/dist/playFunction/cascadeBudget.d.ts +53 -0
- package/dist/playFunction/cascadeBudget.d.ts.map +1 -0
- package/dist/playFunction/cascadeBudget.js +74 -0
- package/dist/playFunction/cascadeBudget.js.map +1 -0
- package/dist/playFunction/clock.d.ts +58 -0
- package/dist/playFunction/clock.d.ts.map +1 -0
- package/dist/playFunction/clock.js +104 -0
- package/dist/playFunction/clock.js.map +1 -0
- package/dist/playFunction/modelTypes.d.ts +74 -0
- package/dist/playFunction/modelTypes.d.ts.map +1 -0
- package/dist/playFunction/modelTypes.js +345 -0
- package/dist/playFunction/modelTypes.js.map +1 -0
- package/dist/playFunction/playLog.d.ts +29 -0
- package/dist/playFunction/playLog.d.ts.map +1 -0
- package/dist/playFunction/playLog.js +64 -0
- package/dist/playFunction/playLog.js.map +1 -0
- package/dist/playFunction/playType.d.ts +52 -0
- package/dist/playFunction/playType.d.ts.map +1 -0
- package/dist/playFunction/playType.js +94 -0
- package/dist/playFunction/playType.js.map +1 -0
- package/dist/playFunction/runtimeFold.d.ts +51 -0
- package/dist/playFunction/runtimeFold.d.ts.map +1 -0
- package/dist/playFunction/runtimeFold.js +620 -0
- package/dist/playFunction/runtimeFold.js.map +1 -0
- package/dist/playFunction/runtimeSteps.d.ts +45 -0
- package/dist/playFunction/runtimeSteps.d.ts.map +1 -0
- package/dist/playFunction/runtimeSteps.js +112 -0
- package/dist/playFunction/runtimeSteps.js.map +1 -0
- package/dist/playFunction/sandbox.d.ts +52 -0
- package/dist/playFunction/sandbox.d.ts.map +1 -0
- package/dist/playFunction/sandbox.js +91 -0
- package/dist/playFunction/sandbox.js.map +1 -0
- package/dist/playFunction/scenarioRunner.d.ts +49 -0
- package/dist/playFunction/scenarioRunner.d.ts.map +1 -0
- package/dist/playFunction/scenarioRunner.js +331 -0
- package/dist/playFunction/scenarioRunner.js.map +1 -0
- package/dist/playFunction/transpile.d.ts +33 -0
- package/dist/playFunction/transpile.d.ts.map +1 -0
- package/dist/playFunction/transpile.js +71 -0
- package/dist/playFunction/transpile.js.map +1 -0
- package/dist/types/eventModel.d.ts +79 -0
- package/dist/types/eventModel.d.ts.map +1 -0
- package/dist/types/eventModel.js +12 -0
- package/dist/types/eventModel.js.map +1 -0
- package/dist/types/exploration.d.ts +143 -0
- package/dist/types/exploration.d.ts.map +1 -0
- package/dist/types/exploration.js +28 -0
- package/dist/types/exploration.js.map +1 -0
- package/package.json +48 -4
- package/README.md +0 -3
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exploration Mode runtime types (copied from eventflow-designer
|
|
3
|
+
* src/types/exploration.ts — pure, no imports). Keep in sync; the parity test
|
|
4
|
+
* guards the runtime behaviour that depends on these shapes.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The runtime state tree (R7).
|
|
8
|
+
*
|
|
9
|
+
* state.$events — ordered log, index from 0
|
|
10
|
+
* state.<Context>.<Element> — projections, keyed via toClassName()
|
|
11
|
+
*/
|
|
12
|
+
export interface RuntimeState {
|
|
13
|
+
$events: RuntimeEvent[];
|
|
14
|
+
[context: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
/** One entry in the ordered event log (R7). */
|
|
17
|
+
export interface RuntimeEvent {
|
|
18
|
+
name: string;
|
|
19
|
+
context: string;
|
|
20
|
+
payload: Record<string, unknown>;
|
|
21
|
+
index: number;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
/** The id of the slice whose step emitted this event (M5 attribution). */
|
|
24
|
+
sliceId?: string;
|
|
25
|
+
}
|
|
26
|
+
/** A command produced by interact/react/process and fed into command.decide. */
|
|
27
|
+
export interface RuntimeCommand {
|
|
28
|
+
name: string;
|
|
29
|
+
context: string;
|
|
30
|
+
payload: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
/** One recorded UI interaction (R26). `storage` collected at a UI step. */
|
|
33
|
+
export interface InteractionLogEntry {
|
|
34
|
+
stepIndex: number;
|
|
35
|
+
storage: Record<string, unknown>;
|
|
36
|
+
}
|
|
37
|
+
/** ImplicitScenario — the in-memory scenario the fold consumes. */
|
|
38
|
+
export interface ImplicitScenario {
|
|
39
|
+
initialState: Record<string, Record<string, unknown>>;
|
|
40
|
+
seededEvents?: Array<Omit<RuntimeEvent, 'index' | 'timestamp'> & Partial<Pick<RuntimeEvent, 'timestamp'>>>;
|
|
41
|
+
clock?: string;
|
|
42
|
+
interactions?: InteractionLogEntry[];
|
|
43
|
+
}
|
|
44
|
+
/** The deterministic reducer output (R3–R5). */
|
|
45
|
+
export interface RuntimeResult {
|
|
46
|
+
events: RuntimeEvent[];
|
|
47
|
+
state: RuntimeState;
|
|
48
|
+
}
|
|
49
|
+
/** A handler/runtime error surfaced from the fold (R15, R20). */
|
|
50
|
+
export interface RuntimeError {
|
|
51
|
+
kind: 'threw' | 'rejected' | 'cascade-exceeded' | 'dangling-reference';
|
|
52
|
+
message: string;
|
|
53
|
+
stepIndex: number;
|
|
54
|
+
sliceId?: string;
|
|
55
|
+
elementId?: string;
|
|
56
|
+
elementName?: string;
|
|
57
|
+
cascadeKind?: 'depth' | 'total-events';
|
|
58
|
+
}
|
|
59
|
+
/** A derived Information view produced by a `read(state)` handler (R11a, R21a). */
|
|
60
|
+
export interface RuntimeReadView {
|
|
61
|
+
elementId: string;
|
|
62
|
+
key: string;
|
|
63
|
+
view: unknown;
|
|
64
|
+
}
|
|
65
|
+
/** An automation-dispatched command not yet reached by the playhead. */
|
|
66
|
+
export interface PendingCommand {
|
|
67
|
+
commandElementId?: string;
|
|
68
|
+
name: string;
|
|
69
|
+
context: string;
|
|
70
|
+
payload: Record<string, unknown>;
|
|
71
|
+
sourceAutomationId: string;
|
|
72
|
+
sourceAutomationName: string;
|
|
73
|
+
triggeredByEventName?: string;
|
|
74
|
+
}
|
|
75
|
+
/** The reducer output extended for authored handlers (4b). */
|
|
76
|
+
export interface RuntimeResultV2 extends RuntimeResult {
|
|
77
|
+
errors?: RuntimeError[];
|
|
78
|
+
readViews?: RuntimeReadView[];
|
|
79
|
+
pendingCommands?: PendingCommand[];
|
|
80
|
+
clockISO?: string;
|
|
81
|
+
}
|
|
82
|
+
/** An empty implicit scenario — the default when nothing is seeded. */
|
|
83
|
+
export declare const EMPTY_IMPLICIT_SCENARIO: ImplicitScenario;
|
|
84
|
+
/** Scenario — the persisted, chapter-scoped scenario (superset of Implicit). */
|
|
85
|
+
export interface Scenario extends ImplicitScenario {
|
|
86
|
+
id: string;
|
|
87
|
+
chapterId: string;
|
|
88
|
+
name: string;
|
|
89
|
+
expectations?: ScenarioExpectation[];
|
|
90
|
+
}
|
|
91
|
+
/** ScenarioExpectation — one pinned, asserted outcome (M5). */
|
|
92
|
+
export interface ScenarioExpectation {
|
|
93
|
+
id: string;
|
|
94
|
+
sliceId: string;
|
|
95
|
+
kind: 'events' | 'information' | 'rejection';
|
|
96
|
+
elementId?: string;
|
|
97
|
+
match?: 'exact' | 'subset';
|
|
98
|
+
expected: ExpectedEvents | ExpectedInformation | ExpectedRejection;
|
|
99
|
+
}
|
|
100
|
+
/** Expected emitted events for an `events` expectation. */
|
|
101
|
+
export interface ExpectedEvents {
|
|
102
|
+
events: Array<{
|
|
103
|
+
name: string;
|
|
104
|
+
context: string;
|
|
105
|
+
payload?: Record<string, unknown>;
|
|
106
|
+
}>;
|
|
107
|
+
}
|
|
108
|
+
/** Expected Information value for an `information` expectation. */
|
|
109
|
+
export interface ExpectedInformation {
|
|
110
|
+
value: unknown;
|
|
111
|
+
view: 'stored' | 'read';
|
|
112
|
+
}
|
|
113
|
+
/** Expected rejection for a `rejection` expectation. */
|
|
114
|
+
export interface ExpectedRejection {
|
|
115
|
+
message?: string;
|
|
116
|
+
elementName?: string;
|
|
117
|
+
}
|
|
118
|
+
/** Narrowing type guards for the expected union. */
|
|
119
|
+
export declare function isExpectedEvents(e: ScenarioExpectation['expected']): e is ExpectedEvents;
|
|
120
|
+
export declare function isExpectedInformation(e: ScenarioExpectation['expected']): e is ExpectedInformation;
|
|
121
|
+
/** The verdict for a single expectation after a run. */
|
|
122
|
+
export interface ExpectationResult {
|
|
123
|
+
expectationId: string;
|
|
124
|
+
sliceId: string;
|
|
125
|
+
kind: ScenarioExpectation['kind'];
|
|
126
|
+
elementId?: string;
|
|
127
|
+
matched: boolean;
|
|
128
|
+
failureKind?: 'mismatch' | 'dangling-reference' | 'threw' | 'cascade-exceeded' | 'rejected-missing' | 'unexpected-events';
|
|
129
|
+
message?: string;
|
|
130
|
+
actual?: unknown;
|
|
131
|
+
expected?: unknown;
|
|
132
|
+
}
|
|
133
|
+
/** The machine-readable outcome of running one scenario as a test (M5). */
|
|
134
|
+
export interface ScenarioRunResult {
|
|
135
|
+
scenarioId: string;
|
|
136
|
+
scenarioName: string;
|
|
137
|
+
status: 'pass' | 'broken' | 'neutral';
|
|
138
|
+
expectationResults: ExpectationResult[];
|
|
139
|
+
structuralErrors: RuntimeError[];
|
|
140
|
+
}
|
|
141
|
+
/** Adapter: narrow a persisted Scenario down to the runtime-facing Implicit one. */
|
|
142
|
+
export declare function toImplicitScenario(scenario: Scenario | undefined | null): ImplicitScenario;
|
|
143
|
+
//# sourceMappingURL=exploration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exploration.d.ts","sourceRoot":"","sources":["../../src/types/exploration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED,+CAA+C;AAC/C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACtD,YAAY,CAAC,EAAE,KAAK,CAClB,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,CACrF,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACtC;AAED,gD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AAM,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EACR,UAAU,GACV,oBAAoB,GACpB,OAAO,GACP,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,2EAA2E;AAC3E,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,gBAAgB,EAAE,YAAY,EAAE,CAAC;CAClC;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,GAAG,gBAAgB,CAQ1F"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exploration Mode runtime types (copied from eventflow-designer
|
|
3
|
+
* src/types/exploration.ts — pure, no imports). Keep in sync; the parity test
|
|
4
|
+
* guards the runtime behaviour that depends on these shapes.
|
|
5
|
+
*/
|
|
6
|
+
/** An empty implicit scenario — the default when nothing is seeded. */
|
|
7
|
+
export const EMPTY_IMPLICIT_SCENARIO = {
|
|
8
|
+
initialState: {},
|
|
9
|
+
};
|
|
10
|
+
/** Narrowing type guards for the expected union. */
|
|
11
|
+
export function isExpectedEvents(e) {
|
|
12
|
+
return e.events !== undefined;
|
|
13
|
+
}
|
|
14
|
+
export function isExpectedInformation(e) {
|
|
15
|
+
return e.view !== undefined;
|
|
16
|
+
}
|
|
17
|
+
/** Adapter: narrow a persisted Scenario down to the runtime-facing Implicit one. */
|
|
18
|
+
export function toImplicitScenario(scenario) {
|
|
19
|
+
if (!scenario)
|
|
20
|
+
return EMPTY_IMPLICIT_SCENARIO;
|
|
21
|
+
return {
|
|
22
|
+
initialState: scenario.initialState ?? {},
|
|
23
|
+
seededEvents: scenario.seededEvents,
|
|
24
|
+
clock: scenario.clock ?? undefined,
|
|
25
|
+
interactions: scenario.interactions,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=exploration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exploration.js","sourceRoot":"","sources":["../../src/types/exploration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0FH,uEAAuE;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAqB;IACvD,YAAY,EAAE,EAAE;CACjB,CAAC;AAqCF,oDAAoD;AACpD,MAAM,UAAU,gBAAgB,CAAC,CAAkC;IACjE,OAAQ,CAAoB,CAAC,MAAM,KAAK,SAAS,CAAC;AACpD,CAAC;AACD,MAAM,UAAU,qBAAqB,CACnC,CAAkC;IAElC,OAAQ,CAAyB,CAAC,IAAI,KAAK,SAAS,CAAC;AACvD,CAAC;AA8BD,oFAAoF;AACpF,MAAM,UAAU,kBAAkB,CAAC,QAAqC;IACtE,IAAI,CAAC,QAAQ;QAAE,OAAO,uBAAuB,CAAC;IAC9C,OAAO;QACL,YAAY,EAAE,QAAQ,CAAC,YAAY,IAAI,EAAE;QACzC,YAAY,EAAE,QAAQ,CAAC,YAAY;QACnC,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,SAAS;QAClC,YAAY,EAAE,QAAQ,CAAC,YAAY;KACpC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proophboard/exploration-runtime",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Pure, environment-independent Exploration Mode runtime for prooph board: fold play functions, run scenarios as tests, and build the TypeScript .d.ts surfaces used to typecheck play functions. Runs in Node and the browser.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"prooph-board",
|
|
7
|
+
"event-modeling",
|
|
8
|
+
"exploration-mode",
|
|
9
|
+
"play-function",
|
|
10
|
+
"scenario",
|
|
11
|
+
"runtime"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "prooph software GmbH",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"module": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc -p tsconfig.json",
|
|
34
|
+
"dev": "tsc -p tsconfig.json --watch",
|
|
35
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
36
|
+
"test": "vitest run",
|
|
37
|
+
"test:watch": "vitest",
|
|
38
|
+
"prepublishOnly": "npm run build"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"lodash": "^4.17.21",
|
|
42
|
+
"sucrase": "^3.35.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/lodash": "^4.17.0",
|
|
46
|
+
"@types/node": "^20.14.0",
|
|
47
|
+
"typescript": "^5.5.0",
|
|
48
|
+
"vitest": "^3.2.0"
|
|
49
|
+
}
|
|
50
|
+
}
|
package/README.md
DELETED