@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,37 @@
1
+ import { TFileSystem } from './util/workspace-lib.js';
2
+ export interface HaibunWorkspace {
3
+ /** Base path - parent of features/ folder */
4
+ base: string;
5
+ /** Path to config.json if it exists */
6
+ configPath: string | null;
7
+ /** Path to backgrounds/ folder if it exists */
8
+ backgroundsPath: string | null;
9
+ }
10
+ /**
11
+ * Find the haibun workspace root from a feature file path.
12
+ * Walks up from the file until finding a 'features/' parent directory.
13
+ * Returns the base path (parent of features/), config path, and backgrounds path.
14
+ *
15
+ * @param featurePath - Absolute path to a .feature file
16
+ * @param fs - File system interface (for testing)
17
+ * @returns Workspace info or null if no features/ parent found
18
+ */
19
+ export declare function findHaibunWorkspace(featurePath: string, fs?: TFileSystem): HaibunWorkspace | null;
20
+ /**
21
+ * Recursively find all .feature files in a directory
22
+ */
23
+ export declare function findFeatureFiles(dir: string, fs?: TFileSystem): Promise<string[]>;
24
+ /**
25
+ * Count features in the workspace (base/features)
26
+ */
27
+ export declare function countFeatures(base: string, fs?: TFileSystem): Promise<number>;
28
+ /**
29
+ * Load all background files from a backgrounds directory
30
+ */
31
+ export declare function loadBackgroundsFromPath(backgroundsPath: string, fs?: TFileSystem): Promise<Array<{
32
+ path: string;
33
+ content: string;
34
+ name: string;
35
+ base: string;
36
+ }>>;
37
+ //# sourceMappingURL=workspace-discovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-discovery.d.ts","sourceRoot":"","sources":["../../src/lib/workspace-discovery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,WAAW,eAAe;IAC9B,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+CAA+C;IAC/C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,EAAE,GAAE,WAAoB,GACvB,eAAe,GAAG,IAAI,CAmCxB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,GAAE,WAAoB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAmB/F;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAE,WAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAI3F;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,MAAM,EACvB,EAAE,GAAE,WAAoB,GACvB,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAuB/E"}
@@ -0,0 +1,96 @@
1
+ import nodeFS from 'fs';
2
+ import path from 'path';
3
+ /**
4
+ * Find the haibun workspace root from a feature file path.
5
+ * Walks up from the file until finding a 'features/' parent directory.
6
+ * Returns the base path (parent of features/), config path, and backgrounds path.
7
+ *
8
+ * @param featurePath - Absolute path to a .feature file
9
+ * @param fs - File system interface (for testing)
10
+ * @returns Workspace info or null if no features/ parent found
11
+ */
12
+ export function findHaibunWorkspace(featurePath, fs = nodeFS) {
13
+ // Normalize path
14
+ const normalized = path.normalize(featurePath);
15
+ const parts = normalized.split(path.sep);
16
+ // Find the 'features' or 'backgrounds' segment in the path
17
+ let featuresIndex = -1;
18
+ for (let i = parts.length - 1; i >= 0; i--) {
19
+ if (parts[i] === 'features' || parts[i] === 'backgrounds') {
20
+ featuresIndex = i;
21
+ break;
22
+ }
23
+ }
24
+ if (featuresIndex < 0) {
25
+ return null;
26
+ }
27
+ // Base is the parent of features/
28
+ const baseParts = parts.slice(0, featuresIndex);
29
+ const base = baseParts.join(path.sep) || path.sep;
30
+ // Check for config.json at base level
31
+ const configPath = path.join(base, 'config.json');
32
+ const hasConfig = fs.existsSync(configPath);
33
+ // Check for backgrounds/ at base level
34
+ const backgroundsPath = path.join(base, 'backgrounds');
35
+ const hasBackgrounds = fs.existsSync(backgroundsPath);
36
+ return {
37
+ base,
38
+ configPath: hasConfig ? configPath : null,
39
+ backgroundsPath: hasBackgrounds ? backgroundsPath : null,
40
+ };
41
+ }
42
+ /**
43
+ * Recursively find all .feature files in a directory
44
+ */
45
+ export async function findFeatureFiles(dir, fs = nodeFS) {
46
+ const results = [];
47
+ if (!fs.existsSync(dir))
48
+ return results;
49
+ async function recurse(currentDir) {
50
+ const entries = fs.readdirSync(currentDir);
51
+ for (const entry of entries) {
52
+ const fullPath = path.join(currentDir, entry);
53
+ const stat = fs.statSync(fullPath);
54
+ if (stat.isDirectory()) {
55
+ await recurse(fullPath);
56
+ }
57
+ else if (entry.endsWith('.feature')) {
58
+ results.push(fullPath);
59
+ }
60
+ }
61
+ }
62
+ await recurse(dir);
63
+ return results;
64
+ }
65
+ /**
66
+ * Count features in the workspace (base/features)
67
+ */
68
+ export async function countFeatures(base, fs = nodeFS) {
69
+ const featuresPath = path.join(base, 'features');
70
+ const files = await findFeatureFiles(featuresPath, fs);
71
+ return files.length;
72
+ }
73
+ /**
74
+ * Load all background files from a backgrounds directory
75
+ */
76
+ export async function loadBackgroundsFromPath(backgroundsPath, fs = nodeFS) {
77
+ const backgrounds = [];
78
+ if (!fs.existsSync(backgroundsPath)) {
79
+ return backgrounds;
80
+ }
81
+ const base = path.dirname(backgroundsPath);
82
+ const files = await findFeatureFiles(backgroundsPath, fs);
83
+ for (const fullPath of files) {
84
+ const content = fs.readFileSync(fullPath, 'utf-8');
85
+ const relativePath = fullPath.replace(base, '');
86
+ const name = path.basename(fullPath, '.feature');
87
+ backgrounds.push({
88
+ path: relativePath,
89
+ content,
90
+ name,
91
+ base,
92
+ });
93
+ }
94
+ return backgrounds;
95
+ }
96
+ //# sourceMappingURL=workspace-discovery.js.map
@@ -0,0 +1 @@
1
+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C,IAAI,EAAE,UAAU,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,MAAM,gBAAgB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC,MAAM,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,eAAuB,EACvB,KAAkB,MAAM;IAExB,MAAM,WAAW,GAAyE,EAAE,CAAC;IAE7F,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QACpC,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,MAAM,gBAAgB,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAE1D,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACjD,WAAW,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,YAAY;YAClB,OAAO;YACP,IAAI;YACJ,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -1,11 +1,2 @@
1
- /**
2
- * Monitor utilities for Haibun.
3
- * This module is browser-safe - all imports are from browser-compatible sources.
4
- */
5
- export { EventFormatter, type TIndication } from './formatters.js';
6
- export { JITSerializer } from './jit-serialization.js';
7
- export { Timer } from './timer.js';
8
- export { CHECK_YES, CHECK_NO, MAYBE_CHECK_YES, MAYBE_CHECK_NO } from './constants.js';
9
- export { type THaibunEvent, type TArtifactEvent, type TImageArtifact, type TVideoArtifact, type THtmlArtifact, type TSpeechArtifact, type TJsonArtifact, type TMermaidArtifact, type THttpTraceArtifact, type TResolvedFeaturesArtifact, type TFileArtifact, } from '../schema/events.js';
10
- export { LOG_LEVEL_NONE, LOG_LEVEL_DEBUG, LOG_LEVEL_TRACE, LOG_LEVEL_LOG, LOG_LEVEL_INFO, LOG_LEVEL_WARN, LOG_LEVEL_ERROR, LOG_LEVELS, type TLogLevel, type TLogArgs, EExecutionMessageType, type TMessageContext, type TArtifact, type TArtifactSpeech, type TArtifactVideo, type TArtifactVideoStart, type TArtifactImage, type TArtifactHTML, type TArtifactJSON, type TArtifactHTTPTrace, type TArtifactResolvedFeatures, type RegisteredOutcomeEntry, type TArtifactType, type THTTPTraceContent, type TPrompt, } from './monitor-types.js';
1
+ export { type THaibunEvent, type TArtifactEvent, type TImageArtifact, type TVideoArtifact, type THtmlArtifact, type TSpeechArtifact, type TJsonArtifact, type TMermaidArtifact, type THttpTraceArtifact, type TResolvedFeaturesArtifact, type TFileArtifact, type TRegisteredOutcomeEntry, type TPrompt, type THaibunLogLevel, type TIndication, HAIBUN_LOG_LEVELS, CHECK_YES, CHECK_NO, CHECK_YIELD, MAYBE_CHECK_YES, MAYBE_CHECK_NO, Timer, JITSerializer, EventFormatter, shortenURI, } from '../schema/protocol.js';
11
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,GACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAEL,cAAc,EACd,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU,EACV,KAAK,SAAS,EACd,KAAK,QAAQ,EAEb,qBAAqB,EAErB,KAAK,eAAe,EAEpB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAEtB,KAAK,OAAO,GACb,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,eAAe,EACf,cAAc,EACd,KAAK,EACL,aAAa,EACb,cAAc,EACd,UAAU,GACX,MAAM,uBAAuB,CAAC"}
@@ -1,15 +1,2 @@
1
- /**
2
- * Monitor utilities for Haibun.
3
- * This module is browser-safe - all imports are from browser-compatible sources.
4
- */
5
- export { EventFormatter } from './formatters.js';
6
- export { JITSerializer } from './jit-serialization.js';
7
- export { Timer } from './timer.js';
8
- export { CHECK_YES, CHECK_NO, MAYBE_CHECK_YES, MAYBE_CHECK_NO } from './constants.js';
9
- // Re-export browser-safe types from monitor-types
10
- export {
11
- // Log levels
12
- LOG_LEVEL_NONE, LOG_LEVEL_DEBUG, LOG_LEVEL_TRACE, LOG_LEVEL_LOG, LOG_LEVEL_INFO, LOG_LEVEL_WARN, LOG_LEVEL_ERROR, LOG_LEVELS,
13
- // Execution message types
14
- EExecutionMessageType, } from './monitor-types.js';
1
+ export { HAIBUN_LOG_LEVELS, CHECK_YES, CHECK_NO, CHECK_YIELD, MAYBE_CHECK_YES, MAYBE_CHECK_NO, Timer, JITSerializer, EventFormatter, shortenURI, } from '../schema/protocol.js';
15
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAetF,kDAAkD;AAClD,OAAO;AACL,aAAa;AACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU;AAGV,0BAA0B;AAC1B,qBAAqB,GAkBtB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAgBL,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,eAAe,EACf,cAAc,EACd,KAAK,EACL,aAAa,EACb,cAAc,EACd,UAAU,GACX,MAAM,uBAAuB,CAAC"}
@@ -1,8 +1,6 @@
1
- import { TFeatureStep, TResolvedFeature, TExecutorResult, TStepResult, TFeatureResult, TActionResult, TWorld, TStepAction, ExecMode, TStepArgs, TSeqPath } from '../lib/defs.js';
2
- import { TAnyFixme } from '../lib/fixme.js';
1
+ import { TFeatureStep, TResolvedFeature, TWorld, TStepAction, ExecMode } from '../lib/defs.js';
2
+ import { TExecutorResult, TStepResult, TFeatureResult, TActionResult, TStepArgs, TSeqPath } from '../schema/protocol.js';
3
3
  import { AStepper } from '../lib/astepper.js';
4
- import { EExecutionMessageType, TMessageContext } from '../lib/interfaces/logger.js';
5
- export declare const endExecutonContext: TMessageContext;
6
4
  export declare class Executor {
7
5
  private static createExecutionFailure;
8
6
  static action(steppers: AStepper[], featureStep: TFeatureStep, found: TStepAction, args: TStepArgs, world: TWorld): Promise<TActionResult>;
@@ -11,14 +9,8 @@ export declare class Executor {
11
9
  export declare class FeatureExecutor {
12
10
  private steppers;
13
11
  private world;
14
- private logit;
15
12
  private startOffset;
16
- constructor(steppers: AStepper[], world: TWorld, logit?: <T extends import("../lib/interfaces/logger.js").TArtifact>(message: import("../lib/interfaces/logger.js").TLogArgs, data: {
17
- incident: EExecutionMessageType;
18
- artifact?: T;
19
- incidentDetails?: TAnyFixme;
20
- }, level?: import("../lib/interfaces/logger.js").TLogLevel) => void, startOffset?: number);
21
- private static formatStepLogMessage;
13
+ constructor(steppers: AStepper[], world: TWorld, startOffset?: number);
22
14
  doFeature(feature: TResolvedFeature): Promise<TFeatureResult>;
23
15
  static doFeatureStep(steppers: AStepper[], featureStep: TFeatureStep, world: TWorld, execMode?: ExecMode): Promise<TStepResult>;
24
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Executor.d.ts","sourceRoot":"","sources":["../../src/phases/Executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,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