@haibun/core 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/currentVersion.d.ts +1 -1
- package/build/currentVersion.js +1 -1
- package/build/kireji/converter.d.ts +16 -1
- package/build/kireji/converter.d.ts.map +1 -1
- package/build/kireji/converter.js +19 -2
- package/build/kireji/converter.js.map +1 -1
- package/build/lib/EventLogger.d.ts +16 -10
- package/build/lib/EventLogger.d.ts.map +1 -1
- package/build/lib/EventLogger.js +54 -21
- package/build/lib/EventLogger.js.map +1 -1
- package/build/lib/astepper.d.ts +6 -0
- package/build/lib/astepper.d.ts.map +1 -1
- package/build/lib/astepper.js +1 -0
- package/build/lib/astepper.js.map +1 -1
- package/build/lib/base-prompt-manager.d.ts.map +1 -1
- package/build/lib/base-prompt-manager.js +2 -2
- package/build/lib/base-prompt-manager.js.map +1 -1
- package/build/lib/capture-locator.d.ts +1 -1
- package/build/lib/capture-locator.d.ts.map +1 -1
- package/build/lib/capture-locator.js +4 -2
- package/build/lib/capture-locator.js.map +1 -1
- package/build/lib/core/flow-runner.d.ts +5 -4
- package/build/lib/core/flow-runner.d.ts.map +1 -1
- package/build/lib/core/flow-runner.js +48 -15
- package/build/lib/core/flow-runner.js.map +1 -1
- package/build/lib/core-domains.d.ts +1 -1
- package/build/lib/core-domains.d.ts.map +1 -1
- package/build/lib/core-domains.js +1 -1
- package/build/lib/core-domains.js.map +1 -1
- package/build/lib/defs.d.ts +103 -200
- package/build/lib/defs.d.ts.map +1 -1
- package/build/lib/defs.js +4 -46
- package/build/lib/defs.js.map +1 -1
- package/build/lib/feature-variables.d.ts +2 -1
- package/build/lib/feature-variables.d.ts.map +1 -1
- package/build/lib/feature-variables.js +1 -2
- package/build/lib/feature-variables.js.map +1 -1
- package/build/lib/features.d.ts +5 -4
- package/build/lib/features.d.ts.map +1 -1
- package/build/lib/features.js +26 -16
- package/build/lib/features.js.map +1 -1
- package/build/lib/fixme.d.ts +1 -1
- package/build/lib/fixme.d.ts.map +1 -1
- package/build/lib/http-observations.d.ts +25 -0
- package/build/lib/http-observations.d.ts.map +1 -0
- package/build/lib/http-observations.js +40 -0
- package/build/lib/http-observations.js.map +1 -0
- package/build/lib/namedVars.d.ts +5 -1
- package/build/lib/namedVars.d.ts.map +1 -1
- package/build/lib/namedVars.js +11 -1
- package/build/lib/namedVars.js.map +1 -1
- package/build/lib/node-http-events.d.ts +16 -0
- package/build/lib/node-http-events.d.ts.map +1 -0
- package/build/lib/node-http-events.js +125 -0
- package/build/lib/node-http-events.js.map +1 -0
- package/build/lib/populateActionArgs.d.ts +2 -1
- package/build/lib/populateActionArgs.d.ts.map +1 -1
- package/build/lib/populateActionArgs.js.map +1 -1
- package/build/lib/resolver-features.d.ts +2 -1
- package/build/lib/resolver-features.d.ts.map +1 -1
- package/build/lib/resolver-features.js +2 -2
- package/build/lib/resolver-features.js.map +1 -1
- package/build/lib/step-trace.d.ts +10 -0
- package/build/lib/step-trace.d.ts.map +1 -0
- package/build/lib/step-trace.js +3 -0
- package/build/lib/step-trace.js.map +1 -0
- package/build/lib/stepper-registry.d.ts +28 -0
- package/build/lib/stepper-registry.d.ts.map +1 -0
- package/build/lib/stepper-registry.js +42 -0
- package/build/lib/stepper-registry.js.map +1 -0
- package/build/lib/test/SetTimeStepper.d.ts +2 -2
- package/build/lib/test/SetTimeStepper.d.ts.map +1 -1
- package/build/lib/test/SetTimeStepper.js +1 -1
- package/build/lib/test/SetTimeStepper.js.map +1 -1
- package/build/lib/test/TestSteps.d.ts +5 -3
- package/build/lib/test/TestSteps.d.ts.map +1 -1
- package/build/lib/test/TestStepsWithOptions.d.ts +3 -1
- package/build/lib/test/TestStepsWithOptions.d.ts.map +1 -1
- package/build/lib/test/TestStepsWithOptions.js +3 -5
- package/build/lib/test/TestStepsWithOptions.js.map +1 -1
- package/build/lib/test/lib.d.ts +4 -3
- package/build/lib/test/lib.d.ts.map +1 -1
- package/build/lib/test/lib.js +12 -12
- package/build/lib/test/lib.js.map +1 -1
- package/build/lib/test/resolvedTestFeatures.d.ts +5 -5
- package/build/lib/test/resolvedTestFeatures.js +1 -1
- package/build/lib/test/resolvedTestFeatures.js.map +1 -1
- package/build/lib/ttag.d.ts +2 -2
- package/build/lib/ttag.d.ts.map +1 -1
- package/build/lib/ttag.js +5 -5
- package/build/lib/ttag.js.map +1 -1
- package/build/lib/util/index.d.ts +20 -12
- package/build/lib/util/index.d.ts.map +1 -1
- package/build/lib/util/index.js +53 -17
- package/build/lib/util/index.js.map +1 -1
- package/build/lib/workspace-discovery.d.ts +37 -0
- package/build/lib/workspace-discovery.d.ts.map +1 -0
- package/build/lib/workspace-discovery.js +96 -0
- package/build/lib/workspace-discovery.js.map +1 -0
- package/build/monitor/index.d.ts +1 -10
- package/build/monitor/index.d.ts.map +1 -1
- package/build/monitor/index.js +1 -14
- package/build/monitor/index.js.map +1 -1
- package/build/phases/Executor.d.ts +3 -11
- package/build/phases/Executor.d.ts.map +1 -1
- package/build/phases/Executor.js +76 -169
- package/build/phases/Executor.js.map +1 -1
- package/build/phases/Resolver.d.ts +25 -1
- package/build/phases/Resolver.d.ts.map +1 -1
- package/build/phases/Resolver.js +88 -22
- package/build/phases/Resolver.js.map +1 -1
- package/build/phases/collector.d.ts +1 -0
- package/build/phases/collector.d.ts.map +1 -1
- package/build/phases/collector.js +7 -3
- package/build/phases/collector.js.map +1 -1
- package/build/runner.d.ts +3 -2
- package/build/runner.d.ts.map +1 -1
- package/build/runner.js +0 -1
- package/build/runner.js.map +1 -1
- package/build/schema/protocol.d.ts +1443 -0
- package/build/schema/protocol.d.ts.map +1 -0
- package/build/schema/protocol.js +429 -0
- package/build/schema/protocol.js.map +1 -0
- package/build/steps/activities-stepper.d.ts +24 -28
- package/build/steps/activities-stepper.d.ts.map +1 -1
- package/build/steps/activities-stepper.js +150 -162
- package/build/steps/activities-stepper.js.map +1 -1
- package/build/steps/conformance.d.ts +3 -1
- package/build/steps/conformance.d.ts.map +1 -1
- package/build/steps/conformance.js +1 -0
- package/build/steps/conformance.js.map +1 -1
- package/build/steps/console-monitor-stepper.d.ts +3 -6
- package/build/steps/console-monitor-stepper.d.ts.map +1 -1
- package/build/steps/console-monitor-stepper.js +23 -64
- package/build/steps/console-monitor-stepper.js.map +1 -1
- package/build/steps/debugger-stepper.d.ts +7 -4
- package/build/steps/debugger-stepper.d.ts.map +1 -1
- package/build/steps/debugger-stepper.js +36 -43
- package/build/steps/debugger-stepper.js.map +1 -1
- package/build/steps/haibun.d.ts +24 -16
- package/build/steps/haibun.d.ts.map +1 -1
- package/build/steps/haibun.js +68 -31
- package/build/steps/haibun.js.map +1 -1
- package/build/steps/lib/tts.d.ts +2 -3
- package/build/steps/lib/tts.d.ts.map +1 -1
- package/build/steps/lib/tts.js +4 -5
- package/build/steps/lib/tts.js.map +1 -1
- package/build/steps/logic-stepper.d.ts +14 -3
- package/build/steps/logic-stepper.d.ts.map +1 -1
- package/build/steps/logic-stepper.js +116 -17
- package/build/steps/logic-stepper.js.map +1 -1
- package/build/steps/narrator.d.ts +7 -5
- package/build/steps/narrator.d.ts.map +1 -1
- package/build/steps/narrator.js +30 -18
- package/build/steps/narrator.js.map +1 -1
- package/build/steps/parse.d.ts +5 -3
- package/build/steps/parse.d.ts.map +1 -1
- package/build/steps/parse.js +2 -1
- package/build/steps/parse.js.map +1 -1
- package/build/steps/variables-stepper.d.ts +285 -4
- package/build/steps/variables-stepper.d.ts.map +1 -1
- package/build/steps/variables-stepper.js +44 -50
- package/build/steps/variables-stepper.js.map +1 -1
- package/package.json +9 -16
- package/build/lib/Logger.d.ts +0 -48
- package/build/lib/Logger.d.ts.map +0 -1
- package/build/lib/Logger.js +0 -85
- package/build/lib/Logger.js.map +0 -1
- package/build/lib/TestLogger.d.ts +0 -12
- package/build/lib/TestLogger.d.ts.map +0 -1
- package/build/lib/TestLogger.js +0 -12
- package/build/lib/TestLogger.js.map +0 -1
- package/build/lib/Timer.d.ts +0 -7
- package/build/lib/Timer.d.ts.map +0 -1
- package/build/lib/Timer.js +0 -9
- package/build/lib/Timer.js.map +0 -1
- package/build/lib/core/protocol.d.ts +0 -58
- package/build/lib/core/protocol.d.ts.map +0 -1
- package/build/lib/core/protocol.js +0 -18
- package/build/lib/core/protocol.js.map +0 -1
- package/build/lib/event-bridge.d.ts +0 -42
- package/build/lib/event-bridge.d.ts.map +0 -1
- package/build/lib/event-bridge.js +0 -214
- package/build/lib/event-bridge.js.map +0 -1
- package/build/lib/interfaces/logger.d.ts +0 -123
- package/build/lib/interfaces/logger.d.ts.map +0 -1
- package/build/lib/interfaces/logger.js +0 -29
- package/build/lib/interfaces/logger.js.map +0 -1
- package/build/lib/util/variables.d.ts +0 -9
- package/build/lib/util/variables.d.ts.map +0 -1
- package/build/lib/util/variables.js +0 -40
- package/build/lib/util/variables.js.map +0 -1
- package/build/monitor/browser-stubs.d.ts +0 -12
- package/build/monitor/browser-stubs.d.ts.map +0 -1
- package/build/monitor/browser-stubs.js +0 -20
- package/build/monitor/browser-stubs.js.map +0 -1
- package/build/monitor/constants.d.ts +0 -9
- package/build/monitor/constants.d.ts.map +0 -1
- package/build/monitor/constants.js +0 -9
- package/build/monitor/constants.js.map +0 -1
- package/build/monitor/event-view.d.ts +0 -40
- package/build/monitor/event-view.d.ts.map +0 -1
- package/build/monitor/event-view.js +0 -104
- package/build/monitor/event-view.js.map +0 -1
- package/build/monitor/filters.d.ts +0 -17
- package/build/monitor/filters.d.ts.map +0 -1
- package/build/monitor/filters.js +0 -32
- package/build/monitor/filters.js.map +0 -1
- package/build/monitor/formatters.d.ts +0 -27
- package/build/monitor/formatters.d.ts.map +0 -1
- package/build/monitor/formatters.js +0 -89
- package/build/monitor/formatters.js.map +0 -1
- package/build/monitor/jit-serialization.d.ts +0 -9
- package/build/monitor/jit-serialization.d.ts.map +0 -1
- package/build/monitor/jit-serialization.js +0 -73
- package/build/monitor/jit-serialization.js.map +0 -1
- package/build/monitor/monitor-types.d.ts +0 -119
- package/build/monitor/monitor-types.d.ts.map +0 -1
- package/build/monitor/monitor-types.js +0 -43
- package/build/monitor/monitor-types.js.map +0 -1
- package/build/monitor/speculative-tracker.d.ts +0 -20
- package/build/monitor/speculative-tracker.d.ts.map +0 -1
- package/build/monitor/speculative-tracker.js +0 -38
- package/build/monitor/speculative-tracker.js.map +0 -1
- package/build/monitor/state.d.ts +0 -31
- package/build/monitor/state.d.ts.map +0 -1
- package/build/monitor/state.js +0 -110
- package/build/monitor/state.js.map +0 -1
- package/build/monitor/timer.d.ts +0 -11
- package/build/monitor/timer.d.ts.map +0 -1
- package/build/monitor/timer.js +0 -13
- package/build/monitor/timer.js.map +0 -1
- package/build/monitor/tree-builder.d.ts +0 -25
- package/build/monitor/tree-builder.d.ts.map +0 -1
- package/build/monitor/tree-builder.js +0 -36
- package/build/monitor/tree-builder.js.map +0 -1
- package/build/schema/events.d.ts +0 -426
- package/build/schema/events.d.ts.map +0 -1
- package/build/schema/events.js +0 -123
- package/build/schema/events.js.map +0 -1
package/build/schema/events.d.ts
DELETED
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const BaseEvent: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
timestamp: z.ZodNumber;
|
|
5
|
-
source: z.ZodDefault<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare const LifecycleEvent: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
timestamp: z.ZodNumber;
|
|
10
|
-
source: z.ZodDefault<z.ZodString>;
|
|
11
|
-
kind: z.ZodLiteral<"lifecycle">;
|
|
12
|
-
type: z.ZodEnum<{
|
|
13
|
-
feature: "feature";
|
|
14
|
-
scenario: "scenario";
|
|
15
|
-
step: "step";
|
|
16
|
-
activity: "activity";
|
|
17
|
-
waypoint: "waypoint";
|
|
18
|
-
ensure: "ensure";
|
|
19
|
-
execution: "execution";
|
|
20
|
-
}>;
|
|
21
|
-
stage: z.ZodEnum<{
|
|
22
|
-
start: "start";
|
|
23
|
-
end: "end";
|
|
24
|
-
}>;
|
|
25
|
-
stepperName: z.ZodOptional<z.ZodString>;
|
|
26
|
-
actionName: z.ZodOptional<z.ZodString>;
|
|
27
|
-
label: z.ZodOptional<z.ZodString>;
|
|
28
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
29
|
-
running: "running";
|
|
30
|
-
completed: "completed";
|
|
31
|
-
failed: "failed";
|
|
32
|
-
skipped: "skipped";
|
|
33
|
-
}>>;
|
|
34
|
-
error: z.ZodOptional<z.ZodString>;
|
|
35
|
-
intent: z.ZodOptional<z.ZodObject<{
|
|
36
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
37
|
-
speculative: "speculative";
|
|
38
|
-
authoritative: "authoritative";
|
|
39
|
-
}>>;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
export declare const LogEvent: z.ZodObject<{
|
|
43
|
-
id: z.ZodString;
|
|
44
|
-
timestamp: z.ZodNumber;
|
|
45
|
-
source: z.ZodDefault<z.ZodString>;
|
|
46
|
-
kind: z.ZodLiteral<"log">;
|
|
47
|
-
level: z.ZodEnum<{
|
|
48
|
-
error: "error";
|
|
49
|
-
trace: "trace";
|
|
50
|
-
debug: "debug";
|
|
51
|
-
info: "info";
|
|
52
|
-
warn: "warn";
|
|
53
|
-
}>;
|
|
54
|
-
message: z.ZodString;
|
|
55
|
-
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
export declare const ImageArtifact: z.ZodObject<{
|
|
58
|
-
id: z.ZodString;
|
|
59
|
-
timestamp: z.ZodNumber;
|
|
60
|
-
source: z.ZodDefault<z.ZodString>;
|
|
61
|
-
kind: z.ZodLiteral<"artifact">;
|
|
62
|
-
artifactType: z.ZodLiteral<"image">;
|
|
63
|
-
path: z.ZodString;
|
|
64
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
export declare const VideoArtifact: z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
timestamp: z.ZodNumber;
|
|
69
|
-
source: z.ZodDefault<z.ZodString>;
|
|
70
|
-
kind: z.ZodLiteral<"artifact">;
|
|
71
|
-
artifactType: z.ZodLiteral<"video">;
|
|
72
|
-
path: z.ZodString;
|
|
73
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
74
|
-
isTimeLined: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
export declare const HtmlArtifact: z.ZodObject<{
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
timestamp: z.ZodNumber;
|
|
80
|
-
source: z.ZodDefault<z.ZodString>;
|
|
81
|
-
kind: z.ZodLiteral<"artifact">;
|
|
82
|
-
artifactType: z.ZodLiteral<"html">;
|
|
83
|
-
path: z.ZodString;
|
|
84
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
export declare const SpeechArtifact: z.ZodObject<{
|
|
87
|
-
id: z.ZodString;
|
|
88
|
-
timestamp: z.ZodNumber;
|
|
89
|
-
source: z.ZodDefault<z.ZodString>;
|
|
90
|
-
kind: z.ZodLiteral<"artifact">;
|
|
91
|
-
artifactType: z.ZodLiteral<"speech">;
|
|
92
|
-
path: z.ZodString;
|
|
93
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
94
|
-
transcript: z.ZodOptional<z.ZodString>;
|
|
95
|
-
durationS: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
export declare const JsonArtifact: z.ZodObject<{
|
|
98
|
-
id: z.ZodString;
|
|
99
|
-
timestamp: z.ZodNumber;
|
|
100
|
-
source: z.ZodDefault<z.ZodString>;
|
|
101
|
-
kind: z.ZodLiteral<"artifact">;
|
|
102
|
-
artifactType: z.ZodLiteral<"json">;
|
|
103
|
-
json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
104
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
export declare const MermaidArtifact: z.ZodObject<{
|
|
107
|
-
id: z.ZodString;
|
|
108
|
-
timestamp: z.ZodNumber;
|
|
109
|
-
kind: z.ZodLiteral<"artifact">;
|
|
110
|
-
artifactType: z.ZodLiteral<"mermaid">;
|
|
111
|
-
source: z.ZodString;
|
|
112
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
export declare const HttpTraceArtifact: z.ZodObject<{
|
|
115
|
-
id: z.ZodString;
|
|
116
|
-
timestamp: z.ZodNumber;
|
|
117
|
-
source: z.ZodDefault<z.ZodString>;
|
|
118
|
-
kind: z.ZodLiteral<"artifact">;
|
|
119
|
-
artifactType: z.ZodLiteral<"http-trace">;
|
|
120
|
-
httpEvent: z.ZodEnum<{
|
|
121
|
-
request: "request";
|
|
122
|
-
response: "response";
|
|
123
|
-
route: "route";
|
|
124
|
-
}>;
|
|
125
|
-
trace: z.ZodObject<{
|
|
126
|
-
frameURL: z.ZodOptional<z.ZodString>;
|
|
127
|
-
requestingPage: z.ZodOptional<z.ZodString>;
|
|
128
|
-
requestingURL: z.ZodOptional<z.ZodString>;
|
|
129
|
-
method: z.ZodOptional<z.ZodString>;
|
|
130
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
131
|
-
postData: z.ZodOptional<z.ZodUnknown>;
|
|
132
|
-
status: z.ZodOptional<z.ZodNumber>;
|
|
133
|
-
statusText: z.ZodOptional<z.ZodString>;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
export declare const ResolvedFeaturesArtifact: z.ZodObject<{
|
|
138
|
-
id: z.ZodString;
|
|
139
|
-
timestamp: z.ZodNumber;
|
|
140
|
-
source: z.ZodDefault<z.ZodString>;
|
|
141
|
-
kind: z.ZodLiteral<"artifact">;
|
|
142
|
-
artifactType: z.ZodLiteral<"resolvedFeatures">;
|
|
143
|
-
resolvedFeatures: z.ZodArray<z.ZodUnknown>;
|
|
144
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
145
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
export declare const FileArtifact: z.ZodObject<{
|
|
148
|
-
id: z.ZodString;
|
|
149
|
-
timestamp: z.ZodNumber;
|
|
150
|
-
source: z.ZodDefault<z.ZodString>;
|
|
151
|
-
kind: z.ZodLiteral<"artifact">;
|
|
152
|
-
artifactType: z.ZodLiteral<"file">;
|
|
153
|
-
path: z.ZodString;
|
|
154
|
-
mimetype: z.ZodString;
|
|
155
|
-
}, z.core.$strip>;
|
|
156
|
-
export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
157
|
-
id: z.ZodString;
|
|
158
|
-
timestamp: z.ZodNumber;
|
|
159
|
-
source: z.ZodDefault<z.ZodString>;
|
|
160
|
-
kind: z.ZodLiteral<"artifact">;
|
|
161
|
-
artifactType: z.ZodLiteral<"image">;
|
|
162
|
-
path: z.ZodString;
|
|
163
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
164
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
-
id: z.ZodString;
|
|
166
|
-
timestamp: z.ZodNumber;
|
|
167
|
-
source: z.ZodDefault<z.ZodString>;
|
|
168
|
-
kind: z.ZodLiteral<"artifact">;
|
|
169
|
-
artifactType: z.ZodLiteral<"video">;
|
|
170
|
-
path: z.ZodString;
|
|
171
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
172
|
-
isTimeLined: z.ZodDefault<z.ZodBoolean>;
|
|
173
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
174
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
-
id: z.ZodString;
|
|
176
|
-
timestamp: z.ZodNumber;
|
|
177
|
-
source: z.ZodDefault<z.ZodString>;
|
|
178
|
-
kind: z.ZodLiteral<"artifact">;
|
|
179
|
-
artifactType: z.ZodLiteral<"html">;
|
|
180
|
-
path: z.ZodString;
|
|
181
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
182
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
-
id: z.ZodString;
|
|
184
|
-
timestamp: z.ZodNumber;
|
|
185
|
-
source: z.ZodDefault<z.ZodString>;
|
|
186
|
-
kind: z.ZodLiteral<"artifact">;
|
|
187
|
-
artifactType: z.ZodLiteral<"speech">;
|
|
188
|
-
path: z.ZodString;
|
|
189
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
190
|
-
transcript: z.ZodOptional<z.ZodString>;
|
|
191
|
-
durationS: z.ZodOptional<z.ZodNumber>;
|
|
192
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
-
id: z.ZodString;
|
|
194
|
-
timestamp: z.ZodNumber;
|
|
195
|
-
source: z.ZodDefault<z.ZodString>;
|
|
196
|
-
kind: z.ZodLiteral<"artifact">;
|
|
197
|
-
artifactType: z.ZodLiteral<"json">;
|
|
198
|
-
json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
199
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
200
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
201
|
-
id: z.ZodString;
|
|
202
|
-
timestamp: z.ZodNumber;
|
|
203
|
-
kind: z.ZodLiteral<"artifact">;
|
|
204
|
-
artifactType: z.ZodLiteral<"mermaid">;
|
|
205
|
-
source: z.ZodString;
|
|
206
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
207
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
-
id: z.ZodString;
|
|
209
|
-
timestamp: z.ZodNumber;
|
|
210
|
-
source: z.ZodDefault<z.ZodString>;
|
|
211
|
-
kind: z.ZodLiteral<"artifact">;
|
|
212
|
-
artifactType: z.ZodLiteral<"http-trace">;
|
|
213
|
-
httpEvent: z.ZodEnum<{
|
|
214
|
-
request: "request";
|
|
215
|
-
response: "response";
|
|
216
|
-
route: "route";
|
|
217
|
-
}>;
|
|
218
|
-
trace: z.ZodObject<{
|
|
219
|
-
frameURL: z.ZodOptional<z.ZodString>;
|
|
220
|
-
requestingPage: z.ZodOptional<z.ZodString>;
|
|
221
|
-
requestingURL: z.ZodOptional<z.ZodString>;
|
|
222
|
-
method: z.ZodOptional<z.ZodString>;
|
|
223
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
224
|
-
postData: z.ZodOptional<z.ZodUnknown>;
|
|
225
|
-
status: z.ZodOptional<z.ZodNumber>;
|
|
226
|
-
statusText: z.ZodOptional<z.ZodString>;
|
|
227
|
-
}, z.core.$strip>;
|
|
228
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
229
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
-
id: z.ZodString;
|
|
231
|
-
timestamp: z.ZodNumber;
|
|
232
|
-
source: z.ZodDefault<z.ZodString>;
|
|
233
|
-
kind: z.ZodLiteral<"artifact">;
|
|
234
|
-
artifactType: z.ZodLiteral<"resolvedFeatures">;
|
|
235
|
-
resolvedFeatures: z.ZodArray<z.ZodUnknown>;
|
|
236
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
237
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
238
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
-
id: z.ZodString;
|
|
240
|
-
timestamp: z.ZodNumber;
|
|
241
|
-
source: z.ZodDefault<z.ZodString>;
|
|
242
|
-
kind: z.ZodLiteral<"artifact">;
|
|
243
|
-
artifactType: z.ZodLiteral<"file">;
|
|
244
|
-
path: z.ZodString;
|
|
245
|
-
mimetype: z.ZodString;
|
|
246
|
-
}, z.core.$strip>], "artifactType">;
|
|
247
|
-
export declare const ControlEvent: z.ZodObject<{
|
|
248
|
-
id: z.ZodString;
|
|
249
|
-
timestamp: z.ZodNumber;
|
|
250
|
-
source: z.ZodDefault<z.ZodString>;
|
|
251
|
-
kind: z.ZodLiteral<"control">;
|
|
252
|
-
signal: z.ZodEnum<{
|
|
253
|
-
"graph-link": "graph-link";
|
|
254
|
-
break: "break";
|
|
255
|
-
pause: "pause";
|
|
256
|
-
resume: "resume";
|
|
257
|
-
}>;
|
|
258
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
export declare const HaibunEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
261
|
-
id: z.ZodString;
|
|
262
|
-
timestamp: z.ZodNumber;
|
|
263
|
-
source: z.ZodDefault<z.ZodString>;
|
|
264
|
-
kind: z.ZodLiteral<"lifecycle">;
|
|
265
|
-
type: z.ZodEnum<{
|
|
266
|
-
feature: "feature";
|
|
267
|
-
scenario: "scenario";
|
|
268
|
-
step: "step";
|
|
269
|
-
activity: "activity";
|
|
270
|
-
waypoint: "waypoint";
|
|
271
|
-
ensure: "ensure";
|
|
272
|
-
execution: "execution";
|
|
273
|
-
}>;
|
|
274
|
-
stage: z.ZodEnum<{
|
|
275
|
-
start: "start";
|
|
276
|
-
end: "end";
|
|
277
|
-
}>;
|
|
278
|
-
stepperName: z.ZodOptional<z.ZodString>;
|
|
279
|
-
actionName: z.ZodOptional<z.ZodString>;
|
|
280
|
-
label: z.ZodOptional<z.ZodString>;
|
|
281
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
282
|
-
running: "running";
|
|
283
|
-
completed: "completed";
|
|
284
|
-
failed: "failed";
|
|
285
|
-
skipped: "skipped";
|
|
286
|
-
}>>;
|
|
287
|
-
error: z.ZodOptional<z.ZodString>;
|
|
288
|
-
intent: z.ZodOptional<z.ZodObject<{
|
|
289
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
290
|
-
speculative: "speculative";
|
|
291
|
-
authoritative: "authoritative";
|
|
292
|
-
}>>;
|
|
293
|
-
}, z.core.$strip>>;
|
|
294
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
295
|
-
id: z.ZodString;
|
|
296
|
-
timestamp: z.ZodNumber;
|
|
297
|
-
source: z.ZodDefault<z.ZodString>;
|
|
298
|
-
kind: z.ZodLiteral<"log">;
|
|
299
|
-
level: z.ZodEnum<{
|
|
300
|
-
error: "error";
|
|
301
|
-
trace: "trace";
|
|
302
|
-
debug: "debug";
|
|
303
|
-
info: "info";
|
|
304
|
-
warn: "warn";
|
|
305
|
-
}>;
|
|
306
|
-
message: z.ZodString;
|
|
307
|
-
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
308
|
-
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
309
|
-
id: z.ZodString;
|
|
310
|
-
timestamp: z.ZodNumber;
|
|
311
|
-
source: z.ZodDefault<z.ZodString>;
|
|
312
|
-
kind: z.ZodLiteral<"artifact">;
|
|
313
|
-
artifactType: z.ZodLiteral<"image">;
|
|
314
|
-
path: z.ZodString;
|
|
315
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
316
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
317
|
-
id: z.ZodString;
|
|
318
|
-
timestamp: z.ZodNumber;
|
|
319
|
-
source: z.ZodDefault<z.ZodString>;
|
|
320
|
-
kind: z.ZodLiteral<"artifact">;
|
|
321
|
-
artifactType: z.ZodLiteral<"video">;
|
|
322
|
-
path: z.ZodString;
|
|
323
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
324
|
-
isTimeLined: z.ZodDefault<z.ZodBoolean>;
|
|
325
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
326
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
-
id: z.ZodString;
|
|
328
|
-
timestamp: z.ZodNumber;
|
|
329
|
-
source: z.ZodDefault<z.ZodString>;
|
|
330
|
-
kind: z.ZodLiteral<"artifact">;
|
|
331
|
-
artifactType: z.ZodLiteral<"html">;
|
|
332
|
-
path: z.ZodString;
|
|
333
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
334
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
335
|
-
id: z.ZodString;
|
|
336
|
-
timestamp: z.ZodNumber;
|
|
337
|
-
source: z.ZodDefault<z.ZodString>;
|
|
338
|
-
kind: z.ZodLiteral<"artifact">;
|
|
339
|
-
artifactType: z.ZodLiteral<"speech">;
|
|
340
|
-
path: z.ZodString;
|
|
341
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
342
|
-
transcript: z.ZodOptional<z.ZodString>;
|
|
343
|
-
durationS: z.ZodOptional<z.ZodNumber>;
|
|
344
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
345
|
-
id: z.ZodString;
|
|
346
|
-
timestamp: z.ZodNumber;
|
|
347
|
-
source: z.ZodDefault<z.ZodString>;
|
|
348
|
-
kind: z.ZodLiteral<"artifact">;
|
|
349
|
-
artifactType: z.ZodLiteral<"json">;
|
|
350
|
-
json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
351
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
352
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
-
id: z.ZodString;
|
|
354
|
-
timestamp: z.ZodNumber;
|
|
355
|
-
kind: z.ZodLiteral<"artifact">;
|
|
356
|
-
artifactType: z.ZodLiteral<"mermaid">;
|
|
357
|
-
source: z.ZodString;
|
|
358
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
359
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
360
|
-
id: z.ZodString;
|
|
361
|
-
timestamp: z.ZodNumber;
|
|
362
|
-
source: z.ZodDefault<z.ZodString>;
|
|
363
|
-
kind: z.ZodLiteral<"artifact">;
|
|
364
|
-
artifactType: z.ZodLiteral<"http-trace">;
|
|
365
|
-
httpEvent: z.ZodEnum<{
|
|
366
|
-
request: "request";
|
|
367
|
-
response: "response";
|
|
368
|
-
route: "route";
|
|
369
|
-
}>;
|
|
370
|
-
trace: z.ZodObject<{
|
|
371
|
-
frameURL: z.ZodOptional<z.ZodString>;
|
|
372
|
-
requestingPage: z.ZodOptional<z.ZodString>;
|
|
373
|
-
requestingURL: z.ZodOptional<z.ZodString>;
|
|
374
|
-
method: z.ZodOptional<z.ZodString>;
|
|
375
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
376
|
-
postData: z.ZodOptional<z.ZodUnknown>;
|
|
377
|
-
status: z.ZodOptional<z.ZodNumber>;
|
|
378
|
-
statusText: z.ZodOptional<z.ZodString>;
|
|
379
|
-
}, z.core.$strip>;
|
|
380
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
381
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
382
|
-
id: z.ZodString;
|
|
383
|
-
timestamp: z.ZodNumber;
|
|
384
|
-
source: z.ZodDefault<z.ZodString>;
|
|
385
|
-
kind: z.ZodLiteral<"artifact">;
|
|
386
|
-
artifactType: z.ZodLiteral<"resolvedFeatures">;
|
|
387
|
-
resolvedFeatures: z.ZodArray<z.ZodUnknown>;
|
|
388
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
389
|
-
mimetype: z.ZodDefault<z.ZodString>;
|
|
390
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
-
id: z.ZodString;
|
|
392
|
-
timestamp: z.ZodNumber;
|
|
393
|
-
source: z.ZodDefault<z.ZodString>;
|
|
394
|
-
kind: z.ZodLiteral<"artifact">;
|
|
395
|
-
artifactType: z.ZodLiteral<"file">;
|
|
396
|
-
path: z.ZodString;
|
|
397
|
-
mimetype: z.ZodString;
|
|
398
|
-
}, z.core.$strip>], "artifactType">, z.ZodObject<{
|
|
399
|
-
id: z.ZodString;
|
|
400
|
-
timestamp: z.ZodNumber;
|
|
401
|
-
source: z.ZodDefault<z.ZodString>;
|
|
402
|
-
kind: z.ZodLiteral<"control">;
|
|
403
|
-
signal: z.ZodEnum<{
|
|
404
|
-
"graph-link": "graph-link";
|
|
405
|
-
break: "break";
|
|
406
|
-
pause: "pause";
|
|
407
|
-
resume: "resume";
|
|
408
|
-
}>;
|
|
409
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
410
|
-
}, z.core.$strip>], "kind">;
|
|
411
|
-
export type TBaseEvent = z.infer<typeof BaseEvent>;
|
|
412
|
-
export type TLifecycleEvent = z.infer<typeof LifecycleEvent>;
|
|
413
|
-
export type TLogEvent = z.infer<typeof LogEvent>;
|
|
414
|
-
export type TArtifactEvent = z.infer<typeof ArtifactEvent>;
|
|
415
|
-
export type TImageArtifact = z.infer<typeof ImageArtifact>;
|
|
416
|
-
export type TVideoArtifact = z.infer<typeof VideoArtifact>;
|
|
417
|
-
export type THtmlArtifact = z.infer<typeof HtmlArtifact>;
|
|
418
|
-
export type TSpeechArtifact = z.infer<typeof SpeechArtifact>;
|
|
419
|
-
export type TJsonArtifact = z.infer<typeof JsonArtifact>;
|
|
420
|
-
export type TMermaidArtifact = z.infer<typeof MermaidArtifact>;
|
|
421
|
-
export type THttpTraceArtifact = z.infer<typeof HttpTraceArtifact>;
|
|
422
|
-
export type TResolvedFeaturesArtifact = z.infer<typeof ResolvedFeaturesArtifact>;
|
|
423
|
-
export type TFileArtifact = z.infer<typeof FileArtifact>;
|
|
424
|
-
export type TControlEvent = z.infer<typeof ControlEvent>;
|
|
425
|
-
export type THaibunEvent = z.infer<typeof HaibunEvent>;
|
|
426
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/schema/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,SAAS;;;;iBAIpB,C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C,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACnE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACjF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/build/schema/events.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
// Base Protocol
|
|
3
|
-
export const BaseEvent = z.object({
|
|
4
|
-
id: z.string().describe('Unique identifier for the event, typically the seqPath'),
|
|
5
|
-
timestamp: z.number().int().describe('Absolute epoch timestamp in milliseconds'),
|
|
6
|
-
source: z.string().default('haibun').describe('Source of the event'),
|
|
7
|
-
});
|
|
8
|
-
// Lifecycle Events
|
|
9
|
-
export const LifecycleEvent = BaseEvent.extend({
|
|
10
|
-
kind: z.literal('lifecycle'),
|
|
11
|
-
type: z.enum(['feature', 'scenario', 'step', 'activity', 'waypoint', 'ensure', 'execution']),
|
|
12
|
-
stage: z.enum(['start', 'end']),
|
|
13
|
-
// Reference info
|
|
14
|
-
stepperName: z.string().optional(),
|
|
15
|
-
actionName: z.string().optional(),
|
|
16
|
-
label: z.string().optional(),
|
|
17
|
-
// Execution Context
|
|
18
|
-
status: z.enum(['running', 'completed', 'failed', 'skipped']).optional(),
|
|
19
|
-
error: z.string().optional(),
|
|
20
|
-
// Execution Intent
|
|
21
|
-
intent: z.object({
|
|
22
|
-
mode: z.enum(['speculative', 'authoritative']).optional()
|
|
23
|
-
}).optional(),
|
|
24
|
-
});
|
|
25
|
-
// Log Events
|
|
26
|
-
export const LogEvent = BaseEvent.extend({
|
|
27
|
-
kind: z.literal('log'),
|
|
28
|
-
level: z.enum(['trace', 'debug', 'info', 'warn', 'error']),
|
|
29
|
-
message: z.string(),
|
|
30
|
-
payload: z.record(z.string(), z.unknown()).optional(), // Interactive inspector data
|
|
31
|
-
});
|
|
32
|
-
// Artifact Events - Base
|
|
33
|
-
const BaseArtifact = BaseEvent.extend({
|
|
34
|
-
kind: z.literal('artifact'),
|
|
35
|
-
});
|
|
36
|
-
// Artifact Subtypes
|
|
37
|
-
export const ImageArtifact = BaseArtifact.extend({
|
|
38
|
-
artifactType: z.literal('image'),
|
|
39
|
-
path: z.string(),
|
|
40
|
-
mimetype: z.string().default('image/png'),
|
|
41
|
-
});
|
|
42
|
-
export const VideoArtifact = BaseArtifact.extend({
|
|
43
|
-
artifactType: z.literal('video'),
|
|
44
|
-
path: z.string(),
|
|
45
|
-
mimetype: z.string().default('video/webm'),
|
|
46
|
-
isTimeLined: z.boolean().default(true),
|
|
47
|
-
duration: z.number().optional(),
|
|
48
|
-
});
|
|
49
|
-
export const HtmlArtifact = BaseArtifact.extend({
|
|
50
|
-
artifactType: z.literal('html'),
|
|
51
|
-
path: z.string(),
|
|
52
|
-
mimetype: z.string().default('text/html'),
|
|
53
|
-
});
|
|
54
|
-
export const SpeechArtifact = BaseArtifact.extend({
|
|
55
|
-
artifactType: z.literal('speech'),
|
|
56
|
-
path: z.string(),
|
|
57
|
-
mimetype: z.string().default('audio/mpeg'),
|
|
58
|
-
transcript: z.string().optional(),
|
|
59
|
-
durationS: z.number().optional(),
|
|
60
|
-
});
|
|
61
|
-
export const JsonArtifact = BaseArtifact.extend({
|
|
62
|
-
artifactType: z.literal('json'),
|
|
63
|
-
json: z.record(z.string(), z.unknown()),
|
|
64
|
-
mimetype: z.string().default('application/json'),
|
|
65
|
-
});
|
|
66
|
-
export const MermaidArtifact = BaseArtifact.extend({
|
|
67
|
-
artifactType: z.literal('mermaid'),
|
|
68
|
-
source: z.string(),
|
|
69
|
-
mimetype: z.string().default('text/x-mermaid'),
|
|
70
|
-
});
|
|
71
|
-
export const HttpTraceArtifact = BaseArtifact.extend({
|
|
72
|
-
artifactType: z.literal('http-trace'),
|
|
73
|
-
httpEvent: z.enum(['request', 'response', 'route']),
|
|
74
|
-
trace: z.object({
|
|
75
|
-
frameURL: z.string().optional(),
|
|
76
|
-
requestingPage: z.string().optional(),
|
|
77
|
-
requestingURL: z.string().optional(),
|
|
78
|
-
method: z.string().optional(),
|
|
79
|
-
headers: z.record(z.string(), z.string()).optional(),
|
|
80
|
-
postData: z.unknown().optional(),
|
|
81
|
-
status: z.number().optional(),
|
|
82
|
-
statusText: z.string().optional(),
|
|
83
|
-
}),
|
|
84
|
-
mimetype: z.string().default('application/json'),
|
|
85
|
-
});
|
|
86
|
-
export const ResolvedFeaturesArtifact = BaseArtifact.extend({
|
|
87
|
-
artifactType: z.literal('resolvedFeatures'),
|
|
88
|
-
resolvedFeatures: z.array(z.unknown()),
|
|
89
|
-
index: z.number().optional(),
|
|
90
|
-
mimetype: z.string().default('application/json'),
|
|
91
|
-
});
|
|
92
|
-
// Generic file artifact for other types
|
|
93
|
-
export const FileArtifact = BaseArtifact.extend({
|
|
94
|
-
artifactType: z.literal('file'),
|
|
95
|
-
path: z.string(),
|
|
96
|
-
mimetype: z.string(),
|
|
97
|
-
});
|
|
98
|
-
// Artifact discriminated union
|
|
99
|
-
export const ArtifactEvent = z.discriminatedUnion('artifactType', [
|
|
100
|
-
ImageArtifact,
|
|
101
|
-
VideoArtifact,
|
|
102
|
-
HtmlArtifact,
|
|
103
|
-
SpeechArtifact,
|
|
104
|
-
JsonArtifact,
|
|
105
|
-
MermaidArtifact,
|
|
106
|
-
HttpTraceArtifact,
|
|
107
|
-
ResolvedFeaturesArtifact,
|
|
108
|
-
FileArtifact,
|
|
109
|
-
]);
|
|
110
|
-
// Control Events
|
|
111
|
-
export const ControlEvent = BaseEvent.extend({
|
|
112
|
-
kind: z.literal('control'),
|
|
113
|
-
signal: z.enum(['graph-link', 'break', 'pause', 'resume']),
|
|
114
|
-
payload: z.record(z.string(), z.unknown()),
|
|
115
|
-
});
|
|
116
|
-
// Union Type
|
|
117
|
-
export const HaibunEvent = z.discriminatedUnion('kind', [
|
|
118
|
-
LifecycleEvent,
|
|
119
|
-
LogEvent,
|
|
120
|
-
ArtifactEvent,
|
|
121
|
-
ControlEvent
|
|
122
|
-
]);
|
|
123
|
-
//# sourceMappingURL=events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/schema/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gBAAgB;AAChB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;IACjF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;I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