soma-core 1.1.0 → 1.2.0
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/app/SomaPageClient.tsx +5 -5
- package/app/api/[...path]/route.ts +3 -3
- package/app/components/SomaHostPage.tsx +1 -1
- package/app/layout.tsx +13 -13
- package/app/soma/manifest/route.ts +1 -1
- package/app/soma/page/route.ts +1 -1
- package/app/soma/page-object/route.ts +9 -8
- package/bin/soma-db.cjs +13 -0
- package/bin/soma-lsp.cjs +5 -5
- package/bin/soma-mock.mjs +1 -1
- package/bin/soma-sync.cjs +1 -1
- package/core/{compiler → build/compiler}/full-manifest-builder.ts +10 -10
- package/core/{compiler → build/compiler}/host-config-sync.cjs +1 -1
- package/core/{compiler → build/compiler}/precompiled-manifest-loader.ts +1 -1
- package/core/{compiler → build/compiler}/rollup-plugin-soma.ts +1 -1
- package/core/{compiler → build/compiler}/route-builder.ts +31 -31
- package/core/{compiler → build/compiler}/soma-manifest-webpack-plugin.js +1 -1
- package/core/{compiler → build/compiler}/soma-precompile.js +8 -8
- package/core/{compiler → build/compiler}/soma-precompile.ts +94 -94
- package/core/{compiler → build/compiler}/soma-webpack-loader.js +41 -41
- package/core/{compiler → build/compiler}/vite-plugin-soma.ts +83 -83
- package/core/build/db/cli.ts +10 -0
- package/core/build/db/emit-entities.ts +45 -0
- package/core/build/db/emit-mappers.ts +175 -0
- package/core/build/db/emit-prisma-schema.ts +92 -0
- package/core/build/db/generate.ts +166 -0
- package/core/build/db/ir.ts +75 -0
- package/core/build/db/load-db-yaml.ts +241 -0
- package/core/{base → client/base}/SomaApi.ts +14 -14
- package/core/{base → client/base}/SomaDict.ts +168 -168
- package/core/{base → client/base}/SomaHttpClient.ts +123 -123
- package/core/{base → client/base}/SomaPageRootBase.ts +71 -71
- package/core/{base → client/base}/SomaValidator.ts +147 -147
- package/core/{compiler → client/compiler}/manifest-compiler.ts +238 -238
- package/core/{engine → client/engine}/asset-resolver.ts +102 -102
- package/core/{engine → client/engine}/dom-renderer.ts +341 -341
- package/core/{engine → client/engine}/event-engine.ts +356 -356
- package/core/{engine → client/engine}/lis.ts +60 -60
- package/core/{engine → client/engine}/on-change-engine.ts +3 -3
- package/core/{engine → client/engine}/property-watcher.ts +2 -2
- package/core/{engine → client/engine}/reactive-proxy.ts +231 -231
- package/core/{engine → client/engine}/render-engine.ts +350 -350
- package/core/{engine → client/engine}/runtime-builder.ts +177 -177
- package/core/{engine → client/engine}/scope-resolver.ts +308 -308
- package/core/{engine → client/engine}/soma-bootstrap.ts +8 -8
- package/core/{engine → client/engine}/style-binder.ts +423 -423
- package/core/{engine → client/engine}/theme-variables.ts +1 -1
- package/core/{engine → client/engine}/timer-engine.ts +3 -3
- package/core/{engine → client/engine}/trigger-engine.ts +2 -2
- package/core/client/host-bridge/index.ts +27 -0
- package/core/{host → client/host-bridge}/load-host-domain-class.ts +1 -1
- package/core/{infra → client/infra}/http/SomaHttpService.ts +185 -185
- package/core/{parser → client/parser}/annotation-extractor.ts +2 -2
- package/core/{parser → client/parser}/pipeline-parser.ts +3 -3
- package/core/{parser → client/parser}/style-config-parser.ts +340 -340
- package/core/{parser → client/parser}/timer-parser.ts +3 -3
- package/core/{parser → client/parser}/trigger-parser.ts +3 -3
- package/core/{parser → client/parser}/ui-config-parser.ts +408 -408
- package/core/{parser → client/parser}/yaml-loader.ts +36 -36
- package/core/{scheduler → client/scheduler}/SomaScheduler.ts +190 -190
- package/core/{validation → client/validation}/contract-validator.ts +2 -2
- package/core/index.ts +40 -39
- package/core/{api → server/api}/IService.ts +29 -29
- package/core/{engine → server/headless}/soma-headless-page.ts +26 -9
- package/core/{host → server/host}/server-page-assets.ts +1 -1
- package/core/server/index.ts +56 -0
- package/core/{infra → server/infra}/cache/ServerFileCache.ts +123 -123
- package/core/server/infra/db/errors.ts +11 -0
- package/core/server/infra/db/mapper/PrismaSomaMapper.ts +313 -0
- package/core/server/infra/db/mapper/SomaBaseMapper.ts +23 -0
- package/core/server/infra/db/mapper/SomaMapperHooks.ts +13 -0
- package/core/server/infra/db/query/SomaQuery.ts +149 -0
- package/core/server/infra/db/service/SomaDbService.ts +64 -0
- package/core/server/infra/db/soma-db.ts +120 -0
- package/core/server/infra/db/types.ts +21 -0
- package/core/server/server-only.d.ts +1 -0
- package/core/{types → shared/types}/domain.types.ts +91 -91
- package/dist/cli/soma.js +5 -1
- package/dist/core/index.cjs +73 -73
- package/dist/diagnostics/telemetry.cjs +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/{compiler → build/compiler}/full-manifest-builder.d.ts +5 -5
- package/dist/types/{compiler → build/compiler}/precompiled-manifest-loader.d.ts +1 -1
- package/dist/types/{compiler → build/compiler}/soma-precompile.d.ts +5 -5
- package/dist/types/{compiler → build/compiler}/vite-plugin-soma.d.ts +1 -1
- package/dist/types/build/db/cli.d.ts +2 -0
- package/dist/types/build/db/emit-entities.d.ts +5 -0
- package/dist/types/build/db/emit-mappers.d.ts +15 -0
- package/dist/types/build/db/emit-prisma-schema.d.ts +2 -0
- package/dist/types/build/db/generate.d.ts +7 -0
- package/dist/types/build/db/ir.d.ts +58 -0
- package/dist/types/build/db/load-db-yaml.d.ts +14 -0
- package/dist/types/{base → client/base}/SomaPageRootBase.d.ts +1 -1
- package/dist/types/{base → client/base}/SomaValidator.d.ts +1 -1
- package/dist/types/{compiler → client/compiler}/manifest-compiler.d.ts +3 -3
- package/dist/types/{engine → client/engine}/dom-renderer.d.ts +2 -2
- package/dist/types/{engine → client/engine}/event-engine.d.ts +1 -1
- package/dist/types/{engine → client/engine}/on-change-engine.d.ts +1 -1
- package/dist/types/{engine → client/engine}/property-watcher.d.ts +1 -1
- package/dist/types/{engine → client/engine}/render-engine.d.ts +3 -3
- package/dist/types/{engine → client/engine}/runtime-builder.d.ts +5 -5
- package/dist/types/{engine → client/engine}/scope-resolver.d.ts +1 -1
- package/dist/types/{engine → client/engine}/soma-bootstrap.d.ts +7 -7
- package/dist/types/{engine → client/engine}/style-binder.d.ts +1 -1
- package/dist/types/{engine → client/engine}/theme-variables.d.ts +1 -1
- package/dist/types/{engine → client/engine}/timer-engine.d.ts +1 -1
- package/dist/types/{engine → client/engine}/trigger-engine.d.ts +1 -1
- package/dist/types/client/host-bridge/index.d.ts +9 -0
- package/dist/types/{host → client/host-bridge}/load-host-domain-class.d.ts +1 -1
- package/dist/types/{infra → client/infra}/http/SomaHttpService.d.ts +1 -1
- package/dist/types/{parser → client/parser}/annotation-extractor.d.ts +2 -2
- package/dist/types/{parser → client/parser}/pipeline-parser.d.ts +1 -1
- package/dist/types/{parser → client/parser}/style-config-parser.d.ts +1 -1
- package/dist/types/{parser → client/parser}/timer-parser.d.ts +2 -2
- package/dist/types/{parser → client/parser}/trigger-parser.d.ts +2 -2
- package/dist/types/{parser → client/parser}/ui-config-parser.d.ts +1 -1
- package/dist/types/{scheduler → client/scheduler}/SomaScheduler.d.ts +1 -1
- package/dist/types/{validation → client/validation}/contract-validator.d.ts +2 -2
- package/dist/types/index.d.ts +35 -35
- package/dist/types/{api → server/api}/IService.d.ts +1 -1
- package/dist/types/{engine → server/headless}/soma-headless-page.d.ts +4 -2
- package/dist/types/server/index.d.ts +26 -0
- package/dist/types/server/infra/db/errors.d.ts +5 -0
- package/dist/types/server/infra/db/mapper/PrismaSomaMapper.d.ts +77 -0
- package/dist/types/server/infra/db/mapper/SomaBaseMapper.d.ts +20 -0
- package/dist/types/server/infra/db/mapper/SomaMapperHooks.d.ts +12 -0
- package/dist/types/server/infra/db/query/SomaQuery.d.ts +42 -0
- package/dist/types/server/infra/db/service/SomaDbService.d.ts +24 -0
- package/dist/types/server/infra/db/soma-db.d.ts +45 -0
- package/dist/types/server/infra/db/types.d.ts +18 -0
- package/dist/types/{types → shared/types}/domain.types.d.ts +1 -1
- package/global.d.ts +8 -8
- package/middleware.ts +1 -1
- package/next.config.js +11 -11
- package/package.json +34 -26
- package/tailwind.config.ts +24 -24
- package/docs//351/241/265/351/235/242JSON/346/250/241/345/274/217/346/216/245/345/205/245/346/214/207/345/215/227.md +0 -141
- /package/core/{compiler → build/compiler}/page-base-resolver.ts +0 -0
- /package/core/{compiler → build/compiler}/rspack-plugin-soma.js +0 -0
- /package/core/{compiler → build/compiler}/soma-rspack-yaml-loader.js +0 -0
- /package/core/{lsp → build/lsp}/cross-file-diagnostics.cjs +0 -0
- /package/core/{lsp → build/lsp}/event-yaml-completion.cjs +0 -0
- /package/core/{lsp → build/lsp}/extra-completion.cjs +0 -0
- /package/core/{lsp → build/lsp}/lsp-navigation.cjs +0 -0
- /package/core/{lsp → build/lsp}/ui-yaml-completion.cjs +0 -0
- /package/core/{base → client/base}/SomaEntity.ts +0 -0
- /package/core/{base → client/base}/SomaLocaleOnlyPageRoot.ts +0 -0
- /package/core/{base → client/base}/decorators/Event.ts +0 -0
- /package/core/{base → client/base}/decorators/Locale.ts +0 -0
- /package/core/{base → client/base}/decorators/Page.ts +0 -0
- /package/core/{base → client/base}/decorators/Show.ts +0 -0
- /package/core/{base → client/base}/decorators/ShowList.ts +0 -0
- /package/core/{base → client/base}/decorators/index.ts +0 -0
- /package/core/{base → client/base}/index.ts +0 -0
- /package/core/{base → client/base}/runAsync.ts +0 -0
- /package/core/{container → client/container}/IContainerAdapter.ts +0 -0
- /package/core/{container → client/container}/MiniProgramContainerAdapter.ts +0 -0
- /package/core/{container → client/container}/ReactNativeContainerAdapter.ts +0 -0
- /package/core/{container → client/container}/SomaContainerAdapter.ts +0 -0
- /package/core/{diagnostics → client/diagnostics}/SomaDiagnostics.ts +0 -0
- /package/core/{diagnostics → client/diagnostics}/SomaTelemetry.ts +0 -0
- /package/core/{diagnostics → client/diagnostics}/telemetry-context.ts +0 -0
- /package/core/{host → client/host-bridge}/resolve-host-bootstrap.ts +0 -0
- /package/core/{host → client/host-bridge}/soma-bootstrap-host.stub.ts +0 -0
- /package/core/{host → client/host-bridge}/soma-domain-loaders.stub.ts +0 -0
- /package/core/{host → client/host-bridge}/soma-domain-loaders.ts +0 -0
- /package/core/{infra → client/infra}/auth/IAuthService.ts +0 -0
- /package/core/{infra → client/infra}/auth/TokenAuthService.ts +0 -0
- /package/core/{infra → client/infra}/cache/ICache.ts +0 -0
- /package/core/{infra → client/infra}/cache/MemoryCache.ts +0 -0
- /package/core/{infra → client/infra}/config/IConfig.ts +0 -0
- /package/core/{infra → client/infra}/config/SomaConfig.ts +0 -0
- /package/core/{infra → client/infra}/event-bus/IEventBus.ts +0 -0
- /package/core/{infra → client/infra}/event-bus/SomaEventBus.ts +0 -0
- /package/core/{infra → client/infra}/http/IHttpClient.ts +0 -0
- /package/core/{infra → client/infra}/i18n/DefaultI18n.ts +0 -0
- /package/core/{infra → client/infra}/i18n/II18n.ts +0 -0
- /package/core/{infra → client/infra}/logger/ConsoleLogger.ts +0 -0
- /package/core/{infra → client/infra}/logger/ILogger.ts +0 -0
- /package/core/{infra → client/infra}/notify/DefaultNotifyService.ts +0 -0
- /package/core/{infra → client/infra}/notify/DomNotifyService.ts +0 -0
- /package/core/{infra → client/infra}/notify/INotifyService.ts +0 -0
- /package/core/{infra → client/infra}/notify/INotifyTheme.ts +0 -0
- /package/core/{infra → client/infra}/permission/IPermission.ts +0 -0
- /package/core/{infra → client/infra}/permission/SomaPermission.ts +0 -0
- /package/core/{infra → client/infra}/realtime/IRealtimeService.ts +0 -0
- /package/core/{infra → client/infra}/realtime/IRealtimeTransport.ts +0 -0
- /package/core/{infra → client/infra}/realtime/SomaRealtimeService.ts +0 -0
- /package/core/{infra → client/infra}/realtime/SseRealtimeTransport.ts +0 -0
- /package/core/{infra → client/infra}/realtime/WebSocketRealtimeTransport.ts +0 -0
- /package/core/{infra → client/infra}/router/IRouter.ts +0 -0
- /package/core/{infra → client/infra}/router/SomaRouter.ts +0 -0
- /package/core/{infra → client/infra}/router/router-path.ts +0 -0
- /package/core/{infra → client/infra}/storage/IStorageService.ts +0 -0
- /package/core/{infra → client/infra}/storage/MemoryStorageService.ts +0 -0
- /package/core/{infra → client/infra}/storage/SessionStorageService.ts +0 -0
- /package/core/{infra → client/infra}/timer/ITimer.ts +0 -0
- /package/core/{infra → client/infra}/timer/SomaTimer.ts +0 -0
- /package/core/{middleware → client/middleware}/SomaMiddlewareChain.ts +0 -0
- /package/core/{middleware → client/middleware}/createPermissionMiddleware.ts +0 -0
- /package/core/{quality → client/quality}/SomaQualityRegistry.ts +0 -0
- /package/core/{runtime → client/runtime}/SomaRuntimeServices.ts +0 -0
- /package/core/{runtime → client/runtime}/SomaSnapshotStore.ts +0 -0
- /package/core/{runtime → client/runtime}/serialize-page-state.ts +0 -0
- /package/core/{api → server/api}/load-host-service.ts +0 -0
- /package/core/{api → server/api}/service-path.ts +0 -0
- /package/core/{host → server/host}/app-config-composer.ts +0 -0
- /package/core/{host → server/host}/app-config.stub.ts +0 -0
- /package/core/{host → server/host}/host-config-paths.cjs +0 -0
- /package/core/{host → server/host}/host-config-paths.ts +0 -0
- /package/core/{host → server/host}/invoke-host-request-hook.ts +0 -0
- /package/core/{host → server/host}/locale.stub.ts +0 -0
- /package/core/{host → server/host}/page-response-mode.cjs +0 -0
- /package/core/{host → server/host}/page-response-request.ts +0 -0
- /package/core/{host → server/host}/request-origin.ts +0 -0
- /package/core/{host → server/host}/resolve-host-request-hook.ts +0 -0
- /package/core/{host → server/host}/soma-request-hook-host.stub.ts +0 -0
- /package/core/{host → server/host}/source-packages.ts +0 -0
- /package/core/{infra → server/infra}/http/soma-server-request-context.ts +0 -0
- /package/core/{mock → server/mock}/node/catch-all.mjs +0 -0
- /package/core/{mock → server/mock}/node/cli.d.mts +0 -0
- /package/core/{mock → server/mock}/node/cli.mjs +0 -0
- /package/core/{mock → server/mock}/node/context.mjs +0 -0
- /package/core/{mock → server/mock}/node/environment-policy.mjs +0 -0
- /package/core/{mock → server/mock}/node/plugin-loader.mjs +0 -0
- /package/core/{mock → server/mock}/node/preload.mjs +0 -0
- /package/core/{mock → server/mock}/node/process-lifecycle.mjs +0 -0
- /package/core/{mock → server/mock}/node/public.d.mts +0 -0
- /package/core/{mock → server/mock}/node/public.mjs +0 -0
- /package/core/{mock → server/mock}/node/registry.mjs +0 -0
- /package/core/{mock → server/mock}/node/schema-generator.mjs +0 -0
- /package/core/{mock → server/mock}/testing/host-harness.d.mts +0 -0
- /package/core/{mock → server/mock}/testing/host-harness.mjs +0 -0
- /package/core/{mock → server/mock}/testing/host-runtime.mjs +0 -0
- /package/core/{manifest → shared/manifest}/manifest-contract.ts +0 -0
- /package/core/{types → shared/types}/engine.types.ts +0 -0
- /package/core/{types → shared/types}/event.types.ts +0 -0
- /package/core/{types → shared/types}/keyboard.types.ts +0 -0
- /package/core/{types → shared/types}/manifest.types.ts +0 -0
- /package/core/{types → shared/types}/scheduler.types.ts +0 -0
- /package/core/{types → shared/types}/style-config.types.ts +0 -0
- /package/core/{types → shared/types}/timer.types.ts +0 -0
- /package/core/{types → shared/types}/trigger.types.ts +0 -0
- /package/core/{types → shared/types}/ui-config.types.ts +0 -0
- /package/core/{types → shared/types}/watcher.types.ts +0 -0
- /package/dist/types/{compiler → build/compiler}/page-base-resolver.d.ts +0 -0
- /package/dist/types/{compiler → build/compiler}/rollup-plugin-soma.d.ts +0 -0
- /package/dist/types/{compiler → build/compiler}/route-builder.d.ts +0 -0
- /package/dist/types/{base → client/base}/SomaApi.d.ts +0 -0
- /package/dist/types/{base → client/base}/SomaDict.d.ts +0 -0
- /package/dist/types/{base → client/base}/SomaEntity.d.ts +0 -0
- /package/dist/types/{base → client/base}/SomaHttpClient.d.ts +0 -0
- /package/dist/types/{base → client/base}/SomaLocaleOnlyPageRoot.d.ts +0 -0
- /package/dist/types/{base → client/base}/decorators/Event.d.ts +0 -0
- /package/dist/types/{base → client/base}/decorators/Locale.d.ts +0 -0
- /package/dist/types/{base → client/base}/decorators/Page.d.ts +0 -0
- /package/dist/types/{base → client/base}/decorators/Show.d.ts +0 -0
- /package/dist/types/{base → client/base}/decorators/ShowList.d.ts +0 -0
- /package/dist/types/{base → client/base}/decorators/index.d.ts +0 -0
- /package/dist/types/{base → client/base}/index.d.ts +0 -0
- /package/dist/types/{base → client/base}/runAsync.d.ts +0 -0
- /package/dist/types/{container → client/container}/IContainerAdapter.d.ts +0 -0
- /package/dist/types/{container → client/container}/MiniProgramContainerAdapter.d.ts +0 -0
- /package/dist/types/{container → client/container}/ReactNativeContainerAdapter.d.ts +0 -0
- /package/dist/types/{container → client/container}/SomaContainerAdapter.d.ts +0 -0
- /package/dist/types/{diagnostics → client/diagnostics}/SomaDiagnostics.d.ts +0 -0
- /package/dist/types/{diagnostics → client/diagnostics}/SomaTelemetry.d.ts +0 -0
- /package/dist/types/{diagnostics → client/diagnostics}/telemetry-context.d.ts +0 -0
- /package/dist/types/{engine → client/engine}/asset-resolver.d.ts +0 -0
- /package/dist/types/{engine → client/engine}/lis.d.ts +0 -0
- /package/dist/types/{engine → client/engine}/reactive-proxy.d.ts +0 -0
- /package/dist/types/{host → client/host-bridge}/resolve-host-bootstrap.d.ts +0 -0
- /package/dist/types/{host → client/host-bridge}/soma-bootstrap-host.stub.d.ts +0 -0
- /package/dist/types/{host → client/host-bridge}/soma-domain-loaders.d.ts +0 -0
- /package/dist/types/{host → client/host-bridge}/soma-domain-loaders.stub.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/auth/IAuthService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/auth/TokenAuthService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/cache/ICache.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/cache/MemoryCache.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/config/IConfig.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/config/SomaConfig.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/event-bus/IEventBus.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/event-bus/SomaEventBus.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/http/IHttpClient.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/i18n/DefaultI18n.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/i18n/II18n.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/logger/ConsoleLogger.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/logger/ILogger.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/notify/DefaultNotifyService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/notify/DomNotifyService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/notify/INotifyService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/notify/INotifyTheme.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/permission/IPermission.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/permission/SomaPermission.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/realtime/IRealtimeService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/realtime/IRealtimeTransport.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/realtime/SomaRealtimeService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/realtime/SseRealtimeTransport.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/realtime/WebSocketRealtimeTransport.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/router/IRouter.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/router/SomaRouter.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/router/router-path.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/storage/IStorageService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/storage/MemoryStorageService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/storage/SessionStorageService.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/timer/ITimer.d.ts +0 -0
- /package/dist/types/{infra → client/infra}/timer/SomaTimer.d.ts +0 -0
- /package/dist/types/{middleware → client/middleware}/SomaMiddlewareChain.d.ts +0 -0
- /package/dist/types/{middleware → client/middleware}/createPermissionMiddleware.d.ts +0 -0
- /package/dist/types/{parser → client/parser}/yaml-loader.d.ts +0 -0
- /package/dist/types/{quality → client/quality}/SomaQualityRegistry.d.ts +0 -0
- /package/dist/types/{runtime → client/runtime}/SomaRuntimeServices.d.ts +0 -0
- /package/dist/types/{runtime → client/runtime}/SomaSnapshotStore.d.ts +0 -0
- /package/dist/types/{runtime → client/runtime}/serialize-page-state.d.ts +0 -0
- /package/dist/types/{api → server/api}/load-host-service.d.ts +0 -0
- /package/dist/types/{api → server/api}/service-path.d.ts +0 -0
- /package/dist/types/{host → server/host}/app-config-composer.d.ts +0 -0
- /package/dist/types/{host → server/host}/app-config.stub.d.ts +0 -0
- /package/dist/types/{host → server/host}/host-config-paths.d.ts +0 -0
- /package/dist/types/{host → server/host}/invoke-host-request-hook.d.ts +0 -0
- /package/dist/types/{host → server/host}/locale.stub.d.ts +0 -0
- /package/dist/types/{host → server/host}/page-response-request.d.ts +0 -0
- /package/dist/types/{host → server/host}/request-origin.d.ts +0 -0
- /package/dist/types/{host → server/host}/resolve-host-request-hook.d.ts +0 -0
- /package/dist/types/{host → server/host}/server-page-assets.d.ts +0 -0
- /package/dist/types/{host → server/host}/soma-request-hook-host.stub.d.ts +0 -0
- /package/dist/types/{host → server/host}/source-packages.d.ts +0 -0
- /package/dist/types/{infra → server/infra}/cache/ServerFileCache.d.ts +0 -0
- /package/dist/types/{infra → server/infra}/http/soma-server-request-context.d.ts +0 -0
- /package/dist/types/{manifest → shared/manifest}/manifest-contract.d.ts +0 -0
- /package/dist/types/{types → shared/types}/engine.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/event.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/keyboard.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/manifest.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/scheduler.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/style-config.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/timer.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/trigger.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/ui-config.types.d.ts +0 -0
- /package/dist/types/{types → shared/types}/watcher.types.d.ts +0 -0
package/dist/core/index.cjs
CHANGED
|
@@ -75,7 +75,7 @@ __export(index_exports, {
|
|
|
75
75
|
});
|
|
76
76
|
module.exports = __toCommonJS(index_exports);
|
|
77
77
|
|
|
78
|
-
// core/base/SomaApi.ts
|
|
78
|
+
// core/client/base/SomaApi.ts
|
|
79
79
|
var SomaApi = class {
|
|
80
80
|
json(data, status = 200) {
|
|
81
81
|
return Response.json(data, { status });
|
|
@@ -85,7 +85,7 @@ var SomaApi = class {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
// core/infra/router/router-path.ts
|
|
88
|
+
// core/client/infra/router/router-path.ts
|
|
89
89
|
function getBrowserUrlPath() {
|
|
90
90
|
if (typeof globalThis === "undefined" || !("location" in globalThis)) {
|
|
91
91
|
return "/";
|
|
@@ -106,7 +106,7 @@ function readQueryParam(key, routerPath) {
|
|
|
106
106
|
return new URLSearchParams(qs).get(key) ?? "";
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
// core/base/runAsync.ts
|
|
109
|
+
// core/client/base/runAsync.ts
|
|
110
110
|
async function runAsync(host, fn) {
|
|
111
111
|
const loadingKey = "pageLoading" in host ? "pageLoading" : "loading";
|
|
112
112
|
const errorKey = "pageError" in host ? "pageError" : "error";
|
|
@@ -122,7 +122,7 @@ async function runAsync(host, fn) {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
// core/base/SomaPageRootBase.ts
|
|
125
|
+
// core/client/base/SomaPageRootBase.ts
|
|
126
126
|
var SomaPageRootBase = class {
|
|
127
127
|
constructor() {
|
|
128
128
|
/** 页面级 loading 状态(Proxy 响应式) */
|
|
@@ -166,11 +166,11 @@ var SomaPageRootBase = class {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
// core/base/SomaLocaleOnlyPageRoot.ts
|
|
169
|
+
// core/client/base/SomaLocaleOnlyPageRoot.ts
|
|
170
170
|
var SomaLocaleOnlyPageRoot = class extends SomaPageRootBase {
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
// core/base/SomaDict.ts
|
|
173
|
+
// core/client/base/SomaDict.ts
|
|
174
174
|
var SomaDict = class {
|
|
175
175
|
constructor() {
|
|
176
176
|
/** 数据缓存:key -> CacheEntry */
|
|
@@ -279,7 +279,7 @@ var SomaDict = class {
|
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
// core/base/SomaEntity.ts
|
|
282
|
+
// core/client/base/SomaEntity.ts
|
|
283
283
|
var SomaEntity = class {
|
|
284
284
|
constructor() {
|
|
285
285
|
/** 实体级 loading 状态(Proxy 响应式) */
|
|
@@ -308,7 +308,7 @@ var SomaEntity = class {
|
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
-
// core/base/SomaHttpClient.ts
|
|
311
|
+
// core/client/base/SomaHttpClient.ts
|
|
312
312
|
var SomaHttpClient = class {
|
|
313
313
|
constructor(config) {
|
|
314
314
|
this.abortControllers = /* @__PURE__ */ new Set();
|
|
@@ -389,7 +389,7 @@ var SomaHttpClient = class {
|
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
|
|
392
|
-
// core/base/SomaValidator.ts
|
|
392
|
+
// core/client/base/SomaValidator.ts
|
|
393
393
|
var SomaValidator = class {
|
|
394
394
|
constructor() {
|
|
395
395
|
/** 字段 -> 校验规则列表 的映射 */
|
|
@@ -473,7 +473,7 @@ var SomaValidator = class {
|
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
// core/base/decorators/Locale.ts
|
|
476
|
+
// core/client/base/decorators/Locale.ts
|
|
477
477
|
var LOCALE_REGISTRY = /* @__PURE__ */ new WeakMap();
|
|
478
478
|
function Locale(key) {
|
|
479
479
|
return (target, propertyKey) => {
|
|
@@ -497,7 +497,7 @@ function getLocaleMetadata(ctor) {
|
|
|
497
497
|
return LOCALE_REGISTRY.get(ctor) ?? [];
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
// core/base/decorators/Page.ts
|
|
500
|
+
// core/client/base/decorators/Page.ts
|
|
501
501
|
var PAGE_REGISTRY = /* @__PURE__ */ new WeakMap();
|
|
502
502
|
function Page(id) {
|
|
503
503
|
return (target) => {
|
|
@@ -511,7 +511,7 @@ function hasPageMetadata(ctor) {
|
|
|
511
511
|
return PAGE_REGISTRY.has(ctor);
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
// core/base/decorators/Show.ts
|
|
514
|
+
// core/client/base/decorators/Show.ts
|
|
515
515
|
var SHOW_REGISTRY = /* @__PURE__ */ new WeakMap();
|
|
516
516
|
function Show(somaId) {
|
|
517
517
|
return (target, propertyKey) => {
|
|
@@ -525,7 +525,7 @@ function getShowMetadata(ctor) {
|
|
|
525
525
|
return SHOW_REGISTRY.get(ctor) ?? [];
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
// core/base/decorators/ShowList.ts
|
|
528
|
+
// core/client/base/decorators/ShowList.ts
|
|
529
529
|
var SHOW_LIST_REGISTRY = /* @__PURE__ */ new WeakMap();
|
|
530
530
|
function ShowList(somaId, entityClass, itemVar) {
|
|
531
531
|
return (target, propertyKey) => {
|
|
@@ -544,7 +544,7 @@ function getShowListMetadata(ctor) {
|
|
|
544
544
|
return SHOW_LIST_REGISTRY.get(ctor) ?? [];
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
// core/base/decorators/Event.ts
|
|
547
|
+
// core/client/base/decorators/Event.ts
|
|
548
548
|
var EVENT_REGISTRY = /* @__PURE__ */ new WeakMap();
|
|
549
549
|
function Event2(pipelineString) {
|
|
550
550
|
return (target, propertyKey) => {
|
|
@@ -558,7 +558,7 @@ function getEventMetadata(ctor) {
|
|
|
558
558
|
return EVENT_REGISTRY.get(ctor) ?? [];
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
// core/container/SomaContainerAdapter.ts
|
|
561
|
+
// core/client/container/SomaContainerAdapter.ts
|
|
562
562
|
var SomaContainerAdapter = class {
|
|
563
563
|
constructor() {
|
|
564
564
|
this.navigateHandler = null;
|
|
@@ -695,7 +695,7 @@ var SomaContainerAdapter = class {
|
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
697
|
|
|
698
|
-
// core/diagnostics/SomaDiagnostics.ts
|
|
698
|
+
// core/client/diagnostics/SomaDiagnostics.ts
|
|
699
699
|
var RingBuffer = class {
|
|
700
700
|
constructor(capacity) {
|
|
701
701
|
this.capacity = capacity;
|
|
@@ -800,7 +800,7 @@ var SomaDiagnostics = class {
|
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
|
|
803
|
-
// core/diagnostics/SomaTelemetry.ts
|
|
803
|
+
// core/client/diagnostics/SomaTelemetry.ts
|
|
804
804
|
var SomaTelemetry = class {
|
|
805
805
|
constructor(maxEntries = 500) {
|
|
806
806
|
this.metrics = [];
|
|
@@ -878,7 +878,7 @@ var SomaTelemetry = class {
|
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
|
|
881
|
-
// core/diagnostics/telemetry-context.ts
|
|
881
|
+
// core/client/diagnostics/telemetry-context.ts
|
|
882
882
|
var active = null;
|
|
883
883
|
function setActiveTelemetry(telemetry) {
|
|
884
884
|
active = telemetry;
|
|
@@ -887,7 +887,7 @@ function recordMetric(name, value, unit = "ms") {
|
|
|
887
887
|
active?.record(name, value, unit);
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
// core/middleware/SomaMiddlewareChain.ts
|
|
890
|
+
// core/client/middleware/SomaMiddlewareChain.ts
|
|
891
891
|
var SomaMiddlewareChain = class {
|
|
892
892
|
constructor() {
|
|
893
893
|
this.middlewares = [];
|
|
@@ -908,7 +908,7 @@ var SomaMiddlewareChain = class {
|
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
910
|
|
|
911
|
-
// core/scheduler/SomaScheduler.ts
|
|
911
|
+
// core/client/scheduler/SomaScheduler.ts
|
|
912
912
|
var PRIORITY_ORDER = ["immediate", "visible", "background"];
|
|
913
913
|
var SomaScheduler = class {
|
|
914
914
|
constructor(options = {}) {
|
|
@@ -1062,7 +1062,7 @@ var SomaScheduler = class {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
1064
|
|
|
1065
|
-
// core/runtime/SomaSnapshotStore.ts
|
|
1065
|
+
// core/client/runtime/SomaSnapshotStore.ts
|
|
1066
1066
|
var SomaSnapshotStore = class {
|
|
1067
1067
|
constructor(maxEntries = 20) {
|
|
1068
1068
|
this.nextId = 1;
|
|
@@ -1145,7 +1145,7 @@ var SomaSnapshotStore = class {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
};
|
|
1147
1147
|
|
|
1148
|
-
// node_modules/js-yaml/dist/js-yaml.mjs
|
|
1148
|
+
// ../node_modules/js-yaml/dist/js-yaml.mjs
|
|
1149
1149
|
function getDefaultExportFromCjs(x) {
|
|
1150
1150
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1151
1151
|
}
|
|
@@ -4203,7 +4203,7 @@ var {
|
|
|
4203
4203
|
safeDump
|
|
4204
4204
|
} = yaml;
|
|
4205
4205
|
|
|
4206
|
-
// core/infra/cache/MemoryCache.ts
|
|
4206
|
+
// core/client/infra/cache/MemoryCache.ts
|
|
4207
4207
|
var MemoryCache = class {
|
|
4208
4208
|
constructor(options = {}) {
|
|
4209
4209
|
this.store = /* @__PURE__ */ new Map();
|
|
@@ -4270,7 +4270,7 @@ var MemoryCache = class {
|
|
|
4270
4270
|
}
|
|
4271
4271
|
};
|
|
4272
4272
|
|
|
4273
|
-
// core/types/keyboard.types.ts
|
|
4273
|
+
// core/shared/types/keyboard.types.ts
|
|
4274
4274
|
var SOMA_KEY_MODIFIERS = {
|
|
4275
4275
|
enter: "Enter",
|
|
4276
4276
|
escape: "Escape",
|
|
@@ -4285,7 +4285,7 @@ var SOMA_KEY_MODIFIERS = {
|
|
|
4285
4285
|
};
|
|
4286
4286
|
var VALID_KEY_MODIFIER_NAMES = new Set(Object.keys(SOMA_KEY_MODIFIERS));
|
|
4287
4287
|
|
|
4288
|
-
// core/parser/pipeline-parser.ts
|
|
4288
|
+
// core/client/parser/pipeline-parser.ts
|
|
4289
4289
|
var SomaEventParseError = class extends Error {
|
|
4290
4290
|
constructor(message, rawExpression) {
|
|
4291
4291
|
super(`[SOMA EventParser] ${message} \u2014 \u539F\u59CB\u8868\u8FBE\u5F0F: "${rawExpression}"`);
|
|
@@ -4491,7 +4491,7 @@ function parseEventConfig(config, parentPath = []) {
|
|
|
4491
4491
|
return events;
|
|
4492
4492
|
}
|
|
4493
4493
|
|
|
4494
|
-
// core/parser/timer-parser.ts
|
|
4494
|
+
// core/client/parser/timer-parser.ts
|
|
4495
4495
|
var SomaTimerParseError = class extends Error {
|
|
4496
4496
|
constructor(message) {
|
|
4497
4497
|
super(`[SOMA TimerParser] ${message}`);
|
|
@@ -4549,7 +4549,7 @@ function compileTimer(timer) {
|
|
|
4549
4549
|
};
|
|
4550
4550
|
}
|
|
4551
4551
|
|
|
4552
|
-
// core/parser/trigger-parser.ts
|
|
4552
|
+
// core/client/parser/trigger-parser.ts
|
|
4553
4553
|
var SomaTriggerParseError = class extends Error {
|
|
4554
4554
|
constructor(message) {
|
|
4555
4555
|
super(`[SOMA TriggerParser] ${message}`);
|
|
@@ -4614,7 +4614,7 @@ function splitEventConfigRaw(raw) {
|
|
|
4614
4614
|
};
|
|
4615
4615
|
}
|
|
4616
4616
|
|
|
4617
|
-
// core/parser/style-config-parser.ts
|
|
4617
|
+
// core/client/parser/style-config-parser.ts
|
|
4618
4618
|
var SomaStyleConfigError = class extends Error {
|
|
4619
4619
|
constructor(message, path = "") {
|
|
4620
4620
|
const prefix = path ? ` (\u8DEF\u5F84: ${path})` : "";
|
|
@@ -4875,7 +4875,7 @@ function parseStyleConfig(raw) {
|
|
|
4875
4875
|
};
|
|
4876
4876
|
}
|
|
4877
4877
|
|
|
4878
|
-
// core/parser/ui-config-parser.ts
|
|
4878
|
+
// core/client/parser/ui-config-parser.ts
|
|
4879
4879
|
var SomaUiConfigError = class extends Error {
|
|
4880
4880
|
constructor(message, path = "") {
|
|
4881
4881
|
const prefix = path ? ` (\u8DEF\u5F84: ${path})` : "";
|
|
@@ -5087,7 +5087,7 @@ function parseUiConfig(raw) {
|
|
|
5087
5087
|
return config;
|
|
5088
5088
|
}
|
|
5089
5089
|
|
|
5090
|
-
// core/parser/annotation-extractor.ts
|
|
5090
|
+
// core/client/parser/annotation-extractor.ts
|
|
5091
5091
|
function extractConfigFromDomainClass(DomainClass, options = {}) {
|
|
5092
5092
|
const pageVar = options.pageVar ?? "page";
|
|
5093
5093
|
const pageId = getPageId(DomainClass) ?? DomainClass.name;
|
|
@@ -5153,7 +5153,7 @@ function defaultItemVar(propertyKey) {
|
|
|
5153
5153
|
return propertyKey.endsWith("s") ? propertyKey.charAt(0) : propertyKey;
|
|
5154
5154
|
}
|
|
5155
5155
|
|
|
5156
|
-
// core/engine/asset-resolver.ts
|
|
5156
|
+
// core/client/engine/asset-resolver.ts
|
|
5157
5157
|
var SomaAssetResolver = class {
|
|
5158
5158
|
constructor(cache) {
|
|
5159
5159
|
this.cache = cache ?? new MemoryCache({ maxSize: 50 });
|
|
@@ -5220,7 +5220,7 @@ var SomaAssetResolver = class {
|
|
|
5220
5220
|
}
|
|
5221
5221
|
};
|
|
5222
5222
|
|
|
5223
|
-
// core/engine/reactive-proxy.ts
|
|
5223
|
+
// core/client/engine/reactive-proxy.ts
|
|
5224
5224
|
var ARRAY_MUTATING_METHODS = /* @__PURE__ */ new Set([
|
|
5225
5225
|
"push",
|
|
5226
5226
|
"pop",
|
|
@@ -5385,7 +5385,7 @@ var SomaReactiveProxy = class {
|
|
|
5385
5385
|
}
|
|
5386
5386
|
};
|
|
5387
5387
|
|
|
5388
|
-
// core/compiler/manifest-compiler.ts
|
|
5388
|
+
// core/client/compiler/manifest-compiler.ts
|
|
5389
5389
|
var SomaManifestCompiler = class {
|
|
5390
5390
|
constructor() {
|
|
5391
5391
|
/** 事件编译缓存:eventConfig 不依赖 DOM,可安全缓存 */
|
|
@@ -5564,7 +5564,7 @@ var SomaManifestCompiler = class {
|
|
|
5564
5564
|
}
|
|
5565
5565
|
};
|
|
5566
5566
|
|
|
5567
|
-
// core/validation/contract-validator.ts
|
|
5567
|
+
// core/client/validation/contract-validator.ts
|
|
5568
5568
|
var SomaContractError = class extends Error {
|
|
5569
5569
|
constructor(report) {
|
|
5570
5570
|
const summary = report.errors[0] ?? "SOMA contract validation failed";
|
|
@@ -5905,7 +5905,7 @@ var SomaContractValidator = class {
|
|
|
5905
5905
|
}
|
|
5906
5906
|
};
|
|
5907
5907
|
|
|
5908
|
-
// core/engine/event-engine.ts
|
|
5908
|
+
// core/client/engine/event-engine.ts
|
|
5909
5909
|
var SomaEventEngine = class {
|
|
5910
5910
|
constructor(options) {
|
|
5911
5911
|
this.pendingSet = /* @__PURE__ */ new Set();
|
|
@@ -6142,7 +6142,7 @@ var SomaEventEngine = class {
|
|
|
6142
6142
|
}
|
|
6143
6143
|
};
|
|
6144
6144
|
|
|
6145
|
-
// core/engine/on-change-engine.ts
|
|
6145
|
+
// core/client/engine/on-change-engine.ts
|
|
6146
6146
|
var SomaOnChangeEngine = class {
|
|
6147
6147
|
constructor() {
|
|
6148
6148
|
this.unwatchers = [];
|
|
@@ -6188,7 +6188,7 @@ var SomaOnChangeEngine = class {
|
|
|
6188
6188
|
}
|
|
6189
6189
|
};
|
|
6190
6190
|
|
|
6191
|
-
// core/engine/lis.ts
|
|
6191
|
+
// core/client/engine/lis.ts
|
|
6192
6192
|
function longestIncreasingSubsequence(source) {
|
|
6193
6193
|
const n = source.length;
|
|
6194
6194
|
if (n === 0) return [];
|
|
@@ -6224,7 +6224,7 @@ function longestIncreasingSubsequence(source) {
|
|
|
6224
6224
|
return result;
|
|
6225
6225
|
}
|
|
6226
6226
|
|
|
6227
|
-
// core/engine/dom-renderer.ts
|
|
6227
|
+
// core/client/engine/dom-renderer.ts
|
|
6228
6228
|
var SomaDomRenderer = class {
|
|
6229
6229
|
constructor() {
|
|
6230
6230
|
this.adapter = null;
|
|
@@ -6604,7 +6604,7 @@ var SomaDomRenderer = class {
|
|
|
6604
6604
|
}
|
|
6605
6605
|
};
|
|
6606
6606
|
|
|
6607
|
-
// core/engine/property-watcher.ts
|
|
6607
|
+
// core/client/engine/property-watcher.ts
|
|
6608
6608
|
var nextWatcherId = 1;
|
|
6609
6609
|
var SomaPropertyWatcher = class {
|
|
6610
6610
|
constructor() {
|
|
@@ -6689,7 +6689,7 @@ function matchGlobPath(pattern, path) {
|
|
|
6689
6689
|
return true;
|
|
6690
6690
|
}
|
|
6691
6691
|
|
|
6692
|
-
// core/engine/render-engine.ts
|
|
6692
|
+
// core/client/engine/render-engine.ts
|
|
6693
6693
|
var SomaRenderEngine = class {
|
|
6694
6694
|
constructor(options) {
|
|
6695
6695
|
this.bindingTable = [];
|
|
@@ -6931,7 +6931,7 @@ var SomaRenderEngine = class {
|
|
|
6931
6931
|
}
|
|
6932
6932
|
};
|
|
6933
6933
|
|
|
6934
|
-
// core/engine/scope-resolver.ts
|
|
6934
|
+
// core/client/engine/scope-resolver.ts
|
|
6935
6935
|
var SomaScopeResolver = class {
|
|
6936
6936
|
constructor() {
|
|
6937
6937
|
/** var 别名 → 属性路径(用于渲染引擎的绑定表编译) */
|
|
@@ -7171,7 +7171,7 @@ var SomaScopeResolver = class {
|
|
|
7171
7171
|
}
|
|
7172
7172
|
};
|
|
7173
7173
|
|
|
7174
|
-
// core/engine/theme-variables.ts
|
|
7174
|
+
// core/client/engine/theme-variables.ts
|
|
7175
7175
|
var BUILTIN_THEME_VARS = {
|
|
7176
7176
|
dark: {
|
|
7177
7177
|
"--soma-bg": "#111827",
|
|
@@ -7198,7 +7198,7 @@ function applyThemeVariables(themeName, themeConfig, root) {
|
|
|
7198
7198
|
}
|
|
7199
7199
|
}
|
|
7200
7200
|
|
|
7201
|
-
// core/engine/style-binder.ts
|
|
7201
|
+
// core/client/engine/style-binder.ts
|
|
7202
7202
|
var SomaStyleBinder = class {
|
|
7203
7203
|
constructor(options) {
|
|
7204
7204
|
this.abortController = new AbortController();
|
|
@@ -7500,7 +7500,7 @@ var SomaStyleBinder = class {
|
|
|
7500
7500
|
}
|
|
7501
7501
|
};
|
|
7502
7502
|
|
|
7503
|
-
// core/engine/trigger-engine.ts
|
|
7503
|
+
// core/client/engine/trigger-engine.ts
|
|
7504
7504
|
var SomaTriggerEngine = class {
|
|
7505
7505
|
constructor() {
|
|
7506
7506
|
this.unwatchers = [];
|
|
@@ -7537,7 +7537,7 @@ var SomaTriggerEngine = class {
|
|
|
7537
7537
|
}
|
|
7538
7538
|
};
|
|
7539
7539
|
|
|
7540
|
-
// core/engine/timer-engine.ts
|
|
7540
|
+
// core/client/engine/timer-engine.ts
|
|
7541
7541
|
var SomaTimerEngine = class {
|
|
7542
7542
|
constructor() {
|
|
7543
7543
|
this.handles = [];
|
|
@@ -7604,7 +7604,7 @@ var SomaTimerEngine = class {
|
|
|
7604
7604
|
}
|
|
7605
7605
|
};
|
|
7606
7606
|
|
|
7607
|
-
// core/engine/runtime-builder.ts
|
|
7607
|
+
// core/client/engine/runtime-builder.ts
|
|
7608
7608
|
var SomaRuntimeBuilder = class {
|
|
7609
7609
|
constructor() {
|
|
7610
7610
|
this.manifestCompiler = new SomaManifestCompiler();
|
|
@@ -7709,7 +7709,7 @@ var SomaRuntimeBuilder = class {
|
|
|
7709
7709
|
}
|
|
7710
7710
|
};
|
|
7711
7711
|
|
|
7712
|
-
// core/infra/auth/TokenAuthService.ts
|
|
7712
|
+
// core/client/infra/auth/TokenAuthService.ts
|
|
7713
7713
|
var TOKEN_KEY = "soma_auth_token";
|
|
7714
7714
|
var TOKEN_EXPIRY_KEY = "soma_auth_token_expiry";
|
|
7715
7715
|
var USER_NAME_KEY = "soma_user_name";
|
|
@@ -7794,7 +7794,7 @@ var TokenAuthService = class {
|
|
|
7794
7794
|
}
|
|
7795
7795
|
};
|
|
7796
7796
|
|
|
7797
|
-
// core/infra/config/SomaConfig.ts
|
|
7797
|
+
// core/client/infra/config/SomaConfig.ts
|
|
7798
7798
|
var SomaConfig = class {
|
|
7799
7799
|
constructor() {
|
|
7800
7800
|
this.data = {};
|
|
@@ -7857,7 +7857,7 @@ var SomaConfig = class {
|
|
|
7857
7857
|
}
|
|
7858
7858
|
};
|
|
7859
7859
|
|
|
7860
|
-
// core/infra/event-bus/SomaEventBus.ts
|
|
7860
|
+
// core/client/infra/event-bus/SomaEventBus.ts
|
|
7861
7861
|
var SomaEventBus = class {
|
|
7862
7862
|
constructor() {
|
|
7863
7863
|
this.handlers = /* @__PURE__ */ new Map();
|
|
@@ -7903,7 +7903,7 @@ var SomaEventBus = class {
|
|
|
7903
7903
|
}
|
|
7904
7904
|
};
|
|
7905
7905
|
|
|
7906
|
-
// core/infra/http/SomaHttpService.ts
|
|
7906
|
+
// core/client/infra/http/SomaHttpService.ts
|
|
7907
7907
|
var SomaHttpService = class {
|
|
7908
7908
|
constructor(config) {
|
|
7909
7909
|
this.abortControllers = /* @__PURE__ */ new Set();
|
|
@@ -8049,7 +8049,7 @@ var SomaHttpService = class {
|
|
|
8049
8049
|
}
|
|
8050
8050
|
};
|
|
8051
8051
|
|
|
8052
|
-
// core/infra/i18n/DefaultI18n.ts
|
|
8052
|
+
// core/client/infra/i18n/DefaultI18n.ts
|
|
8053
8053
|
var DefaultI18n = class {
|
|
8054
8054
|
constructor() {
|
|
8055
8055
|
this.messages = {};
|
|
@@ -8074,7 +8074,7 @@ var DefaultI18n = class {
|
|
|
8074
8074
|
}
|
|
8075
8075
|
};
|
|
8076
8076
|
|
|
8077
|
-
// core/infra/logger/ConsoleLogger.ts
|
|
8077
|
+
// core/client/infra/logger/ConsoleLogger.ts
|
|
8078
8078
|
var LEVEL_PRIORITY = {
|
|
8079
8079
|
debug: 0,
|
|
8080
8080
|
info: 1,
|
|
@@ -8143,7 +8143,7 @@ var ConsoleLogger = class {
|
|
|
8143
8143
|
}
|
|
8144
8144
|
};
|
|
8145
8145
|
|
|
8146
|
-
// core/infra/notify/DefaultNotifyService.ts
|
|
8146
|
+
// core/client/infra/notify/DefaultNotifyService.ts
|
|
8147
8147
|
var DefaultNotifyService = class {
|
|
8148
8148
|
constructor() {
|
|
8149
8149
|
/** All toasts received, newest last. */
|
|
@@ -8165,7 +8165,7 @@ var DefaultNotifyService = class {
|
|
|
8165
8165
|
}
|
|
8166
8166
|
};
|
|
8167
8167
|
|
|
8168
|
-
// core/infra/notify/DomNotifyService.ts
|
|
8168
|
+
// core/client/infra/notify/DomNotifyService.ts
|
|
8169
8169
|
var ROOT_ID = "soma-toast-root";
|
|
8170
8170
|
var DomNotifyService = class extends DefaultNotifyService {
|
|
8171
8171
|
constructor(theme) {
|
|
@@ -8249,14 +8249,14 @@ ${message}` : message;
|
|
|
8249
8249
|
}
|
|
8250
8250
|
};
|
|
8251
8251
|
|
|
8252
|
-
// core/infra/notify/INotifyTheme.ts
|
|
8252
|
+
// core/client/infra/notify/INotifyTheme.ts
|
|
8253
8253
|
function isToastTheme(value) {
|
|
8254
8254
|
if (!value || typeof value !== "object") return false;
|
|
8255
8255
|
const t = value;
|
|
8256
8256
|
return typeof t.root === "string" && typeof t.item === "string" && typeof t.visible === "string" && typeof t.leaving === "string" && typeof t.levels?.info === "string";
|
|
8257
8257
|
}
|
|
8258
8258
|
|
|
8259
|
-
// core/infra/permission/SomaPermission.ts
|
|
8259
|
+
// core/client/infra/permission/SomaPermission.ts
|
|
8260
8260
|
var SomaPermission = class {
|
|
8261
8261
|
constructor() {
|
|
8262
8262
|
this.roles = /* @__PURE__ */ new Set();
|
|
@@ -8292,7 +8292,7 @@ var SomaPermission = class {
|
|
|
8292
8292
|
}
|
|
8293
8293
|
};
|
|
8294
8294
|
|
|
8295
|
-
// core/infra/router/SomaRouter.ts
|
|
8295
|
+
// core/client/infra/router/SomaRouter.ts
|
|
8296
8296
|
var SomaRouter = class {
|
|
8297
8297
|
constructor(initialPath = "/") {
|
|
8298
8298
|
this.guards = /* @__PURE__ */ new Set();
|
|
@@ -8335,7 +8335,7 @@ var SomaRouter = class {
|
|
|
8335
8335
|
}
|
|
8336
8336
|
};
|
|
8337
8337
|
|
|
8338
|
-
// core/infra/storage/MemoryStorageService.ts
|
|
8338
|
+
// core/client/infra/storage/MemoryStorageService.ts
|
|
8339
8339
|
var MemoryStorageService = class {
|
|
8340
8340
|
constructor() {
|
|
8341
8341
|
this.store = /* @__PURE__ */ new Map();
|
|
@@ -8370,7 +8370,7 @@ var MemoryStorageService = class {
|
|
|
8370
8370
|
}
|
|
8371
8371
|
};
|
|
8372
8372
|
|
|
8373
|
-
// core/infra/storage/SessionStorageService.ts
|
|
8373
|
+
// core/client/infra/storage/SessionStorageService.ts
|
|
8374
8374
|
var SessionStorageService = class {
|
|
8375
8375
|
constructor() {
|
|
8376
8376
|
this.fallback = /* @__PURE__ */ new Map();
|
|
@@ -8414,7 +8414,7 @@ var SessionStorageService = class {
|
|
|
8414
8414
|
}
|
|
8415
8415
|
};
|
|
8416
8416
|
|
|
8417
|
-
// core/infra/timer/SomaTimer.ts
|
|
8417
|
+
// core/client/infra/timer/SomaTimer.ts
|
|
8418
8418
|
var idCounter = 0;
|
|
8419
8419
|
function generateId() {
|
|
8420
8420
|
return `timer-${++idCounter}-${Date.now()}`;
|
|
@@ -8511,7 +8511,7 @@ var SomaTimer = class {
|
|
|
8511
8511
|
}
|
|
8512
8512
|
};
|
|
8513
8513
|
|
|
8514
|
-
// core/infra/realtime/SseRealtimeTransport.ts
|
|
8514
|
+
// core/client/infra/realtime/SseRealtimeTransport.ts
|
|
8515
8515
|
var SseRealtimeTransport = class {
|
|
8516
8516
|
constructor() {
|
|
8517
8517
|
this.kind = "sse";
|
|
@@ -8544,7 +8544,7 @@ var SseRealtimeTransport = class {
|
|
|
8544
8544
|
}
|
|
8545
8545
|
};
|
|
8546
8546
|
|
|
8547
|
-
// core/infra/realtime/WebSocketRealtimeTransport.ts
|
|
8547
|
+
// core/client/infra/realtime/WebSocketRealtimeTransport.ts
|
|
8548
8548
|
var WebSocketRealtimeTransport = class {
|
|
8549
8549
|
constructor(options) {
|
|
8550
8550
|
this.kind = "websocket";
|
|
@@ -8626,7 +8626,7 @@ var WebSocketRealtimeTransport = class {
|
|
|
8626
8626
|
}
|
|
8627
8627
|
};
|
|
8628
8628
|
|
|
8629
|
-
// core/infra/realtime/SomaRealtimeService.ts
|
|
8629
|
+
// core/client/infra/realtime/SomaRealtimeService.ts
|
|
8630
8630
|
var SomaRealtimeService = class {
|
|
8631
8631
|
constructor(options) {
|
|
8632
8632
|
this.active = /* @__PURE__ */ new Set();
|
|
@@ -8697,7 +8697,7 @@ var SomaRealtimeService = class {
|
|
|
8697
8697
|
}
|
|
8698
8698
|
};
|
|
8699
8699
|
|
|
8700
|
-
// core/runtime/SomaRuntimeServices.ts
|
|
8700
|
+
// core/client/runtime/SomaRuntimeServices.ts
|
|
8701
8701
|
function createDefaultRuntimeServices(options) {
|
|
8702
8702
|
const config = new SomaConfig();
|
|
8703
8703
|
if (options?.appConfig && typeof options.appConfig === "object") {
|
|
@@ -8752,7 +8752,7 @@ function createDefaultRuntimeServices(options) {
|
|
|
8752
8752
|
};
|
|
8753
8753
|
}
|
|
8754
8754
|
|
|
8755
|
-
// core/engine/soma-bootstrap.ts
|
|
8755
|
+
// core/client/engine/soma-bootstrap.ts
|
|
8756
8756
|
var SomaBootstrap = class {
|
|
8757
8757
|
constructor(options = {}) {
|
|
8758
8758
|
this.runtimeBuilder = new SomaRuntimeBuilder();
|
|
@@ -9037,7 +9037,7 @@ var SomaBootstrap = class {
|
|
|
9037
9037
|
}
|
|
9038
9038
|
};
|
|
9039
9039
|
|
|
9040
|
-
// core/compiler/soma-precompile.ts
|
|
9040
|
+
// core/build/compiler/soma-precompile.ts
|
|
9041
9041
|
function precompileUiYaml(yamlStr) {
|
|
9042
9042
|
const raw = yaml.load(yamlStr);
|
|
9043
9043
|
const uiConfig = parseUiConfig(raw);
|
|
@@ -9069,7 +9069,7 @@ function precompileYaml(yamlStr) {
|
|
|
9069
9069
|
return JSON.stringify(obj ?? {});
|
|
9070
9070
|
}
|
|
9071
9071
|
|
|
9072
|
-
// core/compiler/rollup-plugin-soma.ts
|
|
9072
|
+
// core/build/compiler/rollup-plugin-soma.ts
|
|
9073
9073
|
function somaRollupPlugin(options = {}) {
|
|
9074
9074
|
const uiSuffix = options.uiSuffix ?? "_ui.yaml";
|
|
9075
9075
|
const eventSuffix = options.eventSuffix ?? "_event.yaml";
|
|
@@ -9098,7 +9098,7 @@ function somaRollupPlugin(options = {}) {
|
|
|
9098
9098
|
};
|
|
9099
9099
|
}
|
|
9100
9100
|
|
|
9101
|
-
// core/quality/SomaQualityRegistry.ts
|
|
9101
|
+
// core/client/quality/SomaQualityRegistry.ts
|
|
9102
9102
|
var SomaQualityRegistry = class _SomaQualityRegistry {
|
|
9103
9103
|
static {
|
|
9104
9104
|
this.qualityPillars = [
|
|
@@ -9140,7 +9140,7 @@ var SomaQualityRegistry = class _SomaQualityRegistry {
|
|
|
9140
9140
|
}
|
|
9141
9141
|
};
|
|
9142
9142
|
|
|
9143
|
-
// core/container/ReactNativeContainerAdapter.ts
|
|
9143
|
+
// core/client/container/ReactNativeContainerAdapter.ts
|
|
9144
9144
|
var ReactNativeContainerAdapter = class {
|
|
9145
9145
|
constructor() {
|
|
9146
9146
|
this.platform = "react-native";
|
|
@@ -9286,7 +9286,7 @@ var ReactNativeContainerAdapter = class {
|
|
|
9286
9286
|
}
|
|
9287
9287
|
};
|
|
9288
9288
|
|
|
9289
|
-
// core/container/MiniProgramContainerAdapter.ts
|
|
9289
|
+
// core/client/container/MiniProgramContainerAdapter.ts
|
|
9290
9290
|
var MiniProgramContainerAdapter = class {
|
|
9291
9291
|
constructor(host) {
|
|
9292
9292
|
this.platform = "miniprogram";
|
|
@@ -9427,7 +9427,7 @@ var MiniProgramContainerAdapter = class {
|
|
|
9427
9427
|
}
|
|
9428
9428
|
};
|
|
9429
9429
|
|
|
9430
|
-
// core/middleware/createPermissionMiddleware.ts
|
|
9430
|
+
// core/client/middleware/createPermissionMiddleware.ts
|
|
9431
9431
|
function createPermissionMiddleware(getServices) {
|
|
9432
9432
|
return async (context, next) => {
|
|
9433
9433
|
const services = getServices();
|
|
@@ -9445,7 +9445,7 @@ function createPermissionMiddleware(getServices) {
|
|
|
9445
9445
|
};
|
|
9446
9446
|
}
|
|
9447
9447
|
|
|
9448
|
-
// core/host/resolve-host-bootstrap.ts
|
|
9448
|
+
// core/client/host-bridge/resolve-host-bootstrap.ts
|
|
9449
9449
|
async function resolveHostBootstrapOptions(getServices) {
|
|
9450
9450
|
try {
|
|
9451
9451
|
const mod = await import(
|
|
@@ -9460,7 +9460,7 @@ async function resolveHostBootstrapOptions(getServices) {
|
|
|
9460
9460
|
return {};
|
|
9461
9461
|
}
|
|
9462
9462
|
|
|
9463
|
-
// core/host/soma-domain-loaders.ts
|
|
9463
|
+
// core/client/host-bridge/soma-domain-loaders.ts
|
|
9464
9464
|
function createSomaDomainLoaderKey(sourcePackage, base) {
|
|
9465
9465
|
return sourcePackage ? `${sourcePackage}:${base}` : `host:${base}`;
|
|
9466
9466
|
}
|
|
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// core/diagnostics/SomaTelemetry.ts
|
|
20
|
+
// core/client/diagnostics/SomaTelemetry.ts
|
|
21
21
|
var SomaTelemetry_exports = {};
|
|
22
22
|
__export(SomaTelemetry_exports, {
|
|
23
23
|
SomaTelemetry: () => SomaTelemetry
|