raiton 6.8.9-beta.25 → 6.10.0-beta.28
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.
- package/CHANGELOG.md +44 -0
- package/README.md +46 -1
- package/benchmarks/README.md +16 -0
- package/benchmarks/latest.json +172 -0
- package/benchmarks/latest.md +66 -0
- package/build/bin/index.mjs +33550 -21725
- package/build/types/bin/bootstrapper.d.ts +2 -0
- package/build/types/bin/cli-output.d.ts +46 -0
- package/build/types/bin/cli-tools.d.ts +13 -0
- package/build/types/bin/cli.d.ts +3 -0
- package/build/types/bin/commands.registry.d.ts +4 -0
- package/build/types/bin/constants.d.ts +3 -0
- package/build/types/bin/file-utils.d.ts +21 -0
- package/build/types/bin/index.d.ts +2 -0
- package/build/types/bin/name-utils.d.ts +4 -0
- package/build/types/bin/project-utils.d.ts +12 -0
- package/build/types/commands/artifact.command.d.ts +7 -0
- package/build/types/commands/build.command.d.ts +8 -0
- package/build/types/commands/client.command.d.ts +7 -0
- package/build/types/commands/contract.command.d.ts +8 -0
- package/build/types/commands/develop.command.d.ts +9 -0
- package/build/types/commands/docs.command.d.ts +8 -0
- package/build/types/commands/doctor.command.d.ts +9 -0
- package/build/types/commands/generate.command.d.ts +7 -0
- package/build/types/commands/inspect.command.d.ts +7 -0
- package/build/types/commands/mcp.command.d.ts +11 -0
- package/build/types/commands/new.command.d.ts +7 -0
- package/build/types/commands/openapi.command.d.ts +7 -0
- package/build/types/commands/routes.command.d.ts +7 -0
- package/build/types/commands/start.command.d.ts +9 -0
- package/build/types/commands/why.command.d.ts +7 -0
- package/build/types/contracts/decorators.d.ts +41 -0
- package/build/types/contracts/errors.d.ts +42 -0
- package/build/types/contracts/index.d.ts +4 -0
- package/build/types/contracts/schema.d.ts +70 -0
- package/build/types/contracts/typebox.d.ts +81 -0
- package/build/types/core/application.d.ts +37 -0
- package/build/types/core/artifacts/artifact.d.ts +3 -0
- package/build/types/core/artifacts/index.d.ts +1 -0
- package/build/types/core/artifacts/runner.d.ts +1 -0
- package/build/types/core/builder.d.ts +42 -0
- package/build/types/core/bytes.util.d.ts +3 -0
- package/build/types/core/command.d.ts +13 -0
- package/build/types/core/commands.d.ts +10 -0
- package/build/types/core/config/config.d.ts +27 -0
- package/build/types/core/config/define.d.ts +8 -0
- package/build/types/core/config/index.d.ts +3 -0
- package/build/types/core/config/schema.d.ts +24 -0
- package/build/types/core/context.d.ts +11 -0
- package/build/types/core/controller/builder.d.ts +26 -0
- package/build/types/core/controller/compiler.d.ts +2 -0
- package/build/types/core/controller/index.d.ts +4 -0
- package/build/types/core/controller/metadata.d.ts +3 -0
- package/build/types/core/controller/tracker.d.ts +9 -0
- package/build/types/core/directories.d.ts +10 -0
- package/build/types/core/guards.d.ts +11 -0
- package/build/types/core/helpers/index.d.ts +1 -0
- package/build/types/core/helpers/raiton.d.ts +1 -0
- package/build/types/core/hooks.d.ts +14 -0
- package/build/types/core/index.d.ts +17 -0
- package/build/types/core/injection/index.d.ts +1 -0
- package/build/types/core/injection/injection.d.ts +37 -0
- package/build/types/core/mcp/builder.d.ts +2 -0
- package/build/types/core/mcp/index.d.ts +3 -0
- package/build/types/core/mcp/metadata.d.ts +9 -0
- package/build/types/core/mcp/tracker.d.ts +9 -0
- package/build/types/core/middleware/compose.d.ts +8 -0
- package/build/types/core/middleware/index.d.ts +2 -0
- package/build/types/core/middleware/pipeline.d.ts +12 -0
- package/build/types/core/plugins/index.d.ts +2 -0
- package/build/types/core/plugins/plugin.d.ts +2 -0
- package/build/types/core/plugins/scope.d.ts +15 -0
- package/build/types/core/process.util.d.ts +1 -0
- package/build/types/core/raiton.d.ts +15 -0
- package/build/types/core/router/handler.d.ts +2 -0
- package/build/types/core/router/handler.utils.d.ts +37 -0
- package/build/types/core/router/index.d.ts +4 -0
- package/build/types/core/router/matcher.d.ts +50 -0
- package/build/types/core/router/route.d.ts +52 -0
- package/build/types/core/router/router.d.ts +23 -0
- package/build/types/core/scheduler/builder.d.ts +2 -0
- package/build/types/core/scheduler/cron.d.ts +32 -0
- package/build/types/core/scheduler/duration.d.ts +7 -0
- package/build/types/core/scheduler/index.d.ts +6 -0
- package/build/types/core/scheduler/manager.d.ts +47 -0
- package/build/types/core/scheduler/metadata.d.ts +8 -0
- package/build/types/core/scheduler/queue/backend.d.ts +42 -0
- package/build/types/core/scheduler/queue/index.d.ts +3 -0
- package/build/types/core/scheduler/queue/rabbitmq.backend.d.ts +37 -0
- package/build/types/core/scheduler/queue/redis.backend.d.ts +38 -0
- package/build/types/core/server.d.ts +9 -0
- package/build/types/core/socket/builder.d.ts +1 -0
- package/build/types/core/socket/index.d.ts +2 -0
- package/build/types/core/socket/metadata.d.ts +14 -0
- package/build/types/core/thread.d.ts +21 -0
- package/build/types/framework/artifacts.d.ts +20 -0
- package/build/types/framework/cache/cache.d.ts +84 -0
- package/build/types/framework/cache/cache.decorator.d.ts +21 -0
- package/build/types/framework/cache/etag.d.ts +62 -0
- package/build/types/framework/cache/index.d.ts +4 -0
- package/build/types/framework/cache/types.d.ts +89 -0
- package/build/types/framework/constants/decorators.constant.d.ts +28 -0
- package/build/types/framework/constants/index.d.ts +2 -0
- package/build/types/framework/constants/microservices.constant.d.ts +3 -0
- package/build/types/framework/controllers.d.ts +2 -0
- package/build/types/framework/data-transfer-object.d.ts +5 -0
- package/build/types/framework/decorators/access-guard.decorator.d.ts +1 -0
- package/build/types/framework/decorators/api-response.decorator.d.ts +66 -0
- package/build/types/framework/decorators/api.decorator.d.ts +160 -0
- package/build/types/framework/decorators/controllable.decorator.d.ts +3 -0
- package/build/types/framework/decorators/csrf-guard.decorator.d.ts +2 -0
- package/build/types/framework/decorators/csrf-token.decorator.d.ts +1 -0
- package/build/types/framework/decorators/guard.decorator.d.ts +2 -0
- package/build/types/framework/decorators/health-check.decorator.d.ts +17 -0
- package/build/types/framework/decorators/index.d.ts +15 -0
- package/build/types/framework/decorators/injection.decorator.d.ts +5 -0
- package/build/types/framework/decorators/mcp.decorator.d.ts +68 -0
- package/build/types/framework/decorators/middleware.decorator.d.ts +3 -0
- package/build/types/framework/decorators/parametrable.decorator.d.ts +9 -0
- package/build/types/framework/decorators/routable.decorator.d.ts +12 -0
- package/build/types/framework/decorators/route-interaction.decorator.d.ts +81 -0
- package/build/types/framework/decorators/scheduler.decorator.d.ts +54 -0
- package/build/types/framework/decorators/socket.decorator.d.ts +5 -0
- package/build/types/framework/encryption.d.ts +25 -0
- package/build/types/framework/enums/csrf.enum.d.ts +4 -0
- package/build/types/framework/enums/encrypted.enum.d.ts +20 -0
- package/build/types/framework/enums/event.message.enum.d.ts +4 -0
- package/build/types/framework/enums/http-method.enum.d.ts +10 -0
- package/build/types/framework/enums/http-parameters.enum.d.ts +11 -0
- package/build/types/framework/enums/http-status.enum.d.ts +64 -0
- package/build/types/framework/enums/index.d.ts +9 -0
- package/build/types/framework/enums/runtime.enum.d.ts +5 -0
- package/build/types/framework/enums/scheduler.enum.d.ts +21 -0
- package/build/types/framework/enums/timestamp.enum.d.ts +6 -0
- package/build/types/framework/env.d.ts +3 -0
- package/build/types/framework/errors/catalog.d.ts +42 -0
- package/build/types/framework/exceptions/http-exception.d.ts +18 -0
- package/build/types/framework/exceptions/index.d.ts +2 -0
- package/build/types/framework/exceptions/throwable.d.ts +76 -0
- package/build/types/framework/health-check.d.ts +42 -0
- package/build/types/framework/index.d.ts +20 -0
- package/build/types/framework/mcp/audit.d.ts +12 -0
- package/build/types/framework/mcp/conformance.d.ts +31 -0
- package/build/types/framework/mcp/handler.d.ts +11 -0
- package/build/types/framework/mcp/index.d.ts +5 -0
- package/build/types/framework/mcp/protocol.d.ts +17 -0
- package/build/types/framework/mcp/rate-limit.d.ts +10 -0
- package/build/types/framework/mcp/stdio.d.ts +40 -0
- package/build/types/framework/mcp/streamable-http.d.ts +17 -0
- package/build/types/framework/observability/index.d.ts +6 -0
- package/build/types/framework/observability/metrics.d.ts +23 -0
- package/build/types/framework/observability/plugin.d.ts +20 -0
- package/build/types/framework/observability/readiness.d.ts +9 -0
- package/build/types/framework/observability/request.d.ts +7 -0
- package/build/types/framework/observability/shutdown.d.ts +21 -0
- package/build/types/framework/observability/trace.d.ts +96 -0
- package/build/types/framework/parameter-bag.d.ts +14 -0
- package/build/types/framework/plugins/body-parser.plugin.d.ts +3 -0
- package/build/types/framework/plugins/dev.plugin.d.ts +12 -0
- package/build/types/framework/plugins/index.d.ts +5 -0
- package/build/types/framework/plugins/mcp.plugin.d.ts +15 -0
- package/build/types/framework/plugins/openapi.plugin.d.ts +58 -0
- package/build/types/framework/plugins/security/body-limit.d.ts +1 -0
- package/build/types/framework/plugins/security/cors.d.ts +10 -0
- package/build/types/framework/plugins/security/csrf.d.ts +2 -0
- package/build/types/framework/plugins/security/headers.d.ts +1 -0
- package/build/types/framework/plugins/security/index.d.ts +13 -0
- package/build/types/framework/plugins/security/method-guard.d.ts +1 -0
- package/build/types/framework/plugins/security/rate-limit.d.ts +5 -0
- package/build/types/framework/repositories.d.ts +5 -0
- package/build/types/framework/responses/error.d.ts +13 -0
- package/build/types/framework/responses/helpers.d.ts +7 -0
- package/build/types/framework/responses/http-throwable.d.ts +14 -0
- package/build/types/framework/responses/http.d.ts +13 -0
- package/build/types/framework/responses/index.d.ts +4 -0
- package/build/types/framework/runtime/bun/server.d.ts +2 -0
- package/build/types/framework/runtime/deno/server.d.ts +2 -0
- package/build/types/framework/runtime/index.d.ts +17 -0
- package/build/types/framework/runtime/node/reply.d.ts +12 -0
- package/build/types/framework/runtime/node/request.d.ts +33 -0
- package/build/types/framework/runtime/node/server.d.ts +2 -0
- package/build/types/framework/runtime/web/server.d.ts +1 -0
- package/build/types/framework/services.d.ts +5 -0
- package/build/types/framework/utilities/alias-path.util.d.ts +1 -0
- package/build/types/framework/utilities/artifact.util.d.ts +7 -0
- package/build/types/framework/utilities/callable.util.d.ts +1 -0
- package/build/types/framework/utilities/cookie.util.d.ts +1 -0
- package/build/types/framework/utilities/csrf.util.d.ts +26 -0
- package/build/types/framework/utilities/https.util.d.ts +49 -0
- package/build/types/framework/utilities/index.d.ts +12 -0
- package/build/types/framework/utilities/ip.util.d.ts +15 -0
- package/build/types/framework/utilities/json.util.d.ts +10 -0
- package/build/types/framework/utilities/openapi.utils.d.ts +7 -0
- package/build/types/framework/utilities/openapi.utils.impl.d.ts +18 -0
- package/build/types/framework/utilities/path.util.d.ts +3 -0
- package/build/types/framework/utilities/route-suggestion.util.d.ts +10 -0
- package/build/types/framework/utilities/url.util.d.ts +1 -0
- package/build/types/framework/utilities/utilities.util.d.ts +3 -0
- package/build/types/framework/utilities/validation.util.d.ts +8 -0
- package/build/types/framework/view-model.d.ts +4 -0
- package/build/types/generators/artifact.templates.d.ts +7 -0
- package/build/types/generators/index.d.ts +2 -0
- package/build/types/generators/project.templates.d.ts +21 -0
- package/build/types/manifest/client.d.ts +12 -0
- package/build/types/manifest/contract.d.ts +25 -0
- package/build/types/manifest/index.d.ts +5 -0
- package/build/types/manifest/introspect.d.ts +18 -0
- package/build/types/manifest/manifest.d.ts +18 -0
- package/build/types/manifest/schema.d.ts +177 -0
- package/build/types/requirements.d.ts +1 -0
- package/build/types/types/access-guards.d.ts +4 -0
- package/build/types/types/application.d.ts +32 -0
- package/build/types/types/artifact.d.ts +8 -0
- package/build/types/types/builder.d.ts +37 -0
- package/build/types/types/config.d.ts +62 -0
- package/build/types/types/controller.d.ts +27 -0
- package/build/types/types/contruct.d.ts +1 -0
- package/build/types/types/core.d.ts +11 -0
- package/build/types/types/csrf.d.ts +33 -0
- package/build/types/types/directory.d.ts +6 -0
- package/build/types/types/encryption.d.ts +14 -0
- package/build/types/types/generic.d.ts +2 -0
- package/build/types/types/guard.d.ts +9 -0
- package/build/types/types/http-responses.d.ts +7 -0
- package/build/types/types/index.d.ts +27 -0
- package/build/types/types/injection.d.ts +11 -0
- package/build/types/types/lifecycle.d.ts +9 -0
- package/build/types/types/mcp.d.ts +148 -0
- package/build/types/types/middleware.d.ts +12 -0
- package/build/types/types/parseable.d.ts +3 -0
- package/build/types/types/plugin.d.ts +6 -0
- package/build/types/types/raiton.d.ts +13 -0
- package/build/types/types/responses.d.ts +20 -0
- package/build/types/types/router.d.ts +13 -0
- package/build/types/types/runtime.d.ts +48 -0
- package/build/types/types/scheduler.d.ts +140 -0
- package/build/types/types/scheme.d.ts +125 -0
- package/build/types/types/server.d.ts +10 -0
- package/build/types/types/socket.d.ts +11 -0
- package/build/types/types/thread.d.ts +25 -0
- package/build/types/types/utilities.d.ts +4 -0
- package/build/types/types/values.d.ts +2 -0
- package/docs/AGENTS.md +55 -0
- package/docs/CLAUDE.md +55 -0
- package/docs/README.md +5 -0
- package/docs/contributors/cli/README.md +17 -3
- package/docs/contributors/cli/commands.md +28 -17
- package/docs/contributors/framework/plugins/openapi.md +12 -3
- package/docs/generated/cli/commands.md +26 -0
- package/docs/generated/config-schema.json +150 -0
- package/docs/generated/manifest-schema.json +236 -0
- package/docs/generated/manifest.json +101 -0
- package/docs/llms-full.txt +1271 -0
- package/docs/llms.txt +46 -0
- package/docs/user-guide/README.md +18 -12
- package/docs/user-guide/cli.md +21 -0
- package/docs/user-guide/config.md +14 -0
- package/docs/user-guide/contracts.md +67 -0
- package/docs/user-guide/en/README.md +83 -0
- package/docs/user-guide/getting-started.md +13 -1
- package/docs/user-guide/mcp.md +45 -2
- package/docs/user-guide/observability.md +74 -0
- package/docs/user-guide/openapi/plugin.md +10 -0
- package/docs/user-guide/recipes/README.md +32 -0
- package/docs/user-guide/recipes/contracts.md +52 -0
- package/docs/user-guide/recipes/doctor.md +16 -0
- package/docs/user-guide/recipes/generate.md +28 -0
- package/docs/user-guide/recipes/manifest.md +17 -0
- package/docs/user-guide/recipes/mcp-stdio.md +35 -0
- package/docs/user-guide/recipes/new-project.md +34 -0
- package/docs/user-guide/recipes/observability.md +17 -0
- package/package.json +40 -7
- package/scripts/bench.ts +586 -0
- package/scripts/postinstall.mjs +15 -0
- package/source/bin/cli-output.ts +139 -0
- package/source/bin/commands.registry.ts +23 -3
- package/source/bin/file-utils.ts +95 -0
- package/source/bin/name-utils.ts +26 -0
- package/source/bin/project-utils.ts +78 -0
- package/source/commands/artifact.command.ts +30 -15
- package/source/commands/client.command.ts +64 -0
- package/source/commands/contract.command.ts +104 -0
- package/source/commands/docs.command.ts +263 -0
- package/source/commands/doctor.command.ts +226 -0
- package/source/commands/generate.command.ts +58 -0
- package/source/commands/inspect.command.ts +108 -0
- package/source/commands/mcp.command.ts +258 -0
- package/source/commands/new.command.ts +135 -0
- package/source/commands/openapi.command.ts +95 -0
- package/source/commands/routes.command.ts +39 -0
- package/source/commands/why.command.ts +61 -0
- package/source/contracts/decorators.ts +151 -0
- package/source/contracts/errors.ts +76 -0
- package/source/contracts/index.ts +4 -0
- package/source/contracts/schema.ts +377 -0
- package/source/contracts/typebox.ts +193 -0
- package/source/core/application.ts +215 -73
- package/source/core/builder.ts +6 -2
- package/source/core/config/config.ts +144 -26
- package/source/core/config/define.ts +35 -8
- package/source/core/config/index.ts +2 -1
- package/source/core/config/schema.ts +263 -0
- package/source/core/controller/builder.ts +38 -13
- package/source/core/controller/compiler.ts +14 -7
- package/source/core/controller/metadata.ts +1 -1
- package/source/core/hooks.ts +13 -1
- package/source/core/injection/injection.ts +47 -9
- package/source/core/mcp/builder.ts +13 -2
- package/source/core/mcp/metadata.ts +2 -1
- package/source/core/middleware/compose.ts +48 -0
- package/source/core/middleware/pipeline.ts +69 -46
- package/source/core/raiton.ts +8 -0
- package/source/core/router/handler.ts +91 -31
- package/source/core/router/handler.utils.ts +107 -51
- package/source/core/router/matcher.ts +195 -24
- package/source/core/router/route.ts +100 -31
- package/source/core/router/router.ts +27 -2
- package/source/core/scheduler/metadata.ts +1 -1
- package/source/core/socket/metadata.ts +1 -1
- package/source/core/thread.ts +37 -2
- package/source/framework/artifacts.ts +47 -15
- package/source/framework/cache/cache.ts +48 -3
- package/source/framework/constants/decorators.constant.ts +5 -0
- package/source/framework/data-transfer-object.ts +4 -3
- package/source/framework/decorators/controllable.decorator.ts +3 -3
- package/source/framework/decorators/csrf-guard.decorator.ts +3 -2
- package/source/framework/decorators/csrf-token.decorator.ts +1 -1
- package/source/framework/decorators/guard.decorator.ts +3 -2
- package/source/framework/decorators/health-check.decorator.ts +1 -1
- package/source/framework/decorators/mcp.decorator.ts +38 -7
- package/source/framework/decorators/middleware.decorator.ts +2 -2
- package/source/framework/decorators/parametrable.decorator.ts +2 -1
- package/source/framework/decorators/routable.decorator.ts +3 -3
- package/source/framework/decorators/route-interaction.decorator.ts +2 -2
- package/source/framework/decorators/scheduler.decorator.ts +3 -3
- package/source/framework/decorators/socket.decorator.ts +3 -3
- package/source/framework/encryption.ts +46 -7
- package/source/framework/errors/catalog.ts +159 -0
- package/source/framework/exceptions/http-exception.ts +1 -1
- package/source/framework/health-check.ts +18 -0
- package/source/framework/index.ts +2 -0
- package/source/framework/mcp/audit.ts +57 -0
- package/source/framework/mcp/conformance.ts +195 -0
- package/source/framework/mcp/handler.ts +131 -9
- package/source/framework/mcp/index.ts +6 -1
- package/source/framework/mcp/protocol.ts +6 -0
- package/source/framework/mcp/rate-limit.ts +33 -0
- package/source/framework/mcp/stdio.ts +150 -0
- package/source/framework/mcp/streamable-http.ts +36 -5
- package/source/framework/observability/index.ts +6 -0
- package/source/framework/observability/metrics.ts +162 -0
- package/source/framework/observability/plugin.ts +151 -0
- package/source/framework/observability/readiness.ts +22 -0
- package/source/framework/observability/request.ts +31 -0
- package/source/framework/observability/shutdown.ts +68 -0
- package/source/framework/observability/trace.ts +241 -0
- package/source/framework/plugins/body-parser.plugin.ts +88 -85
- package/source/framework/plugins/dev.plugin.ts +227 -0
- package/source/framework/plugins/index.ts +2 -1
- package/source/framework/plugins/mcp.plugin.ts +14 -3
- package/source/framework/plugins/openapi.plugin.ts +56 -13
- package/source/framework/responses/helpers.ts +4 -4
- package/source/framework/responses/http-throwable.ts +1 -1
- package/source/framework/runtime/bun/server.ts +2 -1
- package/source/framework/runtime/deno/server.ts +2 -1
- package/source/framework/runtime/index.ts +45 -13
- package/source/framework/runtime/node/request.ts +59 -13
- package/source/framework/utilities/index.ts +3 -1
- package/source/framework/utilities/openapi.utils.impl.ts +705 -0
- package/source/framework/utilities/openapi.utils.ts +6 -636
- package/source/framework/utilities/route-suggestion.util.ts +59 -0
- package/source/framework/utilities/validation.util.ts +20 -0
- package/source/generators/artifact.templates.ts +230 -0
- package/source/generators/index.ts +2 -0
- package/source/generators/project.templates.ts +392 -0
- package/source/manifest/client.ts +299 -0
- package/source/manifest/contract.ts +138 -0
- package/source/manifest/index.ts +5 -0
- package/source/manifest/introspect.ts +52 -0
- package/source/manifest/manifest.ts +341 -0
- package/source/manifest/schema.ts +149 -0
- package/source/types/builder.ts +5 -0
- package/source/types/config.ts +64 -2
- package/source/types/mcp.ts +63 -1
- package/tsconfig.build.json +13 -0
- package/source/commands/grafts.command.ts +0 -27
- package/tests/artifact-resolution.test.ts +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
## [6.10.0-beta.28](https://github.com/protorians/raiton/compare/v6.8.9-beta.25...v6.10.0-beta.28) (2026-11-27)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* feat: contrats, manifeste, MCP, observabilité, CLI et optimisation des performances (#21) ([2131645](https://github.com/protorians/raiton/commit/2131645c5c4f1d32a762c811d444e1d8fabb2833))
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* chore(gitignore): ancrer l'ignore des specs à la racine du dépôt ([41cc1d8](https://github.com/protorians/raiton/commit/41cc1d871c01c65b9c17b0b52a38f2b88b4db0fb))
|
|
10
|
+
|
|
11
|
+
## [6.9.1-beta.27](https://github.com/protorians/raiton/compare/v6.9.0-beta.26...v6.9.1-beta.27) (2026-11-27)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* chore(ci): calibre les budgets de benchmark sur les runners partagés ([1f5586d](https://github.com/protorians/raiton/commit/1f5586d98bc7b04e29755090a2009dd3f645945b))
|
|
16
|
+
* perf(framework): accélère le routage, le pipeline HTTP et le démarrage ([25e9dfb](https://github.com/protorians/raiton/commit/25e9dfbe4dac7dd0983340e530d87061ded2f335))
|
|
17
|
+
|
|
18
|
+
### Other Changes
|
|
19
|
+
|
|
20
|
+
* test(perf): ajoute les benchmarks et les tests de non-régression ([4c28bbf](https://github.com/protorians/raiton/commit/4c28bbf857068271ec444c5fdfc2bea7b5148343))
|
|
21
|
+
|
|
22
|
+
## [6.9.0-beta.26](https://github.com/protorians/raiton/compare/v6.8.9-beta.25...v6.9.0-beta.26) (2026-11-27)
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **config**: `.ts`/`.mts`/`.cts` loading first, field-level validation, published JSON Schema and generated declarations for the package `types` entry. ([5c60a27](https://github.com/protorians/raiton/commit/5c60a27786751af16e17d4bedded54f6f10dc497))
|
|
27
|
+
* **contracts**: schema-first `raiton/contracts` (TypeBox) feeding runtime validation, types, OpenAPI and the generated client; `@Input`/`@Output`; stable `VALIDATION_ERROR` payloads; development-only output validation. ([e22328e](https://github.com/protorians/raiton/commit/e22328ed35ca74dfb575c6a05797f4852dc952eb))
|
|
28
|
+
* **manifest**: versioned project inventory (routes, artifacts, DI graph, config, env, MCP tools, source locations), published JSON Schema and HMR cache invalidation. ([efb8550](https://github.com/protorians/raiton/commit/efb85501382237dfcbb5b9a38f5e58816f982e7f))
|
|
29
|
+
* **mcp**: stdio transport, shared HTTP/stdio conformance suite, input/output schemas, safety annotations, default-deny destructive tools, scopes, audit with secret redaction and rate limiting. ([ce68d66](https://github.com/protorians/raiton/commit/ce68d669c38f64fe8a3189649d0792db560c7af2))
|
|
30
|
+
* **observability**: correlation ids, Prometheus metrics, OTLP traces, stable error catalogue, readiness and bounded graceful shutdown. ([899fed9](https://github.com/protorians/raiton/commit/899fed91afed36f663aa6d68e0c4b1528c8ee484))
|
|
31
|
+
* **discoverability**: development page (`/__dev`), route suggestions on 404, default Redoc OpenAPI UI. ([899fed9](https://github.com/protorians/raiton/commit/899fed91afed36f663aa6d68e0c4b1528c8ee484))
|
|
32
|
+
* **cli**: `new`, `generate`, `routes`, `inspect`, `why`, `doctor`, `openapi export`, `client`, `contract check|snapshot`, `mcp list|inspect|test|serve|conformance`, `docs agents` with JSON output, stable exit codes and dry-run. ([7390572](https://github.com/protorians/raiton/commit/73905720187e251fc0b39b93bcf60d8961650112))
|
|
33
|
+
* **docs**: French/English guides, executable recipes, `llms.txt`, `llms-full.txt`, `AGENTS.md`, `CLAUDE.md` and generated references. ([030e996](https://github.com/protorians/raiton/commit/030e99668c18b3f78bc66bb3c103bf6d4ac4c7c3))
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* `Application.handle` now honours `statusCode` carried by plain response objects (health checks).
|
|
38
|
+
* OpenAPI UI no longer sends an empty body; a default UI is provided.
|
|
39
|
+
* The project bootstrapper no longer installs the body parser twice or starts the scheduler outside serving mode.
|
|
40
|
+
|
|
41
|
+
### Build
|
|
42
|
+
|
|
43
|
+
* Publish generated type declarations and update scripts, npm ignores and the CI workflow. ([3d8ec11](https://github.com/protorians/raiton/commit/3d8ec11ece759ceca5f26abc168e72f07ec485f1))
|
|
44
|
+
|
|
1
45
|
## [6.8.9-beta.25](https://github.com/protorians/raiton/compare/v6.8.8-beta.24...v6.8.9-beta.25) (2026-11-26)
|
|
2
46
|
|
|
3
47
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -13,7 +13,10 @@ il offre également un support complet pour **Node.js** et **Deno**.
|
|
|
13
13
|
- **Multi-Runtime** : Compatible avec Bun (recommandé), Node.js et les environnements Web.
|
|
14
14
|
- **Architecture Décorative** : Utilise les décorateurs TypeScript pour définir contrôleurs, routes et injections.
|
|
15
15
|
- **Modulaire** : Système de plugins et de middlewares flexible.
|
|
16
|
-
- **CLI Puissant** :
|
|
16
|
+
- **CLI Puissant** : Création de projet, générateurs, inventaire, diagnostic, OpenAPI, client typé et contrats.
|
|
17
|
+
- **Schema-first** : une seule définition TypeBox alimente validation runtime, types, OpenAPI et client.
|
|
18
|
+
- **AI-friendly** : manifeste versionné, `llms.txt`, `AGENTS.md`, MCP HTTP **et** stdio.
|
|
19
|
+
- **Observabilité opt-in** : corrélation, métriques Prometheus, traces OTLP, arrêt gracieux.
|
|
17
20
|
|
|
18
21
|
## Installation
|
|
19
22
|
|
|
@@ -69,6 +72,48 @@ export default async (thread: ThreadInterface) => {
|
|
|
69
72
|
|
|
70
73
|
> **Note :** selon la configuration du projet, le bootstrapper est chargé depuis `source/main.ts` et la racine du projet peut être définie par `raiton.config.ts` via `rootDir`.
|
|
71
74
|
|
|
75
|
+
## Créer un projet
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
bun raiton new my-api --template api --runtime bun --yes
|
|
79
|
+
cd my-api
|
|
80
|
+
bun raiton dev
|
|
81
|
+
bun test
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
bun raiton generate resource users # contrôleur + service + dépôt + DTO + test
|
|
86
|
+
bun raiton inspect --json # inventaire machine-readable
|
|
87
|
+
bun raiton doctor # diagnostic actionnable
|
|
88
|
+
bun raiton openapi export --out openapi.json
|
|
89
|
+
bun raiton client --out ./sdk
|
|
90
|
+
bun raiton mcp conformance --json
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Contrats schema-first
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import { t } from "raiton/contracts"
|
|
97
|
+
|
|
98
|
+
export const CreateUser = t.object({
|
|
99
|
+
email: t.string().email(),
|
|
100
|
+
name: t.string().min(2),
|
|
101
|
+
})
|
|
102
|
+
export type CreateUser = t.infer<typeof CreateUser>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
@Post("/")
|
|
107
|
+
@Input(CreateUser)
|
|
108
|
+
@Output(User)
|
|
109
|
+
create(@Body() input: CreateUser) {
|
|
110
|
+
return this.users.create(input)
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Les charges invalides sont rejetées avant le handler avec un code stable
|
|
115
|
+
`VALIDATION_ERROR`, et le client généré compile sans `any`.
|
|
116
|
+
|
|
72
117
|
## Utilisation du CLI
|
|
73
118
|
|
|
74
119
|
Raiton est livré avec une interface en ligne de commande pour faciliter le développement.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Benchmarks Raiton
|
|
2
|
+
|
|
3
|
+
Rapports générés par le harnais de la spec 001 :
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun run bench # rapport Markdown + benchmarks/latest.{md,json}
|
|
7
|
+
bun run bench --check # vérifie les budgets spec 001
|
|
8
|
+
bun run bench --check --check-observability # inclut les budgets spec 002
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Les fichiers `latest.md` et `latest.json` sont remplacés à chaque exécution. Le
|
|
12
|
+
protocole, les scénarios et les budgets de référence sont décrits dans
|
|
13
|
+
[`specs/001-performance-optimization/metrics.md`](../specs/001-performance-optimization/metrics.md).
|
|
14
|
+
|
|
15
|
+
Scénarios couverts : routage indexé, pile HTTP complète, validation de réponse,
|
|
16
|
+
body parser, démarrage à froid, reload HMR et classification d'artefacts.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generatedAt": "2026-11-27T02:02:20.107Z",
|
|
3
|
+
"environment": {
|
|
4
|
+
"runtime": "Bun 1.4.2",
|
|
5
|
+
"node": "v26.3.0",
|
|
6
|
+
"platform": "darwin-x64",
|
|
7
|
+
"cpus": 12,
|
|
8
|
+
"iterations": {
|
|
9
|
+
"routing": 40000,
|
|
10
|
+
"http": 3000
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"memory": {
|
|
14
|
+
"rssMB": 102.4375,
|
|
15
|
+
"heapUsedMB": 9.67492389678955
|
|
16
|
+
},
|
|
17
|
+
"routing": {
|
|
18
|
+
"first": {
|
|
19
|
+
"p50": 0.2234878250000001,
|
|
20
|
+
"p90": 0.30157685,
|
|
21
|
+
"iterations": 40000
|
|
22
|
+
},
|
|
23
|
+
"middle": {
|
|
24
|
+
"p50": 0.22437512500000026,
|
|
25
|
+
"p90": 0.23173090000000088,
|
|
26
|
+
"iterations": 40000
|
|
27
|
+
},
|
|
28
|
+
"last": {
|
|
29
|
+
"p50": 0.22558505000000081,
|
|
30
|
+
"p90": 0.2351101749999998,
|
|
31
|
+
"iterations": 40000
|
|
32
|
+
},
|
|
33
|
+
"param": {
|
|
34
|
+
"p50": 0.5461313250000004,
|
|
35
|
+
"p90": 0.6547577500000004,
|
|
36
|
+
"iterations": 40000
|
|
37
|
+
},
|
|
38
|
+
"hundred": {
|
|
39
|
+
"p50": 0.23619492499999808,
|
|
40
|
+
"p90": 0.2612253250000009,
|
|
41
|
+
"iterations": 40000
|
|
42
|
+
},
|
|
43
|
+
"thousand": {
|
|
44
|
+
"p50": 0.2296943749999997,
|
|
45
|
+
"p90": 0.2375635499999987,
|
|
46
|
+
"iterations": 40000
|
|
47
|
+
},
|
|
48
|
+
"orderRatio": 1.0093840682372774,
|
|
49
|
+
"scaleRatio": 0.9724780284758513
|
|
50
|
+
},
|
|
51
|
+
"http": {
|
|
52
|
+
"zero": {
|
|
53
|
+
"p50": 2.583999999956177,
|
|
54
|
+
"p90": 5.192999999962922,
|
|
55
|
+
"throughput": 283806.86034971004
|
|
56
|
+
},
|
|
57
|
+
"hundredFirst": {
|
|
58
|
+
"p50": 2.399999999965985,
|
|
59
|
+
"p90": 3.986000000054446,
|
|
60
|
+
"throughput": 301719.8939112626
|
|
61
|
+
},
|
|
62
|
+
"hundredLast": {
|
|
63
|
+
"p50": 2.254999999991014,
|
|
64
|
+
"p90": 3.504000000020824,
|
|
65
|
+
"throughput": 333325.96312592825
|
|
66
|
+
},
|
|
67
|
+
"threeHundredFirst": {
|
|
68
|
+
"p50": 2.220999999963169,
|
|
69
|
+
"p90": 3.5120000000006257,
|
|
70
|
+
"throughput": 318695.811752758
|
|
71
|
+
},
|
|
72
|
+
"threeHundredLast": {
|
|
73
|
+
"p50": 2.130000000079235,
|
|
74
|
+
"p90": 3.0880000000479413,
|
|
75
|
+
"throughput": 366649.2874904418
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"validation": {
|
|
79
|
+
"development": {
|
|
80
|
+
"p50": 15.572000000020125,
|
|
81
|
+
"p90": 24.00000000000091,
|
|
82
|
+
"throughput": 46251.001363086405
|
|
83
|
+
},
|
|
84
|
+
"production": {
|
|
85
|
+
"p50": 2.714999999966494,
|
|
86
|
+
"p90": 4.243999999971493,
|
|
87
|
+
"throughput": 272092.36991774256
|
|
88
|
+
},
|
|
89
|
+
"dtoFields": 8,
|
|
90
|
+
"sample": {
|
|
91
|
+
"name": "Ada",
|
|
92
|
+
"email": "ada@example.com",
|
|
93
|
+
"age": 36,
|
|
94
|
+
"score": 42,
|
|
95
|
+
"active": true,
|
|
96
|
+
"login": "ada",
|
|
97
|
+
"city": "London",
|
|
98
|
+
"country": "UK"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"body": {
|
|
102
|
+
"small": {
|
|
103
|
+
"p50": 6.163000000015018,
|
|
104
|
+
"p90": 11.780999999928099,
|
|
105
|
+
"bytes": 518
|
|
106
|
+
},
|
|
107
|
+
"large": {
|
|
108
|
+
"p50": 9.522999999944659,
|
|
109
|
+
"p90": 19.168000000036045,
|
|
110
|
+
"bytes": 9984
|
|
111
|
+
},
|
|
112
|
+
"read": {
|
|
113
|
+
"p50": 0.7879999999431675,
|
|
114
|
+
"p90": 2.815000000055079,
|
|
115
|
+
"bytes": 534
|
|
116
|
+
},
|
|
117
|
+
"bytes": 534
|
|
118
|
+
},
|
|
119
|
+
"startup": {
|
|
120
|
+
"framework": {
|
|
121
|
+
"samples": [
|
|
122
|
+
53.943,
|
|
123
|
+
50.944,
|
|
124
|
+
52.678,
|
|
125
|
+
57.604,
|
|
126
|
+
54.596
|
|
127
|
+
],
|
|
128
|
+
"p50": 53.943
|
|
129
|
+
},
|
|
130
|
+
"decorators": {
|
|
131
|
+
"samples": [
|
|
132
|
+
17.769,
|
|
133
|
+
16.772,
|
|
134
|
+
16.386,
|
|
135
|
+
16.279,
|
|
136
|
+
16.393
|
|
137
|
+
],
|
|
138
|
+
"p50": 16.393
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"hmr": {
|
|
142
|
+
"p50": 0.30951600000003054,
|
|
143
|
+
"p90": 0.421395000000075,
|
|
144
|
+
"reloads": 30,
|
|
145
|
+
"routes": 3
|
|
146
|
+
},
|
|
147
|
+
"classification": {
|
|
148
|
+
"files": 5000,
|
|
149
|
+
"p50": 1.3170769999999266,
|
|
150
|
+
"p90": 2.3848250000000917,
|
|
151
|
+
"iterations": 1
|
|
152
|
+
},
|
|
153
|
+
"observability": {
|
|
154
|
+
"off": {
|
|
155
|
+
"p50": 2.250000000003638,
|
|
156
|
+
"p90": 3.377999999884196,
|
|
157
|
+
"throughput": 320162.89888294804
|
|
158
|
+
},
|
|
159
|
+
"metrics": {
|
|
160
|
+
"p50": 5.885000000034779,
|
|
161
|
+
"p90": 9.146999999984473,
|
|
162
|
+
"throughput": 130163.4117027707
|
|
163
|
+
},
|
|
164
|
+
"traces": {
|
|
165
|
+
"p50": 6.394999999884021,
|
|
166
|
+
"p90": 13.944999999921492,
|
|
167
|
+
"throughput": 117862.06002019354
|
|
168
|
+
},
|
|
169
|
+
"metricsOverhead": 161.5555555566784,
|
|
170
|
+
"tracesOverhead": 184.22222221660806
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Raiton performance benchmark
|
|
2
|
+
|
|
3
|
+
Généré le 2026-11-27T02:02:20.107Z · Bun 1.4.2 · darwin-x64
|
|
4
|
+
|
|
5
|
+
Mémoire : **102.4 Mo RSS** · **9.7 Mo heap**
|
|
6
|
+
|
|
7
|
+
### Routage (µs / requête)
|
|
8
|
+
|
|
9
|
+
| Scénario | p50 | p90 |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Cible en premier (300 routes) | 0.223 | 0.302 |
|
|
12
|
+
| Cible au milieu (300 routes) | 0.224 | 0.232 |
|
|
13
|
+
| Cible en dernier (300 routes) | 0.226 | 0.235 |
|
|
14
|
+
| Paramétrique /res299/:id | 0.546 | 0.655 |
|
|
15
|
+
| 100 routes statiques | 0.236 | 0.261 |
|
|
16
|
+
| 1 000 routes statiques | 0.230 | 0.238 |
|
|
17
|
+
|
|
18
|
+
Ratio ordre (dernier / premier) : **1.01×** · ratio échelle (1 000 / 100) : **0.97×**
|
|
19
|
+
|
|
20
|
+
### Pile HTTP complète (µs / requête)
|
|
21
|
+
|
|
22
|
+
| Scénario | p50 | p90 | req/s |
|
|
23
|
+
|---|---|---|---|
|
|
24
|
+
| 0 route + cible | 2.584 | 5.193 | 283807 |
|
|
25
|
+
| 100 routes, cible en premier | 2.400 | 3.986 | 301720 |
|
|
26
|
+
| 100 routes, cible en dernier | 2.255 | 3.504 | 333326 |
|
|
27
|
+
| 300 routes, cible en premier | 2.221 | 3.512 | 318696 |
|
|
28
|
+
| 300 routes, cible en dernier | 2.130 | 3.088 | 366649 |
|
|
29
|
+
|
|
30
|
+
### Validation de réponse (µs / requête)
|
|
31
|
+
|
|
32
|
+
| Scénario | p50 | p90 |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| Développement (validation active) | 15.572 | 24.000 |
|
|
35
|
+
| Production (validation désactivée) | 2.715 | 4.244 |
|
|
36
|
+
|
|
37
|
+
### Body parser (µs / requête)
|
|
38
|
+
|
|
39
|
+
| Scénario | p50 | p90 | Octets |
|
|
40
|
+
|---|---|---|---|
|
|
41
|
+
| Lecture native JSON 547 octets | 0.788 | 2.815 | 534 |
|
|
42
|
+
| POST JSON 547 octets (pile complète) | 6.163 | 11.781 | 518 |
|
|
43
|
+
| POST JSON 10 Ko (pile complète) | 9.523 | 19.168 | 9984 |
|
|
44
|
+
|
|
45
|
+
### Démarrage à froid (ms)
|
|
46
|
+
|
|
47
|
+
| Entrée | p50 |
|
|
48
|
+
|---|---|
|
|
49
|
+
| Import framework | 53.9 |
|
|
50
|
+
| Import decorators | 16.4 |
|
|
51
|
+
|
|
52
|
+
### HMR et classification
|
|
53
|
+
|
|
54
|
+
| Scénario | p50 | p90 |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| Reload contrôleur 3 routes (ms) | 0.310 | 0.421 |
|
|
57
|
+
| Classification 5 000 fichiers (ms) | 1.317 | 2.385 |
|
|
58
|
+
|
|
59
|
+
### Observabilité
|
|
60
|
+
|
|
61
|
+
| Mode | p50 (µs) | Surcoût p50 |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| off | 2.250 | 0.00 % |
|
|
64
|
+
| metrics | 5.885 | 161.56 % |
|
|
65
|
+
| traces | 6.395 | 184.22 % |
|
|
66
|
+
|