xypriss 9.0.13 → 9.1.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 (2137) hide show
  1. package/.agent/workflows/build-xems.md +9 -0
  2. package/.editorconfig +12 -0
  3. package/.env.test +4 -0
  4. package/.github/FUNDING.yml +15 -0
  5. package/.github/dependabot.yml +11 -0
  6. package/.github/workflows/codeql.yml +98 -0
  7. package/.github/workflows/release.yml +91 -0
  8. package/.private/.meta/+xypriss.meta.ts +6 -0
  9. package/.private/ACPES_UTF8_FIXES.md +129 -0
  10. package/.private/PLUGIN_API_TEST_PLAN.md +555 -0
  11. package/.private/README.md +6 -0
  12. package/.private/SESSION_SUMMARY_2025-12-12.md +229 -0
  13. package/.private/XYPRISS_BUG_FIX_REPORT.md +198 -0
  14. package/.private/XYPRISS_BUG_REPORT.md +140 -0
  15. package/.private/XYPRISS_RUST_CORE_BRAINSTORM.md +110 -0
  16. package/.private/acpes_gl_test.ts +38 -0
  17. package/.private/acpes_test_data.txt +6 -0
  18. package/.private/algos/comparison.md +87 -0
  19. package/.private/configs-example.ts +290 -0
  20. package/.private/configs.ts +22 -0
  21. package/.private/console-demo-simple.ts +61 -0
  22. package/.private/console-interception-examples.ts +260 -0
  23. package/.private/const.ts +6 -0
  24. package/.private/cpu.bench.md +53 -0
  25. package/.private/create_test_files.ts +43 -0
  26. package/.private/diagnose-proxy.cjs +176 -0
  27. package/.private/feedb.md +16 -0
  28. package/.private/filesystem-api.md +119 -0
  29. package/.private/fw.ts +10 -0
  30. package/.private/goserver.ts +56 -0
  31. package/.private/important/xm +12 -0
  32. package/.private/index.html +23 -0
  33. package/.private/intensive_test_server.ts +244 -0
  34. package/.private/k.md +2 -0
  35. package/.private/middlewares/testMiddleware.ts +11 -0
  36. package/.private/ms1.ts +12 -0
  37. package/.private/ms1_router2.ts +13 -0
  38. package/.private/ms1router.ts +10 -0
  39. package/.private/mserver.ts +14 -0
  40. package/.private/otherRouterFromFile.ts +11 -0
  41. package/.private/package_manager_brainstorming.md +804 -0
  42. package/.private/payload.json +46 -0
  43. package/.private/plg.json +3 -0
  44. package/.private/plugins/+plg.ts +8 -0
  45. package/.private/plugins/authServer.ts +24 -0
  46. package/.private/plugins/mainServer.ts +28 -0
  47. package/.private/plugins/t.ts +7 -0
  48. package/.private/productionCsp.ts +48 -0
  49. package/.private/repro_memory_error.ts +10 -0
  50. package/.private/repro_memory_error_dist.ts +10 -0
  51. package/.private/repro_sys.ts +10 -0
  52. package/.private/response_control_demo.ts +57 -0
  53. package/.private/rex.ts +22 -0
  54. package/.private/router/auth.route.ts +96 -0
  55. package/.private/router/index.router.ts +20 -0
  56. package/.private/router/index.ts +35 -0
  57. package/.private/router/v1.route.ts +9 -0
  58. package/.private/sandbox/xms/router/index.ts +12 -0
  59. package/.private/sandbox/xms/router/xserver1.route.ts +12 -0
  60. package/.private/sandbox/xms/router/xserver2.route.ts +37 -0
  61. package/.private/sandbox/xms/server.ts +14 -0
  62. package/.private/sandbox/xms/servers/xserver1.ts +8 -0
  63. package/.private/sandbox/xms/servers/xserver2.ts +6 -0
  64. package/.private/security-example.ts +149 -0
  65. package/.private/serializer.ts +13 -0
  66. package/.private/server.ts +200 -0
  67. package/.private/server2.ts +12 -0
  68. package/.private/test-mob.ts +15 -0
  69. package/.private/test-pkce.ts +43 -0
  70. package/.private/test-proxy.cjs +161 -0
  71. package/.private/test-query-endpoint.ts +28 -0
  72. package/.private/test-query-params-fix.cjs +184 -0
  73. package/.private/test-ratelimit.ts +27 -0
  74. package/.private/test-router.ts +40 -0
  75. package/.private/test-server-prod.ts +43 -0
  76. package/.private/test-server.ts +55 -0
  77. package/.private/test-trust-proxy-ranges.cjs +139 -0
  78. package/.private/test.json +53 -0
  79. package/.private/test.pluging.ts +37 -0
  80. package/.private/testPlugin_Logger.ts +20 -0
  81. package/.private/test_lifecycle_hooks.ts +120 -0
  82. package/.private/test_methods_suite.ts +134 -0
  83. package/.private/test_multi_server.ts +62 -0
  84. package/.private/test_plugin_api.ts +150 -0
  85. package/.private/test_upload.ts +103 -0
  86. package/.private/test_upload_comprehensive.ts +185 -0
  87. package/.private/testing-meta-config/.meta/+xypriss.meta.ts +4 -0
  88. package/.private/testing-meta-config/.quickdevignore +1 -0
  89. package/.private/testing-meta-config/README.md +238 -0
  90. package/.private/testing-meta-config/bun.lock +1184 -0
  91. package/.private/testing-meta-config/package-lock.json +4172 -0
  92. package/.private/testing-meta-config/package.json +31 -0
  93. package/.private/testing-meta-config/quickdev.config.json +34 -0
  94. package/.private/testing-meta-config/src/configs/host.conf.ts +83 -0
  95. package/.private/testing-meta-config/src/configs/xypriss.config.ts +45 -0
  96. package/.private/testing-meta-config/src/middleware/index.ts +40 -0
  97. package/.private/testing-meta-config/src/middleware/security.mlw.ts +29 -0
  98. package/.private/testing-meta-config/src/middleware/validation.middleware.ts +53 -0
  99. package/.private/testing-meta-config/src/routes/index.ts +97 -0
  100. package/.private/testing-meta-config/src/schema/user.schema.ts +8 -0
  101. package/.private/testing-meta-config/src/server.ts +67 -0
  102. package/.private/testing-meta-config/tsconfig.json +31 -0
  103. package/.private/testing-meta-config/xypriss.config.json +12 -0
  104. package/.private/type-safe-configs.ts +323 -0
  105. package/.private/upload_router.ts +28 -0
  106. package/.private/upload_serv.ts +48 -0
  107. package/.private/xms.md +1 -0
  108. package/.private/xvault.xems +0 -0
  109. package/.private/xypriss-cors-methods-array-bug.md +297 -0
  110. package/.quickdevignore +3 -0
  111. package/CONTRIBUTING.md +411 -0
  112. package/README.md +2 -1
  113. package/RELEASE_XFPM_G0.1.48.md +30 -0
  114. package/__tests__/COMPRESSION_FIX_SUMMARY.md +268 -0
  115. package/__tests__/COMPRESSION_PLUGIN_COMPLETE.md +224 -0
  116. package/__tests__/COMPRESSION_PLUGIN_IMPLEMENTATION_PLAN.md +253 -0
  117. package/__tests__/README.md +192 -0
  118. package/__tests__/TEST_INVESTIGATION_REPORT.md +247 -0
  119. package/__tests__/XYPRISS_COMPRESSION_SUMMARY.md +279 -0
  120. package/__tests__/acpes.test.html +12 -0
  121. package/__tests__/acpes_gl_test.ts +38 -0
  122. package/__tests__/analytics-engine.test.ts +292 -0
  123. package/__tests__/automatic-json-parsing.js +188 -0
  124. package/__tests__/bun-port-test.ts +186 -0
  125. package/__tests__/bun_cluster_test.ts +603 -0
  126. package/__tests__/bun_cluster_testv2.ts +448 -0
  127. package/__tests__/cache-persistence-fix-test.ts +149 -0
  128. package/__tests__/cache_testing/simplified_cache_test.ts +114 -0
  129. package/__tests__/cache_testing/test_redis_cache.ts +62 -0
  130. package/__tests__/cache_testing/type_safety_test.ts +200 -0
  131. package/__tests__/check_date.ts +10 -0
  132. package/__tests__/cluster_test.cjs +583 -0
  133. package/__tests__/cluster_test.js +38 -0
  134. package/__tests__/comprehensive-port-test.ts +192 -0
  135. package/__tests__/console.test.ts +262 -0
  136. package/__tests__/cors-multiserver-bug.test.ts +243 -0
  137. package/__tests__/cors-test-server.ts +124 -0
  138. package/__tests__/cors-test.html +98 -0
  139. package/__tests__/cors.test.ts +325 -0
  140. package/__tests__/crypto-operations.test.ts +334 -0
  141. package/__tests__/debug-conflict.js +69 -0
  142. package/__tests__/debug-memory.js +94 -0
  143. package/__tests__/debug-port.js +66 -0
  144. package/__tests__/debug-security.ts +54 -0
  145. package/__tests__/debug-server-startup.ts +187 -0
  146. package/__tests__/debug-test.js +73 -0
  147. package/__tests__/debug_logging.ts +104 -0
  148. package/__tests__/example-circular-fix.cjs +133 -0
  149. package/__tests__/express-listen-test.ts +144 -0
  150. package/__tests__/fObject.test.ts +38 -0
  151. package/__tests__/fast-routing-example.ts +166 -0
  152. package/__tests__/final-port-switch-test.ts +192 -0
  153. package/__tests__/fix-imports.cjs +109 -0
  154. package/__tests__/gl.ts +137 -0
  155. package/__tests__/gl_ts.ts +49 -0
  156. package/__tests__/glob.test.ts +11 -0
  157. package/__tests__/integration.test.ts +414 -0
  158. package/__tests__/memory-manager.test.ts +401 -0
  159. package/__tests__/memory-optimized-cluster.ts +359 -0
  160. package/__tests__/memory_friendly_test.ts +444 -0
  161. package/__tests__/middleware-id-tracking.test.ts +344 -0
  162. package/__tests__/middleware-system.test.ts +149 -0
  163. package/__tests__/middleware_test1.ts +61 -0
  164. package/__tests__/mobile-test/test-okhttp.js +71 -0
  165. package/__tests__/multi-server-404-config-test.ts +346 -0
  166. package/__tests__/network-plugin-example.js +203 -0
  167. package/__tests__/network-plugins-comprehensive.test.ts +523 -0
  168. package/__tests__/network-plugins-manual-demo.ts +376 -0
  169. package/__tests__/network-plugins-quick-test.ts +132 -0
  170. package/__tests__/object-collection-tracking.test.ts +337 -0
  171. package/__tests__/optimization-engine.test.ts +394 -0
  172. package/__tests__/plugin-system-test.ts +92 -0
  173. package/__tests__/plugins/+plg.ts +8 -0
  174. package/__tests__/plugins/t.ts +7 -0
  175. package/__tests__/port-availability-test.ts +153 -0
  176. package/__tests__/port-switch-conflict-test.ts +144 -0
  177. package/__tests__/port-switch-debug.ts +116 -0
  178. package/__tests__/rate-limiting.test.ts +221 -0
  179. package/__tests__/rate_lim.ts +44 -0
  180. package/__tests__/redirect.ts +164 -0
  181. package/__tests__/redis_cache_test.ts +25 -0
  182. package/__tests__/repro_rate_limit.ts +24 -0
  183. package/__tests__/router/index.ts +13 -0
  184. package/__tests__/router/test_router.ts +57 -0
  185. package/__tests__/router copy/index.router.ts +20 -0
  186. package/__tests__/router_test.ts +32 -0
  187. package/__tests__/run-all-tests.ts +179 -0
  188. package/__tests__/run-network-tests.sh +261 -0
  189. package/__tests__/run-placeholder-tests.ts +137 -0
  190. package/__tests__/security-example.ts +149 -0
  191. package/__tests__/security.test.ts +305 -0
  192. package/__tests__/server-creation.test.ts +253 -0
  193. package/__tests__/server.test.ts +70 -0
  194. package/__tests__/simple-port-test.ts +180 -0
  195. package/__tests__/simple_router_test.ts +45 -0
  196. package/__tests__/stress-test-network-plugins-fixed.sh +305 -0
  197. package/__tests__/stress-test-network-plugins.sh +328 -0
  198. package/__tests__/stress_test_intelligence.sh +384 -0
  199. package/__tests__/test/bun.lock +846 -0
  200. package/__tests__/test-acpes-utf8-fix.js +105 -0
  201. package/__tests__/test-acpes.js +102 -0
  202. package/__tests__/test-advanced-encryption.js +163 -0
  203. package/__tests__/test-all-network-plugins.mjs +353 -0
  204. package/__tests__/test-auto-port.cjs +109 -0
  205. package/__tests__/test-auto-ts/auto-check-test.ts +18 -0
  206. package/__tests__/test-cache-persistence-fix.ts +195 -0
  207. package/__tests__/test-circular-reference-fix.ts +214 -0
  208. package/__tests__/test-cluster-startup copy.ts +222 -0
  209. package/__tests__/test-cluster-startup.ts +222 -0
  210. package/__tests__/test-console-debug.ts +106 -0
  211. package/__tests__/test-cors.js +36 -0
  212. package/__tests__/test-ffunc.ts +138 -0
  213. package/__tests__/test-import.mjs +63 -0
  214. package/__tests__/test-integrated-network-plugins.mjs +493 -0
  215. package/__tests__/test-interface.ts +40 -0
  216. package/__tests__/test-json-parsing.mjs +87 -0
  217. package/__tests__/test-local-import.cjs +25 -0
  218. package/__tests__/test-local-import.js +28 -0
  219. package/__tests__/test-memory-cli.js +21 -0
  220. package/__tests__/test-modular.js +141 -0
  221. package/__tests__/test-no-conflict.ts +107 -0
  222. package/__tests__/test-port-conflict.js +64 -0
  223. package/__tests__/test-port-error.js +41 -0
  224. package/__tests__/test-port-manager.js +64 -0
  225. package/__tests__/test-power.ts +54 -0
  226. package/__tests__/test-realistic-bug-scenario.ts +101 -0
  227. package/__tests__/test-resilience.ts +53 -0
  228. package/__tests__/test-ultra-fast.ts +121 -0
  229. package/__tests__/test-user-example.mjs +114 -0
  230. package/__tests__/test-xhsc.ts +90 -0
  231. package/__tests__/test_cluster.ts +342 -0
  232. package/__tests__/test_cluster_simple.ts +221 -0
  233. package/__tests__/test_csrf_and_final.ts +187 -0
  234. package/__tests__/test_logging.ts +140 -0
  235. package/__tests__/test_manual_multer.ts +59 -0
  236. package/__tests__/test_manual_multer_client.ts +62 -0
  237. package/__tests__/test_matchit.rs +14 -0
  238. package/__tests__/test_plugins.ts +307 -0
  239. package/__tests__/test_real_cpu_work.ts +317 -0
  240. package/__tests__/test_request_management.ts +161 -0
  241. package/__tests__/test_router_and_middleware.ts +154 -0
  242. package/__tests__/test_upload.ts +62 -0
  243. package/__tests__/test_worker_direct.ts +77 -0
  244. package/__tests__/test_worker_pool.ts +224 -0
  245. package/__tests__/test_xjson.sh +21 -0
  246. package/__tests__/utils/cache.ts +15 -0
  247. package/__tests__/verify-network-plugins.sh +248 -0
  248. package/__tests__/wildcard-cors.test.ts +90 -0
  249. package/cache/.write_test +1 -0
  250. package/docs/ENVIRONMENT_SHIELD.md +68 -0
  251. package/docs/README.md +49 -0
  252. package/docs/XEMS_TUTORIAL.md +205 -0
  253. package/docs/cluster/MULTI_SERVER.md +479 -0
  254. package/docs/cluster/cluster-configuration-guide.md +92 -0
  255. package/docs/cluster/cluster-overview.md +33 -0
  256. package/docs/cluster/cluster-performance-tuning-updated.md +78 -0
  257. package/docs/cluster/multi-server.md +288 -0
  258. package/docs/config/CFG_API.md +61 -0
  259. package/docs/config/CONFIGS_API.md +414 -0
  260. package/docs/config/CONFIGS_QUICK_REFERENCE.md +124 -0
  261. package/docs/config/META_CONFIG.md +65 -0
  262. package/docs/config/NETWORK_CONFIG_GUIDE.md +441 -0
  263. package/docs/config/configuration.md +383 -0
  264. package/docs/core/CONST_API.md +88 -0
  265. package/docs/core/GLOBAL_APIS.md +190 -0
  266. package/docs/core/MEMORY_DETECTION.md +206 -0
  267. package/docs/core/MIDDLEWARE_ARCHITECTURE.md +227 -0
  268. package/docs/core/SERVER_CORE_ARCHITECTURE.md +68 -0
  269. package/docs/core/WORKSPACE_SYSTEM.md +97 -0
  270. package/docs/core/XHSC_CORE.md +90 -0
  271. package/docs/core/api-reference.md +406 -0
  272. package/docs/core/memory-management.md +350 -0
  273. package/docs/features/CONSOLE_INTERCEPTION_GUIDE.md +698 -0
  274. package/docs/features/CONSOLE_INTERCEPT_HOOK.md +516 -0
  275. package/docs/features/FILE_UPLOAD_GUIDE.md +486 -0
  276. package/docs/features/SYSTEM_INTELLIGENCE.md +81 -0
  277. package/docs/features/XJSON_API.md +445 -0
  278. package/docs/features/browser-terminal-control.md +707 -0
  279. package/docs/features/file-upload.md +674 -0
  280. package/docs/features/filesystem-api.md +242 -0
  281. package/docs/features/xfpm.md +157 -0
  282. package/docs/guides/EXAMPLES.md +483 -0
  283. package/docs/guides/FEATURES_OVERVIEW.md +59 -0
  284. package/docs/guides/INSTALLATION.md +114 -0
  285. package/docs/guides/QUICK_START.md +278 -0
  286. package/docs/guides/getting-started.md +472 -0
  287. package/docs/plugins/PLUGIN_API_IMPLEMENTATION.md +151 -0
  288. package/docs/plugins/PLUGIN_CORE_HOOKS.md +212 -0
  289. package/docs/plugins/PLUGIN_DATA_MASKING.md +53 -0
  290. package/docs/plugins/PLUGIN_DEVELOPMENT_GUIDE.md +1158 -0
  291. package/docs/plugins/PLUGIN_ERROR_HANDLING.md +82 -0
  292. package/docs/plugins/PLUGIN_MANAGEMENT_API.md +92 -0
  293. package/docs/plugins/PLUGIN_PERMISSIONS.md +123 -0
  294. package/docs/plugins/PLUGIN_STABILITY.md +66 -0
  295. package/docs/plugins/PLUGIN_SYSTEM_GUIDE.md +714 -0
  296. package/docs/plugins/plugins.md +550 -0
  297. package/docs/routing/HTTP_METHODS_REFERENCE.md +152 -0
  298. package/docs/routing/ROUTING.md +145 -0
  299. package/docs/routing/routing.md +456 -0
  300. package/docs/security/RATE_LIMIT_EXCLUSIONS.md +85 -0
  301. package/docs/security/ROUTE_BASED_SECURITY.md +373 -0
  302. package/docs/security/SECURITY.md +285 -0
  303. package/docs/security/TRUST_PROXY.md +353 -0
  304. package/docs/security/WILDCARD_CORS.md +284 -0
  305. package/docs/security/access-control-middleware.md +366 -0
  306. package/docs/security/advanced-cors-regexp.md +612 -0
  307. package/docs/security/enhanced-csp-configuration.md +520 -0
  308. package/docs/security/request-signature-auth.md +456 -0
  309. package/docs/security/security-features-overview.md +483 -0
  310. package/docs/system/README.md +202 -0
  311. package/docs/system/complete-reference.md +563 -0
  312. package/docs/system/configuration.md +438 -0
  313. package/docs/system/cpu-monitoring.md +462 -0
  314. package/docs/system/directory-management.md +611 -0
  315. package/docs/system/disk-information.md +554 -0
  316. package/docs/system/environment.md +445 -0
  317. package/docs/system/file-io.md +676 -0
  318. package/docs/system/memory-management.md +549 -0
  319. package/docs/system/migration-v5-to-v6.md +507 -0
  320. package/docs/system/network-statistics.md +645 -0
  321. package/docs/system/path-operations.md +506 -0
  322. package/docs/system/process-management.md +483 -0
  323. package/docs/system/search-filter.md +562 -0
  324. package/docs/system/sys-globals.md +119 -0
  325. package/docs/system/watching-streaming.md +99 -0
  326. package/examples/plugin-api-examples.ts +139 -0
  327. package/examples/security-example.ts +121 -0
  328. package/examples/security-showcase.ts +334 -0
  329. package/examples/server/package.json +0 -0
  330. package/examples/server/src/index.ts +5 -0
  331. package/examples/simple-cluster-example.ts +95 -0
  332. package/examples/xjson-example.ts +288 -0
  333. package/index.html +261 -0
  334. package/mods/ACPES/.acpes/2720a0cba:nehonix.a0cba72125.enc +1 -0
  335. package/mods/ACPES/LICENSE +21 -0
  336. package/mods/ACPES/README.md +203 -0
  337. package/mods/ACPES/docs/README.md +62 -0
  338. package/mods/ACPES/docs/advanced-encryption.md +248 -0
  339. package/mods/ACPES/docs/api-reference.md +216 -0
  340. package/mods/ACPES/docs/architecture.md +188 -0
  341. package/mods/ACPES/docs/getting-started.md +182 -0
  342. package/mods/ACPES/docs/platform-support.md +265 -0
  343. package/mods/ACPES/docs/security.md +292 -0
  344. package/mods/ACPES/docs/troubleshooting.md +0 -0
  345. package/mods/ACPES/package-lock.json +76 -0
  346. package/mods/ACPES/package.json +177 -0
  347. package/mods/ACPES/rollup.config.js +244 -0
  348. package/mods/ACPES/src/components/advancedEncryption.ts +354 -0
  349. package/mods/ACPES/src/components/compression.ts +52 -0
  350. package/mods/ACPES/src/components/encryption.ts +147 -0
  351. package/mods/ACPES/src/components/fingerprint.ts +45 -0
  352. package/mods/ACPES/src/components/index.ts +11 -0
  353. package/mods/ACPES/src/components/keyRotation.ts +299 -0
  354. package/mods/ACPES/src/components/security.ts +232 -0
  355. package/mods/ACPES/src/core/index.ts +11 -0
  356. package/mods/ACPES/src/core/platform.ts +112 -0
  357. package/mods/ACPES/src/core/storage.ts +730 -0
  358. package/mods/ACPES/src/index.ts +113 -0
  359. package/mods/ACPES/src/platforms/fallback.ts +80 -0
  360. package/mods/ACPES/src/platforms/index.ts +10 -0
  361. package/mods/ACPES/src/platforms/mobile.ts +101 -0
  362. package/mods/ACPES/src/platforms/node.ts +175 -0
  363. package/mods/ACPES/src/platforms/web.ts +147 -0
  364. package/mods/ACPES/src/types/index.ts +11 -0
  365. package/mods/ACPES/src/types/keyRotation.t.ts +20 -0
  366. package/mods/ACPES/src/types/options.ts +42 -0
  367. package/mods/ACPES/src/types/platform.ts +28 -0
  368. package/mods/ACPES/src/types/security.ts +39 -0
  369. package/mods/ACPES/src/types/storage.ts +23 -0
  370. package/mods/ACPES/src/utils/constants.ts +45 -0
  371. package/mods/ACPES/src/utils/helpers.ts +18 -0
  372. package/mods/ACPES/src/utils/index.ts +36 -0
  373. package/mods/ACPES/src/utils/prompt.ts +89 -0
  374. package/mods/ACPES/src/utils/validation.ts +51 -0
  375. package/mods/ACPES/tsconfig.json +42 -0
  376. package/mods/ACPES/yarn.lock +23 -0
  377. package/mods/memory-manager/Cargo.lock +974 -0
  378. package/mods/memory-manager/Cargo.toml +41 -0
  379. package/mods/memory-manager/NOTE.txt +3 -0
  380. package/mods/memory-manager/src/allocation_tracker.rs +371 -0
  381. package/mods/memory-manager/src/error.rs +294 -0
  382. package/mods/memory-manager/src/ffi.rs +469 -0
  383. package/mods/memory-manager/src/garbage_collector.rs +401 -0
  384. package/mods/memory-manager/src/lib.rs +138 -0
  385. package/mods/memory-manager/src/memory_manager.rs +429 -0
  386. package/mods/memory-manager/src/memory_pool.rs +564 -0
  387. package/mods/memory-manager/src/types.rs +285 -0
  388. package/mods/memory-manager/src/utils.rs +374 -0
  389. package/mods/security/LICENSE +21 -0
  390. package/mods/security/README.md +311 -0
  391. package/mods/security/bun.lock +1490 -0
  392. package/mods/security/docs/PKCE_API_DOCUMENTATION.md +255 -0
  393. package/mods/security/docs/api-reference.md +412 -0
  394. package/mods/security/docs/environment-setup.md +88 -0
  395. package/mods/security/docs/security-guide.md +395 -0
  396. package/mods/security/package-lock.json +7586 -0
  397. package/mods/security/package.json +249 -0
  398. package/mods/security/rollup.config.js +243 -0
  399. package/mods/security/src/algorithms/hash-algorithms.ts +894 -0
  400. package/mods/security/src/algorithms/registry.ts +82 -0
  401. package/mods/security/src/components/attestation.ts +1380 -0
  402. package/mods/security/src/components/cache/FastLRU.ts +402 -0
  403. package/mods/security/src/components/cache/SCC.ts +665 -0
  404. package/mods/security/src/components/cache/UFSIMC.ts +1399 -0
  405. package/mods/security/src/components/cache/cacheSys.ts +775 -0
  406. package/mods/security/src/components/cache/cacheSys.utils.ts +121 -0
  407. package/mods/security/src/components/cache/config/cache.config.ts +40 -0
  408. package/mods/security/src/components/cache/index.ts +1127 -0
  409. package/mods/security/src/components/cache/types/UFSIMC.type.ts +43 -0
  410. package/mods/security/src/components/cache/types/cache.type.ts +162 -0
  411. package/mods/security/src/components/cache/useCache.ts +287 -0
  412. package/mods/security/src/components/canary-tokens.ts +457 -0
  413. package/mods/security/src/components/entropy-augmentation.ts +611 -0
  414. package/mods/security/src/components/fortified-function/UFA/ultra-fast-allocator.ts +407 -0
  415. package/mods/security/src/components/fortified-function/UFA/ultra-fast-cache.ts +645 -0
  416. package/mods/security/src/components/fortified-function/UFA/ultra-fast-engine.ts +745 -0
  417. package/mods/security/src/components/fortified-function/const/exec.const.ts +26 -0
  418. package/mods/security/src/components/fortified-function/core/fortified-config.ts +443 -0
  419. package/mods/security/src/components/fortified-function/core/fortified-core.ts.txt +1347 -0
  420. package/mods/security/src/components/fortified-function/core/fortified-function-core.ts +785 -0
  421. package/mods/security/src/components/fortified-function/core/fortified-logger.ts +330 -0
  422. package/mods/security/src/components/fortified-function/core/index.ts +27 -0
  423. package/mods/security/src/components/fortified-function/core/mods/api-manager.ts +254 -0
  424. package/mods/security/src/components/fortified-function/core/mods/cache-manager.ts +148 -0
  425. package/mods/security/src/components/fortified-function/core/mods/execution-context.ts +135 -0
  426. package/mods/security/src/components/fortified-function/core/mods/execution-engine.ts +186 -0
  427. package/mods/security/src/components/fortified-function/core/mods/execution-router.ts +136 -0
  428. package/mods/security/src/components/fortified-function/core/mods/index.ts +20 -0
  429. package/mods/security/src/components/fortified-function/core/mods/memory-manager.ts +184 -0
  430. package/mods/security/src/components/fortified-function/core/mods/security-manager.ts +123 -0
  431. package/mods/security/src/components/fortified-function/core/mods/stats-manager.ts +194 -0
  432. package/mods/security/src/components/fortified-function/core/mods/timing-manager.ts +150 -0
  433. package/mods/security/src/components/fortified-function/engines/analytics-engine.ts +502 -0
  434. package/mods/security/src/components/fortified-function/engines/execution-engine.ts +520 -0
  435. package/mods/security/src/components/fortified-function/engines/index.ts +13 -0
  436. package/mods/security/src/components/fortified-function/engines/optimization-engine.ts +626 -0
  437. package/mods/security/src/components/fortified-function/fortified-function.ts +273 -0
  438. package/mods/security/src/components/fortified-function/index.ts +234 -0
  439. package/mods/security/src/components/fortified-function/performance/index.ts +15 -0
  440. package/mods/security/src/components/fortified-function/performance/performance-monitor.ts +293 -0
  441. package/mods/security/src/components/fortified-function/performance/performance-timer.ts +239 -0
  442. package/mods/security/src/components/fortified-function/security/index.ts +8 -0
  443. package/mods/security/src/components/fortified-function/security/security-handler.ts +283 -0
  444. package/mods/security/src/components/fortified-function/serializer/safe-serializer.ts +454 -0
  445. package/mods/security/src/components/fortified-function/smart-cache.ts +781 -0
  446. package/mods/security/src/components/fortified-function/types/fortified-types.ts +322 -0
  447. package/mods/security/src/components/fortified-function/types/types.ts +412 -0
  448. package/mods/security/src/components/fortified-function/types/ufa.type.ts +9 -0
  449. package/mods/security/src/components/fortified-function/utils/index.ts +13 -0
  450. package/mods/security/src/components/fortified-function/utils/utils.ts +98 -0
  451. package/mods/security/src/components/index.ts +37 -0
  452. package/mods/security/src/components/memory-hard.ts +1300 -0
  453. package/mods/security/src/components/post-quantum.ts +1366 -0
  454. package/mods/security/src/components/runtime-verification.ts +867 -0
  455. package/mods/security/src/components/secure-array/core/secure-array-core.ts +2028 -0
  456. package/mods/security/src/components/secure-array/crypto/ArrayCryptoHandler.ts +401 -0
  457. package/mods/security/src/components/secure-array/events/event-manager.ts +372 -0
  458. package/mods/security/src/components/secure-array/index.ts +295 -0
  459. package/mods/security/src/components/secure-array/metadata/metadata-manager.ts +406 -0
  460. package/mods/security/src/components/secure-array/serialization/ArraySerializationHandler.ts +469 -0
  461. package/mods/security/src/components/secure-array/types/index.ts +327 -0
  462. package/mods/security/src/components/secure-array/utils/id-generator.ts +86 -0
  463. package/mods/security/src/components/secure-array/utils/validation.ts +350 -0
  464. package/mods/security/src/components/secure-memory.ts +1155 -0
  465. package/mods/security/src/components/secure-object/README.md +217 -0
  466. package/mods/security/src/components/secure-object/core/secure-object-core.ts +2051 -0
  467. package/mods/security/src/components/secure-object/encryption/crypto-handler.ts +447 -0
  468. package/mods/security/src/components/secure-object/encryption/sensitive-keys.ts +227 -0
  469. package/mods/security/src/components/secure-object/events/event-manager.ts +246 -0
  470. package/mods/security/src/components/secure-object/index.ts +151 -0
  471. package/mods/security/src/components/secure-object/metadata/metadata-manager.ts +217 -0
  472. package/mods/security/src/components/secure-object/serialization/serialization-handler.ts +244 -0
  473. package/mods/security/src/components/secure-object/types/index.ts +124 -0
  474. package/mods/security/src/components/secure-object/utils/id-generator.ts +66 -0
  475. package/mods/security/src/components/secure-object/utils/validation.ts +288 -0
  476. package/mods/security/src/components/secure-serialization.ts +1178 -0
  477. package/mods/security/src/components/secure-string/README.md +275 -0
  478. package/mods/security/src/components/secure-string/advanced/entropy-analyzer.ts +402 -0
  479. package/mods/security/src/components/secure-string/advanced/performance-monitor.ts +527 -0
  480. package/mods/security/src/components/secure-string/advanced/quantum-safe.ts +385 -0
  481. package/mods/security/src/components/secure-string/buffer/buffer-manager.ts +246 -0
  482. package/mods/security/src/components/secure-string/core/secure-string-core.ts +1105 -0
  483. package/mods/security/src/components/secure-string/crypto/crypto-operations.ts +452 -0
  484. package/mods/security/src/components/secure-string/index.ts +274 -0
  485. package/mods/security/src/components/secure-string/operations/comparison-operations.ts +266 -0
  486. package/mods/security/src/components/secure-string/operations/string-operations.ts +333 -0
  487. package/mods/security/src/components/secure-string/types/index.ts +250 -0
  488. package/mods/security/src/components/secure-string/validation/string-validator.ts +401 -0
  489. package/mods/security/src/components/side-channel.ts +299 -0
  490. package/mods/security/src/components/tamper-evident-logging.ts +517 -0
  491. package/mods/security/src/const/DEFAULT_CONSOLE_CONFIG.ts +83 -0
  492. package/mods/security/src/const/buffer.const.ts +11 -0
  493. package/mods/security/src/core/crypt.ts +52 -0
  494. package/mods/security/src/core/crypto.ts +1001 -0
  495. package/mods/security/src/core/hash/hash-advanced.ts +530 -0
  496. package/mods/security/src/core/hash/hash-core.ts +556 -0
  497. package/mods/security/src/core/hash/hash-entropy.ts +359 -0
  498. package/mods/security/src/core/hash/hash-security.ts +538 -0
  499. package/mods/security/src/core/hash/hash-types.ts +107 -0
  500. package/mods/security/src/core/hash/hash-utils.ts +345 -0
  501. package/mods/security/src/core/hash/hash-validator.ts +382 -0
  502. package/mods/security/src/core/hash/index.ts +27 -0
  503. package/mods/security/src/core/hash.ts +34 -0
  504. package/mods/security/src/core/index.ts +6 -0
  505. package/mods/security/src/core/keys/ARCHITECTURE +82 -0
  506. package/mods/security/src/core/keys/algorithms/index.ts +9 -0
  507. package/mods/security/src/core/keys/algorithms/mods/Argon2Algo.ts +192 -0
  508. package/mods/security/src/core/keys/algorithms/mods/PBKDF2Algo.ts +374 -0
  509. package/mods/security/src/core/keys/algorithms/mods/ScryptAlgo.ts +401 -0
  510. package/mods/security/src/core/keys/index.ts +90 -0
  511. package/mods/security/src/core/keys/keys-core.ts +279 -0
  512. package/mods/security/src/core/keys/keys-logger.ts +278 -0
  513. package/mods/security/src/core/keys/keys-types.ts +255 -0
  514. package/mods/security/src/core/keys/keys-utils.ts +391 -0
  515. package/mods/security/src/core/keys.ts +135 -0
  516. package/mods/security/src/core/password/ARCHITECTURE +9 -0
  517. package/mods/security/src/core/password/index.ts +329 -0
  518. package/mods/security/src/core/password/password-algorithms.ts +519 -0
  519. package/mods/security/src/core/password/password-core.ts +394 -0
  520. package/mods/security/src/core/password/password-generator.ts +515 -0
  521. package/mods/security/src/core/password/password-migration.ts +324 -0
  522. package/mods/security/src/core/password/password-security.ts +649 -0
  523. package/mods/security/src/core/password/password-types.ts +246 -0
  524. package/mods/security/src/core/password/password-utils.ts +816 -0
  525. package/mods/security/src/core/password/swlist.ts +1117 -0
  526. package/mods/security/src/core/random/ARCHITECTURE +10 -0
  527. package/mods/security/src/core/random/index.ts +37 -0
  528. package/mods/security/src/core/random/random-core.ts +1115 -0
  529. package/mods/security/src/core/random/random-crypto.ts +446 -0
  530. package/mods/security/src/core/random/random-entropy.ts +453 -0
  531. package/mods/security/src/core/random/random-generators.ts +445 -0
  532. package/mods/security/src/core/random/random-security.ts +542 -0
  533. package/mods/security/src/core/random/random-sources.ts +461 -0
  534. package/mods/security/src/core/random/random-tokens.ts +421 -0
  535. package/mods/security/src/core/random/random-types.ts +255 -0
  536. package/mods/security/src/core/random.ts +14 -0
  537. package/mods/security/src/core/validators.ts +251 -0
  538. package/mods/security/src/generators/rsaKeyCalculator.ts +772 -0
  539. package/mods/security/src/helpers/Uint8Array.ts +392 -0
  540. package/mods/security/src/helpers/createEnu.ts +30 -0
  541. package/mods/security/src/helpers/express.middleware.helper.ts +59 -0
  542. package/mods/security/src/index.ts +1719 -0
  543. package/mods/security/src/types/console.ts +83 -0
  544. package/mods/security/src/types/global.ts +129 -0
  545. package/mods/security/src/types/index.ts +6 -0
  546. package/mods/security/src/types/options.ts +270 -0
  547. package/mods/security/src/types/random.ts +77 -0
  548. package/mods/security/src/types/secure-mem.type.ts +141 -0
  549. package/mods/security/src/types/secure-memory.ts +28 -0
  550. package/mods/security/src/types/security.ts +164 -0
  551. package/mods/security/src/types/stats.ts +149 -0
  552. package/mods/security/src/types/string.ts +69 -0
  553. package/mods/security/src/types.ts +582 -0
  554. package/mods/security/src/utils/CryptoAlgorithmUtils.ts +90 -0
  555. package/mods/security/src/utils/browserPolyfills.ts +288 -0
  556. package/mods/security/src/utils/constants.ts +169 -0
  557. package/mods/security/src/utils/crypto.type.ts +12 -0
  558. package/mods/security/src/utils/crypto.utils.ts +479 -0
  559. package/mods/security/src/utils/dataConverter.ts +89 -0
  560. package/mods/security/src/utils/detectInjection.ts +60 -0
  561. package/mods/security/src/utils/enc.test.ts +12 -0
  562. package/mods/security/src/utils/encoding.ts +999 -0
  563. package/mods/security/src/utils/errorHandler.ts +389 -0
  564. package/mods/security/src/utils/index.ts +10 -0
  565. package/mods/security/src/utils/memory/config-manager.ts +375 -0
  566. package/mods/security/src/utils/memory/event-manager.ts +320 -0
  567. package/mods/security/src/utils/memory/index.ts +304 -0
  568. package/mods/security/src/utils/memory/memory-manager.ts +1106 -0
  569. package/mods/security/src/utils/memory/memory-pool.ts +427 -0
  570. package/mods/security/src/utils/memory/reference-tracker.ts +454 -0
  571. package/mods/security/src/utils/memory/types.ts +255 -0
  572. package/mods/security/src/utils/memory-manager-new.ts +286 -0
  573. package/mods/security/src/utils/nodeModules.ts +307 -0
  574. package/mods/security/src/utils/patterns.ts +389 -0
  575. package/mods/security/src/utils/performanceMonitor.ts +412 -0
  576. package/mods/security/src/utils/securityUtils.ts +385 -0
  577. package/mods/security/src/utils/stats.ts +206 -0
  578. package/mods/security/src/utils/testing.ts +264 -0
  579. package/mods/security/tsconfig.json +40 -0
  580. package/package.json +57 -211
  581. package/quickdev.config.json +35 -0
  582. package/rollup.config.js +301 -0
  583. package/scripts/xys.run.js +1 -1
  584. package/secureStorage.xems +4 -0
  585. package/shared/logger/Logger.ts +841 -0
  586. package/shared/logger/index.ts +2 -0
  587. package/shared/logger/v2/Logger.ts..back.txt +812 -0
  588. package/shared/types/index.ts +2 -0
  589. package/shared/types/logger.type.ts +96 -0
  590. package/simulations/.meta/+xypriss.meta.ts +4 -0
  591. package/simulations/goxfpm-test2/.quickdevignore +1 -0
  592. package/simulations/goxfpm-test2/README.md +236 -0
  593. package/simulations/goxfpm-test2/package-lock.json +7108 -0
  594. package/simulations/goxfpm-test2/package.json +27 -0
  595. package/simulations/goxfpm-test2/quickdev.config.json +34 -0
  596. package/simulations/goxfpm-test2/src/configs/host.conf.ts +83 -0
  597. package/simulations/goxfpm-test2/src/configs/xypriss.config.ts +284 -0
  598. package/simulations/goxfpm-test2/src/middleware/index.ts +40 -0
  599. package/simulations/goxfpm-test2/src/middleware/security.mlw.ts +29 -0
  600. package/simulations/goxfpm-test2/src/middleware/validation.middleware.ts +53 -0
  601. package/simulations/goxfpm-test2/src/routes/index.ts +142 -0
  602. package/simulations/goxfpm-test2/src/schema/user.schema.ts +53 -0
  603. package/simulations/goxfpm-test2/src/server.ts +68 -0
  604. package/simulations/goxfpm-test2/tsconfig.json +35 -0
  605. package/simulations/goxfpm-test2/xypriss.config.json +21 -0
  606. package/simulations/lxpm_pkg_simulation/.quickdevignore +1 -0
  607. package/simulations/lxpm_pkg_simulation/README.md +236 -0
  608. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/.quickdevignore +1 -0
  609. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/README.md +236 -0
  610. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/package-lock.json +7108 -0
  611. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/package.json +31 -0
  612. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/quickdev.config.json +34 -0
  613. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/configs/host.conf.ts +83 -0
  614. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/configs/xypriss.config.ts +286 -0
  615. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/middleware/index.ts +40 -0
  616. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/middleware/security.mlw.ts +29 -0
  617. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/middleware/validation.middleware.ts +53 -0
  618. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/routes/index.ts +97 -0
  619. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/schema/user.schema.ts +53 -0
  620. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/src/server.ts +64 -0
  621. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/tsconfig.json +35 -0
  622. package/simulations/lxpm_pkg_simulation/lxpm_pkg_simulation/xypriss.config.json +21 -0
  623. package/simulations/lxpm_pkg_simulation/package-lock.json +7108 -0
  624. package/simulations/lxpm_pkg_simulation/package.json +31 -0
  625. package/simulations/lxpm_pkg_simulation/quickdev.config.json +34 -0
  626. package/simulations/lxpm_pkg_simulation/src/configs/host.conf.ts +83 -0
  627. package/simulations/lxpm_pkg_simulation/src/configs/xypriss.config.ts +286 -0
  628. package/simulations/lxpm_pkg_simulation/src/middleware/index.ts +40 -0
  629. package/simulations/lxpm_pkg_simulation/src/middleware/security.mlw.ts +29 -0
  630. package/simulations/lxpm_pkg_simulation/src/middleware/validation.middleware.ts +53 -0
  631. package/simulations/lxpm_pkg_simulation/src/routes/index.ts +97 -0
  632. package/simulations/lxpm_pkg_simulation/src/schema/user.schema.ts +53 -0
  633. package/simulations/lxpm_pkg_simulation/src/server.ts +64 -0
  634. package/simulations/lxpm_pkg_simulation/tsconfig.json +35 -0
  635. package/simulations/lxpm_pkg_simulation/xypriss.config.json +21 -0
  636. package/simulations/pkg/.meta/+xypriss.meta.ts +6 -0
  637. package/simulations/pkg/bun.lock +815 -0
  638. package/simulations/pkg/package-lock.json +4895 -0
  639. package/simulations/pkg/package.json +25 -0
  640. package/simulations/pkg/src/index.ts +15 -0
  641. package/simulations/pkg/src/logger.ts +0 -0
  642. package/simulations/pkg/tsconfig.json +29 -0
  643. package/simulations/pkg/xypriss.config.json +13 -0
  644. package/simulations/server/.meta/+xypriss.meta.ts +6 -0
  645. package/simulations/server/.quickdevignore +1 -0
  646. package/simulations/server/README.md +238 -0
  647. package/simulations/server/bun.lock +1184 -0
  648. package/simulations/server/package-lock.json +4829 -0
  649. package/simulations/server/package.json +25 -0
  650. package/simulations/server/quickdev.config.json +34 -0
  651. package/simulations/server/src/configs/host.conf.ts +83 -0
  652. package/simulations/server/src/configs/xypriss.config.ts +48 -0
  653. package/simulations/server/src/middleware/index.ts +40 -0
  654. package/simulations/server/src/middleware/security.mlw.ts +29 -0
  655. package/simulations/server/src/middleware/validation.middleware.ts +53 -0
  656. package/simulations/server/src/routes/index.ts +97 -0
  657. package/simulations/server/src/schema/user.schema.ts +8 -0
  658. package/simulations/server/src/server.ts +67 -0
  659. package/simulations/server/test_res.js +3 -0
  660. package/simulations/server/tsconfig.json +32 -0
  661. package/simulations/server/xypriss.config.json +22 -0
  662. package/simulations/test-project-goxfpm/.config +37 -0
  663. package/simulations/test-project-goxfpm/.quickdevignore +1 -0
  664. package/simulations/test-project-goxfpm/README.md +236 -0
  665. package/simulations/test-project-goxfpm/package-lock.json +7108 -0
  666. package/simulations/test-project-goxfpm/package.json +9 -0
  667. package/simulations/test-project-goxfpm/quickdev.config.json +34 -0
  668. package/simulations/test-project-goxfpm/src/configs/host.conf.ts +83 -0
  669. package/simulations/test-project-goxfpm/src/configs/xypriss.config.ts +302 -0
  670. package/simulations/test-project-goxfpm/src/middleware/index.ts +40 -0
  671. package/simulations/test-project-goxfpm/src/middleware/security.mlw.ts +29 -0
  672. package/simulations/test-project-goxfpm/src/middleware/validation.middleware.ts +53 -0
  673. package/simulations/test-project-goxfpm/src/routes/index.ts +142 -0
  674. package/simulations/test-project-goxfpm/src/schema/user.schema.ts +53 -0
  675. package/simulations/test-project-goxfpm/src/server.ts +68 -0
  676. package/simulations/test-project-goxfpm/tsconfig.json +35 -0
  677. package/simulations/test-project-goxfpm/xypriss.config.json +12 -0
  678. package/simulations/unpacking-test2/.quickdevignore +1 -0
  679. package/simulations/unpacking-test2/README.md +236 -0
  680. package/simulations/unpacking-test2/package-lock.json +7108 -0
  681. package/simulations/unpacking-test2/package.json +31 -0
  682. package/simulations/unpacking-test2/quickdev.config.json +34 -0
  683. package/simulations/unpacking-test2/src/configs/host.conf.ts +83 -0
  684. package/simulations/unpacking-test2/src/configs/xypriss.config.ts +286 -0
  685. package/simulations/unpacking-test2/src/middleware/index.ts +40 -0
  686. package/simulations/unpacking-test2/src/middleware/security.mlw.ts +29 -0
  687. package/simulations/unpacking-test2/src/middleware/validation.middleware.ts +53 -0
  688. package/simulations/unpacking-test2/src/routes/index.ts +97 -0
  689. package/simulations/unpacking-test2/src/schema/user.schema.ts +53 -0
  690. package/simulations/unpacking-test2/src/server.ts +64 -0
  691. package/simulations/unpacking-test2/tsconfig.json +35 -0
  692. package/simulations/unpacking-test2/xypriss.config.json +21 -0
  693. package/simulations/xems-realworld-testing/README.md +73 -0
  694. package/simulations/xems-realworld-testing/eslint.config.js +23 -0
  695. package/simulations/xems-realworld-testing/index.html +13 -0
  696. package/simulations/xems-realworld-testing/package.json +32 -0
  697. package/simulations/xems-realworld-testing/public/vite.svg +1 -0
  698. package/simulations/xems-realworld-testing/src/App.css +42 -0
  699. package/simulations/xems-realworld-testing/src/App.tsx +56 -0
  700. package/simulations/xems-realworld-testing/src/api.ts +104 -0
  701. package/simulations/xems-realworld-testing/src/components/Dashboard.tsx +219 -0
  702. package/simulations/xems-realworld-testing/src/components/LoginForm.tsx +155 -0
  703. package/simulations/xems-realworld-testing/src/components/RegisterForm.tsx +171 -0
  704. package/simulations/xems-realworld-testing/src/index.css +2 -0
  705. package/simulations/xems-realworld-testing/src/main.tsx +10 -0
  706. package/simulations/xems-realworld-testing/tsconfig.app.json +28 -0
  707. package/simulations/xems-realworld-testing/tsconfig.json +7 -0
  708. package/simulations/xems-realworld-testing/tsconfig.node.json +26 -0
  709. package/simulations/xems-realworld-testing/vite.config.ts +9 -0
  710. package/simulations/xems-server-test/.quickdevignore +1 -0
  711. package/simulations/xems-server-test/README.md +236 -0
  712. package/simulations/xems-server-test/package-lock.json +7108 -0
  713. package/simulations/xems-server-test/package.json +30 -0
  714. package/simulations/xems-server-test/quickdev.config.json +34 -0
  715. package/simulations/xems-server-test/src/configs/host.conf.ts +83 -0
  716. package/simulations/xems-server-test/src/configs/xypriss.config.ts +286 -0
  717. package/simulations/xems-server-test/src/middleware/index.ts +40 -0
  718. package/simulations/xems-server-test/src/middleware/security.mlw.ts +29 -0
  719. package/simulations/xems-server-test/src/middleware/validation.middleware.ts +53 -0
  720. package/simulations/xems-server-test/src/routes/index.ts +97 -0
  721. package/simulations/xems-server-test/src/schema/user.schema.ts +53 -0
  722. package/simulations/xems-server-test/src/server.ts +64 -0
  723. package/simulations/xems-server-test/tsconfig.json +35 -0
  724. package/simulations/xems-server-test/xypriss.config.json +21 -0
  725. package/src/FiUp.ts +102 -0
  726. package/src/cache/CacheFactory.ts +850 -0
  727. package/src/cache/SecureCacheAdapter.ts +1495 -0
  728. package/src/cache/cache-engine.ts +586 -0
  729. package/src/cache/index.ts +28 -0
  730. package/src/cache/type.ts +141 -0
  731. package/src/config.ts +455 -0
  732. package/src/const.ts +730 -0
  733. package/src/encryption/EncryptionService.ts +597 -0
  734. package/src/encryption/index.ts +36 -0
  735. package/src/file-upload.ts +288 -0
  736. package/src/index.ts +183 -0
  737. package/src/middleware/XJsonResponseHandler.ts +210 -0
  738. package/src/middleware/XemsSessionMiddleware.ts +125 -0
  739. package/src/middleware/XyPrissMiddlewareAPI.ts +518 -0
  740. package/src/middleware/built-in/BuiltInMiddleware.ts +567 -0
  741. package/src/middleware/built-in/security/BrowserOnlyProtector.ts +702 -0
  742. package/src/middleware/built-in/security/CommandInjectionDetector.ts +265 -0
  743. package/src/middleware/built-in/security/LDAPInjectionDetector.ts +113 -0
  744. package/src/middleware/built-in/security/MobileOnlyProtector.ts +664 -0
  745. package/src/middleware/built-in/security/PathTraversalDetector.ts +265 -0
  746. package/src/middleware/built-in/security/README.md +208 -0
  747. package/src/middleware/built-in/security/RequestSignatureProtector.ts +626 -0
  748. package/src/middleware/built-in/security/SQLInjectionDetector.ts +434 -0
  749. package/src/middleware/built-in/security/TerminalOnlyProtector.ts +624 -0
  750. package/src/middleware/built-in/security/XXEProtector.ts +212 -0
  751. package/src/middleware/built-in/security/index.ts +26 -0
  752. package/src/middleware/built-in/security/types.ts +175 -0
  753. package/src/middleware/safe-json-middleware.ts +236 -0
  754. package/src/middleware/security-middleware.ts +1541 -0
  755. package/src/plugins/PluginManager.ts +487 -0
  756. package/src/plugins/README.md +25 -0
  757. package/src/plugins/api/PluginAPI.ts +220 -0
  758. package/src/plugins/const/PluginHookIds.ts +76 -0
  759. package/src/plugins/core/PluginManager.ts +977 -0
  760. package/src/plugins/modules/PluginEngine.ts +676 -0
  761. package/src/plugins/modules/PluginRegistry.ts +419 -0
  762. package/src/plugins/modules/PluginRegistry.ts.bak +408 -0
  763. package/src/plugins/modules/builtin/SmartCachePlugin.ts +1082 -0
  764. package/src/plugins/modules/builtin/server-maintenance-plugin.ts +698 -0
  765. package/src/plugins/modules/core/CachePlugin.ts +2523 -0
  766. package/src/plugins/modules/index.ts +48 -0
  767. package/src/plugins/modules/network/builtin/CompressionPlugin.ts +343 -0
  768. package/src/plugins/modules/network/builtin/ConnectionPlugin.ts +941 -0
  769. package/src/plugins/modules/network/builtin/ProxyPlugin.ts +522 -0
  770. package/src/plugins/modules/network/core/NetworkPlugin.ts +323 -0
  771. package/src/plugins/modules/network/core/NetworkPluginFactory.ts +47 -0
  772. package/src/plugins/modules/network/index.ts +28 -0
  773. package/src/plugins/modules/network/types/NetworkTypes.ts +331 -0
  774. package/src/plugins/modules/network/types/cnp.type.ts +17 -0
  775. package/src/plugins/modules/network/utils/NetworkPluginUtils.ts +69 -0
  776. package/src/plugins/modules/types/PluginTypes.ts +277 -0
  777. package/src/plugins/modules/xems/XemsBuiltinPlugin.ts +291 -0
  778. package/src/plugins/modules/xems/XemsPlugin.ts +484 -0
  779. package/src/plugins/modules/xems/index.ts +2 -0
  780. package/src/plugins/plugin-manager.ts +188 -0
  781. package/src/plugins/route-optimization-plugin.ts +559 -0
  782. package/src/plugins/types/PluginTypes.ts +187 -0
  783. package/src/plugins/types/index.ts +84 -0
  784. package/src/quick-start.ts +41 -0
  785. package/src/schemas/plugingSchema.ts +42 -0
  786. package/src/server/FastServer.ts +1196 -0
  787. package/src/server/ServerFactory.ts +105 -0
  788. package/src/server/components/fastapi/CacheManager.ts +292 -0
  789. package/src/server/components/fastapi/FileUploadManager.ts +289 -0
  790. package/src/server/components/fastapi/FileWatcherManager.ts +646 -0
  791. package/src/server/components/fastapi/MonitoringManager.ts +375 -0
  792. package/src/server/components/fastapi/PerformanceManager.ts +382 -0
  793. package/src/server/components/fastapi/RedirectManager.ts +730 -0
  794. package/src/server/components/fastapi/RequestProcessor.ts +404 -0
  795. package/src/server/components/fastapi/RouteManager.ts +250 -0
  796. package/src/server/components/fastapi/WorkerPoolComponent.ts +114 -0
  797. package/src/server/components/fastapi/console/ConsoleInterceptor.ts +1202 -0
  798. package/src/server/components/fastapi/console/encryption/ConsoleEncryption.ts +299 -0
  799. package/src/server/components/fastapi/console/types.ts +318 -0
  800. package/src/server/components/fastapi/smart-routes.ts +485 -0
  801. package/src/server/components/fastapi/templates/redirectHtml.html +863 -0
  802. package/src/server/components/fastapi/templates/redirectTemp.ts +105 -0
  803. package/src/server/components/fastapi/typescript/TypeScriptChecker.ts +502 -0
  804. package/src/server/components/lifecycle/slcm.type.ts +45 -0
  805. package/src/server/components/multi-server/MultiServerApp.ts +667 -0
  806. package/src/server/components/multi-server/MultiServerManager.ts +451 -0
  807. package/src/server/conf/networkConnectionConf.ts +26 -0
  808. package/src/server/conf/proxyConfig.ts +21 -0
  809. package/src/server/conf/rateLimitConfig.ts +57 -0
  810. package/src/server/const/ExecutionPredictor_EP.const.ts +88 -0
  811. package/src/server/const/FileWatcher.config.ts +97 -0
  812. package/src/server/const/default.ts +366 -0
  813. package/src/server/const/http.ts +32 -0
  814. package/src/server/core/HttpServer.ts +574 -0
  815. package/src/server/core/RequestApp.ts +106 -0
  816. package/src/server/core/RequestEnhancer.ts +348 -0
  817. package/src/server/core/ResponseEnhancer.ts +588 -0
  818. package/src/server/core/StartupProcessor.ts +168 -0
  819. package/src/server/core/VirtualServer.ts +32 -0
  820. package/src/server/core/XHSCBridge.ts +779 -0
  821. package/src/server/core/XHSCProtocol.ts +389 -0
  822. package/src/server/core/XyDiagnosticsManager.ts +88 -0
  823. package/src/server/core/XyLifecycleManager.ts +348 -0
  824. package/src/server/core/XyModuleManager.ts +195 -0
  825. package/src/server/core/XyRoutingManager.ts +251 -0
  826. package/src/server/core/XyServerCreator.ts +117 -0
  827. package/src/server/core/XyprissApp.ts +758 -0
  828. package/src/server/core/request/XyRequestManager.ts +288 -0
  829. package/src/server/handlers/NotFoundHandler.ts +99 -0
  830. package/src/server/handlers/templates/notFoundTemplate.ts +662 -0
  831. package/src/server/middleware/MiddlewareManager.ts +296 -0
  832. package/src/server/optimization/ExecutionPredictor.nxs +0 -0
  833. package/src/server/optimization/ExecutionPredictor.ts +274 -0
  834. package/src/server/optimization/PerformanceProfiler.ts +318 -0
  835. package/src/server/optimization/RequestPreCompiler.ts +928 -0
  836. package/src/server/optimization/UltraFastOptimizer.ts +545 -0
  837. package/src/server/optimization/performance-monitor.ts +241 -0
  838. package/src/server/routing/Router.ts +506 -0
  839. package/src/server/routing/index.ts +14 -0
  840. package/src/server/service/Reload/FileWatcher.ts +982 -0
  841. package/src/server/service/Reload/HotReloader.ts +1050 -0
  842. package/src/server/service/Reload/exec/ExecutableBuilder.ts +419 -0
  843. package/src/server/service/Reload/exec/TypeScriptExecutor.ts +439 -0
  844. package/src/server/service/Reload/exec/build-executable.ts +50 -0
  845. package/src/server/service/Reload/types/TSExecutor.type.ts +18 -0
  846. package/src/server/service/Reload/types/fw.types.ts +117 -0
  847. package/src/server/service/Reload/types/hotreloader.ts +29 -0
  848. package/src/server/service/Reload/types/quickdev.type.ts +30 -0
  849. package/src/server/utils/ConfigLoader.ts +437 -0
  850. package/src/server/utils/PortManager.ts +316 -0
  851. package/src/server/utils/WorkerModeHandler.ts +72 -0
  852. package/src/server/utils/es_modules.ts +6 -0
  853. package/src/server/utils/forceClosePort.ts +427 -0
  854. package/src/server/utils/shouldRegisterRouteOnServer.ts +39 -0
  855. package/src/server/utils/trustProxy.ts +1005 -0
  856. package/src/server/utils/wildcardMatcher.ts +281 -0
  857. package/src/sys/FSApi.ts +1271 -0
  858. package/src/sys/PathApi.ts +209 -0
  859. package/src/sys/SysApi.ts +490 -0
  860. package/src/sys/System.ts +36 -0
  861. package/src/sys/XyPrissCache.ts +84 -0
  862. package/src/sys/XyPrissRunner.ts +299 -0
  863. package/src/sys/cmdr.ts +9 -0
  864. package/src/sys/types.ts +250 -0
  865. package/src/sys.ts +473 -0
  866. package/src/types/CpuMon.t.ts +46 -0
  867. package/src/types/ExecutionPredictor.type.ts +26 -0
  868. package/src/types/FiUp.type.ts +90 -0
  869. package/src/types/NotFoundConfig.ts +114 -0
  870. package/src/types/README.md +277 -0
  871. package/src/types/ReqPreCompiler.type.ts +55 -0
  872. package/src/types/UFOptimizer.type.ts +49 -0
  873. package/src/types/XyPrissRouter.types.ts +27 -0
  874. package/src/types/bun_cluster.t.ts +42 -0
  875. package/src/types/cluster.ipc.t.ts +198 -0
  876. package/src/types/components/CacheManager.type.ts +8 -0
  877. package/src/types/components/FWM.type.ts +10 -0
  878. package/src/types/components/MonitoringM.type.ts +13 -0
  879. package/src/types/components/PerfomanceMonitory.type.ts +13 -0
  880. package/src/types/components/PlugingM.type.ts +9 -0
  881. package/src/types/components/ReqProcessor.type.ts +14 -0
  882. package/src/types/components/RouteM.type.ts +12 -0
  883. package/src/types/httpServer.type.ts +154 -0
  884. package/src/types/index.ts +280 -0
  885. package/src/types/middleware-api.types.ts +220 -0
  886. package/src/types/middlewareManager.types.ts +20 -0
  887. package/src/types/mod/cache.ts +491 -0
  888. package/src/types/mod/core.ts +426 -0
  889. package/src/types/mod/monitoring.ts +544 -0
  890. package/src/types/mod/performance.ts +470 -0
  891. package/src/types/mod/routing.ts +454 -0
  892. package/src/types/mod/security.ts +1622 -0
  893. package/src/types/perfomance.ts +58 -0
  894. package/src/types/trustProxy.ts +148 -0
  895. package/src/types/types.ts +2189 -0
  896. package/src/types/xems.type.ts +89 -0
  897. package/src/utils/DotEnvLoader.ts +84 -0
  898. package/src/utils/mergeWithDefaults.ts +223 -0
  899. package/src/xhs/cluster/XHSCWorker.ts +238 -0
  900. package/tools/memory-cli/build.sh +36 -0
  901. package/tools/memory-cli/main.go +401 -0
  902. package/tools/xfpm-go/LICENSE +13 -0
  903. package/tools/xfpm-go/README.md +82 -0
  904. package/tools/xfpm-go/build.sh +91 -0
  905. package/tools/xfpm-go/cmd/xfpm/exec.go +68 -0
  906. package/tools/xfpm-go/cmd/xfpm/init.go +491 -0
  907. package/tools/xfpm-go/cmd/xfpm/list.go +287 -0
  908. package/tools/xfpm-go/cmd/xfpm/main.go +304 -0
  909. package/tools/xfpm-go/cmd/xfpm/run.go +107 -0
  910. package/tools/xfpm-go/cmd/xfpm/uninstall.go +233 -0
  911. package/tools/xfpm-go/cmd/xfpm/update.go +36 -0
  912. package/tools/xfpm-go/dev.sh +1 -0
  913. package/tools/xfpm-go/go.mod +46 -0
  914. package/tools/xfpm-go/go.sum +173 -0
  915. package/tools/xfpm-go/internal/core/cas.go +297 -0
  916. package/tools/xfpm-go/internal/core/config.go +83 -0
  917. package/tools/xfpm-go/internal/core/extractor.go +54 -0
  918. package/tools/xfpm-go/internal/core/installer.go +505 -0
  919. package/tools/xfpm-go/internal/core/project.go +53 -0
  920. package/tools/xfpm-go/internal/core/registry.go +303 -0
  921. package/tools/xfpm-go/internal/core/resolver.go +471 -0
  922. package/tools/xfpm-go/internal/core/script_runner.go +175 -0
  923. package/tools/xfpm-go/internal/utils/lib_version.go +5 -0
  924. package/tools/xfpm-go/internal/utils/logger.go +145 -0
  925. package/tools/xfpm-go/internal/utils/updater.go +131 -0
  926. package/tools/xfpm-go/pkg/npm/README.md +39 -0
  927. package/tools/xfpm-go/pkg/npm/install.js +51 -0
  928. package/tools/xfpm-go/pkg/npm/package.json +29 -0
  929. package/tools/xfpm-go/scripts/bridge.js +130 -0
  930. package/tools/xfpm-go/scripts/install.js +146 -0
  931. package/tools/xfpm-go/scripts/install.ps1 +140 -0
  932. package/tools/xfpm-go/scripts/install.sh +117 -0
  933. package/tools/xfpm-go/test/package/LICENSE +21 -0
  934. package/tools/xfpm-go/test/package/README.md +218 -0
  935. package/tools/xfpm-go/test/package/package.json +115 -0
  936. package/tools/xfpm-go/test.tgz +0 -0
  937. package/tools/xfpm-go/utils/helper_5936.ts +9 -0
  938. package/tools/xfpm-go/version.json +10 -0
  939. package/tools/xfpm-go/xfpm +0 -0
  940. package/tools/xyp/.intentionally-empty-file.o +0 -0
  941. package/tools/xyp/Cargo.lock +2602 -0
  942. package/tools/xyp/Cargo.toml +56 -0
  943. package/tools/xyp/README.md +78 -0
  944. package/tools/xyp/dev +3 -0
  945. package/tools/xyp/index.js +75 -0
  946. package/tools/xyp/install.js +286 -0
  947. package/tools/xyp/package copy.json +64 -0
  948. package/tools/xyp/package.json +65 -0
  949. package/tools/xyp/scripts/build.js +123 -0
  950. package/tools/xyp/scripts/build.sh +85 -0
  951. package/tools/xyp/src/commands/exec.rs +113 -0
  952. package/tools/xyp/src/commands/init.rs +378 -0
  953. package/tools/xyp/src/commands/install.rs +387 -0
  954. package/tools/xyp/src/commands/list.rs +62 -0
  955. package/tools/xyp/src/commands/mod.rs +7 -0
  956. package/tools/xyp/src/commands/run.rs +98 -0
  957. package/tools/xyp/src/commands/start.rs +18 -0
  958. package/tools/xyp/src/commands/uninstall.rs +156 -0
  959. package/tools/xyp/src/core/cas.rs +250 -0
  960. package/tools/xyp/src/core/config.rs +87 -0
  961. package/tools/xyp/src/core/extractor.rs +85 -0
  962. package/tools/xyp/src/core/installer.rs +683 -0
  963. package/tools/xyp/src/core/mod.rs +7 -0
  964. package/tools/xyp/src/core/registry.rs +333 -0
  965. package/tools/xyp/src/core/resolver.rs +830 -0
  966. package/tools/xyp/src/core/script_runner.rs +291 -0
  967. package/tools/xyp/src/main.rs +264 -0
  968. package/tools/xyp/src/utils/mod.rs +1 -0
  969. package/tools/xyp/src/utils/shell.rs +89 -0
  970. package/tools/xyp/xfpm +0 -0
  971. package/tools/xypriss-sys-go/README.md +47 -0
  972. package/tools/xypriss-sys-go/build.sh +139 -0
  973. package/tools/xypriss-sys-go/cmd/xsys/main.go +44 -0
  974. package/tools/xypriss-sys-go/go.mod +35 -0
  975. package/tools/xypriss-sys-go/go.sum +80 -0
  976. package/tools/xypriss-sys-go/internal/cli/archive.go +142 -0
  977. package/tools/xypriss-sys-go/internal/cli/fs.go +462 -0
  978. package/tools/xypriss-sys-go/internal/cli/monitor.go +110 -0
  979. package/tools/xypriss-sys-go/internal/cli/path.go +166 -0
  980. package/tools/xypriss-sys-go/internal/cli/root.go +140 -0
  981. package/tools/xypriss-sys-go/internal/cli/search.go +156 -0
  982. package/tools/xypriss-sys-go/internal/cli/server.go +240 -0
  983. package/tools/xypriss-sys-go/internal/cli/sys.go +321 -0
  984. package/tools/xypriss-sys-go/internal/cluster/intelligence.go +159 -0
  985. package/tools/xypriss-sys-go/internal/cluster/intelligence_unix.go +50 -0
  986. package/tools/xypriss-sys-go/internal/cluster/intelligence_windows.go +39 -0
  987. package/tools/xypriss-sys-go/internal/cluster/manager.go +226 -0
  988. package/tools/xypriss-sys-go/internal/cluster/strategy.go +41 -0
  989. package/tools/xypriss-sys-go/internal/cluster/worker.go +343 -0
  990. package/tools/xypriss-sys-go/internal/cluster/worker_unix.go +45 -0
  991. package/tools/xypriss-sys-go/internal/cluster/worker_windows.go +32 -0
  992. package/tools/xypriss-sys-go/internal/fs/fs.go +783 -0
  993. package/tools/xypriss-sys-go/internal/handlers/archive.go +68 -0
  994. package/tools/xypriss-sys-go/internal/handlers/fs.go +153 -0
  995. package/tools/xypriss-sys-go/internal/handlers/monitor.go +54 -0
  996. package/tools/xypriss-sys-go/internal/handlers/path.go +79 -0
  997. package/tools/xypriss-sys-go/internal/handlers/search.go +60 -0
  998. package/tools/xypriss-sys-go/internal/handlers/sys.go +110 -0
  999. package/tools/xypriss-sys-go/internal/ipc/bridge.go +352 -0
  1000. package/tools/xypriss-sys-go/internal/ipc/circuit_breaker.go +93 -0
  1001. package/tools/xypriss-sys-go/internal/ipc/metrics.go +85 -0
  1002. package/tools/xypriss-sys-go/internal/ipc/types.go +102 -0
  1003. package/tools/xypriss-sys-go/internal/proxy/proxy.go +538 -0
  1004. package/tools/xypriss-sys-go/internal/router/router.go +332 -0
  1005. package/tools/xypriss-sys-go/internal/server/server.go +658 -0
  1006. package/tools/xypriss-sys-go/internal/sys/sys.go +432 -0
  1007. package/tools/xypriss-sys-go/internal/sys/types.go +167 -0
  1008. package/tools/xypriss-sys-go/internal/watcher/watcher.go +104 -0
  1009. package/tsconfig.json +51 -0
  1010. package/vault.xems +1 -0
  1011. package/xfpm +0 -0
  1012. package/xypriss.config.jsonc +22 -0
  1013. package/dist/cjs/index.js +0 -2
  1014. package/dist/cjs/mods/security/src/algorithms/hash-algorithms.js +0 -718
  1015. package/dist/cjs/mods/security/src/algorithms/hash-algorithms.js.map +0 -1
  1016. package/dist/cjs/mods/security/src/algorithms/registry.js +0 -83
  1017. package/dist/cjs/mods/security/src/algorithms/registry.js.map +0 -1
  1018. package/dist/cjs/mods/security/src/components/attestation.js +0 -1065
  1019. package/dist/cjs/mods/security/src/components/attestation.js.map +0 -1
  1020. package/dist/cjs/mods/security/src/components/cache/FastLRU.js +0 -323
  1021. package/dist/cjs/mods/security/src/components/cache/FastLRU.js.map +0 -1
  1022. package/dist/cjs/mods/security/src/components/cache/UFSIMC.js +0 -1133
  1023. package/dist/cjs/mods/security/src/components/cache/UFSIMC.js.map +0 -1
  1024. package/dist/cjs/mods/security/src/components/cache/cacheSys.js +0 -624
  1025. package/dist/cjs/mods/security/src/components/cache/cacheSys.js.map +0 -1
  1026. package/dist/cjs/mods/security/src/components/cache/cacheSys.utils.js +0 -127
  1027. package/dist/cjs/mods/security/src/components/cache/cacheSys.utils.js.map +0 -1
  1028. package/dist/cjs/mods/security/src/components/cache/config/cache.config.js +0 -39
  1029. package/dist/cjs/mods/security/src/components/cache/config/cache.config.js.map +0 -1
  1030. package/dist/cjs/mods/security/src/components/cache/index.js +0 -374
  1031. package/dist/cjs/mods/security/src/components/cache/index.js.map +0 -1
  1032. package/dist/cjs/mods/security/src/components/cache/useCache.js +0 -235
  1033. package/dist/cjs/mods/security/src/components/cache/useCache.js.map +0 -1
  1034. package/dist/cjs/mods/security/src/components/canary-tokens.js +0 -351
  1035. package/dist/cjs/mods/security/src/components/canary-tokens.js.map +0 -1
  1036. package/dist/cjs/mods/security/src/components/entropy-augmentation.js +0 -478
  1037. package/dist/cjs/mods/security/src/components/entropy-augmentation.js.map +0 -1
  1038. package/dist/cjs/mods/security/src/components/fortified-function/UFA/ultra-fast-allocator.js +0 -338
  1039. package/dist/cjs/mods/security/src/components/fortified-function/UFA/ultra-fast-allocator.js.map +0 -1
  1040. package/dist/cjs/mods/security/src/components/fortified-function/UFA/ultra-fast-cache.js +0 -536
  1041. package/dist/cjs/mods/security/src/components/fortified-function/UFA/ultra-fast-cache.js.map +0 -1
  1042. package/dist/cjs/mods/security/src/components/fortified-function/UFA/ultra-fast-engine.js +0 -614
  1043. package/dist/cjs/mods/security/src/components/fortified-function/UFA/ultra-fast-engine.js.map +0 -1
  1044. package/dist/cjs/mods/security/src/components/fortified-function/const/exec.const.js +0 -18
  1045. package/dist/cjs/mods/security/src/components/fortified-function/const/exec.const.js.map +0 -1
  1046. package/dist/cjs/mods/security/src/components/fortified-function/core/fortified-config.js +0 -356
  1047. package/dist/cjs/mods/security/src/components/fortified-function/core/fortified-config.js.map +0 -1
  1048. package/dist/cjs/mods/security/src/components/fortified-function/core/fortified-function-core.js +0 -520
  1049. package/dist/cjs/mods/security/src/components/fortified-function/core/fortified-function-core.js.map +0 -1
  1050. package/dist/cjs/mods/security/src/components/fortified-function/core/fortified-logger.js +0 -246
  1051. package/dist/cjs/mods/security/src/components/fortified-function/core/fortified-logger.js.map +0 -1
  1052. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/api-manager.js +0 -189
  1053. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/api-manager.js.map +0 -1
  1054. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/cache-manager.js +0 -107
  1055. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/cache-manager.js.map +0 -1
  1056. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/execution-context.js +0 -105
  1057. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/execution-context.js.map +0 -1
  1058. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/execution-engine.js +0 -127
  1059. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/execution-engine.js.map +0 -1
  1060. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/execution-router.js +0 -93
  1061. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/execution-router.js.map +0 -1
  1062. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/memory-manager.js +0 -147
  1063. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/memory-manager.js.map +0 -1
  1064. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/security-manager.js +0 -102
  1065. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/security-manager.js.map +0 -1
  1066. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/stats-manager.js +0 -159
  1067. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/stats-manager.js.map +0 -1
  1068. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/timing-manager.js +0 -125
  1069. package/dist/cjs/mods/security/src/components/fortified-function/core/mods/timing-manager.js.map +0 -1
  1070. package/dist/cjs/mods/security/src/components/fortified-function/engines/analytics-engine.js +0 -370
  1071. package/dist/cjs/mods/security/src/components/fortified-function/engines/analytics-engine.js.map +0 -1
  1072. package/dist/cjs/mods/security/src/components/fortified-function/engines/execution-engine.js +0 -402
  1073. package/dist/cjs/mods/security/src/components/fortified-function/engines/execution-engine.js.map +0 -1
  1074. package/dist/cjs/mods/security/src/components/fortified-function/index.js +0 -174
  1075. package/dist/cjs/mods/security/src/components/fortified-function/index.js.map +0 -1
  1076. package/dist/cjs/mods/security/src/components/fortified-function/performance/performance-monitor.js +0 -240
  1077. package/dist/cjs/mods/security/src/components/fortified-function/performance/performance-monitor.js.map +0 -1
  1078. package/dist/cjs/mods/security/src/components/fortified-function/performance/performance-timer.js +0 -188
  1079. package/dist/cjs/mods/security/src/components/fortified-function/performance/performance-timer.js.map +0 -1
  1080. package/dist/cjs/mods/security/src/components/fortified-function/security/security-handler.js +0 -254
  1081. package/dist/cjs/mods/security/src/components/fortified-function/security/security-handler.js.map +0 -1
  1082. package/dist/cjs/mods/security/src/components/fortified-function/serializer/safe-serializer.js +0 -350
  1083. package/dist/cjs/mods/security/src/components/fortified-function/serializer/safe-serializer.js.map +0 -1
  1084. package/dist/cjs/mods/security/src/components/fortified-function/smart-cache.js +0 -693
  1085. package/dist/cjs/mods/security/src/components/fortified-function/smart-cache.js.map +0 -1
  1086. package/dist/cjs/mods/security/src/components/fortified-function/types/types.js +0 -16
  1087. package/dist/cjs/mods/security/src/components/fortified-function/types/types.js.map +0 -1
  1088. package/dist/cjs/mods/security/src/components/fortified-function/utils/utils.js +0 -76
  1089. package/dist/cjs/mods/security/src/components/fortified-function/utils/utils.js.map +0 -1
  1090. package/dist/cjs/mods/security/src/components/memory-hard.js +0 -922
  1091. package/dist/cjs/mods/security/src/components/memory-hard.js.map +0 -1
  1092. package/dist/cjs/mods/security/src/components/post-quantum.js +0 -323
  1093. package/dist/cjs/mods/security/src/components/post-quantum.js.map +0 -1
  1094. package/dist/cjs/mods/security/src/components/runtime-verification.js +0 -645
  1095. package/dist/cjs/mods/security/src/components/runtime-verification.js.map +0 -1
  1096. package/dist/cjs/mods/security/src/components/secure-array/core/secure-array-core.js +0 -1572
  1097. package/dist/cjs/mods/security/src/components/secure-array/core/secure-array-core.js.map +0 -1
  1098. package/dist/cjs/mods/security/src/components/secure-array/crypto/ArrayCryptoHandler.js +0 -330
  1099. package/dist/cjs/mods/security/src/components/secure-array/crypto/ArrayCryptoHandler.js.map +0 -1
  1100. package/dist/cjs/mods/security/src/components/secure-array/events/event-manager.js +0 -270
  1101. package/dist/cjs/mods/security/src/components/secure-array/events/event-manager.js.map +0 -1
  1102. package/dist/cjs/mods/security/src/components/secure-array/index.js +0 -66
  1103. package/dist/cjs/mods/security/src/components/secure-array/index.js.map +0 -1
  1104. package/dist/cjs/mods/security/src/components/secure-array/metadata/metadata-manager.js +0 -331
  1105. package/dist/cjs/mods/security/src/components/secure-array/metadata/metadata-manager.js.map +0 -1
  1106. package/dist/cjs/mods/security/src/components/secure-array/serialization/ArraySerializationHandler.js +0 -390
  1107. package/dist/cjs/mods/security/src/components/secure-array/serialization/ArraySerializationHandler.js.map +0 -1
  1108. package/dist/cjs/mods/security/src/components/secure-array/types/index.js +0 -87
  1109. package/dist/cjs/mods/security/src/components/secure-array/types/index.js.map +0 -1
  1110. package/dist/cjs/mods/security/src/components/secure-array/utils/id-generator.js +0 -80
  1111. package/dist/cjs/mods/security/src/components/secure-array/utils/id-generator.js.map +0 -1
  1112. package/dist/cjs/mods/security/src/components/secure-array/utils/validation.js +0 -275
  1113. package/dist/cjs/mods/security/src/components/secure-array/utils/validation.js.map +0 -1
  1114. package/dist/cjs/mods/security/src/components/secure-memory.js +0 -906
  1115. package/dist/cjs/mods/security/src/components/secure-memory.js.map +0 -1
  1116. package/dist/cjs/mods/security/src/components/secure-object/core/secure-object-core.js +0 -1605
  1117. package/dist/cjs/mods/security/src/components/secure-object/core/secure-object-core.js.map +0 -1
  1118. package/dist/cjs/mods/security/src/components/secure-object/encryption/crypto-handler.js +0 -362
  1119. package/dist/cjs/mods/security/src/components/secure-object/encryption/crypto-handler.js.map +0 -1
  1120. package/dist/cjs/mods/security/src/components/secure-object/encryption/sensitive-keys.js +0 -206
  1121. package/dist/cjs/mods/security/src/components/secure-object/encryption/sensitive-keys.js.map +0 -1
  1122. package/dist/cjs/mods/security/src/components/secure-object/events/event-manager.js +0 -197
  1123. package/dist/cjs/mods/security/src/components/secure-object/events/event-manager.js.map +0 -1
  1124. package/dist/cjs/mods/security/src/components/secure-object/index.js +0 -67
  1125. package/dist/cjs/mods/security/src/components/secure-object/index.js.map +0 -1
  1126. package/dist/cjs/mods/security/src/components/secure-object/metadata/metadata-manager.js +0 -183
  1127. package/dist/cjs/mods/security/src/components/secure-object/metadata/metadata-manager.js.map +0 -1
  1128. package/dist/cjs/mods/security/src/components/secure-object/serialization/serialization-handler.js +0 -197
  1129. package/dist/cjs/mods/security/src/components/secure-object/serialization/serialization-handler.js.map +0 -1
  1130. package/dist/cjs/mods/security/src/components/secure-object/utils/id-generator.js +0 -64
  1131. package/dist/cjs/mods/security/src/components/secure-object/utils/id-generator.js.map +0 -1
  1132. package/dist/cjs/mods/security/src/components/secure-object/utils/validation.js +0 -239
  1133. package/dist/cjs/mods/security/src/components/secure-object/utils/validation.js.map +0 -1
  1134. package/dist/cjs/mods/security/src/components/secure-serialization.js +0 -772
  1135. package/dist/cjs/mods/security/src/components/secure-serialization.js.map +0 -1
  1136. package/dist/cjs/mods/security/src/components/secure-string/advanced/entropy-analyzer.js +0 -308
  1137. package/dist/cjs/mods/security/src/components/secure-string/advanced/entropy-analyzer.js.map +0 -1
  1138. package/dist/cjs/mods/security/src/components/secure-string/advanced/performance-monitor.js +0 -335
  1139. package/dist/cjs/mods/security/src/components/secure-string/advanced/performance-monitor.js.map +0 -1
  1140. package/dist/cjs/mods/security/src/components/secure-string/advanced/quantum-safe.js +0 -245
  1141. package/dist/cjs/mods/security/src/components/secure-string/advanced/quantum-safe.js.map +0 -1
  1142. package/dist/cjs/mods/security/src/components/secure-string/buffer/buffer-manager.js +0 -205
  1143. package/dist/cjs/mods/security/src/components/secure-string/buffer/buffer-manager.js.map +0 -1
  1144. package/dist/cjs/mods/security/src/components/secure-string/core/secure-string-core.js +0 -788
  1145. package/dist/cjs/mods/security/src/components/secure-string/core/secure-string-core.js.map +0 -1
  1146. package/dist/cjs/mods/security/src/components/secure-string/crypto/crypto-operations.js +0 -319
  1147. package/dist/cjs/mods/security/src/components/secure-string/crypto/crypto-operations.js.map +0 -1
  1148. package/dist/cjs/mods/security/src/components/secure-string/operations/comparison-operations.js +0 -221
  1149. package/dist/cjs/mods/security/src/components/secure-string/operations/comparison-operations.js.map +0 -1
  1150. package/dist/cjs/mods/security/src/components/secure-string/operations/string-operations.js +0 -234
  1151. package/dist/cjs/mods/security/src/components/secure-string/operations/string-operations.js.map +0 -1
  1152. package/dist/cjs/mods/security/src/components/secure-string/types/index.js +0 -41
  1153. package/dist/cjs/mods/security/src/components/secure-string/types/index.js.map +0 -1
  1154. package/dist/cjs/mods/security/src/components/secure-string/validation/string-validator.js +0 -334
  1155. package/dist/cjs/mods/security/src/components/secure-string/validation/string-validator.js.map +0 -1
  1156. package/dist/cjs/mods/security/src/components/side-channel.js +0 -146
  1157. package/dist/cjs/mods/security/src/components/side-channel.js.map +0 -1
  1158. package/dist/cjs/mods/security/src/components/tamper-evident-logging.js +0 -391
  1159. package/dist/cjs/mods/security/src/components/tamper-evident-logging.js.map +0 -1
  1160. package/dist/cjs/mods/security/src/const/buffer.const.js +0 -15
  1161. package/dist/cjs/mods/security/src/const/buffer.const.js.map +0 -1
  1162. package/dist/cjs/mods/security/src/core/crypto.js +0 -779
  1163. package/dist/cjs/mods/security/src/core/crypto.js.map +0 -1
  1164. package/dist/cjs/mods/security/src/core/hash/hash-advanced.js +0 -388
  1165. package/dist/cjs/mods/security/src/core/hash/hash-advanced.js.map +0 -1
  1166. package/dist/cjs/mods/security/src/core/hash/hash-core.js +0 -410
  1167. package/dist/cjs/mods/security/src/core/hash/hash-core.js.map +0 -1
  1168. package/dist/cjs/mods/security/src/core/hash/hash-entropy.js +0 -307
  1169. package/dist/cjs/mods/security/src/core/hash/hash-entropy.js.map +0 -1
  1170. package/dist/cjs/mods/security/src/core/hash/hash-security.js +0 -372
  1171. package/dist/cjs/mods/security/src/core/hash/hash-security.js.map +0 -1
  1172. package/dist/cjs/mods/security/src/core/hash/hash-types.js +0 -16
  1173. package/dist/cjs/mods/security/src/core/hash/hash-types.js.map +0 -1
  1174. package/dist/cjs/mods/security/src/core/hash/hash-utils.js +0 -328
  1175. package/dist/cjs/mods/security/src/core/hash/hash-utils.js.map +0 -1
  1176. package/dist/cjs/mods/security/src/core/hash/hash-validator.js +0 -312
  1177. package/dist/cjs/mods/security/src/core/hash/hash-validator.js.map +0 -1
  1178. package/dist/cjs/mods/security/src/core/hash.js +0 -25
  1179. package/dist/cjs/mods/security/src/core/hash.js.map +0 -1
  1180. package/dist/cjs/mods/security/src/core/keys/algorithms/mods/Argon2Algo.js +0 -135
  1181. package/dist/cjs/mods/security/src/core/keys/algorithms/mods/Argon2Algo.js.map +0 -1
  1182. package/dist/cjs/mods/security/src/core/keys/algorithms/mods/PBKDF2Algo.js +0 -293
  1183. package/dist/cjs/mods/security/src/core/keys/algorithms/mods/PBKDF2Algo.js.map +0 -1
  1184. package/dist/cjs/mods/security/src/core/keys/algorithms/mods/ScryptAlgo.js +0 -317
  1185. package/dist/cjs/mods/security/src/core/keys/algorithms/mods/ScryptAlgo.js.map +0 -1
  1186. package/dist/cjs/mods/security/src/core/keys/keys-core.js +0 -201
  1187. package/dist/cjs/mods/security/src/core/keys/keys-core.js.map +0 -1
  1188. package/dist/cjs/mods/security/src/core/keys/keys-logger.js +0 -234
  1189. package/dist/cjs/mods/security/src/core/keys/keys-logger.js.map +0 -1
  1190. package/dist/cjs/mods/security/src/core/keys/keys-types.js +0 -65
  1191. package/dist/cjs/mods/security/src/core/keys/keys-types.js.map +0 -1
  1192. package/dist/cjs/mods/security/src/core/keys/keys-utils.js +0 -322
  1193. package/dist/cjs/mods/security/src/core/keys/keys-utils.js.map +0 -1
  1194. package/dist/cjs/mods/security/src/core/keys.js +0 -136
  1195. package/dist/cjs/mods/security/src/core/keys.js.map +0 -1
  1196. package/dist/cjs/mods/security/src/core/password/index.js +0 -122
  1197. package/dist/cjs/mods/security/src/core/password/index.js.map +0 -1
  1198. package/dist/cjs/mods/security/src/core/password/password-algorithms.js +0 -397
  1199. package/dist/cjs/mods/security/src/core/password/password-algorithms.js.map +0 -1
  1200. package/dist/cjs/mods/security/src/core/password/password-core.js +0 -294
  1201. package/dist/cjs/mods/security/src/core/password/password-core.js.map +0 -1
  1202. package/dist/cjs/mods/security/src/core/password/password-generator.js +0 -365
  1203. package/dist/cjs/mods/security/src/core/password/password-generator.js.map +0 -1
  1204. package/dist/cjs/mods/security/src/core/password/password-migration.js +0 -237
  1205. package/dist/cjs/mods/security/src/core/password/password-migration.js.map +0 -1
  1206. package/dist/cjs/mods/security/src/core/password/password-security.js +0 -534
  1207. package/dist/cjs/mods/security/src/core/password/password-security.js.map +0 -1
  1208. package/dist/cjs/mods/security/src/core/password/password-types.js +0 -39
  1209. package/dist/cjs/mods/security/src/core/password/password-types.js.map +0 -1
  1210. package/dist/cjs/mods/security/src/core/password/password-utils.js +0 -651
  1211. package/dist/cjs/mods/security/src/core/password/password-utils.js.map +0 -1
  1212. package/dist/cjs/mods/security/src/core/password/swlist.js +0 -1122
  1213. package/dist/cjs/mods/security/src/core/password/swlist.js.map +0 -1
  1214. package/dist/cjs/mods/security/src/core/random/random-core.js +0 -962
  1215. package/dist/cjs/mods/security/src/core/random/random-core.js.map +0 -1
  1216. package/dist/cjs/mods/security/src/core/random/random-crypto.js +0 -339
  1217. package/dist/cjs/mods/security/src/core/random/random-crypto.js.map +0 -1
  1218. package/dist/cjs/mods/security/src/core/random/random-entropy.js +0 -387
  1219. package/dist/cjs/mods/security/src/core/random/random-entropy.js.map +0 -1
  1220. package/dist/cjs/mods/security/src/core/random/random-generators.js +0 -344
  1221. package/dist/cjs/mods/security/src/core/random/random-generators.js.map +0 -1
  1222. package/dist/cjs/mods/security/src/core/random/random-sources.js +0 -426
  1223. package/dist/cjs/mods/security/src/core/random/random-sources.js.map +0 -1
  1224. package/dist/cjs/mods/security/src/core/random/random-tokens.js +0 -309
  1225. package/dist/cjs/mods/security/src/core/random/random-tokens.js.map +0 -1
  1226. package/dist/cjs/mods/security/src/core/random/random-types.js +0 -36
  1227. package/dist/cjs/mods/security/src/core/random/random-types.js.map +0 -1
  1228. package/dist/cjs/mods/security/src/core/validators.js +0 -200
  1229. package/dist/cjs/mods/security/src/core/validators.js.map +0 -1
  1230. package/dist/cjs/mods/security/src/helpers/Uint8Array.js +0 -335
  1231. package/dist/cjs/mods/security/src/helpers/Uint8Array.js.map +0 -1
  1232. package/dist/cjs/mods/security/src/helpers/createEnu.js +0 -27
  1233. package/dist/cjs/mods/security/src/helpers/createEnu.js.map +0 -1
  1234. package/dist/cjs/mods/security/src/index.js +0 -406
  1235. package/dist/cjs/mods/security/src/index.js.map +0 -1
  1236. package/dist/cjs/mods/security/src/types/global.js +0 -51
  1237. package/dist/cjs/mods/security/src/types/global.js.map +0 -1
  1238. package/dist/cjs/mods/security/src/types/secure-mem.type.js +0 -106
  1239. package/dist/cjs/mods/security/src/types/secure-mem.type.js.map +0 -1
  1240. package/dist/cjs/mods/security/src/types/secure-memory.js +0 -20
  1241. package/dist/cjs/mods/security/src/types/secure-memory.js.map +0 -1
  1242. package/dist/cjs/mods/security/src/types.js +0 -63
  1243. package/dist/cjs/mods/security/src/types.js.map +0 -1
  1244. package/dist/cjs/mods/security/src/utils/CryptoAlgorithmUtils.js +0 -71
  1245. package/dist/cjs/mods/security/src/utils/CryptoAlgorithmUtils.js.map +0 -1
  1246. package/dist/cjs/mods/security/src/utils/constants.js +0 -111
  1247. package/dist/cjs/mods/security/src/utils/constants.js.map +0 -1
  1248. package/dist/cjs/mods/security/src/utils/crypto.utils.js +0 -386
  1249. package/dist/cjs/mods/security/src/utils/crypto.utils.js.map +0 -1
  1250. package/dist/cjs/mods/security/src/utils/dataConverter.js +0 -74
  1251. package/dist/cjs/mods/security/src/utils/dataConverter.js.map +0 -1
  1252. package/dist/cjs/mods/security/src/utils/encoding.js +0 -290
  1253. package/dist/cjs/mods/security/src/utils/encoding.js.map +0 -1
  1254. package/dist/cjs/mods/security/src/utils/errorHandler.js +0 -140
  1255. package/dist/cjs/mods/security/src/utils/errorHandler.js.map +0 -1
  1256. package/dist/cjs/mods/security/src/utils/memory/config-manager.js +0 -290
  1257. package/dist/cjs/mods/security/src/utils/memory/config-manager.js.map +0 -1
  1258. package/dist/cjs/mods/security/src/utils/memory/event-manager.js +0 -277
  1259. package/dist/cjs/mods/security/src/utils/memory/event-manager.js.map +0 -1
  1260. package/dist/cjs/mods/security/src/utils/memory/index.js +0 -162
  1261. package/dist/cjs/mods/security/src/utils/memory/index.js.map +0 -1
  1262. package/dist/cjs/mods/security/src/utils/memory/memory-manager.js +0 -888
  1263. package/dist/cjs/mods/security/src/utils/memory/memory-manager.js.map +0 -1
  1264. package/dist/cjs/mods/security/src/utils/memory/memory-pool.js +0 -356
  1265. package/dist/cjs/mods/security/src/utils/memory/memory-pool.js.map +0 -1
  1266. package/dist/cjs/mods/security/src/utils/memory/reference-tracker.js +0 -384
  1267. package/dist/cjs/mods/security/src/utils/memory/reference-tracker.js.map +0 -1
  1268. package/dist/cjs/mods/security/src/utils/memory/types.js +0 -56
  1269. package/dist/cjs/mods/security/src/utils/memory/types.js.map +0 -1
  1270. package/dist/cjs/mods/security/src/utils/patterns.js +0 -127
  1271. package/dist/cjs/mods/security/src/utils/patterns.js.map +0 -1
  1272. package/dist/cjs/mods/security/src/utils/performanceMonitor.js +0 -249
  1273. package/dist/cjs/mods/security/src/utils/performanceMonitor.js.map +0 -1
  1274. package/dist/cjs/mods/security/src/utils/stats.js +0 -182
  1275. package/dist/cjs/mods/security/src/utils/stats.js.map +0 -1
  1276. package/dist/cjs/package.json +0 -3
  1277. package/dist/cjs/shared/logger/Logger.js +0 -591
  1278. package/dist/cjs/shared/logger/Logger.js.map +0 -1
  1279. package/dist/cjs/src/FiUp.js +0 -88
  1280. package/dist/cjs/src/FiUp.js.map +0 -1
  1281. package/dist/cjs/src/cache/CacheFactory.js +0 -416
  1282. package/dist/cjs/src/cache/CacheFactory.js.map +0 -1
  1283. package/dist/cjs/src/cache/SecureCacheAdapter.js +0 -1239
  1284. package/dist/cjs/src/cache/SecureCacheAdapter.js.map +0 -1
  1285. package/dist/cjs/src/cluster/bun-cluster-manager.js +0 -1656
  1286. package/dist/cjs/src/cluster/bun-cluster-manager.js.map +0 -1
  1287. package/dist/cjs/src/cluster/cluster-manager.js +0 -1023
  1288. package/dist/cjs/src/cluster/cluster-manager.js.map +0 -1
  1289. package/dist/cjs/src/cluster/memory-manager.js +0 -485
  1290. package/dist/cjs/src/cluster/memory-manager.js.map +0 -1
  1291. package/dist/cjs/src/cluster/modules/AutoScaler.js +0 -532
  1292. package/dist/cjs/src/cluster/modules/AutoScaler.js.map +0 -1
  1293. package/dist/cjs/src/cluster/modules/BunIPCManager.js +0 -603
  1294. package/dist/cjs/src/cluster/modules/BunIPCManager.js.map +0 -1
  1295. package/dist/cjs/src/cluster/modules/ClusterPersistenceManager.js +0 -437
  1296. package/dist/cjs/src/cluster/modules/ClusterPersistenceManager.js.map +0 -1
  1297. package/dist/cjs/src/cluster/modules/CpuMonitor.js +0 -659
  1298. package/dist/cjs/src/cluster/modules/CpuMonitor.js.map +0 -1
  1299. package/dist/cjs/src/cluster/modules/CrossPlatformMemory.js +0 -329
  1300. package/dist/cjs/src/cluster/modules/CrossPlatformMemory.js.map +0 -1
  1301. package/dist/cjs/src/cluster/modules/EventLoopMonitor.js +0 -265
  1302. package/dist/cjs/src/cluster/modules/EventLoopMonitor.js.map +0 -1
  1303. package/dist/cjs/src/cluster/modules/GCStatsTracker.js +0 -200
  1304. package/dist/cjs/src/cluster/modules/GCStatsTracker.js.map +0 -1
  1305. package/dist/cjs/src/cluster/modules/HealthMonitor.js +0 -461
  1306. package/dist/cjs/src/cluster/modules/HealthMonitor.js.map +0 -1
  1307. package/dist/cjs/src/cluster/modules/HeapStatsCollector.js +0 -111
  1308. package/dist/cjs/src/cluster/modules/HeapStatsCollector.js.map +0 -1
  1309. package/dist/cjs/src/cluster/modules/IPCManager.js +0 -781
  1310. package/dist/cjs/src/cluster/modules/IPCManager.js.map +0 -1
  1311. package/dist/cjs/src/cluster/modules/MetricsCollector.js +0 -559
  1312. package/dist/cjs/src/cluster/modules/MetricsCollector.js.map +0 -1
  1313. package/dist/cjs/src/cluster/modules/NetworkTracker.js +0 -162
  1314. package/dist/cjs/src/cluster/modules/NetworkTracker.js.map +0 -1
  1315. package/dist/cjs/src/cluster/modules/ProcessMonitor.js +0 -513
  1316. package/dist/cjs/src/cluster/modules/ProcessMonitor.js.map +0 -1
  1317. package/dist/cjs/src/cluster/modules/ThroughputCalculator.js +0 -186
  1318. package/dist/cjs/src/cluster/modules/ThroughputCalculator.js.map +0 -1
  1319. package/dist/cjs/src/cluster/modules/WorkerManager.js +0 -1186
  1320. package/dist/cjs/src/cluster/modules/WorkerManager.js.map +0 -1
  1321. package/dist/cjs/src/cluster/modules/strategy/LoadBalancer.js +0 -1123
  1322. package/dist/cjs/src/cluster/modules/strategy/LoadBalancer.js.map +0 -1
  1323. package/dist/cjs/src/config.js +0 -366
  1324. package/dist/cjs/src/config.js.map +0 -1
  1325. package/dist/cjs/src/const.js +0 -577
  1326. package/dist/cjs/src/const.js.map +0 -1
  1327. package/dist/cjs/src/encryption/EncryptionService.js +0 -422
  1328. package/dist/cjs/src/encryption/EncryptionService.js.map +0 -1
  1329. package/dist/cjs/src/file-upload.js +0 -259
  1330. package/dist/cjs/src/file-upload.js.map +0 -1
  1331. package/dist/cjs/src/index.js +0 -100
  1332. package/dist/cjs/src/index.js.map +0 -1
  1333. package/dist/cjs/src/middleware/XJsonResponseHandler.js +0 -152
  1334. package/dist/cjs/src/middleware/XJsonResponseHandler.js.map +0 -1
  1335. package/dist/cjs/src/middleware/XemsSessionMiddleware.js +0 -88
  1336. package/dist/cjs/src/middleware/XemsSessionMiddleware.js.map +0 -1
  1337. package/dist/cjs/src/middleware/XyPrissMiddlewareAPI.js +0 -354
  1338. package/dist/cjs/src/middleware/XyPrissMiddlewareAPI.js.map +0 -1
  1339. package/dist/cjs/src/middleware/built-in/BuiltInMiddleware.js +0 -524
  1340. package/dist/cjs/src/middleware/built-in/BuiltInMiddleware.js.map +0 -1
  1341. package/dist/cjs/src/middleware/built-in/security/BrowserOnlyProtector.js +0 -552
  1342. package/dist/cjs/src/middleware/built-in/security/BrowserOnlyProtector.js.map +0 -1
  1343. package/dist/cjs/src/middleware/built-in/security/CommandInjectionDetector.js +0 -215
  1344. package/dist/cjs/src/middleware/built-in/security/CommandInjectionDetector.js.map +0 -1
  1345. package/dist/cjs/src/middleware/built-in/security/LDAPInjectionDetector.js +0 -96
  1346. package/dist/cjs/src/middleware/built-in/security/LDAPInjectionDetector.js.map +0 -1
  1347. package/dist/cjs/src/middleware/built-in/security/MobileOnlyProtector.js +0 -504
  1348. package/dist/cjs/src/middleware/built-in/security/MobileOnlyProtector.js.map +0 -1
  1349. package/dist/cjs/src/middleware/built-in/security/PathTraversalDetector.js +0 -212
  1350. package/dist/cjs/src/middleware/built-in/security/PathTraversalDetector.js.map +0 -1
  1351. package/dist/cjs/src/middleware/built-in/security/RequestSignatureProtector.js +0 -481
  1352. package/dist/cjs/src/middleware/built-in/security/RequestSignatureProtector.js.map +0 -1
  1353. package/dist/cjs/src/middleware/built-in/security/SQLInjectionDetector.js +0 -335
  1354. package/dist/cjs/src/middleware/built-in/security/SQLInjectionDetector.js.map +0 -1
  1355. package/dist/cjs/src/middleware/built-in/security/TerminalOnlyProtector.js +0 -478
  1356. package/dist/cjs/src/middleware/built-in/security/TerminalOnlyProtector.js.map +0 -1
  1357. package/dist/cjs/src/middleware/built-in/security/XXEProtector.js +0 -175
  1358. package/dist/cjs/src/middleware/built-in/security/XXEProtector.js.map +0 -1
  1359. package/dist/cjs/src/middleware/safe-json-middleware.js +0 -159
  1360. package/dist/cjs/src/middleware/safe-json-middleware.js.map +0 -1
  1361. package/dist/cjs/src/middleware/security-middleware.js +0 -1059
  1362. package/dist/cjs/src/middleware/security-middleware.js.map +0 -1
  1363. package/dist/cjs/src/plugins/PluginManager.js +0 -410
  1364. package/dist/cjs/src/plugins/PluginManager.js.map +0 -1
  1365. package/dist/cjs/src/plugins/api/PluginAPI.js +0 -188
  1366. package/dist/cjs/src/plugins/api/PluginAPI.js.map +0 -1
  1367. package/dist/cjs/src/plugins/const/PluginHookIds.js +0 -64
  1368. package/dist/cjs/src/plugins/const/PluginHookIds.js.map +0 -1
  1369. package/dist/cjs/src/plugins/core/PluginManager.js +0 -677
  1370. package/dist/cjs/src/plugins/core/PluginManager.js.map +0 -1
  1371. package/dist/cjs/src/plugins/modules/PluginEngine.js +0 -494
  1372. package/dist/cjs/src/plugins/modules/PluginEngine.js.map +0 -1
  1373. package/dist/cjs/src/plugins/modules/PluginRegistry.js +0 -309
  1374. package/dist/cjs/src/plugins/modules/PluginRegistry.js.map +0 -1
  1375. package/dist/cjs/src/plugins/modules/builtin/JWTAuthPlugin.js +0 -591
  1376. package/dist/cjs/src/plugins/modules/builtin/JWTAuthPlugin.js.map +0 -1
  1377. package/dist/cjs/src/plugins/modules/builtin/ResponseTimePlugin.js +0 -413
  1378. package/dist/cjs/src/plugins/modules/builtin/ResponseTimePlugin.js.map +0 -1
  1379. package/dist/cjs/src/plugins/modules/builtin/SmartCachePlugin.js +0 -843
  1380. package/dist/cjs/src/plugins/modules/builtin/SmartCachePlugin.js.map +0 -1
  1381. package/dist/cjs/src/plugins/modules/builtin/server-maintenance-plugin.js +0 -588
  1382. package/dist/cjs/src/plugins/modules/builtin/server-maintenance-plugin.js.map +0 -1
  1383. package/dist/cjs/src/plugins/modules/core/CachePlugin.js +0 -1977
  1384. package/dist/cjs/src/plugins/modules/core/CachePlugin.js.map +0 -1
  1385. package/dist/cjs/src/plugins/modules/core/PerformancePlugin.js +0 -894
  1386. package/dist/cjs/src/plugins/modules/core/PerformancePlugin.js.map +0 -1
  1387. package/dist/cjs/src/plugins/modules/core/SecurityPlugin.js +0 -799
  1388. package/dist/cjs/src/plugins/modules/core/SecurityPlugin.js.map +0 -1
  1389. package/dist/cjs/src/plugins/modules/index.js +0 -302
  1390. package/dist/cjs/src/plugins/modules/index.js.map +0 -1
  1391. package/dist/cjs/src/plugins/modules/network/builtin/CompressionPlugin.js +0 -302
  1392. package/dist/cjs/src/plugins/modules/network/builtin/CompressionPlugin.js.map +0 -1
  1393. package/dist/cjs/src/plugins/modules/network/builtin/ConnectionPlugin.js +0 -797
  1394. package/dist/cjs/src/plugins/modules/network/builtin/ConnectionPlugin.js.map +0 -1
  1395. package/dist/cjs/src/plugins/modules/network/builtin/ProxyPlugin.js +0 -424
  1396. package/dist/cjs/src/plugins/modules/network/builtin/ProxyPlugin.js.map +0 -1
  1397. package/dist/cjs/src/plugins/modules/network/builtin/RateLimitPlugin.js +0 -605
  1398. package/dist/cjs/src/plugins/modules/network/builtin/RateLimitPlugin.js.map +0 -1
  1399. package/dist/cjs/src/plugins/modules/network/core/NetworkPlugin.js +0 -230
  1400. package/dist/cjs/src/plugins/modules/network/core/NetworkPlugin.js.map +0 -1
  1401. package/dist/cjs/src/plugins/modules/network/core/NetworkPluginFactory.js +0 -40
  1402. package/dist/cjs/src/plugins/modules/network/core/NetworkPluginFactory.js.map +0 -1
  1403. package/dist/cjs/src/plugins/modules/network/types/NetworkTypes.js +0 -24
  1404. package/dist/cjs/src/plugins/modules/network/types/NetworkTypes.js.map +0 -1
  1405. package/dist/cjs/src/plugins/modules/network/utils/NetworkPluginUtils.js +0 -63
  1406. package/dist/cjs/src/plugins/modules/network/utils/NetworkPluginUtils.js.map +0 -1
  1407. package/dist/cjs/src/plugins/modules/types/PluginTypes.js +0 -48
  1408. package/dist/cjs/src/plugins/modules/types/PluginTypes.js.map +0 -1
  1409. package/dist/cjs/src/plugins/modules/xems/XemsBuiltinPlugin.js +0 -216
  1410. package/dist/cjs/src/plugins/modules/xems/XemsBuiltinPlugin.js.map +0 -1
  1411. package/dist/cjs/src/plugins/modules/xems/XemsPlugin.js +0 -354
  1412. package/dist/cjs/src/plugins/modules/xems/XemsPlugin.js.map +0 -1
  1413. package/dist/cjs/src/plugins/plugin-manager.js +0 -151
  1414. package/dist/cjs/src/plugins/plugin-manager.js.map +0 -1
  1415. package/dist/cjs/src/plugins/route-optimization-plugin.js +0 -421
  1416. package/dist/cjs/src/plugins/route-optimization-plugin.js.map +0 -1
  1417. package/dist/cjs/src/plugins/server-maintenance-plugin.js +0 -588
  1418. package/dist/cjs/src/plugins/server-maintenance-plugin.js.map +0 -1
  1419. package/dist/cjs/src/quick-start.js +0 -43
  1420. package/dist/cjs/src/quick-start.js.map +0 -1
  1421. package/dist/cjs/src/schemas/plugingSchema.js +0 -40
  1422. package/dist/cjs/src/schemas/plugingSchema.js.map +0 -1
  1423. package/dist/cjs/src/server/FastServer.js +0 -858
  1424. package/dist/cjs/src/server/FastServer.js.map +0 -1
  1425. package/dist/cjs/src/server/ServerFactory.js +0 -67
  1426. package/dist/cjs/src/server/ServerFactory.js.map +0 -1
  1427. package/dist/cjs/src/server/components/fastapi/CacheManager.js +0 -245
  1428. package/dist/cjs/src/server/components/fastapi/CacheManager.js.map +0 -1
  1429. package/dist/cjs/src/server/components/fastapi/ClusterManagerComponent.js +0 -569
  1430. package/dist/cjs/src/server/components/fastapi/ClusterManagerComponent.js.map +0 -1
  1431. package/dist/cjs/src/server/components/fastapi/FileUploadManager.js +0 -197
  1432. package/dist/cjs/src/server/components/fastapi/FileUploadManager.js.map +0 -1
  1433. package/dist/cjs/src/server/components/fastapi/FileWatcherManager.js +0 -536
  1434. package/dist/cjs/src/server/components/fastapi/FileWatcherManager.js.map +0 -1
  1435. package/dist/cjs/src/server/components/fastapi/MonitoringManager.js +0 -307
  1436. package/dist/cjs/src/server/components/fastapi/MonitoringManager.js.map +0 -1
  1437. package/dist/cjs/src/server/components/fastapi/PerformanceManager.js +0 -297
  1438. package/dist/cjs/src/server/components/fastapi/PerformanceManager.js.map +0 -1
  1439. package/dist/cjs/src/server/components/fastapi/PluginManager.js +0 -395
  1440. package/dist/cjs/src/server/components/fastapi/PluginManager.js.map +0 -1
  1441. package/dist/cjs/src/server/components/fastapi/RedirectManager.js +0 -487
  1442. package/dist/cjs/src/server/components/fastapi/RedirectManager.js.map +0 -1
  1443. package/dist/cjs/src/server/components/fastapi/RequestProcessor.js +0 -213
  1444. package/dist/cjs/src/server/components/fastapi/RequestProcessor.js.map +0 -1
  1445. package/dist/cjs/src/server/components/fastapi/RouteManager.js +0 -190
  1446. package/dist/cjs/src/server/components/fastapi/RouteManager.js.map +0 -1
  1447. package/dist/cjs/src/server/components/fastapi/WorkerPoolComponent.js +0 -82
  1448. package/dist/cjs/src/server/components/fastapi/WorkerPoolComponent.js.map +0 -1
  1449. package/dist/cjs/src/server/components/fastapi/console/ConsoleInterceptor.js +0 -980
  1450. package/dist/cjs/src/server/components/fastapi/console/ConsoleInterceptor.js.map +0 -1
  1451. package/dist/cjs/src/server/components/fastapi/console/encryption/ConsoleEncryption.js +0 -216
  1452. package/dist/cjs/src/server/components/fastapi/console/encryption/ConsoleEncryption.js.map +0 -1
  1453. package/dist/cjs/src/server/components/fastapi/console/types.js +0 -163
  1454. package/dist/cjs/src/server/components/fastapi/console/types.js.map +0 -1
  1455. package/dist/cjs/src/server/components/fastapi/modules/UFRP/WorkerPoolManager.js +0 -265
  1456. package/dist/cjs/src/server/components/fastapi/modules/UFRP/WorkerPoolManager.js.map +0 -1
  1457. package/dist/cjs/src/server/components/fastapi/modules/UFRP/workers/Logger.js +0 -236
  1458. package/dist/cjs/src/server/components/fastapi/modules/UFRP/workers/cpu-tasks.js +0 -294
  1459. package/dist/cjs/src/server/components/fastapi/modules/UFRP/workers/enhanced-cpu-worker.js +0 -433
  1460. package/dist/cjs/src/server/components/fastapi/modules/UFRP/workers/io-worker.js +0 -1617
  1461. package/dist/cjs/src/server/components/fastapi/smart-routes.js +0 -347
  1462. package/dist/cjs/src/server/components/fastapi/smart-routes.js.map +0 -1
  1463. package/dist/cjs/src/server/components/fastapi/templates/redirectTemp.js +0 -101
  1464. package/dist/cjs/src/server/components/fastapi/templates/redirectTemp.js.map +0 -1
  1465. package/dist/cjs/src/server/components/lifecycle/ServerLifecycleManager.js +0 -522
  1466. package/dist/cjs/src/server/components/lifecycle/ServerLifecycleManager.js.map +0 -1
  1467. package/dist/cjs/src/server/components/multi-server/MultiServerApp.js +0 -534
  1468. package/dist/cjs/src/server/components/multi-server/MultiServerApp.js.map +0 -1
  1469. package/dist/cjs/src/server/components/multi-server/MultiServerManager.js +0 -326
  1470. package/dist/cjs/src/server/components/multi-server/MultiServerManager.js.map +0 -1
  1471. package/dist/cjs/src/server/conf/networkConnectionConf.js +0 -25
  1472. package/dist/cjs/src/server/conf/networkConnectionConf.js.map +0 -1
  1473. package/dist/cjs/src/server/conf/proxyConfig.js +0 -23
  1474. package/dist/cjs/src/server/conf/proxyConfig.js.map +0 -1
  1475. package/dist/cjs/src/server/const/Cluster.config.js +0 -215
  1476. package/dist/cjs/src/server/const/Cluster.config.js.map +0 -1
  1477. package/dist/cjs/src/server/const/ExecutionPredictor_EP.const.js +0 -73
  1478. package/dist/cjs/src/server/const/ExecutionPredictor_EP.const.js.map +0 -1
  1479. package/dist/cjs/src/server/const/FileWatcher.config.js +0 -98
  1480. package/dist/cjs/src/server/const/FileWatcher.config.js.map +0 -1
  1481. package/dist/cjs/src/server/const/default.js +0 -393
  1482. package/dist/cjs/src/server/const/default.js.map +0 -1
  1483. package/dist/cjs/src/server/const/http.js +0 -19
  1484. package/dist/cjs/src/server/const/http.js.map +0 -1
  1485. package/dist/cjs/src/server/core/HttpServer.js +0 -396
  1486. package/dist/cjs/src/server/core/HttpServer.js.map +0 -1
  1487. package/dist/cjs/src/server/core/RequestApp.js +0 -95
  1488. package/dist/cjs/src/server/core/RequestApp.js.map +0 -1
  1489. package/dist/cjs/src/server/core/RequestEnhancer.js +0 -288
  1490. package/dist/cjs/src/server/core/RequestEnhancer.js.map +0 -1
  1491. package/dist/cjs/src/server/core/ResponseEnhancer.js +0 -518
  1492. package/dist/cjs/src/server/core/ResponseEnhancer.js.map +0 -1
  1493. package/dist/cjs/src/server/core/StartupProcessor.js +0 -111
  1494. package/dist/cjs/src/server/core/StartupProcessor.js.map +0 -1
  1495. package/dist/cjs/src/server/core/VirtualServer.js +0 -33
  1496. package/dist/cjs/src/server/core/VirtualServer.js.map +0 -1
  1497. package/dist/cjs/src/server/core/XHSCBridge.js +0 -524
  1498. package/dist/cjs/src/server/core/XHSCBridge.js.map +0 -1
  1499. package/dist/cjs/src/server/core/XHSCProtocol.js +0 -314
  1500. package/dist/cjs/src/server/core/XHSCProtocol.js.map +0 -1
  1501. package/dist/cjs/src/server/core/XyDiagnosticsManager.js +0 -78
  1502. package/dist/cjs/src/server/core/XyDiagnosticsManager.js.map +0 -1
  1503. package/dist/cjs/src/server/core/XyLifecycleManager.js +0 -237
  1504. package/dist/cjs/src/server/core/XyLifecycleManager.js.map +0 -1
  1505. package/dist/cjs/src/server/core/XyModuleManager.js +0 -161
  1506. package/dist/cjs/src/server/core/XyModuleManager.js.map +0 -1
  1507. package/dist/cjs/src/server/core/XyRoutingManager.js +0 -187
  1508. package/dist/cjs/src/server/core/XyRoutingManager.js.map +0 -1
  1509. package/dist/cjs/src/server/core/XyServerCreator.js +0 -97
  1510. package/dist/cjs/src/server/core/XyServerCreator.js.map +0 -1
  1511. package/dist/cjs/src/server/core/XyprissApp.js +0 -483
  1512. package/dist/cjs/src/server/core/XyprissApp.js.map +0 -1
  1513. package/dist/cjs/src/server/core/request/XyRequestManager.js +0 -229
  1514. package/dist/cjs/src/server/core/request/XyRequestManager.js.map +0 -1
  1515. package/dist/cjs/src/server/handlers/NotFoundHandler.js +0 -84
  1516. package/dist/cjs/src/server/handlers/NotFoundHandler.js.map +0 -1
  1517. package/dist/cjs/src/server/handlers/templates/notFoundTemplate.js +0 -655
  1518. package/dist/cjs/src/server/handlers/templates/notFoundTemplate.js.map +0 -1
  1519. package/dist/cjs/src/server/middleware/MiddlewareManager.js +0 -197
  1520. package/dist/cjs/src/server/middleware/MiddlewareManager.js.map +0 -1
  1521. package/dist/cjs/src/server/optimization/ExecutionPredictor.js +0 -218
  1522. package/dist/cjs/src/server/optimization/ExecutionPredictor.js.map +0 -1
  1523. package/dist/cjs/src/server/optimization/PerformanceProfiler.js +0 -234
  1524. package/dist/cjs/src/server/optimization/PerformanceProfiler.js.map +0 -1
  1525. package/dist/cjs/src/server/optimization/RequestPreCompiler.js +0 -709
  1526. package/dist/cjs/src/server/optimization/RequestPreCompiler.js.map +0 -1
  1527. package/dist/cjs/src/server/optimization/UltraFastOptimizer.js +0 -427
  1528. package/dist/cjs/src/server/optimization/UltraFastOptimizer.js.map +0 -1
  1529. package/dist/cjs/src/server/optimization/performance-monitor.js +0 -162
  1530. package/dist/cjs/src/server/optimization/performance-monitor.js.map +0 -1
  1531. package/dist/cjs/src/server/routing/Router.js +0 -353
  1532. package/dist/cjs/src/server/routing/Router.js.map +0 -1
  1533. package/dist/cjs/src/server/service/Reload/FileWatcher.js +0 -756
  1534. package/dist/cjs/src/server/service/Reload/FileWatcher.js.map +0 -1
  1535. package/dist/cjs/src/server/service/Reload/HotReloader.js +0 -738
  1536. package/dist/cjs/src/server/service/Reload/HotReloader.js.map +0 -1
  1537. package/dist/cjs/src/server/service/Reload/exec/TypeScriptExecutor.js +0 -342
  1538. package/dist/cjs/src/server/service/Reload/exec/TypeScriptExecutor.js.map +0 -1
  1539. package/dist/cjs/src/server/utils/ConfigLoader.js +0 -362
  1540. package/dist/cjs/src/server/utils/ConfigLoader.js.map +0 -1
  1541. package/dist/cjs/src/server/utils/PortManager.js +0 -237
  1542. package/dist/cjs/src/server/utils/PortManager.js.map +0 -1
  1543. package/dist/cjs/src/server/utils/WorkerModeHandler.js +0 -65
  1544. package/dist/cjs/src/server/utils/WorkerModeHandler.js.map +0 -1
  1545. package/dist/cjs/src/server/utils/forceClosePort.js +0 -332
  1546. package/dist/cjs/src/server/utils/forceClosePort.js.map +0 -1
  1547. package/dist/cjs/src/server/utils/shouldRegisterRouteOnServer.js +0 -34
  1548. package/dist/cjs/src/server/utils/shouldRegisterRouteOnServer.js.map +0 -1
  1549. package/dist/cjs/src/server/utils/trustProxy.js +0 -778
  1550. package/dist/cjs/src/server/utils/trustProxy.js.map +0 -1
  1551. package/dist/cjs/src/sys/FSApi.js +0 -1144
  1552. package/dist/cjs/src/sys/FSApi.js.map +0 -1
  1553. package/dist/cjs/src/sys/FileSystem.js +0 -1302
  1554. package/dist/cjs/src/sys/FileSystem.js.map +0 -1
  1555. package/dist/cjs/src/sys/PathApi.js +0 -202
  1556. package/dist/cjs/src/sys/PathApi.js.map +0 -1
  1557. package/dist/cjs/src/sys/SysApi.js +0 -421
  1558. package/dist/cjs/src/sys/SysApi.js.map +0 -1
  1559. package/dist/cjs/src/sys/System.js +0 -40
  1560. package/dist/cjs/src/sys/System.js.map +0 -1
  1561. package/dist/cjs/src/sys/XyPrissCache.js +0 -70
  1562. package/dist/cjs/src/sys/XyPrissCache.js.map +0 -1
  1563. package/dist/cjs/src/sys/XyPrissRunner.js +0 -248
  1564. package/dist/cjs/src/sys/XyPrissRunner.js.map +0 -1
  1565. package/dist/cjs/src/sys.js +0 -404
  1566. package/dist/cjs/src/sys.js.map +0 -1
  1567. package/dist/cjs/src/types/NotFoundConfig.js +0 -86
  1568. package/dist/cjs/src/types/NotFoundConfig.js.map +0 -1
  1569. package/dist/cjs/src/utils/DotEnvLoader.js +0 -74
  1570. package/dist/cjs/src/utils/DotEnvLoader.js.map +0 -1
  1571. package/dist/cjs/src/utils/mergeWithDefaults.js +0 -176
  1572. package/dist/cjs/src/utils/mergeWithDefaults.js.map +0 -1
  1573. package/dist/cjs/src/xhs/cluster/XHSCWorker.js +0 -202
  1574. package/dist/cjs/src/xhs/cluster/XHSCWorker.js.map +0 -1
  1575. package/dist/esm/index.js +0 -2
  1576. package/dist/esm/mods/security/src/algorithms/hash-algorithms.js +0 -696
  1577. package/dist/esm/mods/security/src/algorithms/hash-algorithms.js.map +0 -1
  1578. package/dist/esm/mods/security/src/algorithms/registry.js +0 -81
  1579. package/dist/esm/mods/security/src/algorithms/registry.js.map +0 -1
  1580. package/dist/esm/mods/security/src/components/attestation.js +0 -1059
  1581. package/dist/esm/mods/security/src/components/attestation.js.map +0 -1
  1582. package/dist/esm/mods/security/src/components/cache/FastLRU.js +0 -320
  1583. package/dist/esm/mods/security/src/components/cache/FastLRU.js.map +0 -1
  1584. package/dist/esm/mods/security/src/components/cache/UFSIMC.js +0 -1111
  1585. package/dist/esm/mods/security/src/components/cache/UFSIMC.js.map +0 -1
  1586. package/dist/esm/mods/security/src/components/cache/cacheSys.js +0 -622
  1587. package/dist/esm/mods/security/src/components/cache/cacheSys.js.map +0 -1
  1588. package/dist/esm/mods/security/src/components/cache/cacheSys.utils.js +0 -102
  1589. package/dist/esm/mods/security/src/components/cache/cacheSys.utils.js.map +0 -1
  1590. package/dist/esm/mods/security/src/components/cache/config/cache.config.js +0 -36
  1591. package/dist/esm/mods/security/src/components/cache/config/cache.config.js.map +0 -1
  1592. package/dist/esm/mods/security/src/components/cache/index.js +0 -367
  1593. package/dist/esm/mods/security/src/components/cache/index.js.map +0 -1
  1594. package/dist/esm/mods/security/src/components/cache/useCache.js +0 -232
  1595. package/dist/esm/mods/security/src/components/cache/useCache.js.map +0 -1
  1596. package/dist/esm/mods/security/src/components/canary-tokens.js +0 -346
  1597. package/dist/esm/mods/security/src/components/canary-tokens.js.map +0 -1
  1598. package/dist/esm/mods/security/src/components/entropy-augmentation.js +0 -476
  1599. package/dist/esm/mods/security/src/components/entropy-augmentation.js.map +0 -1
  1600. package/dist/esm/mods/security/src/components/fortified-function/UFA/ultra-fast-allocator.js +0 -336
  1601. package/dist/esm/mods/security/src/components/fortified-function/UFA/ultra-fast-allocator.js.map +0 -1
  1602. package/dist/esm/mods/security/src/components/fortified-function/UFA/ultra-fast-cache.js +0 -534
  1603. package/dist/esm/mods/security/src/components/fortified-function/UFA/ultra-fast-cache.js.map +0 -1
  1604. package/dist/esm/mods/security/src/components/fortified-function/UFA/ultra-fast-engine.js +0 -612
  1605. package/dist/esm/mods/security/src/components/fortified-function/UFA/ultra-fast-engine.js.map +0 -1
  1606. package/dist/esm/mods/security/src/components/fortified-function/const/exec.const.js +0 -11
  1607. package/dist/esm/mods/security/src/components/fortified-function/const/exec.const.js.map +0 -1
  1608. package/dist/esm/mods/security/src/components/fortified-function/core/fortified-config.js +0 -351
  1609. package/dist/esm/mods/security/src/components/fortified-function/core/fortified-config.js.map +0 -1
  1610. package/dist/esm/mods/security/src/components/fortified-function/core/fortified-function-core.js +0 -518
  1611. package/dist/esm/mods/security/src/components/fortified-function/core/fortified-function-core.js.map +0 -1
  1612. package/dist/esm/mods/security/src/components/fortified-function/core/fortified-logger.js +0 -243
  1613. package/dist/esm/mods/security/src/components/fortified-function/core/fortified-logger.js.map +0 -1
  1614. package/dist/esm/mods/security/src/components/fortified-function/core/mods/api-manager.js +0 -187
  1615. package/dist/esm/mods/security/src/components/fortified-function/core/mods/api-manager.js.map +0 -1
  1616. package/dist/esm/mods/security/src/components/fortified-function/core/mods/cache-manager.js +0 -105
  1617. package/dist/esm/mods/security/src/components/fortified-function/core/mods/cache-manager.js.map +0 -1
  1618. package/dist/esm/mods/security/src/components/fortified-function/core/mods/execution-context.js +0 -103
  1619. package/dist/esm/mods/security/src/components/fortified-function/core/mods/execution-context.js.map +0 -1
  1620. package/dist/esm/mods/security/src/components/fortified-function/core/mods/execution-engine.js +0 -125
  1621. package/dist/esm/mods/security/src/components/fortified-function/core/mods/execution-engine.js.map +0 -1
  1622. package/dist/esm/mods/security/src/components/fortified-function/core/mods/execution-router.js +0 -91
  1623. package/dist/esm/mods/security/src/components/fortified-function/core/mods/execution-router.js.map +0 -1
  1624. package/dist/esm/mods/security/src/components/fortified-function/core/mods/memory-manager.js +0 -145
  1625. package/dist/esm/mods/security/src/components/fortified-function/core/mods/memory-manager.js.map +0 -1
  1626. package/dist/esm/mods/security/src/components/fortified-function/core/mods/security-manager.js +0 -100
  1627. package/dist/esm/mods/security/src/components/fortified-function/core/mods/security-manager.js.map +0 -1
  1628. package/dist/esm/mods/security/src/components/fortified-function/core/mods/stats-manager.js +0 -157
  1629. package/dist/esm/mods/security/src/components/fortified-function/core/mods/stats-manager.js.map +0 -1
  1630. package/dist/esm/mods/security/src/components/fortified-function/core/mods/timing-manager.js +0 -123
  1631. package/dist/esm/mods/security/src/components/fortified-function/core/mods/timing-manager.js.map +0 -1
  1632. package/dist/esm/mods/security/src/components/fortified-function/engines/analytics-engine.js +0 -368
  1633. package/dist/esm/mods/security/src/components/fortified-function/engines/analytics-engine.js.map +0 -1
  1634. package/dist/esm/mods/security/src/components/fortified-function/engines/execution-engine.js +0 -400
  1635. package/dist/esm/mods/security/src/components/fortified-function/engines/execution-engine.js.map +0 -1
  1636. package/dist/esm/mods/security/src/components/fortified-function/index.js +0 -167
  1637. package/dist/esm/mods/security/src/components/fortified-function/index.js.map +0 -1
  1638. package/dist/esm/mods/security/src/components/fortified-function/performance/performance-monitor.js +0 -238
  1639. package/dist/esm/mods/security/src/components/fortified-function/performance/performance-monitor.js.map +0 -1
  1640. package/dist/esm/mods/security/src/components/fortified-function/performance/performance-timer.js +0 -186
  1641. package/dist/esm/mods/security/src/components/fortified-function/performance/performance-timer.js.map +0 -1
  1642. package/dist/esm/mods/security/src/components/fortified-function/security/security-handler.js +0 -252
  1643. package/dist/esm/mods/security/src/components/fortified-function/security/security-handler.js.map +0 -1
  1644. package/dist/esm/mods/security/src/components/fortified-function/serializer/safe-serializer.js +0 -344
  1645. package/dist/esm/mods/security/src/components/fortified-function/serializer/safe-serializer.js.map +0 -1
  1646. package/dist/esm/mods/security/src/components/fortified-function/smart-cache.js +0 -691
  1647. package/dist/esm/mods/security/src/components/fortified-function/smart-cache.js.map +0 -1
  1648. package/dist/esm/mods/security/src/components/fortified-function/types/types.js +0 -14
  1649. package/dist/esm/mods/security/src/components/fortified-function/types/types.js.map +0 -1
  1650. package/dist/esm/mods/security/src/components/fortified-function/utils/utils.js +0 -74
  1651. package/dist/esm/mods/security/src/components/fortified-function/utils/utils.js.map +0 -1
  1652. package/dist/esm/mods/security/src/components/memory-hard.js +0 -919
  1653. package/dist/esm/mods/security/src/components/memory-hard.js.map +0 -1
  1654. package/dist/esm/mods/security/src/components/post-quantum.js +0 -316
  1655. package/dist/esm/mods/security/src/components/post-quantum.js.map +0 -1
  1656. package/dist/esm/mods/security/src/components/runtime-verification.js +0 -643
  1657. package/dist/esm/mods/security/src/components/runtime-verification.js.map +0 -1
  1658. package/dist/esm/mods/security/src/components/secure-array/core/secure-array-core.js +0 -1570
  1659. package/dist/esm/mods/security/src/components/secure-array/core/secure-array-core.js.map +0 -1
  1660. package/dist/esm/mods/security/src/components/secure-array/crypto/ArrayCryptoHandler.js +0 -328
  1661. package/dist/esm/mods/security/src/components/secure-array/crypto/ArrayCryptoHandler.js.map +0 -1
  1662. package/dist/esm/mods/security/src/components/secure-array/events/event-manager.js +0 -268
  1663. package/dist/esm/mods/security/src/components/secure-array/events/event-manager.js.map +0 -1
  1664. package/dist/esm/mods/security/src/components/secure-array/index.js +0 -61
  1665. package/dist/esm/mods/security/src/components/secure-array/index.js.map +0 -1
  1666. package/dist/esm/mods/security/src/components/secure-array/metadata/metadata-manager.js +0 -329
  1667. package/dist/esm/mods/security/src/components/secure-array/metadata/metadata-manager.js.map +0 -1
  1668. package/dist/esm/mods/security/src/components/secure-array/serialization/ArraySerializationHandler.js +0 -388
  1669. package/dist/esm/mods/security/src/components/secure-array/serialization/ArraySerializationHandler.js.map +0 -1
  1670. package/dist/esm/mods/security/src/components/secure-array/types/index.js +0 -84
  1671. package/dist/esm/mods/security/src/components/secure-array/types/index.js.map +0 -1
  1672. package/dist/esm/mods/security/src/components/secure-array/utils/id-generator.js +0 -78
  1673. package/dist/esm/mods/security/src/components/secure-array/utils/id-generator.js.map +0 -1
  1674. package/dist/esm/mods/security/src/components/secure-array/utils/validation.js +0 -273
  1675. package/dist/esm/mods/security/src/components/secure-array/utils/validation.js.map +0 -1
  1676. package/dist/esm/mods/security/src/components/secure-memory.js +0 -884
  1677. package/dist/esm/mods/security/src/components/secure-memory.js.map +0 -1
  1678. package/dist/esm/mods/security/src/components/secure-object/core/secure-object-core.js +0 -1603
  1679. package/dist/esm/mods/security/src/components/secure-object/core/secure-object-core.js.map +0 -1
  1680. package/dist/esm/mods/security/src/components/secure-object/encryption/crypto-handler.js +0 -360
  1681. package/dist/esm/mods/security/src/components/secure-object/encryption/crypto-handler.js.map +0 -1
  1682. package/dist/esm/mods/security/src/components/secure-object/encryption/sensitive-keys.js +0 -203
  1683. package/dist/esm/mods/security/src/components/secure-object/encryption/sensitive-keys.js.map +0 -1
  1684. package/dist/esm/mods/security/src/components/secure-object/events/event-manager.js +0 -195
  1685. package/dist/esm/mods/security/src/components/secure-object/events/event-manager.js.map +0 -1
  1686. package/dist/esm/mods/security/src/components/secure-object/index.js +0 -63
  1687. package/dist/esm/mods/security/src/components/secure-object/index.js.map +0 -1
  1688. package/dist/esm/mods/security/src/components/secure-object/metadata/metadata-manager.js +0 -181
  1689. package/dist/esm/mods/security/src/components/secure-object/metadata/metadata-manager.js.map +0 -1
  1690. package/dist/esm/mods/security/src/components/secure-object/serialization/serialization-handler.js +0 -195
  1691. package/dist/esm/mods/security/src/components/secure-object/serialization/serialization-handler.js.map +0 -1
  1692. package/dist/esm/mods/security/src/components/secure-object/utils/id-generator.js +0 -62
  1693. package/dist/esm/mods/security/src/components/secure-object/utils/id-generator.js.map +0 -1
  1694. package/dist/esm/mods/security/src/components/secure-object/utils/validation.js +0 -237
  1695. package/dist/esm/mods/security/src/components/secure-object/utils/validation.js.map +0 -1
  1696. package/dist/esm/mods/security/src/components/secure-serialization.js +0 -769
  1697. package/dist/esm/mods/security/src/components/secure-serialization.js.map +0 -1
  1698. package/dist/esm/mods/security/src/components/secure-string/advanced/entropy-analyzer.js +0 -306
  1699. package/dist/esm/mods/security/src/components/secure-string/advanced/entropy-analyzer.js.map +0 -1
  1700. package/dist/esm/mods/security/src/components/secure-string/advanced/performance-monitor.js +0 -333
  1701. package/dist/esm/mods/security/src/components/secure-string/advanced/performance-monitor.js.map +0 -1
  1702. package/dist/esm/mods/security/src/components/secure-string/advanced/quantum-safe.js +0 -243
  1703. package/dist/esm/mods/security/src/components/secure-string/advanced/quantum-safe.js.map +0 -1
  1704. package/dist/esm/mods/security/src/components/secure-string/buffer/buffer-manager.js +0 -203
  1705. package/dist/esm/mods/security/src/components/secure-string/buffer/buffer-manager.js.map +0 -1
  1706. package/dist/esm/mods/security/src/components/secure-string/core/secure-string-core.js +0 -786
  1707. package/dist/esm/mods/security/src/components/secure-string/core/secure-string-core.js.map +0 -1
  1708. package/dist/esm/mods/security/src/components/secure-string/crypto/crypto-operations.js +0 -298
  1709. package/dist/esm/mods/security/src/components/secure-string/crypto/crypto-operations.js.map +0 -1
  1710. package/dist/esm/mods/security/src/components/secure-string/operations/comparison-operations.js +0 -219
  1711. package/dist/esm/mods/security/src/components/secure-string/operations/comparison-operations.js.map +0 -1
  1712. package/dist/esm/mods/security/src/components/secure-string/operations/string-operations.js +0 -232
  1713. package/dist/esm/mods/security/src/components/secure-string/operations/string-operations.js.map +0 -1
  1714. package/dist/esm/mods/security/src/components/secure-string/types/index.js +0 -37
  1715. package/dist/esm/mods/security/src/components/secure-string/types/index.js.map +0 -1
  1716. package/dist/esm/mods/security/src/components/secure-string/validation/string-validator.js +0 -332
  1717. package/dist/esm/mods/security/src/components/secure-string/validation/string-validator.js.map +0 -1
  1718. package/dist/esm/mods/security/src/components/side-channel.js +0 -142
  1719. package/dist/esm/mods/security/src/components/side-channel.js.map +0 -1
  1720. package/dist/esm/mods/security/src/components/tamper-evident-logging.js +0 -389
  1721. package/dist/esm/mods/security/src/components/tamper-evident-logging.js.map +0 -1
  1722. package/dist/esm/mods/security/src/const/buffer.const.js +0 -13
  1723. package/dist/esm/mods/security/src/const/buffer.const.js.map +0 -1
  1724. package/dist/esm/mods/security/src/core/crypto.js +0 -777
  1725. package/dist/esm/mods/security/src/core/crypto.js.map +0 -1
  1726. package/dist/esm/mods/security/src/core/hash/hash-advanced.js +0 -367
  1727. package/dist/esm/mods/security/src/core/hash/hash-advanced.js.map +0 -1
  1728. package/dist/esm/mods/security/src/core/hash/hash-core.js +0 -389
  1729. package/dist/esm/mods/security/src/core/hash/hash-core.js.map +0 -1
  1730. package/dist/esm/mods/security/src/core/hash/hash-entropy.js +0 -286
  1731. package/dist/esm/mods/security/src/core/hash/hash-entropy.js.map +0 -1
  1732. package/dist/esm/mods/security/src/core/hash/hash-security.js +0 -351
  1733. package/dist/esm/mods/security/src/core/hash/hash-security.js.map +0 -1
  1734. package/dist/esm/mods/security/src/core/hash/hash-types.js +0 -16
  1735. package/dist/esm/mods/security/src/core/hash/hash-types.js.map +0 -1
  1736. package/dist/esm/mods/security/src/core/hash/hash-utils.js +0 -307
  1737. package/dist/esm/mods/security/src/core/hash/hash-utils.js.map +0 -1
  1738. package/dist/esm/mods/security/src/core/hash/hash-validator.js +0 -310
  1739. package/dist/esm/mods/security/src/core/hash/hash-validator.js.map +0 -1
  1740. package/dist/esm/mods/security/src/core/hash.js +0 -9
  1741. package/dist/esm/mods/security/src/core/hash.js.map +0 -1
  1742. package/dist/esm/mods/security/src/core/keys/algorithms/mods/Argon2Algo.js +0 -133
  1743. package/dist/esm/mods/security/src/core/keys/algorithms/mods/Argon2Algo.js.map +0 -1
  1744. package/dist/esm/mods/security/src/core/keys/algorithms/mods/PBKDF2Algo.js +0 -272
  1745. package/dist/esm/mods/security/src/core/keys/algorithms/mods/PBKDF2Algo.js.map +0 -1
  1746. package/dist/esm/mods/security/src/core/keys/algorithms/mods/ScryptAlgo.js +0 -296
  1747. package/dist/esm/mods/security/src/core/keys/algorithms/mods/ScryptAlgo.js.map +0 -1
  1748. package/dist/esm/mods/security/src/core/keys/keys-core.js +0 -199
  1749. package/dist/esm/mods/security/src/core/keys/keys-core.js.map +0 -1
  1750. package/dist/esm/mods/security/src/core/keys/keys-logger.js +0 -231
  1751. package/dist/esm/mods/security/src/core/keys/keys-logger.js.map +0 -1
  1752. package/dist/esm/mods/security/src/core/keys/keys-types.js +0 -63
  1753. package/dist/esm/mods/security/src/core/keys/keys-types.js.map +0 -1
  1754. package/dist/esm/mods/security/src/core/keys/keys-utils.js +0 -316
  1755. package/dist/esm/mods/security/src/core/keys/keys-utils.js.map +0 -1
  1756. package/dist/esm/mods/security/src/core/keys.js +0 -134
  1757. package/dist/esm/mods/security/src/core/keys.js.map +0 -1
  1758. package/dist/esm/mods/security/src/core/password/index.js +0 -110
  1759. package/dist/esm/mods/security/src/core/password/index.js.map +0 -1
  1760. package/dist/esm/mods/security/src/core/password/password-algorithms.js +0 -395
  1761. package/dist/esm/mods/security/src/core/password/password-algorithms.js.map +0 -1
  1762. package/dist/esm/mods/security/src/core/password/password-core.js +0 -292
  1763. package/dist/esm/mods/security/src/core/password/password-core.js.map +0 -1
  1764. package/dist/esm/mods/security/src/core/password/password-generator.js +0 -363
  1765. package/dist/esm/mods/security/src/core/password/password-generator.js.map +0 -1
  1766. package/dist/esm/mods/security/src/core/password/password-migration.js +0 -235
  1767. package/dist/esm/mods/security/src/core/password/password-migration.js.map +0 -1
  1768. package/dist/esm/mods/security/src/core/password/password-security.js +0 -532
  1769. package/dist/esm/mods/security/src/core/password/password-security.js.map +0 -1
  1770. package/dist/esm/mods/security/src/core/password/password-types.js +0 -34
  1771. package/dist/esm/mods/security/src/core/password/password-types.js.map +0 -1
  1772. package/dist/esm/mods/security/src/core/password/password-utils.js +0 -630
  1773. package/dist/esm/mods/security/src/core/password/password-utils.js.map +0 -1
  1774. package/dist/esm/mods/security/src/core/password/swlist.js +0 -1120
  1775. package/dist/esm/mods/security/src/core/password/swlist.js.map +0 -1
  1776. package/dist/esm/mods/security/src/core/random/random-core.js +0 -960
  1777. package/dist/esm/mods/security/src/core/random/random-core.js.map +0 -1
  1778. package/dist/esm/mods/security/src/core/random/random-crypto.js +0 -337
  1779. package/dist/esm/mods/security/src/core/random/random-crypto.js.map +0 -1
  1780. package/dist/esm/mods/security/src/core/random/random-entropy.js +0 -366
  1781. package/dist/esm/mods/security/src/core/random/random-entropy.js.map +0 -1
  1782. package/dist/esm/mods/security/src/core/random/random-generators.js +0 -323
  1783. package/dist/esm/mods/security/src/core/random/random-generators.js.map +0 -1
  1784. package/dist/esm/mods/security/src/core/random/random-sources.js +0 -405
  1785. package/dist/esm/mods/security/src/core/random/random-sources.js.map +0 -1
  1786. package/dist/esm/mods/security/src/core/random/random-tokens.js +0 -307
  1787. package/dist/esm/mods/security/src/core/random/random-tokens.js.map +0 -1
  1788. package/dist/esm/mods/security/src/core/random/random-types.js +0 -27
  1789. package/dist/esm/mods/security/src/core/random/random-types.js.map +0 -1
  1790. package/dist/esm/mods/security/src/core/validators.js +0 -198
  1791. package/dist/esm/mods/security/src/core/validators.js.map +0 -1
  1792. package/dist/esm/mods/security/src/helpers/Uint8Array.js +0 -333
  1793. package/dist/esm/mods/security/src/helpers/Uint8Array.js.map +0 -1
  1794. package/dist/esm/mods/security/src/helpers/createEnu.js +0 -25
  1795. package/dist/esm/mods/security/src/helpers/createEnu.js.map +0 -1
  1796. package/dist/esm/mods/security/src/index.js +0 -340
  1797. package/dist/esm/mods/security/src/index.js.map +0 -1
  1798. package/dist/esm/mods/security/src/types/global.js +0 -49
  1799. package/dist/esm/mods/security/src/types/global.js.map +0 -1
  1800. package/dist/esm/mods/security/src/types/secure-mem.type.js +0 -102
  1801. package/dist/esm/mods/security/src/types/secure-mem.type.js.map +0 -1
  1802. package/dist/esm/mods/security/src/types/secure-memory.js +0 -20
  1803. package/dist/esm/mods/security/src/types/secure-memory.js.map +0 -1
  1804. package/dist/esm/mods/security/src/types.js +0 -63
  1805. package/dist/esm/mods/security/src/types.js.map +0 -1
  1806. package/dist/esm/mods/security/src/utils/CryptoAlgorithmUtils.js +0 -69
  1807. package/dist/esm/mods/security/src/utils/CryptoAlgorithmUtils.js.map +0 -1
  1808. package/dist/esm/mods/security/src/utils/constants.js +0 -105
  1809. package/dist/esm/mods/security/src/utils/constants.js.map +0 -1
  1810. package/dist/esm/mods/security/src/utils/crypto.utils.js +0 -380
  1811. package/dist/esm/mods/security/src/utils/crypto.utils.js.map +0 -1
  1812. package/dist/esm/mods/security/src/utils/dataConverter.js +0 -72
  1813. package/dist/esm/mods/security/src/utils/dataConverter.js.map +0 -1
  1814. package/dist/esm/mods/security/src/utils/encoding.js +0 -279
  1815. package/dist/esm/mods/security/src/utils/encoding.js.map +0 -1
  1816. package/dist/esm/mods/security/src/utils/errorHandler.js +0 -137
  1817. package/dist/esm/mods/security/src/utils/errorHandler.js.map +0 -1
  1818. package/dist/esm/mods/security/src/utils/memory/config-manager.js +0 -288
  1819. package/dist/esm/mods/security/src/utils/memory/config-manager.js.map +0 -1
  1820. package/dist/esm/mods/security/src/utils/memory/event-manager.js +0 -275
  1821. package/dist/esm/mods/security/src/utils/memory/event-manager.js.map +0 -1
  1822. package/dist/esm/mods/security/src/utils/memory/index.js +0 -141
  1823. package/dist/esm/mods/security/src/utils/memory/index.js.map +0 -1
  1824. package/dist/esm/mods/security/src/utils/memory/memory-manager.js +0 -886
  1825. package/dist/esm/mods/security/src/utils/memory/memory-manager.js.map +0 -1
  1826. package/dist/esm/mods/security/src/utils/memory/memory-pool.js +0 -354
  1827. package/dist/esm/mods/security/src/utils/memory/memory-pool.js.map +0 -1
  1828. package/dist/esm/mods/security/src/utils/memory/reference-tracker.js +0 -382
  1829. package/dist/esm/mods/security/src/utils/memory/reference-tracker.js.map +0 -1
  1830. package/dist/esm/mods/security/src/utils/memory/types.js +0 -56
  1831. package/dist/esm/mods/security/src/utils/memory/types.js.map +0 -1
  1832. package/dist/esm/mods/security/src/utils/patterns.js +0 -124
  1833. package/dist/esm/mods/security/src/utils/patterns.js.map +0 -1
  1834. package/dist/esm/mods/security/src/utils/performanceMonitor.js +0 -246
  1835. package/dist/esm/mods/security/src/utils/performanceMonitor.js.map +0 -1
  1836. package/dist/esm/mods/security/src/utils/stats.js +0 -180
  1837. package/dist/esm/mods/security/src/utils/stats.js.map +0 -1
  1838. package/dist/esm/package.json +0 -3
  1839. package/dist/esm/shared/logger/Logger.js +0 -587
  1840. package/dist/esm/shared/logger/Logger.js.map +0 -1
  1841. package/dist/esm/src/FiUp.js +0 -82
  1842. package/dist/esm/src/FiUp.js.map +0 -1
  1843. package/dist/esm/src/cache/CacheFactory.js +0 -412
  1844. package/dist/esm/src/cache/CacheFactory.js.map +0 -1
  1845. package/dist/esm/src/cache/SecureCacheAdapter.js +0 -1237
  1846. package/dist/esm/src/cache/SecureCacheAdapter.js.map +0 -1
  1847. package/dist/esm/src/cluster/bun-cluster-manager.js +0 -1654
  1848. package/dist/esm/src/cluster/bun-cluster-manager.js.map +0 -1
  1849. package/dist/esm/src/cluster/cluster-manager.js +0 -1002
  1850. package/dist/esm/src/cluster/cluster-manager.js.map +0 -1
  1851. package/dist/esm/src/cluster/memory-manager.js +0 -483
  1852. package/dist/esm/src/cluster/memory-manager.js.map +0 -1
  1853. package/dist/esm/src/cluster/modules/AutoScaler.js +0 -530
  1854. package/dist/esm/src/cluster/modules/AutoScaler.js.map +0 -1
  1855. package/dist/esm/src/cluster/modules/BunIPCManager.js +0 -601
  1856. package/dist/esm/src/cluster/modules/BunIPCManager.js.map +0 -1
  1857. package/dist/esm/src/cluster/modules/ClusterPersistenceManager.js +0 -435
  1858. package/dist/esm/src/cluster/modules/ClusterPersistenceManager.js.map +0 -1
  1859. package/dist/esm/src/cluster/modules/CpuMonitor.js +0 -657
  1860. package/dist/esm/src/cluster/modules/CpuMonitor.js.map +0 -1
  1861. package/dist/esm/src/cluster/modules/CrossPlatformMemory.js +0 -326
  1862. package/dist/esm/src/cluster/modules/CrossPlatformMemory.js.map +0 -1
  1863. package/dist/esm/src/cluster/modules/EventLoopMonitor.js +0 -263
  1864. package/dist/esm/src/cluster/modules/EventLoopMonitor.js.map +0 -1
  1865. package/dist/esm/src/cluster/modules/GCStatsTracker.js +0 -198
  1866. package/dist/esm/src/cluster/modules/GCStatsTracker.js.map +0 -1
  1867. package/dist/esm/src/cluster/modules/HealthMonitor.js +0 -440
  1868. package/dist/esm/src/cluster/modules/HealthMonitor.js.map +0 -1
  1869. package/dist/esm/src/cluster/modules/HeapStatsCollector.js +0 -109
  1870. package/dist/esm/src/cluster/modules/HeapStatsCollector.js.map +0 -1
  1871. package/dist/esm/src/cluster/modules/IPCManager.js +0 -759
  1872. package/dist/esm/src/cluster/modules/IPCManager.js.map +0 -1
  1873. package/dist/esm/src/cluster/modules/MetricsCollector.js +0 -538
  1874. package/dist/esm/src/cluster/modules/MetricsCollector.js.map +0 -1
  1875. package/dist/esm/src/cluster/modules/NetworkTracker.js +0 -160
  1876. package/dist/esm/src/cluster/modules/NetworkTracker.js.map +0 -1
  1877. package/dist/esm/src/cluster/modules/ProcessMonitor.js +0 -511
  1878. package/dist/esm/src/cluster/modules/ProcessMonitor.js.map +0 -1
  1879. package/dist/esm/src/cluster/modules/ThroughputCalculator.js +0 -184
  1880. package/dist/esm/src/cluster/modules/ThroughputCalculator.js.map +0 -1
  1881. package/dist/esm/src/cluster/modules/WorkerManager.js +0 -1165
  1882. package/dist/esm/src/cluster/modules/WorkerManager.js.map +0 -1
  1883. package/dist/esm/src/cluster/modules/strategy/LoadBalancer.js +0 -1102
  1884. package/dist/esm/src/cluster/modules/strategy/LoadBalancer.js.map +0 -1
  1885. package/dist/esm/src/config.js +0 -362
  1886. package/dist/esm/src/config.js.map +0 -1
  1887. package/dist/esm/src/const.js +0 -574
  1888. package/dist/esm/src/const.js.map +0 -1
  1889. package/dist/esm/src/encryption/EncryptionService.js +0 -401
  1890. package/dist/esm/src/encryption/EncryptionService.js.map +0 -1
  1891. package/dist/esm/src/file-upload.js +0 -251
  1892. package/dist/esm/src/file-upload.js.map +0 -1
  1893. package/dist/esm/src/index.js +0 -62
  1894. package/dist/esm/src/index.js.map +0 -1
  1895. package/dist/esm/src/middleware/XJsonResponseHandler.js +0 -150
  1896. package/dist/esm/src/middleware/XJsonResponseHandler.js.map +0 -1
  1897. package/dist/esm/src/middleware/XemsSessionMiddleware.js +0 -86
  1898. package/dist/esm/src/middleware/XemsSessionMiddleware.js.map +0 -1
  1899. package/dist/esm/src/middleware/XyPrissMiddlewareAPI.js +0 -352
  1900. package/dist/esm/src/middleware/XyPrissMiddlewareAPI.js.map +0 -1
  1901. package/dist/esm/src/middleware/built-in/BuiltInMiddleware.js +0 -522
  1902. package/dist/esm/src/middleware/built-in/BuiltInMiddleware.js.map +0 -1
  1903. package/dist/esm/src/middleware/built-in/security/BrowserOnlyProtector.js +0 -550
  1904. package/dist/esm/src/middleware/built-in/security/BrowserOnlyProtector.js.map +0 -1
  1905. package/dist/esm/src/middleware/built-in/security/CommandInjectionDetector.js +0 -213
  1906. package/dist/esm/src/middleware/built-in/security/CommandInjectionDetector.js.map +0 -1
  1907. package/dist/esm/src/middleware/built-in/security/LDAPInjectionDetector.js +0 -94
  1908. package/dist/esm/src/middleware/built-in/security/LDAPInjectionDetector.js.map +0 -1
  1909. package/dist/esm/src/middleware/built-in/security/MobileOnlyProtector.js +0 -502
  1910. package/dist/esm/src/middleware/built-in/security/MobileOnlyProtector.js.map +0 -1
  1911. package/dist/esm/src/middleware/built-in/security/PathTraversalDetector.js +0 -210
  1912. package/dist/esm/src/middleware/built-in/security/PathTraversalDetector.js.map +0 -1
  1913. package/dist/esm/src/middleware/built-in/security/RequestSignatureProtector.js +0 -460
  1914. package/dist/esm/src/middleware/built-in/security/RequestSignatureProtector.js.map +0 -1
  1915. package/dist/esm/src/middleware/built-in/security/SQLInjectionDetector.js +0 -333
  1916. package/dist/esm/src/middleware/built-in/security/SQLInjectionDetector.js.map +0 -1
  1917. package/dist/esm/src/middleware/built-in/security/TerminalOnlyProtector.js +0 -476
  1918. package/dist/esm/src/middleware/built-in/security/TerminalOnlyProtector.js.map +0 -1
  1919. package/dist/esm/src/middleware/built-in/security/XXEProtector.js +0 -173
  1920. package/dist/esm/src/middleware/built-in/security/XXEProtector.js.map +0 -1
  1921. package/dist/esm/src/middleware/safe-json-middleware.js +0 -153
  1922. package/dist/esm/src/middleware/safe-json-middleware.js.map +0 -1
  1923. package/dist/esm/src/middleware/security-middleware.js +0 -1057
  1924. package/dist/esm/src/middleware/security-middleware.js.map +0 -1
  1925. package/dist/esm/src/plugins/PluginManager.js +0 -408
  1926. package/dist/esm/src/plugins/PluginManager.js.map +0 -1
  1927. package/dist/esm/src/plugins/api/PluginAPI.js +0 -184
  1928. package/dist/esm/src/plugins/api/PluginAPI.js.map +0 -1
  1929. package/dist/esm/src/plugins/const/PluginHookIds.js +0 -61
  1930. package/dist/esm/src/plugins/const/PluginHookIds.js.map +0 -1
  1931. package/dist/esm/src/plugins/core/PluginManager.js +0 -675
  1932. package/dist/esm/src/plugins/core/PluginManager.js.map +0 -1
  1933. package/dist/esm/src/plugins/modules/PluginEngine.js +0 -492
  1934. package/dist/esm/src/plugins/modules/PluginEngine.js.map +0 -1
  1935. package/dist/esm/src/plugins/modules/PluginRegistry.js +0 -307
  1936. package/dist/esm/src/plugins/modules/PluginRegistry.js.map +0 -1
  1937. package/dist/esm/src/plugins/modules/builtin/JWTAuthPlugin.js +0 -589
  1938. package/dist/esm/src/plugins/modules/builtin/JWTAuthPlugin.js.map +0 -1
  1939. package/dist/esm/src/plugins/modules/builtin/ResponseTimePlugin.js +0 -411
  1940. package/dist/esm/src/plugins/modules/builtin/ResponseTimePlugin.js.map +0 -1
  1941. package/dist/esm/src/plugins/modules/builtin/SmartCachePlugin.js +0 -841
  1942. package/dist/esm/src/plugins/modules/builtin/SmartCachePlugin.js.map +0 -1
  1943. package/dist/esm/src/plugins/modules/builtin/server-maintenance-plugin.js +0 -566
  1944. package/dist/esm/src/plugins/modules/builtin/server-maintenance-plugin.js.map +0 -1
  1945. package/dist/esm/src/plugins/modules/core/CachePlugin.js +0 -1975
  1946. package/dist/esm/src/plugins/modules/core/CachePlugin.js.map +0 -1
  1947. package/dist/esm/src/plugins/modules/core/PerformancePlugin.js +0 -872
  1948. package/dist/esm/src/plugins/modules/core/PerformancePlugin.js.map +0 -1
  1949. package/dist/esm/src/plugins/modules/core/SecurityPlugin.js +0 -797
  1950. package/dist/esm/src/plugins/modules/core/SecurityPlugin.js.map +0 -1
  1951. package/dist/esm/src/plugins/modules/index.js +0 -273
  1952. package/dist/esm/src/plugins/modules/index.js.map +0 -1
  1953. package/dist/esm/src/plugins/modules/network/builtin/CompressionPlugin.js +0 -281
  1954. package/dist/esm/src/plugins/modules/network/builtin/CompressionPlugin.js.map +0 -1
  1955. package/dist/esm/src/plugins/modules/network/builtin/ConnectionPlugin.js +0 -776
  1956. package/dist/esm/src/plugins/modules/network/builtin/ConnectionPlugin.js.map +0 -1
  1957. package/dist/esm/src/plugins/modules/network/builtin/ProxyPlugin.js +0 -422
  1958. package/dist/esm/src/plugins/modules/network/builtin/ProxyPlugin.js.map +0 -1
  1959. package/dist/esm/src/plugins/modules/network/builtin/RateLimitPlugin.js +0 -584
  1960. package/dist/esm/src/plugins/modules/network/builtin/RateLimitPlugin.js.map +0 -1
  1961. package/dist/esm/src/plugins/modules/network/core/NetworkPlugin.js +0 -228
  1962. package/dist/esm/src/plugins/modules/network/core/NetworkPlugin.js.map +0 -1
  1963. package/dist/esm/src/plugins/modules/network/core/NetworkPluginFactory.js +0 -38
  1964. package/dist/esm/src/plugins/modules/network/core/NetworkPluginFactory.js.map +0 -1
  1965. package/dist/esm/src/plugins/modules/network/types/NetworkTypes.js +0 -24
  1966. package/dist/esm/src/plugins/modules/network/types/NetworkTypes.js.map +0 -1
  1967. package/dist/esm/src/plugins/modules/network/utils/NetworkPluginUtils.js +0 -61
  1968. package/dist/esm/src/plugins/modules/network/utils/NetworkPluginUtils.js.map +0 -1
  1969. package/dist/esm/src/plugins/modules/types/PluginTypes.js +0 -48
  1970. package/dist/esm/src/plugins/modules/types/PluginTypes.js.map +0 -1
  1971. package/dist/esm/src/plugins/modules/xems/XemsBuiltinPlugin.js +0 -214
  1972. package/dist/esm/src/plugins/modules/xems/XemsBuiltinPlugin.js.map +0 -1
  1973. package/dist/esm/src/plugins/modules/xems/XemsPlugin.js +0 -349
  1974. package/dist/esm/src/plugins/modules/xems/XemsPlugin.js.map +0 -1
  1975. package/dist/esm/src/plugins/plugin-manager.js +0 -149
  1976. package/dist/esm/src/plugins/plugin-manager.js.map +0 -1
  1977. package/dist/esm/src/plugins/route-optimization-plugin.js +0 -419
  1978. package/dist/esm/src/plugins/route-optimization-plugin.js.map +0 -1
  1979. package/dist/esm/src/plugins/server-maintenance-plugin.js +0 -566
  1980. package/dist/esm/src/plugins/server-maintenance-plugin.js.map +0 -1
  1981. package/dist/esm/src/quick-start.js +0 -41
  1982. package/dist/esm/src/quick-start.js.map +0 -1
  1983. package/dist/esm/src/schemas/plugingSchema.js +0 -38
  1984. package/dist/esm/src/schemas/plugingSchema.js.map +0 -1
  1985. package/dist/esm/src/server/FastServer.js +0 -856
  1986. package/dist/esm/src/server/FastServer.js.map +0 -1
  1987. package/dist/esm/src/server/ServerFactory.js +0 -62
  1988. package/dist/esm/src/server/ServerFactory.js.map +0 -1
  1989. package/dist/esm/src/server/components/fastapi/CacheManager.js +0 -243
  1990. package/dist/esm/src/server/components/fastapi/CacheManager.js.map +0 -1
  1991. package/dist/esm/src/server/components/fastapi/ClusterManagerComponent.js +0 -567
  1992. package/dist/esm/src/server/components/fastapi/ClusterManagerComponent.js.map +0 -1
  1993. package/dist/esm/src/server/components/fastapi/FileUploadManager.js +0 -176
  1994. package/dist/esm/src/server/components/fastapi/FileUploadManager.js.map +0 -1
  1995. package/dist/esm/src/server/components/fastapi/FileWatcherManager.js +0 -534
  1996. package/dist/esm/src/server/components/fastapi/FileWatcherManager.js.map +0 -1
  1997. package/dist/esm/src/server/components/fastapi/MonitoringManager.js +0 -305
  1998. package/dist/esm/src/server/components/fastapi/MonitoringManager.js.map +0 -1
  1999. package/dist/esm/src/server/components/fastapi/PerformanceManager.js +0 -295
  2000. package/dist/esm/src/server/components/fastapi/PerformanceManager.js.map +0 -1
  2001. package/dist/esm/src/server/components/fastapi/PluginManager.js +0 -393
  2002. package/dist/esm/src/server/components/fastapi/PluginManager.js.map +0 -1
  2003. package/dist/esm/src/server/components/fastapi/RedirectManager.js +0 -485
  2004. package/dist/esm/src/server/components/fastapi/RedirectManager.js.map +0 -1
  2005. package/dist/esm/src/server/components/fastapi/RequestProcessor.js +0 -211
  2006. package/dist/esm/src/server/components/fastapi/RequestProcessor.js.map +0 -1
  2007. package/dist/esm/src/server/components/fastapi/RouteManager.js +0 -188
  2008. package/dist/esm/src/server/components/fastapi/RouteManager.js.map +0 -1
  2009. package/dist/esm/src/server/components/fastapi/WorkerPoolComponent.js +0 -80
  2010. package/dist/esm/src/server/components/fastapi/WorkerPoolComponent.js.map +0 -1
  2011. package/dist/esm/src/server/components/fastapi/console/ConsoleInterceptor.js +0 -978
  2012. package/dist/esm/src/server/components/fastapi/console/ConsoleInterceptor.js.map +0 -1
  2013. package/dist/esm/src/server/components/fastapi/console/encryption/ConsoleEncryption.js +0 -214
  2014. package/dist/esm/src/server/components/fastapi/console/encryption/ConsoleEncryption.js.map +0 -1
  2015. package/dist/esm/src/server/components/fastapi/console/types.js +0 -160
  2016. package/dist/esm/src/server/components/fastapi/console/types.js.map +0 -1
  2017. package/dist/esm/src/server/components/fastapi/modules/UFRP/WorkerPoolManager.js +0 -263
  2018. package/dist/esm/src/server/components/fastapi/modules/UFRP/WorkerPoolManager.js.map +0 -1
  2019. package/dist/esm/src/server/components/fastapi/modules/UFRP/workers/Logger.js +0 -236
  2020. package/dist/esm/src/server/components/fastapi/modules/UFRP/workers/cpu-tasks.js +0 -294
  2021. package/dist/esm/src/server/components/fastapi/modules/UFRP/workers/enhanced-cpu-worker.js +0 -433
  2022. package/dist/esm/src/server/components/fastapi/modules/UFRP/workers/io-worker.js +0 -1617
  2023. package/dist/esm/src/server/components/fastapi/smart-routes.js +0 -345
  2024. package/dist/esm/src/server/components/fastapi/smart-routes.js.map +0 -1
  2025. package/dist/esm/src/server/components/fastapi/templates/redirectTemp.js +0 -99
  2026. package/dist/esm/src/server/components/fastapi/templates/redirectTemp.js.map +0 -1
  2027. package/dist/esm/src/server/components/lifecycle/ServerLifecycleManager.js +0 -520
  2028. package/dist/esm/src/server/components/lifecycle/ServerLifecycleManager.js.map +0 -1
  2029. package/dist/esm/src/server/components/multi-server/MultiServerApp.js +0 -532
  2030. package/dist/esm/src/server/components/multi-server/MultiServerApp.js.map +0 -1
  2031. package/dist/esm/src/server/components/multi-server/MultiServerManager.js +0 -324
  2032. package/dist/esm/src/server/components/multi-server/MultiServerManager.js.map +0 -1
  2033. package/dist/esm/src/server/conf/networkConnectionConf.js +0 -23
  2034. package/dist/esm/src/server/conf/networkConnectionConf.js.map +0 -1
  2035. package/dist/esm/src/server/conf/proxyConfig.js +0 -21
  2036. package/dist/esm/src/server/conf/proxyConfig.js.map +0 -1
  2037. package/dist/esm/src/server/const/Cluster.config.js +0 -213
  2038. package/dist/esm/src/server/const/Cluster.config.js.map +0 -1
  2039. package/dist/esm/src/server/const/ExecutionPredictor_EP.const.js +0 -62
  2040. package/dist/esm/src/server/const/ExecutionPredictor_EP.const.js.map +0 -1
  2041. package/dist/esm/src/server/const/FileWatcher.config.js +0 -96
  2042. package/dist/esm/src/server/const/FileWatcher.config.js.map +0 -1
  2043. package/dist/esm/src/server/const/default.js +0 -389
  2044. package/dist/esm/src/server/const/default.js.map +0 -1
  2045. package/dist/esm/src/server/const/http.js +0 -17
  2046. package/dist/esm/src/server/const/http.js.map +0 -1
  2047. package/dist/esm/src/server/core/HttpServer.js +0 -394
  2048. package/dist/esm/src/server/core/HttpServer.js.map +0 -1
  2049. package/dist/esm/src/server/core/RequestApp.js +0 -93
  2050. package/dist/esm/src/server/core/RequestApp.js.map +0 -1
  2051. package/dist/esm/src/server/core/RequestEnhancer.js +0 -286
  2052. package/dist/esm/src/server/core/RequestEnhancer.js.map +0 -1
  2053. package/dist/esm/src/server/core/ResponseEnhancer.js +0 -516
  2054. package/dist/esm/src/server/core/ResponseEnhancer.js.map +0 -1
  2055. package/dist/esm/src/server/core/StartupProcessor.js +0 -109
  2056. package/dist/esm/src/server/core/StartupProcessor.js.map +0 -1
  2057. package/dist/esm/src/server/core/VirtualServer.js +0 -31
  2058. package/dist/esm/src/server/core/VirtualServer.js.map +0 -1
  2059. package/dist/esm/src/server/core/XHSCBridge.js +0 -502
  2060. package/dist/esm/src/server/core/XHSCBridge.js.map +0 -1
  2061. package/dist/esm/src/server/core/XHSCProtocol.js +0 -311
  2062. package/dist/esm/src/server/core/XHSCProtocol.js.map +0 -1
  2063. package/dist/esm/src/server/core/XyDiagnosticsManager.js +0 -76
  2064. package/dist/esm/src/server/core/XyDiagnosticsManager.js.map +0 -1
  2065. package/dist/esm/src/server/core/XyLifecycleManager.js +0 -235
  2066. package/dist/esm/src/server/core/XyLifecycleManager.js.map +0 -1
  2067. package/dist/esm/src/server/core/XyModuleManager.js +0 -159
  2068. package/dist/esm/src/server/core/XyModuleManager.js.map +0 -1
  2069. package/dist/esm/src/server/core/XyRoutingManager.js +0 -185
  2070. package/dist/esm/src/server/core/XyRoutingManager.js.map +0 -1
  2071. package/dist/esm/src/server/core/XyServerCreator.js +0 -95
  2072. package/dist/esm/src/server/core/XyServerCreator.js.map +0 -1
  2073. package/dist/esm/src/server/core/XyprissApp.js +0 -481
  2074. package/dist/esm/src/server/core/XyprissApp.js.map +0 -1
  2075. package/dist/esm/src/server/core/request/XyRequestManager.js +0 -227
  2076. package/dist/esm/src/server/core/request/XyRequestManager.js.map +0 -1
  2077. package/dist/esm/src/server/handlers/NotFoundHandler.js +0 -81
  2078. package/dist/esm/src/server/handlers/NotFoundHandler.js.map +0 -1
  2079. package/dist/esm/src/server/handlers/templates/notFoundTemplate.js +0 -653
  2080. package/dist/esm/src/server/handlers/templates/notFoundTemplate.js.map +0 -1
  2081. package/dist/esm/src/server/middleware/MiddlewareManager.js +0 -195
  2082. package/dist/esm/src/server/middleware/MiddlewareManager.js.map +0 -1
  2083. package/dist/esm/src/server/optimization/ExecutionPredictor.js +0 -216
  2084. package/dist/esm/src/server/optimization/ExecutionPredictor.js.map +0 -1
  2085. package/dist/esm/src/server/optimization/PerformanceProfiler.js +0 -232
  2086. package/dist/esm/src/server/optimization/PerformanceProfiler.js.map +0 -1
  2087. package/dist/esm/src/server/optimization/RequestPreCompiler.js +0 -707
  2088. package/dist/esm/src/server/optimization/RequestPreCompiler.js.map +0 -1
  2089. package/dist/esm/src/server/optimization/UltraFastOptimizer.js +0 -424
  2090. package/dist/esm/src/server/optimization/UltraFastOptimizer.js.map +0 -1
  2091. package/dist/esm/src/server/optimization/performance-monitor.js +0 -160
  2092. package/dist/esm/src/server/optimization/performance-monitor.js.map +0 -1
  2093. package/dist/esm/src/server/routing/Router.js +0 -351
  2094. package/dist/esm/src/server/routing/Router.js.map +0 -1
  2095. package/dist/esm/src/server/service/Reload/FileWatcher.js +0 -734
  2096. package/dist/esm/src/server/service/Reload/FileWatcher.js.map +0 -1
  2097. package/dist/esm/src/server/service/Reload/HotReloader.js +0 -735
  2098. package/dist/esm/src/server/service/Reload/HotReloader.js.map +0 -1
  2099. package/dist/esm/src/server/service/Reload/exec/TypeScriptExecutor.js +0 -339
  2100. package/dist/esm/src/server/service/Reload/exec/TypeScriptExecutor.js.map +0 -1
  2101. package/dist/esm/src/server/utils/ConfigLoader.js +0 -339
  2102. package/dist/esm/src/server/utils/ConfigLoader.js.map +0 -1
  2103. package/dist/esm/src/server/utils/PortManager.js +0 -235
  2104. package/dist/esm/src/server/utils/PortManager.js.map +0 -1
  2105. package/dist/esm/src/server/utils/WorkerModeHandler.js +0 -63
  2106. package/dist/esm/src/server/utils/WorkerModeHandler.js.map +0 -1
  2107. package/dist/esm/src/server/utils/forceClosePort.js +0 -330
  2108. package/dist/esm/src/server/utils/forceClosePort.js.map +0 -1
  2109. package/dist/esm/src/server/utils/shouldRegisterRouteOnServer.js +0 -32
  2110. package/dist/esm/src/server/utils/shouldRegisterRouteOnServer.js.map +0 -1
  2111. package/dist/esm/src/server/utils/trustProxy.js +0 -776
  2112. package/dist/esm/src/server/utils/trustProxy.js.map +0 -1
  2113. package/dist/esm/src/sys/FSApi.js +0 -1142
  2114. package/dist/esm/src/sys/FSApi.js.map +0 -1
  2115. package/dist/esm/src/sys/FileSystem.js +0 -1300
  2116. package/dist/esm/src/sys/FileSystem.js.map +0 -1
  2117. package/dist/esm/src/sys/PathApi.js +0 -199
  2118. package/dist/esm/src/sys/PathApi.js.map +0 -1
  2119. package/dist/esm/src/sys/SysApi.js +0 -419
  2120. package/dist/esm/src/sys/SysApi.js.map +0 -1
  2121. package/dist/esm/src/sys/System.js +0 -38
  2122. package/dist/esm/src/sys/System.js.map +0 -1
  2123. package/dist/esm/src/sys/XyPrissCache.js +0 -68
  2124. package/dist/esm/src/sys/XyPrissCache.js.map +0 -1
  2125. package/dist/esm/src/sys/XyPrissRunner.js +0 -244
  2126. package/dist/esm/src/sys/XyPrissRunner.js.map +0 -1
  2127. package/dist/esm/src/sys.js +0 -401
  2128. package/dist/esm/src/sys.js.map +0 -1
  2129. package/dist/esm/src/types/NotFoundConfig.js +0 -84
  2130. package/dist/esm/src/types/NotFoundConfig.js.map +0 -1
  2131. package/dist/esm/src/utils/DotEnvLoader.js +0 -72
  2132. package/dist/esm/src/utils/DotEnvLoader.js.map +0 -1
  2133. package/dist/esm/src/utils/mergeWithDefaults.js +0 -174
  2134. package/dist/esm/src/utils/mergeWithDefaults.js.map +0 -1
  2135. package/dist/esm/src/xhs/cluster/XHSCWorker.js +0 -181
  2136. package/dist/esm/src/xhs/cluster/XHSCWorker.js.map +0 -1
  2137. package/dist/index.d.ts +0 -9398
@@ -1,1302 +0,0 @@
1
- 'use strict';
2
-
3
- var fs = require('node:fs');
4
- var path = require('node:path');
5
-
6
- /**
7
- * XyPriss File System API
8
- *
9
- * A powerful combination of node:fs and node:path providing a simplified,
10
- * root-aware API for common file system operations.
11
- */
12
- class XyPrissFS {
13
- constructor(sys) {
14
- this.sys = sys;
15
- }
16
- // ========== PATH OPERATIONS ==========
17
- /**
18
- * Resolves a sequence of paths or path segments into an absolute path, ensuring all paths are interpreted relative to the project root directory.
19
- * This method provides a root-aware path resolution, preventing access outside the designated project scope and maintaining consistent path handling.
20
- *
21
- * @param {...string} paths - A sequence of path segments to be joined and resolved. Each segment can be a string representing a directory or file path.
22
- * @returns {string} The fully resolved absolute path, anchored to the project root.
23
- * @throws {TypeError} If any of the provided paths are not strings.
24
- * @example
25
- * // Assuming project root is '/home/user/project'
26
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
27
- * console.log(fs.$resolve('src', 'index.ts')); // Outputs: '/home/user/project/src/index.ts'
28
- */
29
- $resolve(...paths) {
30
- return path.resolve(this.sys.__root__, ...paths);
31
- }
32
- /**
33
- * Joins all provided path segments together using the platform-specific separator and normalizes the resulting path.
34
- * This method is essential for constructing paths in a cross-platform manner, handling different operating system path conventions seamlessly.
35
- *
36
- * @param {...string} paths - The path segments to be joined. Each argument represents a portion of the path.
37
- * @returns {string} The joined and normalized path string.
38
- * @throws {TypeError} If any of the provided paths are not strings.
39
- * @example
40
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
41
- * console.log(fs.$join('src', 'components', 'Button.ts')); // Outputs: 'src/components/Button.ts' (on Unix-like systems)
42
- */
43
- $join(...paths) {
44
- return path.join(...paths);
45
- }
46
- /**
47
- * Extracts the directory portion of a given path, returning the parent directory's path.
48
- * This method is particularly useful for navigating up the directory tree or isolating the directory context of a file.
49
- *
50
- * @param {string} p - The path from which to extract the directory name.
51
- * @returns {string} The directory name of the provided path.
52
- * @throws {TypeError} If the provided path is not a string.
53
- * @example
54
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
55
- * console.log(fs.$dirname('src/components/Button.ts')); // Outputs: 'src/components'
56
- */
57
- $dirname(p) {
58
- return path.dirname(p);
59
- }
60
- /**
61
- * Retrieves the last portion of a path, which is typically the filename or the last directory in the path.
62
- * Optionally, an extension can be specified to exclude it from the result, allowing for filename manipulation without extensions.
63
- *
64
- * @param {string} p - The path from which to extract the basename.
65
- * @param {string} [ext] - An optional file extension to remove from the basename.
66
- * @returns {string} The basename of the path, with the extension removed if specified.
67
- * @throws {TypeError} If the provided path is not a string.
68
- * @example
69
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
70
- * console.log(fs.$basename('src/components/Button.ts')); // Outputs: 'Button.ts'
71
- * console.log(fs.$basename('src/components/Button.ts', '.ts')); // Outputs: 'Button'
72
- */
73
- $basename(p, ext) {
74
- return path.basename(p, ext);
75
- }
76
- /**
77
- * Extracts the file extension from a given path, including the leading dot.
78
- * This method is crucial for file type identification and handling files based on their extensions.
79
- *
80
- * @param {string} p - The path from which to extract the extension.
81
- * @returns {string} The file extension, including the dot, or an empty string if no extension is present.
82
- * @throws {TypeError} If the provided path is not a string.
83
- * @example
84
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
85
- * console.log(fs.$extname('src/components/Button.ts')); // Outputs: '.ts'
86
- * console.log(fs.$extname('README')); // Outputs: ''
87
- */
88
- $extname(p) {
89
- return path.extname(p);
90
- }
91
- /**
92
- * Computes the relative path from one path to another, providing the most efficient route between them.
93
- * This method is invaluable for generating relative links or paths in documentation, imports, or user interfaces.
94
- *
95
- * @param {string} from - The starting path for the relative calculation.
96
- * @param {string} to - The destination path for the relative calculation.
97
- * @returns {string} The relative path from the 'from' path to the 'to' path.
98
- * @throws {TypeError} If either path is not a string.
99
- * @example
100
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
101
- * console.log(fs.$relative('src/components', 'src/utils/helpers.ts')); // Outputs: '../utils/helpers.ts'
102
- */
103
- $relative(from, to) {
104
- return path.relative(this.$resolve(from), this.$resolve(to));
105
- }
106
- /**
107
- * Normalizes a path by resolving '.' and '..' segments, eliminating redundant separators, and ensuring a clean, canonical path representation.
108
- * This method is essential for path sanitization and comparison, preventing issues caused by inconsistent path formats.
109
- *
110
- * @param {string} p - The path to be normalized.
111
- * @returns {string} The normalized path with resolved segments and cleaned separators.
112
- * @throws {TypeError} If the provided path is not a string.
113
- * @example
114
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
115
- * console.log(fs.$normalize('src/../src/components/./Button.ts')); // Outputs: 'src/components/Button.ts'
116
- */
117
- $normalize(p) {
118
- return path.normalize(p);
119
- }
120
- /**
121
- * Parses a path into its constituent components, providing detailed breakdown including root, directory, base name, extension, and name without extension.
122
- * This method facilitates advanced path manipulation and analysis by exposing all structural elements of the path.
123
- *
124
- * @param {string} p - The path to be parsed.
125
- * @returns {path.ParsedPath} An object containing the parsed path components: root, dir, base, ext, and name.
126
- * @throws {TypeError} If the provided path is not a string.
127
- * @example
128
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
129
- * const parsed = fs.$parse('src/components/Button.ts');
130
- * console.log(parsed);
131
- * // Outputs: { root: '', dir: 'src/components', base: 'Button.ts', ext: '.ts', name: 'Button' }
132
- */
133
- $parse(p) {
134
- return path.parse(p);
135
- }
136
- /**
137
- * Formats a path object back into a path string, reconstructing the full path from its parsed components.
138
- * This method is the inverse of path parsing, allowing for programmatic path construction from structured data.
139
- *
140
- * @param {path.FormatInputPathObject} pathObject - The path object containing components to format into a string.
141
- * @returns {string} The formatted path string.
142
- * @throws {TypeError} If the provided pathObject is not a valid path object.
143
- * @example
144
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
145
- * const pathObj = { dir: 'src/components', base: 'Button.ts' };
146
- * console.log(fs.$format(pathObj)); // Outputs: 'src/components/Button.ts'
147
- */
148
- $format(pathObject) {
149
- return path.format(pathObject);
150
- }
151
- // ========== EXISTENCE & TYPE CHECKS ==========
152
- /**
153
- * Synchronously checks if a path exists in the file system, providing a reliable way to verify file or directory presence before operations.
154
- * This method is essential for conditional logic and error prevention in file system interactions.
155
- *
156
- * @param {string} p - The path to check for existence.
157
- * @returns {boolean} True if the path exists, false otherwise.
158
- * @throws {TypeError} If the provided path is not a string.
159
- * @example
160
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
161
- * if (fs.$exists('config.json')) {
162
- * console.log('Configuration file found.');
163
- * } else {
164
- * console.log('Configuration file missing.');
165
- * }
166
- */
167
- $exists(p) {
168
- return fs.existsSync(this.$resolve(p));
169
- }
170
- /**
171
- * Determines whether the specified path refers to a directory, enabling type-specific handling in file system operations.
172
- * This method is crucial for distinguishing between files and directories to apply appropriate processing logic.
173
- *
174
- * @param {string} p - The path to check if it is a directory.
175
- * @returns {boolean} True if the path is a directory, false otherwise (including if the path does not exist).
176
- * @throws {TypeError} If the provided path is not a string.
177
- * @example
178
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
179
- * if (fs.$isDir('src')) {
180
- * console.log('Source directory exists.');
181
- * } else {
182
- * console.log('Source is not a directory or does not exist.');
183
- * }
184
- */
185
- $isDir(p) {
186
- try {
187
- return fs.statSync(this.$resolve(p)).isDirectory();
188
- }
189
- catch {
190
- return false;
191
- }
192
- }
193
- /**
194
- * Verifies if the given path points to a regular file, allowing for file-specific operations and validations.
195
- * This check is fundamental for ensuring that file reading or writing operations are applied to appropriate file system entities.
196
- *
197
- * @param {string} p - The path to verify as a file.
198
- * @returns {boolean} True if the path is a regular file, false otherwise (including if the path does not exist or is a directory).
199
- * @throws {TypeError} If the provided path is not a string.
200
- * @example
201
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
202
- * if (fs.$isFile('package.json')) {
203
- * console.log('Package configuration file is present.');
204
- * } else {
205
- * console.log('Package configuration is missing or not a file.');
206
- * }
207
- */
208
- $isFile(p) {
209
- try {
210
- return fs.statSync(this.$resolve(p)).isFile();
211
- }
212
- catch {
213
- return false;
214
- }
215
- }
216
- /**
217
- * Identifies if the specified path is a symbolic link, which is essential for handling symlinks appropriately in file system operations.
218
- * This method helps in detecting symbolic links to prevent unintended modifications or to apply symlink-specific logic.
219
- *
220
- * @param {string} p - The path to check for being a symbolic link.
221
- * @returns {boolean} True if the path is a symbolic link, false otherwise (including if the path does not exist).
222
- * @throws {TypeError} If the provided path is not a string.
223
- * @example
224
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
225
- * if (fs.$isSymlink('node_modules')) {
226
- * console.log('Node modules is a symlink.');
227
- * } else {
228
- * console.log('Node modules is not a symlink.');
229
- * }
230
- */
231
- $isSymlink(p) {
232
- try {
233
- return fs.lstatSync(this.$resolve(p)).isSymbolicLink();
234
- }
235
- catch {
236
- return false;
237
- }
238
- }
239
- /**
240
- * Determines if a path represents an empty entity, either an empty directory or a zero-byte file.
241
- * This method is useful for cleanup operations, validation checks, or determining if content needs to be added.
242
- *
243
- * @param {string} p - The path to check for emptiness.
244
- * @returns {boolean} True if the path is empty or does not exist, false if it contains content.
245
- * @throws {TypeError} If the provided path is not a string.
246
- * @example
247
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
248
- * if (fs.$isEmpty('logs')) {
249
- * console.log('Logs directory is empty.');
250
- * } else {
251
- * console.log('Logs directory contains files.');
252
- * }
253
- */
254
- $isEmpty(p) {
255
- const fullPath = this.$resolve(p);
256
- if (!fs.existsSync(fullPath))
257
- return true;
258
- if (this.$isDir(p)) {
259
- return fs.readdirSync(fullPath).length === 0;
260
- }
261
- return fs.statSync(fullPath).size === 0;
262
- }
263
- // ========== FILE READING ==========
264
- /**
265
- * Synchronously reads the entire contents of a file, providing flexible encoding options for different data types.
266
- * This method is ideal for loading configuration files, templates, or any file content that needs to be processed in memory.
267
- *
268
- * @param {string} p - The path to the file to read.
269
- * @param {BufferEncoding | { encoding?: BufferEncoding; flag?: string }} [options='utf8'] - The encoding to use or an options object specifying encoding and file access flags.
270
- * @returns {string | Buffer} The file contents as a string (if encoding is specified) or Buffer (if no encoding).
271
- * @throws {Error} If the file does not exist, cannot be read, or other file system errors occur.
272
- * @throws {TypeError} If the provided path is not a string.
273
- * @example
274
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
275
- * const content = fs.$readFile('README.md', 'utf8');
276
- * console.log(content);
277
- */
278
- $readFile(p, options = "utf8") {
279
- return fs.readFileSync(this.$resolve(p), options);
280
- }
281
- /**
282
- * Synchronously reads and parses a JSON file, automatically handling the file reading and JSON parsing in one convenient operation.
283
- * This method simplifies loading configuration files, data stores, or any JSON-formatted content with built-in error handling for malformed JSON.
284
- *
285
- * @param {string} p - The path to the JSON file to read and parse.
286
- * @returns {T} The parsed JSON object, typed according to the generic parameter.
287
- * @throws {SyntaxError} If the file content is not valid JSON.
288
- * @throws {Error} If the file does not exist or cannot be read.
289
- * @throws {TypeError} If the provided path is not a string.
290
- * @template T - The expected type of the parsed JSON object (defaults to any).
291
- * @example
292
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
293
- * const config = fs.$readJson<{ port: number; host: string }>('config.json');
294
- * console.log(`Server will run on ${config.host}:${config.port}`);
295
- */
296
- $readJson(p) {
297
- const content = this.$readFile(p, "utf8");
298
- return JSON.parse(content);
299
- }
300
- /**
301
- * Safely reads and parses a JSON file, gracefully handling errors by returning a predefined default value.
302
- * This method is perfect for optional configuration files or data that may not exist, preventing application crashes due to missing or invalid JSON.
303
- *
304
- * @param {string} p - The path to the JSON file to read and parse.
305
- * @param {T} defaultValue - The value to return if the file doesn't exist, cannot be read, or contains invalid JSON.
306
- * @returns {T} The parsed JSON object if successful, or the default value if any error occurs.
307
- * @throws {TypeError} If the provided path is not a string.
308
- * @template T - The expected type of the parsed JSON object and the default value.
309
- * @example
310
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
311
- * const settings = fs.$readJsonSafe('user-settings.json', { theme: 'light', language: 'en' });
312
- * console.log(`User theme: ${settings.theme}`);
313
- */
314
- $readJsonSafe(p, defaultValue) {
315
- try {
316
- return this.$readJson(p);
317
- }
318
- catch {
319
- return defaultValue;
320
- }
321
- }
322
- /**
323
- * Reads a file and splits its content into an array of lines, handling different line ending conventions automatically.
324
- * This method is ideal for processing text files line by line, such as configuration files, logs, or CSV data.
325
- *
326
- * @param {string} p - The path to the file to read as lines.
327
- * @returns {string[]} An array of strings, where each element represents a line from the file (including empty lines).
328
- * @throws {Error} If the file does not exist or cannot be read.
329
- * @throws {TypeError} If the provided path is not a string.
330
- * @example
331
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
332
- * const lines = fs.$readLines('todo.txt');
333
- * lines.forEach((line, index) => {
334
- * console.log(`${index + 1}: ${line}`);
335
- * });
336
- */
337
- $readLines(p) {
338
- const content = this.$readFile(p, "utf8");
339
- return content.split(/\r?\n/);
340
- }
341
- /**
342
- * Reads a file and returns an array of its non-empty lines, filtering out blank lines and whitespace-only lines.
343
- * This method is perfect for parsing configuration files, lists, or any text content where empty lines are irrelevant.
344
- *
345
- * @param {string} p - The path to the file to read and filter for non-empty lines.
346
- * @returns {string[]} An array of strings containing only the non-empty lines from the file, with whitespace trimmed.
347
- * @throws {Error} If the file does not exist or cannot be read.
348
- * @throws {TypeError} If the provided path is not a string.
349
- * @example
350
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
351
- * const commands = fs.$readNonEmptyLines('build-commands.txt');
352
- * commands.forEach(command => {
353
- * console.log(`Executing: ${command}`);
354
- * // Execute command
355
- * });
356
- */
357
- $readNonEmptyLines(p) {
358
- return this.$readLines(p).filter((line) => line.trim().length > 0);
359
- }
360
- // ========== FILE WRITING ==========
361
- /**
362
- * Synchronously writes data to a file, automatically creating any necessary parent directories to ensure the write operation succeeds.
363
- * This method simplifies file creation and modification by handling directory structure setup transparently.
364
- *
365
- * @param {string} p - The path to the file to write to.
366
- * @param {string | NodeJS.ArrayBufferView} data - The data to write to the file.
367
- * @param {fs.WriteFileOptions} [options] - Optional write options such as encoding, mode, or flags.
368
- * @throws {Error} If the file cannot be written or directories cannot be created.
369
- * @throws {TypeError} If the provided path is not a string.
370
- * @example
371
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
372
- * fs.$writeFile('logs/app.log', 'Application started successfully\n');
373
- * // Creates the logs directory if it doesn't exist
374
- */
375
- $writeFile(p, data, options) {
376
- const fullPath = this.$resolve(p);
377
- const dir = path.dirname(fullPath);
378
- if (!fs.existsSync(dir)) {
379
- fs.mkdirSync(dir, { recursive: true });
380
- }
381
- fs.writeFileSync(fullPath, data, options);
382
- }
383
- /**
384
- * Synchronously writes a JavaScript object to a JSON file with standardized 2-space indentation for readability.
385
- * This method combines object serialization and file writing, automatically creating parent directories as needed.
386
- *
387
- * @param {string} p - The path to the JSON file to write to.
388
- * @param {any} data - The JavaScript object or value to serialize and write as JSON.
389
- * @param {fs.WriteFileOptions} [options] - Optional write options such as encoding or mode.
390
- * @throws {Error} If the data cannot be serialized to JSON or the file cannot be written.
391
- * @throws {TypeError} If the provided path is not a string.
392
- * @example
393
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
394
- * const config = { port: 3000, host: 'localhost', debug: true };
395
- * fs.$writeJson('config/app.json', config);
396
- * // Creates a formatted JSON file with proper indentation
397
- */
398
- $writeJson(p, data, options) {
399
- this.$writeFile(p, JSON.stringify(data, null, 2), options);
400
- }
401
- /**
402
- * Synchronously appends data to the end of an existing file, creating the file if it doesn't exist.
403
- * This method is essential for logging, accumulating data, or building files incrementally without overwriting existing content.
404
- *
405
- * @param {string} p - The path to the file to append data to.
406
- * @param {string | Uint8Array} data - The data to append to the file.
407
- * @param {fs.WriteFileOptions} [options] - Optional write options such as encoding or mode.
408
- * @throws {Error} If the file cannot be accessed or written to.
409
- * @throws {TypeError} If the provided path is not a string.
410
- * @example
411
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
412
- * fs.$append('logs/access.log', `${new Date().toISOString()} - User login\n`);
413
- * // Adds the log entry to the end of the file
414
- */
415
- $append(p, data, options) {
416
- fs.appendFileSync(this.$resolve(p), data, options);
417
- }
418
- /**
419
- * Appends a single line of text to a file, automatically adding the appropriate newline character.
420
- * This method simplifies line-based file writing, ensuring consistent line endings across different platforms.
421
- *
422
- * @param {string} p - The path to the file to append the line to.
423
- * @param {string} line - The line of text to append (without needing to include the newline character).
424
- * @throws {Error} If the file cannot be accessed or written to.
425
- * @throws {TypeError} If the provided path or line is not a string.
426
- * @example
427
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
428
- * fs.$appendLine('todo.txt', 'Buy groceries');
429
- * fs.$appendLine('todo.txt', 'Finish project report');
430
- * // File now contains two lines with proper line endings
431
- */
432
- $appendLine(p, line) {
433
- this.$append(p, line + "\n");
434
- }
435
- /**
436
- * Creates an empty file if it doesn't exist, or updates the access and modification times of an existing file.
437
- * This method mimics the Unix 'touch' command behavior, useful for creating placeholder files or updating file timestamps.
438
- *
439
- * @param {string} p - The path to the file to touch.
440
- * @throws {Error} If the file cannot be created or its timestamps cannot be updated.
441
- * @throws {TypeError} If the provided path is not a string.
442
- * @example
443
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
444
- * fs.$touch('logs/app.log'); // Creates empty log file if it doesn't exist
445
- * // If file exists, updates its modification time to current time
446
- */
447
- $touch(p) {
448
- const fullPath = this.$resolve(p);
449
- if (fs.existsSync(fullPath)) {
450
- const now = new Date();
451
- fs.utimesSync(fullPath, now, now);
452
- }
453
- else {
454
- this.$writeFile(fullPath, "");
455
- }
456
- }
457
- /**
458
- * Conditionally writes data to a file only if the file does not already exist, preventing accidental overwrites.
459
- * This method is crucial for creating default configuration files or initializing resources without destroying existing data.
460
- *
461
- * @param {string} p - The path to the file to potentially write to.
462
- * @param {string | NodeJS.ArrayBufferView} data - The data to write if the file doesn't exist.
463
- * @returns {boolean} True if the file was written (didn't exist), false if the file already existed.
464
- * @throws {Error} If the file exists and cannot be written to, or if writing fails.
465
- * @throws {TypeError} If the provided path is not a string.
466
- * @example
467
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
468
- * const written = fs.$writeIfNotExists('config/default.json', '{"theme": "light"}');
469
- * if (written) {
470
- * console.log('Default config created');
471
- * } else {
472
- * console.log('Config already exists, not overwriting');
473
- * }
474
- */
475
- $writeIfNotExists(p, data) {
476
- if (this.$exists(p))
477
- return false;
478
- this.$writeFile(p, data);
479
- return true;
480
- }
481
- // ========== DIRECTORY OPERATIONS ==========
482
- /**
483
- * Synchronously creates a directory along with all necessary parent directories if they don't already exist.
484
- * This method ensures the complete directory path is available for subsequent file operations.
485
- *
486
- * @param {string} p - The path of the directory to create.
487
- * @param {boolean} [recursive=true] - Whether to create parent directories recursively (default: true).
488
- * @throws {Error} If the directory cannot be created or already exists and is not a directory.
489
- * @throws {TypeError} If the provided path is not a string.
490
- * @example
491
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
492
- * fs.$mkdir('data/processed/images/thumbnails');
493
- * // Creates the entire directory structure if it doesn't exist
494
- */
495
- $mkdir(p, recursive = true) {
496
- fs.mkdirSync(this.$resolve(p), { recursive });
497
- }
498
- /**
499
- * Guarantees that a directory exists by creating it if necessary, without throwing an error if it already exists.
500
- * This method is ideal for setup operations where you need to ensure directory availability without conditional checks.
501
- *
502
- * @param {string} p - The path of the directory to ensure exists.
503
- * @throws {Error} If the directory cannot be created and doesn't already exist.
504
- * @throws {TypeError} If the provided path is not a string.
505
- * @example
506
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
507
- * fs.$ensureDir('output/reports');
508
- * // Now safe to write files to 'output/reports/' without existence checks
509
- */
510
- $ensureDir(p) {
511
- const fullPath = this.$resolve(p);
512
- if (!fs.existsSync(fullPath)) {
513
- fs.mkdirSync(fullPath, { recursive: true });
514
- }
515
- }
516
- /**
517
- * Synchronously retrieves the list of items (files and directories) in a specified directory.
518
- * This method provides a simple way to explore directory contents without full path information.
519
- *
520
- * @param {string} p - The path of the directory to list.
521
- * @returns {string[]} An array of item names (files and directories) in the directory.
522
- * @throws {Error} If the directory does not exist or cannot be read.
523
- * @throws {TypeError} If the provided path is not a string.
524
- * @example
525
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
526
- * const items = fs.$ls('src');
527
- * console.log('Items in src:', items);
528
- * // Output: ['index.ts', 'components', 'utils', ...]
529
- */
530
- $ls(p) {
531
- return fs.readdirSync(this.$resolve(p));
532
- }
533
- /**
534
- * Lists all items in a directory, returning their full absolute paths for immediate use in other operations.
535
- * This method is particularly useful when you need complete path information for subsequent file operations.
536
- *
537
- * @param {string} p - The path of the directory to list with full paths.
538
- * @returns {string[]} An array of full paths for all items in the directory.
539
- * @throws {Error} If the directory does not exist or cannot be read.
540
- * @throws {TypeError} If the provided path is not a string.
541
- * @example
542
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
543
- * const fullPaths = fs.$lsFullPath('src');
544
- * fullPaths.forEach(path => {
545
- * console.log('Processing:', path);
546
- * // Can directly use these paths for other operations
547
- * });
548
- */
549
- $lsFullPath(p) {
550
- const fullPath = this.$resolve(p);
551
- return fs
552
- .readdirSync(fullPath)
553
- .map((item) => path.join(fullPath, item));
554
- }
555
- /**
556
- * Retrieves only the files (excluding directories and other items) from a directory listing.
557
- * This method is essential for operations that need to process only regular files in a specific directory.
558
- *
559
- * @param {string} p - The path of the directory to list files from.
560
- * @returns {string[]} An array of filenames that are regular files in the directory.
561
- * @throws {Error} If the directory does not exist or cannot be read.
562
- * @throws {TypeError} If the provided path is not a string.
563
- * @example
564
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
565
- * const files = fs.$lsFiles('src');
566
- * files.forEach(file => {
567
- * console.log('Found file:', file);
568
- * // Process only files, ignore subdirectories
569
- * });
570
- */
571
- $lsFiles(p) {
572
- const fullPath = this.$resolve(p);
573
- return fs.readdirSync(fullPath).filter((item) => {
574
- return fs.statSync(path.join(fullPath, item)).isFile();
575
- });
576
- }
577
- /**
578
- * Retrieves only the subdirectories (excluding files and other items) from a directory listing.
579
- * This method is useful for traversing directory structures or performing operations on folder hierarchies.
580
- *
581
- * @param {string} p - The path of the directory to list subdirectories from.
582
- * @returns {string[]} An array of directory names that are subdirectories in the specified directory.
583
- * @throws {Error} If the directory does not exist or cannot be read.
584
- * @throws {TypeError} If the provided path is not a string.
585
- * @example
586
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
587
- * const dirs = fs.$lsDirs('src');
588
- * dirs.forEach(dir => {
589
- * console.log('Found directory:', dir);
590
- * // Process subdirectories recursively if needed
591
- * });
592
- */
593
- $lsDirs(p) {
594
- const fullPath = this.$resolve(p);
595
- return fs.readdirSync(fullPath).filter((item) => {
596
- return fs.statSync(path.join(fullPath, item)).isDirectory();
597
- });
598
- }
599
- /**
600
- * Recursively traverses a directory tree and collects all file paths, with optional filtering capabilities.
601
- * This method is ideal for comprehensive directory analysis, bulk operations, or searching through entire project structures.
602
- *
603
- * @param {string} p - The root directory path to start the recursive listing from.
604
- * @param {(path: string) => boolean} [filter] - Optional filter function to include only files that match specific criteria.
605
- * @returns {string[]} An array of relative file paths from all subdirectories.
606
- * @throws {Error} If the directory does not exist or cannot be read.
607
- * @throws {TypeError} If the provided path is not a string.
608
- * @example
609
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
610
- * const allFiles = fs.$lsRecursive('src');
611
- * console.log('All files in src:', allFiles);
612
- *
613
- * // With filter for TypeScript files only
614
- * const tsFiles = fs.$lsRecursive('src', file => file.endsWith('.ts'));
615
- * console.log('TypeScript files:', tsFiles);
616
- */
617
- $lsRecursive(p, filter) {
618
- const results = [];
619
- const fullPath = this.$resolve(p);
620
- const walk = (dir) => {
621
- const items = fs.readdirSync(dir);
622
- for (const item of items) {
623
- const itemPath = path.join(dir, item);
624
- if (fs.statSync(itemPath).isDirectory()) {
625
- walk(itemPath);
626
- }
627
- else {
628
- const relativePath = path.relative(this.sys.__root__, itemPath);
629
- if (!filter || filter(relativePath)) {
630
- results.push(relativePath);
631
- }
632
- }
633
- }
634
- };
635
- walk(fullPath);
636
- return results;
637
- }
638
- /**
639
- * Searches recursively through a directory tree to find all files with a specific extension.
640
- * This method simplifies locating files of particular types across complex project structures.
641
- *
642
- * @param {string} p - The root directory path to search in.
643
- * @param {string} ext - The file extension to search for (with or without leading dot).
644
- * @returns {string[]} An array of relative file paths that match the specified extension.
645
- * @throws {Error} If the directory does not exist or cannot be read.
646
- * @throws {TypeError} If the provided path or extension is not a string.
647
- * @example
648
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
649
- * const jsFiles = fs.$findByExt('src', 'js');
650
- * const tsFiles = fs.$findByExt('src', '.ts');
651
- * console.log('JavaScript files:', jsFiles);
652
- * console.log('TypeScript files:', tsFiles);
653
- */
654
- $findByExt(p, ext) {
655
- const extension = ext.startsWith(".") ? ext : `.${ext}`;
656
- return this.$lsRecursive(p, (file) => file.endsWith(extension));
657
- }
658
- /**
659
- * Performs a recursive search through a directory tree using a regular expression pattern to find matching files.
660
- * This method provides powerful pattern-based file discovery for complex search requirements.
661
- *
662
- * @param {string} p - The root directory path to search in.
663
- * @param {RegExp} pattern - The regular expression pattern to match against file paths.
664
- * @returns {string[]} An array of relative file paths that match the provided pattern.
665
- * @throws {Error} If the directory does not exist or cannot be read.
666
- * @throws {TypeError} If the provided path is not a string or pattern is not a RegExp.
667
- * @example
668
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
669
- * // Find all test files
670
- * const testFiles = fs.$findByPattern('src', /test\.ts$/);
671
- * // Find all files starting with 'config'
672
- * const configFiles = fs.$findByPattern('.', /^config/);
673
- * console.log('Test files:', testFiles);
674
- */
675
- $findByPattern(p, pattern) {
676
- return this.$lsRecursive(p, (file) => pattern.test(file));
677
- }
678
- // ========== COPY & MOVE OPERATIONS ==========
679
- /**
680
- * Synchronously copies a file or directory from one location to another, with optional overwrite control.
681
- * This method handles both files and directories recursively, ensuring complete and accurate duplication.
682
- *
683
- * @param {string} src - The source path of the file or directory to copy.
684
- * @param {string} dest - The destination path where the file or directory should be copied.
685
- * @param {boolean} [overwrite=true] - Whether to overwrite the destination if it exists (default: true).
686
- * @throws {Error} If the source doesn't exist, destination exists and overwrite is false, or copy operation fails.
687
- * @throws {TypeError} If the provided paths are not strings.
688
- * @example
689
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
690
- * fs.$copy('config/default.json', 'config/production.json');
691
- * // Copies the file, overwriting if production.json exists
692
- *
693
- * fs.$copy('templates', 'build/templates', false);
694
- * // Copies directory only if build/templates doesn't exist
695
- */
696
- $copy(src, dest, overwrite = true) {
697
- const fullSrc = this.$resolve(src);
698
- const fullDest = this.$resolve(dest);
699
- if (!overwrite && fs.existsSync(fullDest)) {
700
- throw new Error(`Destination already exists: ${dest}`);
701
- }
702
- const destDir = path.dirname(fullDest);
703
- if (!fs.existsSync(destDir)) {
704
- fs.mkdirSync(destDir, { recursive: true });
705
- }
706
- fs.cpSync(fullSrc, fullDest, { recursive: true });
707
- }
708
- /**
709
- * Creates a duplicate of a file or directory within the same parent directory using a new name.
710
- * This method is convenient for creating backups, versions, or copies without specifying full destination paths.
711
- *
712
- * @param {string} p - The path of the file or directory to duplicate.
713
- * @param {string} newName - The new name for the duplicated item (without path).
714
- * @returns {string} The relative path of the newly created duplicate.
715
- * @throws {Error} If the source doesn't exist, destination already exists, or copy operation fails.
716
- * @throws {TypeError} If the provided paths are not strings.
717
- * @example
718
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
719
- * const backupPath = fs.$duplicate('config.json', 'config.backup.json');
720
- * console.log('Backup created at:', backupPath);
721
- * // Creates 'config.backup.json' in the same directory as 'config.json'
722
- */
723
- $duplicate(p, newName) {
724
- const fullPath = this.$resolve(p);
725
- const dir = path.dirname(fullPath);
726
- const newPath = path.join(dir, newName);
727
- fs.cpSync(fullPath, newPath, { recursive: true });
728
- return path.relative(this.sys.__root__, newPath);
729
- }
730
- /**
731
- * Synchronously moves or renames a file or directory from one location to another.
732
- * This atomic operation ensures that the item is either completely moved or remains in its original location.
733
- *
734
- * @param {string} src - The source path of the file or directory to move.
735
- * @param {string} dest - The destination path where the file or directory should be moved.
736
- * @throws {Error} If the source doesn't exist, destination directory doesn't exist, or move operation fails.
737
- * @throws {TypeError} If the provided paths are not strings.
738
- * @example
739
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
740
- * fs.$move('temp/file.txt', 'archive/file.txt');
741
- * // Moves file.txt from temp/ to archive/ directory
742
- *
743
- * fs.$move('oldname.txt', 'newname.txt');
744
- * // Renames oldname.txt to newname.txt in the same directory
745
- */
746
- $move(src, dest) {
747
- const fullSrc = this.$resolve(src);
748
- const fullDest = this.$resolve(dest);
749
- const destDir = path.dirname(fullDest);
750
- if (!fs.existsSync(destDir)) {
751
- fs.mkdirSync(destDir, { recursive: true });
752
- }
753
- fs.renameSync(fullSrc, fullDest);
754
- }
755
- /**
756
- * Renames a file or directory within its current directory using a new name.
757
- * This method provides a convenient way to change names without dealing with full path specifications.
758
- *
759
- * @param {string} oldPath - The current path of the file or directory to rename.
760
- * @param {string} newName - The new name for the item (without directory path).
761
- * @returns {string} The relative path of the renamed item.
762
- * @throws {Error} If the source doesn't exist, destination already exists, or rename operation fails.
763
- * @throws {TypeError} If the provided paths are not strings.
764
- * @example
765
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
766
- * const newPath = fs.$rename('draft-report.txt', 'final-report.txt');
767
- * console.log('File renamed to:', newPath);
768
- * // Renames 'draft-report.txt' to 'final-report.txt' in the same directory
769
- */
770
- $rename(oldPath, newName) {
771
- const fullOldPath = this.$resolve(oldPath);
772
- const dir = path.dirname(fullOldPath);
773
- const newPath = path.join(dir, newName);
774
- fs.renameSync(fullOldPath, newPath);
775
- return path.relative(this.sys.__root__, newPath);
776
- }
777
- // ========== DELETE OPERATIONS ==========
778
- /**
779
- * Synchronously removes a file or directory, including all contents recursively.
780
- * This method provides forceful deletion with configurable options for handling different scenarios.
781
- *
782
- * @param {string} p - The path of the file or directory to remove.
783
- * @param {fs.RmOptions} [options={ recursive: true, force: true }] - Options for the removal operation.
784
- * @throws {Error} If the path cannot be removed or doesn't exist.
785
- * @throws {TypeError} If the provided path is not a string.
786
- * @example
787
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
788
- * fs.$rm('temp/build');
789
- * // Removes the entire build directory and all its contents
790
- *
791
- * fs.$rm('unnecessary-file.txt', { recursive: false });
792
- * // Removes only the file (recursive defaults to true for safety)
793
- */
794
- $rm(p, options = { recursive: true, force: true }) {
795
- fs.rmSync(this.$resolve(p), options);
796
- }
797
- /**
798
- * Conditionally removes a file or directory only if it exists, preventing errors from attempting to delete non-existent paths.
799
- * This method is ideal for cleanup operations where the presence of the target is uncertain.
800
- *
801
- * @param {string} p - The path of the file or directory to remove if it exists.
802
- * @returns {boolean} True if the path was removed, false if it didn't exist.
803
- * @throws {Error} If the path exists but cannot be removed.
804
- * @throws {TypeError} If the provided path is not a string.
805
- * @example
806
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
807
- * const removed = fs.$rmIfExists('temp/cache');
808
- * if (removed) {
809
- * console.log('Cache directory cleaned up');
810
- * } else {
811
- * console.log('Cache directory was already clean');
812
- * }
813
- */
814
- $rmIfExists(p) {
815
- if (this.$exists(p)) {
816
- this.$rm(p);
817
- return true;
818
- }
819
- return false;
820
- }
821
- /**
822
- * Removes all contents of a directory while preserving the directory itself.
823
- * This method is useful for clearing temporary directories, cache folders, or preparing directories for fresh content.
824
- *
825
- * @param {string} p - The path of the directory to empty.
826
- * @throws {Error} If the directory doesn't exist, is not a directory, or contents cannot be removed.
827
- * @throws {TypeError} If the provided path is not a string.
828
- * @example
829
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
830
- * fs.$emptyDir('build');
831
- * // Removes all files and subdirectories from build/, but keeps the build/ directory
832
- */
833
- $emptyDir(p) {
834
- const fullPath = this.$resolve(p);
835
- if (fs.existsSync(fullPath) && fs.statSync(fullPath).isDirectory()) {
836
- const items = fs.readdirSync(fullPath);
837
- for (const item of items) {
838
- fs.rmSync(path.join(fullPath, item), {
839
- recursive: true,
840
- force: true,
841
- });
842
- }
843
- }
844
- }
845
- // ========== FILE STATISTICS ==========
846
- /**
847
- * Retrieves comprehensive statistics for a file or directory, including size, timestamps, and permissions.
848
- * This method provides access to all file system metadata available through Node.js fs.Stats.
849
- *
850
- * @param {string} p - The path of the file or directory to get statistics for.
851
- * @returns {fs.Stats} A Stats object containing detailed file system information.
852
- * @throws {Error} If the path does not exist or cannot be accessed.
853
- * @throws {TypeError} If the provided path is not a string.
854
- * @example
855
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
856
- * const stats = fs.$stats('package.json');
857
- * console.log('File size:', stats.size, 'bytes');
858
- * console.log('Modified:', stats.mtime);
859
- * console.log('Is directory:', stats.isDirectory());
860
- */
861
- $stats(p) {
862
- return fs.statSync(this.$resolve(p));
863
- }
864
- /**
865
- * Retrieves the size of a file in bytes, providing a direct way to check file dimensions.
866
- * This method is optimized for files and returns the raw byte count for precise size calculations.
867
- *
868
- * @param {string} p - The path of the file to get the size for.
869
- * @returns {number} The size of the file in bytes.
870
- * @throws {Error} If the path does not exist, is not a file, or cannot be accessed.
871
- * @throws {TypeError} If the provided path is not a string.
872
- * @example
873
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
874
- * const fileSize = fs.$size('bundle.js');
875
- * console.log(`Bundle size: ${fileSize} bytes`);
876
- * if (fileSize > 1024 * 1024) {
877
- * console.log('Warning: Bundle exceeds 1MB');
878
- * }
879
- */
880
- $size(p) {
881
- return this.$stats(p).size;
882
- }
883
- /**
884
- * Converts a file's size to a human-readable format with appropriate units (B, KB, MB, GB, TB).
885
- * This method provides user-friendly size representations for display purposes or logging.
886
- *
887
- * @param {string} p - The path of the file to get the human-readable size for.
888
- * @returns {string} The file size formatted as a string with appropriate units (e.g., "1.5 MB").
889
- * @throws {Error} If the path does not exist, is not a file, or cannot be accessed.
890
- * @throws {TypeError} If the provided path is not a string.
891
- * @example
892
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
893
- * const readableSize = fs.$sizeHuman('large-dataset.json');
894
- * console.log(`Dataset size: ${readableSize}`);
895
- * // Output: "Dataset size: 45.2 MB"
896
- */
897
- $sizeHuman(p) {
898
- const bytes = this.$size(p);
899
- const units = ["B", "KB", "MB", "GB", "TB"];
900
- let size = bytes;
901
- let unitIndex = 0;
902
- while (size >= 1024 && unitIndex < units.length - 1) {
903
- size /= 1024;
904
- unitIndex++;
905
- }
906
- return `${size.toFixed(2)} ${units[unitIndex]}`;
907
- }
908
- /**
909
- * Calculates the total size of a directory by recursively summing the sizes of all files within it.
910
- * This method provides comprehensive directory size analysis for storage management and optimization.
911
- *
912
- * @param {string} p - The path of the directory to calculate the total size for.
913
- * @returns {number} The total size of the directory in bytes, including all nested files.
914
- * @throws {Error} If the directory does not exist or cannot be accessed.
915
- * @throws {TypeError} If the provided path is not a string.
916
- * @example
917
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
918
- * const totalSize = fs.$sizeDir('node_modules');
919
- * console.log(`Node modules size: ${Math.round(totalSize / 1024 / 1024)} MB`);
920
- * // Useful for monitoring project bloat or cache sizes
921
- */
922
- $sizeDir(p) {
923
- const fullPath = this.$resolve(p);
924
- let totalSize = 0;
925
- const walk = (dir) => {
926
- const items = fs.readdirSync(dir);
927
- for (const item of items) {
928
- const itemPath = path.join(dir, item);
929
- const stat = fs.statSync(itemPath);
930
- if (stat.isDirectory()) {
931
- walk(itemPath);
932
- }
933
- else {
934
- totalSize += stat.size;
935
- }
936
- }
937
- };
938
- walk(fullPath);
939
- return totalSize;
940
- }
941
- /**
942
- * Retrieves the creation timestamp of a file or directory, indicating when it was first created on the file system.
943
- * This timestamp represents the initial creation time and may differ from modification time.
944
- *
945
- * @param {string} p - The path of the file or directory to get the creation time for.
946
- * @returns {Date} A Date object representing the creation time of the file system entry.
947
- * @throws {Error} If the path does not exist or cannot be accessed.
948
- * @throws {TypeError} If the provided path is not a string.
949
- * @example
950
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
951
- * const created = fs.$createdAt('important-document.pdf');
952
- * console.log(`Document was created on: ${created.toLocaleDateString()}`);
953
- * // Useful for tracking file origins or implementing retention policies
954
- */
955
- $createdAt(p) {
956
- return this.$stats(p).birthtime;
957
- }
958
- /**
959
- * Retrieves the last modification timestamp of a file or directory, indicating when its content was last changed.
960
- * This timestamp is crucial for build systems, caching mechanisms, and change detection algorithms.
961
- *
962
- * @param {string} p - The path of the file or directory to get the modification time for.
963
- * @returns {Date} A Date object representing the last modification time of the file system entry.
964
- * @throws {Error} If the path does not exist or cannot be accessed.
965
- * @throws {TypeError} If the provided path is not a string.
966
- * @example
967
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
968
- * const modified = fs.$modifiedAt('src/index.ts');
969
- * const now = new Date();
970
- * const hoursSinceModified = (now - modified) / (1000 * 60 * 60);
971
- * if (hoursSinceModified > 24) {
972
- * console.log('File hasn\'t been modified in over a day');
973
- * }
974
- */
975
- $modifiedAt(p) {
976
- return this.$stats(p).mtime;
977
- }
978
- /**
979
- * Retrieves the last access timestamp of a file or directory, indicating when it was last read or accessed.
980
- * This timestamp is useful for understanding usage patterns, implementing LRU caches, or identifying stale files.
981
- *
982
- * @param {string} p - The path of the file or directory to get the access time for.
983
- * @returns {Date} A Date object representing the last access time of the file system entry.
984
- * @throws {Error} If the path does not exist or cannot be accessed.
985
- * @throws {TypeError} If the provided path is not a string.
986
- * @example
987
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
988
- * const accessed = fs.$accessedAt('config/settings.json');
989
- * const daysSinceAccess = (Date.now() - accessed.getTime()) / (1000 * 60 * 60 * 24);
990
- * if (daysSinceAccess > 30) {
991
- * console.log('Configuration file hasn\'t been accessed in over a month');
992
- * }
993
- */
994
- $accessedAt(p) {
995
- return this.$stats(p).atime;
996
- }
997
- // ========== COMPARISON & SEARCH ==========
998
- /**
999
- * Compares the content of two files to determine if they are identical byte-for-byte.
1000
- * This method is essential for duplicate detection, integrity verification, and change tracking.
1001
- *
1002
- * @param {string} path1 - The path of the first file to compare.
1003
- * @param {string} path2 - The path of the second file to compare.
1004
- * @returns {boolean} True if both files exist and have identical content, false otherwise.
1005
- * @throws {TypeError} If either path is not a string.
1006
- * @example
1007
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1008
- * const identical = fs.$isSameContent('config/production.json', 'config/staging.json');
1009
- * if (identical) {
1010
- * console.log('Configuration files are synchronized');
1011
- * } else {
1012
- * console.log('Configuration files differ - review changes');
1013
- * }
1014
- */
1015
- $isSameContent(path1, path2) {
1016
- if (!this.$isFile(path1) || !this.$isFile(path2))
1017
- return false;
1018
- const content1 = this.$readFile(path1);
1019
- const content2 = this.$readFile(path2);
1020
- return content1.toString() === content2.toString();
1021
- }
1022
- /**
1023
- * Determines if the first file has been modified more recently than the second file.
1024
- * This method is crucial for build systems, dependency checking, and incremental processing workflows.
1025
- *
1026
- * @param {string} path1 - The path of the first file to compare.
1027
- * @param {string} path2 - The path of the second file to compare.
1028
- * @returns {boolean} True if the first file is newer (modified more recently) than the second file.
1029
- * @throws {Error} If either file does not exist.
1030
- * @throws {TypeError} If either path is not a string.
1031
- * @example
1032
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1033
- * if (fs.$isNewer('src/index.ts', 'dist/bundle.js')) {
1034
- * console.log('Source has been modified - rebuild needed');
1035
- * // Trigger build process
1036
- * } else {
1037
- * console.log('Build is up to date');
1038
- * }
1039
- */
1040
- $isNewer(path1, path2) {
1041
- return this.$modifiedAt(path1) > this.$modifiedAt(path2);
1042
- }
1043
- /**
1044
- * Determines if the first file has been modified less recently than the second file.
1045
- * This method complements $isNewer and is useful for identifying outdated files or cache invalidation.
1046
- *
1047
- * @param {string} path1 - The path of the first file to compare.
1048
- * @param {string} path2 - The path of the second file to compare.
1049
- * @returns {boolean} True if the first file is older (modified less recently) than the second file.
1050
- * @throws {Error} If either file does not exist.
1051
- * @throws {TypeError} If either path is not a string.
1052
- * @example
1053
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1054
- * if (fs.$isOlder('dist/bundle.js', 'src/index.ts')) {
1055
- * console.log('Bundle is outdated - source has been modified');
1056
- * // Trigger rebuild
1057
- * } else {
1058
- * console.log('Bundle is current');
1059
- * }
1060
- */
1061
- $isOlder(path1, path2) {
1062
- return this.$modifiedAt(path1) < this.$modifiedAt(path2);
1063
- }
1064
- /**
1065
- * Performs a recursive search through a directory tree to find all files containing the specified text.
1066
- * This method is powerful for code analysis, configuration validation, and content discovery across project structures.
1067
- *
1068
- * @param {string} dir - The root directory path to search in.
1069
- * @param {string} searchText - The text string to search for within files.
1070
- * @returns {string[]} An array of relative file paths that contain the search text.
1071
- * @throws {Error} If the directory does not exist or cannot be read.
1072
- * @throws {TypeError} If the directory path or search text is not a string.
1073
- * @example
1074
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1075
- * const filesWithTodo = fs.$searchInFiles('src', 'TODO');
1076
- * console.log(`Found ${filesWithTodo.length} files with TODO comments:`);
1077
- * filesWithTodo.forEach(file => console.log(` - ${file}`));
1078
- *
1079
- * // Search for configuration references
1080
- * const configRefs = fs.$searchInFiles('.', 'process.env.');
1081
- * console.log('Files using environment variables:', configRefs);
1082
- */
1083
- $searchInFiles(dir, searchText) {
1084
- const matches = [];
1085
- const files = this.$lsRecursive(dir, (file) => this.$isFile(file));
1086
- for (const file of files) {
1087
- try {
1088
- const content = this.$readFile(file, "utf8");
1089
- if (content.includes(searchText)) {
1090
- matches.push(file);
1091
- }
1092
- }
1093
- catch {
1094
- // Skip files that can't be read as text
1095
- }
1096
- }
1097
- return matches;
1098
- }
1099
- // ========== ADVANCED UTILITIES ==========
1100
- /**
1101
- * Generates a unique filename by appending a numerical counter if the original filename already exists.
1102
- * This method ensures file operations won't overwrite existing files by automatically finding an available name.
1103
- *
1104
- * @param {string} p - The desired filename path.
1105
- * @returns {string} A unique filename path that doesn't conflict with existing files.
1106
- * @throws {TypeError} If the provided path is not a string.
1107
- * @example
1108
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1109
- * const uniqueName = fs.$uniqueFilename('backup.json');
1110
- * console.log(`Using filename: ${uniqueName}`);
1111
- * // If 'backup.json' exists, returns 'backup (1).json'
1112
- * // If 'backup (1).json' also exists, returns 'backup (2).json', etc.
1113
- */
1114
- $uniqueFilename(p) {
1115
- if (!this.$exists(p))
1116
- return p;
1117
- const parsed = path.parse(this.$resolve(p));
1118
- let counter = 1;
1119
- let newPath;
1120
- do {
1121
- const newName = `${parsed.name} (${counter})${parsed.ext}`;
1122
- newPath = path.join(parsed.dir, newName);
1123
- counter++;
1124
- } while (fs.existsSync(newPath));
1125
- return path.relative(this.sys.__root__, newPath);
1126
- }
1127
- /**
1128
- * Creates a unique temporary directory with an optional prefix, ensuring no naming conflicts.
1129
- * This method is ideal for temporary workspaces, build processes, or any scenario requiring isolated directory operations.
1130
- *
1131
- * @param {string} [prefix='tmp-'] - The prefix to use for the temporary directory name.
1132
- * @returns {string} The relative path of the newly created temporary directory.
1133
- * @throws {Error} If the temporary directory cannot be created.
1134
- * @throws {TypeError} If the prefix is provided but not a string.
1135
- * @example
1136
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1137
- * const tempDir = fs.$mkdtemp('build-');
1138
- * console.log(`Created temporary directory: ${tempDir}`);
1139
- * // Creates something like 'build-abc123def' and returns its relative path
1140
- *
1141
- * // Use for temporary processing
1142
- * fs.$writeFile(`${tempDir}/data.txt`, 'temporary data');
1143
- * // ... process files ...
1144
- * fs.$rm(tempDir); // Clean up when done
1145
- */
1146
- $mkdtemp(prefix = "tmp-") {
1147
- const tmpDir = fs.mkdtempSync(path.join(this.sys.__root__, prefix));
1148
- return path.relative(this.sys.__root__, tmpDir);
1149
- }
1150
- /**
1151
- * Reads file content and normalizes line endings to Unix-style (\n) for clipboard compatibility.
1152
- * This method ensures that copied text maintains consistent formatting across different platforms and applications.
1153
- *
1154
- * @param {string} p - The path of the file to read for clipboard use.
1155
- * @returns {string} The file content with normalized line endings suitable for clipboard operations.
1156
- * @throws {Error} If the file does not exist or cannot be read.
1157
- * @throws {TypeError} If the provided path is not a string.
1158
- * @example
1159
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1160
- * const clipboardContent = fs.$readForClipboard('README.md');
1161
- * // Copy to clipboard (platform-specific implementation needed)
1162
- * // navigator.clipboard.writeText(clipboardContent);
1163
- *
1164
- * // Useful for sharing code snippets or documentation
1165
- */
1166
- $readForClipboard(p) {
1167
- const content = this.$readFile(p, "utf8");
1168
- return content.replace(/\r\n/g, "\n");
1169
- }
1170
- /**
1171
- * Sets up a file system watcher to monitor a file or directory for changes, enabling reactive responses to file system events.
1172
- * This method is essential for live reloading, automated builds, and real-time file synchronization.
1173
- *
1174
- * @param {string} p - The path of the file or directory to watch.
1175
- * @param {(eventType: string, filename: string | null) => void} callback - The function to call when changes occur.
1176
- * @returns {fs.FSWatcher} The file system watcher instance that can be used to stop watching.
1177
- * @throws {Error} If the path does not exist or the watcher cannot be established.
1178
- * @throws {TypeError} If the path is not a string or callback is not a function.
1179
- * @example
1180
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1181
- * const watcher = fs.$watch('src', (eventType, filename) => {
1182
- * console.log(`${eventType} detected on ${filename}`);
1183
- * if (eventType === 'change') {
1184
- * // Trigger rebuild or reload
1185
- * rebuildProject();
1186
- * }
1187
- * });
1188
- *
1189
- * // Later, stop watching
1190
- * // watcher.close();
1191
- */
1192
- $watch(p, callback) {
1193
- return fs.watch(this.$resolve(p), callback);
1194
- }
1195
- /**
1196
- * Applies a processing function to all files in a directory tree recursively, enabling bulk transformations and operations.
1197
- * This method is powerful for code refactoring, content updates, or applying consistent changes across multiple files.
1198
- *
1199
- * @param {string} dir - The root directory path to process files in.
1200
- * @param {(filePath: string, content: string) => string} processor - The function to apply to each file's content.
1201
- * @throws {Error} If the directory does not exist or files cannot be processed.
1202
- * @throws {TypeError} If the directory path is not a string or processor is not a function.
1203
- * @example
1204
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1205
- *
1206
- * // Update copyright notices in all TypeScript files
1207
- * fs.$batchProcess('src', (filePath, content) => {
1208
- * if (filePath.endsWith('.ts')) {
1209
- * return content.replace(/Copyright 2023/g, 'Copyright 2024');
1210
- * }
1211
- * return content; // Return unchanged for non-TS files
1212
- * });
1213
- *
1214
- * // Minify all JSON files
1215
- * fs.$batchProcess('config', (filePath, content) => {
1216
- * if (filePath.endsWith('.json')) {
1217
- * return JSON.stringify(JSON.parse(content)); // Remove extra whitespace
1218
- * }
1219
- * return content;
1220
- * });
1221
- */
1222
- $batchProcess(dir, processor) {
1223
- const files = this.$lsRecursive(dir);
1224
- for (const file of files) {
1225
- if (this.$isFile(file)) {
1226
- try {
1227
- const content = this.$readFile(file, "utf8");
1228
- const processed = processor(file, content);
1229
- this.$writeFile(file, processed);
1230
- }
1231
- catch (error) {
1232
- console.error(`Error processing ${file}:`, error);
1233
- }
1234
- }
1235
- }
1236
- }
1237
- /**
1238
- * Creates a backup copy of a file or directory by appending a suffix to the original name.
1239
- * This method provides a simple way to preserve the current state before making potentially destructive changes.
1240
- *
1241
- * @param {string} p - The path of the file or directory to back up.
1242
- * @param {string} [suffix='.backup'] - The suffix to append to create the backup filename.
1243
- * @returns {string} The relative path of the created backup.
1244
- * @throws {Error} If the source doesn't exist or the backup cannot be created.
1245
- * @throws {TypeError} If the path or suffix is not a string.
1246
- * @example
1247
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1248
- * const backupPath = fs.$backup('config/database.json');
1249
- * console.log(`Backup created: ${backupPath}`);
1250
- * // Creates 'config/database.json.backup'
1251
- *
1252
- * // Modify the original file safely
1253
- * fs.$writeJson('config/database.json', newConfig);
1254
- * // If something goes wrong, can restore from backup
1255
- */
1256
- $backup(p, suffix = ".backup") {
1257
- const fullPath = this.$resolve(p);
1258
- const backupPath = fullPath + suffix;
1259
- fs.cpSync(fullPath, backupPath, { recursive: true });
1260
- return path.relative(this.sys.__root__, backupPath);
1261
- }
1262
- /**
1263
- * Restores a file or directory from its backup copy created with the $backup method.
1264
- * This method provides a reliable way to revert changes by replacing the current file with its backup version.
1265
- *
1266
- * @param {string} p - The path of the file or directory to restore.
1267
- * @param {string} [suffix='.backup'] - The suffix used when creating the backup.
1268
- * @returns {boolean} True if the restoration was successful, false if no backup was found.
1269
- * @throws {Error} If the restoration process fails.
1270
- * @throws {TypeError} If the path or suffix is not a string.
1271
- * @example
1272
- * const fs = new XyPrissFS({ __root__: '/home/user/project' });
1273
- *
1274
- * // Create a backup first
1275
- * fs.$backup('config/settings.json');
1276
- *
1277
- * // Make changes that might need reverting
1278
- * fs.$writeJson('config/settings.json', riskyChanges);
1279
- *
1280
- * // If something goes wrong, restore from backup
1281
- * const restored = fs.$restore('config/settings.json');
1282
- * if (restored) {
1283
- * console.log('Settings restored from backup');
1284
- * } else {
1285
- * console.log('No backup found');
1286
- * }
1287
- */
1288
- $restore(p, suffix = ".backup") {
1289
- const backupPath = this.$resolve(p + suffix);
1290
- if (!fs.existsSync(backupPath))
1291
- return false;
1292
- const originalPath = this.$resolve(p);
1293
- if (fs.existsSync(originalPath)) {
1294
- fs.rmSync(originalPath, { recursive: true, force: true });
1295
- }
1296
- fs.cpSync(backupPath, originalPath, { recursive: true });
1297
- return true;
1298
- }
1299
- }
1300
-
1301
- exports.XyPrissFS = XyPrissFS;
1302
- //# sourceMappingURL=FileSystem.js.map