@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.
Files changed (240) hide show
  1. package/build/currentVersion.d.ts +1 -1
  2. package/build/currentVersion.js +1 -1
  3. package/build/kireji/converter.d.ts +16 -1
  4. package/build/kireji/converter.d.ts.map +1 -1
  5. package/build/kireji/converter.js +19 -2
  6. package/build/kireji/converter.js.map +1 -1
  7. package/build/lib/EventLogger.d.ts +16 -10
  8. package/build/lib/EventLogger.d.ts.map +1 -1
  9. package/build/lib/EventLogger.js +54 -21
  10. package/build/lib/EventLogger.js.map +1 -1
  11. package/build/lib/astepper.d.ts +6 -0
  12. package/build/lib/astepper.d.ts.map +1 -1
  13. package/build/lib/astepper.js +1 -0
  14. package/build/lib/astepper.js.map +1 -1
  15. package/build/lib/base-prompt-manager.d.ts.map +1 -1
  16. package/build/lib/base-prompt-manager.js +2 -2
  17. package/build/lib/base-prompt-manager.js.map +1 -1
  18. package/build/lib/capture-locator.d.ts +1 -1
  19. package/build/lib/capture-locator.d.ts.map +1 -1
  20. package/build/lib/capture-locator.js +4 -2
  21. package/build/lib/capture-locator.js.map +1 -1
  22. package/build/lib/core/flow-runner.d.ts +5 -4
  23. package/build/lib/core/flow-runner.d.ts.map +1 -1
  24. package/build/lib/core/flow-runner.js +48 -15
  25. package/build/lib/core/flow-runner.js.map +1 -1
  26. package/build/lib/core-domains.d.ts +1 -1
  27. package/build/lib/core-domains.d.ts.map +1 -1
  28. package/build/lib/core-domains.js +1 -1
  29. package/build/lib/core-domains.js.map +1 -1
  30. package/build/lib/defs.d.ts +103 -200
  31. package/build/lib/defs.d.ts.map +1 -1
  32. package/build/lib/defs.js +4 -46
  33. package/build/lib/defs.js.map +1 -1
  34. package/build/lib/feature-variables.d.ts +2 -1
  35. package/build/lib/feature-variables.d.ts.map +1 -1
  36. package/build/lib/feature-variables.js +1 -2
  37. package/build/lib/feature-variables.js.map +1 -1
  38. package/build/lib/features.d.ts +5 -4
  39. package/build/lib/features.d.ts.map +1 -1
  40. package/build/lib/features.js +26 -16
  41. package/build/lib/features.js.map +1 -1
  42. package/build/lib/fixme.d.ts +1 -1
  43. package/build/lib/fixme.d.ts.map +1 -1
  44. package/build/lib/http-observations.d.ts +25 -0
  45. package/build/lib/http-observations.d.ts.map +1 -0
  46. package/build/lib/http-observations.js +40 -0
  47. package/build/lib/http-observations.js.map +1 -0
  48. package/build/lib/namedVars.d.ts +5 -1
  49. package/build/lib/namedVars.d.ts.map +1 -1
  50. package/build/lib/namedVars.js +11 -1
  51. package/build/lib/namedVars.js.map +1 -1
  52. package/build/lib/node-http-events.d.ts +16 -0
  53. package/build/lib/node-http-events.d.ts.map +1 -0
  54. package/build/lib/node-http-events.js +125 -0
  55. package/build/lib/node-http-events.js.map +1 -0
  56. package/build/lib/populateActionArgs.d.ts +2 -1
  57. package/build/lib/populateActionArgs.d.ts.map +1 -1
  58. package/build/lib/populateActionArgs.js.map +1 -1
  59. package/build/lib/resolver-features.d.ts +2 -1
  60. package/build/lib/resolver-features.d.ts.map +1 -1
  61. package/build/lib/resolver-features.js +2 -2
  62. package/build/lib/resolver-features.js.map +1 -1
  63. package/build/lib/step-trace.d.ts +10 -0
  64. package/build/lib/step-trace.d.ts.map +1 -0
  65. package/build/lib/step-trace.js +3 -0
  66. package/build/lib/step-trace.js.map +1 -0
  67. package/build/lib/stepper-registry.d.ts +28 -0
  68. package/build/lib/stepper-registry.d.ts.map +1 -0
  69. package/build/lib/stepper-registry.js +42 -0
  70. package/build/lib/stepper-registry.js.map +1 -0
  71. package/build/lib/test/SetTimeStepper.d.ts +2 -2
  72. package/build/lib/test/SetTimeStepper.d.ts.map +1 -1
  73. package/build/lib/test/SetTimeStepper.js +1 -1
  74. package/build/lib/test/SetTimeStepper.js.map +1 -1
  75. package/build/lib/test/TestSteps.d.ts +5 -3
  76. package/build/lib/test/TestSteps.d.ts.map +1 -1
  77. package/build/lib/test/TestStepsWithOptions.d.ts +3 -1
  78. package/build/lib/test/TestStepsWithOptions.d.ts.map +1 -1
  79. package/build/lib/test/TestStepsWithOptions.js +3 -5
  80. package/build/lib/test/TestStepsWithOptions.js.map +1 -1
  81. package/build/lib/test/lib.d.ts +4 -3
  82. package/build/lib/test/lib.d.ts.map +1 -1
  83. package/build/lib/test/lib.js +12 -12
  84. package/build/lib/test/lib.js.map +1 -1
  85. package/build/lib/test/resolvedTestFeatures.d.ts +5 -5
  86. package/build/lib/test/resolvedTestFeatures.js +1 -1
  87. package/build/lib/test/resolvedTestFeatures.js.map +1 -1
  88. package/build/lib/ttag.d.ts +2 -2
  89. package/build/lib/ttag.d.ts.map +1 -1
  90. package/build/lib/ttag.js +5 -5
  91. package/build/lib/ttag.js.map +1 -1
  92. package/build/lib/util/index.d.ts +20 -12
  93. package/build/lib/util/index.d.ts.map +1 -1
  94. package/build/lib/util/index.js +53 -17
  95. package/build/lib/util/index.js.map +1 -1
  96. package/build/lib/workspace-discovery.d.ts +37 -0
  97. package/build/lib/workspace-discovery.d.ts.map +1 -0
  98. package/build/lib/workspace-discovery.js +96 -0
  99. package/build/lib/workspace-discovery.js.map +1 -0
  100. package/build/monitor/index.d.ts +1 -10
  101. package/build/monitor/index.d.ts.map +1 -1
  102. package/build/monitor/index.js +1 -14
  103. package/build/monitor/index.js.map +1 -1
  104. package/build/phases/Executor.d.ts +3 -11
  105. package/build/phases/Executor.d.ts.map +1 -1
  106. package/build/phases/Executor.js +76 -169
  107. package/build/phases/Executor.js.map +1 -1
  108. package/build/phases/Resolver.d.ts +25 -1
  109. package/build/phases/Resolver.d.ts.map +1 -1
  110. package/build/phases/Resolver.js +88 -22
  111. package/build/phases/Resolver.js.map +1 -1
  112. package/build/phases/collector.d.ts +1 -0
  113. package/build/phases/collector.d.ts.map +1 -1
  114. package/build/phases/collector.js +7 -3
  115. package/build/phases/collector.js.map +1 -1
  116. package/build/runner.d.ts +3 -2
  117. package/build/runner.d.ts.map +1 -1
  118. package/build/runner.js +0 -1
  119. package/build/runner.js.map +1 -1
  120. package/build/schema/protocol.d.ts +1443 -0
  121. package/build/schema/protocol.d.ts.map +1 -0
  122. package/build/schema/protocol.js +429 -0
  123. package/build/schema/protocol.js.map +1 -0
  124. package/build/steps/activities-stepper.d.ts +24 -28
  125. package/build/steps/activities-stepper.d.ts.map +1 -1
  126. package/build/steps/activities-stepper.js +150 -162
  127. package/build/steps/activities-stepper.js.map +1 -1
  128. package/build/steps/conformance.d.ts +3 -1
  129. package/build/steps/conformance.d.ts.map +1 -1
  130. package/build/steps/conformance.js +1 -0
  131. package/build/steps/conformance.js.map +1 -1
  132. package/build/steps/console-monitor-stepper.d.ts +3 -6
  133. package/build/steps/console-monitor-stepper.d.ts.map +1 -1
  134. package/build/steps/console-monitor-stepper.js +23 -64
  135. package/build/steps/console-monitor-stepper.js.map +1 -1
  136. package/build/steps/debugger-stepper.d.ts +7 -4
  137. package/build/steps/debugger-stepper.d.ts.map +1 -1
  138. package/build/steps/debugger-stepper.js +36 -43
  139. package/build/steps/debugger-stepper.js.map +1 -1
  140. package/build/steps/haibun.d.ts +24 -16
  141. package/build/steps/haibun.d.ts.map +1 -1
  142. package/build/steps/haibun.js +68 -31
  143. package/build/steps/haibun.js.map +1 -1
  144. package/build/steps/lib/tts.d.ts +2 -3
  145. package/build/steps/lib/tts.d.ts.map +1 -1
  146. package/build/steps/lib/tts.js +4 -5
  147. package/build/steps/lib/tts.js.map +1 -1
  148. package/build/steps/logic-stepper.d.ts +14 -3
  149. package/build/steps/logic-stepper.d.ts.map +1 -1
  150. package/build/steps/logic-stepper.js +116 -17
  151. package/build/steps/logic-stepper.js.map +1 -1
  152. package/build/steps/narrator.d.ts +7 -5
  153. package/build/steps/narrator.d.ts.map +1 -1
  154. package/build/steps/narrator.js +30 -18
  155. package/build/steps/narrator.js.map +1 -1
  156. package/build/steps/parse.d.ts +5 -3
  157. package/build/steps/parse.d.ts.map +1 -1
  158. package/build/steps/parse.js +2 -1
  159. package/build/steps/parse.js.map +1 -1
  160. package/build/steps/variables-stepper.d.ts +285 -4
  161. package/build/steps/variables-stepper.d.ts.map +1 -1
  162. package/build/steps/variables-stepper.js +44 -50
  163. package/build/steps/variables-stepper.js.map +1 -1
  164. package/package.json +9 -16
  165. package/build/lib/Logger.d.ts +0 -48
  166. package/build/lib/Logger.d.ts.map +0 -1
  167. package/build/lib/Logger.js +0 -85
  168. package/build/lib/Logger.js.map +0 -1
  169. package/build/lib/TestLogger.d.ts +0 -12
  170. package/build/lib/TestLogger.d.ts.map +0 -1
  171. package/build/lib/TestLogger.js +0 -12
  172. package/build/lib/TestLogger.js.map +0 -1
  173. package/build/lib/Timer.d.ts +0 -7
  174. package/build/lib/Timer.d.ts.map +0 -1
  175. package/build/lib/Timer.js +0 -9
  176. package/build/lib/Timer.js.map +0 -1
  177. package/build/lib/core/protocol.d.ts +0 -58
  178. package/build/lib/core/protocol.d.ts.map +0 -1
  179. package/build/lib/core/protocol.js +0 -18
  180. package/build/lib/core/protocol.js.map +0 -1
  181. package/build/lib/event-bridge.d.ts +0 -42
  182. package/build/lib/event-bridge.d.ts.map +0 -1
  183. package/build/lib/event-bridge.js +0 -214
  184. package/build/lib/event-bridge.js.map +0 -1
  185. package/build/lib/interfaces/logger.d.ts +0 -123
  186. package/build/lib/interfaces/logger.d.ts.map +0 -1
  187. package/build/lib/interfaces/logger.js +0 -29
  188. package/build/lib/interfaces/logger.js.map +0 -1
  189. package/build/lib/util/variables.d.ts +0 -9
  190. package/build/lib/util/variables.d.ts.map +0 -1
  191. package/build/lib/util/variables.js +0 -40
  192. package/build/lib/util/variables.js.map +0 -1
  193. package/build/monitor/browser-stubs.d.ts +0 -12
  194. package/build/monitor/browser-stubs.d.ts.map +0 -1
  195. package/build/monitor/browser-stubs.js +0 -20
  196. package/build/monitor/browser-stubs.js.map +0 -1
  197. package/build/monitor/constants.d.ts +0 -9
  198. package/build/monitor/constants.d.ts.map +0 -1
  199. package/build/monitor/constants.js +0 -9
  200. package/build/monitor/constants.js.map +0 -1
  201. package/build/monitor/event-view.d.ts +0 -40
  202. package/build/monitor/event-view.d.ts.map +0 -1
  203. package/build/monitor/event-view.js +0 -104
  204. package/build/monitor/event-view.js.map +0 -1
  205. package/build/monitor/filters.d.ts +0 -17
  206. package/build/monitor/filters.d.ts.map +0 -1
  207. package/build/monitor/filters.js +0 -32
  208. package/build/monitor/filters.js.map +0 -1
  209. package/build/monitor/formatters.d.ts +0 -27
  210. package/build/monitor/formatters.d.ts.map +0 -1
  211. package/build/monitor/formatters.js +0 -89
  212. package/build/monitor/formatters.js.map +0 -1
  213. package/build/monitor/jit-serialization.d.ts +0 -9
  214. package/build/monitor/jit-serialization.d.ts.map +0 -1
  215. package/build/monitor/jit-serialization.js +0 -73
  216. package/build/monitor/jit-serialization.js.map +0 -1
  217. package/build/monitor/monitor-types.d.ts +0 -119
  218. package/build/monitor/monitor-types.d.ts.map +0 -1
  219. package/build/monitor/monitor-types.js +0 -43
  220. package/build/monitor/monitor-types.js.map +0 -1
  221. package/build/monitor/speculative-tracker.d.ts +0 -20
  222. package/build/monitor/speculative-tracker.d.ts.map +0 -1
  223. package/build/monitor/speculative-tracker.js +0 -38
  224. package/build/monitor/speculative-tracker.js.map +0 -1
  225. package/build/monitor/state.d.ts +0 -31
  226. package/build/monitor/state.d.ts.map +0 -1
  227. package/build/monitor/state.js +0 -110
  228. package/build/monitor/state.js.map +0 -1
  229. package/build/monitor/timer.d.ts +0 -11
  230. package/build/monitor/timer.d.ts.map +0 -1
  231. package/build/monitor/timer.js +0 -13
  232. package/build/monitor/timer.js.map +0 -1
  233. package/build/monitor/tree-builder.d.ts +0 -25
  234. package/build/monitor/tree-builder.d.ts.map +0 -1
  235. package/build/monitor/tree-builder.js +0 -36
  236. package/build/monitor/tree-builder.js.map +0 -1
  237. package/build/schema/events.d.ts +0 -426
  238. package/build/schema/events.d.ts.map +0 -1
  239. package/build/schema/events.js +0 -123
  240. package/build/schema/events.js.map +0 -1
@@ -0,0 +1,1443 @@
1
+ import { z } from 'zod';
2
+ export declare const HAIBUN_LOG_LEVELS: readonly ["debug", "trace", "log", "info", "warn", "error"];
3
+ export declare const HaibunLogLevel: z.ZodEnum<{
4
+ debug: "debug";
5
+ trace: "trace";
6
+ log: "log";
7
+ info: "info";
8
+ warn: "warn";
9
+ error: "error";
10
+ }>;
11
+ export type THaibunLogLevel = z.infer<typeof HaibunLogLevel>;
12
+ export declare const CHECK_YES = "\u2705";
13
+ export declare const CHECK_NO = "\u274C";
14
+ export declare const CHECK_YIELD = "\uD83D\uDD00";
15
+ export declare const MAYBE_CHECK_YES = "\u2713";
16
+ export declare const MAYBE_CHECK_NO = "\u2717";
17
+ export declare const ICON_FEATURE = "\uD83D\uDCC4";
18
+ export declare const ICON_SCENARIO = "\uD83D\uDCCB";
19
+ export declare const ICON_STEP_RUNNING = "\u23F3";
20
+ export declare const ICON_STEP_FAILED = "\u274C";
21
+ export declare const ICON_STEP_COMPLETED = "\u2705";
22
+ export declare const ICON_LOG_INFO = "\u2139\uFE0F";
23
+ export declare const ICON_LOG_WARN = "\u26A0\uFE0F";
24
+ export declare const ICON_LOG_ERROR = "\uD83D\uDEA8";
25
+ export declare const ICON_DEFAULT = "\u2022";
26
+ export declare const ICON_ARTIFACT = "\uD83D\uDCCE";
27
+ export declare enum Origin {
28
+ defined = "defined",
29
+ var = "var",
30
+ env = "env",
31
+ quoted = "quoted",
32
+ statement = "statement"
33
+ }
34
+ export type TOrigin = keyof typeof Origin;
35
+ export type TDebugSignal = 'fail' | 'step' | 'continue' | 'retry' | 'next';
36
+ export declare const SCENARIO_START = "scenario";
37
+ export declare const FEATURE_START = "feature";
38
+ export declare const STAY_ALWAYS = "always";
39
+ export declare const STAY_FAILURE = "failure";
40
+ export declare const STAY = "STAY";
41
+ export declare const STEP_DELAY = "STEP_DELAY";
42
+ export declare const DEFAULT_DEST = "default";
43
+ export declare const TEST_BASE = "test_base";
44
+ export declare const CONTINUE_AFTER_ERROR = "CONTINUE_AFTER_ERROR";
45
+ export declare const HAIBUN = "HAIBUN";
46
+ export declare const BASE_PREFIX = "HAIBUN_";
47
+ export declare const CAPTURE = "capture";
48
+ export declare const TEND_FEATURE_DEFAULTS: {
49
+ shouldClose: boolean;
50
+ isLast: boolean;
51
+ okSoFar: boolean;
52
+ continueAfterError: boolean;
53
+ stayOnFailure: boolean;
54
+ thisFeatureOK: boolean;
55
+ };
56
+ export type TAnyFixme = unknown;
57
+ export declare class Timer {
58
+ static startTime: Date;
59
+ static key: string;
60
+ static START_TIME: number;
61
+ static since(): number;
62
+ }
63
+ export declare function shortenURI(uri: string): string;
64
+ export declare class JITSerializer {
65
+ private schemas;
66
+ private nextSchemaId;
67
+ serialize(events: THaibunEvent[]): string;
68
+ deserialize(input: string): THaibunEvent[];
69
+ private getSchemaId;
70
+ }
71
+ export type TIndication = 'success' | 'failure' | 'speculative-failure' | 'pending' | 'neutral';
72
+ export declare class EventFormatter {
73
+ static shouldDisplay(event: THaibunEvent, minLevel?: THaibunLogLevel): boolean;
74
+ static getDisplayLevel(event: THaibunEvent): string;
75
+ static getStatusIcon(event: THaibunEvent & {
76
+ kind: 'lifecycle';
77
+ }): string;
78
+ static getIndication(event: THaibunEvent & {
79
+ kind: 'lifecycle';
80
+ }): TIndication;
81
+ static formatLineElements(event: THaibunEvent, lastLevel?: string): {
82
+ time: string;
83
+ emitter: string;
84
+ level: string;
85
+ showLevel: string;
86
+ icon: string;
87
+ id: string;
88
+ message: string;
89
+ };
90
+ static formatLine(event: THaibunEvent, lastLevel?: string): string;
91
+ }
92
+ export declare const ExecutionIntentSchema: z.ZodObject<{
93
+ mode: z.ZodDefault<z.ZodEnum<{
94
+ speculative: "speculative";
95
+ authoritative: "authoritative";
96
+ prose: "prose";
97
+ }>>;
98
+ usage: z.ZodOptional<z.ZodEnum<{
99
+ testing: "testing";
100
+ debugging: "debugging";
101
+ background: "background";
102
+ polling: "polling";
103
+ }>>;
104
+ stepperOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
105
+ }, z.core.$strip>;
106
+ export type ExecutionIntent = z.infer<typeof ExecutionIntentSchema>;
107
+ export declare const FlowSignalSchema: z.ZodObject<{
108
+ kind: z.ZodEnum<{
109
+ fail: "fail";
110
+ retry: "retry";
111
+ ok: "ok";
112
+ skip: "skip";
113
+ }>;
114
+ message: z.ZodOptional<z.ZodString>;
115
+ fatal: z.ZodOptional<z.ZodBoolean>;
116
+ topics: z.ZodOptional<z.ZodUnknown>;
117
+ }, z.core.$strip>;
118
+ export type FlowSignal = z.infer<typeof FlowSignalSchema>;
119
+ export declare const SystemMessageSchema: z.ZodObject<{
120
+ topic: z.ZodOptional<z.ZodString>;
121
+ signal: z.ZodObject<{
122
+ kind: z.ZodEnum<{
123
+ fail: "fail";
124
+ retry: "retry";
125
+ ok: "ok";
126
+ skip: "skip";
127
+ }>;
128
+ message: z.ZodOptional<z.ZodString>;
129
+ fatal: z.ZodOptional<z.ZodBoolean>;
130
+ topics: z.ZodOptional<z.ZodUnknown>;
131
+ }, z.core.$strip>;
132
+ intent: z.ZodObject<{
133
+ mode: z.ZodDefault<z.ZodEnum<{
134
+ speculative: "speculative";
135
+ authoritative: "authoritative";
136
+ prose: "prose";
137
+ }>>;
138
+ usage: z.ZodOptional<z.ZodEnum<{
139
+ testing: "testing";
140
+ debugging: "debugging";
141
+ background: "background";
142
+ polling: "polling";
143
+ }>>;
144
+ stepperOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
145
+ }, z.core.$strip>;
146
+ }, z.core.$strip>;
147
+ export type SystemMessage = z.infer<typeof SystemMessageSchema>;
148
+ export type TOKActionResult = {
149
+ ok: true;
150
+ controlSignal?: TDebugSignal;
151
+ artifact?: TArtifactEvent;
152
+ protocol?: SystemMessage;
153
+ topics?: Record<string, unknown>;
154
+ };
155
+ export type TNotOKActionResult = {
156
+ ok: false;
157
+ message: string;
158
+ controlSignal?: TDebugSignal;
159
+ artifact?: TArtifactEvent;
160
+ protocol?: SystemMessage;
161
+ topics?: Record<string, unknown>;
162
+ };
163
+ export type TActionResult = TOKActionResult | TNotOKActionResult;
164
+ export declare const OK: TOKActionResult;
165
+ export type TStepValueValue = unknown;
166
+ export type TStepArgs = Record<string, TStepValueValue>;
167
+ export type TStepValue = {
168
+ term: string;
169
+ domain: string;
170
+ value?: TStepValueValue;
171
+ origin: TOrigin;
172
+ provenance?: TProvenanceIdentifier[];
173
+ readonly?: boolean;
174
+ };
175
+ export type TProvenanceIdentifier = {
176
+ in?: string;
177
+ seq: number[];
178
+ when: string;
179
+ };
180
+ export type TTrace = {
181
+ [name: string]: {
182
+ url: string;
183
+ since: number;
184
+ trace: TAnyFixme;
185
+ };
186
+ };
187
+ export type TTraces = {
188
+ start?: number;
189
+ end?: number;
190
+ traces?: TTrace[];
191
+ };
192
+ export type TStepActionResult = (TNotOkStepActionResult | TOKStepActionResult) & TTraces;
193
+ type TNamedStepActionResult = {
194
+ name: string;
195
+ };
196
+ export type TNotOkStepActionResult = TNotOKActionResult & TNamedStepActionResult;
197
+ export type TOKStepActionResult = TOKActionResult & TNamedStepActionResult;
198
+ export type TSeqPath = number[];
199
+ export type TStepResult = {
200
+ ok: boolean;
201
+ stepActionResult: TStepActionResult;
202
+ in: string;
203
+ path: string;
204
+ lineNumber?: number;
205
+ seqPath: TSeqPath;
206
+ intent?: ExecutionIntent;
207
+ };
208
+ export type TFeatureResult = {
209
+ skip?: boolean;
210
+ path: string;
211
+ ok: boolean;
212
+ stepResults: TStepResult[];
213
+ failure?: {
214
+ message: string;
215
+ error: TAnyFixme;
216
+ expected?: TAnyFixme;
217
+ };
218
+ };
219
+ export type TExecutorResult = {
220
+ ok: boolean;
221
+ tag: unknown;
222
+ shared: unknown;
223
+ featureResults?: TFeatureResult[];
224
+ failure?: {
225
+ stage: string;
226
+ error: {
227
+ details: Record<string, TAnyFixme>;
228
+ message: string;
229
+ };
230
+ };
231
+ steppers?: unknown[];
232
+ };
233
+ export declare const Prompt: z.ZodObject<{
234
+ id: z.ZodString;
235
+ message: z.ZodString;
236
+ context: z.ZodOptional<z.ZodUnknown>;
237
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
238
+ }, z.core.$strip>;
239
+ export type TPrompt = z.infer<typeof Prompt>;
240
+ export declare const BaseEvent: z.ZodObject<{
241
+ id: z.ZodString;
242
+ timestamp: z.ZodNumber;
243
+ source: z.ZodDefault<z.ZodString>;
244
+ emitter: z.ZodOptional<z.ZodString>;
245
+ level: z.ZodDefault<z.ZodEnum<{
246
+ debug: "debug";
247
+ trace: "trace";
248
+ log: "log";
249
+ info: "info";
250
+ warn: "warn";
251
+ error: "error";
252
+ }>>;
253
+ }, z.core.$strip>;
254
+ export declare const LifecycleEventCommon: z.ZodObject<{
255
+ id: z.ZodString;
256
+ timestamp: z.ZodNumber;
257
+ source: z.ZodDefault<z.ZodString>;
258
+ emitter: z.ZodOptional<z.ZodString>;
259
+ level: z.ZodDefault<z.ZodEnum<{
260
+ debug: "debug";
261
+ trace: "trace";
262
+ log: "log";
263
+ info: "info";
264
+ warn: "warn";
265
+ error: "error";
266
+ }>>;
267
+ kind: z.ZodLiteral<"lifecycle">;
268
+ stage: z.ZodEnum<{
269
+ start: "start";
270
+ end: "end";
271
+ }>;
272
+ status: z.ZodOptional<z.ZodEnum<{
273
+ running: "running";
274
+ completed: "completed";
275
+ failed: "failed";
276
+ skipped: "skipped";
277
+ }>>;
278
+ error: z.ZodOptional<z.ZodString>;
279
+ intent: z.ZodOptional<z.ZodObject<{
280
+ mode: z.ZodOptional<z.ZodEnum<{
281
+ speculative: "speculative";
282
+ authoritative: "authoritative";
283
+ }>>;
284
+ }, z.core.$strip>>;
285
+ }, z.core.$strip>;
286
+ export declare const FeatureEvent: z.ZodObject<{
287
+ id: z.ZodString;
288
+ timestamp: z.ZodNumber;
289
+ source: z.ZodDefault<z.ZodString>;
290
+ emitter: z.ZodOptional<z.ZodString>;
291
+ level: z.ZodDefault<z.ZodEnum<{
292
+ debug: "debug";
293
+ trace: "trace";
294
+ log: "log";
295
+ info: "info";
296
+ warn: "warn";
297
+ error: "error";
298
+ }>>;
299
+ kind: z.ZodLiteral<"lifecycle">;
300
+ stage: z.ZodEnum<{
301
+ start: "start";
302
+ end: "end";
303
+ }>;
304
+ status: z.ZodOptional<z.ZodEnum<{
305
+ running: "running";
306
+ completed: "completed";
307
+ failed: "failed";
308
+ skipped: "skipped";
309
+ }>>;
310
+ error: z.ZodOptional<z.ZodString>;
311
+ intent: z.ZodOptional<z.ZodObject<{
312
+ mode: z.ZodOptional<z.ZodEnum<{
313
+ speculative: "speculative";
314
+ authoritative: "authoritative";
315
+ }>>;
316
+ }, z.core.$strip>>;
317
+ type: z.ZodLiteral<"feature">;
318
+ featurePath: z.ZodString;
319
+ }, z.core.$strip>;
320
+ export declare const ScenarioEvent: z.ZodObject<{
321
+ id: z.ZodString;
322
+ timestamp: z.ZodNumber;
323
+ source: z.ZodDefault<z.ZodString>;
324
+ emitter: z.ZodOptional<z.ZodString>;
325
+ level: z.ZodDefault<z.ZodEnum<{
326
+ debug: "debug";
327
+ trace: "trace";
328
+ log: "log";
329
+ info: "info";
330
+ warn: "warn";
331
+ error: "error";
332
+ }>>;
333
+ kind: z.ZodLiteral<"lifecycle">;
334
+ stage: z.ZodEnum<{
335
+ start: "start";
336
+ end: "end";
337
+ }>;
338
+ status: z.ZodOptional<z.ZodEnum<{
339
+ running: "running";
340
+ completed: "completed";
341
+ failed: "failed";
342
+ skipped: "skipped";
343
+ }>>;
344
+ error: z.ZodOptional<z.ZodString>;
345
+ intent: z.ZodOptional<z.ZodObject<{
346
+ mode: z.ZodOptional<z.ZodEnum<{
347
+ speculative: "speculative";
348
+ authoritative: "authoritative";
349
+ }>>;
350
+ }, z.core.$strip>>;
351
+ type: z.ZodLiteral<"scenario">;
352
+ scenarioName: z.ZodString;
353
+ featurePath: z.ZodOptional<z.ZodString>;
354
+ }, z.core.$strip>;
355
+ export declare const StepEvent: z.ZodObject<{
356
+ id: z.ZodString;
357
+ timestamp: z.ZodNumber;
358
+ source: z.ZodDefault<z.ZodString>;
359
+ emitter: z.ZodOptional<z.ZodString>;
360
+ level: z.ZodDefault<z.ZodEnum<{
361
+ debug: "debug";
362
+ trace: "trace";
363
+ log: "log";
364
+ info: "info";
365
+ warn: "warn";
366
+ error: "error";
367
+ }>>;
368
+ kind: z.ZodLiteral<"lifecycle">;
369
+ stage: z.ZodEnum<{
370
+ start: "start";
371
+ end: "end";
372
+ }>;
373
+ status: z.ZodOptional<z.ZodEnum<{
374
+ running: "running";
375
+ completed: "completed";
376
+ failed: "failed";
377
+ skipped: "skipped";
378
+ }>>;
379
+ error: z.ZodOptional<z.ZodString>;
380
+ intent: z.ZodOptional<z.ZodObject<{
381
+ mode: z.ZodOptional<z.ZodEnum<{
382
+ speculative: "speculative";
383
+ authoritative: "authoritative";
384
+ }>>;
385
+ }, z.core.$strip>>;
386
+ type: z.ZodLiteral<"step">;
387
+ in: z.ZodString;
388
+ lineNumber: z.ZodOptional<z.ZodNumber>;
389
+ stepperName: z.ZodOptional<z.ZodString>;
390
+ actionName: z.ZodOptional<z.ZodString>;
391
+ stepArgs: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
392
+ stepValuesMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
393
+ topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
394
+ featurePath: z.ZodOptional<z.ZodString>;
395
+ }, z.core.$strip>;
396
+ export declare const GenericLifecycleEvent: z.ZodObject<{
397
+ id: z.ZodString;
398
+ timestamp: z.ZodNumber;
399
+ source: z.ZodDefault<z.ZodString>;
400
+ emitter: z.ZodOptional<z.ZodString>;
401
+ level: z.ZodDefault<z.ZodEnum<{
402
+ debug: "debug";
403
+ trace: "trace";
404
+ log: "log";
405
+ info: "info";
406
+ warn: "warn";
407
+ error: "error";
408
+ }>>;
409
+ kind: z.ZodLiteral<"lifecycle">;
410
+ stage: z.ZodEnum<{
411
+ start: "start";
412
+ end: "end";
413
+ }>;
414
+ status: z.ZodOptional<z.ZodEnum<{
415
+ running: "running";
416
+ completed: "completed";
417
+ failed: "failed";
418
+ skipped: "skipped";
419
+ }>>;
420
+ error: z.ZodOptional<z.ZodString>;
421
+ intent: z.ZodOptional<z.ZodObject<{
422
+ mode: z.ZodOptional<z.ZodEnum<{
423
+ speculative: "speculative";
424
+ authoritative: "authoritative";
425
+ }>>;
426
+ }, z.core.$strip>>;
427
+ type: z.ZodEnum<{
428
+ activity: "activity";
429
+ waypoint: "waypoint";
430
+ ensure: "ensure";
431
+ execution: "execution";
432
+ }>;
433
+ in: z.ZodOptional<z.ZodString>;
434
+ topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
435
+ lineNumber: z.ZodOptional<z.ZodNumber>;
436
+ featurePath: z.ZodOptional<z.ZodString>;
437
+ }, z.core.$strip>;
438
+ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
439
+ id: z.ZodString;
440
+ timestamp: z.ZodNumber;
441
+ source: z.ZodDefault<z.ZodString>;
442
+ emitter: z.ZodOptional<z.ZodString>;
443
+ level: z.ZodDefault<z.ZodEnum<{
444
+ debug: "debug";
445
+ trace: "trace";
446
+ log: "log";
447
+ info: "info";
448
+ warn: "warn";
449
+ error: "error";
450
+ }>>;
451
+ kind: z.ZodLiteral<"lifecycle">;
452
+ stage: z.ZodEnum<{
453
+ start: "start";
454
+ end: "end";
455
+ }>;
456
+ status: z.ZodOptional<z.ZodEnum<{
457
+ running: "running";
458
+ completed: "completed";
459
+ failed: "failed";
460
+ skipped: "skipped";
461
+ }>>;
462
+ error: z.ZodOptional<z.ZodString>;
463
+ intent: z.ZodOptional<z.ZodObject<{
464
+ mode: z.ZodOptional<z.ZodEnum<{
465
+ speculative: "speculative";
466
+ authoritative: "authoritative";
467
+ }>>;
468
+ }, z.core.$strip>>;
469
+ type: z.ZodLiteral<"feature">;
470
+ featurePath: z.ZodString;
471
+ }, z.core.$strip>, z.ZodObject<{
472
+ id: z.ZodString;
473
+ timestamp: z.ZodNumber;
474
+ source: z.ZodDefault<z.ZodString>;
475
+ emitter: z.ZodOptional<z.ZodString>;
476
+ level: z.ZodDefault<z.ZodEnum<{
477
+ debug: "debug";
478
+ trace: "trace";
479
+ log: "log";
480
+ info: "info";
481
+ warn: "warn";
482
+ error: "error";
483
+ }>>;
484
+ kind: z.ZodLiteral<"lifecycle">;
485
+ stage: z.ZodEnum<{
486
+ start: "start";
487
+ end: "end";
488
+ }>;
489
+ status: z.ZodOptional<z.ZodEnum<{
490
+ running: "running";
491
+ completed: "completed";
492
+ failed: "failed";
493
+ skipped: "skipped";
494
+ }>>;
495
+ error: z.ZodOptional<z.ZodString>;
496
+ intent: z.ZodOptional<z.ZodObject<{
497
+ mode: z.ZodOptional<z.ZodEnum<{
498
+ speculative: "speculative";
499
+ authoritative: "authoritative";
500
+ }>>;
501
+ }, z.core.$strip>>;
502
+ type: z.ZodLiteral<"scenario">;
503
+ scenarioName: z.ZodString;
504
+ featurePath: z.ZodOptional<z.ZodString>;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ id: z.ZodString;
507
+ timestamp: z.ZodNumber;
508
+ source: z.ZodDefault<z.ZodString>;
509
+ emitter: z.ZodOptional<z.ZodString>;
510
+ level: z.ZodDefault<z.ZodEnum<{
511
+ debug: "debug";
512
+ trace: "trace";
513
+ log: "log";
514
+ info: "info";
515
+ warn: "warn";
516
+ error: "error";
517
+ }>>;
518
+ kind: z.ZodLiteral<"lifecycle">;
519
+ stage: z.ZodEnum<{
520
+ start: "start";
521
+ end: "end";
522
+ }>;
523
+ status: z.ZodOptional<z.ZodEnum<{
524
+ running: "running";
525
+ completed: "completed";
526
+ failed: "failed";
527
+ skipped: "skipped";
528
+ }>>;
529
+ error: z.ZodOptional<z.ZodString>;
530
+ intent: z.ZodOptional<z.ZodObject<{
531
+ mode: z.ZodOptional<z.ZodEnum<{
532
+ speculative: "speculative";
533
+ authoritative: "authoritative";
534
+ }>>;
535
+ }, z.core.$strip>>;
536
+ type: z.ZodLiteral<"step">;
537
+ in: z.ZodString;
538
+ lineNumber: z.ZodOptional<z.ZodNumber>;
539
+ stepperName: z.ZodOptional<z.ZodString>;
540
+ actionName: z.ZodOptional<z.ZodString>;
541
+ stepArgs: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
542
+ stepValuesMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
543
+ topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
544
+ featurePath: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ id: z.ZodString;
547
+ timestamp: z.ZodNumber;
548
+ source: z.ZodDefault<z.ZodString>;
549
+ emitter: z.ZodOptional<z.ZodString>;
550
+ level: z.ZodDefault<z.ZodEnum<{
551
+ debug: "debug";
552
+ trace: "trace";
553
+ log: "log";
554
+ info: "info";
555
+ warn: "warn";
556
+ error: "error";
557
+ }>>;
558
+ kind: z.ZodLiteral<"lifecycle">;
559
+ stage: z.ZodEnum<{
560
+ start: "start";
561
+ end: "end";
562
+ }>;
563
+ status: z.ZodOptional<z.ZodEnum<{
564
+ running: "running";
565
+ completed: "completed";
566
+ failed: "failed";
567
+ skipped: "skipped";
568
+ }>>;
569
+ error: z.ZodOptional<z.ZodString>;
570
+ intent: z.ZodOptional<z.ZodObject<{
571
+ mode: z.ZodOptional<z.ZodEnum<{
572
+ speculative: "speculative";
573
+ authoritative: "authoritative";
574
+ }>>;
575
+ }, z.core.$strip>>;
576
+ type: z.ZodEnum<{
577
+ activity: "activity";
578
+ waypoint: "waypoint";
579
+ ensure: "ensure";
580
+ execution: "execution";
581
+ }>;
582
+ in: z.ZodOptional<z.ZodString>;
583
+ topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
584
+ lineNumber: z.ZodOptional<z.ZodNumber>;
585
+ featurePath: z.ZodOptional<z.ZodString>;
586
+ }, z.core.$strip>]>;
587
+ export declare const LogEvent: z.ZodObject<{
588
+ id: z.ZodString;
589
+ timestamp: z.ZodNumber;
590
+ source: z.ZodDefault<z.ZodString>;
591
+ emitter: z.ZodOptional<z.ZodString>;
592
+ kind: z.ZodLiteral<"log">;
593
+ level: z.ZodEnum<{
594
+ debug: "debug";
595
+ trace: "trace";
596
+ log: "log";
597
+ info: "info";
598
+ warn: "warn";
599
+ error: "error";
600
+ }>;
601
+ message: z.ZodString;
602
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
603
+ }, z.core.$strip>;
604
+ export declare const ImageArtifact: z.ZodObject<{
605
+ id: z.ZodString;
606
+ timestamp: z.ZodNumber;
607
+ source: z.ZodDefault<z.ZodString>;
608
+ emitter: z.ZodOptional<z.ZodString>;
609
+ level: z.ZodDefault<z.ZodEnum<{
610
+ debug: "debug";
611
+ trace: "trace";
612
+ log: "log";
613
+ info: "info";
614
+ warn: "warn";
615
+ error: "error";
616
+ }>>;
617
+ kind: z.ZodLiteral<"artifact">;
618
+ artifactType: z.ZodLiteral<"image">;
619
+ path: z.ZodString;
620
+ mimetype: z.ZodDefault<z.ZodString>;
621
+ }, z.core.$strip>;
622
+ export declare const VideoArtifact: z.ZodObject<{
623
+ id: z.ZodString;
624
+ timestamp: z.ZodNumber;
625
+ source: z.ZodDefault<z.ZodString>;
626
+ emitter: z.ZodOptional<z.ZodString>;
627
+ level: z.ZodDefault<z.ZodEnum<{
628
+ debug: "debug";
629
+ trace: "trace";
630
+ log: "log";
631
+ info: "info";
632
+ warn: "warn";
633
+ error: "error";
634
+ }>>;
635
+ kind: z.ZodLiteral<"artifact">;
636
+ artifactType: z.ZodLiteral<"video">;
637
+ path: z.ZodString;
638
+ mimetype: z.ZodDefault<z.ZodString>;
639
+ isTimeLined: z.ZodDefault<z.ZodBoolean>;
640
+ startTime: z.ZodOptional<z.ZodNumber>;
641
+ duration: z.ZodOptional<z.ZodNumber>;
642
+ }, z.core.$strip>;
643
+ export declare const VideoStartArtifact: z.ZodObject<{
644
+ id: z.ZodString;
645
+ timestamp: z.ZodNumber;
646
+ source: z.ZodDefault<z.ZodString>;
647
+ emitter: z.ZodOptional<z.ZodString>;
648
+ level: z.ZodDefault<z.ZodEnum<{
649
+ debug: "debug";
650
+ trace: "trace";
651
+ log: "log";
652
+ info: "info";
653
+ warn: "warn";
654
+ error: "error";
655
+ }>>;
656
+ kind: z.ZodLiteral<"artifact">;
657
+ artifactType: z.ZodLiteral<"video-start">;
658
+ startTime: z.ZodNumber;
659
+ }, z.core.$strip>;
660
+ export declare const HtmlArtifact: z.ZodObject<{
661
+ id: z.ZodString;
662
+ timestamp: z.ZodNumber;
663
+ source: z.ZodDefault<z.ZodString>;
664
+ emitter: z.ZodOptional<z.ZodString>;
665
+ level: z.ZodDefault<z.ZodEnum<{
666
+ debug: "debug";
667
+ trace: "trace";
668
+ log: "log";
669
+ info: "info";
670
+ warn: "warn";
671
+ error: "error";
672
+ }>>;
673
+ kind: z.ZodLiteral<"artifact">;
674
+ artifactType: z.ZodLiteral<"html">;
675
+ path: z.ZodString;
676
+ mimetype: z.ZodDefault<z.ZodString>;
677
+ }, z.core.$strip>;
678
+ export declare const SpeechArtifact: z.ZodObject<{
679
+ id: z.ZodString;
680
+ timestamp: z.ZodNumber;
681
+ source: z.ZodDefault<z.ZodString>;
682
+ emitter: z.ZodOptional<z.ZodString>;
683
+ level: z.ZodDefault<z.ZodEnum<{
684
+ debug: "debug";
685
+ trace: "trace";
686
+ log: "log";
687
+ info: "info";
688
+ warn: "warn";
689
+ error: "error";
690
+ }>>;
691
+ kind: z.ZodLiteral<"artifact">;
692
+ artifactType: z.ZodLiteral<"speech">;
693
+ path: z.ZodString;
694
+ mimetype: z.ZodDefault<z.ZodString>;
695
+ transcript: z.ZodOptional<z.ZodString>;
696
+ durationS: z.ZodOptional<z.ZodNumber>;
697
+ }, z.core.$strip>;
698
+ export declare const JsonArtifact: z.ZodObject<{
699
+ id: z.ZodString;
700
+ timestamp: z.ZodNumber;
701
+ source: z.ZodDefault<z.ZodString>;
702
+ emitter: z.ZodOptional<z.ZodString>;
703
+ level: z.ZodDefault<z.ZodEnum<{
704
+ debug: "debug";
705
+ trace: "trace";
706
+ log: "log";
707
+ info: "info";
708
+ warn: "warn";
709
+ error: "error";
710
+ }>>;
711
+ kind: z.ZodLiteral<"artifact">;
712
+ artifactType: z.ZodLiteral<"json">;
713
+ json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
714
+ mimetype: z.ZodDefault<z.ZodString>;
715
+ }, z.core.$strip>;
716
+ export declare const MermaidArtifact: z.ZodObject<{
717
+ id: z.ZodString;
718
+ timestamp: z.ZodNumber;
719
+ emitter: z.ZodOptional<z.ZodString>;
720
+ level: z.ZodDefault<z.ZodEnum<{
721
+ debug: "debug";
722
+ trace: "trace";
723
+ log: "log";
724
+ info: "info";
725
+ warn: "warn";
726
+ error: "error";
727
+ }>>;
728
+ kind: z.ZodLiteral<"artifact">;
729
+ artifactType: z.ZodLiteral<"mermaid">;
730
+ source: z.ZodString;
731
+ mimetype: z.ZodDefault<z.ZodString>;
732
+ }, z.core.$strip>;
733
+ export declare const HttpTraceArtifact: z.ZodObject<{
734
+ id: z.ZodString;
735
+ timestamp: z.ZodNumber;
736
+ source: z.ZodDefault<z.ZodString>;
737
+ emitter: z.ZodOptional<z.ZodString>;
738
+ level: z.ZodDefault<z.ZodEnum<{
739
+ debug: "debug";
740
+ trace: "trace";
741
+ log: "log";
742
+ info: "info";
743
+ warn: "warn";
744
+ error: "error";
745
+ }>>;
746
+ kind: z.ZodLiteral<"artifact">;
747
+ artifactType: z.ZodLiteral<"http-trace">;
748
+ httpEvent: z.ZodEnum<{
749
+ request: "request";
750
+ response: "response";
751
+ route: "route";
752
+ }>;
753
+ trace: z.ZodObject<{
754
+ frameURL: z.ZodOptional<z.ZodString>;
755
+ requestingPage: z.ZodOptional<z.ZodString>;
756
+ requestingURL: z.ZodOptional<z.ZodString>;
757
+ method: z.ZodOptional<z.ZodString>;
758
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
759
+ postData: z.ZodOptional<z.ZodUnknown>;
760
+ status: z.ZodOptional<z.ZodNumber>;
761
+ statusText: z.ZodOptional<z.ZodString>;
762
+ }, z.core.$strip>;
763
+ mimetype: z.ZodDefault<z.ZodString>;
764
+ }, z.core.$strip>;
765
+ export declare const RegisteredOutcomeEntry: z.ZodObject<{
766
+ proofStatements: z.ZodOptional<z.ZodArray<z.ZodString>>;
767
+ proofPath: z.ZodOptional<z.ZodString>;
768
+ isBackground: z.ZodOptional<z.ZodBoolean>;
769
+ activityBlockSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
770
+ }, z.core.$strip>;
771
+ export type TRegisteredOutcomeEntry = z.infer<typeof RegisteredOutcomeEntry>;
772
+ export declare const ResolvedFeaturesArtifact: z.ZodObject<{
773
+ id: z.ZodString;
774
+ timestamp: z.ZodNumber;
775
+ source: z.ZodDefault<z.ZodString>;
776
+ emitter: z.ZodOptional<z.ZodString>;
777
+ level: z.ZodDefault<z.ZodEnum<{
778
+ debug: "debug";
779
+ trace: "trace";
780
+ log: "log";
781
+ info: "info";
782
+ warn: "warn";
783
+ error: "error";
784
+ }>>;
785
+ kind: z.ZodLiteral<"artifact">;
786
+ artifactType: z.ZodLiteral<"resolvedFeatures">;
787
+ resolvedFeatures: z.ZodArray<z.ZodUnknown>;
788
+ index: z.ZodOptional<z.ZodNumber>;
789
+ registeredOutcomes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
790
+ proofStatements: z.ZodOptional<z.ZodArray<z.ZodString>>;
791
+ proofPath: z.ZodOptional<z.ZodString>;
792
+ isBackground: z.ZodOptional<z.ZodBoolean>;
793
+ activityBlockSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
794
+ }, z.core.$strip>>>;
795
+ mimetype: z.ZodDefault<z.ZodString>;
796
+ }, z.core.$strip>;
797
+ export declare const FileArtifact: z.ZodObject<{
798
+ id: z.ZodString;
799
+ timestamp: z.ZodNumber;
800
+ source: z.ZodDefault<z.ZodString>;
801
+ emitter: z.ZodOptional<z.ZodString>;
802
+ level: z.ZodDefault<z.ZodEnum<{
803
+ debug: "debug";
804
+ trace: "trace";
805
+ log: "log";
806
+ info: "info";
807
+ warn: "warn";
808
+ error: "error";
809
+ }>>;
810
+ kind: z.ZodLiteral<"artifact">;
811
+ artifactType: z.ZodLiteral<"file">;
812
+ path: z.ZodString;
813
+ mimetype: z.ZodString;
814
+ }, z.core.$strip>;
815
+ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
816
+ id: z.ZodString;
817
+ timestamp: z.ZodNumber;
818
+ source: z.ZodDefault<z.ZodString>;
819
+ emitter: z.ZodOptional<z.ZodString>;
820
+ level: z.ZodDefault<z.ZodEnum<{
821
+ debug: "debug";
822
+ trace: "trace";
823
+ log: "log";
824
+ info: "info";
825
+ warn: "warn";
826
+ error: "error";
827
+ }>>;
828
+ kind: z.ZodLiteral<"artifact">;
829
+ artifactType: z.ZodLiteral<"image">;
830
+ path: z.ZodString;
831
+ mimetype: z.ZodDefault<z.ZodString>;
832
+ }, z.core.$strip>, z.ZodObject<{
833
+ id: z.ZodString;
834
+ timestamp: z.ZodNumber;
835
+ source: z.ZodDefault<z.ZodString>;
836
+ emitter: z.ZodOptional<z.ZodString>;
837
+ level: z.ZodDefault<z.ZodEnum<{
838
+ debug: "debug";
839
+ trace: "trace";
840
+ log: "log";
841
+ info: "info";
842
+ warn: "warn";
843
+ error: "error";
844
+ }>>;
845
+ kind: z.ZodLiteral<"artifact">;
846
+ artifactType: z.ZodLiteral<"video">;
847
+ path: z.ZodString;
848
+ mimetype: z.ZodDefault<z.ZodString>;
849
+ isTimeLined: z.ZodDefault<z.ZodBoolean>;
850
+ startTime: z.ZodOptional<z.ZodNumber>;
851
+ duration: z.ZodOptional<z.ZodNumber>;
852
+ }, z.core.$strip>, z.ZodObject<{
853
+ id: z.ZodString;
854
+ timestamp: z.ZodNumber;
855
+ source: z.ZodDefault<z.ZodString>;
856
+ emitter: z.ZodOptional<z.ZodString>;
857
+ level: z.ZodDefault<z.ZodEnum<{
858
+ debug: "debug";
859
+ trace: "trace";
860
+ log: "log";
861
+ info: "info";
862
+ warn: "warn";
863
+ error: "error";
864
+ }>>;
865
+ kind: z.ZodLiteral<"artifact">;
866
+ artifactType: z.ZodLiteral<"video-start">;
867
+ startTime: z.ZodNumber;
868
+ }, z.core.$strip>, z.ZodObject<{
869
+ id: z.ZodString;
870
+ timestamp: z.ZodNumber;
871
+ source: z.ZodDefault<z.ZodString>;
872
+ emitter: z.ZodOptional<z.ZodString>;
873
+ level: z.ZodDefault<z.ZodEnum<{
874
+ debug: "debug";
875
+ trace: "trace";
876
+ log: "log";
877
+ info: "info";
878
+ warn: "warn";
879
+ error: "error";
880
+ }>>;
881
+ kind: z.ZodLiteral<"artifact">;
882
+ artifactType: z.ZodLiteral<"html">;
883
+ path: z.ZodString;
884
+ mimetype: z.ZodDefault<z.ZodString>;
885
+ }, z.core.$strip>, z.ZodObject<{
886
+ id: z.ZodString;
887
+ timestamp: z.ZodNumber;
888
+ source: z.ZodDefault<z.ZodString>;
889
+ emitter: z.ZodOptional<z.ZodString>;
890
+ level: z.ZodDefault<z.ZodEnum<{
891
+ debug: "debug";
892
+ trace: "trace";
893
+ log: "log";
894
+ info: "info";
895
+ warn: "warn";
896
+ error: "error";
897
+ }>>;
898
+ kind: z.ZodLiteral<"artifact">;
899
+ artifactType: z.ZodLiteral<"speech">;
900
+ path: z.ZodString;
901
+ mimetype: z.ZodDefault<z.ZodString>;
902
+ transcript: z.ZodOptional<z.ZodString>;
903
+ durationS: z.ZodOptional<z.ZodNumber>;
904
+ }, z.core.$strip>, z.ZodObject<{
905
+ id: z.ZodString;
906
+ timestamp: z.ZodNumber;
907
+ source: z.ZodDefault<z.ZodString>;
908
+ emitter: z.ZodOptional<z.ZodString>;
909
+ level: z.ZodDefault<z.ZodEnum<{
910
+ debug: "debug";
911
+ trace: "trace";
912
+ log: "log";
913
+ info: "info";
914
+ warn: "warn";
915
+ error: "error";
916
+ }>>;
917
+ kind: z.ZodLiteral<"artifact">;
918
+ artifactType: z.ZodLiteral<"json">;
919
+ json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
920
+ mimetype: z.ZodDefault<z.ZodString>;
921
+ }, z.core.$strip>, z.ZodObject<{
922
+ id: z.ZodString;
923
+ timestamp: z.ZodNumber;
924
+ emitter: z.ZodOptional<z.ZodString>;
925
+ level: z.ZodDefault<z.ZodEnum<{
926
+ debug: "debug";
927
+ trace: "trace";
928
+ log: "log";
929
+ info: "info";
930
+ warn: "warn";
931
+ error: "error";
932
+ }>>;
933
+ kind: z.ZodLiteral<"artifact">;
934
+ artifactType: z.ZodLiteral<"mermaid">;
935
+ source: z.ZodString;
936
+ mimetype: z.ZodDefault<z.ZodString>;
937
+ }, z.core.$strip>, z.ZodObject<{
938
+ id: z.ZodString;
939
+ timestamp: z.ZodNumber;
940
+ source: z.ZodDefault<z.ZodString>;
941
+ emitter: z.ZodOptional<z.ZodString>;
942
+ level: z.ZodDefault<z.ZodEnum<{
943
+ debug: "debug";
944
+ trace: "trace";
945
+ log: "log";
946
+ info: "info";
947
+ warn: "warn";
948
+ error: "error";
949
+ }>>;
950
+ kind: z.ZodLiteral<"artifact">;
951
+ artifactType: z.ZodLiteral<"http-trace">;
952
+ httpEvent: z.ZodEnum<{
953
+ request: "request";
954
+ response: "response";
955
+ route: "route";
956
+ }>;
957
+ trace: z.ZodObject<{
958
+ frameURL: z.ZodOptional<z.ZodString>;
959
+ requestingPage: z.ZodOptional<z.ZodString>;
960
+ requestingURL: z.ZodOptional<z.ZodString>;
961
+ method: z.ZodOptional<z.ZodString>;
962
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
963
+ postData: z.ZodOptional<z.ZodUnknown>;
964
+ status: z.ZodOptional<z.ZodNumber>;
965
+ statusText: z.ZodOptional<z.ZodString>;
966
+ }, z.core.$strip>;
967
+ mimetype: z.ZodDefault<z.ZodString>;
968
+ }, z.core.$strip>, z.ZodObject<{
969
+ id: z.ZodString;
970
+ timestamp: z.ZodNumber;
971
+ source: z.ZodDefault<z.ZodString>;
972
+ emitter: z.ZodOptional<z.ZodString>;
973
+ level: z.ZodDefault<z.ZodEnum<{
974
+ debug: "debug";
975
+ trace: "trace";
976
+ log: "log";
977
+ info: "info";
978
+ warn: "warn";
979
+ error: "error";
980
+ }>>;
981
+ kind: z.ZodLiteral<"artifact">;
982
+ artifactType: z.ZodLiteral<"resolvedFeatures">;
983
+ resolvedFeatures: z.ZodArray<z.ZodUnknown>;
984
+ index: z.ZodOptional<z.ZodNumber>;
985
+ registeredOutcomes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
986
+ proofStatements: z.ZodOptional<z.ZodArray<z.ZodString>>;
987
+ proofPath: z.ZodOptional<z.ZodString>;
988
+ isBackground: z.ZodOptional<z.ZodBoolean>;
989
+ activityBlockSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
990
+ }, z.core.$strip>>>;
991
+ mimetype: z.ZodDefault<z.ZodString>;
992
+ }, z.core.$strip>, z.ZodObject<{
993
+ id: z.ZodString;
994
+ timestamp: z.ZodNumber;
995
+ source: z.ZodDefault<z.ZodString>;
996
+ emitter: z.ZodOptional<z.ZodString>;
997
+ level: z.ZodDefault<z.ZodEnum<{
998
+ debug: "debug";
999
+ trace: "trace";
1000
+ log: "log";
1001
+ info: "info";
1002
+ warn: "warn";
1003
+ error: "error";
1004
+ }>>;
1005
+ kind: z.ZodLiteral<"artifact">;
1006
+ artifactType: z.ZodLiteral<"file">;
1007
+ path: z.ZodString;
1008
+ mimetype: z.ZodString;
1009
+ }, z.core.$strip>], "artifactType">;
1010
+ export declare const ControlEvent: z.ZodObject<{
1011
+ id: z.ZodString;
1012
+ timestamp: z.ZodNumber;
1013
+ source: z.ZodDefault<z.ZodString>;
1014
+ emitter: z.ZodOptional<z.ZodString>;
1015
+ level: z.ZodDefault<z.ZodEnum<{
1016
+ debug: "debug";
1017
+ trace: "trace";
1018
+ log: "log";
1019
+ info: "info";
1020
+ warn: "warn";
1021
+ error: "error";
1022
+ }>>;
1023
+ kind: z.ZodLiteral<"control">;
1024
+ signal: z.ZodEnum<{
1025
+ step: "step";
1026
+ fail: "fail";
1027
+ continue: "continue";
1028
+ retry: "retry";
1029
+ next: "next";
1030
+ "graph-link": "graph-link";
1031
+ break: "break";
1032
+ pause: "pause";
1033
+ resume: "resume";
1034
+ }>;
1035
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1036
+ }, z.core.$strip>;
1037
+ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1038
+ id: z.ZodString;
1039
+ timestamp: z.ZodNumber;
1040
+ source: z.ZodDefault<z.ZodString>;
1041
+ emitter: z.ZodOptional<z.ZodString>;
1042
+ level: z.ZodDefault<z.ZodEnum<{
1043
+ debug: "debug";
1044
+ trace: "trace";
1045
+ log: "log";
1046
+ info: "info";
1047
+ warn: "warn";
1048
+ error: "error";
1049
+ }>>;
1050
+ kind: z.ZodLiteral<"lifecycle">;
1051
+ stage: z.ZodEnum<{
1052
+ start: "start";
1053
+ end: "end";
1054
+ }>;
1055
+ status: z.ZodOptional<z.ZodEnum<{
1056
+ running: "running";
1057
+ completed: "completed";
1058
+ failed: "failed";
1059
+ skipped: "skipped";
1060
+ }>>;
1061
+ error: z.ZodOptional<z.ZodString>;
1062
+ intent: z.ZodOptional<z.ZodObject<{
1063
+ mode: z.ZodOptional<z.ZodEnum<{
1064
+ speculative: "speculative";
1065
+ authoritative: "authoritative";
1066
+ }>>;
1067
+ }, z.core.$strip>>;
1068
+ type: z.ZodLiteral<"feature">;
1069
+ featurePath: z.ZodString;
1070
+ }, z.core.$strip>, z.ZodObject<{
1071
+ id: z.ZodString;
1072
+ timestamp: z.ZodNumber;
1073
+ source: z.ZodDefault<z.ZodString>;
1074
+ emitter: z.ZodOptional<z.ZodString>;
1075
+ level: z.ZodDefault<z.ZodEnum<{
1076
+ debug: "debug";
1077
+ trace: "trace";
1078
+ log: "log";
1079
+ info: "info";
1080
+ warn: "warn";
1081
+ error: "error";
1082
+ }>>;
1083
+ kind: z.ZodLiteral<"lifecycle">;
1084
+ stage: z.ZodEnum<{
1085
+ start: "start";
1086
+ end: "end";
1087
+ }>;
1088
+ status: z.ZodOptional<z.ZodEnum<{
1089
+ running: "running";
1090
+ completed: "completed";
1091
+ failed: "failed";
1092
+ skipped: "skipped";
1093
+ }>>;
1094
+ error: z.ZodOptional<z.ZodString>;
1095
+ intent: z.ZodOptional<z.ZodObject<{
1096
+ mode: z.ZodOptional<z.ZodEnum<{
1097
+ speculative: "speculative";
1098
+ authoritative: "authoritative";
1099
+ }>>;
1100
+ }, z.core.$strip>>;
1101
+ type: z.ZodLiteral<"scenario">;
1102
+ scenarioName: z.ZodString;
1103
+ featurePath: z.ZodOptional<z.ZodString>;
1104
+ }, z.core.$strip>, z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ timestamp: z.ZodNumber;
1107
+ source: z.ZodDefault<z.ZodString>;
1108
+ emitter: z.ZodOptional<z.ZodString>;
1109
+ level: z.ZodDefault<z.ZodEnum<{
1110
+ debug: "debug";
1111
+ trace: "trace";
1112
+ log: "log";
1113
+ info: "info";
1114
+ warn: "warn";
1115
+ error: "error";
1116
+ }>>;
1117
+ kind: z.ZodLiteral<"lifecycle">;
1118
+ stage: z.ZodEnum<{
1119
+ start: "start";
1120
+ end: "end";
1121
+ }>;
1122
+ status: z.ZodOptional<z.ZodEnum<{
1123
+ running: "running";
1124
+ completed: "completed";
1125
+ failed: "failed";
1126
+ skipped: "skipped";
1127
+ }>>;
1128
+ error: z.ZodOptional<z.ZodString>;
1129
+ intent: z.ZodOptional<z.ZodObject<{
1130
+ mode: z.ZodOptional<z.ZodEnum<{
1131
+ speculative: "speculative";
1132
+ authoritative: "authoritative";
1133
+ }>>;
1134
+ }, z.core.$strip>>;
1135
+ type: z.ZodLiteral<"step">;
1136
+ in: z.ZodString;
1137
+ lineNumber: z.ZodOptional<z.ZodNumber>;
1138
+ stepperName: z.ZodOptional<z.ZodString>;
1139
+ actionName: z.ZodOptional<z.ZodString>;
1140
+ stepArgs: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
1141
+ stepValuesMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1142
+ topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1143
+ featurePath: z.ZodOptional<z.ZodString>;
1144
+ }, z.core.$strip>, z.ZodObject<{
1145
+ id: z.ZodString;
1146
+ timestamp: z.ZodNumber;
1147
+ source: z.ZodDefault<z.ZodString>;
1148
+ emitter: z.ZodOptional<z.ZodString>;
1149
+ level: z.ZodDefault<z.ZodEnum<{
1150
+ debug: "debug";
1151
+ trace: "trace";
1152
+ log: "log";
1153
+ info: "info";
1154
+ warn: "warn";
1155
+ error: "error";
1156
+ }>>;
1157
+ kind: z.ZodLiteral<"lifecycle">;
1158
+ stage: z.ZodEnum<{
1159
+ start: "start";
1160
+ end: "end";
1161
+ }>;
1162
+ status: z.ZodOptional<z.ZodEnum<{
1163
+ running: "running";
1164
+ completed: "completed";
1165
+ failed: "failed";
1166
+ skipped: "skipped";
1167
+ }>>;
1168
+ error: z.ZodOptional<z.ZodString>;
1169
+ intent: z.ZodOptional<z.ZodObject<{
1170
+ mode: z.ZodOptional<z.ZodEnum<{
1171
+ speculative: "speculative";
1172
+ authoritative: "authoritative";
1173
+ }>>;
1174
+ }, z.core.$strip>>;
1175
+ type: z.ZodEnum<{
1176
+ activity: "activity";
1177
+ waypoint: "waypoint";
1178
+ ensure: "ensure";
1179
+ execution: "execution";
1180
+ }>;
1181
+ in: z.ZodOptional<z.ZodString>;
1182
+ topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1183
+ lineNumber: z.ZodOptional<z.ZodNumber>;
1184
+ featurePath: z.ZodOptional<z.ZodString>;
1185
+ }, z.core.$strip>]>, z.ZodObject<{
1186
+ id: z.ZodString;
1187
+ timestamp: z.ZodNumber;
1188
+ source: z.ZodDefault<z.ZodString>;
1189
+ emitter: z.ZodOptional<z.ZodString>;
1190
+ kind: z.ZodLiteral<"log">;
1191
+ level: z.ZodEnum<{
1192
+ debug: "debug";
1193
+ trace: "trace";
1194
+ log: "log";
1195
+ info: "info";
1196
+ warn: "warn";
1197
+ error: "error";
1198
+ }>;
1199
+ message: z.ZodString;
1200
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1201
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1202
+ id: z.ZodString;
1203
+ timestamp: z.ZodNumber;
1204
+ source: z.ZodDefault<z.ZodString>;
1205
+ emitter: z.ZodOptional<z.ZodString>;
1206
+ level: z.ZodDefault<z.ZodEnum<{
1207
+ debug: "debug";
1208
+ trace: "trace";
1209
+ log: "log";
1210
+ info: "info";
1211
+ warn: "warn";
1212
+ error: "error";
1213
+ }>>;
1214
+ kind: z.ZodLiteral<"artifact">;
1215
+ artifactType: z.ZodLiteral<"image">;
1216
+ path: z.ZodString;
1217
+ mimetype: z.ZodDefault<z.ZodString>;
1218
+ }, z.core.$strip>, z.ZodObject<{
1219
+ id: z.ZodString;
1220
+ timestamp: z.ZodNumber;
1221
+ source: z.ZodDefault<z.ZodString>;
1222
+ emitter: z.ZodOptional<z.ZodString>;
1223
+ level: z.ZodDefault<z.ZodEnum<{
1224
+ debug: "debug";
1225
+ trace: "trace";
1226
+ log: "log";
1227
+ info: "info";
1228
+ warn: "warn";
1229
+ error: "error";
1230
+ }>>;
1231
+ kind: z.ZodLiteral<"artifact">;
1232
+ artifactType: z.ZodLiteral<"video">;
1233
+ path: z.ZodString;
1234
+ mimetype: z.ZodDefault<z.ZodString>;
1235
+ isTimeLined: z.ZodDefault<z.ZodBoolean>;
1236
+ startTime: z.ZodOptional<z.ZodNumber>;
1237
+ duration: z.ZodOptional<z.ZodNumber>;
1238
+ }, z.core.$strip>, z.ZodObject<{
1239
+ id: z.ZodString;
1240
+ timestamp: z.ZodNumber;
1241
+ source: z.ZodDefault<z.ZodString>;
1242
+ emitter: z.ZodOptional<z.ZodString>;
1243
+ level: z.ZodDefault<z.ZodEnum<{
1244
+ debug: "debug";
1245
+ trace: "trace";
1246
+ log: "log";
1247
+ info: "info";
1248
+ warn: "warn";
1249
+ error: "error";
1250
+ }>>;
1251
+ kind: z.ZodLiteral<"artifact">;
1252
+ artifactType: z.ZodLiteral<"video-start">;
1253
+ startTime: z.ZodNumber;
1254
+ }, z.core.$strip>, z.ZodObject<{
1255
+ id: z.ZodString;
1256
+ timestamp: z.ZodNumber;
1257
+ source: z.ZodDefault<z.ZodString>;
1258
+ emitter: z.ZodOptional<z.ZodString>;
1259
+ level: z.ZodDefault<z.ZodEnum<{
1260
+ debug: "debug";
1261
+ trace: "trace";
1262
+ log: "log";
1263
+ info: "info";
1264
+ warn: "warn";
1265
+ error: "error";
1266
+ }>>;
1267
+ kind: z.ZodLiteral<"artifact">;
1268
+ artifactType: z.ZodLiteral<"html">;
1269
+ path: z.ZodString;
1270
+ mimetype: z.ZodDefault<z.ZodString>;
1271
+ }, z.core.$strip>, z.ZodObject<{
1272
+ id: z.ZodString;
1273
+ timestamp: z.ZodNumber;
1274
+ source: z.ZodDefault<z.ZodString>;
1275
+ emitter: z.ZodOptional<z.ZodString>;
1276
+ level: z.ZodDefault<z.ZodEnum<{
1277
+ debug: "debug";
1278
+ trace: "trace";
1279
+ log: "log";
1280
+ info: "info";
1281
+ warn: "warn";
1282
+ error: "error";
1283
+ }>>;
1284
+ kind: z.ZodLiteral<"artifact">;
1285
+ artifactType: z.ZodLiteral<"speech">;
1286
+ path: z.ZodString;
1287
+ mimetype: z.ZodDefault<z.ZodString>;
1288
+ transcript: z.ZodOptional<z.ZodString>;
1289
+ durationS: z.ZodOptional<z.ZodNumber>;
1290
+ }, z.core.$strip>, z.ZodObject<{
1291
+ id: z.ZodString;
1292
+ timestamp: z.ZodNumber;
1293
+ source: z.ZodDefault<z.ZodString>;
1294
+ emitter: z.ZodOptional<z.ZodString>;
1295
+ level: z.ZodDefault<z.ZodEnum<{
1296
+ debug: "debug";
1297
+ trace: "trace";
1298
+ log: "log";
1299
+ info: "info";
1300
+ warn: "warn";
1301
+ error: "error";
1302
+ }>>;
1303
+ kind: z.ZodLiteral<"artifact">;
1304
+ artifactType: z.ZodLiteral<"json">;
1305
+ json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1306
+ mimetype: z.ZodDefault<z.ZodString>;
1307
+ }, z.core.$strip>, z.ZodObject<{
1308
+ id: z.ZodString;
1309
+ timestamp: z.ZodNumber;
1310
+ emitter: z.ZodOptional<z.ZodString>;
1311
+ level: z.ZodDefault<z.ZodEnum<{
1312
+ debug: "debug";
1313
+ trace: "trace";
1314
+ log: "log";
1315
+ info: "info";
1316
+ warn: "warn";
1317
+ error: "error";
1318
+ }>>;
1319
+ kind: z.ZodLiteral<"artifact">;
1320
+ artifactType: z.ZodLiteral<"mermaid">;
1321
+ source: z.ZodString;
1322
+ mimetype: z.ZodDefault<z.ZodString>;
1323
+ }, z.core.$strip>, z.ZodObject<{
1324
+ id: z.ZodString;
1325
+ timestamp: z.ZodNumber;
1326
+ source: z.ZodDefault<z.ZodString>;
1327
+ emitter: z.ZodOptional<z.ZodString>;
1328
+ level: z.ZodDefault<z.ZodEnum<{
1329
+ debug: "debug";
1330
+ trace: "trace";
1331
+ log: "log";
1332
+ info: "info";
1333
+ warn: "warn";
1334
+ error: "error";
1335
+ }>>;
1336
+ kind: z.ZodLiteral<"artifact">;
1337
+ artifactType: z.ZodLiteral<"http-trace">;
1338
+ httpEvent: z.ZodEnum<{
1339
+ request: "request";
1340
+ response: "response";
1341
+ route: "route";
1342
+ }>;
1343
+ trace: z.ZodObject<{
1344
+ frameURL: z.ZodOptional<z.ZodString>;
1345
+ requestingPage: z.ZodOptional<z.ZodString>;
1346
+ requestingURL: z.ZodOptional<z.ZodString>;
1347
+ method: z.ZodOptional<z.ZodString>;
1348
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1349
+ postData: z.ZodOptional<z.ZodUnknown>;
1350
+ status: z.ZodOptional<z.ZodNumber>;
1351
+ statusText: z.ZodOptional<z.ZodString>;
1352
+ }, z.core.$strip>;
1353
+ mimetype: z.ZodDefault<z.ZodString>;
1354
+ }, z.core.$strip>, z.ZodObject<{
1355
+ id: z.ZodString;
1356
+ timestamp: z.ZodNumber;
1357
+ source: z.ZodDefault<z.ZodString>;
1358
+ emitter: z.ZodOptional<z.ZodString>;
1359
+ level: z.ZodDefault<z.ZodEnum<{
1360
+ debug: "debug";
1361
+ trace: "trace";
1362
+ log: "log";
1363
+ info: "info";
1364
+ warn: "warn";
1365
+ error: "error";
1366
+ }>>;
1367
+ kind: z.ZodLiteral<"artifact">;
1368
+ artifactType: z.ZodLiteral<"resolvedFeatures">;
1369
+ resolvedFeatures: z.ZodArray<z.ZodUnknown>;
1370
+ index: z.ZodOptional<z.ZodNumber>;
1371
+ registeredOutcomes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1372
+ proofStatements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1373
+ proofPath: z.ZodOptional<z.ZodString>;
1374
+ isBackground: z.ZodOptional<z.ZodBoolean>;
1375
+ activityBlockSteps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1376
+ }, z.core.$strip>>>;
1377
+ mimetype: z.ZodDefault<z.ZodString>;
1378
+ }, z.core.$strip>, z.ZodObject<{
1379
+ id: z.ZodString;
1380
+ timestamp: z.ZodNumber;
1381
+ source: z.ZodDefault<z.ZodString>;
1382
+ emitter: z.ZodOptional<z.ZodString>;
1383
+ level: z.ZodDefault<z.ZodEnum<{
1384
+ debug: "debug";
1385
+ trace: "trace";
1386
+ log: "log";
1387
+ info: "info";
1388
+ warn: "warn";
1389
+ error: "error";
1390
+ }>>;
1391
+ kind: z.ZodLiteral<"artifact">;
1392
+ artifactType: z.ZodLiteral<"file">;
1393
+ path: z.ZodString;
1394
+ mimetype: z.ZodString;
1395
+ }, z.core.$strip>], "artifactType">, z.ZodObject<{
1396
+ id: z.ZodString;
1397
+ timestamp: z.ZodNumber;
1398
+ source: z.ZodDefault<z.ZodString>;
1399
+ emitter: z.ZodOptional<z.ZodString>;
1400
+ level: z.ZodDefault<z.ZodEnum<{
1401
+ debug: "debug";
1402
+ trace: "trace";
1403
+ log: "log";
1404
+ info: "info";
1405
+ warn: "warn";
1406
+ error: "error";
1407
+ }>>;
1408
+ kind: z.ZodLiteral<"control">;
1409
+ signal: z.ZodEnum<{
1410
+ step: "step";
1411
+ fail: "fail";
1412
+ continue: "continue";
1413
+ retry: "retry";
1414
+ next: "next";
1415
+ "graph-link": "graph-link";
1416
+ break: "break";
1417
+ pause: "pause";
1418
+ resume: "resume";
1419
+ }>;
1420
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1421
+ }, z.core.$strip>]>;
1422
+ export type TBaseEvent = z.infer<typeof BaseEvent>;
1423
+ export type TLifecycleEvent = z.infer<typeof LifecycleEvent>;
1424
+ export type TFeatureEvent = z.infer<typeof FeatureEvent>;
1425
+ export type TScenarioEvent = z.infer<typeof ScenarioEvent>;
1426
+ export type TStepEvent = z.infer<typeof StepEvent>;
1427
+ export type TGenericLifecycleEvent = z.infer<typeof GenericLifecycleEvent>;
1428
+ export type TLogEvent = z.infer<typeof LogEvent>;
1429
+ export type TArtifactEvent = z.infer<typeof ArtifactEvent>;
1430
+ export type TImageArtifact = z.infer<typeof ImageArtifact>;
1431
+ export type TVideoArtifact = z.infer<typeof VideoArtifact>;
1432
+ export type TVideoStartArtifact = z.infer<typeof VideoStartArtifact>;
1433
+ export type THtmlArtifact = z.infer<typeof HtmlArtifact>;
1434
+ export type TSpeechArtifact = z.infer<typeof SpeechArtifact>;
1435
+ export type TJsonArtifact = z.infer<typeof JsonArtifact>;
1436
+ export type TMermaidArtifact = z.infer<typeof MermaidArtifact>;
1437
+ export type THttpTraceArtifact = z.infer<typeof HttpTraceArtifact>;
1438
+ export type TResolvedFeaturesArtifact = z.infer<typeof ResolvedFeaturesArtifact>;
1439
+ export type TFileArtifact = z.infer<typeof FileArtifact>;
1440
+ export type TControlEvent = z.infer<typeof ControlEvent>;
1441
+ export type THaibunEvent = z.infer<typeof HaibunEvent>;
1442
+ export {};
1443
+ //# sourceMappingURL=protocol.d.ts.map