modestbench 0.0.3 → 0.1.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 (223) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/bootstrap.cjs +0 -2
  3. package/dist/bootstrap.cjs.map +1 -1
  4. package/dist/bootstrap.d.cts.map +1 -1
  5. package/dist/bootstrap.d.ts.map +1 -1
  6. package/dist/bootstrap.js +0 -2
  7. package/dist/bootstrap.js.map +1 -1
  8. package/dist/cli/commands/history.cjs +2 -1
  9. package/dist/cli/commands/history.cjs.map +1 -1
  10. package/dist/cli/commands/history.d.cts.map +1 -1
  11. package/dist/cli/commands/history.d.ts.map +1 -1
  12. package/dist/cli/commands/history.js +2 -1
  13. package/dist/cli/commands/history.js.map +1 -1
  14. package/dist/cli/commands/init.cjs +5 -4
  15. package/dist/cli/commands/init.cjs.map +1 -1
  16. package/dist/cli/commands/init.d.cts.map +1 -1
  17. package/dist/cli/commands/init.d.ts.map +1 -1
  18. package/dist/cli/commands/init.js +5 -4
  19. package/dist/cli/commands/init.js.map +1 -1
  20. package/dist/cli/commands/run.cjs +14 -4
  21. package/dist/cli/commands/run.cjs.map +1 -1
  22. package/dist/cli/commands/run.d.cts.map +1 -1
  23. package/dist/cli/commands/run.d.ts.map +1 -1
  24. package/dist/cli/commands/run.js +14 -4
  25. package/dist/cli/commands/run.js.map +1 -1
  26. package/dist/cli/index.cjs +29 -12
  27. package/dist/cli/index.cjs.map +1 -1
  28. package/dist/cli/index.d.cts +1 -2
  29. package/dist/cli/index.d.cts.map +1 -1
  30. package/dist/cli/index.d.ts +1 -2
  31. package/dist/cli/index.d.ts.map +1 -1
  32. package/dist/cli/index.js +24 -7
  33. package/dist/cli/index.js.map +1 -1
  34. package/dist/config/manager.cjs +8 -2
  35. package/dist/config/manager.cjs.map +1 -1
  36. package/dist/config/manager.d.cts.map +1 -1
  37. package/dist/config/manager.d.ts.map +1 -1
  38. package/dist/config/manager.js +8 -2
  39. package/dist/config/manager.js.map +1 -1
  40. package/dist/constants.cjs +53 -1
  41. package/dist/constants.cjs.map +1 -1
  42. package/dist/constants.d.cts +36 -0
  43. package/dist/constants.d.cts.map +1 -1
  44. package/dist/constants.d.ts +36 -0
  45. package/dist/constants.d.ts.map +1 -1
  46. package/dist/constants.js +52 -0
  47. package/dist/constants.js.map +1 -1
  48. package/dist/core/engine.cjs +15 -42
  49. package/dist/core/engine.cjs.map +1 -1
  50. package/dist/core/engine.d.cts +1 -3
  51. package/dist/core/engine.d.cts.map +1 -1
  52. package/dist/core/engine.d.ts +1 -3
  53. package/dist/core/engine.d.ts.map +1 -1
  54. package/dist/core/engine.js +15 -42
  55. package/dist/core/engine.js.map +1 -1
  56. package/dist/core/engines/accurate-engine.cjs +2 -1
  57. package/dist/core/engines/accurate-engine.cjs.map +1 -1
  58. package/dist/core/engines/accurate-engine.d.cts.map +1 -1
  59. package/dist/core/engines/accurate-engine.d.ts.map +1 -1
  60. package/dist/core/engines/accurate-engine.js +2 -1
  61. package/dist/core/engines/accurate-engine.js.map +1 -1
  62. package/dist/core/engines/tinybench-engine.cjs +6 -5
  63. package/dist/core/engines/tinybench-engine.cjs.map +1 -1
  64. package/dist/core/engines/tinybench-engine.d.cts.map +1 -1
  65. package/dist/core/engines/tinybench-engine.d.ts.map +1 -1
  66. package/dist/core/engines/tinybench-engine.js +6 -5
  67. package/dist/core/engines/tinybench-engine.js.map +1 -1
  68. package/dist/core/loader.cjs +16 -5
  69. package/dist/core/loader.cjs.map +1 -1
  70. package/dist/core/loader.d.cts.map +1 -1
  71. package/dist/core/loader.d.ts.map +1 -1
  72. package/dist/core/loader.js +16 -5
  73. package/dist/core/loader.js.map +1 -1
  74. package/dist/errors/base.cjs +130 -0
  75. package/dist/errors/base.cjs.map +1 -0
  76. package/dist/errors/base.d.cts +97 -0
  77. package/dist/errors/base.d.cts.map +1 -0
  78. package/dist/errors/base.d.ts +97 -0
  79. package/dist/errors/base.d.ts.map +1 -0
  80. package/dist/errors/base.js +124 -0
  81. package/dist/errors/base.js.map +1 -0
  82. package/dist/errors/cli.cjs +58 -0
  83. package/dist/errors/cli.cjs.map +1 -0
  84. package/dist/errors/cli.d.cts +44 -0
  85. package/dist/errors/cli.d.cts.map +1 -0
  86. package/dist/errors/cli.d.ts +44 -0
  87. package/dist/errors/cli.d.ts.map +1 -0
  88. package/dist/errors/cli.js +52 -0
  89. package/dist/errors/cli.js.map +1 -0
  90. package/dist/errors/configuration.cjs +48 -0
  91. package/dist/errors/configuration.cjs.map +1 -0
  92. package/dist/errors/configuration.d.cts +41 -0
  93. package/dist/errors/configuration.d.cts.map +1 -0
  94. package/dist/errors/configuration.d.ts +41 -0
  95. package/dist/errors/configuration.d.ts.map +1 -0
  96. package/dist/errors/configuration.js +41 -0
  97. package/dist/errors/configuration.js.map +1 -0
  98. package/dist/errors/execution.cjs +65 -0
  99. package/dist/errors/execution.cjs.map +1 -0
  100. package/dist/errors/execution.d.cts +56 -0
  101. package/dist/errors/execution.d.cts.map +1 -0
  102. package/dist/errors/execution.d.ts +56 -0
  103. package/dist/errors/execution.d.ts.map +1 -0
  104. package/dist/errors/execution.js +56 -0
  105. package/dist/errors/execution.js.map +1 -0
  106. package/dist/errors/file.cjs +56 -0
  107. package/dist/errors/file.cjs.map +1 -0
  108. package/dist/errors/file.d.cts +48 -0
  109. package/dist/errors/file.d.cts.map +1 -0
  110. package/dist/errors/file.d.ts +48 -0
  111. package/dist/errors/file.d.ts.map +1 -0
  112. package/dist/errors/file.js +48 -0
  113. package/dist/errors/file.js.map +1 -0
  114. package/dist/errors/index.cjs +59 -0
  115. package/dist/errors/index.cjs.map +1 -0
  116. package/dist/errors/index.d.cts +16 -0
  117. package/dist/errors/index.d.cts.map +1 -0
  118. package/dist/errors/index.d.ts +16 -0
  119. package/dist/errors/index.d.ts.map +1 -0
  120. package/dist/errors/index.js +24 -0
  121. package/dist/errors/index.js.map +1 -0
  122. package/dist/errors/reporter.cjs +38 -0
  123. package/dist/errors/reporter.cjs.map +1 -0
  124. package/dist/errors/reporter.d.cts +32 -0
  125. package/dist/errors/reporter.d.cts.map +1 -0
  126. package/dist/errors/reporter.d.ts +32 -0
  127. package/dist/errors/reporter.d.ts.map +1 -0
  128. package/dist/errors/reporter.js +32 -0
  129. package/dist/errors/reporter.js.map +1 -0
  130. package/dist/errors/storage.cjs +55 -0
  131. package/dist/errors/storage.cjs.map +1 -0
  132. package/dist/errors/storage.d.cts +47 -0
  133. package/dist/errors/storage.d.cts.map +1 -0
  134. package/dist/errors/storage.d.ts +47 -0
  135. package/dist/errors/storage.d.ts.map +1 -0
  136. package/dist/errors/storage.js +47 -0
  137. package/dist/errors/storage.js.map +1 -0
  138. package/dist/errors/validation.cjs +38 -0
  139. package/dist/errors/validation.cjs.map +1 -0
  140. package/dist/errors/validation.d.cts +32 -0
  141. package/dist/errors/validation.d.cts.map +1 -0
  142. package/dist/errors/validation.d.ts +32 -0
  143. package/dist/errors/validation.d.ts.map +1 -0
  144. package/dist/errors/validation.js +32 -0
  145. package/dist/errors/validation.js.map +1 -0
  146. package/dist/index.cjs +3 -4
  147. package/dist/index.cjs.map +1 -1
  148. package/dist/index.d.cts +1 -1
  149. package/dist/index.d.cts.map +1 -1
  150. package/dist/index.d.ts +1 -1
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +2 -2
  153. package/dist/index.js.map +1 -1
  154. package/dist/reporters/csv.cjs +3 -2
  155. package/dist/reporters/csv.cjs.map +1 -1
  156. package/dist/reporters/csv.d.cts.map +1 -1
  157. package/dist/reporters/csv.d.ts.map +1 -1
  158. package/dist/reporters/csv.js +3 -2
  159. package/dist/reporters/csv.js.map +1 -1
  160. package/dist/reporters/human.cjs +1 -1
  161. package/dist/reporters/human.js +1 -1
  162. package/dist/reporters/json.cjs +3 -2
  163. package/dist/reporters/json.cjs.map +1 -1
  164. package/dist/reporters/json.d.cts.map +1 -1
  165. package/dist/reporters/json.d.ts.map +1 -1
  166. package/dist/reporters/json.js +3 -2
  167. package/dist/reporters/json.js.map +1 -1
  168. package/dist/reporters/registry.cjs +3 -2
  169. package/dist/reporters/registry.cjs.map +1 -1
  170. package/dist/reporters/registry.d.cts.map +1 -1
  171. package/dist/reporters/registry.d.ts.map +1 -1
  172. package/dist/reporters/registry.js +3 -2
  173. package/dist/reporters/registry.js.map +1 -1
  174. package/dist/reporters/simple.cjs +1 -1
  175. package/dist/reporters/simple.js +1 -1
  176. package/dist/storage/history.cjs +32 -11
  177. package/dist/storage/history.cjs.map +1 -1
  178. package/dist/storage/history.d.cts.map +1 -1
  179. package/dist/storage/history.d.ts.map +1 -1
  180. package/dist/storage/history.js +32 -11
  181. package/dist/storage/history.js.map +1 -1
  182. package/dist/types/interfaces.d.cts +1 -34
  183. package/dist/types/interfaces.d.cts.map +1 -1
  184. package/dist/types/interfaces.d.ts +1 -34
  185. package/dist/types/interfaces.d.ts.map +1 -1
  186. package/package.json +7 -6
  187. package/src/bootstrap.ts +0 -2
  188. package/src/cli/commands/history.ts +3 -1
  189. package/src/cli/commands/init.ts +14 -4
  190. package/src/cli/commands/run.ts +20 -4
  191. package/src/cli/index.ts +32 -13
  192. package/src/config/manager.ts +12 -2
  193. package/src/constants.ts +60 -0
  194. package/src/core/engine.ts +31 -47
  195. package/src/core/engines/accurate-engine.ts +4 -1
  196. package/src/core/engines/tinybench-engine.ts +12 -5
  197. package/src/core/loader.ts +27 -5
  198. package/src/errors/base.ts +152 -0
  199. package/src/errors/cli.ts +59 -0
  200. package/src/errors/configuration.ts +45 -0
  201. package/src/errors/execution.ts +62 -0
  202. package/src/errors/file.ts +53 -0
  203. package/src/errors/index.ts +71 -0
  204. package/src/errors/reporter.ts +35 -0
  205. package/src/errors/storage.ts +52 -0
  206. package/src/errors/validation.ts +35 -0
  207. package/src/index.ts +3 -3
  208. package/src/reporters/csv.ts +4 -2
  209. package/src/reporters/human.ts +1 -1
  210. package/src/reporters/json.ts +4 -2
  211. package/src/reporters/registry.ts +9 -2
  212. package/src/reporters/simple.ts +1 -1
  213. package/src/storage/history.ts +58 -11
  214. package/src/types/interfaces.ts +0 -43
  215. package/dist/core/error-manager.cjs +0 -303
  216. package/dist/core/error-manager.cjs.map +0 -1
  217. package/dist/core/error-manager.d.cts +0 -77
  218. package/dist/core/error-manager.d.cts.map +0 -1
  219. package/dist/core/error-manager.d.ts +0 -77
  220. package/dist/core/error-manager.d.ts.map +0 -1
  221. package/dist/core/error-manager.js +0 -299
  222. package/dist/core/error-manager.js.map +0 -1
  223. package/src/core/error-manager.ts +0 -372
@@ -0,0 +1,124 @@
1
+ /**
2
+ * ModestBench Custom Error System
3
+ *
4
+ * Base error classes providing structured error handling with error codes,
5
+ * documentation URLs, and consistent error display.
6
+ */
7
+ /**
8
+ * Base URL for error documentation
9
+ */
10
+ const ERROR_DOC_BASE_URL = 'https://boneskull.github.io/modestbench/reference/errors';
11
+ /**
12
+ * Abstract base class for ModestBench aggregate errors
13
+ *
14
+ * Extends AggregateError to support multiple errors with ModestBench error
15
+ * system features.
16
+ */
17
+ export class ModestBenchAggregateError extends AggregateError {
18
+ /**
19
+ * Error name (matches class name)
20
+ */
21
+ name;
22
+ /**
23
+ * Create a new ModestBench aggregate error
24
+ *
25
+ * @param errors - Array of errors that occurred
26
+ * @param message - Human-readable error message
27
+ * @param options - Optional Error options (e.g., cause)
28
+ */
29
+ constructor(errors, message, options) {
30
+ super(errors, message, options);
31
+ this.name = this.constructor.name;
32
+ }
33
+ /**
34
+ * Get the documentation URL for this error
35
+ *
36
+ * Returns a URL to the error reference page with an anchor to the specific
37
+ * error.
38
+ *
39
+ * @returns Documentation URL
40
+ */
41
+ getDocUrl() {
42
+ // Use the error class name as the anchor (e.g., ConfigValidationError -> #configvalidationerror)
43
+ const anchor = this.name.toLowerCase();
44
+ return `${ERROR_DOC_BASE_URL}#${anchor}`;
45
+ }
46
+ /**
47
+ * Convert error to string with code, documentation URL, and nested errors
48
+ *
49
+ * @returns Formatted error string
50
+ */
51
+ toString() {
52
+ let result = `${this.name} [${this.code}]: ${this.message}\n`;
53
+ result += `See: ${this.getDocUrl()}\n`;
54
+ if (this.errors.length > 0) {
55
+ result += `\nContains ${this.errors.length} error(s):\n`;
56
+ this.errors.forEach((err, index) => {
57
+ const errMsg = err instanceof Error ? err.message : String(err);
58
+ result += ` ${index + 1}. ${errMsg}\n`;
59
+ });
60
+ }
61
+ return result;
62
+ }
63
+ }
64
+ /**
65
+ * Abstract base class for all ModestBench errors
66
+ *
67
+ * Provides:
68
+ *
69
+ * - Unique error codes with ERR_MB_ prefix
70
+ * - Documentation URL generation
71
+ * - Consistent error display format
72
+ * - TypeScript type safety
73
+ */
74
+ export class ModestBenchError extends Error {
75
+ /**
76
+ * Error name (matches class name)
77
+ */
78
+ name;
79
+ /**
80
+ * Create a new ModestBench error
81
+ *
82
+ * @param message - Human-readable error message
83
+ * @param options - Optional Error options (e.g., cause)
84
+ */
85
+ constructor(message, options) {
86
+ super(message, options);
87
+ this.name = this.constructor.name;
88
+ }
89
+ /**
90
+ * Get the documentation URL for this error
91
+ *
92
+ * Returns a URL to the error reference page with an anchor to the specific
93
+ * error.
94
+ *
95
+ * @returns Documentation URL
96
+ */
97
+ getDocUrl() {
98
+ // Use the error class name as the anchor (e.g., ConfigValidationError -> #configvalidationerror)
99
+ const anchor = this.name.toLowerCase();
100
+ return `${ERROR_DOC_BASE_URL}#${anchor}`;
101
+ }
102
+ /**
103
+ * Convert error to string with code and documentation URL
104
+ *
105
+ * @returns Formatted error string
106
+ */
107
+ toString() {
108
+ return `${this.name} [${this.code}]: ${this.message}\nSee: ${this.getDocUrl()}`;
109
+ }
110
+ }
111
+ /**
112
+ * Type guard to check if an error is a ModestBench error
113
+ *
114
+ * @param error - The error to check
115
+ * @returns True if the error is a ModestBench error
116
+ */
117
+ export const isModestBenchError = (error) => {
118
+ return (typeof error === 'object' &&
119
+ error !== null &&
120
+ 'code' in error &&
121
+ typeof error.code === 'string' &&
122
+ error.code.startsWith('ERR_MB_'));
123
+ };
124
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,kBAAkB,GACtB,0DAA0D,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,OAAgB,yBAA0B,SAAQ,cAAc;IAOpE;;OAEG;IACsB,IAAI,CAAS;IAEtC;;;;;;OAMG;IACH,YAAY,MAAiB,EAAE,OAAe,EAAE,OAAsB;QACpE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;IAED;;;;;;;OAOG;IACH,SAAS;QACP,iGAAiG;QACjG,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QACvC,OAAO,GAAG,kBAAkB,IAAI,MAAM,EAAE,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACM,QAAQ;QACf,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,OAAO,IAAI,CAAC;QAC9D,MAAM,IAAI,QAAQ,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC;QAEvC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,cAAc,IAAI,CAAC,MAAM,CAAC,MAAM,cAAc,CAAC;YACzD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;gBACjC,MAAM,MAAM,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAChE,MAAM,IAAI,KAAK,KAAK,GAAG,CAAC,KAAK,MAAM,IAAI,CAAC;YAC1C,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAgB,gBAAiB,SAAQ,KAAK;IAOlD;;OAEG;IACsB,IAAI,CAAS;IAEtC;;;;;OAKG;IACH,YAAY,OAAe,EAAE,OAAsB;QACjD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;IAED;;;;;;;OAOG;IACH,SAAS;QACP,iGAAiG;QACjG,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QACvC,OAAO,GAAG,kBAAkB,IAAI,MAAM,EAAE,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACM,QAAQ;QACf,OAAO,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,OAAO,UAAU,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;IAClF,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,KAAc,EACa,EAAE;IAC7B,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,MAAM,IAAI,KAAK;QACf,OAAQ,KAA2B,CAAC,IAAI,KAAK,QAAQ;QACpD,KAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CACvD,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * CLI-related errors
4
+ *
5
+ * Errors that occur during command-line interface operations.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.UnknownError = exports.InvalidDateFormatError = exports.InvalidArgumentError = void 0;
9
+ const base_js_1 = require("./base.cjs");
10
+ /**
11
+ * Invalid CLI argument
12
+ *
13
+ * Thrown when a CLI argument is invalid or cannot be parsed.
14
+ */
15
+ class InvalidArgumentError extends base_js_1.ModestBenchError {
16
+ code = 'ERR_MB_CLI_INVALID_ARGUMENT';
17
+ }
18
+ exports.InvalidArgumentError = InvalidArgumentError;
19
+ /**
20
+ * Invalid date format
21
+ *
22
+ * Thrown when a date string cannot be parsed into a valid date.
23
+ */
24
+ class InvalidDateFormatError extends base_js_1.ModestBenchError {
25
+ code = 'ERR_MB_CLI_INVALID_DATE_FORMAT';
26
+ }
27
+ exports.InvalidDateFormatError = InvalidDateFormatError;
28
+ /**
29
+ * Unknown error
30
+ *
31
+ * Thrown at the CLI boundary to wrap unexpected errors that are not ModestBench
32
+ * errors. This ensures all errors have proper structure and documentation
33
+ * links.
34
+ */
35
+ class UnknownError extends base_js_1.ModestBenchError {
36
+ code = 'ERR_MB_UNKNOWN';
37
+ /**
38
+ * Create a new UnknownError wrapping an unexpected error
39
+ *
40
+ * @param message - The error message (typically from the original error)
41
+ * @param options - Error options with the original error as the cause
42
+ */
43
+ constructor(message, options) {
44
+ super(message, options);
45
+ }
46
+ /**
47
+ * Override toString to show full details of the wrapped error
48
+ */
49
+ toString() {
50
+ let result = super.toString();
51
+ if (this.cause instanceof Error && this.cause.stack) {
52
+ result += '\n\nOriginal error:\n' + this.cause.stack;
53
+ }
54
+ return result;
55
+ }
56
+ }
57
+ exports.UnknownError = UnknownError;
58
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/errors/cli.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,wCAA6C;AAE7C;;;;GAIG;AACH,MAAa,oBAAqB,SAAQ,0BAAgB;IAC/C,IAAI,GAAG,6BAA6B,CAAC;CAC/C;AAFD,oDAEC;AAED;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,0BAAgB;IACjD,IAAI,GAAG,gCAAgC,CAAC;CAClD;AAFD,wDAEC;AAED;;;;;;GAMG;AACH,MAAa,YAAa,SAAQ,0BAAgB;IACvC,IAAI,GAAG,gBAAgB,CAAC;IAEjC;;;;;OAKG;IACH,YAAY,OAAe,EAAE,OAAqB;QAChD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED;;OAEG;IACM,QAAQ;QACf,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAE9B,IAAI,IAAI,CAAC,KAAK,YAAY,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACpD,MAAM,IAAI,uBAAuB,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QACvD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAzBD,oCAyBC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * CLI-related errors
3
+ *
4
+ * Errors that occur during command-line interface operations.
5
+ */
6
+ import { ModestBenchError } from "./base.cjs";
7
+ /**
8
+ * Invalid CLI argument
9
+ *
10
+ * Thrown when a CLI argument is invalid or cannot be parsed.
11
+ */
12
+ export declare class InvalidArgumentError extends ModestBenchError {
13
+ readonly code = "ERR_MB_CLI_INVALID_ARGUMENT";
14
+ }
15
+ /**
16
+ * Invalid date format
17
+ *
18
+ * Thrown when a date string cannot be parsed into a valid date.
19
+ */
20
+ export declare class InvalidDateFormatError extends ModestBenchError {
21
+ readonly code = "ERR_MB_CLI_INVALID_DATE_FORMAT";
22
+ }
23
+ /**
24
+ * Unknown error
25
+ *
26
+ * Thrown at the CLI boundary to wrap unexpected errors that are not ModestBench
27
+ * errors. This ensures all errors have proper structure and documentation
28
+ * links.
29
+ */
30
+ export declare class UnknownError extends ModestBenchError {
31
+ readonly code = "ERR_MB_UNKNOWN";
32
+ /**
33
+ * Create a new UnknownError wrapping an unexpected error
34
+ *
35
+ * @param message - The error message (typically from the original error)
36
+ * @param options - Error options with the original error as the cause
37
+ */
38
+ constructor(message: string, options: ErrorOptions);
39
+ /**
40
+ * Override toString to show full details of the wrapped error
41
+ */
42
+ toString(): string;
43
+ }
44
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/errors/cli.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,mBAAkB;AAE7C;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,IAAI,iCAAiC;CAC/C;AAED;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,gBAAgB;IAC1D,QAAQ,CAAC,IAAI,oCAAoC;CAClD;AAED;;;;;;GAMG;AACH,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,QAAQ,CAAC,IAAI,oBAAoB;IAEjC;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;IAIlD;;OAEG;IACM,QAAQ,IAAI,MAAM;CAS5B"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * CLI-related errors
3
+ *
4
+ * Errors that occur during command-line interface operations.
5
+ */
6
+ import { ModestBenchError } from "./base.js";
7
+ /**
8
+ * Invalid CLI argument
9
+ *
10
+ * Thrown when a CLI argument is invalid or cannot be parsed.
11
+ */
12
+ export declare class InvalidArgumentError extends ModestBenchError {
13
+ readonly code = "ERR_MB_CLI_INVALID_ARGUMENT";
14
+ }
15
+ /**
16
+ * Invalid date format
17
+ *
18
+ * Thrown when a date string cannot be parsed into a valid date.
19
+ */
20
+ export declare class InvalidDateFormatError extends ModestBenchError {
21
+ readonly code = "ERR_MB_CLI_INVALID_DATE_FORMAT";
22
+ }
23
+ /**
24
+ * Unknown error
25
+ *
26
+ * Thrown at the CLI boundary to wrap unexpected errors that are not ModestBench
27
+ * errors. This ensures all errors have proper structure and documentation
28
+ * links.
29
+ */
30
+ export declare class UnknownError extends ModestBenchError {
31
+ readonly code = "ERR_MB_UNKNOWN";
32
+ /**
33
+ * Create a new UnknownError wrapping an unexpected error
34
+ *
35
+ * @param message - The error message (typically from the original error)
36
+ * @param options - Error options with the original error as the cause
37
+ */
38
+ constructor(message: string, options: ErrorOptions);
39
+ /**
40
+ * Override toString to show full details of the wrapped error
41
+ */
42
+ toString(): string;
43
+ }
44
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/errors/cli.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB;AAE7C;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,IAAI,iCAAiC;CAC/C;AAED;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,gBAAgB;IAC1D,QAAQ,CAAC,IAAI,oCAAoC;CAClD;AAED;;;;;;GAMG;AACH,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,QAAQ,CAAC,IAAI,oBAAoB;IAEjC;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;IAIlD;;OAEG;IACM,QAAQ,IAAI,MAAM;CAS5B"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * CLI-related errors
3
+ *
4
+ * Errors that occur during command-line interface operations.
5
+ */
6
+ import { ModestBenchError } from "./base.js";
7
+ /**
8
+ * Invalid CLI argument
9
+ *
10
+ * Thrown when a CLI argument is invalid or cannot be parsed.
11
+ */
12
+ export class InvalidArgumentError extends ModestBenchError {
13
+ code = 'ERR_MB_CLI_INVALID_ARGUMENT';
14
+ }
15
+ /**
16
+ * Invalid date format
17
+ *
18
+ * Thrown when a date string cannot be parsed into a valid date.
19
+ */
20
+ export class InvalidDateFormatError extends ModestBenchError {
21
+ code = 'ERR_MB_CLI_INVALID_DATE_FORMAT';
22
+ }
23
+ /**
24
+ * Unknown error
25
+ *
26
+ * Thrown at the CLI boundary to wrap unexpected errors that are not ModestBench
27
+ * errors. This ensures all errors have proper structure and documentation
28
+ * links.
29
+ */
30
+ export class UnknownError extends ModestBenchError {
31
+ code = 'ERR_MB_UNKNOWN';
32
+ /**
33
+ * Create a new UnknownError wrapping an unexpected error
34
+ *
35
+ * @param message - The error message (typically from the original error)
36
+ * @param options - Error options with the original error as the cause
37
+ */
38
+ constructor(message, options) {
39
+ super(message, options);
40
+ }
41
+ /**
42
+ * Override toString to show full details of the wrapped error
43
+ */
44
+ toString() {
45
+ let result = super.toString();
46
+ if (this.cause instanceof Error && this.cause.stack) {
47
+ result += '\n\nOriginal error:\n' + this.cause.stack;
48
+ }
49
+ return result;
50
+ }
51
+ }
52
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/errors/cli.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB;AAE7C;;;;GAIG;AACH,MAAM,OAAO,oBAAqB,SAAQ,gBAAgB;IAC/C,IAAI,GAAG,6BAA6B,CAAC;CAC/C;AAED;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,gBAAgB;IACjD,IAAI,GAAG,gCAAgC,CAAC;CAClD;AAED;;;;;;GAMG;AACH,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACvC,IAAI,GAAG,gBAAgB,CAAC;IAEjC;;;;;OAKG;IACH,YAAY,OAAe,EAAE,OAAqB;QAChD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED;;OAEG;IACM,QAAQ;QACf,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAE9B,IAAI,IAAI,CAAC,KAAK,YAAY,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACpD,MAAM,IAAI,uBAAuB,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QACvD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * Configuration-related errors
4
+ *
5
+ * Errors that occur during configuration file loading, parsing, and validation.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.UnsupportedConfigFormatError = exports.ConfigValidationError = exports.ConfigNotFoundError = exports.ConfigLoadError = void 0;
9
+ const base_js_1 = require("./base.cjs");
10
+ /**
11
+ * Failed to load configuration
12
+ *
13
+ * Thrown when configuration loading fails for reasons other than file not found
14
+ * (e.g., parse errors, module loading errors).
15
+ */
16
+ class ConfigLoadError extends base_js_1.ModestBenchError {
17
+ code = 'ERR_MB_CONFIG_LOAD_FAILED';
18
+ }
19
+ exports.ConfigLoadError = ConfigLoadError;
20
+ /**
21
+ * Configuration file not found
22
+ *
23
+ * Thrown when a specified configuration file cannot be found.
24
+ */
25
+ class ConfigNotFoundError extends base_js_1.ModestBenchError {
26
+ code = 'ERR_MB_CONFIG_NOT_FOUND';
27
+ }
28
+ exports.ConfigNotFoundError = ConfigNotFoundError;
29
+ /**
30
+ * Configuration validation failed
31
+ *
32
+ * Thrown when a configuration file or configuration options fail schema
33
+ * validation.
34
+ */
35
+ class ConfigValidationError extends base_js_1.ModestBenchError {
36
+ code = 'ERR_MB_CONFIG_VALIDATION_FAILED';
37
+ }
38
+ exports.ConfigValidationError = ConfigValidationError;
39
+ /**
40
+ * Unsupported configuration format
41
+ *
42
+ * Thrown when attempting to use an unsupported configuration file format.
43
+ */
44
+ class UnsupportedConfigFormatError extends base_js_1.ModestBenchError {
45
+ code = 'ERR_MB_CONFIG_UNSUPPORTED_FORMAT';
46
+ }
47
+ exports.UnsupportedConfigFormatError = UnsupportedConfigFormatError;
48
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/errors/configuration.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,wCAA6C;AAE7C;;;;;GAKG;AACH,MAAa,eAAgB,SAAQ,0BAAgB;IAC1C,IAAI,GAAG,2BAA2B,CAAC;CAC7C;AAFD,0CAEC;AAED;;;;GAIG;AACH,MAAa,mBAAoB,SAAQ,0BAAgB;IAC9C,IAAI,GAAG,yBAAyB,CAAC;CAC3C;AAFD,kDAEC;AAED;;;;;GAKG;AACH,MAAa,qBAAsB,SAAQ,0BAAgB;IAChD,IAAI,GAAG,iCAAiC,CAAC;CACnD;AAFD,sDAEC;AAED;;;;GAIG;AACH,MAAa,4BAA6B,SAAQ,0BAAgB;IACvD,IAAI,GAAG,kCAAkC,CAAC;CACpD;AAFD,oEAEC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Configuration-related errors
3
+ *
4
+ * Errors that occur during configuration file loading, parsing, and validation.
5
+ */
6
+ import { ModestBenchError } from "./base.cjs";
7
+ /**
8
+ * Failed to load configuration
9
+ *
10
+ * Thrown when configuration loading fails for reasons other than file not found
11
+ * (e.g., parse errors, module loading errors).
12
+ */
13
+ export declare class ConfigLoadError extends ModestBenchError {
14
+ readonly code = "ERR_MB_CONFIG_LOAD_FAILED";
15
+ }
16
+ /**
17
+ * Configuration file not found
18
+ *
19
+ * Thrown when a specified configuration file cannot be found.
20
+ */
21
+ export declare class ConfigNotFoundError extends ModestBenchError {
22
+ readonly code = "ERR_MB_CONFIG_NOT_FOUND";
23
+ }
24
+ /**
25
+ * Configuration validation failed
26
+ *
27
+ * Thrown when a configuration file or configuration options fail schema
28
+ * validation.
29
+ */
30
+ export declare class ConfigValidationError extends ModestBenchError {
31
+ readonly code = "ERR_MB_CONFIG_VALIDATION_FAILED";
32
+ }
33
+ /**
34
+ * Unsupported configuration format
35
+ *
36
+ * Thrown when attempting to use an unsupported configuration file format.
37
+ */
38
+ export declare class UnsupportedConfigFormatError extends ModestBenchError {
39
+ readonly code = "ERR_MB_CONFIG_UNSUPPORTED_FORMAT";
40
+ }
41
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/errors/configuration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,mBAAkB;AAE7C;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,gBAAgB;IACnD,QAAQ,CAAC,IAAI,+BAA+B;CAC7C;AAED;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,IAAI,6BAA6B;CAC3C;AAED;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,IAAI,qCAAqC;CACnD;AAED;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,gBAAgB;IAChE,QAAQ,CAAC,IAAI,sCAAsC;CACpD"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Configuration-related errors
3
+ *
4
+ * Errors that occur during configuration file loading, parsing, and validation.
5
+ */
6
+ import { ModestBenchError } from "./base.js";
7
+ /**
8
+ * Failed to load configuration
9
+ *
10
+ * Thrown when configuration loading fails for reasons other than file not found
11
+ * (e.g., parse errors, module loading errors).
12
+ */
13
+ export declare class ConfigLoadError extends ModestBenchError {
14
+ readonly code = "ERR_MB_CONFIG_LOAD_FAILED";
15
+ }
16
+ /**
17
+ * Configuration file not found
18
+ *
19
+ * Thrown when a specified configuration file cannot be found.
20
+ */
21
+ export declare class ConfigNotFoundError extends ModestBenchError {
22
+ readonly code = "ERR_MB_CONFIG_NOT_FOUND";
23
+ }
24
+ /**
25
+ * Configuration validation failed
26
+ *
27
+ * Thrown when a configuration file or configuration options fail schema
28
+ * validation.
29
+ */
30
+ export declare class ConfigValidationError extends ModestBenchError {
31
+ readonly code = "ERR_MB_CONFIG_VALIDATION_FAILED";
32
+ }
33
+ /**
34
+ * Unsupported configuration format
35
+ *
36
+ * Thrown when attempting to use an unsupported configuration file format.
37
+ */
38
+ export declare class UnsupportedConfigFormatError extends ModestBenchError {
39
+ readonly code = "ERR_MB_CONFIG_UNSUPPORTED_FORMAT";
40
+ }
41
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/errors/configuration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB;AAE7C;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,gBAAgB;IACnD,QAAQ,CAAC,IAAI,+BAA+B;CAC7C;AAED;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,IAAI,6BAA6B;CAC3C;AAED;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,IAAI,qCAAqC;CACnD;AAED;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,gBAAgB;IAChE,QAAQ,CAAC,IAAI,sCAAsC;CACpD"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Configuration-related errors
3
+ *
4
+ * Errors that occur during configuration file loading, parsing, and validation.
5
+ */
6
+ import { ModestBenchError } from "./base.js";
7
+ /**
8
+ * Failed to load configuration
9
+ *
10
+ * Thrown when configuration loading fails for reasons other than file not found
11
+ * (e.g., parse errors, module loading errors).
12
+ */
13
+ export class ConfigLoadError extends ModestBenchError {
14
+ code = 'ERR_MB_CONFIG_LOAD_FAILED';
15
+ }
16
+ /**
17
+ * Configuration file not found
18
+ *
19
+ * Thrown when a specified configuration file cannot be found.
20
+ */
21
+ export class ConfigNotFoundError extends ModestBenchError {
22
+ code = 'ERR_MB_CONFIG_NOT_FOUND';
23
+ }
24
+ /**
25
+ * Configuration validation failed
26
+ *
27
+ * Thrown when a configuration file or configuration options fail schema
28
+ * validation.
29
+ */
30
+ export class ConfigValidationError extends ModestBenchError {
31
+ code = 'ERR_MB_CONFIG_VALIDATION_FAILED';
32
+ }
33
+ /**
34
+ * Unsupported configuration format
35
+ *
36
+ * Thrown when attempting to use an unsupported configuration file format.
37
+ */
38
+ export class UnsupportedConfigFormatError extends ModestBenchError {
39
+ code = 'ERR_MB_CONFIG_UNSUPPORTED_FORMAT';
40
+ }
41
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/errors/configuration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB;AAE7C;;;;;GAKG;AACH,MAAM,OAAO,eAAgB,SAAQ,gBAAgB;IAC1C,IAAI,GAAG,2BAA2B,CAAC;CAC7C;AAED;;;;GAIG;AACH,MAAM,OAAO,mBAAoB,SAAQ,gBAAgB;IAC9C,IAAI,GAAG,yBAAyB,CAAC;CAC3C;AAED;;;;;GAKG;AACH,MAAM,OAAO,qBAAsB,SAAQ,gBAAgB;IAChD,IAAI,GAAG,iCAAiC,CAAC;CACnD;AAED;;;;GAIG;AACH,MAAM,OAAO,4BAA6B,SAAQ,gBAAgB;IACvD,IAAI,GAAG,kCAAkC,CAAC;CACpD"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /**
3
+ * Execution-related errors
4
+ *
5
+ * Errors that occur during benchmark execution, setup, and teardown.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TimeoutError = exports.TeardownError = exports.TaskExecutionError = exports.SetupError = exports.OperationTooFastError = exports.BenchmarkExecutionError = void 0;
9
+ const base_js_1 = require("./base.cjs");
10
+ /**
11
+ * Benchmark execution failed
12
+ *
13
+ * Thrown when overall benchmark execution fails.
14
+ */
15
+ class BenchmarkExecutionError extends base_js_1.ModestBenchError {
16
+ code = 'ERR_MB_EXECUTION_BENCHMARK_FAILED';
17
+ }
18
+ exports.BenchmarkExecutionError = BenchmarkExecutionError;
19
+ /**
20
+ * Operation too fast to measure
21
+ *
22
+ * Thrown when a benchmark operation executes so quickly that it cannot be
23
+ * reliably measured (typically < 1ns per operation).
24
+ */
25
+ class OperationTooFastError extends base_js_1.ModestBenchError {
26
+ code = 'ERR_MB_EXECUTION_TOO_FAST';
27
+ }
28
+ exports.OperationTooFastError = OperationTooFastError;
29
+ /**
30
+ * Setup function failed
31
+ *
32
+ * Thrown when a benchmark setup function fails.
33
+ */
34
+ class SetupError extends base_js_1.ModestBenchError {
35
+ code = 'ERR_MB_EXECUTION_SETUP_FAILED';
36
+ }
37
+ exports.SetupError = SetupError;
38
+ /**
39
+ * Task execution failed
40
+ *
41
+ * Thrown when a specific benchmark task fails during execution.
42
+ */
43
+ class TaskExecutionError extends base_js_1.ModestBenchError {
44
+ code = 'ERR_MB_EXECUTION_TASK_FAILED';
45
+ }
46
+ exports.TaskExecutionError = TaskExecutionError;
47
+ /**
48
+ * Teardown function failed
49
+ *
50
+ * Thrown when a benchmark teardown function fails.
51
+ */
52
+ class TeardownError extends base_js_1.ModestBenchError {
53
+ code = 'ERR_MB_EXECUTION_TEARDOWN_FAILED';
54
+ }
55
+ exports.TeardownError = TeardownError;
56
+ /**
57
+ * Execution timeout exceeded
58
+ *
59
+ * Thrown when a benchmark operation exceeds the configured timeout.
60
+ */
61
+ class TimeoutError extends base_js_1.ModestBenchError {
62
+ code = 'ERR_MB_EXECUTION_TIMEOUT';
63
+ }
64
+ exports.TimeoutError = TimeoutError;
65
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.js","sourceRoot":"","sources":["../../src/errors/execution.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,wCAA6C;AAE7C;;;;GAIG;AACH,MAAa,uBAAwB,SAAQ,0BAAgB;IAClD,IAAI,GAAG,mCAAmC,CAAC;CACrD;AAFD,0DAEC;AAED;;;;;GAKG;AACH,MAAa,qBAAsB,SAAQ,0BAAgB;IAChD,IAAI,GAAG,2BAA2B,CAAC;CAC7C;AAFD,sDAEC;AAED;;;;GAIG;AACH,MAAa,UAAW,SAAQ,0BAAgB;IACrC,IAAI,GAAG,+BAA+B,CAAC;CACjD;AAFD,gCAEC;AAED;;;;GAIG;AACH,MAAa,kBAAmB,SAAQ,0BAAgB;IAC7C,IAAI,GAAG,8BAA8B,CAAC;CAChD;AAFD,gDAEC;AAED;;;;GAIG;AACH,MAAa,aAAc,SAAQ,0BAAgB;IACxC,IAAI,GAAG,kCAAkC,CAAC;CACpD;AAFD,sCAEC;AAED;;;;GAIG;AACH,MAAa,YAAa,SAAQ,0BAAgB;IACvC,IAAI,GAAG,0BAA0B,CAAC;CAC5C;AAFD,oCAEC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Execution-related errors
3
+ *
4
+ * Errors that occur during benchmark execution, setup, and teardown.
5
+ */
6
+ import { ModestBenchError } from "./base.cjs";
7
+ /**
8
+ * Benchmark execution failed
9
+ *
10
+ * Thrown when overall benchmark execution fails.
11
+ */
12
+ export declare class BenchmarkExecutionError extends ModestBenchError {
13
+ readonly code = "ERR_MB_EXECUTION_BENCHMARK_FAILED";
14
+ }
15
+ /**
16
+ * Operation too fast to measure
17
+ *
18
+ * Thrown when a benchmark operation executes so quickly that it cannot be
19
+ * reliably measured (typically < 1ns per operation).
20
+ */
21
+ export declare class OperationTooFastError extends ModestBenchError {
22
+ readonly code = "ERR_MB_EXECUTION_TOO_FAST";
23
+ }
24
+ /**
25
+ * Setup function failed
26
+ *
27
+ * Thrown when a benchmark setup function fails.
28
+ */
29
+ export declare class SetupError extends ModestBenchError {
30
+ readonly code = "ERR_MB_EXECUTION_SETUP_FAILED";
31
+ }
32
+ /**
33
+ * Task execution failed
34
+ *
35
+ * Thrown when a specific benchmark task fails during execution.
36
+ */
37
+ export declare class TaskExecutionError extends ModestBenchError {
38
+ readonly code = "ERR_MB_EXECUTION_TASK_FAILED";
39
+ }
40
+ /**
41
+ * Teardown function failed
42
+ *
43
+ * Thrown when a benchmark teardown function fails.
44
+ */
45
+ export declare class TeardownError extends ModestBenchError {
46
+ readonly code = "ERR_MB_EXECUTION_TEARDOWN_FAILED";
47
+ }
48
+ /**
49
+ * Execution timeout exceeded
50
+ *
51
+ * Thrown when a benchmark operation exceeds the configured timeout.
52
+ */
53
+ export declare class TimeoutError extends ModestBenchError {
54
+ readonly code = "ERR_MB_EXECUTION_TIMEOUT";
55
+ }
56
+ //# sourceMappingURL=execution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/errors/execution.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,mBAAkB;AAE7C;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,QAAQ,CAAC,IAAI,uCAAuC;CACrD;AAED;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,IAAI,+BAA+B;CAC7C;AAED;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,gBAAgB;IAC9C,QAAQ,CAAC,IAAI,mCAAmC;CACjD;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,gBAAgB;IACtD,QAAQ,CAAC,IAAI,kCAAkC;CAChD;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,gBAAgB;IACjD,QAAQ,CAAC,IAAI,sCAAsC;CACpD;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,QAAQ,CAAC,IAAI,8BAA8B;CAC5C"}