raiton 1.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 (311) hide show
  1. package/.releaserc.json +39 -0
  2. package/CHANGELOG.md +90 -0
  3. package/README.md +2 -0
  4. package/build/bin/bootstrapper.d.ts +5 -0
  5. package/build/bin/bootstrapper.mjs +46 -0
  6. package/build/bin/cli.d.ts +5 -0
  7. package/build/bin/cli.mjs +6 -0
  8. package/build/bin/index.d.ts +1 -0
  9. package/build/bin/index.mjs +50 -0
  10. package/build/chunk-3PWMRP6G.mjs +16 -0
  11. package/build/chunk-4OWCGDUD.mjs +0 -0
  12. package/build/chunk-52JR26TI.mjs +29 -0
  13. package/build/chunk-5LNOA4SK.mjs +16 -0
  14. package/build/chunk-AUGL35CF.mjs +24 -0
  15. package/build/chunk-BYYJRCB4.mjs +10 -0
  16. package/build/chunk-DIWD7ZCJ.mjs +0 -0
  17. package/build/chunk-FFRJ4AUA.mjs +16 -0
  18. package/build/chunk-GPJSLV3Q.mjs +50 -0
  19. package/build/chunk-HVFHDVAH.mjs +20 -0
  20. package/build/chunk-IOCHNQMF.mjs +13 -0
  21. package/build/chunk-JATYBWHL.mjs +36 -0
  22. package/build/chunk-JWNBO7XV.mjs +53 -0
  23. package/build/chunk-K4IQQ2KF.mjs +55 -0
  24. package/build/chunk-K4KLOLSO.mjs +645 -0
  25. package/build/chunk-M2RZZJQR.mjs +27 -0
  26. package/build/chunk-MLFGBJDV.mjs +12 -0
  27. package/build/chunk-NB62GSFI.mjs +27 -0
  28. package/build/chunk-O7R3NJQN.mjs +19 -0
  29. package/build/chunk-P2YCCBFR.mjs +14 -0
  30. package/build/chunk-P3IRIFPT.mjs +53 -0
  31. package/build/chunk-QFSXFOEN.mjs +56 -0
  32. package/build/chunk-QHCQ4AUA.mjs +14 -0
  33. package/build/chunk-QI7OFSXB.mjs +37 -0
  34. package/build/chunk-RVH2YBNU.mjs +111 -0
  35. package/build/chunk-RXG7754R.mjs +25 -0
  36. package/build/chunk-S3ONGVNZ.mjs +11 -0
  37. package/build/chunk-SRR4467I.mjs +29 -0
  38. package/build/chunk-T6L55AUG.mjs +32 -0
  39. package/build/chunk-TOJFTPAY.mjs +83 -0
  40. package/build/chunk-UAPCBU3J.mjs +12 -0
  41. package/build/chunk-UCHBN3DV.mjs +52 -0
  42. package/build/chunk-UWM46HLZ.mjs +18 -0
  43. package/build/chunk-UZFCGVHP.mjs +8 -0
  44. package/build/chunk-VQINCGLQ.mjs +59 -0
  45. package/build/chunk-VRL4S7UF.mjs +74 -0
  46. package/build/chunk-WAWFDMOH.mjs +72 -0
  47. package/build/chunk-X3JFRRRQ.mjs +45 -0
  48. package/build/chunk-XFBLELHI.mjs +34 -0
  49. package/build/chunk-XIGE72LC.mjs +34 -0
  50. package/build/chunk-XW7EPAD7.mjs +0 -0
  51. package/build/chunk-YGIZFKLJ.mjs +20 -0
  52. package/build/chunk-YRVIAORI.mjs +8 -0
  53. package/build/chunk-YXU5W2CB.mjs +12 -0
  54. package/build/commands/artifact.command.d.ts +14 -0
  55. package/build/commands/artifact.command.mjs +59 -0
  56. package/build/commands/build.command.d.ts +14 -0
  57. package/build/commands/build.command.mjs +65 -0
  58. package/build/commands/develop.command.d.ts +13 -0
  59. package/build/commands/develop.command.mjs +75 -0
  60. package/build/commands/grafts.command.d.ts +12 -0
  61. package/build/commands/grafts.command.mjs +58 -0
  62. package/build/commands/start.command.d.ts +12 -0
  63. package/build/commands/start.command.mjs +64 -0
  64. package/build/core/application.d.ts +27 -0
  65. package/build/core/application.mjs +124 -0
  66. package/build/core/artifact.d.ts +19 -0
  67. package/build/core/artifact.mjs +133 -0
  68. package/build/core/builder.d.ts +35 -0
  69. package/build/core/builder.mjs +45 -0
  70. package/build/core/bytes.util.d.ts +6 -0
  71. package/build/core/bytes.util.mjs +8 -0
  72. package/build/core/command.d.ts +15 -0
  73. package/build/core/command.mjs +6 -0
  74. package/build/core/commands.d.ts +13 -0
  75. package/build/core/commands.mjs +7 -0
  76. package/build/core/config.d.ts +10 -0
  77. package/build/core/config.mjs +7 -0
  78. package/build/core/context.d.ts +15 -0
  79. package/build/core/context.mjs +6 -0
  80. package/build/core/controller/builder.d.ts +10 -0
  81. package/build/core/controller/builder.mjs +45 -0
  82. package/build/core/controller/compiler.d.ts +6 -0
  83. package/build/core/controller/compiler.mjs +45 -0
  84. package/build/core/controller/index.d.ts +13 -0
  85. package/build/core/controller/index.mjs +50 -0
  86. package/build/core/controller/metadata.d.ts +10 -0
  87. package/build/core/controller/metadata.mjs +6 -0
  88. package/build/core/directories.d.ts +11 -0
  89. package/build/core/directories.mjs +8 -0
  90. package/build/core/hmr.d.ts +22 -0
  91. package/build/core/hmr.mjs +6 -0
  92. package/build/core/hooks.d.ts +12 -0
  93. package/build/core/hooks.mjs +6 -0
  94. package/build/core/index.d.ts +41 -0
  95. package/build/core/index.mjs +100 -0
  96. package/build/core/middleware/compose.d.ts +8 -0
  97. package/build/core/middleware/compose.mjs +6 -0
  98. package/build/core/middleware/index.d.ts +6 -0
  99. package/build/core/middleware/index.mjs +11 -0
  100. package/build/core/middleware/pipeline.d.ts +14 -0
  101. package/build/core/middleware/pipeline.mjs +7 -0
  102. package/build/core/plugins/index.d.ts +14 -0
  103. package/build/core/plugins/index.mjs +48 -0
  104. package/build/core/plugins/plugin.d.ts +17 -0
  105. package/build/core/plugins/plugin.mjs +6 -0
  106. package/build/core/plugins/scope.d.ts +24 -0
  107. package/build/core/plugins/scope.mjs +45 -0
  108. package/build/core/process.util.d.ts +3 -0
  109. package/build/core/process.util.mjs +6 -0
  110. package/build/core/raiton.d.ts +20 -0
  111. package/build/core/raiton.mjs +6 -0
  112. package/build/core/router/handler.d.ts +10 -0
  113. package/build/core/router/handler.mjs +45 -0
  114. package/build/core/router/index.d.ts +12 -0
  115. package/build/core/router/index.mjs +54 -0
  116. package/build/core/router/matcher.d.ts +21 -0
  117. package/build/core/router/matcher.mjs +6 -0
  118. package/build/core/router/route.d.ts +20 -0
  119. package/build/core/router/route.mjs +6 -0
  120. package/build/core/router/router.d.ts +16 -0
  121. package/build/core/router/router.mjs +8 -0
  122. package/build/core/thread.d.ts +30 -0
  123. package/build/core/thread.mjs +45 -0
  124. package/build/env.d.d.ts +2 -0
  125. package/build/env.d.mjs +0 -0
  126. package/build/raiton-1.1.1.tgz +0 -0
  127. package/build/requirements.d.ts +2 -0
  128. package/build/requirements.mjs +19 -0
  129. package/build/sdk/artifacts.d.ts +13 -0
  130. package/build/sdk/artifacts.mjs +45 -0
  131. package/build/sdk/constants/decorators.constant.d.ts +11 -0
  132. package/build/sdk/constants/decorators.constant.mjs +6 -0
  133. package/build/sdk/constants/index.d.ts +2 -0
  134. package/build/sdk/constants/index.mjs +11 -0
  135. package/build/sdk/constants/microservices.constant.d.ts +5 -0
  136. package/build/sdk/constants/microservices.constant.mjs +6 -0
  137. package/build/sdk/controllers.d.ts +4 -0
  138. package/build/sdk/controllers.mjs +6 -0
  139. package/build/sdk/data-transfer-object.d.ts +7 -0
  140. package/build/sdk/data-transfer-object.mjs +7 -0
  141. package/build/sdk/decorators/access-guard.decorator.d.ts +2 -0
  142. package/build/sdk/decorators/access-guard.decorator.mjs +0 -0
  143. package/build/sdk/decorators/controllable.d.ts +3 -0
  144. package/build/sdk/decorators/controllable.mjs +45 -0
  145. package/build/sdk/decorators/controllers.decorator.d.ts +2 -0
  146. package/build/sdk/decorators/controllers.decorator.mjs +0 -0
  147. package/build/sdk/decorators/grafts.decorator.d.ts +2 -0
  148. package/build/sdk/decorators/grafts.decorator.mjs +0 -0
  149. package/build/sdk/decorators/index.d.ts +3 -0
  150. package/build/sdk/decorators/index.mjs +75 -0
  151. package/build/sdk/decorators/parameters.decorator.d.ts +2 -0
  152. package/build/sdk/decorators/parameters.decorator.mjs +0 -0
  153. package/build/sdk/decorators/parametrable.d.ts +9 -0
  154. package/build/sdk/decorators/parametrable.mjs +57 -0
  155. package/build/sdk/decorators/payload.decorator.d.ts +2 -0
  156. package/build/sdk/decorators/payload.decorator.mjs +0 -0
  157. package/build/sdk/decorators/routable.d.ts +10 -0
  158. package/build/sdk/decorators/routable.mjs +59 -0
  159. package/build/sdk/dependency-container.d.ts +19 -0
  160. package/build/sdk/dependency-container.mjs +46 -0
  161. package/build/sdk/encryption.d.ts +27 -0
  162. package/build/sdk/encryption.mjs +141 -0
  163. package/build/sdk/enums/encrypted.enum.d.ts +15 -0
  164. package/build/sdk/enums/encrypted.enum.mjs +6 -0
  165. package/build/sdk/enums/event.message.enum.d.ts +6 -0
  166. package/build/sdk/enums/event.message.enum.mjs +6 -0
  167. package/build/sdk/enums/http-parameters.enum.d.ts +12 -0
  168. package/build/sdk/enums/http-parameters.enum.mjs +6 -0
  169. package/build/sdk/enums/http.enum.d.ts +12 -0
  170. package/build/sdk/enums/http.enum.mjs +6 -0
  171. package/build/sdk/enums/index.d.ts +6 -0
  172. package/build/sdk/enums/index.mjs +27 -0
  173. package/build/sdk/enums/runtime.enum.d.ts +8 -0
  174. package/build/sdk/enums/runtime.enum.mjs +6 -0
  175. package/build/sdk/enums/timestamp.enum.d.ts +8 -0
  176. package/build/sdk/enums/timestamp.enum.mjs +6 -0
  177. package/build/sdk/env.d.ts +6 -0
  178. package/build/sdk/env.mjs +74 -0
  179. package/build/sdk/fastify.d.ts +11 -0
  180. package/build/sdk/fastify.mjs +9 -0
  181. package/build/sdk/grafts.d.ts +15 -0
  182. package/build/sdk/grafts.mjs +71 -0
  183. package/build/sdk/index.d.ts +34 -0
  184. package/build/sdk/index.mjs +126 -0
  185. package/build/sdk/json.d.ts +17 -0
  186. package/build/sdk/json.mjs +87 -0
  187. package/build/sdk/plugins/body-parser.plugin.d.ts +17 -0
  188. package/build/sdk/plugins/body-parser.plugin.mjs +7 -0
  189. package/build/sdk/plugins/index.d.ts +17 -0
  190. package/build/sdk/plugins/index.mjs +48 -0
  191. package/build/sdk/plugins/security/body-limit.d.ts +17 -0
  192. package/build/sdk/plugins/security/body-limit.mjs +45 -0
  193. package/build/sdk/plugins/security/cors.d.ts +22 -0
  194. package/build/sdk/plugins/security/cors.mjs +45 -0
  195. package/build/sdk/plugins/security/headers.d.ts +17 -0
  196. package/build/sdk/plugins/security/headers.mjs +45 -0
  197. package/build/sdk/plugins/security/index.d.ts +25 -0
  198. package/build/sdk/plugins/security/index.mjs +45 -0
  199. package/build/sdk/plugins/security/method-guard.d.ts +17 -0
  200. package/build/sdk/plugins/security/method-guard.mjs +45 -0
  201. package/build/sdk/plugins/security/rate-limit.d.ts +21 -0
  202. package/build/sdk/plugins/security/rate-limit.mjs +45 -0
  203. package/build/sdk/repositories.d.ts +7 -0
  204. package/build/sdk/repositories.mjs +17 -0
  205. package/build/sdk/request.d.ts +4 -0
  206. package/build/sdk/request.mjs +6 -0
  207. package/build/sdk/responses.d.ts +8 -0
  208. package/build/sdk/responses.mjs +20 -0
  209. package/build/sdk/routes.d.ts +7 -0
  210. package/build/sdk/routes.mjs +61 -0
  211. package/build/sdk/runtime/bun/server.d.ts +6 -0
  212. package/build/sdk/runtime/bun/server.mjs +6 -0
  213. package/build/sdk/runtime/deno/server.d.ts +6 -0
  214. package/build/sdk/runtime/deno/server.mjs +6 -0
  215. package/build/sdk/runtime/index.d.ts +15 -0
  216. package/build/sdk/runtime/index.mjs +11 -0
  217. package/build/sdk/runtime/node/reply.d.ts +2 -0
  218. package/build/sdk/runtime/node/reply.mjs +0 -0
  219. package/build/sdk/runtime/node/request.d.ts +2 -0
  220. package/build/sdk/runtime/node/request.mjs +0 -0
  221. package/build/sdk/runtime/node/server.d.ts +6 -0
  222. package/build/sdk/runtime/node/server.mjs +6 -0
  223. package/build/sdk/runtime/web/server.d.ts +6 -0
  224. package/build/sdk/runtime/web/server.mjs +6 -0
  225. package/build/sdk/schemes.d.ts +120 -0
  226. package/build/sdk/schemes.mjs +129 -0
  227. package/build/sdk/services.d.ts +8 -0
  228. package/build/sdk/services.mjs +10 -0
  229. package/build/sdk/throwable.d.ts +78 -0
  230. package/build/sdk/throwable.mjs +14 -0
  231. package/build/sdk/utilities/alias-path.util.d.ts +9 -0
  232. package/build/sdk/utilities/alias-path.util.mjs +6 -0
  233. package/build/sdk/utilities/artifacts.util.d.ts +3 -0
  234. package/build/sdk/utilities/artifacts.util.mjs +45 -0
  235. package/build/sdk/utilities/callable.util.d.ts +3 -0
  236. package/build/sdk/utilities/callable.util.mjs +6 -0
  237. package/build/sdk/utilities/controller.util.d.ts +3 -0
  238. package/build/sdk/utilities/controller.util.mjs +6 -0
  239. package/build/sdk/utilities/index.d.ts +7 -0
  240. package/build/sdk/utilities/index.mjs +62 -0
  241. package/build/sdk/utilities/json.util.d.ts +3 -0
  242. package/build/sdk/utilities/json.util.mjs +6 -0
  243. package/build/sdk/utilities/parameters-arguments.util.d.ts +2 -0
  244. package/build/sdk/utilities/parameters-arguments.util.mjs +0 -0
  245. package/build/sdk/utilities/url.d.ts +3 -0
  246. package/build/sdk/utilities/url.mjs +7 -0
  247. package/build/sdk/utilities/utilities.util.d.ts +6 -0
  248. package/build/sdk/utilities/utilities.util.mjs +8 -0
  249. package/build/types/access-guards.d.ts +6 -0
  250. package/build/types/access-guards.mjs +0 -0
  251. package/build/types/application.d.ts +30 -0
  252. package/build/types/application.mjs +0 -0
  253. package/build/types/artifact.d.ts +21 -0
  254. package/build/types/artifact.mjs +0 -0
  255. package/build/types/builder.d.ts +32 -0
  256. package/build/types/builder.mjs +0 -0
  257. package/build/types/config.d.ts +6 -0
  258. package/build/types/config.mjs +0 -0
  259. package/build/types/controller.d.ts +25 -0
  260. package/build/types/controller.mjs +0 -0
  261. package/build/types/contruct.d.ts +3 -0
  262. package/build/types/contruct.mjs +0 -0
  263. package/build/types/core.d.ts +15 -0
  264. package/build/types/core.mjs +0 -0
  265. package/build/types/data-transfer-object.d.ts +5 -0
  266. package/build/types/data-transfer-object.mjs +0 -0
  267. package/build/types/dependency-container.d.ts +20 -0
  268. package/build/types/dependency-container.mjs +0 -0
  269. package/build/types/directory.d.ts +8 -0
  270. package/build/types/directory.mjs +0 -0
  271. package/build/types/encryption.d.ts +16 -0
  272. package/build/types/encryption.mjs +0 -0
  273. package/build/types/generic.d.ts +4 -0
  274. package/build/types/generic.mjs +0 -0
  275. package/build/types/hmr.d.ts +25 -0
  276. package/build/types/hmr.mjs +0 -0
  277. package/build/types/http-responses.d.ts +10 -0
  278. package/build/types/http-responses.mjs +0 -0
  279. package/build/types/index.d.ts +45 -0
  280. package/build/types/index.mjs +0 -0
  281. package/build/types/middleware.d.ts +12 -0
  282. package/build/types/middleware.mjs +0 -0
  283. package/build/types/parameters.d.ts +19 -0
  284. package/build/types/parameters.mjs +0 -0
  285. package/build/types/parseable.d.ts +5 -0
  286. package/build/types/parseable.mjs +0 -0
  287. package/build/types/payload.d.ts +6 -0
  288. package/build/types/payload.mjs +0 -0
  289. package/build/types/plugin.d.ts +20 -0
  290. package/build/types/plugin.mjs +0 -0
  291. package/build/types/raiton.d.ts +12 -0
  292. package/build/types/raiton.mjs +0 -0
  293. package/build/types/repositories.d.ts +8 -0
  294. package/build/types/repositories.mjs +0 -0
  295. package/build/types/router.d.ts +14 -0
  296. package/build/types/router.mjs +0 -0
  297. package/build/types/runtime.d.ts +37 -0
  298. package/build/types/runtime.mjs +0 -0
  299. package/build/types/scheme.d.ts +128 -0
  300. package/build/types/scheme.mjs +0 -0
  301. package/build/types/server.d.ts +57 -0
  302. package/build/types/server.mjs +0 -0
  303. package/build/types/services.d.ts +8 -0
  304. package/build/types/services.mjs +0 -0
  305. package/build/types/thread.d.ts +24 -0
  306. package/build/types/thread.mjs +0 -0
  307. package/build/types/utilities.d.ts +6 -0
  308. package/build/types/utilities.mjs +0 -0
  309. package/build/types/values.d.ts +4 -0
  310. package/build/types/values.mjs +0 -0
  311. package/package.json +97 -0
@@ -0,0 +1,39 @@
1
+ {
2
+ "branches": [
3
+ "main",
4
+ {
5
+ "name": "beta",
6
+ "prerelease": true
7
+ },
8
+ {
9
+ "name": "alpha",
10
+ "prerelease": true
11
+ }
12
+ ],
13
+ "plugins": [
14
+ "@semantic-release/commit-analyzer",
15
+ "@semantic-release/release-notes-generator",
16
+ [
17
+ "@semantic-release/changelog",
18
+ {
19
+ "changelogFile": "CHANGELOG.md"
20
+ }
21
+ ],
22
+ [
23
+ "@semantic-release/npm",
24
+ {
25
+ "npmPublish": true,
26
+ "tarballDir": "build",
27
+ "provenance": true
28
+ }
29
+ ],
30
+ [
31
+ "@semantic-release/git",
32
+ {
33
+ "assets": ["package.json", "CHANGELOG.md"],
34
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
35
+ }
36
+ ],
37
+ "@semantic-release/github"
38
+ ]
39
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,90 @@
1
+ ## [1.1.1](https://github.com/protorians/raiton/compare/v1.1.0...v1.1.1) (2025-12-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove unused Fastify dependencies and deprecate parameter handling utilities ([282db2c](https://github.com/protorians/raiton/commit/282db2cb4baeb52b816e1444f9d618570a073443))
7
+
8
+ # [1.1.0](https://github.com/protorians/raiton/compare/v1.0.0...v1.1.0) (2025-12-30)
9
+
10
+
11
+ ### Features
12
+
13
+ * enable provenance support in `package.json` and `.releaserc.json` ([b5db171](https://github.com/protorians/raiton/commit/b5db171a84150aefc2978b37c5d3544b5769b160))
14
+
15
+ # 1.0.0 (2025-12-30)
16
+
17
+
18
+ ### Features
19
+
20
+ * add `NODE_AUTH_TOKEN` to `publish.yml` for semantic-release environment setup ([44a561b](https://github.com/protorians/raiton/commit/44a561b60bc3f35ae59bb404c343ef56baab4d26))
21
+ * make package public and fix `publish.yml` token variable ([0293ee6](https://github.com/protorians/raiton/commit/0293ee629e444be0d90823896ea57212743d357d))
22
+ * remove redundant comments from `publish.yml` workflow ([37ddce9](https://github.com/protorians/raiton/commit/37ddce94356dba8f2c2d5e87af7fc3ade4ca3cf5))
23
+
24
+ # 1.0.0-beta.1 (2025-12-30)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * Add `pnpm-lock.yaml` for dependency management ([86dab7e](https://github.com/protorians/raiton/commit/86dab7ee712bcf72024687f59ada9974af9bdbe4))
30
+ * lazy-initialize `_container` in `GraftsRegistry` to optimize resource usage ([2847249](https://github.com/protorians/raiton/commit/2847249a70e08957ae618421bab11e68d126f057))
31
+ * update log method in `BuildCommand`, add `LBadge` for improved log formatting ([63d1126](https://github.com/protorians/raiton/commit/63d11265a65af60e47e07053376c87dd541a5fbb))
32
+
33
+
34
+ ### Features
35
+
36
+ * add `IGlobalGrafts` interface definition ([72585ed](https://github.com/protorians/raiton/commit/72585ed24c3c1b4e84626fca92ad9d9303a33061))
37
+ * add CLI commands and bootstrap logic for the `Raiton` framework ([61d6565](https://github.com/protorians/raiton/commit/61d6565e6b6f4f2eaeaf65e2878c0f24936bfd68))
38
+ * add constants for SDK modularization ([98bae11](https://github.com/protorians/raiton/commit/98bae1177e2b458a1e1925e151f1844db50b78c5))
39
+ * add enums for SDK modularization ([087864f](https://github.com/protorians/raiton/commit/087864f89f8a5d87746f5595ca3c148145473044))
40
+ * add process event handling and environment configuration setup ([93fc142](https://github.com/protorians/raiton/commit/93fc142bde480cd166e1f2681644768692fcecf7))
41
+ * add Swagger HTML page plugin for API documentation ([d287757](https://github.com/protorians/raiton/commit/d2877576d7a310ba814aa7c4b7790271582a20bf))
42
+ * add type definitions for core application structures ([c756482](https://github.com/protorians/raiton/commit/c75648245c7f7e2f2d25350c04e2dc0e4f5e3109))
43
+ * add utility functions for SDK ([b947207](https://github.com/protorians/raiton/commit/b947207afe37e9a876fe6f86facc081ce4fbb0de))
44
+ * implement core modules for `Raiton` framework ([89c1288](https://github.com/protorians/raiton/commit/89c12886a300015da603cda57f9dbbcd5394962a))
45
+ * implement SDK core modules and utilities ([085da37](https://github.com/protorians/raiton/commit/085da37d03399f1732d463763302d67df85848b1))
46
+ * integrate `bodyParserPlugin` into application setup, refine `ControllerMeta` structure, and clean up router handler logging ([3dc29b9](https://github.com/protorians/raiton/commit/3dc29b9d203fd1d56cd22de65f58dc6c9353566a))
47
+ * introduce decorators for SDK modularization ([e90e5fb](https://github.com/protorians/raiton/commit/e90e5fb017325115594985844328ac4d0542ccc5))
48
+
49
+ # [1.0.0-alpha.4](https://github.com/protorians/raiton/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2025-12-30)
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * update log method in `BuildCommand`, add `LBadge` for improved log formatting ([63d1126](https://github.com/protorians/raiton/commit/63d11265a65af60e47e07053376c87dd541a5fbb))
55
+
56
+
57
+ ### Features
58
+
59
+ * integrate `bodyParserPlugin` into application setup, refine `ControllerMeta` structure, and clean up router handler logging ([3dc29b9](https://github.com/protorians/raiton/commit/3dc29b9d203fd1d56cd22de65f58dc6c9353566a))
60
+
61
+ # [1.0.0-alpha.3](https://github.com/protorians/raiton/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2025-12-23)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * lazy-initialize `_container` in `GraftsRegistry` to optimize resource usage ([2847249](https://github.com/protorians/raiton/commit/2847249a70e08957ae618421bab11e68d126f057))
67
+
68
+ # [1.0.0-alpha.2](https://github.com/protorians/raiton/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2025-12-22)
69
+
70
+
71
+ ### Features
72
+
73
+ * add `IGlobalGrafts` interface definition ([72585ed](https://github.com/protorians/raiton/commit/72585ed24c3c1b4e84626fca92ad9d9303a33061))
74
+ * add CLI commands and bootstrap logic for the `Raiton` framework ([61d6565](https://github.com/protorians/raiton/commit/61d6565e6b6f4f2eaeaf65e2878c0f24936bfd68))
75
+ * add constants for SDK modularization ([98bae11](https://github.com/protorians/raiton/commit/98bae1177e2b458a1e1925e151f1844db50b78c5))
76
+ * add enums for SDK modularization ([087864f](https://github.com/protorians/raiton/commit/087864f89f8a5d87746f5595ca3c148145473044))
77
+ * add process event handling and environment configuration setup ([93fc142](https://github.com/protorians/raiton/commit/93fc142bde480cd166e1f2681644768692fcecf7))
78
+ * add Swagger HTML page plugin for API documentation ([d287757](https://github.com/protorians/raiton/commit/d2877576d7a310ba814aa7c4b7790271582a20bf))
79
+ * add type definitions for core application structures ([c756482](https://github.com/protorians/raiton/commit/c75648245c7f7e2f2d25350c04e2dc0e4f5e3109))
80
+ * add utility functions for SDK ([b947207](https://github.com/protorians/raiton/commit/b947207afe37e9a876fe6f86facc081ce4fbb0de))
81
+ * implement core modules for `Raiton` framework ([89c1288](https://github.com/protorians/raiton/commit/89c12886a300015da603cda57f9dbbcd5394962a))
82
+ * implement SDK core modules and utilities ([085da37](https://github.com/protorians/raiton/commit/085da37d03399f1732d463763302d67df85848b1))
83
+ * introduce decorators for SDK modularization ([e90e5fb](https://github.com/protorians/raiton/commit/e90e5fb017325115594985844328ac4d0542ccc5))
84
+
85
+ # 1.0.0-alpha.1 (2025-12-04)
86
+
87
+
88
+ ### Bug Fixes
89
+
90
+ * Add `pnpm-lock.yaml` for dependency management ([86dab7e](https://github.com/protorians/sentient-cli/commit/86dab7ee712bcf72024687f59ada9974af9bdbe4))
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # Protorians Raiton
2
+ Protorians Raiton development kit for backend microservice
@@ -0,0 +1,5 @@
1
+ import { Command } from 'commander';
2
+
3
+ declare function bootstrapper(cli: Command): Promise<Command>;
4
+
5
+ export { bootstrapper as default };
@@ -0,0 +1,46 @@
1
+ import {
2
+ bootstrapper
3
+ } from "../chunk-AUGL35CF.mjs";
4
+ import "../chunk-K4KLOLSO.mjs";
5
+ import "../chunk-RXG7754R.mjs";
6
+ import "../chunk-IOCHNQMF.mjs";
7
+ import "../chunk-M2RZZJQR.mjs";
8
+ import "../chunk-RVH2YBNU.mjs";
9
+ import "../chunk-MLFGBJDV.mjs";
10
+ import "../chunk-GPJSLV3Q.mjs";
11
+ import "../chunk-QFSXFOEN.mjs";
12
+ import "../chunk-JWNBO7XV.mjs";
13
+ import "../chunk-K4IQQ2KF.mjs";
14
+ import "../chunk-UCHBN3DV.mjs";
15
+ import "../chunk-VRL4S7UF.mjs";
16
+ import "../chunk-XW7EPAD7.mjs";
17
+ import "../chunk-QHCQ4AUA.mjs";
18
+ import "../chunk-YRVIAORI.mjs";
19
+ import "../chunk-UZFCGVHP.mjs";
20
+ import "../chunk-XIGE72LC.mjs";
21
+ import "../chunk-X3JFRRRQ.mjs";
22
+ import "../chunk-P3IRIFPT.mjs";
23
+ import "../chunk-S3ONGVNZ.mjs";
24
+ import "../chunk-DIWD7ZCJ.mjs";
25
+ import "../chunk-52JR26TI.mjs";
26
+ import "../chunk-JATYBWHL.mjs";
27
+ import "../chunk-VQINCGLQ.mjs";
28
+ import "../chunk-4OWCGDUD.mjs";
29
+ import "../chunk-YXU5W2CB.mjs";
30
+ import "../chunk-UAPCBU3J.mjs";
31
+ import "../chunk-O7R3NJQN.mjs";
32
+ import "../chunk-BYYJRCB4.mjs";
33
+ import "../chunk-FFRJ4AUA.mjs";
34
+ import "../chunk-3PWMRP6G.mjs";
35
+ import "../chunk-T6L55AUG.mjs";
36
+ import "../chunk-QI7OFSXB.mjs";
37
+ import "../chunk-TOJFTPAY.mjs";
38
+ import "../chunk-NB62GSFI.mjs";
39
+ import "../chunk-5LNOA4SK.mjs";
40
+ import "../chunk-YGIZFKLJ.mjs";
41
+ import "../chunk-UWM46HLZ.mjs";
42
+ import "../chunk-XFBLELHI.mjs";
43
+ import "../chunk-HVFHDVAH.mjs";
44
+ export {
45
+ bootstrapper as default
46
+ };
@@ -0,0 +1,5 @@
1
+ import { Command } from 'commander';
2
+
3
+ declare const CLI: Command;
4
+
5
+ export { CLI as default };
@@ -0,0 +1,6 @@
1
+ import {
2
+ cli_default
3
+ } from "../chunk-P2YCCBFR.mjs";
4
+ export {
5
+ cli_default as default
6
+ };
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ bootstrapper
4
+ } from "../chunk-AUGL35CF.mjs";
5
+ import {
6
+ cli_default
7
+ } from "../chunk-P2YCCBFR.mjs";
8
+ import "../chunk-K4KLOLSO.mjs";
9
+ import "../chunk-RXG7754R.mjs";
10
+ import "../chunk-IOCHNQMF.mjs";
11
+ import "../chunk-M2RZZJQR.mjs";
12
+ import "../chunk-RVH2YBNU.mjs";
13
+ import "../chunk-MLFGBJDV.mjs";
14
+ import "../chunk-GPJSLV3Q.mjs";
15
+ import "../chunk-QFSXFOEN.mjs";
16
+ import "../chunk-JWNBO7XV.mjs";
17
+ import "../chunk-K4IQQ2KF.mjs";
18
+ import "../chunk-UCHBN3DV.mjs";
19
+ import "../chunk-VRL4S7UF.mjs";
20
+ import "../chunk-XW7EPAD7.mjs";
21
+ import "../chunk-QHCQ4AUA.mjs";
22
+ import "../chunk-YRVIAORI.mjs";
23
+ import "../chunk-UZFCGVHP.mjs";
24
+ import "../chunk-XIGE72LC.mjs";
25
+ import "../chunk-X3JFRRRQ.mjs";
26
+ import "../chunk-P3IRIFPT.mjs";
27
+ import "../chunk-S3ONGVNZ.mjs";
28
+ import "../chunk-DIWD7ZCJ.mjs";
29
+ import "../chunk-52JR26TI.mjs";
30
+ import "../chunk-JATYBWHL.mjs";
31
+ import "../chunk-VQINCGLQ.mjs";
32
+ import "../chunk-4OWCGDUD.mjs";
33
+ import "../chunk-YXU5W2CB.mjs";
34
+ import "../chunk-UAPCBU3J.mjs";
35
+ import "../chunk-O7R3NJQN.mjs";
36
+ import "../chunk-BYYJRCB4.mjs";
37
+ import "../chunk-FFRJ4AUA.mjs";
38
+ import "../chunk-3PWMRP6G.mjs";
39
+ import "../chunk-T6L55AUG.mjs";
40
+ import "../chunk-QI7OFSXB.mjs";
41
+ import "../chunk-TOJFTPAY.mjs";
42
+ import "../chunk-NB62GSFI.mjs";
43
+ import "../chunk-5LNOA4SK.mjs";
44
+ import "../chunk-YGIZFKLJ.mjs";
45
+ import "../chunk-UWM46HLZ.mjs";
46
+ import "../chunk-XFBLELHI.mjs";
47
+ import "../chunk-HVFHDVAH.mjs";
48
+
49
+ // source/bin/index.ts
50
+ bootstrapper(cli_default);
@@ -0,0 +1,16 @@
1
+ // source/sdk/enums/http.enum.ts
2
+ var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
3
+ HttpMethod2["GET"] = "GET";
4
+ HttpMethod2["POST"] = "POST";
5
+ HttpMethod2["PUT"] = "PUT";
6
+ HttpMethod2["DELETE"] = "DELETE";
7
+ HttpMethod2["PATCH"] = "PATCH";
8
+ HttpMethod2["OPTIONS"] = "OPTIONS";
9
+ HttpMethod2["HEAD"] = "HEAD";
10
+ HttpMethod2["TRACE"] = "TRACE";
11
+ return HttpMethod2;
12
+ })(HttpMethod || {});
13
+
14
+ export {
15
+ HttpMethod
16
+ };
File without changes
@@ -0,0 +1,29 @@
1
+ import {
2
+ compose
3
+ } from "./chunk-JATYBWHL.mjs";
4
+
5
+ // source/core/middleware/pipeline.ts
6
+ var MiddlewarePipeline = class _MiddlewarePipeline {
7
+ stack = [];
8
+ use(mw) {
9
+ this.stack.push(mw);
10
+ return this;
11
+ }
12
+ clear() {
13
+ this.stack = [];
14
+ return this;
15
+ }
16
+ run(ctx) {
17
+ const fn = compose(this.stack);
18
+ return typeof fn == "function" ? fn(ctx) : void 0;
19
+ }
20
+ clone() {
21
+ const pipeline = new _MiddlewarePipeline();
22
+ pipeline.stack = [...this.stack];
23
+ return pipeline;
24
+ }
25
+ };
26
+
27
+ export {
28
+ MiddlewarePipeline
29
+ };
@@ -0,0 +1,16 @@
1
+ // source/core/process.util.ts
2
+ async function until(condition, interval = 50) {
3
+ return new Promise((resolve) => {
4
+ const check = () => {
5
+ const result = condition();
6
+ if (result instanceof Promise)
7
+ result.then((res) => res ? resolve() : setTimeout(check, interval));
8
+ else result ? resolve() : setTimeout(check, interval);
9
+ };
10
+ check();
11
+ });
12
+ }
13
+
14
+ export {
15
+ until
16
+ };
@@ -0,0 +1,24 @@
1
+ import {
2
+ RaitonConfig
3
+ } from "./chunk-QI7OFSXB.mjs";
4
+ import {
5
+ RaitonCommands
6
+ } from "./chunk-XFBLELHI.mjs";
7
+
8
+ // source/bin/bootstrapper.ts
9
+ import { fileURLToPath } from "url";
10
+ import path from "path";
11
+ var __filename = fileURLToPath(import.meta.url);
12
+ var __dirname = path.dirname(__filename);
13
+ async function bootstrapper(cli) {
14
+ const appdir = __dirname;
15
+ const workdir = process.cwd();
16
+ const capabilities = new RaitonCommands(cli, appdir, workdir);
17
+ RaitonConfig.load(workdir);
18
+ await capabilities.harvest();
19
+ return cli.parse(process.argv);
20
+ }
21
+
22
+ export {
23
+ bootstrapper
24
+ };
@@ -0,0 +1,10 @@
1
+ // source/sdk/enums/event.message.enum.ts
2
+ var EventMessageEnum = /* @__PURE__ */ ((EventMessageEnum2) => {
3
+ EventMessageEnum2["RESTART"] = ":restart";
4
+ EventMessageEnum2["STOP"] = ":stop";
5
+ return EventMessageEnum2;
6
+ })(EventMessageEnum || {});
7
+
8
+ export {
9
+ EventMessageEnum
10
+ };
File without changes
@@ -0,0 +1,16 @@
1
+ // source/sdk/enums/http-parameters.enum.ts
2
+ var Parametrable = /* @__PURE__ */ ((Parametrable2) => {
3
+ Parametrable2["PARAM"] = "param";
4
+ Parametrable2["BODY"] = "body";
5
+ Parametrable2["QUERY"] = "query";
6
+ Parametrable2["HEADER"] = "header";
7
+ Parametrable2["REQ"] = "req";
8
+ Parametrable2["REPLY"] = "reply";
9
+ Parametrable2["UPLOAD_FILE"] = "upload";
10
+ Parametrable2["CUSTOM"] = "custom";
11
+ return Parametrable2;
12
+ })(Parametrable || {});
13
+
14
+ export {
15
+ Parametrable
16
+ };
@@ -0,0 +1,50 @@
1
+ import {
2
+ nodeRuntime
3
+ } from "./chunk-QFSXFOEN.mjs";
4
+ import {
5
+ webRuntime
6
+ } from "./chunk-JWNBO7XV.mjs";
7
+ import {
8
+ bunRuntime
9
+ } from "./chunk-K4IQQ2KF.mjs";
10
+ import {
11
+ denoRuntime
12
+ } from "./chunk-UCHBN3DV.mjs";
13
+
14
+ // source/sdk/runtime/index.ts
15
+ var Runtime = class {
16
+ constructor(type = "node" /* Node */) {
17
+ this.type = type;
18
+ }
19
+ get isNode() {
20
+ return this.type === "node" /* Node */;
21
+ }
22
+ get isDeno() {
23
+ return this.type === "deno" /* Deno */;
24
+ }
25
+ get isWeb() {
26
+ return this.type === "web" /* Web */;
27
+ }
28
+ get isBun() {
29
+ return this.type === "bun" /* Bun */;
30
+ }
31
+ adapter() {
32
+ switch (this.type) {
33
+ case "node" /* Node */:
34
+ return nodeRuntime;
35
+ case "bun" /* Bun */:
36
+ return bunRuntime;
37
+ case "deno" /* Deno */:
38
+ return denoRuntime;
39
+ case "web" /* Web */:
40
+ return webRuntime;
41
+ }
42
+ }
43
+ createServer(handler) {
44
+ return this.adapter().createServer(handler);
45
+ }
46
+ };
47
+
48
+ export {
49
+ Runtime
50
+ };
@@ -0,0 +1,20 @@
1
+ // source/core/command.ts
2
+ var RaitonCommand = class {
3
+ constructor(cli, workdir) {
4
+ this.cli = cli;
5
+ this.workdir = workdir;
6
+ this.construct();
7
+ }
8
+ name = "";
9
+ description;
10
+ version = "0.0.0";
11
+ enabled = true;
12
+ construct() {
13
+ }
14
+ register() {
15
+ }
16
+ };
17
+
18
+ export {
19
+ RaitonCommand
20
+ };
@@ -0,0 +1,13 @@
1
+ // source/sdk/utilities/controller.util.ts
2
+ function isControllerFile(filename) {
3
+ return [
4
+ filename.endsWith(".controller.ts"),
5
+ filename.endsWith(".controller.js"),
6
+ filename.endsWith(".controller.mjs"),
7
+ filename.endsWith(".controller.cjs")
8
+ ].some(Boolean);
9
+ }
10
+
11
+ export {
12
+ isControllerFile
13
+ };
@@ -0,0 +1,36 @@
1
+ // source/core/middleware/compose.ts
2
+ function compose(middlewares) {
3
+ return function(ctx) {
4
+ let index = -1;
5
+ return dispatch(0);
6
+ async function dispatch(i) {
7
+ if (i <= index) {
8
+ return Promise.reject(
9
+ new Error("next() called multiple times")
10
+ );
11
+ }
12
+ index = i;
13
+ const fn = middlewares[i];
14
+ try {
15
+ if (!fn) return Promise.resolve();
16
+ if (typeof fn === "function") {
17
+ return Promise.resolve(fn(ctx, () => dispatch(i + 1)));
18
+ }
19
+ if (typeof fn === "object" && "setup" in fn && typeof fn.setup == "function") {
20
+ if (fn.setup.length === 1) {
21
+ await Promise.resolve(fn.setup(ctx));
22
+ return await dispatch(i + 1);
23
+ }
24
+ return Promise.resolve(fn.setup(ctx, () => dispatch(i + 1)));
25
+ }
26
+ return Promise.resolve();
27
+ } catch (err) {
28
+ return Promise.reject(err);
29
+ }
30
+ }
31
+ };
32
+ }
33
+
34
+ export {
35
+ compose
36
+ };
@@ -0,0 +1,53 @@
1
+ // source/sdk/runtime/web/server.ts
2
+ var webRuntime = {
3
+ createServer(handler) {
4
+ async function fetching(request, handler2) {
5
+ let responseBody;
6
+ let statusCode = 200;
7
+ const headers = new Headers();
8
+ const runtimeReq = {
9
+ method: request.method,
10
+ url: request.url,
11
+ headers: request.headers,
12
+ body: request.body
13
+ };
14
+ const runtimeReply = {
15
+ status(code) {
16
+ statusCode = code;
17
+ },
18
+ header(name, value) {
19
+ headers.set(name, value);
20
+ },
21
+ send(body) {
22
+ responseBody = body;
23
+ },
24
+ text(text) {
25
+ responseBody = text;
26
+ },
27
+ json(json) {
28
+ responseBody = JSON.stringify(json);
29
+ }
30
+ };
31
+ await handler2(runtimeReq, runtimeReply);
32
+ return new Response(
33
+ typeof responseBody === "object" && !(responseBody instanceof Uint8Array) ? JSON.stringify(responseBody) : responseBody,
34
+ { status: statusCode, headers }
35
+ );
36
+ }
37
+ return {
38
+ async listen() {
39
+ console.warn("Web runtime does not support listening");
40
+ },
41
+ async close() {
42
+ console.warn("Web runtime does not support closing");
43
+ },
44
+ async handle(request) {
45
+ return fetching(request, handler);
46
+ }
47
+ };
48
+ }
49
+ };
50
+
51
+ export {
52
+ webRuntime
53
+ };
@@ -0,0 +1,55 @@
1
+ // source/sdk/runtime/bun/server.ts
2
+ var bunRuntime = {
3
+ createServer(handler) {
4
+ if (typeof Bun === "undefined") throw new Error(
5
+ "bun is not installed, please run `npm install bun`"
6
+ );
7
+ const server = Bun.serve({
8
+ fetch: async (request) => {
9
+ let responseBody;
10
+ let statusCode = 200;
11
+ const headers = new Headers();
12
+ await handler(
13
+ {
14
+ method: request.method,
15
+ url: request.url,
16
+ headers: request.headers,
17
+ body: request.body
18
+ },
19
+ {
20
+ status(code) {
21
+ statusCode = code;
22
+ },
23
+ header(name, value) {
24
+ headers.set(name, value);
25
+ },
26
+ send(body) {
27
+ responseBody = body;
28
+ },
29
+ text(text) {
30
+ responseBody = text;
31
+ },
32
+ json(json) {
33
+ responseBody = JSON.stringify(json);
34
+ }
35
+ }
36
+ );
37
+ return new Response(
38
+ typeof responseBody === "object" ? JSON.stringify(responseBody) : responseBody,
39
+ { status: statusCode, headers }
40
+ );
41
+ }
42
+ });
43
+ return {
44
+ async listen() {
45
+ },
46
+ async close() {
47
+ server.stop();
48
+ }
49
+ };
50
+ }
51
+ };
52
+
53
+ export {
54
+ bunRuntime
55
+ };