@od-oneapp/config 2026.2.2001-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (697) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +830 -0
  3. package/eslint/__tests__/config-structure.test.mjs +61 -0
  4. package/eslint/base.mjs +350 -0
  5. package/eslint/expo.mjs +97 -0
  6. package/eslint/next-test.mjs +43 -0
  7. package/eslint/next.mjs +74 -0
  8. package/eslint/node.mjs +106 -0
  9. package/eslint/react.mjs +313 -0
  10. package/eslint/rules/__tests__/no-used-underscore-vars.test.mjs +147 -0
  11. package/eslint/rules/no-used-underscore-vars.mjs +297 -0
  12. package/eslint/shared/__tests__/common-ignores.test.mjs +19 -0
  13. package/eslint/shared/common-ignores.mjs +172 -0
  14. package/eslint/shared/disabled-type-aware-rules.mjs +35 -0
  15. package/eslint/shared/file-patterns.mjs +124 -0
  16. package/eslint/shared/node-globals.mjs +50 -0
  17. package/eslint/storybook.mjs +81 -0
  18. package/eslint/test.mjs +298 -0
  19. package/eslint/utils/__tests__/create-validated-config.test.mjs +42 -0
  20. package/eslint/utils/__tests__/filter-ts-eslint-configs.test.mjs +57 -0
  21. package/eslint/utils/__tests__/validate-config.test.mjs +104 -0
  22. package/eslint/utils/create-validated-config.mjs +69 -0
  23. package/eslint/utils/filter-ts-eslint-configs.mjs +129 -0
  24. package/eslint/utils/validate-config.mjs +88 -0
  25. package/package.json +37 -0
  26. package/prettier/index.mjs +15 -0
  27. package/stylelint/index.mjs +129 -0
  28. package/tsdown/README.md +287 -0
  29. package/tsdown/base.mjs +77 -0
  30. package/tsdown/browser.mjs +34 -0
  31. package/tsdown/client.mjs +32 -0
  32. package/tsdown/dist.mjs +179 -0
  33. package/tsdown/index.mjs +53 -0
  34. package/tsdown/node.mjs +39 -0
  35. package/tsdown/react.mjs +30 -0
  36. package/typescript/base.json +52 -0
  37. package/typescript/dist/__tests__/browser-stub.test.d.ts +2 -0
  38. package/typescript/dist/__tests__/browser-stub.test.d.ts.map +1 -0
  39. package/typescript/dist/__tests__/browser-stub.test.js +40 -0
  40. package/typescript/dist/__tests__/browser-stub.test.js.map +1 -0
  41. package/typescript/dist/__tests__/runtime/lifecycle.test.d.ts +2 -0
  42. package/typescript/dist/__tests__/runtime/lifecycle.test.d.ts.map +1 -0
  43. package/typescript/dist/__tests__/runtime/lifecycle.test.js +149 -0
  44. package/typescript/dist/__tests__/runtime/lifecycle.test.js.map +1 -0
  45. package/typescript/dist/__tests__/server/abort-support.test.d.ts +2 -0
  46. package/typescript/dist/__tests__/server/abort-support.test.d.ts.map +1 -0
  47. package/typescript/dist/__tests__/server/abort-support.test.js +333 -0
  48. package/typescript/dist/__tests__/server/abort-support.test.js.map +1 -0
  49. package/typescript/dist/__tests__/server/batch-processor.test.d.ts +2 -0
  50. package/typescript/dist/__tests__/server/batch-processor.test.d.ts.map +1 -0
  51. package/typescript/dist/__tests__/server/batch-processor.test.js +173 -0
  52. package/typescript/dist/__tests__/server/batch-processor.test.js.map +1 -0
  53. package/typescript/dist/__tests__/server/cache.test.d.ts +2 -0
  54. package/typescript/dist/__tests__/server/cache.test.d.ts.map +1 -0
  55. package/typescript/dist/__tests__/server/cache.test.js +343 -0
  56. package/typescript/dist/__tests__/server/cache.test.js.map +1 -0
  57. package/typescript/dist/__tests__/server/circular-deps.test.d.ts +2 -0
  58. package/typescript/dist/__tests__/server/circular-deps.test.d.ts.map +1 -0
  59. package/typescript/dist/__tests__/server/circular-deps.test.js +412 -0
  60. package/typescript/dist/__tests__/server/circular-deps.test.js.map +1 -0
  61. package/typescript/dist/__tests__/server/claude-code-env.test.d.ts +2 -0
  62. package/typescript/dist/__tests__/server/claude-code-env.test.d.ts.map +1 -0
  63. package/typescript/dist/__tests__/server/claude-code-env.test.js +387 -0
  64. package/typescript/dist/__tests__/server/claude-code-env.test.js.map +1 -0
  65. package/typescript/dist/__tests__/server/code-analysis-tool.test.d.ts +2 -0
  66. package/typescript/dist/__tests__/server/code-analysis-tool.test.d.ts.map +1 -0
  67. package/typescript/dist/__tests__/server/code-analysis-tool.test.js +430 -0
  68. package/typescript/dist/__tests__/server/code-analysis-tool.test.js.map +1 -0
  69. package/typescript/dist/__tests__/server/code-transformation.test.d.ts +2 -0
  70. package/typescript/dist/__tests__/server/code-transformation.test.d.ts.map +1 -0
  71. package/typescript/dist/__tests__/server/code-transformation.test.js +173 -0
  72. package/typescript/dist/__tests__/server/code-transformation.test.js.map +1 -0
  73. package/typescript/dist/__tests__/server/concurrency.test.d.ts +2 -0
  74. package/typescript/dist/__tests__/server/concurrency.test.d.ts.map +1 -0
  75. package/typescript/dist/__tests__/server/concurrency.test.js +31 -0
  76. package/typescript/dist/__tests__/server/concurrency.test.js.map +1 -0
  77. package/typescript/dist/__tests__/server/context.test.d.ts +2 -0
  78. package/typescript/dist/__tests__/server/context.test.d.ts.map +1 -0
  79. package/typescript/dist/__tests__/server/context.test.js +483 -0
  80. package/typescript/dist/__tests__/server/context.test.js.map +1 -0
  81. package/typescript/dist/__tests__/server/error-handling.test.d.ts +2 -0
  82. package/typescript/dist/__tests__/server/error-handling.test.d.ts.map +1 -0
  83. package/typescript/dist/__tests__/server/error-handling.test.js +68 -0
  84. package/typescript/dist/__tests__/server/error-handling.test.js.map +1 -0
  85. package/typescript/dist/__tests__/server/error-utils.test.d.ts +2 -0
  86. package/typescript/dist/__tests__/server/error-utils.test.d.ts.map +1 -0
  87. package/typescript/dist/__tests__/server/error-utils.test.js +268 -0
  88. package/typescript/dist/__tests__/server/error-utils.test.js.map +1 -0
  89. package/typescript/dist/__tests__/server/files.test.d.ts +2 -0
  90. package/typescript/dist/__tests__/server/files.test.d.ts.map +1 -0
  91. package/typescript/dist/__tests__/server/files.test.js +160 -0
  92. package/typescript/dist/__tests__/server/files.test.js.map +1 -0
  93. package/typescript/dist/__tests__/server/logger.test.d.ts +2 -0
  94. package/typescript/dist/__tests__/server/logger.test.d.ts.map +1 -0
  95. package/typescript/dist/__tests__/server/logger.test.js +412 -0
  96. package/typescript/dist/__tests__/server/logger.test.js.map +1 -0
  97. package/typescript/dist/__tests__/server/path-manager.test.d.ts +2 -0
  98. package/typescript/dist/__tests__/server/path-manager.test.d.ts.map +1 -0
  99. package/typescript/dist/__tests__/server/path-manager.test.js +406 -0
  100. package/typescript/dist/__tests__/server/path-manager.test.js.map +1 -0
  101. package/typescript/dist/__tests__/server/retry-operations.test.d.ts +2 -0
  102. package/typescript/dist/__tests__/server/retry-operations.test.d.ts.map +1 -0
  103. package/typescript/dist/__tests__/server/retry-operations.test.js +119 -0
  104. package/typescript/dist/__tests__/server/retry-operations.test.js.map +1 -0
  105. package/typescript/dist/__tests__/server/retry.test.d.ts +2 -0
  106. package/typescript/dist/__tests__/server/retry.test.d.ts.map +1 -0
  107. package/typescript/dist/__tests__/server/retry.test.js +70 -0
  108. package/typescript/dist/__tests__/server/retry.test.js.map +1 -0
  109. package/typescript/dist/__tests__/server/retryable.test.d.ts +2 -0
  110. package/typescript/dist/__tests__/server/retryable.test.d.ts.map +1 -0
  111. package/typescript/dist/__tests__/server/retryable.test.js +23 -0
  112. package/typescript/dist/__tests__/server/retryable.test.js.map +1 -0
  113. package/typescript/dist/__tests__/server/scheduler.test.d.ts +2 -0
  114. package/typescript/dist/__tests__/server/scheduler.test.d.ts.map +1 -0
  115. package/typescript/dist/__tests__/server/scheduler.test.js +14 -0
  116. package/typescript/dist/__tests__/server/scheduler.test.js.map +1 -0
  117. package/typescript/dist/__tests__/server/security.test.d.ts +2 -0
  118. package/typescript/dist/__tests__/server/security.test.d.ts.map +1 -0
  119. package/typescript/dist/__tests__/server/security.test.js +286 -0
  120. package/typescript/dist/__tests__/server/security.test.js.map +1 -0
  121. package/typescript/dist/__tests__/server/session-management.test.d.ts +2 -0
  122. package/typescript/dist/__tests__/server/session-management.test.d.ts.map +1 -0
  123. package/typescript/dist/__tests__/server/session-management.test.js +399 -0
  124. package/typescript/dist/__tests__/server/session-management.test.js.map +1 -0
  125. package/typescript/dist/__tests__/server/session-recovery.test.d.ts +2 -0
  126. package/typescript/dist/__tests__/server/session-recovery.test.d.ts.map +1 -0
  127. package/typescript/dist/__tests__/server/session-recovery.test.js +417 -0
  128. package/typescript/dist/__tests__/server/session-recovery.test.js.map +1 -0
  129. package/typescript/dist/__tests__/server/session.test.d.ts +2 -0
  130. package/typescript/dist/__tests__/server/session.test.d.ts.map +1 -0
  131. package/typescript/dist/__tests__/server/session.test.js +102 -0
  132. package/typescript/dist/__tests__/server/session.test.js.map +1 -0
  133. package/typescript/dist/__tests__/server/simple-tools.test.d.ts +2 -0
  134. package/typescript/dist/__tests__/server/simple-tools.test.d.ts.map +1 -0
  135. package/typescript/dist/__tests__/server/simple-tools.test.js +56 -0
  136. package/typescript/dist/__tests__/server/simple-tools.test.js.map +1 -0
  137. package/typescript/dist/__tests__/server/streaming-utilities.test.d.ts +2 -0
  138. package/typescript/dist/__tests__/server/streaming-utilities.test.d.ts.map +1 -0
  139. package/typescript/dist/__tests__/server/streaming-utilities.test.js +338 -0
  140. package/typescript/dist/__tests__/server/streaming-utilities.test.js.map +1 -0
  141. package/typescript/dist/__tests__/server/streams.test.d.ts +2 -0
  142. package/typescript/dist/__tests__/server/streams.test.d.ts.map +1 -0
  143. package/typescript/dist/__tests__/server/streams.test.js +282 -0
  144. package/typescript/dist/__tests__/server/streams.test.js.map +1 -0
  145. package/typescript/dist/__tests__/server/stringify-advanced.test.d.ts +2 -0
  146. package/typescript/dist/__tests__/server/stringify-advanced.test.d.ts.map +1 -0
  147. package/typescript/dist/__tests__/server/stringify-advanced.test.js +152 -0
  148. package/typescript/dist/__tests__/server/stringify-advanced.test.js.map +1 -0
  149. package/typescript/dist/__tests__/server/structured-clone-tool.test.d.ts +2 -0
  150. package/typescript/dist/__tests__/server/structured-clone-tool.test.d.ts.map +1 -0
  151. package/typescript/dist/__tests__/server/structured-clone-tool.test.js +751 -0
  152. package/typescript/dist/__tests__/server/structured-clone-tool.test.js.map +1 -0
  153. package/typescript/dist/__tests__/server/structured-clone.test.d.ts +2 -0
  154. package/typescript/dist/__tests__/server/structured-clone.test.d.ts.map +1 -0
  155. package/typescript/dist/__tests__/server/structured-clone.test.js +305 -0
  156. package/typescript/dist/__tests__/server/structured-clone.test.js.map +1 -0
  157. package/typescript/dist/__tests__/server/tool-helpers.test.d.ts +2 -0
  158. package/typescript/dist/__tests__/server/tool-helpers.test.d.ts.map +1 -0
  159. package/typescript/dist/__tests__/server/tool-helpers.test.js +51 -0
  160. package/typescript/dist/__tests__/server/tool-helpers.test.js.map +1 -0
  161. package/typescript/dist/__tests__/server/validation.test.d.ts +2 -0
  162. package/typescript/dist/__tests__/server/validation.test.d.ts.map +1 -0
  163. package/typescript/dist/__tests__/server/validation.test.js +585 -0
  164. package/typescript/dist/__tests__/server/validation.test.js.map +1 -0
  165. package/typescript/dist/__tests__/shared/constants.test.d.ts +2 -0
  166. package/typescript/dist/__tests__/shared/constants.test.d.ts.map +1 -0
  167. package/typescript/dist/__tests__/shared/constants.test.js +11 -0
  168. package/typescript/dist/__tests__/shared/constants.test.js.map +1 -0
  169. package/typescript/dist/__tests__/shared/environment.test.d.ts +2 -0
  170. package/typescript/dist/__tests__/shared/environment.test.d.ts.map +1 -0
  171. package/typescript/dist/__tests__/shared/environment.test.js +279 -0
  172. package/typescript/dist/__tests__/shared/environment.test.js.map +1 -0
  173. package/typescript/dist/__tests__/shared/stringify.test.d.ts +2 -0
  174. package/typescript/dist/__tests__/shared/stringify.test.d.ts.map +1 -0
  175. package/typescript/dist/__tests__/shared/stringify.test.js +171 -0
  176. package/typescript/dist/__tests__/shared/stringify.test.js.map +1 -0
  177. package/typescript/dist/__tests__/shared/timeout.test.d.ts +2 -0
  178. package/typescript/dist/__tests__/shared/timeout.test.d.ts.map +1 -0
  179. package/typescript/dist/__tests__/shared/timeout.test.js +262 -0
  180. package/typescript/dist/__tests__/shared/timeout.test.js.map +1 -0
  181. package/typescript/dist/src/App.d.ts +3 -0
  182. package/typescript/dist/src/App.d.ts.map +1 -0
  183. package/typescript/dist/src/App.js +27 -0
  184. package/typescript/dist/src/App.js.map +1 -0
  185. package/typescript/dist/src/components/charts/BenchmarkCard.d.ts +12 -0
  186. package/typescript/dist/src/components/charts/BenchmarkCard.d.ts.map +1 -0
  187. package/typescript/dist/src/components/charts/BenchmarkCard.js +23 -0
  188. package/typescript/dist/src/components/charts/BenchmarkCard.js.map +1 -0
  189. package/typescript/dist/src/components/charts/ComparisonBar.d.ts +11 -0
  190. package/typescript/dist/src/components/charts/ComparisonBar.d.ts.map +1 -0
  191. package/typescript/dist/src/components/charts/ComparisonBar.js +34 -0
  192. package/typescript/dist/src/components/charts/ComparisonBar.js.map +1 -0
  193. package/typescript/dist/src/components/charts/PercentileGauge.d.ts +10 -0
  194. package/typescript/dist/src/components/charts/PercentileGauge.d.ts.map +1 -0
  195. package/typescript/dist/src/components/charts/PercentileGauge.js +68 -0
  196. package/typescript/dist/src/components/charts/PercentileGauge.js.map +1 -0
  197. package/typescript/dist/src/components/charts/index.d.ts +4 -0
  198. package/typescript/dist/src/components/charts/index.d.ts.map +1 -0
  199. package/typescript/dist/src/components/charts/index.js +4 -0
  200. package/typescript/dist/src/components/charts/index.js.map +1 -0
  201. package/typescript/dist/src/components/filters/FilterPanel.d.ts +9 -0
  202. package/typescript/dist/src/components/filters/FilterPanel.d.ts.map +1 -0
  203. package/typescript/dist/src/components/filters/FilterPanel.js +42 -0
  204. package/typescript/dist/src/components/filters/FilterPanel.js.map +1 -0
  205. package/typescript/dist/src/components/filters/index.d.ts +2 -0
  206. package/typescript/dist/src/components/filters/index.d.ts.map +1 -0
  207. package/typescript/dist/src/components/filters/index.js +2 -0
  208. package/typescript/dist/src/components/filters/index.js.map +1 -0
  209. package/typescript/dist/src/components/ui/Button.d.ts +8 -0
  210. package/typescript/dist/src/components/ui/Button.d.ts.map +1 -0
  211. package/typescript/dist/src/components/ui/Button.js +16 -0
  212. package/typescript/dist/src/components/ui/Button.js.map +1 -0
  213. package/typescript/dist/src/components/ui/Card.d.ts +14 -0
  214. package/typescript/dist/src/components/ui/Card.d.ts.map +1 -0
  215. package/typescript/dist/src/components/ui/Card.js +27 -0
  216. package/typescript/dist/src/components/ui/Card.js.map +1 -0
  217. package/typescript/dist/src/components/ui/Input.d.ts +9 -0
  218. package/typescript/dist/src/components/ui/Input.d.ts.map +1 -0
  219. package/typescript/dist/src/components/ui/Input.js +13 -0
  220. package/typescript/dist/src/components/ui/Input.js.map +1 -0
  221. package/typescript/dist/src/components/ui/Select.d.ts +14 -0
  222. package/typescript/dist/src/components/ui/Select.d.ts.map +1 -0
  223. package/typescript/dist/src/components/ui/Select.js +13 -0
  224. package/typescript/dist/src/components/ui/Select.js.map +1 -0
  225. package/typescript/dist/src/components/ui/index.d.ts +5 -0
  226. package/typescript/dist/src/components/ui/index.d.ts.map +1 -0
  227. package/typescript/dist/src/components/ui/index.js +5 -0
  228. package/typescript/dist/src/components/ui/index.js.map +1 -0
  229. package/typescript/dist/src/index.d.ts +4 -0
  230. package/typescript/dist/src/index.d.ts.map +1 -0
  231. package/typescript/dist/src/index.js +4 -0
  232. package/typescript/dist/src/index.js.map +1 -0
  233. package/typescript/dist/src/layouts/MainLayout.d.ts +2 -0
  234. package/typescript/dist/src/layouts/MainLayout.d.ts.map +1 -0
  235. package/typescript/dist/src/layouts/MainLayout.js +45 -0
  236. package/typescript/dist/src/layouts/MainLayout.js.map +1 -0
  237. package/typescript/dist/src/lib/api/benchmarks.d.ts +87 -0
  238. package/typescript/dist/src/lib/api/benchmarks.d.ts.map +1 -0
  239. package/typescript/dist/src/lib/api/benchmarks.js +274 -0
  240. package/typescript/dist/src/lib/api/benchmarks.js.map +1 -0
  241. package/typescript/dist/src/lib/api/index.d.ts +2 -0
  242. package/typescript/dist/src/lib/api/index.d.ts.map +1 -0
  243. package/typescript/dist/src/lib/api/index.js +2 -0
  244. package/typescript/dist/src/lib/api/index.js.map +1 -0
  245. package/typescript/dist/src/lib/mock-data/accident-benchmarks.d.ts +33 -0
  246. package/typescript/dist/src/lib/mock-data/accident-benchmarks.d.ts.map +1 -0
  247. package/typescript/dist/src/lib/mock-data/accident-benchmarks.js +124 -0
  248. package/typescript/dist/src/lib/mock-data/accident-benchmarks.js.map +1 -0
  249. package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.d.ts +47 -0
  250. package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.d.ts.map +1 -0
  251. package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.js +83 -0
  252. package/typescript/dist/src/lib/mock-data/basic-life-benchmarks.js.map +1 -0
  253. package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.d.ts +39 -0
  254. package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.d.ts.map +1 -0
  255. package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.js +130 -0
  256. package/typescript/dist/src/lib/mock-data/critical-illness-benchmarks.js.map +1 -0
  257. package/typescript/dist/src/lib/mock-data/dental-benchmarks.d.ts +42 -0
  258. package/typescript/dist/src/lib/mock-data/dental-benchmarks.d.ts.map +1 -0
  259. package/typescript/dist/src/lib/mock-data/dental-benchmarks.js +137 -0
  260. package/typescript/dist/src/lib/mock-data/dental-benchmarks.js.map +1 -0
  261. package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.d.ts +37 -0
  262. package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.d.ts.map +1 -0
  263. package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.js +128 -0
  264. package/typescript/dist/src/lib/mock-data/hospital-indemnity-benchmarks.js.map +1 -0
  265. package/typescript/dist/src/lib/mock-data/index.d.ts +3 -0
  266. package/typescript/dist/src/lib/mock-data/index.d.ts.map +1 -0
  267. package/typescript/dist/src/lib/mock-data/index.js +3 -0
  268. package/typescript/dist/src/lib/mock-data/index.js.map +1 -0
  269. package/typescript/dist/src/lib/mock-data/ltd-benchmarks.d.ts +59 -0
  270. package/typescript/dist/src/lib/mock-data/ltd-benchmarks.d.ts.map +1 -0
  271. package/typescript/dist/src/lib/mock-data/ltd-benchmarks.js +127 -0
  272. package/typescript/dist/src/lib/mock-data/ltd-benchmarks.js.map +1 -0
  273. package/typescript/dist/src/lib/mock-data/std-benchmarks.d.ts +51 -0
  274. package/typescript/dist/src/lib/mock-data/std-benchmarks.d.ts.map +1 -0
  275. package/typescript/dist/src/lib/mock-data/std-benchmarks.js +111 -0
  276. package/typescript/dist/src/lib/mock-data/std-benchmarks.js.map +1 -0
  277. package/typescript/dist/src/lib/mock-data/vision-benchmarks.d.ts +32 -0
  278. package/typescript/dist/src/lib/mock-data/vision-benchmarks.d.ts.map +1 -0
  279. package/typescript/dist/src/lib/mock-data/vision-benchmarks.js +151 -0
  280. package/typescript/dist/src/lib/mock-data/vision-benchmarks.js.map +1 -0
  281. package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.d.ts +39 -0
  282. package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.d.ts.map +1 -0
  283. package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.js +97 -0
  284. package/typescript/dist/src/lib/mock-data/voluntary-life-benchmarks.js.map +1 -0
  285. package/typescript/dist/src/lib/transformers/api-to-internal.d.ts +42 -0
  286. package/typescript/dist/src/lib/transformers/api-to-internal.d.ts.map +1 -0
  287. package/typescript/dist/src/lib/transformers/api-to-internal.js +206 -0
  288. package/typescript/dist/src/lib/transformers/api-to-internal.js.map +1 -0
  289. package/typescript/dist/src/lib/transformers/index.d.ts +2 -0
  290. package/typescript/dist/src/lib/transformers/index.d.ts.map +1 -0
  291. package/typescript/dist/src/lib/transformers/index.js +2 -0
  292. package/typescript/dist/src/lib/transformers/index.js.map +1 -0
  293. package/typescript/dist/src/lib/types/accident.d.ts +46 -0
  294. package/typescript/dist/src/lib/types/accident.d.ts.map +1 -0
  295. package/typescript/dist/src/lib/types/accident.js +223 -0
  296. package/typescript/dist/src/lib/types/accident.js.map +1 -0
  297. package/typescript/dist/src/lib/types/api-schema.d.ts +476 -0
  298. package/typescript/dist/src/lib/types/api-schema.d.ts.map +1 -0
  299. package/typescript/dist/src/lib/types/api-schema.js +2 -0
  300. package/typescript/dist/src/lib/types/api-schema.js.map +1 -0
  301. package/typescript/dist/src/lib/types/basic-life.d.ts +30 -0
  302. package/typescript/dist/src/lib/types/basic-life.d.ts.map +1 -0
  303. package/typescript/dist/src/lib/types/basic-life.js +137 -0
  304. package/typescript/dist/src/lib/types/basic-life.js.map +1 -0
  305. package/typescript/dist/src/lib/types/common.d.ts +99 -0
  306. package/typescript/dist/src/lib/types/common.d.ts.map +1 -0
  307. package/typescript/dist/src/lib/types/common.js +29 -0
  308. package/typescript/dist/src/lib/types/common.js.map +1 -0
  309. package/typescript/dist/src/lib/types/critical-illness.d.ts +52 -0
  310. package/typescript/dist/src/lib/types/critical-illness.d.ts.map +1 -0
  311. package/typescript/dist/src/lib/types/critical-illness.js +254 -0
  312. package/typescript/dist/src/lib/types/critical-illness.js.map +1 -0
  313. package/typescript/dist/src/lib/types/dental.d.ts +41 -0
  314. package/typescript/dist/src/lib/types/dental.d.ts.map +1 -0
  315. package/typescript/dist/src/lib/types/dental.js +188 -0
  316. package/typescript/dist/src/lib/types/dental.js.map +1 -0
  317. package/typescript/dist/src/lib/types/hospital-indemnity.d.ts +41 -0
  318. package/typescript/dist/src/lib/types/hospital-indemnity.d.ts.map +1 -0
  319. package/typescript/dist/src/lib/types/hospital-indemnity.js +191 -0
  320. package/typescript/dist/src/lib/types/hospital-indemnity.js.map +1 -0
  321. package/typescript/dist/src/lib/types/index.d.ts +12 -0
  322. package/typescript/dist/src/lib/types/index.d.ts.map +1 -0
  323. package/typescript/dist/src/lib/types/index.js +12 -0
  324. package/typescript/dist/src/lib/types/index.js.map +1 -0
  325. package/typescript/dist/src/lib/types/ltd.d.ts +42 -0
  326. package/typescript/dist/src/lib/types/ltd.d.ts.map +1 -0
  327. package/typescript/dist/src/lib/types/ltd.js +200 -0
  328. package/typescript/dist/src/lib/types/ltd.js.map +1 -0
  329. package/typescript/dist/src/lib/types/std.d.ts +31 -0
  330. package/typescript/dist/src/lib/types/std.d.ts.map +1 -0
  331. package/typescript/dist/src/lib/types/std.js +144 -0
  332. package/typescript/dist/src/lib/types/std.js.map +1 -0
  333. package/typescript/dist/src/lib/types/vision.d.ts +31 -0
  334. package/typescript/dist/src/lib/types/vision.d.ts.map +1 -0
  335. package/typescript/dist/src/lib/types/vision.js +129 -0
  336. package/typescript/dist/src/lib/types/vision.js.map +1 -0
  337. package/typescript/dist/src/lib/types/voluntary-life.d.ts +33 -0
  338. package/typescript/dist/src/lib/types/voluntary-life.d.ts.map +1 -0
  339. package/typescript/dist/src/lib/types/voluntary-life.js +144 -0
  340. package/typescript/dist/src/lib/types/voluntary-life.js.map +1 -0
  341. package/typescript/dist/src/lib/utils/format.d.ts +11 -0
  342. package/typescript/dist/src/lib/utils/format.d.ts.map +1 -0
  343. package/typescript/dist/src/lib/utils/format.js +95 -0
  344. package/typescript/dist/src/lib/utils/format.js.map +1 -0
  345. package/typescript/dist/src/lib/utils/index.d.ts +2 -0
  346. package/typescript/dist/src/lib/utils/index.d.ts.map +1 -0
  347. package/typescript/dist/src/lib/utils/index.js +2 -0
  348. package/typescript/dist/src/lib/utils/index.js.map +1 -0
  349. package/typescript/dist/src/main.d.ts +2 -0
  350. package/typescript/dist/src/main.d.ts.map +1 -0
  351. package/typescript/dist/src/main.js +20 -0
  352. package/typescript/dist/src/main.js.map +1 -0
  353. package/typescript/dist/src/pages/AccidentComparison.d.ts +2 -0
  354. package/typescript/dist/src/pages/AccidentComparison.d.ts.map +1 -0
  355. package/typescript/dist/src/pages/AccidentComparison.js +56 -0
  356. package/typescript/dist/src/pages/AccidentComparison.js.map +1 -0
  357. package/typescript/dist/src/pages/AccidentExplorer.d.ts +2 -0
  358. package/typescript/dist/src/pages/AccidentExplorer.d.ts.map +1 -0
  359. package/typescript/dist/src/pages/AccidentExplorer.js +29 -0
  360. package/typescript/dist/src/pages/AccidentExplorer.js.map +1 -0
  361. package/typescript/dist/src/pages/BasicLifeComparison.d.ts +2 -0
  362. package/typescript/dist/src/pages/BasicLifeComparison.d.ts.map +1 -0
  363. package/typescript/dist/src/pages/BasicLifeComparison.js +59 -0
  364. package/typescript/dist/src/pages/BasicLifeComparison.js.map +1 -0
  365. package/typescript/dist/src/pages/BasicLifeExplorer.d.ts +2 -0
  366. package/typescript/dist/src/pages/BasicLifeExplorer.d.ts.map +1 -0
  367. package/typescript/dist/src/pages/BasicLifeExplorer.js +29 -0
  368. package/typescript/dist/src/pages/BasicLifeExplorer.js.map +1 -0
  369. package/typescript/dist/src/pages/CriticalIllnessComparison.d.ts +2 -0
  370. package/typescript/dist/src/pages/CriticalIllnessComparison.d.ts.map +1 -0
  371. package/typescript/dist/src/pages/CriticalIllnessComparison.js +56 -0
  372. package/typescript/dist/src/pages/CriticalIllnessComparison.js.map +1 -0
  373. package/typescript/dist/src/pages/CriticalIllnessExplorer.d.ts +2 -0
  374. package/typescript/dist/src/pages/CriticalIllnessExplorer.d.ts.map +1 -0
  375. package/typescript/dist/src/pages/CriticalIllnessExplorer.js +29 -0
  376. package/typescript/dist/src/pages/CriticalIllnessExplorer.js.map +1 -0
  377. package/typescript/dist/src/pages/Dashboard.d.ts +2 -0
  378. package/typescript/dist/src/pages/Dashboard.d.ts.map +1 -0
  379. package/typescript/dist/src/pages/Dashboard.js +8 -0
  380. package/typescript/dist/src/pages/Dashboard.js.map +1 -0
  381. package/typescript/dist/src/pages/DentalComparison.d.ts +2 -0
  382. package/typescript/dist/src/pages/DentalComparison.d.ts.map +1 -0
  383. package/typescript/dist/src/pages/DentalComparison.js +64 -0
  384. package/typescript/dist/src/pages/DentalComparison.js.map +1 -0
  385. package/typescript/dist/src/pages/DentalExplorer.d.ts +2 -0
  386. package/typescript/dist/src/pages/DentalExplorer.d.ts.map +1 -0
  387. package/typescript/dist/src/pages/DentalExplorer.js +29 -0
  388. package/typescript/dist/src/pages/DentalExplorer.js.map +1 -0
  389. package/typescript/dist/src/pages/HospitalIndemnityComparison.d.ts +2 -0
  390. package/typescript/dist/src/pages/HospitalIndemnityComparison.d.ts.map +1 -0
  391. package/typescript/dist/src/pages/HospitalIndemnityComparison.js +53 -0
  392. package/typescript/dist/src/pages/HospitalIndemnityComparison.js.map +1 -0
  393. package/typescript/dist/src/pages/HospitalIndemnityExplorer.d.ts +2 -0
  394. package/typescript/dist/src/pages/HospitalIndemnityExplorer.d.ts.map +1 -0
  395. package/typescript/dist/src/pages/HospitalIndemnityExplorer.js +29 -0
  396. package/typescript/dist/src/pages/HospitalIndemnityExplorer.js.map +1 -0
  397. package/typescript/dist/src/pages/LTDComparison.d.ts +2 -0
  398. package/typescript/dist/src/pages/LTDComparison.d.ts.map +1 -0
  399. package/typescript/dist/src/pages/LTDComparison.js +64 -0
  400. package/typescript/dist/src/pages/LTDComparison.js.map +1 -0
  401. package/typescript/dist/src/pages/LTDExplorer.d.ts +2 -0
  402. package/typescript/dist/src/pages/LTDExplorer.d.ts.map +1 -0
  403. package/typescript/dist/src/pages/LTDExplorer.js +29 -0
  404. package/typescript/dist/src/pages/LTDExplorer.js.map +1 -0
  405. package/typescript/dist/src/pages/STDComparison.d.ts +2 -0
  406. package/typescript/dist/src/pages/STDComparison.d.ts.map +1 -0
  407. package/typescript/dist/src/pages/STDComparison.js +58 -0
  408. package/typescript/dist/src/pages/STDComparison.js.map +1 -0
  409. package/typescript/dist/src/pages/STDExplorer.d.ts +2 -0
  410. package/typescript/dist/src/pages/STDExplorer.d.ts.map +1 -0
  411. package/typescript/dist/src/pages/STDExplorer.js +29 -0
  412. package/typescript/dist/src/pages/STDExplorer.js.map +1 -0
  413. package/typescript/dist/src/pages/VisionComparison.d.ts +2 -0
  414. package/typescript/dist/src/pages/VisionComparison.d.ts.map +1 -0
  415. package/typescript/dist/src/pages/VisionComparison.js +64 -0
  416. package/typescript/dist/src/pages/VisionComparison.js.map +1 -0
  417. package/typescript/dist/src/pages/VisionExplorer.d.ts +2 -0
  418. package/typescript/dist/src/pages/VisionExplorer.d.ts.map +1 -0
  419. package/typescript/dist/src/pages/VisionExplorer.js +29 -0
  420. package/typescript/dist/src/pages/VisionExplorer.js.map +1 -0
  421. package/typescript/dist/src/pages/VoluntaryLifeComparison.d.ts +2 -0
  422. package/typescript/dist/src/pages/VoluntaryLifeComparison.d.ts.map +1 -0
  423. package/typescript/dist/src/pages/VoluntaryLifeComparison.js +51 -0
  424. package/typescript/dist/src/pages/VoluntaryLifeComparison.js.map +1 -0
  425. package/typescript/dist/src/pages/VoluntaryLifeExplorer.d.ts +2 -0
  426. package/typescript/dist/src/pages/VoluntaryLifeExplorer.d.ts.map +1 -0
  427. package/typescript/dist/src/pages/VoluntaryLifeExplorer.js +29 -0
  428. package/typescript/dist/src/pages/VoluntaryLifeExplorer.js.map +1 -0
  429. package/typescript/dist/src/runtime/index.d.ts +2 -0
  430. package/typescript/dist/src/runtime/index.d.ts.map +1 -0
  431. package/typescript/dist/src/runtime/index.js +2 -0
  432. package/typescript/dist/src/runtime/index.js.map +1 -0
  433. package/typescript/dist/src/runtime/lifecycle.d.ts +16 -0
  434. package/typescript/dist/src/runtime/lifecycle.d.ts.map +1 -0
  435. package/typescript/dist/src/runtime/lifecycle.js +50 -0
  436. package/typescript/dist/src/runtime/lifecycle.js.map +1 -0
  437. package/typescript/dist/src/server/abort-support.d.ts +20 -0
  438. package/typescript/dist/src/server/abort-support.d.ts.map +1 -0
  439. package/typescript/dist/src/server/abort-support.js +101 -0
  440. package/typescript/dist/src/server/abort-support.js.map +1 -0
  441. package/typescript/dist/src/server/advanced-memory-monitor.d.ts +189 -0
  442. package/typescript/dist/src/server/advanced-memory-monitor.d.ts.map +1 -0
  443. package/typescript/dist/src/server/advanced-memory-monitor.js +718 -0
  444. package/typescript/dist/src/server/advanced-memory-monitor.js.map +1 -0
  445. package/typescript/dist/src/server/architecture-detector.d.ts +72 -0
  446. package/typescript/dist/src/server/architecture-detector.d.ts.map +1 -0
  447. package/typescript/dist/src/server/architecture-detector.js +282 -0
  448. package/typescript/dist/src/server/architecture-detector.js.map +1 -0
  449. package/typescript/dist/src/server/batch-processor-tool.d.ts +69 -0
  450. package/typescript/dist/src/server/batch-processor-tool.d.ts.map +1 -0
  451. package/typescript/dist/src/server/batch-processor-tool.js +651 -0
  452. package/typescript/dist/src/server/batch-processor-tool.js.map +1 -0
  453. package/typescript/dist/src/server/batch-processor.d.ts +73 -0
  454. package/typescript/dist/src/server/batch-processor.d.ts.map +1 -0
  455. package/typescript/dist/src/server/batch-processor.js +264 -0
  456. package/typescript/dist/src/server/batch-processor.js.map +1 -0
  457. package/typescript/dist/src/server/browser-stub.d.ts +18 -0
  458. package/typescript/dist/src/server/browser-stub.d.ts.map +1 -0
  459. package/typescript/dist/src/server/browser-stub.js +21 -0
  460. package/typescript/dist/src/server/browser-stub.js.map +1 -0
  461. package/typescript/dist/src/server/cache.d.ts +92 -0
  462. package/typescript/dist/src/server/cache.d.ts.map +1 -0
  463. package/typescript/dist/src/server/cache.js +217 -0
  464. package/typescript/dist/src/server/cache.js.map +1 -0
  465. package/typescript/dist/src/server/circular-deps.d.ts +85 -0
  466. package/typescript/dist/src/server/circular-deps.d.ts.map +1 -0
  467. package/typescript/dist/src/server/circular-deps.js +331 -0
  468. package/typescript/dist/src/server/circular-deps.js.map +1 -0
  469. package/typescript/dist/src/server/claude-code-env.d.ts +50 -0
  470. package/typescript/dist/src/server/claude-code-env.d.ts.map +1 -0
  471. package/typescript/dist/src/server/claude-code-env.js +116 -0
  472. package/typescript/dist/src/server/claude-code-env.js.map +1 -0
  473. package/typescript/dist/src/server/code-analysis-tool.d.ts +79 -0
  474. package/typescript/dist/src/server/code-analysis-tool.d.ts.map +1 -0
  475. package/typescript/dist/src/server/code-analysis-tool.js +94 -0
  476. package/typescript/dist/src/server/code-analysis-tool.js.map +1 -0
  477. package/typescript/dist/src/server/code-analysis.d.ts +16 -0
  478. package/typescript/dist/src/server/code-analysis.d.ts.map +1 -0
  479. package/typescript/dist/src/server/code-analysis.js +462 -0
  480. package/typescript/dist/src/server/code-analysis.js.map +1 -0
  481. package/typescript/dist/src/server/code-transformation.d.ts +141 -0
  482. package/typescript/dist/src/server/code-transformation.d.ts.map +1 -0
  483. package/typescript/dist/src/server/code-transformation.js +918 -0
  484. package/typescript/dist/src/server/code-transformation.js.map +1 -0
  485. package/typescript/dist/src/server/comprehensive-code-analysis.d.ts +77 -0
  486. package/typescript/dist/src/server/comprehensive-code-analysis.d.ts.map +1 -0
  487. package/typescript/dist/src/server/comprehensive-code-analysis.js +613 -0
  488. package/typescript/dist/src/server/comprehensive-code-analysis.js.map +1 -0
  489. package/typescript/dist/src/server/concurrency.d.ts +5 -0
  490. package/typescript/dist/src/server/concurrency.d.ts.map +1 -0
  491. package/typescript/dist/src/server/concurrency.js +20 -0
  492. package/typescript/dist/src/server/concurrency.js.map +1 -0
  493. package/typescript/dist/src/server/context-manager.d.ts +97 -0
  494. package/typescript/dist/src/server/context-manager.d.ts.map +1 -0
  495. package/typescript/dist/src/server/context-manager.js +410 -0
  496. package/typescript/dist/src/server/context-manager.js.map +1 -0
  497. package/typescript/dist/src/server/context-session-manager.d.ts +47 -0
  498. package/typescript/dist/src/server/context-session-manager.d.ts.map +1 -0
  499. package/typescript/dist/src/server/context-session-manager.js +594 -0
  500. package/typescript/dist/src/server/context-session-manager.js.map +1 -0
  501. package/typescript/dist/src/server/context.d.ts +66 -0
  502. package/typescript/dist/src/server/context.d.ts.map +1 -0
  503. package/typescript/dist/src/server/context.js +275 -0
  504. package/typescript/dist/src/server/context.js.map +1 -0
  505. package/typescript/dist/src/server/dependency-analyzer.d.ts +100 -0
  506. package/typescript/dist/src/server/dependency-analyzer.d.ts.map +1 -0
  507. package/typescript/dist/src/server/dependency-analyzer.js +1117 -0
  508. package/typescript/dist/src/server/dependency-analyzer.js.map +1 -0
  509. package/typescript/dist/src/server/error-handling.d.ts +106 -0
  510. package/typescript/dist/src/server/error-handling.d.ts.map +1 -0
  511. package/typescript/dist/src/server/error-handling.js +363 -0
  512. package/typescript/dist/src/server/error-handling.js.map +1 -0
  513. package/typescript/dist/src/server/file-discovery.d.ts +60 -0
  514. package/typescript/dist/src/server/file-discovery.d.ts.map +1 -0
  515. package/typescript/dist/src/server/file-discovery.js +282 -0
  516. package/typescript/dist/src/server/file-discovery.js.map +1 -0
  517. package/typescript/dist/src/server/file-streaming.d.ts +152 -0
  518. package/typescript/dist/src/server/file-streaming.d.ts.map +1 -0
  519. package/typescript/dist/src/server/file-streaming.js +627 -0
  520. package/typescript/dist/src/server/file-streaming.js.map +1 -0
  521. package/typescript/dist/src/server/files.d.ts +100 -0
  522. package/typescript/dist/src/server/files.d.ts.map +1 -0
  523. package/typescript/dist/src/server/files.js +609 -0
  524. package/typescript/dist/src/server/files.js.map +1 -0
  525. package/typescript/dist/src/server/index.d.ts +54 -0
  526. package/typescript/dist/src/server/index.d.ts.map +1 -0
  527. package/typescript/dist/src/server/index.js +54 -0
  528. package/typescript/dist/src/server/index.js.map +1 -0
  529. package/typescript/dist/src/server/logger.d.ts +95 -0
  530. package/typescript/dist/src/server/logger.d.ts.map +1 -0
  531. package/typescript/dist/src/server/logger.js +271 -0
  532. package/typescript/dist/src/server/logger.js.map +1 -0
  533. package/typescript/dist/src/server/memory-aware-cache.d.ts +169 -0
  534. package/typescript/dist/src/server/memory-aware-cache.d.ts.map +1 -0
  535. package/typescript/dist/src/server/memory-aware-cache.js +655 -0
  536. package/typescript/dist/src/server/memory-aware-cache.js.map +1 -0
  537. package/typescript/dist/src/server/memory-monitor-tool.d.ts +46 -0
  538. package/typescript/dist/src/server/memory-monitor-tool.d.ts.map +1 -0
  539. package/typescript/dist/src/server/memory-monitor-tool.js +381 -0
  540. package/typescript/dist/src/server/memory-monitor-tool.js.map +1 -0
  541. package/typescript/dist/src/server/memory-monitor.d.ts +79 -0
  542. package/typescript/dist/src/server/memory-monitor.d.ts.map +1 -0
  543. package/typescript/dist/src/server/memory-monitor.js +333 -0
  544. package/typescript/dist/src/server/memory-monitor.js.map +1 -0
  545. package/typescript/dist/src/server/optimization-engine.d.ts +68 -0
  546. package/typescript/dist/src/server/optimization-engine.d.ts.map +1 -0
  547. package/typescript/dist/src/server/optimization-engine.js +728 -0
  548. package/typescript/dist/src/server/optimization-engine.js.map +1 -0
  549. package/typescript/dist/src/server/path-manager.d.ts +46 -0
  550. package/typescript/dist/src/server/path-manager.d.ts.map +1 -0
  551. package/typescript/dist/src/server/path-manager.js +155 -0
  552. package/typescript/dist/src/server/path-manager.js.map +1 -0
  553. package/typescript/dist/src/server/pattern-analyzer.d.ts +69 -0
  554. package/typescript/dist/src/server/pattern-analyzer.d.ts.map +1 -0
  555. package/typescript/dist/src/server/pattern-analyzer.js +497 -0
  556. package/typescript/dist/src/server/pattern-analyzer.js.map +1 -0
  557. package/typescript/dist/src/server/performance-observer.d.ts +61 -0
  558. package/typescript/dist/src/server/performance-observer.d.ts.map +1 -0
  559. package/typescript/dist/src/server/performance-observer.js +394 -0
  560. package/typescript/dist/src/server/performance-observer.js.map +1 -0
  561. package/typescript/dist/src/server/performance.d.ts +121 -0
  562. package/typescript/dist/src/server/performance.d.ts.map +1 -0
  563. package/typescript/dist/src/server/performance.js +520 -0
  564. package/typescript/dist/src/server/performance.js.map +1 -0
  565. package/typescript/dist/src/server/report-generator.d.ts +131 -0
  566. package/typescript/dist/src/server/report-generator.d.ts.map +1 -0
  567. package/typescript/dist/src/server/report-generator.js +1158 -0
  568. package/typescript/dist/src/server/report-generator.js.map +1 -0
  569. package/typescript/dist/src/server/resource-lifecycle-manager.d.ts +231 -0
  570. package/typescript/dist/src/server/resource-lifecycle-manager.d.ts.map +1 -0
  571. package/typescript/dist/src/server/resource-lifecycle-manager.js +839 -0
  572. package/typescript/dist/src/server/resource-lifecycle-manager.js.map +1 -0
  573. package/typescript/dist/src/server/retry-operations.d.ts +59 -0
  574. package/typescript/dist/src/server/retry-operations.d.ts.map +1 -0
  575. package/typescript/dist/src/server/retry-operations.js +68 -0
  576. package/typescript/dist/src/server/retry-operations.js.map +1 -0
  577. package/typescript/dist/src/server/retry.d.ts +18 -0
  578. package/typescript/dist/src/server/retry.d.ts.map +1 -0
  579. package/typescript/dist/src/server/retry.js +44 -0
  580. package/typescript/dist/src/server/retry.js.map +1 -0
  581. package/typescript/dist/src/server/retryable.d.ts +2 -0
  582. package/typescript/dist/src/server/retryable.d.ts.map +1 -0
  583. package/typescript/dist/src/server/retryable.js +21 -0
  584. package/typescript/dist/src/server/retryable.js.map +1 -0
  585. package/typescript/dist/src/server/scheduler.d.ts +4 -0
  586. package/typescript/dist/src/server/scheduler.d.ts.map +1 -0
  587. package/typescript/dist/src/server/scheduler.js +21 -0
  588. package/typescript/dist/src/server/scheduler.js.map +1 -0
  589. package/typescript/dist/src/server/security-scanner.d.ts +59 -0
  590. package/typescript/dist/src/server/security-scanner.d.ts.map +1 -0
  591. package/typescript/dist/src/server/security-scanner.js +915 -0
  592. package/typescript/dist/src/server/security-scanner.js.map +1 -0
  593. package/typescript/dist/src/server/security.d.ts +25 -0
  594. package/typescript/dist/src/server/security.d.ts.map +1 -0
  595. package/typescript/dist/src/server/security.js +298 -0
  596. package/typescript/dist/src/server/security.js.map +1 -0
  597. package/typescript/dist/src/server/session-management.d.ts +103 -0
  598. package/typescript/dist/src/server/session-management.d.ts.map +1 -0
  599. package/typescript/dist/src/server/session-management.js +149 -0
  600. package/typescript/dist/src/server/session-management.js.map +1 -0
  601. package/typescript/dist/src/server/session-recovery.d.ts +91 -0
  602. package/typescript/dist/src/server/session-recovery.d.ts.map +1 -0
  603. package/typescript/dist/src/server/session-recovery.js +384 -0
  604. package/typescript/dist/src/server/session-recovery.js.map +1 -0
  605. package/typescript/dist/src/server/session.d.ts +18 -0
  606. package/typescript/dist/src/server/session.d.ts.map +1 -0
  607. package/typescript/dist/src/server/session.js +46 -0
  608. package/typescript/dist/src/server/session.js.map +1 -0
  609. package/typescript/dist/src/server/simple-tools.d.ts +15 -0
  610. package/typescript/dist/src/server/simple-tools.d.ts.map +1 -0
  611. package/typescript/dist/src/server/simple-tools.js +15 -0
  612. package/typescript/dist/src/server/simple-tools.js.map +1 -0
  613. package/typescript/dist/src/server/streaming-utilities.d.ts +107 -0
  614. package/typescript/dist/src/server/streaming-utilities.d.ts.map +1 -0
  615. package/typescript/dist/src/server/streaming-utilities.js +822 -0
  616. package/typescript/dist/src/server/streaming-utilities.js.map +1 -0
  617. package/typescript/dist/src/server/streams.d.ts +48 -0
  618. package/typescript/dist/src/server/streams.d.ts.map +1 -0
  619. package/typescript/dist/src/server/streams.js +489 -0
  620. package/typescript/dist/src/server/streams.js.map +1 -0
  621. package/typescript/dist/src/server/stringify-advanced.d.ts +31 -0
  622. package/typescript/dist/src/server/stringify-advanced.d.ts.map +1 -0
  623. package/typescript/dist/src/server/stringify-advanced.js +183 -0
  624. package/typescript/dist/src/server/stringify-advanced.js.map +1 -0
  625. package/typescript/dist/src/server/structured-clone-tool.d.ts +101 -0
  626. package/typescript/dist/src/server/structured-clone-tool.d.ts.map +1 -0
  627. package/typescript/dist/src/server/structured-clone-tool.js +450 -0
  628. package/typescript/dist/src/server/structured-clone-tool.js.map +1 -0
  629. package/typescript/dist/src/server/structured-clone.d.ts +59 -0
  630. package/typescript/dist/src/server/structured-clone.d.ts.map +1 -0
  631. package/typescript/dist/src/server/structured-clone.js +307 -0
  632. package/typescript/dist/src/server/structured-clone.js.map +1 -0
  633. package/typescript/dist/src/server/test-runner.d.ts +78 -0
  634. package/typescript/dist/src/server/test-runner.d.ts.map +1 -0
  635. package/typescript/dist/src/server/test-runner.js +1024 -0
  636. package/typescript/dist/src/server/test-runner.js.map +1 -0
  637. package/typescript/dist/src/server/tool-helpers.d.ts +6 -0
  638. package/typescript/dist/src/server/tool-helpers.d.ts.map +1 -0
  639. package/typescript/dist/src/server/tool-helpers.js +27 -0
  640. package/typescript/dist/src/server/tool-helpers.js.map +1 -0
  641. package/typescript/dist/src/server/validation.d.ts +79 -0
  642. package/typescript/dist/src/server/validation.d.ts.map +1 -0
  643. package/typescript/dist/src/server/validation.js +613 -0
  644. package/typescript/dist/src/server/validation.js.map +1 -0
  645. package/typescript/dist/src/server/worker-pool.d.ts +87 -0
  646. package/typescript/dist/src/server/worker-pool.d.ts.map +1 -0
  647. package/typescript/dist/src/server/worker-pool.js +586 -0
  648. package/typescript/dist/src/server/worker-pool.js.map +1 -0
  649. package/typescript/dist/src/server/worker-threads.d.ts +95 -0
  650. package/typescript/dist/src/server/worker-threads.d.ts.map +1 -0
  651. package/typescript/dist/src/server/worker-threads.js +1074 -0
  652. package/typescript/dist/src/server/worker-threads.js.map +1 -0
  653. package/typescript/dist/src/server/workflow-orchestrator.d.ts +122 -0
  654. package/typescript/dist/src/server/workflow-orchestrator.d.ts.map +1 -0
  655. package/typescript/dist/src/server/workflow-orchestrator.js +2131 -0
  656. package/typescript/dist/src/server/workflow-orchestrator.js.map +1 -0
  657. package/typescript/dist/src/server/worktree-manager.d.ts +70 -0
  658. package/typescript/dist/src/server/worktree-manager.d.ts.map +1 -0
  659. package/typescript/dist/src/server/worktree-manager.js +741 -0
  660. package/typescript/dist/src/server/worktree-manager.js.map +1 -0
  661. package/typescript/dist/src/shared/constants.d.ts +5 -0
  662. package/typescript/dist/src/shared/constants.d.ts.map +1 -0
  663. package/typescript/dist/src/shared/constants.js +5 -0
  664. package/typescript/dist/src/shared/constants.js.map +1 -0
  665. package/typescript/dist/src/shared/entity-config.d.ts +76 -0
  666. package/typescript/dist/src/shared/entity-config.d.ts.map +1 -0
  667. package/typescript/dist/src/shared/entity-config.js +2 -0
  668. package/typescript/dist/src/shared/entity-config.js.map +1 -0
  669. package/typescript/dist/src/shared/environment.d.ts +18 -0
  670. package/typescript/dist/src/shared/environment.d.ts.map +1 -0
  671. package/typescript/dist/src/shared/environment.js +39 -0
  672. package/typescript/dist/src/shared/environment.js.map +1 -0
  673. package/typescript/dist/src/shared/index.d.ts +6 -0
  674. package/typescript/dist/src/shared/index.d.ts.map +1 -0
  675. package/typescript/dist/src/shared/index.js +6 -0
  676. package/typescript/dist/src/shared/index.js.map +1 -0
  677. package/typescript/dist/src/shared/stringify.d.ts +16 -0
  678. package/typescript/dist/src/shared/stringify.d.ts.map +1 -0
  679. package/typescript/dist/src/shared/stringify.js +195 -0
  680. package/typescript/dist/src/shared/stringify.js.map +1 -0
  681. package/typescript/dist/src/shared/timeout.d.ts +27 -0
  682. package/typescript/dist/src/shared/timeout.d.ts.map +1 -0
  683. package/typescript/dist/src/shared/timeout.js +196 -0
  684. package/typescript/dist/src/shared/timeout.js.map +1 -0
  685. package/typescript/dist/src/types/mcp.d.ts +23 -0
  686. package/typescript/dist/src/types/mcp.d.ts.map +1 -0
  687. package/typescript/dist/src/types/mcp.js +2 -0
  688. package/typescript/dist/src/types/mcp.js.map +1 -0
  689. package/typescript/dist/tsconfig.tsbuildinfo +1 -0
  690. package/typescript/dist/vite.config.d.ts +3 -0
  691. package/typescript/dist/vite.config.d.ts.map +1 -0
  692. package/typescript/dist/vite.config.js +12 -0
  693. package/typescript/dist/vite.config.js.map +1 -0
  694. package/typescript/nextjs.json +17 -0
  695. package/typescript/node.json +10 -0
  696. package/typescript/react-native.json +8 -0
  697. package/typescript/react.json +12 -0
@@ -0,0 +1,751 @@
1
+ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
2
+ import { structuredCloneTool, } from '../../src/server/structured-clone-tool';
3
+ describe('server/structured-clone-tool', () => {
4
+ describe('tool metadata', () => {
5
+ it('should have correct tool name', () => {
6
+ expect(structuredCloneTool.name).toBe('structured_clone');
7
+ });
8
+ it('should have a description', () => {
9
+ expect(structuredCloneTool.description).toBeDefined();
10
+ expect(typeof structuredCloneTool.description).toBe('string');
11
+ expect(structuredCloneTool.description.length).toBeGreaterThan(0);
12
+ });
13
+ it('should have inputSchema defined', () => {
14
+ expect(structuredCloneTool.inputSchema).toBeDefined();
15
+ expect(structuredCloneTool.inputSchema.type).toBe('object');
16
+ expect(structuredCloneTool.inputSchema.properties).toBeDefined();
17
+ });
18
+ it('should have properties in inputSchema', () => {
19
+ const { properties } = structuredCloneTool.inputSchema;
20
+ expect(properties).toHaveProperty('action');
21
+ expect(properties).toHaveProperty('data');
22
+ expect(properties).toHaveProperty('fallbackToJson');
23
+ expect(properties).toHaveProperty('validateClone');
24
+ expect(properties).toHaveProperty('trackPerformance');
25
+ });
26
+ it('should require action property', () => {
27
+ expect(structuredCloneTool.inputSchema.required).toContain('action');
28
+ });
29
+ it('should have action enum with all expected actions', () => {
30
+ const actions = structuredCloneTool.inputSchema.properties.action.enum;
31
+ expect(actions).toContain('clone');
32
+ expect(actions).toContain('isAvailable');
33
+ expect(actions).toContain('benchmark');
34
+ expect(actions).toContain('cloneArray');
35
+ expect(actions).toContain('cacheDemo');
36
+ expect(actions).toContain('configClone');
37
+ expect(actions).toContain('safeClone');
38
+ expect(actions).toContain('optimizedClone');
39
+ expect(actions).toContain('validateClone');
40
+ expect(actions).toContain('performanceClone');
41
+ });
42
+ });
43
+ describe('execute method', () => {
44
+ it('should be a function', () => {
45
+ expect(typeof structuredCloneTool.execute).toBe('function');
46
+ });
47
+ it('should return a Promise', () => {
48
+ const result = structuredCloneTool.execute({
49
+ action: 'clone',
50
+ data: { test: 'value' },
51
+ });
52
+ expect(result).toBeInstanceOf(Promise);
53
+ });
54
+ });
55
+ describe('isAvailable action', () => {
56
+ it('should return availability status', async () => {
57
+ const response = await structuredCloneTool.execute({
58
+ action: 'isAvailable',
59
+ });
60
+ expect(response.content[0]?.type).toBe('text');
61
+ const content = response.content[0]?.text;
62
+ expect(content).toContain('structuredCloneAvailable');
63
+ });
64
+ it('should include node version in response', async () => {
65
+ const response = await structuredCloneTool.execute({
66
+ action: 'isAvailable',
67
+ });
68
+ const content = response.content[0]?.text;
69
+ expect(content).toContain('nodeVersion');
70
+ });
71
+ it('should include recommendation in response', async () => {
72
+ const response = await structuredCloneTool.execute({
73
+ action: 'isAvailable',
74
+ });
75
+ const content = response.content[0]?.text;
76
+ expect(content).toContain('recommendation');
77
+ });
78
+ });
79
+ describe('clone action', () => {
80
+ it('should clone simple objects', async () => {
81
+ const response = await structuredCloneTool.execute({
82
+ action: 'clone',
83
+ data: { a: 1, b: 'test', c: true },
84
+ });
85
+ expect(response.content[0]?.type).toBe('text');
86
+ const content = response.content[0]?.text;
87
+ expect(content).toContain('success');
88
+ expect(content).toContain('clonedData');
89
+ });
90
+ it('should include clone method in response', async () => {
91
+ const response = await structuredCloneTool.execute({
92
+ action: 'clone',
93
+ data: { test: 'data' },
94
+ });
95
+ const content = response.content[0]?.text;
96
+ expect(content).toContain('cloneMethod');
97
+ });
98
+ it('should clone with fallback to JSON when specified', async () => {
99
+ const response = await structuredCloneTool.execute({
100
+ action: 'clone',
101
+ data: { test: 'data' },
102
+ fallbackToJson: true,
103
+ });
104
+ expect(response.content[0]?.type).toBe('text');
105
+ const content = response.content[0]?.text;
106
+ expect(content).toContain('success');
107
+ });
108
+ it('should clone with validation when requested', async () => {
109
+ const response = await structuredCloneTool.execute({
110
+ action: 'clone',
111
+ data: { a: 1, b: 2 },
112
+ validateClone: true,
113
+ expectedType: 'object',
114
+ });
115
+ const content = response.content[0]?.text;
116
+ expect(content).toContain('success');
117
+ });
118
+ it('should track performance when requested', async () => {
119
+ const response = await structuredCloneTool.execute({
120
+ action: 'clone',
121
+ data: { test: 'data' },
122
+ trackPerformance: true,
123
+ performanceMarker: 'test-clone',
124
+ });
125
+ const content = response.content[0]?.text;
126
+ expect(content).toContain('performance');
127
+ });
128
+ it('should clone nested objects', async () => {
129
+ const response = await structuredCloneTool.execute({
130
+ action: 'clone',
131
+ data: {
132
+ level1: {
133
+ level2: {
134
+ level3: { value: 42 },
135
+ },
136
+ },
137
+ },
138
+ });
139
+ const content = response.content[0]?.text;
140
+ expect(content).toContain('clonedData');
141
+ expect(content).toContain('level1');
142
+ });
143
+ it('should handle null data', async () => {
144
+ const response = await structuredCloneTool.execute({
145
+ action: 'clone',
146
+ data: null,
147
+ });
148
+ expect(response.content[0]?.type).toBe('text');
149
+ const content = response.content[0]?.text;
150
+ expect(content).toBeDefined();
151
+ });
152
+ it('should handle arrays', async () => {
153
+ const response = await structuredCloneTool.execute({
154
+ action: 'clone',
155
+ data: [1, 2, 3, 'test', { nested: true }],
156
+ });
157
+ const content = response.content[0]?.text;
158
+ expect(content).toContain('success');
159
+ });
160
+ });
161
+ describe('benchmark action', () => {
162
+ it('should benchmark clone methods', async () => {
163
+ const response = await structuredCloneTool.execute({
164
+ action: 'benchmark',
165
+ data: { a: 1, b: 2, c: 3 },
166
+ iterations: 10,
167
+ });
168
+ expect(response.content[0]?.type).toBe('text');
169
+ const content = response.content[0]?.text;
170
+ expect(content).toContain('success');
171
+ expect(content).toContain('benchmark');
172
+ });
173
+ it('should include iterations in response', async () => {
174
+ const response = await structuredCloneTool.execute({
175
+ action: 'benchmark',
176
+ data: { test: 'data' },
177
+ iterations: 50,
178
+ });
179
+ const content = response.content[0]?.text;
180
+ expect(content).toContain('50');
181
+ });
182
+ it('should include recommendation in response', async () => {
183
+ const response = await structuredCloneTool.execute({
184
+ action: 'benchmark',
185
+ data: { test: 'data' },
186
+ iterations: 5,
187
+ });
188
+ const content = response.content[0]?.text;
189
+ expect(content).toContain('recommended');
190
+ });
191
+ it('should include data size in response', async () => {
192
+ const response = await structuredCloneTool.execute({
193
+ action: 'benchmark',
194
+ data: { test: 'data' },
195
+ iterations: 5,
196
+ });
197
+ const content = response.content[0]?.text;
198
+ expect(content).toContain('dataSize');
199
+ });
200
+ it('should throw error when data is missing', async () => {
201
+ const response = await structuredCloneTool.execute({
202
+ action: 'benchmark',
203
+ iterations: 10,
204
+ });
205
+ expect(response.content[0]?.type).toBe('text');
206
+ const content = response.content[0]?.text;
207
+ expect(content).toBeDefined();
208
+ });
209
+ it('should use default iterations if not provided', async () => {
210
+ const response = await structuredCloneTool.execute({
211
+ action: 'benchmark',
212
+ data: { test: 'data' },
213
+ });
214
+ expect(response.content[0]?.type).toBe('text');
215
+ const content = response.content[0]?.text;
216
+ expect(content).toContain('success');
217
+ });
218
+ });
219
+ describe('cloneArray action', () => {
220
+ it('should clone array elements in batches', async () => {
221
+ const response = await structuredCloneTool.execute({
222
+ action: 'cloneArray',
223
+ data: [1, 2, 3, 4, 5],
224
+ batchSize: 2,
225
+ });
226
+ expect(response.content[0]?.type).toBe('text');
227
+ const content = response.content[0]?.text;
228
+ expect(content).toContain('success');
229
+ expect(content).toContain('cloneArray');
230
+ });
231
+ it('should include original length in response', async () => {
232
+ const response = await structuredCloneTool.execute({
233
+ action: 'cloneArray',
234
+ data: [1, 2, 3],
235
+ batchSize: 1,
236
+ });
237
+ const content = response.content[0]?.text;
238
+ expect(content).toContain('originalLength');
239
+ });
240
+ it('should include processed count in response', async () => {
241
+ const response = await structuredCloneTool.execute({
242
+ action: 'cloneArray',
243
+ data: [1, 2, 3, 4, 5],
244
+ batchSize: 2,
245
+ });
246
+ const content = response.content[0]?.text;
247
+ expect(content).toContain('processedCount');
248
+ });
249
+ it('should include batch size in response', async () => {
250
+ const response = await structuredCloneTool.execute({
251
+ action: 'cloneArray',
252
+ data: [1, 2, 3],
253
+ batchSize: 5,
254
+ });
255
+ const content = response.content[0]?.text;
256
+ expect(content).toContain('batchSize');
257
+ });
258
+ it('should handle empty arrays', async () => {
259
+ const response = await structuredCloneTool.execute({
260
+ action: 'cloneArray',
261
+ data: [],
262
+ batchSize: 2,
263
+ });
264
+ expect(response.content[0]?.type).toBe('text');
265
+ const content = response.content[0]?.text;
266
+ expect(content).toBeDefined();
267
+ });
268
+ it('should reject non-array data with proper response structure', async () => {
269
+ try {
270
+ const response = await structuredCloneTool.execute({
271
+ action: 'cloneArray',
272
+ data: { not: 'array' },
273
+ });
274
+ expect(response).toBeDefined();
275
+ expect(response.content).toBeDefined();
276
+ expect(Array.isArray(response.content)).toBe(true);
277
+ }
278
+ catch (error) {
279
+ expect(error).toBeDefined();
280
+ }
281
+ });
282
+ it('should use default batch size if not provided', async () => {
283
+ const response = await structuredCloneTool.execute({
284
+ action: 'cloneArray',
285
+ data: [1, 2, 3, 4, 5],
286
+ });
287
+ expect(response.content[0]?.type).toBe('text');
288
+ const content = response.content[0]?.text;
289
+ expect(content).toBeDefined();
290
+ });
291
+ it('should include summary of clone methods used', async () => {
292
+ const response = await structuredCloneTool.execute({
293
+ action: 'cloneArray',
294
+ data: [1, 2, 3],
295
+ batchSize: 1,
296
+ });
297
+ const content = response.content[0]?.text;
298
+ expect(content).toContain('summary');
299
+ });
300
+ });
301
+ describe('cacheDemo action', () => {
302
+ it('should demonstrate cache operations', async () => {
303
+ const response = await structuredCloneTool.execute({
304
+ action: 'cacheDemo',
305
+ cacheSize: 5,
306
+ });
307
+ expect(response.content[0]?.type).toBe('text');
308
+ const content = response.content[0]?.text;
309
+ expect(content).toContain('success');
310
+ expect(content).toContain('cacheDemo');
311
+ });
312
+ it('should include cache size in response', async () => {
313
+ const response = await structuredCloneTool.execute({
314
+ action: 'cacheDemo',
315
+ cacheSize: 10,
316
+ });
317
+ const content = response.content[0]?.text;
318
+ expect(content).toContain('cacheSize');
319
+ });
320
+ it('should include cache keys in response', async () => {
321
+ const response = await structuredCloneTool.execute({
322
+ action: 'cacheDemo',
323
+ cacheSize: 3,
324
+ });
325
+ const content = response.content[0]?.text;
326
+ expect(content).toContain('cacheKeys');
327
+ });
328
+ it('should demonstrate isolation between original and retrieved', async () => {
329
+ const response = await structuredCloneTool.execute({
330
+ action: 'cacheDemo',
331
+ cacheSize: 5,
332
+ });
333
+ const content = response.content[0]?.text;
334
+ expect(content).toContain('demonstratesIsolation');
335
+ });
336
+ it('should use default cache size if not provided', async () => {
337
+ const response = await structuredCloneTool.execute({
338
+ action: 'cacheDemo',
339
+ });
340
+ expect(response.content[0]?.type).toBe('text');
341
+ const content = response.content[0]?.text;
342
+ expect(content).toContain('success');
343
+ });
344
+ });
345
+ describe('configClone action', () => {
346
+ it('should clone config objects', async () => {
347
+ const response = await structuredCloneTool.execute({
348
+ action: 'configClone',
349
+ data: { database: 'test', port: 5432 },
350
+ });
351
+ expect(response.content[0]?.type).toBe('text');
352
+ const content = response.content[0]?.text;
353
+ expect(content).toContain('success');
354
+ expect(content).toContain('configClone');
355
+ });
356
+ it('should include original config in response', async () => {
357
+ const response = await structuredCloneTool.execute({
358
+ action: 'configClone',
359
+ data: { test: 'config' },
360
+ });
361
+ const content = response.content[0]?.text;
362
+ expect(content).toContain('originalConfig');
363
+ });
364
+ it('should include cloned config in response', async () => {
365
+ const response = await structuredCloneTool.execute({
366
+ action: 'configClone',
367
+ data: { test: 'config' },
368
+ });
369
+ const content = response.content[0]?.text;
370
+ expect(content).toContain('clonedConfig');
371
+ });
372
+ it('should indicate validation status', async () => {
373
+ const response = await structuredCloneTool.execute({
374
+ action: 'configClone',
375
+ data: { test: 'config' },
376
+ });
377
+ const content = response.content[0]?.text;
378
+ expect(content).toContain('validated');
379
+ });
380
+ });
381
+ describe('safeClone action', () => {
382
+ it('should safely clone with fallback', async () => {
383
+ const response = await structuredCloneTool.execute({
384
+ action: 'safeClone',
385
+ data: { test: 'data' },
386
+ fallback: { error: 'fallback' },
387
+ });
388
+ expect(response.content[0]?.type).toBe('text');
389
+ const content = response.content[0]?.text;
390
+ expect(content).toContain('success');
391
+ expect(content).toContain('safeClone');
392
+ });
393
+ it('should include fallback data in response', async () => {
394
+ const response = await structuredCloneTool.execute({
395
+ action: 'safeClone',
396
+ data: { test: 'data' },
397
+ fallback: { default: true },
398
+ });
399
+ const content = response.content[0]?.text;
400
+ expect(content).toContain('fallbackData');
401
+ });
402
+ it('should indicate if fallback was used', async () => {
403
+ const response = await structuredCloneTool.execute({
404
+ action: 'safeClone',
405
+ data: { test: 'data' },
406
+ });
407
+ const content = response.content[0]?.text;
408
+ expect(content).toContain('fallbackUsed');
409
+ });
410
+ it('should use default fallback if not provided', async () => {
411
+ const response = await structuredCloneTool.execute({
412
+ action: 'safeClone',
413
+ data: { test: 'data' },
414
+ });
415
+ expect(response.content[0]?.type).toBe('text');
416
+ const content = response.content[0]?.text;
417
+ expect(content).toContain('success');
418
+ });
419
+ });
420
+ describe('optimizedClone action', () => {
421
+ it('should perform optimized cloning', async () => {
422
+ const response = await structuredCloneTool.execute({
423
+ action: 'optimizedClone',
424
+ data: { test: 'data' },
425
+ });
426
+ expect(response.content[0]?.type).toBe('text');
427
+ const content = response.content[0]?.text;
428
+ expect(content).toContain('success');
429
+ expect(content).toContain('optimizedClone');
430
+ });
431
+ it('should include optimized method in response', async () => {
432
+ const response = await structuredCloneTool.execute({
433
+ action: 'optimizedClone',
434
+ data: { test: 'data' },
435
+ });
436
+ const content = response.content[0]?.text;
437
+ expect(content).toContain('optimizedMethod');
438
+ });
439
+ it('should indicate automatic optimization', async () => {
440
+ const response = await structuredCloneTool.execute({
441
+ action: 'optimizedClone',
442
+ data: { test: 'data' },
443
+ });
444
+ const content = response.content[0]?.text;
445
+ expect(content).toContain('automaticallyOptimized');
446
+ });
447
+ });
448
+ describe('validateClone action', () => {
449
+ it('should clone with validation', async () => {
450
+ const response = await structuredCloneTool.execute({
451
+ action: 'validateClone',
452
+ data: { test: 'data' },
453
+ expectedType: 'object',
454
+ });
455
+ expect(response.content[0]?.type).toBe('text');
456
+ const content = response.content[0]?.text;
457
+ expect(content).toContain('success');
458
+ expect(content).toContain('validateClone');
459
+ });
460
+ it('should include validation status in response', async () => {
461
+ const response = await structuredCloneTool.execute({
462
+ action: 'validateClone',
463
+ data: { test: 'data' },
464
+ });
465
+ const content = response.content[0]?.text;
466
+ expect(content).toContain('validationPassed');
467
+ });
468
+ it('should include warnings in response', async () => {
469
+ const response = await structuredCloneTool.execute({
470
+ action: 'validateClone',
471
+ data: { test: 'data' },
472
+ expectedType: 'string',
473
+ });
474
+ const content = response.content[0]?.text;
475
+ expect(content).toContain('warnings');
476
+ });
477
+ it('should include performance in response', async () => {
478
+ const response = await structuredCloneTool.execute({
479
+ action: 'validateClone',
480
+ data: { test: 'data' },
481
+ });
482
+ const content = response.content[0]?.text;
483
+ expect(content).toContain('performance');
484
+ });
485
+ });
486
+ describe('performanceClone action', () => {
487
+ it('should clone with performance metrics', async () => {
488
+ const response = await structuredCloneTool.execute({
489
+ action: 'performanceClone',
490
+ data: { test: 'data' },
491
+ });
492
+ expect(response.content[0]?.type).toBe('text');
493
+ const content = response.content[0]?.text;
494
+ expect(content).toContain('success');
495
+ expect(content).toContain('performanceClone');
496
+ });
497
+ it('should include performance marker in response', async () => {
498
+ const response = await structuredCloneTool.execute({
499
+ action: 'performanceClone',
500
+ data: { test: 'data' },
501
+ performanceMarker: 'test-perf',
502
+ });
503
+ const content = response.content[0]?.text;
504
+ expect(content).toContain('performanceMarker');
505
+ expect(content).toContain('test-perf');
506
+ });
507
+ it('should generate marker if not provided', async () => {
508
+ const response = await structuredCloneTool.execute({
509
+ action: 'performanceClone',
510
+ data: { test: 'data' },
511
+ });
512
+ const content = response.content[0]?.text;
513
+ expect(content).toContain('performanceMarker');
514
+ });
515
+ it('should include performance metrics', async () => {
516
+ const response = await structuredCloneTool.execute({
517
+ action: 'performanceClone',
518
+ data: { test: 'data' },
519
+ });
520
+ const content = response.content[0]?.text;
521
+ expect(content).toContain('performance');
522
+ });
523
+ it('should include data size in response', async () => {
524
+ const response = await structuredCloneTool.execute({
525
+ action: 'performanceClone',
526
+ data: { test: 'data' },
527
+ });
528
+ const content = response.content[0]?.text;
529
+ expect(content).toContain('dataSize');
530
+ });
531
+ it('should calculate efficiency metric', async () => {
532
+ const response = await structuredCloneTool.execute({
533
+ action: 'performanceClone',
534
+ data: { test: 'data' },
535
+ });
536
+ const content = response.content[0]?.text;
537
+ expect(content).toContain('efficiency');
538
+ });
539
+ });
540
+ describe('demo data generation', () => {
541
+ it('should generate demo data when generateDemoData is true', async () => {
542
+ const response = await structuredCloneTool.execute({
543
+ action: 'clone',
544
+ generateDemoData: true,
545
+ demoDataType: 'simple',
546
+ });
547
+ expect(response.content[0]?.type).toBe('text');
548
+ const content = response.content[0]?.text;
549
+ expect(content).toContain('success');
550
+ });
551
+ it('should generate complex demo data', async () => {
552
+ const response = await structuredCloneTool.execute({
553
+ action: 'clone',
554
+ generateDemoData: true,
555
+ demoDataType: 'complex',
556
+ demoDataSize: 50,
557
+ });
558
+ const content = response.content[0]?.text;
559
+ expect(content).toContain('success');
560
+ });
561
+ it('should generate nested demo data', async () => {
562
+ const response = await structuredCloneTool.execute({
563
+ action: 'clone',
564
+ generateDemoData: true,
565
+ demoDataType: 'nested',
566
+ demoDataSize: 10,
567
+ });
568
+ const content = response.content[0]?.text;
569
+ expect(content).toContain('success');
570
+ });
571
+ it('should generate large demo data', async () => {
572
+ const response = await structuredCloneTool.execute({
573
+ action: 'clone',
574
+ generateDemoData: true,
575
+ demoDataType: 'large',
576
+ demoDataSize: 100,
577
+ });
578
+ const content = response.content[0]?.text;
579
+ expect(content).toContain('success');
580
+ });
581
+ it('should handle demo data generation with structured clone', async () => {
582
+ const response = await structuredCloneTool.execute({
583
+ action: 'clone',
584
+ generateDemoData: true,
585
+ demoDataType: 'simple',
586
+ });
587
+ expect(response.content[0]?.type).toBe('text');
588
+ const content = response.content[0]?.text;
589
+ expect(content).toContain('success');
590
+ });
591
+ it('should use default demo data type if not provided', async () => {
592
+ const response = await structuredCloneTool.execute({
593
+ action: 'clone',
594
+ generateDemoData: true,
595
+ });
596
+ expect(response.content[0]?.type).toBe('text');
597
+ const content = response.content[0]?.text;
598
+ expect(content).toBeDefined();
599
+ });
600
+ });
601
+ describe('error handling', () => {
602
+ it('should handle invalid action with error response', async () => {
603
+ try {
604
+ const response = await structuredCloneTool.execute({
605
+ action: 'invalidAction',
606
+ });
607
+ expect(response).toBeDefined();
608
+ expect(response.content).toBeDefined();
609
+ expect(response.content[0]?.type).toBe('text');
610
+ }
611
+ catch (error) {
612
+ expect(error).toBeDefined();
613
+ }
614
+ });
615
+ it('should handle abort signal', async () => {
616
+ const controller = new AbortController();
617
+ controller.abort();
618
+ const response = await structuredCloneTool.execute({
619
+ action: 'clone',
620
+ data: { test: 'data' },
621
+ signal: controller.signal,
622
+ });
623
+ expect(response.content[0]?.type).toBe('text');
624
+ const content = response.content[0]?.text;
625
+ expect(content).toBeDefined();
626
+ });
627
+ it('should return error response structure', async () => {
628
+ const response = await structuredCloneTool.execute({
629
+ action: 'clone',
630
+ });
631
+ expect(response).toHaveProperty('content');
632
+ expect(Array.isArray(response.content)).toBe(true);
633
+ expect(response.content[0]).toHaveProperty('type');
634
+ expect(response.content[0]).toHaveProperty('text');
635
+ });
636
+ it('should handle missing required parameters with error response', async () => {
637
+ try {
638
+ const response = await structuredCloneTool.execute({});
639
+ expect(response).toBeDefined();
640
+ expect(response.content).toBeDefined();
641
+ expect(response.content[0]?.type).toBe('text');
642
+ }
643
+ catch (error) {
644
+ expect(error).toBeDefined();
645
+ }
646
+ });
647
+ });
648
+ describe('integration tests', () => {
649
+ it('should work with multiple actions in sequence', async () => {
650
+ const availResponse = await structuredCloneTool.execute({
651
+ action: 'isAvailable',
652
+ });
653
+ expect(availResponse.content[0]?.text).toContain('structuredCloneAvailable');
654
+ const cloneResponse = await structuredCloneTool.execute({
655
+ action: 'clone',
656
+ data: { test: 'data' },
657
+ });
658
+ expect(cloneResponse.content[0]?.text).toContain('success');
659
+ const benchResponse = await structuredCloneTool.execute({
660
+ action: 'benchmark',
661
+ data: { test: 'data' },
662
+ iterations: 5,
663
+ });
664
+ expect(benchResponse.content[0]?.text).toContain('benchmark');
665
+ });
666
+ it('should handle fallback chain correctly', async () => {
667
+ const response = await structuredCloneTool.execute({
668
+ action: 'clone',
669
+ data: { test: 'data' },
670
+ fallbackToJson: true,
671
+ validateClone: false,
672
+ });
673
+ expect(response.content[0]?.text).toContain('success');
674
+ });
675
+ it('should support various data types across actions', async () => {
676
+ const dataTypes = [
677
+ { simple: 'string' },
678
+ [1, 2, 3],
679
+ null,
680
+ 42,
681
+ true,
682
+ ];
683
+ for (const data of dataTypes) {
684
+ const response = await structuredCloneTool.execute({
685
+ action: 'clone',
686
+ data,
687
+ });
688
+ expect(response.content[0]?.type).toBe('text');
689
+ }
690
+ });
691
+ it('should handle large datasets', async () => {
692
+ const largeData = {
693
+ items: Array.from({ length: 1000 }, (_, i) => ({
694
+ id: i,
695
+ value: `Item ${i}`,
696
+ nested: { timestamp: Date.now() },
697
+ })),
698
+ };
699
+ const response = await structuredCloneTool.execute({
700
+ action: 'clone',
701
+ data: largeData,
702
+ trackPerformance: true,
703
+ });
704
+ expect(response.content[0]?.text).toContain('success');
705
+ });
706
+ });
707
+ describe('options validation', () => {
708
+ it('should accept fallbackToJson option', async () => {
709
+ const response = await structuredCloneTool.execute({
710
+ action: 'clone',
711
+ data: { test: 'data' },
712
+ fallbackToJson: false,
713
+ });
714
+ expect(response.content[0]?.type).toBe('text');
715
+ });
716
+ it('should accept validateClone option', async () => {
717
+ const response = await structuredCloneTool.execute({
718
+ action: 'clone',
719
+ data: { test: 'data' },
720
+ validateClone: true,
721
+ });
722
+ expect(response.content[0]?.type).toBe('text');
723
+ });
724
+ it('should accept trackPerformance option', async () => {
725
+ const response = await structuredCloneTool.execute({
726
+ action: 'clone',
727
+ data: { test: 'data' },
728
+ trackPerformance: true,
729
+ });
730
+ expect(response.content[0]?.type).toBe('text');
731
+ });
732
+ it('should accept expectedType option', async () => {
733
+ const response = await structuredCloneTool.execute({
734
+ action: 'clone',
735
+ data: { test: 'data' },
736
+ expectedType: 'object',
737
+ });
738
+ expect(response.content[0]?.type).toBe('text');
739
+ });
740
+ it('should accept performanceMarker option', async () => {
741
+ const response = await structuredCloneTool.execute({
742
+ action: 'performanceClone',
743
+ data: { test: 'data' },
744
+ performanceMarker: 'custom-marker',
745
+ });
746
+ const content = response.content[0]?.text;
747
+ expect(content).toContain('custom-marker');
748
+ });
749
+ });
750
+ });
751
+ //# sourceMappingURL=structured-clone-tool.test.js.map