@buenojs/bueno 0.8.10 → 0.8.11
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/dist/cache/index.d.ts +187 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +595 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cli/bin.d.ts +8 -0
- package/dist/cli/bin.d.ts.map +1 -0
- package/dist/cli/bin.js +9 -9
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/commands/add-frontend.d.ts +7 -0
- package/dist/cli/commands/add-frontend.d.ts.map +1 -0
- package/dist/cli/commands/add-frontend.js +376 -0
- package/dist/cli/commands/add-frontend.js.map +1 -0
- package/dist/cli/commands/build.d.ts +7 -0
- package/dist/cli/commands/build.d.ts.map +1 -0
- package/dist/cli/commands/build.js +347 -0
- package/dist/cli/commands/build.js.map +1 -0
- package/dist/cli/commands/dev.d.ts +7 -0
- package/dist/cli/commands/dev.d.ts.map +1 -0
- package/dist/cli/commands/dev.js +205 -0
- package/dist/cli/commands/dev.js.map +1 -0
- package/dist/cli/commands/generate.d.ts +7 -0
- package/dist/cli/commands/generate.d.ts.map +1 -0
- package/dist/cli/commands/generate.js +491 -0
- package/dist/cli/commands/generate.js.map +1 -0
- package/dist/cli/commands/help.d.ts +7 -0
- package/dist/cli/commands/help.d.ts.map +1 -0
- package/dist/cli/commands/help.js +51 -0
- package/dist/cli/commands/help.js.map +1 -0
- package/dist/cli/commands/index.d.ts +59 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +77 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/migration.d.ts +7 -0
- package/dist/cli/commands/migration.d.ts.map +1 -0
- package/dist/cli/commands/migration.js +295 -0
- package/dist/cli/commands/migration.js.map +1 -0
- package/dist/cli/commands/new.d.ts +7 -0
- package/dist/cli/commands/new.d.ts.map +1 -0
- package/dist/cli/commands/new.js +641 -0
- package/dist/cli/commands/new.js.map +1 -0
- package/dist/cli/commands/start.d.ts +7 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +171 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/core/args.d.ts +61 -0
- package/dist/cli/core/args.d.ts.map +1 -0
- package/dist/cli/core/args.js +224 -0
- package/dist/cli/core/args.js.map +1 -0
- package/dist/cli/core/console.d.ts +135 -0
- package/dist/cli/core/console.d.ts.map +1 -0
- package/dist/cli/core/console.js +268 -0
- package/dist/cli/core/console.js.map +1 -0
- package/dist/cli/core/index.d.ts +10 -0
- package/dist/cli/core/index.d.ts.map +1 -0
- package/dist/cli/core/index.js +10 -0
- package/dist/cli/core/index.js.map +1 -0
- package/dist/cli/core/prompt.d.ts +63 -0
- package/dist/cli/core/prompt.d.ts.map +1 -0
- package/dist/cli/core/prompt.js +338 -0
- package/dist/cli/core/prompt.js.map +1 -0
- package/dist/cli/core/spinner.d.ts +111 -0
- package/dist/cli/core/spinner.d.ts.map +1 -0
- package/dist/cli/core/spinner.js +208 -0
- package/dist/cli/core/spinner.js.map +1 -0
- package/dist/cli/index.d.ts +47 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +127 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/templates/database/index.d.ts +24 -0
- package/dist/cli/templates/database/index.d.ts.map +1 -0
- package/dist/cli/templates/database/index.js +49 -0
- package/dist/cli/templates/database/index.js.map +1 -0
- package/dist/cli/templates/database/mysql.d.ts +6 -0
- package/dist/cli/templates/database/mysql.d.ts.map +1 -0
- package/dist/cli/templates/database/mysql.js +12 -0
- package/dist/cli/templates/database/mysql.js.map +1 -0
- package/dist/cli/templates/database/none.d.ts +8 -0
- package/dist/cli/templates/database/none.d.ts.map +1 -0
- package/dist/cli/templates/database/none.js +14 -0
- package/dist/cli/templates/database/none.js.map +1 -0
- package/dist/cli/templates/database/postgresql.d.ts +6 -0
- package/dist/cli/templates/database/postgresql.d.ts.map +1 -0
- package/dist/cli/templates/database/postgresql.js +12 -0
- package/dist/cli/templates/database/postgresql.js.map +1 -0
- package/dist/cli/templates/database/sqlite.d.ts +6 -0
- package/dist/cli/templates/database/sqlite.d.ts.map +1 -0
- package/dist/cli/templates/database/sqlite.js +12 -0
- package/dist/cli/templates/database/sqlite.js.map +1 -0
- package/dist/cli/templates/deploy.d.ts +41 -0
- package/dist/cli/templates/deploy.d.ts.map +1 -0
- package/dist/cli/templates/deploy.js +278 -0
- package/dist/cli/templates/deploy.js.map +1 -0
- package/dist/cli/templates/docker.d.ts +30 -0
- package/dist/cli/templates/docker.d.ts.map +1 -0
- package/dist/cli/templates/docker.js +298 -0
- package/dist/cli/templates/docker.js.map +1 -0
- package/dist/cli/templates/frontend/index.d.ts +25 -0
- package/dist/cli/templates/frontend/index.d.ts.map +1 -0
- package/dist/cli/templates/frontend/index.js +40 -0
- package/dist/cli/templates/frontend/index.js.map +1 -0
- package/dist/cli/templates/frontend/none.d.ts +8 -0
- package/dist/cli/templates/frontend/none.d.ts.map +1 -0
- package/dist/cli/templates/frontend/none.js +15 -0
- package/dist/cli/templates/frontend/none.js.map +1 -0
- package/dist/cli/templates/frontend/react.d.ts +6 -0
- package/dist/cli/templates/frontend/react.d.ts.map +1 -0
- package/dist/cli/templates/frontend/react.js +139 -0
- package/dist/cli/templates/frontend/react.js.map +1 -0
- package/dist/cli/templates/frontend/solid.d.ts +6 -0
- package/dist/cli/templates/frontend/solid.d.ts.map +1 -0
- package/dist/cli/templates/frontend/solid.js +133 -0
- package/dist/cli/templates/frontend/solid.js.map +1 -0
- package/dist/cli/templates/frontend/svelte.d.ts +6 -0
- package/dist/cli/templates/frontend/svelte.d.ts.map +1 -0
- package/dist/cli/templates/frontend/svelte.js +130 -0
- package/dist/cli/templates/frontend/svelte.js.map +1 -0
- package/dist/cli/templates/frontend/vue.d.ts +6 -0
- package/dist/cli/templates/frontend/vue.d.ts.map +1 -0
- package/dist/cli/templates/frontend/vue.js +129 -0
- package/dist/cli/templates/frontend/vue.js.map +1 -0
- package/dist/cli/templates/generators/index.d.ts +29 -0
- package/dist/cli/templates/generators/index.d.ts.map +1 -0
- package/dist/cli/templates/generators/index.js +308 -0
- package/dist/cli/templates/generators/index.js.map +1 -0
- package/dist/cli/templates/generators/types.d.ts +32 -0
- package/dist/cli/templates/generators/types.d.ts.map +1 -0
- package/dist/cli/templates/generators/types.js +21 -0
- package/dist/cli/templates/generators/types.js.map +1 -0
- package/dist/cli/templates/index.d.ts +12 -0
- package/dist/cli/templates/index.d.ts.map +1 -0
- package/dist/cli/templates/index.js +18 -0
- package/dist/cli/templates/index.js.map +1 -0
- package/dist/cli/templates/project/api.d.ts +6 -0
- package/dist/cli/templates/project/api.d.ts.map +1 -0
- package/dist/cli/templates/project/api.js +79 -0
- package/dist/cli/templates/project/api.js.map +1 -0
- package/dist/cli/templates/project/default.d.ts +6 -0
- package/dist/cli/templates/project/default.d.ts.map +1 -0
- package/dist/cli/templates/project/default.js +136 -0
- package/dist/cli/templates/project/default.js.map +1 -0
- package/dist/cli/templates/project/fullstack.d.ts +14 -0
- package/dist/cli/templates/project/fullstack.d.ts.map +1 -0
- package/dist/cli/templates/project/fullstack.js +19 -0
- package/dist/cli/templates/project/fullstack.js.map +1 -0
- package/dist/cli/templates/project/index.d.ts +26 -0
- package/dist/cli/templates/project/index.d.ts.map +1 -0
- package/dist/cli/templates/project/index.js +60 -0
- package/dist/cli/templates/project/index.js.map +1 -0
- package/dist/cli/templates/project/minimal.d.ts +6 -0
- package/dist/cli/templates/project/minimal.d.ts.map +1 -0
- package/dist/cli/templates/project/minimal.js +43 -0
- package/dist/cli/templates/project/minimal.js.map +1 -0
- package/dist/cli/templates/project/types.d.ts +80 -0
- package/dist/cli/templates/project/types.d.ts.map +1 -0
- package/dist/cli/templates/project/types.js +7 -0
- package/dist/cli/templates/project/types.js.map +1 -0
- package/dist/cli/templates/project/website.d.ts +8 -0
- package/dist/cli/templates/project/website.d.ts.map +1 -0
- package/dist/cli/templates/project/website.js +312 -0
- package/dist/cli/templates/project/website.js.map +1 -0
- package/dist/cli/utils/fs.d.ts +137 -0
- package/dist/cli/utils/fs.d.ts.map +1 -0
- package/dist/cli/utils/fs.js +350 -0
- package/dist/cli/utils/fs.js.map +1 -0
- package/dist/cli/utils/index.d.ts +9 -0
- package/dist/cli/utils/index.d.ts.map +1 -0
- package/dist/cli/utils/index.js +9 -0
- package/dist/cli/utils/index.js.map +1 -0
- package/dist/cli/utils/strings.d.ts +86 -0
- package/dist/cli/utils/strings.d.ts.map +1 -0
- package/dist/cli/utils/strings.js +190 -0
- package/dist/cli/utils/strings.js.map +1 -0
- package/dist/cli/utils/version.d.ts +15 -0
- package/dist/cli/utils/version.d.ts.map +1 -0
- package/dist/cli/utils/version.js +38 -0
- package/dist/cli/utils/version.js.map +1 -0
- package/dist/config/env-validation.d.ts +49 -0
- package/dist/config/env-validation.d.ts.map +1 -0
- package/dist/config/env-validation.js +77 -0
- package/dist/config/env-validation.js.map +1 -0
- package/dist/config/env.d.ts +167 -0
- package/dist/config/env.d.ts.map +1 -0
- package/dist/config/env.js +392 -0
- package/dist/config/env.js.map +1 -0
- package/dist/config/index.d.ts +168 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +329 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +81 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +242 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/merge.d.ts +66 -0
- package/dist/config/merge.d.ts.map +1 -0
- package/dist/config/merge.js +226 -0
- package/dist/config/merge.js.map +1 -0
- package/dist/config/types.d.ts +322 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +443 -0
- package/dist/config/types.js.map +1 -0
- package/dist/config/validation.d.ts +100 -0
- package/dist/config/validation.d.ts.map +1 -0
- package/dist/config/validation.js +548 -0
- package/dist/config/validation.js.map +1 -0
- package/dist/container/forward-ref.d.ts +116 -0
- package/dist/container/forward-ref.d.ts.map +1 -0
- package/dist/container/forward-ref.js +105 -0
- package/dist/container/forward-ref.js.map +1 -0
- package/dist/container/index.d.ts +95 -0
- package/dist/container/index.d.ts.map +1 -0
- package/dist/container/index.js.map +1 -0
- package/dist/context/index.d.ts +143 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js.map +1 -0
- package/dist/database/index.d.ts +219 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/migrations/index.d.ts +151 -0
- package/dist/database/migrations/index.d.ts.map +1 -0
- package/dist/database/migrations/index.js +258 -0
- package/dist/database/migrations/index.js.map +1 -0
- package/dist/database/orm/builder.d.ts +122 -0
- package/dist/database/orm/builder.d.ts.map +1 -0
- package/dist/database/orm/builder.js +355 -0
- package/dist/database/orm/builder.js.map +1 -0
- package/dist/database/orm/casts/index.d.ts +16 -0
- package/dist/database/orm/casts/index.d.ts.map +1 -0
- package/dist/database/orm/casts/index.js +131 -0
- package/dist/database/orm/casts/index.js.map +1 -0
- package/dist/database/orm/casts/types.d.ts +16 -0
- package/dist/database/orm/casts/types.d.ts.map +1 -0
- package/dist/database/orm/casts/types.js +5 -0
- package/dist/database/orm/casts/types.js.map +1 -0
- package/dist/database/orm/compiler.d.ts +90 -0
- package/dist/database/orm/compiler.d.ts.map +1 -0
- package/dist/database/orm/compiler.js +218 -0
- package/dist/database/orm/compiler.js.map +1 -0
- package/dist/database/orm/hooks/index.d.ts +53 -0
- package/dist/database/orm/hooks/index.d.ts.map +1 -0
- package/dist/database/orm/hooks/index.js +81 -0
- package/dist/database/orm/hooks/index.js.map +1 -0
- package/dist/database/orm/index.d.ts +21 -0
- package/dist/database/orm/index.d.ts.map +1 -0
- package/dist/database/orm/index.js +23 -0
- package/dist/database/orm/index.js.map +1 -0
- package/dist/database/orm/model-registry.d.ts +33 -0
- package/dist/database/orm/model-registry.d.ts.map +1 -0
- package/dist/database/orm/model-registry.js +49 -0
- package/dist/database/orm/model-registry.js.map +1 -0
- package/dist/database/orm/model.d.ts +245 -0
- package/dist/database/orm/model.d.ts.map +1 -0
- package/dist/database/orm/model.js +599 -0
- package/dist/database/orm/model.js.map +1 -0
- package/dist/database/orm/relationships/base.d.ts +69 -0
- package/dist/database/orm/relationships/base.d.ts.map +1 -0
- package/dist/database/orm/relationships/base.js +84 -0
- package/dist/database/orm/relationships/base.js.map +1 -0
- package/dist/database/orm/relationships/belongs-to-many.d.ts +47 -0
- package/dist/database/orm/relationships/belongs-to-many.d.ts.map +1 -0
- package/dist/database/orm/relationships/belongs-to-many.js +136 -0
- package/dist/database/orm/relationships/belongs-to-many.js.map +1 -0
- package/dist/database/orm/relationships/belongs-to.d.ts +17 -0
- package/dist/database/orm/relationships/belongs-to.d.ts.map +1 -0
- package/dist/database/orm/relationships/belongs-to.js +38 -0
- package/dist/database/orm/relationships/belongs-to.js.map +1 -0
- package/dist/database/orm/relationships/has-many.d.ts +14 -0
- package/dist/database/orm/relationships/has-many.d.ts.map +1 -0
- package/dist/database/orm/relationships/has-many.js +35 -0
- package/dist/database/orm/relationships/has-many.js.map +1 -0
- package/dist/database/orm/relationships/has-one.d.ts +14 -0
- package/dist/database/orm/relationships/has-one.d.ts.map +1 -0
- package/dist/database/orm/relationships/has-one.js +32 -0
- package/dist/database/orm/relationships/has-one.js.map +1 -0
- package/dist/database/orm/relationships/index.d.ts +10 -0
- package/dist/database/orm/relationships/index.d.ts.map +1 -0
- package/dist/database/orm/relationships/index.js +9 -0
- package/dist/database/orm/relationships/index.js.map +1 -0
- package/dist/database/orm/scopes/index.d.ts +36 -0
- package/dist/database/orm/scopes/index.d.ts.map +1 -0
- package/dist/database/orm/scopes/index.js +47 -0
- package/dist/database/orm/scopes/index.js.map +1 -0
- package/dist/database/schema/index.d.ts +155 -0
- package/dist/database/schema/index.d.ts.map +1 -0
- package/dist/database/schema/index.js +401 -0
- package/dist/database/schema/index.js.map +1 -0
- package/dist/frontend/api-routes.d.ts +189 -0
- package/dist/frontend/api-routes.d.ts.map +1 -0
- package/dist/frontend/api-routes.js +548 -0
- package/dist/frontend/api-routes.js.map +1 -0
- package/dist/frontend/bundler.d.ts +99 -0
- package/dist/frontend/bundler.d.ts.map +1 -0
- package/dist/frontend/bundler.js +555 -0
- package/dist/frontend/bundler.js.map +1 -0
- package/dist/frontend/console-client.d.ts +11 -0
- package/dist/frontend/console-client.d.ts.map +1 -0
- package/dist/frontend/console-client.js +414 -0
- package/dist/frontend/console-client.js.map +1 -0
- package/dist/frontend/console-stream.d.ts +138 -0
- package/dist/frontend/console-stream.d.ts.map +1 -0
- package/dist/frontend/console-stream.js +535 -0
- package/dist/frontend/console-stream.js.map +1 -0
- package/dist/frontend/dev-server.d.ts +174 -0
- package/dist/frontend/dev-server.d.ts.map +1 -0
- package/dist/frontend/dev-server.js +735 -0
- package/dist/frontend/dev-server.js.map +1 -0
- package/dist/frontend/file-router.d.ts +170 -0
- package/dist/frontend/file-router.d.ts.map +1 -0
- package/dist/frontend/file-router.js +531 -0
- package/dist/frontend/file-router.js.map +1 -0
- package/dist/frontend/frameworks/index.d.ts +41 -0
- package/dist/frontend/frameworks/index.d.ts.map +1 -0
- package/dist/frontend/frameworks/index.js +87 -0
- package/dist/frontend/frameworks/index.js.map +1 -0
- package/dist/frontend/frameworks/react.d.ts +32 -0
- package/dist/frontend/frameworks/react.d.ts.map +1 -0
- package/dist/frontend/frameworks/react.js +66 -0
- package/dist/frontend/frameworks/react.js.map +1 -0
- package/dist/frontend/frameworks/solid.d.ts +42 -0
- package/dist/frontend/frameworks/solid.d.ts.map +1 -0
- package/dist/frontend/frameworks/solid.js +84 -0
- package/dist/frontend/frameworks/solid.js.map +1 -0
- package/dist/frontend/frameworks/svelte.d.ts +57 -0
- package/dist/frontend/frameworks/svelte.d.ts.map +1 -0
- package/dist/frontend/frameworks/svelte.js +90 -0
- package/dist/frontend/frameworks/svelte.js.map +1 -0
- package/dist/frontend/frameworks/vue.d.ts +36 -0
- package/dist/frontend/frameworks/vue.d.ts.map +1 -0
- package/dist/frontend/frameworks/vue.js +72 -0
- package/dist/frontend/frameworks/vue.js.map +1 -0
- package/dist/frontend/hmr-client.d.ts +22 -0
- package/dist/frontend/hmr-client.d.ts.map +1 -0
- package/dist/frontend/hmr-client.js +654 -0
- package/dist/frontend/hmr-client.js.map +1 -0
- package/dist/frontend/hmr.d.ts +185 -0
- package/dist/frontend/hmr.d.ts.map +1 -0
- package/dist/frontend/hmr.js +619 -0
- package/dist/frontend/hmr.js.map +1 -0
- package/dist/frontend/index.d.ts +34 -0
- package/dist/frontend/index.d.ts.map +1 -0
- package/dist/frontend/index.js.map +1 -0
- package/dist/frontend/islands.d.ts +135 -0
- package/dist/frontend/islands.d.ts.map +1 -0
- package/dist/frontend/islands.js +455 -0
- package/dist/frontend/islands.js.map +1 -0
- package/dist/frontend/isr.d.ts +143 -0
- package/dist/frontend/isr.d.ts.map +1 -0
- package/dist/frontend/isr.js +440 -0
- package/dist/frontend/isr.js.map +1 -0
- package/dist/frontend/layout.d.ts +140 -0
- package/dist/frontend/layout.d.ts.map +1 -0
- package/dist/frontend/layout.js +392 -0
- package/dist/frontend/layout.js.map +1 -0
- package/dist/frontend/ssr/react.d.ts +118 -0
- package/dist/frontend/ssr/react.d.ts.map +1 -0
- package/dist/frontend/ssr/react.js +373 -0
- package/dist/frontend/ssr/react.js.map +1 -0
- package/dist/frontend/ssr/solid.d.ts +141 -0
- package/dist/frontend/ssr/solid.d.ts.map +1 -0
- package/dist/frontend/ssr/solid.js +440 -0
- package/dist/frontend/ssr/solid.js.map +1 -0
- package/dist/frontend/ssr/svelte.d.ts +158 -0
- package/dist/frontend/ssr/svelte.d.ts.map +1 -0
- package/dist/frontend/ssr/svelte.js +439 -0
- package/dist/frontend/ssr/svelte.js.map +1 -0
- package/dist/frontend/ssr/vue.d.ts +161 -0
- package/dist/frontend/ssr/vue.d.ts.map +1 -0
- package/dist/frontend/ssr/vue.js +385 -0
- package/dist/frontend/ssr/vue.js.map +1 -0
- package/dist/frontend/ssr.d.ts +147 -0
- package/dist/frontend/ssr.d.ts.map +1 -0
- package/dist/frontend/ssr.js +609 -0
- package/dist/frontend/ssr.js.map +1 -0
- package/dist/frontend/types.d.ts +1902 -0
- package/dist/frontend/types.d.ts.map +1 -0
- package/dist/frontend/types.js +8 -0
- package/dist/frontend/types.js.map +1 -0
- package/dist/graphql/built-in-engine.d.ts +36 -0
- package/dist/graphql/built-in-engine.d.ts.map +1 -0
- package/dist/graphql/built-in-engine.js +443 -0
- package/dist/graphql/built-in-engine.js.map +1 -0
- package/dist/graphql/context-builder.d.ts +44 -0
- package/dist/graphql/context-builder.d.ts.map +1 -0
- package/dist/graphql/context-builder.js +91 -0
- package/dist/graphql/context-builder.js.map +1 -0
- package/dist/graphql/decorators.d.ts +162 -0
- package/dist/graphql/decorators.d.ts.map +1 -0
- package/dist/graphql/decorators.js +291 -0
- package/dist/graphql/decorators.js.map +1 -0
- package/dist/graphql/execution-pipeline.d.ts +67 -0
- package/dist/graphql/execution-pipeline.d.ts.map +1 -0
- package/dist/graphql/execution-pipeline.js +127 -0
- package/dist/graphql/execution-pipeline.js.map +1 -0
- package/dist/graphql/graphql-module.d.ts +70 -0
- package/dist/graphql/graphql-module.d.ts.map +1 -0
- package/dist/graphql/graphql-module.js +442 -0
- package/dist/graphql/graphql-module.js.map +1 -0
- package/dist/graphql/index.d.ts +48 -0
- package/dist/graphql/index.d.ts.map +1 -0
- package/dist/graphql/index.js.map +1 -0
- package/dist/graphql/metadata.d.ts +37 -0
- package/dist/graphql/metadata.d.ts.map +1 -0
- package/dist/graphql/metadata.js +130 -0
- package/dist/graphql/metadata.js.map +1 -0
- package/dist/graphql/schema-builder.d.ts +34 -0
- package/dist/graphql/schema-builder.d.ts.map +1 -0
- package/dist/graphql/schema-builder.js +251 -0
- package/dist/graphql/schema-builder.js.map +1 -0
- package/dist/graphql/subscription-handler.d.ts +47 -0
- package/dist/graphql/subscription-handler.d.ts.map +1 -0
- package/dist/graphql/subscription-handler.js +201 -0
- package/dist/graphql/subscription-handler.js.map +1 -0
- package/dist/graphql/types.d.ts +252 -0
- package/dist/graphql/types.d.ts.map +1 -0
- package/dist/graphql/types.js +28 -0
- package/dist/graphql/types.js.map +1 -0
- package/dist/health/index.d.ts +176 -0
- package/dist/health/index.d.ts.map +1 -0
- package/dist/health/index.js.map +1 -0
- package/dist/i18n/engine.d.ts +105 -0
- package/dist/i18n/engine.d.ts.map +1 -0
- package/dist/i18n/engine.js +248 -0
- package/dist/i18n/engine.js.map +1 -0
- package/dist/i18n/index.d.ts +13 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/loader.d.ts +79 -0
- package/dist/i18n/loader.d.ts.map +1 -0
- package/dist/i18n/loader.js +192 -0
- package/dist/i18n/loader.js.map +1 -0
- package/dist/i18n/middleware.d.ts +96 -0
- package/dist/i18n/middleware.d.ts.map +1 -0
- package/dist/i18n/middleware.js +126 -0
- package/dist/i18n/middleware.js.map +1 -0
- package/dist/i18n/negotiator.d.ts +84 -0
- package/dist/i18n/negotiator.d.ts.map +1 -0
- package/dist/i18n/negotiator.js +139 -0
- package/dist/i18n/negotiator.js.map +1 -0
- package/dist/i18n/types.d.ts +129 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/i18n/types.js +8 -0
- package/dist/i18n/types.js.map +1 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/jobs/drivers/memory.d.ts +38 -0
- package/dist/jobs/drivers/memory.d.ts.map +1 -0
- package/dist/jobs/drivers/memory.js +246 -0
- package/dist/jobs/drivers/memory.js.map +1 -0
- package/dist/jobs/drivers/redis.d.ts +34 -0
- package/dist/jobs/drivers/redis.d.ts.map +1 -0
- package/dist/jobs/drivers/redis.js +355 -0
- package/dist/jobs/drivers/redis.js.map +1 -0
- package/dist/jobs/index.d.ts +12 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/jobs/queue.d.ts +93 -0
- package/dist/jobs/queue.d.ts.map +1 -0
- package/dist/jobs/queue.js +233 -0
- package/dist/jobs/queue.js.map +1 -0
- package/dist/jobs/types.d.ts +193 -0
- package/dist/jobs/types.d.ts.map +1 -0
- package/dist/jobs/types.js +8 -0
- package/dist/jobs/types.js.map +1 -0
- package/dist/jobs/worker.d.ts +91 -0
- package/dist/jobs/worker.d.ts.map +1 -0
- package/dist/jobs/worker.js +300 -0
- package/dist/jobs/worker.js.map +1 -0
- package/dist/lock/index.d.ts +141 -0
- package/dist/lock/index.d.ts.map +1 -0
- package/dist/lock/index.js.map +1 -0
- package/dist/logger/index.d.ts +156 -0
- package/dist/logger/index.d.ts.map +1 -0
- package/dist/logger/index.js.map +1 -0
- package/dist/logger/transports/index.d.ts +371 -0
- package/dist/logger/transports/index.d.ts.map +1 -0
- package/dist/logger/transports/index.js +740 -0
- package/dist/logger/transports/index.js.map +1 -0
- package/dist/metrics/index.d.ts +163 -0
- package/dist/metrics/index.d.ts.map +1 -0
- package/dist/metrics/index.js.map +1 -0
- package/dist/middleware/built-in.d.ts +50 -0
- package/dist/middleware/built-in.d.ts.map +1 -0
- package/dist/middleware/built-in.js +220 -0
- package/dist/middleware/built-in.js.map +1 -0
- package/dist/middleware/index.d.ts +40 -0
- package/dist/middleware/index.d.ts.map +1 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/migrations/index.d.ts +48 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +3 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/modules/filters.d.ts +150 -0
- package/dist/modules/filters.d.ts.map +1 -0
- package/dist/modules/filters.js +338 -0
- package/dist/modules/filters.js.map +1 -0
- package/dist/modules/guards.d.ts +188 -0
- package/dist/modules/guards.d.ts.map +1 -0
- package/dist/modules/guards.js +278 -0
- package/dist/modules/guards.js.map +1 -0
- package/dist/modules/index.d.ts +266 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/interceptors.d.ts +242 -0
- package/dist/modules/interceptors.d.ts.map +1 -0
- package/dist/modules/interceptors.js +407 -0
- package/dist/modules/interceptors.js.map +1 -0
- package/dist/modules/lazy.d.ts +187 -0
- package/dist/modules/lazy.d.ts.map +1 -0
- package/dist/modules/lazy.js +305 -0
- package/dist/modules/lazy.js.map +1 -0
- package/dist/modules/lifecycle.d.ts +221 -0
- package/dist/modules/lifecycle.d.ts.map +1 -0
- package/dist/modules/lifecycle.js +314 -0
- package/dist/modules/lifecycle.js.map +1 -0
- package/dist/modules/metadata.d.ts +32 -0
- package/dist/modules/metadata.d.ts.map +1 -0
- package/dist/modules/metadata.js +59 -0
- package/dist/modules/metadata.js.map +1 -0
- package/dist/modules/pipes.d.ts +287 -0
- package/dist/modules/pipes.d.ts.map +1 -0
- package/dist/modules/pipes.js +443 -0
- package/dist/modules/pipes.js.map +1 -0
- package/dist/notification/channels/base.d.ts +32 -0
- package/dist/notification/channels/base.d.ts.map +1 -0
- package/dist/notification/channels/base.js +37 -0
- package/dist/notification/channels/base.js.map +1 -0
- package/dist/notification/channels/email.d.ts +37 -0
- package/dist/notification/channels/email.d.ts.map +1 -0
- package/dist/notification/channels/email.js +85 -0
- package/dist/notification/channels/email.js.map +1 -0
- package/dist/notification/channels/push.d.ts +37 -0
- package/dist/notification/channels/push.d.ts.map +1 -0
- package/dist/notification/channels/push.js +84 -0
- package/dist/notification/channels/push.js.map +1 -0
- package/dist/notification/channels/sms.d.ts +37 -0
- package/dist/notification/channels/sms.d.ts.map +1 -0
- package/dist/notification/channels/sms.js +83 -0
- package/dist/notification/channels/sms.js.map +1 -0
- package/dist/notification/channels/whatsapp.d.ts +37 -0
- package/dist/notification/channels/whatsapp.d.ts.map +1 -0
- package/dist/notification/channels/whatsapp.js +81 -0
- package/dist/notification/channels/whatsapp.js.map +1 -0
- package/dist/notification/index.d.ts +15 -0
- package/dist/notification/index.d.ts.map +1 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/service.d.ts +100 -0
- package/dist/notification/service.d.ts.map +1 -0
- package/dist/notification/service.js +279 -0
- package/dist/notification/service.js.map +1 -0
- package/dist/notification/types.d.ts +253 -0
- package/dist/notification/types.d.ts.map +1 -0
- package/dist/notification/types.js +14 -0
- package/dist/notification/types.js.map +1 -0
- package/dist/observability/__tests__/observability.test.d.ts +2 -0
- package/dist/observability/__tests__/observability.test.d.ts.map +1 -0
- package/dist/observability/__tests__/observability.test.js +404 -0
- package/dist/observability/__tests__/observability.test.js.map +1 -0
- package/dist/observability/breadcrumbs.d.ts +48 -0
- package/dist/observability/breadcrumbs.d.ts.map +1 -0
- package/dist/observability/breadcrumbs.js +97 -0
- package/dist/observability/breadcrumbs.js.map +1 -0
- package/dist/observability/index.d.ts +95 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/interceptor.d.ts +19 -0
- package/dist/observability/interceptor.d.ts.map +1 -0
- package/dist/observability/interceptor.js +67 -0
- package/dist/observability/interceptor.js.map +1 -0
- package/dist/observability/service.d.ts +101 -0
- package/dist/observability/service.d.ts.map +1 -0
- package/dist/observability/service.js +249 -0
- package/dist/observability/service.js.map +1 -0
- package/dist/observability/trace.d.ts +21 -0
- package/dist/observability/trace.d.ts.map +1 -0
- package/dist/observability/trace.js +35 -0
- package/dist/observability/trace.js.map +1 -0
- package/dist/observability/types.d.ts +172 -0
- package/dist/observability/types.d.ts.map +1 -0
- package/dist/observability/types.js +8 -0
- package/dist/observability/types.js.map +1 -0
- package/dist/openapi/decorators.d.ts +173 -0
- package/dist/openapi/decorators.d.ts.map +1 -0
- package/dist/openapi/decorators.js +276 -0
- package/dist/openapi/decorators.js.map +1 -0
- package/dist/openapi/document-builder.d.ts +82 -0
- package/dist/openapi/document-builder.d.ts.map +1 -0
- package/dist/openapi/document-builder.js +228 -0
- package/dist/openapi/document-builder.js.map +1 -0
- package/dist/openapi/index.d.ts +48 -0
- package/dist/openapi/index.d.ts.map +1 -0
- package/dist/openapi/index.js.map +1 -0
- package/dist/openapi/metadata.d.ts +36 -0
- package/dist/openapi/metadata.d.ts.map +1 -0
- package/dist/openapi/metadata.js +78 -0
- package/dist/openapi/metadata.js.map +1 -0
- package/dist/openapi/route-scanner.d.ts +34 -0
- package/dist/openapi/route-scanner.d.ts.map +1 -0
- package/dist/openapi/route-scanner.js +174 -0
- package/dist/openapi/route-scanner.js.map +1 -0
- package/dist/openapi/schema-generator.d.ts +53 -0
- package/dist/openapi/schema-generator.d.ts.map +1 -0
- package/dist/openapi/schema-generator.js +236 -0
- package/dist/openapi/schema-generator.js.map +1 -0
- package/dist/openapi/swagger-module.d.ts +57 -0
- package/dist/openapi/swagger-module.d.ts.map +1 -0
- package/dist/openapi/swagger-module.js +143 -0
- package/dist/openapi/swagger-module.js.map +1 -0
- package/dist/openapi/types.d.ts +344 -0
- package/dist/openapi/types.d.ts.map +1 -0
- package/dist/openapi/types.js +7 -0
- package/dist/openapi/types.js.map +1 -0
- package/dist/orm/index.d.ts +10 -0
- package/dist/orm/index.d.ts.map +1 -0
- package/dist/orm/index.js.map +1 -0
- package/dist/router/index.d.ts +73 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/router/index.js.map +1 -0
- package/dist/router/linear.d.ts +54 -0
- package/dist/router/linear.d.ts.map +1 -0
- package/dist/router/linear.js +261 -0
- package/dist/router/linear.js.map +1 -0
- package/dist/router/regex.d.ts +49 -0
- package/dist/router/regex.d.ts.map +1 -0
- package/dist/router/regex.js +201 -0
- package/dist/router/regex.js.map +1 -0
- package/dist/router/tree.d.ts +112 -0
- package/dist/router/tree.d.ts.map +1 -0
- package/dist/router/tree.js +360 -0
- package/dist/router/tree.js.map +1 -0
- package/dist/rpc/index.d.ts +321 -0
- package/dist/rpc/index.d.ts.map +1 -0
- package/dist/rpc/index.js.map +1 -0
- package/dist/schema/index.d.ts +10 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/security/index.d.ts +126 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +309 -0
- package/dist/security/index.js.map +1 -0
- package/dist/ssg/index.d.ts +73 -0
- package/dist/ssg/index.d.ts.map +1 -0
- package/dist/ssg/index.js +464 -0
- package/dist/ssg/index.js.map +1 -0
- package/dist/storage/index.d.ts +99 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +338 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/telemetry/index.d.ts +376 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/template/index.d.ts +7 -0
- package/dist/template/index.d.ts.map +1 -0
- package/dist/template/index.js.map +1 -0
- package/dist/templates/engine.d.ts +60 -0
- package/dist/templates/engine.d.ts.map +1 -0
- package/dist/templates/engine.js +177 -0
- package/dist/templates/engine.js.map +1 -0
- package/dist/templates/index.d.ts +9 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/loader.d.ts +45 -0
- package/dist/templates/loader.d.ts.map +1 -0
- package/dist/templates/loader.js +274 -0
- package/dist/templates/loader.js.map +1 -0
- package/dist/templates/renderers/markdown.d.ts +46 -0
- package/dist/templates/renderers/markdown.d.ts.map +1 -0
- package/dist/templates/renderers/markdown.js +181 -0
- package/dist/templates/renderers/markdown.js.map +1 -0
- package/dist/templates/renderers/simple.d.ts +35 -0
- package/dist/templates/renderers/simple.d.ts.map +1 -0
- package/dist/templates/renderers/simple.js +245 -0
- package/dist/templates/renderers/simple.js.map +1 -0
- package/dist/templates/types.d.ts +138 -0
- package/dist/templates/types.d.ts.map +1 -0
- package/dist/templates/types.js +8 -0
- package/dist/templates/types.js.map +1 -0
- package/dist/testing/index.d.ts +539 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/types/index.d.ts +116 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/validation/index.d.ts +89 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +276 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/schemas.d.ts +283 -0
- package/dist/validation/schemas.d.ts.map +1 -0
- package/dist/validation/schemas.js +407 -0
- package/dist/validation/schemas.js.map +1 -0
- package/dist/websocket/index.d.ts +252 -0
- package/dist/websocket/index.d.ts.map +1 -0
- package/dist/websocket/index.js +749 -0
- package/dist/websocket/index.js.map +1 -0
- package/package.json +3 -3
- package/src/database/migrations/index.ts +8 -0
- package/src/migrations/index.ts +40 -1
- package/src/types/index.ts +1 -1
- package/tsconfig.json +2 -6
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HMR Client Script
|
|
3
|
+
*
|
|
4
|
+
* This script is injected into HTML pages to enable Hot Module Replacement.
|
|
5
|
+
* It handles WebSocket communication, module updates, and framework-specific HMR.
|
|
6
|
+
*
|
|
7
|
+
* The script is kept minimal (< 5KB) for fast injection.
|
|
8
|
+
*
|
|
9
|
+
* @module frontend/hmr-client
|
|
10
|
+
*/
|
|
11
|
+
// Client script as a string for injection into HTML
|
|
12
|
+
export const HMR_CLIENT_SCRIPT = `
|
|
13
|
+
(function() {
|
|
14
|
+
'use strict';
|
|
15
|
+
|
|
16
|
+
// ============= Configuration =============
|
|
17
|
+
const HMR_CONFIG = {
|
|
18
|
+
reconnectInterval: 1000,
|
|
19
|
+
maxReconnectAttempts: 10,
|
|
20
|
+
heartbeatInterval: 30000,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// ============= State =============
|
|
24
|
+
let ws = null;
|
|
25
|
+
let clientId = null;
|
|
26
|
+
let reconnectAttempts = 0;
|
|
27
|
+
let reconnectTimer = null;
|
|
28
|
+
let heartbeatTimer = null;
|
|
29
|
+
let subscribedFiles = new Set();
|
|
30
|
+
let moduleCache = new Map();
|
|
31
|
+
let isConnecting = false;
|
|
32
|
+
|
|
33
|
+
// ============= Framework Detection =============
|
|
34
|
+
const framework = detectFramework();
|
|
35
|
+
|
|
36
|
+
function detectFramework() {
|
|
37
|
+
if (typeof window === 'undefined') return 'unknown';
|
|
38
|
+
|
|
39
|
+
// Check for React
|
|
40
|
+
if (window.React || document.querySelector('[data-reactroot]') ||
|
|
41
|
+
document.querySelector('[data-reactid]')) {
|
|
42
|
+
return 'react';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Check for Vue
|
|
46
|
+
if (window.Vue || document.querySelector('[data-v-]') ||
|
|
47
|
+
document.querySelector('[data-vue-app]')) {
|
|
48
|
+
return 'vue';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Check for Svelte
|
|
52
|
+
if (window.__SVELTE_HMR__ || document.querySelector('[data-svelte]')) {
|
|
53
|
+
return 'svelte';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Check for Solid
|
|
57
|
+
if (window.Solid$$ || document.querySelector('[data-solid]')) {
|
|
58
|
+
return 'solid';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return 'unknown';
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// ============= WebSocket Connection =============
|
|
65
|
+
function connect() {
|
|
66
|
+
if (isConnecting || (ws && ws.readyState === WebSocket.OPEN)) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
isConnecting = true;
|
|
71
|
+
|
|
72
|
+
// Build WebSocket URL
|
|
73
|
+
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
|
74
|
+
const host = window.location.hostname;
|
|
75
|
+
const port = getHMRPort();
|
|
76
|
+
const url = protocol + '//' + host + ':' + port + '/_hmr';
|
|
77
|
+
|
|
78
|
+
try {
|
|
79
|
+
ws = new WebSocket(url);
|
|
80
|
+
|
|
81
|
+
ws.onopen = handleOpen;
|
|
82
|
+
ws.onclose = handleClose;
|
|
83
|
+
ws.onerror = handleError;
|
|
84
|
+
ws.onmessage = handleMessage;
|
|
85
|
+
} catch (e) {
|
|
86
|
+
console.error('[HMR] Failed to create WebSocket:', e);
|
|
87
|
+
isConnecting = false;
|
|
88
|
+
scheduleReconnect();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function getHMRPort() {
|
|
93
|
+
// Try to get port from script tag or default to dev server port + 1
|
|
94
|
+
const scripts = document.querySelectorAll('script[data-hmr-port]');
|
|
95
|
+
if (scripts.length > 0) {
|
|
96
|
+
return parseInt(scripts[0].getAttribute('data-hmr-port'), 10);
|
|
97
|
+
}
|
|
98
|
+
return parseInt(window.location.port || '3000', 10) + 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function handleOpen() {
|
|
102
|
+
isConnecting = false;
|
|
103
|
+
reconnectAttempts = 0;
|
|
104
|
+
console.log('[HMR] Connected');
|
|
105
|
+
|
|
106
|
+
// Start heartbeat
|
|
107
|
+
startHeartbeat();
|
|
108
|
+
|
|
109
|
+
// Re-subscribe to files
|
|
110
|
+
subscribedFiles.forEach(function(fileId) {
|
|
111
|
+
sendMessage({ type: 'subscribe', fileId: fileId });
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function handleClose(event) {
|
|
116
|
+
isConnecting = false;
|
|
117
|
+
stopHeartbeat();
|
|
118
|
+
|
|
119
|
+
if (event.code !== 1000) {
|
|
120
|
+
console.log('[HMR] Connection closed, attempting to reconnect...');
|
|
121
|
+
scheduleReconnect();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function handleError(error) {
|
|
126
|
+
isConnecting = false;
|
|
127
|
+
console.error('[HMR] WebSocket error:', error);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function scheduleReconnect() {
|
|
131
|
+
if (reconnectTimer) {
|
|
132
|
+
clearTimeout(reconnectTimer);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (reconnectAttempts >= HMR_CONFIG.maxReconnectAttempts) {
|
|
136
|
+
console.error('[HMR] Max reconnect attempts reached. Please refresh the page.');
|
|
137
|
+
showOverlay({
|
|
138
|
+
message: 'HMR connection lost. Please refresh the page.',
|
|
139
|
+
type: 'error'
|
|
140
|
+
});
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
reconnectAttempts++;
|
|
145
|
+
var delay = HMR_CONFIG.reconnectInterval * reconnectAttempts;
|
|
146
|
+
|
|
147
|
+
reconnectTimer = setTimeout(function() {
|
|
148
|
+
console.log('[HMR] Reconnecting... (attempt ' + reconnectAttempts + ')');
|
|
149
|
+
connect();
|
|
150
|
+
}, delay);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// ============= Heartbeat =============
|
|
154
|
+
function startHeartbeat() {
|
|
155
|
+
stopHeartbeat();
|
|
156
|
+
heartbeatTimer = setInterval(function() {
|
|
157
|
+
if (ws && ws.readyState === WebSocket.OPEN) {
|
|
158
|
+
sendMessage({ type: 'ping' });
|
|
159
|
+
}
|
|
160
|
+
}, HMR_CONFIG.heartbeatInterval);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function stopHeartbeat() {
|
|
164
|
+
if (heartbeatTimer) {
|
|
165
|
+
clearInterval(heartbeatTimer);
|
|
166
|
+
heartbeatTimer = null;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// ============= Message Handling =============
|
|
171
|
+
function sendMessage(message) {
|
|
172
|
+
if (ws && ws.readyState === WebSocket.OPEN) {
|
|
173
|
+
ws.send(JSON.stringify(message));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function handleMessage(event) {
|
|
178
|
+
try {
|
|
179
|
+
var message = JSON.parse(event.data);
|
|
180
|
+
|
|
181
|
+
switch (message.type) {
|
|
182
|
+
case 'connected':
|
|
183
|
+
clientId = message.clientId;
|
|
184
|
+
console.log('[HMR] Client ID:', clientId);
|
|
185
|
+
break;
|
|
186
|
+
|
|
187
|
+
case 'pong':
|
|
188
|
+
// Heartbeat response
|
|
189
|
+
break;
|
|
190
|
+
|
|
191
|
+
case 'update':
|
|
192
|
+
handleUpdate(message);
|
|
193
|
+
break;
|
|
194
|
+
|
|
195
|
+
case 'reload':
|
|
196
|
+
handleReload(message);
|
|
197
|
+
break;
|
|
198
|
+
|
|
199
|
+
case 'error':
|
|
200
|
+
handleError(message);
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
} catch (e) {
|
|
204
|
+
console.error('[HMR] Failed to parse message:', e);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// ============= Update Handling =============
|
|
209
|
+
function handleUpdate(message) {
|
|
210
|
+
console.log('[HMR] Update received:', message.fileId);
|
|
211
|
+
|
|
212
|
+
// Hide any existing error overlay
|
|
213
|
+
hideOverlay();
|
|
214
|
+
|
|
215
|
+
var changes = message.changes || [];
|
|
216
|
+
var hasCSSUpdate = changes.some(function(file) {
|
|
217
|
+
return file.endsWith('.css') || file.endsWith('.scss') ||
|
|
218
|
+
file.endsWith('.sass') || file.endsWith('.less');
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
if (hasCSSUpdate) {
|
|
222
|
+
// Handle CSS updates without flash
|
|
223
|
+
updateCSS(changes);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Check if we can do hot update
|
|
227
|
+
if (canHotUpdate(changes)) {
|
|
228
|
+
performHotUpdate(message);
|
|
229
|
+
} else {
|
|
230
|
+
// Fall back to full reload
|
|
231
|
+
console.log('[HMR] Cannot hot update, reloading page...');
|
|
232
|
+
window.location.reload();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function handleReload(message) {
|
|
237
|
+
console.log('[HMR] Full reload requested');
|
|
238
|
+
hideOverlay();
|
|
239
|
+
window.location.reload();
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function handleError(message) {
|
|
243
|
+
console.error('[HMR] Error:', message.error);
|
|
244
|
+
showOverlay({
|
|
245
|
+
message: message.error.message,
|
|
246
|
+
stack: message.error.stack,
|
|
247
|
+
file: message.error.file,
|
|
248
|
+
line: message.error.line,
|
|
249
|
+
column: message.error.column,
|
|
250
|
+
type: 'error'
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// ============= CSS Hot Update =============
|
|
255
|
+
function updateCSS(changedFiles) {
|
|
256
|
+
var links = document.querySelectorAll('link[rel="stylesheet"]');
|
|
257
|
+
|
|
258
|
+
links.forEach(function(link) {
|
|
259
|
+
var href = link.getAttribute('href');
|
|
260
|
+
if (!href) return;
|
|
261
|
+
|
|
262
|
+
// Check if this stylesheet is affected
|
|
263
|
+
var isAffected = changedFiles.some(function(file) {
|
|
264
|
+
return href.includes(file.replace(/^.*\\//, '')) ||
|
|
265
|
+
file.includes(href.replace(/^.*\\//, ''));
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
if (isAffected) {
|
|
269
|
+
// Add timestamp to force reload
|
|
270
|
+
var newHref = href.split('?')[0] + '?v=' + Date.now();
|
|
271
|
+
|
|
272
|
+
// Create new link and swap
|
|
273
|
+
var newLink = document.createElement('link');
|
|
274
|
+
newLink.rel = 'stylesheet';
|
|
275
|
+
newLink.href = newHref;
|
|
276
|
+
|
|
277
|
+
newLink.onload = function() {
|
|
278
|
+
link.remove();
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
newLink.onerror = function() {
|
|
282
|
+
console.error('[HMR] Failed to reload CSS:', newHref);
|
|
283
|
+
link.remove();
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
link.parentNode.insertBefore(newLink, link);
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// ============= Hot Update Logic =============
|
|
292
|
+
function canHotUpdate(changes) {
|
|
293
|
+
// Check if all changed files can be hot updated
|
|
294
|
+
return changes.every(function(file) {
|
|
295
|
+
var ext = file.split('.').pop().toLowerCase();
|
|
296
|
+
|
|
297
|
+
// CSS files can always be hot updated
|
|
298
|
+
if (ext === 'css' || ext === 'scss' || ext === 'sass' || ext === 'less') {
|
|
299
|
+
return true;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// JS/TS files need HMR boundary
|
|
303
|
+
if (ext === 'js' || ext === 'jsx' || ext === 'ts' || ext === 'tsx') {
|
|
304
|
+
return hasHMRBoundary(file);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Framework-specific files
|
|
308
|
+
if (ext === 'vue' || ext === 'svelte') {
|
|
309
|
+
return true; // Vue and Svelte have built-in HMR
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
return false;
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
function hasHMRBoundary(file) {
|
|
317
|
+
// Check if the module accepts hot updates
|
|
318
|
+
// This is a simplified check - in production, we'd track this from the server
|
|
319
|
+
return true; // For now, assume all modules can be hot updated
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function performHotUpdate(message) {
|
|
323
|
+
var changes = message.changes || [];
|
|
324
|
+
|
|
325
|
+
// Framework-specific update handling
|
|
326
|
+
switch (framework) {
|
|
327
|
+
case 'react':
|
|
328
|
+
performReactUpdate(message);
|
|
329
|
+
break;
|
|
330
|
+
case 'vue':
|
|
331
|
+
performVueUpdate(message);
|
|
332
|
+
break;
|
|
333
|
+
case 'svelte':
|
|
334
|
+
performSvelteUpdate(message);
|
|
335
|
+
break;
|
|
336
|
+
case 'solid':
|
|
337
|
+
performSolidUpdate(message);
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
// Generic update - reload scripts
|
|
341
|
+
performGenericUpdate(message);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// ============= React Fast Refresh =============
|
|
346
|
+
function performReactUpdate(message) {
|
|
347
|
+
if (!window.__HMR_REACT_REFRESH__) {
|
|
348
|
+
// React Refresh not available, fall back to reload
|
|
349
|
+
window.location.reload();
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
console.log('[HMR] Applying React Fast Refresh...');
|
|
354
|
+
|
|
355
|
+
// Signal to React Refresh that an update is coming
|
|
356
|
+
if (window.__REACT_REFRESH__) {
|
|
357
|
+
try {
|
|
358
|
+
changes.forEach(function(file) {
|
|
359
|
+
// Invalidate the module
|
|
360
|
+
invalidateModule(file);
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
// Trigger React Refresh
|
|
364
|
+
window.__REACT_REFRESH__.performReactRefresh();
|
|
365
|
+
} catch (e) {
|
|
366
|
+
console.error('[HMR] React Fast Refresh failed:', e);
|
|
367
|
+
window.location.reload();
|
|
368
|
+
}
|
|
369
|
+
} else {
|
|
370
|
+
// Fallback: reload the page
|
|
371
|
+
window.location.reload();
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// ============= Vue HMR =============
|
|
376
|
+
function performVueUpdate(message) {
|
|
377
|
+
console.log('[HMR] Applying Vue HMR...');
|
|
378
|
+
|
|
379
|
+
// Vue's HMR is handled by vue-loader and vue-hot-reload-api
|
|
380
|
+
if (window.__VUE_HMR__) {
|
|
381
|
+
try {
|
|
382
|
+
message.changes.forEach(function(file) {
|
|
383
|
+
if (file.endsWith('.vue')) {
|
|
384
|
+
window.__VUE_HMR__.rerender(file);
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
} catch (e) {
|
|
388
|
+
console.error('[HMR] Vue HMR failed:', e);
|
|
389
|
+
window.location.reload();
|
|
390
|
+
}
|
|
391
|
+
} else {
|
|
392
|
+
window.location.reload();
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// ============= Svelte HMR =============
|
|
397
|
+
function performSvelteUpdate(message) {
|
|
398
|
+
console.log('[HMR] Applying Svelte HMR...');
|
|
399
|
+
|
|
400
|
+
if (window.__SVELTE_HMR__) {
|
|
401
|
+
try {
|
|
402
|
+
message.changes.forEach(function(file) {
|
|
403
|
+
if (file.endsWith('.svelte')) {
|
|
404
|
+
// Svelte HMR preserves component state
|
|
405
|
+
window.__SVELTE_HMR__.update(file);
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
} catch (e) {
|
|
409
|
+
console.error('[HMR] Svelte HMR failed:', e);
|
|
410
|
+
window.location.reload();
|
|
411
|
+
}
|
|
412
|
+
} else {
|
|
413
|
+
window.location.reload();
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// ============= Solid HMR =============
|
|
418
|
+
function performSolidUpdate(message) {
|
|
419
|
+
console.log('[HMR] Applying Solid HMR...');
|
|
420
|
+
|
|
421
|
+
if (window.__SOLID_HMR__) {
|
|
422
|
+
try {
|
|
423
|
+
message.changes.forEach(function(file) {
|
|
424
|
+
invalidateModule(file);
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
window.__SOLID_HMR__.update();
|
|
428
|
+
} catch (e) {
|
|
429
|
+
console.error('[HMR] Solid HMR failed:', e);
|
|
430
|
+
window.location.reload();
|
|
431
|
+
}
|
|
432
|
+
} else {
|
|
433
|
+
window.location.reload();
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// ============= Generic Update =============
|
|
438
|
+
function performGenericUpdate(message) {
|
|
439
|
+
console.log('[HMR] Performing generic update...');
|
|
440
|
+
|
|
441
|
+
// For unknown frameworks, reload scripts
|
|
442
|
+
message.changes.forEach(function(file) {
|
|
443
|
+
invalidateModule(file);
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
// Reload the page as a fallback
|
|
447
|
+
window.location.reload();
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// ============= Module Management =============
|
|
451
|
+
function invalidateModule(fileId) {
|
|
452
|
+
moduleCache.delete(fileId);
|
|
453
|
+
|
|
454
|
+
// Find and reload script tags
|
|
455
|
+
var scripts = document.querySelectorAll('script[src]');
|
|
456
|
+
scripts.forEach(function(script) {
|
|
457
|
+
var src = script.getAttribute('src');
|
|
458
|
+
if (src && src.includes(fileId)) {
|
|
459
|
+
reloadScript(script);
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
function reloadScript(oldScript) {
|
|
465
|
+
var src = oldScript.getAttribute('src');
|
|
466
|
+
var newSrc = src.split('?')[0] + '?v=' + Date.now();
|
|
467
|
+
|
|
468
|
+
var newScript = document.createElement('script');
|
|
469
|
+
newScript.src = newSrc;
|
|
470
|
+
newScript.type = oldScript.type || 'text/javascript';
|
|
471
|
+
newScript.async = false;
|
|
472
|
+
|
|
473
|
+
// Copy attributes
|
|
474
|
+
Array.from(oldScript.attributes).forEach(function(attr) {
|
|
475
|
+
if (attr.name !== 'src') {
|
|
476
|
+
newScript.setAttribute(attr.name, attr.value);
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
oldScript.parentNode.replaceChild(newScript, oldScript);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// ============= Error Overlay =============
|
|
484
|
+
function showOverlay(options) {
|
|
485
|
+
// Remove existing overlay
|
|
486
|
+
hideOverlay();
|
|
487
|
+
|
|
488
|
+
var overlay = document.createElement('div');
|
|
489
|
+
overlay.id = '__hmr-overlay__';
|
|
490
|
+
overlay.style.cssText = [
|
|
491
|
+
'position: fixed',
|
|
492
|
+
'top: 0',
|
|
493
|
+
'left: 0',
|
|
494
|
+
'right: 0',
|
|
495
|
+
'bottom: 0',
|
|
496
|
+
'background: rgba(0, 0, 0, 0.85)',
|
|
497
|
+
'z-index: 99999',
|
|
498
|
+
'display: flex',
|
|
499
|
+
'align-items: center',
|
|
500
|
+
'justify-content: center',
|
|
501
|
+
'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
502
|
+
'color: white',
|
|
503
|
+
'padding: 20px'
|
|
504
|
+
].join(';');
|
|
505
|
+
|
|
506
|
+
var content = document.createElement('div');
|
|
507
|
+
content.style.cssText = [
|
|
508
|
+
'max-width: 800px',
|
|
509
|
+
'max-height: 80vh',
|
|
510
|
+
'overflow: auto',
|
|
511
|
+
'background: #1a1a1a',
|
|
512
|
+
'border-radius: 8px',
|
|
513
|
+
'padding: 20px',
|
|
514
|
+
'box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5)'
|
|
515
|
+
].join(';');
|
|
516
|
+
|
|
517
|
+
var title = document.createElement('h2');
|
|
518
|
+
title.style.cssText = 'color: #ff5555; margin: 0 0 15px 0; font-size: 18px;';
|
|
519
|
+
title.textContent = 'HMR Error';
|
|
520
|
+
|
|
521
|
+
var message = document.createElement('pre');
|
|
522
|
+
message.style.cssText = [
|
|
523
|
+
'background: #282828',
|
|
524
|
+
'padding: 15px',
|
|
525
|
+
'border-radius: 4px',
|
|
526
|
+
'overflow-x: auto',
|
|
527
|
+
'font-size: 13px',
|
|
528
|
+
'line-height: 1.5',
|
|
529
|
+
'white-space: pre-wrap',
|
|
530
|
+
'word-break: break-word'
|
|
531
|
+
].join(';');
|
|
532
|
+
message.textContent = options.message;
|
|
533
|
+
|
|
534
|
+
content.appendChild(title);
|
|
535
|
+
content.appendChild(message);
|
|
536
|
+
|
|
537
|
+
if (options.stack) {
|
|
538
|
+
var stack = document.createElement('pre');
|
|
539
|
+
stack.style.cssText = [
|
|
540
|
+
'background: #282828',
|
|
541
|
+
'padding: 15px',
|
|
542
|
+
'border-radius: 4px',
|
|
543
|
+
'margin-top: 10px',
|
|
544
|
+
'font-size: 12px',
|
|
545
|
+
'color: #888',
|
|
546
|
+
'overflow-x: auto'
|
|
547
|
+
].join(';');
|
|
548
|
+
stack.textContent = options.stack;
|
|
549
|
+
content.appendChild(stack);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
if (options.file) {
|
|
553
|
+
var file = document.createElement('div');
|
|
554
|
+
file.style.cssText = 'margin-top: 15px; color: #888; font-size: 12px;';
|
|
555
|
+
file.textContent = 'File: ' + options.file +
|
|
556
|
+
(options.line ? ':' + options.line + (options.column ? ':' + options.column : '') : '');
|
|
557
|
+
content.appendChild(file);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
var closeBtn = document.createElement('button');
|
|
561
|
+
closeBtn.style.cssText = [
|
|
562
|
+
'position: absolute',
|
|
563
|
+
'top: 10px',
|
|
564
|
+
'right: 10px',
|
|
565
|
+
'background: transparent',
|
|
566
|
+
'border: none',
|
|
567
|
+
'color: #888',
|
|
568
|
+
'font-size: 20px',
|
|
569
|
+
'cursor: pointer',
|
|
570
|
+
'padding: 5px'
|
|
571
|
+
].join(';');
|
|
572
|
+
closeBtn.textContent = '×';
|
|
573
|
+
closeBtn.onclick = hideOverlay;
|
|
574
|
+
|
|
575
|
+
overlay.style.position = 'relative';
|
|
576
|
+
overlay.appendChild(closeBtn);
|
|
577
|
+
overlay.appendChild(content);
|
|
578
|
+
|
|
579
|
+
document.body.appendChild(overlay);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
function hideOverlay() {
|
|
583
|
+
var overlay = document.getElementById('__hmr-overlay__');
|
|
584
|
+
if (overlay) {
|
|
585
|
+
overlay.remove();
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// ============= Subscription Management =============
|
|
590
|
+
function subscribe(fileId) {
|
|
591
|
+
subscribedFiles.add(fileId);
|
|
592
|
+
sendMessage({ type: 'subscribe', fileId: fileId });
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
function unsubscribe(fileId) {
|
|
596
|
+
subscribedFiles.delete(fileId);
|
|
597
|
+
sendMessage({ type: 'unsubscribe', fileId: fileId });
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
// ============= Initialization =============
|
|
601
|
+
function init() {
|
|
602
|
+
// Connect to HMR server
|
|
603
|
+
connect();
|
|
604
|
+
|
|
605
|
+
// Subscribe to current page
|
|
606
|
+
var currentFile = window.location.pathname;
|
|
607
|
+
subscribe(currentFile);
|
|
608
|
+
|
|
609
|
+
// Expose HMR API
|
|
610
|
+
window.__HMR__ = {
|
|
611
|
+
subscribe: subscribe,
|
|
612
|
+
unsubscribe: unsubscribe,
|
|
613
|
+
connect: connect,
|
|
614
|
+
clientId: function() { return clientId; },
|
|
615
|
+
framework: framework
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
console.log('[HMR] Client initialized (framework: ' + framework + ')');
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// Start when DOM is ready
|
|
622
|
+
if (document.readyState === 'complete') {
|
|
623
|
+
init();
|
|
624
|
+
} else {
|
|
625
|
+
document.addEventListener('DOMContentLoaded', init);
|
|
626
|
+
}
|
|
627
|
+
})();
|
|
628
|
+
`;
|
|
629
|
+
/**
|
|
630
|
+
* Get the HMR client script with optional configuration
|
|
631
|
+
*/
|
|
632
|
+
export function getHMRClientScript(options) {
|
|
633
|
+
if (options?.port) {
|
|
634
|
+
return HMR_CLIENT_SCRIPT.replace("return parseInt(window.location.port || '3000', 10) + 1;", `return ${options.port};`);
|
|
635
|
+
}
|
|
636
|
+
return HMR_CLIENT_SCRIPT;
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Inject HMR client script into HTML content
|
|
640
|
+
*/
|
|
641
|
+
export function injectHMRScript(html, port) {
|
|
642
|
+
const script = getHMRClientScript({ port });
|
|
643
|
+
// Find the </head> or </body> tag to inject before
|
|
644
|
+
const headMatch = html.match(/<\/head>/i);
|
|
645
|
+
const bodyMatch = html.match(/<\/body>/i);
|
|
646
|
+
const injectionPoint = headMatch
|
|
647
|
+
? headMatch.index + headMatch[0].length
|
|
648
|
+
: bodyMatch
|
|
649
|
+
? bodyMatch.index + bodyMatch[0].length
|
|
650
|
+
: html.length;
|
|
651
|
+
const scriptTag = `<script data-hmr-port="${port || ""}">${script}</script>`;
|
|
652
|
+
return html.slice(0, injectionPoint) + scriptTag + html.slice(injectionPoint);
|
|
653
|
+
}
|
|
654
|
+
//# sourceMappingURL=hmr-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hmr-client.js","sourceRoot":"","sources":["../../src/frontend/hmr-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,oDAAoD;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwmBhC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAElC;IACA,IAAI,OAAO,EAAE,IAAI,EAAE,CAAC;QACnB,OAAO,iBAAiB,CAAC,OAAO,CAC/B,0DAA0D,EAC1D,UAAU,OAAO,CAAC,IAAI,GAAG,CACzB,CAAC;IACH,CAAC;IACD,OAAO,iBAAiB,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,IAAa;IAC1D,MAAM,MAAM,GAAG,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5C,mDAAmD;IACnD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC1C,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAE1C,MAAM,cAAc,GAAG,SAAS;QAC/B,CAAC,CAAC,SAAS,CAAC,KAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM;QACxC,CAAC,CAAC,SAAS;YACV,CAAC,CAAC,SAAS,CAAC,KAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM;YACxC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;IAEhB,MAAM,SAAS,GAAG,0BAA0B,IAAI,IAAI,EAAE,KAAK,MAAM,WAAW,CAAC;IAE7E,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AAC/E,CAAC"}
|