@elurjs/universal 0.1.15 → 0.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/README.md +24 -8
- package/cli/add-platform.mjs +121 -0
- package/cli/commands.mjs +11 -6
- package/cli/create-app.mjs +110 -190
- package/cli/dev.mjs +17 -21
- package/cli/doctor.mjs +144 -122
- package/cli/elur.mjs +112 -34
- package/cli/gen-es5.mjs +4 -2
- package/cli/gen-hbc.mjs +3 -5
- package/cli/gen-host-integration.mjs +26 -11
- package/cli/gen-signals.mjs +3 -2
- package/cli/gen-worklet-src.mjs +9 -1
- package/cli/lib-platforms.d.mts +18 -0
- package/cli/lib-platforms.mjs +338 -0
- package/cli/package-linux.mjs +8 -4
- package/cli/sync-platform-packages.mjs +153 -0
- package/docs/INSTALACION-Y-DEV.md +77 -102
- package/docs/doc-data.json +34 -14
- package/package.json +14 -33
- package/docs/AUDITORIA-STATE-OF-THE-ART-2026-11.md +0 -981
- package/docs/PENDIENTES.md +0 -1511
- package/docs/adr/0013-transiciones-navegacion.md +0 -169
- package/docs/adr/0014-list-renderitem-factory.md +0 -41
- package/docs/adr/0015-dl-header-versionado.md +0 -57
- package/docs/adr/0016-hermes-v1-runtime.md +0 -78
- package/docs/adr/0017-encoder-nativo-dl.md +0 -62
- package/docs/adr/0018-yoga-tree-nativo.md +0 -78
- package/docs/adr/0019-ssr-universal-hidratacion.md +0 -245
- package/docs/adr/0020-canvas-draw-list.md +0 -65
- package/docs/adr/0021-text-input-props.md +0 -55
- package/docs/adr/0022-deep-links.md +0 -49
- package/docs/adr/0023-animacion-declarativa.md +0 -130
- package/docs/adr/0024-estilos-reactivos-vocabulario.md +0 -100
- package/docs/adr/0025-worklets-contrato-runner.md +0 -181
- package/docs/adr/0026-threading-js-dedicado.md +0 -94
- package/docs/adr/0027-ui-array-children-y-scope-por-fila.md +0 -58
- package/docs/adr/0028-commit-por-frame-en-host-embebido.md +0 -93
- package/docs/adr/0029-render-commit-latest-wins-screenhost.md +0 -62
- package/docs/adr/0030-destruccion-recursiva-ids-monotonicos.md +0 -79
- package/docs/adr/0031-scopes-formales-pool-filas.md +0 -76
- package/docs/adr/0032-nav-commit-autoritativo.md +0 -64
- package/docs/adr/0033-lista-virtual-ventana.md +0 -80
- package/docs/adr/0034-attach-event-class-strict-styles.md +0 -89
- package/docs/adr/0035-pipeline-imagenes-acotado.md +0 -133
- package/docs/adr/0036-data-por-entry-spa.md +0 -91
- package/docs/adr/0037-ir-serializable-factories-por-id.md +0 -73
- package/docs/adr/0038-transform-keys-compositor.md +0 -79
- package/docs/adr/0039-destroy-postorder-scope-ownership.md +0 -86
- package/docs/adr/0040-outbound-barriers-overflow-ack.md +0 -60
- package/docs/adr/0041-diff-treap-ir-version-strict.md +0 -65
- package/docs/adr/0042-data-endpoint-seguridad-hasloader.md +0 -67
- package/docs/adr/0043-aplicador-dom-unico.md +0 -70
- package/docs/adr/0044-descriptor-runtime-explicito.md +0 -80
- package/docs/adr/0045-navstate-versionado-scroll-settle.md +0 -72
- package/docs/adr/0046-harness-build-fail-closed.md +0 -99
- package/docs/adr/0047-envelope-evento-normalizado.md +0 -110
- package/docs/adr/0048-sesion-embebida-estados.md +0 -91
- package/docs/adr/0049-strict-styles-valores-portables.md +0 -78
- package/docs/adr/0050-update-style-tipado-abi-v5.md +0 -66
- package/docs/adr/0051-plugin-sdk-comandos.md +0 -65
- package/docs/adr/0052-benchmarks-reproducibles.md +0 -50
- package/docs/adr/0053-fling-target-pool-estructural.md +0 -105
- package/docs/adr/0054-lista-nativa-render-policy.md +0 -130
- package/docs/adr/0055-cesm-core.md +0 -143
- package/docs/adr/0056-dos-ejes-superficie-vs-propietario-de-ventana.md +0 -112
- package/docs/adr/0057-reset-node-y-firma-de-reciclaje.md +0 -95
- package/docs/adr/0058-rollback-de-montaje.md +0 -83
- package/docs/adr/0059-traza-on-device-u01-y-scroll-unico-productor.md +0 -89
- package/docs/adr/0060-list-update-patch-por-campo.md +0 -73
- package/docs/adr/0061-elegibilidad-de-plantilla-nativa.md +0 -70
- package/docs/adr/0062-invalidacion-adapter-lista-nativa.md +0 -77
- package/docs/adr/0063-autoridad-eventos-y-scroll.md +0 -66
- package/docs/adr/0064-admision-unica-de-commits.md +0 -66
- package/docs/adr/0065-runtime-de-sesion-u11.md +0 -97
- package/docs/adr/0066-perfil-layout-y-safe-area.md +0 -78
- package/docs/adr/0067-sesion-robusta-y-procedencia-de-build.md +0 -121
- package/docs/adr/0068-metodologia-de-benchmark-y-carril-verificable.md +0 -94
- package/docs/adr/0069-schema-de-wire-y-corpus-comun-de-codecs.md +0 -126
- package/docs/adr/0070-modelo-publico-de-aplicacion-y-mount.md +0 -91
- package/docs/adr/0071-image-service-y-tck-de-plataforma.md +0 -133
- package/docs/adr/0072-par-compilador-runtime-hermes.md +0 -62
- package/docs/adr/0073-corpus-de-semantica-y-lowering-por-motor.md +0 -67
- package/docs/adr/0074-perfil-i18n-formateo-dom-free.md +0 -85
- package/docs/adr/0075-back-predictivo-restore-y-layout-adaptativo.md +0 -126
- package/docs/adr/0076-contrato-de-modulos-capa-1.md +0 -159
- package/docs/adr/0077-manifest-de-plugin-y-plugin-sync.md +0 -109
- package/docs/adr/0078-extraccion-de-i18n-a-paquete-propio.md +0 -114
- package/docs/adr/0079-handles-de-host-objects-por-epoch.md +0 -96
- package/docs/adr/0080-platform-views-por-contrato.md +0 -93
- package/docs/adr/0081-codegen-del-dsl-de-modulos.md +0 -118
- package/docs/adr/0082-variante-web-de-modulos-nativos.md +0 -126
- package/docs/adr/0083-perfiles-dev-release.md +0 -92
- package/docs/adr/0084-instrumentacion-acotada-exportable.md +0 -126
- package/docs/adr/0085-medicion-agrupada-en-main.md +0 -125
- package/docs/adr/0086-matriz-capacidades-props-eventos.md +0 -75
- package/docs/adr/0087-uithread-runner-android.md +0 -271
- package/docs/adr/0088-worklet-src-estatico.md +0 -82
- package/docs/adr/0089-composicion-animaciones-settle-drag.md +0 -122
- package/docs/adr/0090-linter-capturas-build.md +0 -94
- package/docs/adr/0091-router-core-vs-universal.md +0 -74
- package/docs/adr/0092-sharedregion-type-strings.md +0 -59
- package/docs/adr/0093-permission-request-estandar.md +0 -52
- package/docs/adr/0094-dispatch-worker-timeoutms.md +0 -51
- package/docs/adr/0095-tck-modulos.md +0 -65
- package/docs/adr/0096-cesm-ring-deferral.md +0 -47
- package/docs/adr/0097-tooling-diferido.md +0 -51
- package/docs/adr/0098-handshake-moduleabi.md +0 -46
- package/docs/adr/0099-modulos-ambient.md +0 -58
- package/docs/adr/0100-auto-declaracion-modulos.md +0 -43
- package/docs/adr/0101-plataforma-build.md +0 -49
- package/docs/adr/0102-permisos-manifest-build.md +0 -38
- package/docs/adr/0103-registrant-ownership.md +0 -45
- package/docs/adr/0104-toolchain-release.md +0 -125
- package/docs/adr/0105-cesm-ring-mode.md +0 -71
- package/docs/adr/0106-module-observabilidad.md +0 -100
- package/docs/adr/0107-layout-l1-oraculo.md +0 -67
- package/docs/adr/0108-semantica-como-ops.md +0 -69
- package/docs/adr/0109-text-input-composition.md +0 -64
- package/docs/adr/0110-yoga-3-2.md +0 -63
- package/docs/adr/0111-hot-reload-con-estado.md +0 -92
- package/docs/adr/0112-metricas-nativas-reales.md +0 -65
- package/docs/adr/0113-cesm-proyeccion-ampliada.md +0 -80
- package/docs/adr/0114-androidx-deps.md +0 -72
- package/docs/adr/0115-coil-imagenes.md +0 -57
- package/docs/adr/0116-precomputed-text-off-ui.md +0 -49
- package/docs/adr/0117-a11y-state-hint-foco.md +0 -54
- package/docs/adr/0118-yoga-3-2-vocabulario.md +0 -98
- package/docs/adr/0119-codecs-wire-desde-esquema.md +0 -86
- package/docs/adr/0120-unidades-logicas-pointscalefactor.md +0 -73
- package/docs/adr/0121-yoga-filas-lista.md +0 -100
- package/docs/adr/0122-delegado-layout-subarbol.md +0 -140
- package/docs/adr/0123-canvas-sobre-skia-raster.md +0 -101
- package/docs/adr/0124-evaluacion-taffy-css-grid.md +0 -52
- package/docs/adr/0125-paridad-visual-android.md +0 -89
- package/docs/adr/0126-documento-web-metadata-enlaces.md +0 -52
- package/docs/adr/0127-perfil-l1-shorthand-flex-herencia-texto.md +0 -70
- package/docs/adr/0128-pantalla-llena-fragmentos-transparentes.md +0 -56
- package/docs/adr/0129-content-visibility-canvas-unidades-logicas.md +0 -37
- package/docs/adr/0130-expresiones-reactivas-ui.md +0 -55
- package/docs/adr/0131-state-style.md +0 -59
- package/docs/adr/0132-create-theme-system-color-scheme.md +0 -58
- package/docs/adr/0133-navegacion-rutas-href-chrome.md +0 -59
- package/docs/adr/0134-servicios-ambient-modulos-timers.md +0 -63
- package/docs/adr/0135-registro-fuentes.md +0 -67
- package/docs/adr/0136-i18n-zonas-dst-locale-reactivo.md +0 -70
- package/docs/adr/0137-ssg-universal.md +0 -78
- package/docs/adr/0138-plantillas-fila-ui-rowref.md +0 -54
- package/docs/adr/0139-paridad-geometrica-e-inspector.md +0 -63
- package/docs/adr/0140-medida-line-height-css.md +0 -78
- package/docs/adr/0141-build-ssr-autocontenido.md +0 -37
- package/docs/adr/0142-tema-ssr-cookie-client-hint.md +0 -42
- package/docs/adr/0143-paridad-visual-ci.md +0 -51
- package/docs/adr/0144-oraculo-layout-chromium.md +0 -45
- package/docs/adr/0145-admision-opcodes-wire.md +0 -89
- package/docs/adr/0146-presupuesto-divergencias.md +0 -82
- package/docs/adr/0147-spans-texto-enriquecido.md +0 -113
- package/docs/adr/0148-scroll-restore.md +0 -92
- package/docs/adr/0149-gestion-foco.md +0 -94
- package/docs/adr/0150-sticky.md +0 -89
- package/docs/adr/0151-politica-migracion-snapshots.md +0 -83
- package/docs/adr/0152-vocabulario-semantico-v3.md +0 -112
- package/docs/adr/0153-puerta-doc-codigo.md +0 -59
- package/docs/adr/0154-matriz-paridad.md +0 -79
- package/docs/adr/0155-rtl-ambiente.md +0 -73
- package/docs/adr/0156-quickjs-ng-0170.md +0 -55
- package/docs/adr/0157-qjsc-bytecode-android.md +0 -73
- package/docs/adr/0158-abi-host-explicita.md +0 -62
- package/docs/adr/0159-entrada-desktop.md +0 -59
- package/docs/adr/0160-port-linux-hallazgos-plataforma.md +0 -91
- package/docs/adr/0161-paridad-deeplink-alineacion-estructural.md +0 -76
- package/docs/adr/0162-fontscale-linux-fuentes.md +0 -63
- package/docs/adr/0163-overflow-hidden-linux-clip.md +0 -67
- package/docs/adr/0164-nav-transitions-linux.md +0 -126
- package/docs/adr/0165-transiciones-declarativas.md +0 -147
- package/docs/adr/0166-ime-composition-linux.md +0 -68
- package/docs/adr/0167-spans-pango-linux.md +0 -80
- package/docs/adr/0168-statestyle-linux.md +0 -65
- package/docs/adr/0169-animate-linux.md +0 -114
- package/docs/adr/0170-image-service-linux.md +0 -54
- package/docs/adr/0171-semantics-atspi-linux.md +0 -80
- package/docs/adr/0172-conformidad-de-host-por-terceros.md +0 -159
- package/docs/adr/0173-licencias-espec-y-codigo.md +0 -95
- package/docs/adr/0174-tabla-estilo-yoga-compartida.md +0 -67
- package/docs/adr/0175-easings-normativos-cubic-bezier.md +0 -68
- package/docs/adr/0176-harness-plataforma-linux-y-locale-decimal.md +0 -80
- package/docs/adr/0177-gaps-linux-dir-as-navstate.md +0 -84
- package/docs/adr/0178-matriz-linux-y-tablas-normativas-generadas.md +0 -104
- package/docs/adr/0179-eventos-gesto-y-teclado.md +0 -132
- package/docs/adr/0180-desktop-nativo-linux-windows-macos-chromeos.md +0 -58
- package/docs/adr/0181-linux-platform-views-uiworklet-y-gaps-certificados.md +0 -101
- package/docs/adr/0182-sdui-envelope-dialecto-rico-y-lowering.md +0 -452
- package/docs/adr/0183-hermes-es6-block-scoping-en-source-eval.md +0 -99
- package/docs/adr/0184-sdui-consumidor-de-referencia-y-modulo-http.md +0 -72
- package/docs/adr/0185-sdui-modelo-de-seguridad-del-envelope.md +0 -160
- package/docs/adr/0186-linux-packaging-deb-rpm-flatpak.md +0 -61
- package/docs/adr/0187-modelo-de-hilos-ejecutores-logicos.md +0 -163
- package/docs/adr/0188-sdui-seguridad-hardening.md +0 -214
- package/docs/adr/0189-worklets-web-worker-y-egreso-pinning.md +0 -235
- package/docs/adr/0190-semantics-actions-linux-via-gaction-muxer.md +0 -102
- package/docs/adr/0191-reporte-de-errores-en-produccion.md +0 -126
- package/docs/adr/0192-source-maps-y-simbolizacion-de-stacks.md +0 -107
- package/docs/adr/0193-renderer-skia-opt-in-en-linux.md +0 -143
- package/docs/adr/0194-superficie-declarada-y-carril-skia-tree.md +0 -96
- package/docs/adr/0195-bundles-embebidos-subpaths-core.md +0 -66
- package/docs/adr/0196-matriz-capacidades-verdad.md +0 -84
- package/docs/adr/0197-entorno-reactivo-cableado.md +0 -67
- package/docs/adr/0198-csprng-host-wintertc.md +0 -57
- package/docs/adr/0199-testing-harness-dom-free.md +0 -59
- package/docs/adr/0200-overlays-back-foco.md +0 -84
- package/docs/adr/0201-paridad-nativa-props-texto-fase1.md +0 -79
- package/docs/adr/0202-node-ref-measure-web.md +0 -61
- package/docs/adr/0203-primitivas-headless.md +0 -54
- package/docs/adr/0204-imagen-load-error-fallback.md +0 -123
- package/docs/adr/0205-primitivas-controls-fase2.md +0 -79
- package/docs/adr/0206-a2ui-catalogo-tabs-modal-choicepicker-icon.md +0 -110
- package/docs/adr/0207-a2ui-superficie-viva.md +0 -104
- package/docs/adr/0208-a2ui-checks-validacion.md +0 -94
- package/docs/adr/0209-loaddata-nativo-default.md +0 -56
- package/docs/adr/0210-primitivas-navegacion-fase3.md +0 -69
- package/docs/adr/0211-a2ui-formato-localizado.md +0 -113
- package/docs/adr/0212-red-fuera-del-core.md +0 -67
- package/docs/adr/0213-dev-fast-y-rutas-automaticas.md +0 -68
- package/docs/adr/0214-dev-web-server-reload.md +0 -55
- package/docs/adr/0215-ui-host-noderef-back-http-linux.md +0 -77
- package/docs/adr/0216-paridad-nativa-switch-scroll-lista.md +0 -53
- package/docs/adr/0217-overlays-drag-y-popover-anclado.md +0 -64
- package/docs/adr/0218-sdui-gateway-live-mcp-y-scaffold.md +0 -32
- package/docs/adr/0219-event-ref-envelope-y-oracle-scroll-aware.md +0 -82
- package/docs/adr/0220-target-windows-winui3.md +0 -331
- package/docs/adr/0221-shell-tabs-desktop-normativa.md +0 -45
- package/docs/adr/0222-a2ui-v1-dialecto-por-superficie.md +0 -109
- package/docs/adr/README.md +0 -230
- package/docs/deuda/i18n-libreria-separada.md +0 -50
- package/docs/propuestas/dx-y-paridad.md +0 -684
- package/docs/propuestas/investigacion-apps-completas/PENDIENTES-CORE-APPS-COMPLETAS.md +0 -226
- package/docs/propuestas/investigacion-apps-completas/arquitectura-motor-videojuegos-elur.md +0 -254
- package/docs/propuestas/investigacion-apps-completas/auditoria-paridad-frameworks-y-sdui.md +0 -295
- package/docs/propuestas/investigacion-apps-completas/ciclo-de-vida-dx-y-apps-completas.md +0 -394
- package/docs/propuestas/investigacion-apps-completas/crear-proyecto-desde-npm-y-agentes.md +0 -477
- package/docs/propuestas/investigacion-apps-completas/especificacion-arquitectura-capacidades-faltantes.md +0 -407
- package/docs/propuestas/investigacion-apps-completas/identidad-y-nombre-elur-universal.md +0 -133
- package/docs/propuestas/investigacion-apps-completas/migracion-elur-core-4.md +0 -266
- package/docs/propuestas/investigacion-apps-completas/sdui-a2ui-aplicaciones-completas.md +0 -255
- package/docs/propuestas/investigacion-apps-completas/verificacion-mejoras-y-brechas-nuevas.md +0 -228
- package/docs/propuestas/modelo-de-consumo.md +0 -287
- package/docs/propuestas/modulos-nativos.md +0 -1062
- package/docs/propuestas/palabras-clave-normativas.md +0 -69
- package/docs/propuestas/sdui-seguridad-hardening.md +0 -322
- package/docs/propuestas/skia-graphite.md +0 -167
- package/docs/propuestas/skia-renderer-arbol.md +0 -603
- package/docs/propuestas/targets-nativos-nuevos.md +0 -359
- package/docs/propuestas/toolchain-y-distribucion.md +0 -311
- package/docs/propuestas/ui-worklet-capacidades-exclusivas.md +0 -114
- package/examples/a11ylive/elur.app.json +0 -8
- package/examples/a11ylive/entry.ts +0 -22
- package/examples/a11ysem/elur.app.json +0 -8
- package/examples/a11ysem/entry.ts +0 -24
- package/examples/anim/elur.app.json +0 -8
- package/examples/anim/entry.ts +0 -50
- package/examples/app.ts +0 -10
- package/examples/cliprad/elur.app.json +0 -8
- package/examples/cliprad/entry.ts +0 -16
- package/examples/controls/app.ts +0 -32
- package/examples/controls/elur.app.json +0 -8
- package/examples/counter/app.ts +0 -21
- package/examples/counter/elur.app.json +0 -8
- package/examples/counter/entry.ts +0 -7
- package/examples/entry.ts +0 -11
- package/examples/feedstress/app.ts +0 -334
- package/examples/feedstress/elur.app.json +0 -8
- package/examples/feedstress/entry.ts +0 -7
- package/examples/i18n/app.ts +0 -86
- package/examples/i18n/elur.app.json +0 -8
- package/examples/i18n/entry.ts +0 -22
- package/examples/imecomp/elur.app.json +0 -8
- package/examples/imecomp/entry.ts +0 -41
- package/examples/imgtest/elur.app.json +0 -8
- package/examples/imgtest/entry.ts +0 -18
- package/examples/mareas/app/ajustes/page.ts +0 -54
- package/examples/mareas/app/page.ts +0 -91
- package/examples/mareas/app/puerto/[id]/page.ts +0 -106
- package/examples/mareas/app.ts +0 -12
- package/examples/mareas/elur.app.json +0 -35
- package/examples/mareas/entry.ts +0 -11
- package/examples/mareas/fonts/DejaVuSansMono-Bold.ttf +0 -0
- package/examples/mareas/fonts/DejaVuSansMono.ttf +0 -0
- package/examples/mareas/fonts/DejaVuSerif-Bold.ttf +0 -0
- package/examples/mareas/fonts/DejaVuSerif-Italic.ttf +0 -0
- package/examples/mareas/fonts/DejaVuSerif.ttf +0 -0
- package/examples/mareas/fonts/LICENSE-DejaVu.txt +0 -187
- package/examples/mareas/fonts.ts +0 -6
- package/examples/mareas/head.ts +0 -12
- package/examples/mareas/i18n.ts +0 -163
- package/examples/mareas/ports.ts +0 -131
- package/examples/mareas/routes.gen.ts +0 -44
- package/examples/mareas/serve.ts +0 -70
- package/examples/mareas/services.ts +0 -5
- package/examples/mareas/services.web.ts +0 -6
- package/examples/mareas/state.ts +0 -64
- package/examples/mareas/theme.ts +0 -56
- package/examples/mareas/ui/controls.ts +0 -42
- package/examples/mareas/ui/frame.ts +0 -63
- package/examples/mareas/ui/marigram.ts +0 -52
- package/examples/masonry/app.ts +0 -32
- package/examples/masonry/elur.app.json +0 -8
- package/examples/masonry/entry.ts +0 -4
- package/examples/natprobe/elur.app.json +0 -8
- package/examples/natprobe/entry-a11y.ts +0 -52
- package/examples/natprobe/entry-tinput.ts +0 -73
- package/examples/natprobe/entry-tml.ts +0 -46
- package/examples/natprobe/entry.ts +0 -285
- package/examples/navdemo/app.ts +0 -109
- package/examples/navdemo/elur.app.json +0 -8
- package/examples/navdemo/entry.ts +0 -7
- package/examples/navtrans/elur.app.json +0 -8
- package/examples/navtrans/entry.ts +0 -53
- package/examples/platformview/app.ts +0 -26
- package/examples/platformview/elur.app.json +0 -8
- package/examples/sdui-demo/docs/home.envelope.json +0 -588
- package/examples/sdui-demo/docs/home.iife.json +0 -582
- package/examples/sdui-demo/elur.app.json +0 -8
- package/examples/sdui-demo/entry.ts +0 -346
- package/examples/select/elur.app.json +0 -8
- package/examples/select/entry.ts +0 -20
- package/examples/skiacanvas/app.ts +0 -34
- package/examples/skiacanvas/elur.app.json +0 -8
- package/examples/skiacanvas/entry.ts +0 -4
- package/examples/spans/elur.app.json +0 -8
- package/examples/spans/entry.ts +0 -28
- package/examples/ssr/app/about/page.ts +0 -18
- package/examples/ssr/app/items/[id]/page.ts +0 -16
- package/examples/ssr/app/layout.ts +0 -21
- package/examples/ssr/app/page.action.ts +0 -10
- package/examples/ssr/app/page.data.ts +0 -5
- package/examples/ssr/app/page.ts +0 -95
- package/examples/ssr/app/slow/loading.ts +0 -10
- package/examples/ssr/app/slow/page.data.ts +0 -4
- package/examples/ssr/app/slow/page.ts +0 -16
- package/examples/ssr/app/store.ts +0 -3
- package/examples/ssr/serve.ts +0 -53
- package/examples/statestyle/elur.app.json +0 -8
- package/examples/statestyle/entry.ts +0 -25
- package/examples/swipe/elur.app.json +0 -8
- package/examples/swipe/entry.ts +0 -39
- package/examples/tasks/app.ts +0 -145
- package/examples/tasks/elur.app.json +0 -8
- package/examples/uiprops/elur.app.json +0 -8
- package/examples/uiprops/entry.ts +0 -65
- package/examples/uiwk/app.ts +0 -288
- package/examples/uiwk/elur.app.json +0 -8
- package/examples/uiwk/entry.ts +0 -7
- package/examples/vertical/app.ts +0 -275
- package/examples/vertical/elur.app.json +0 -8
- package/examples/vertical/entry.ts +0 -31
- package/examples/yogafeatures/app.ts +0 -55
- package/examples/yogafeatures/elur.app.json +0 -8
- package/examples/yogafeatures/entry.ts +0 -4
- package/native/cesm/tests/CMakeLists.txt +0 -50
- package/native/cesm/tests/README.md +0 -89
- package/native/cesm/tests/compile_check_hermes.cpp +0 -23
- package/native/cesm/tests/test_core.cpp +0 -101
- package/native/cesm/tests/test_main.cpp +0 -13
- package/native/cesm/tests/test_quickjs_adapter.cpp +0 -252
- package/native/cesm/tests/test_ring.cpp +0 -131
- package/native/cesm/tests/test_slots.cpp +0 -81
- package/native/cesm/tests/test_sync.cpp +0 -157
- package/native/cesm/tests/test_util.h +0 -24
- package/targets/android/app/build.gradle.kts +0 -192
- package/targets/android/app/proguard-rules-elur.pro +0 -12
- package/targets/android/app/proguard-rules.pro +0 -3
- package/targets/android/app/src/main/AndroidManifest.xml +0 -81
- package/targets/android/app/src/main/cpp/CMakeLists.txt +0 -117
- package/targets/android/app/src/main/cpp/dlEncoder.h +0 -117
- package/targets/android/app/src/main/cpp/dlEncoderJsi.cpp +0 -315
- package/targets/android/app/src/main/cpp/dlEncoderQjs.cpp +0 -394
- package/targets/android/app/src/main/cpp/dlOps.inc +0 -145
- package/targets/android/app/src/main/cpp/elurBridge.cpp +0 -1350
- package/targets/android/app/src/main/cpp/elurBridgeHermes.cpp +0 -1294
- package/targets/android/app/src/main/cpp/elurSkia.cpp +0 -287
- package/targets/android/app/src/main/cpp/elurSkiaTree.cpp +0 -448
- package/targets/android/app/src/main/cpp/elurUiWorklet.cpp +0 -1233
- package/targets/android/app/src/main/cpp/elurYoga.cpp +0 -1060
- package/targets/android/app/src/main/cpp/elurYoga.h +0 -82
- package/targets/android/app/src/main/cpp/hermes-libs/LICENSE +0 -21
- package/targets/android/app/src/main/cpp/hermes-libs/arm64-v8a/libhermesvm.so +0 -0
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/AsyncDebuggerAPI.h +0 -276
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/CompileJS.h +0 -97
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/DebuggerAPI.h +0 -502
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/CrashManager.h +0 -107
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/CtorConfig.h +0 -145
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/DebuggerTypes.h +0 -193
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/GCConfig.h +0 -211
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/GCTripwireContext.h +0 -40
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/HermesExport.h +0 -14
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/JSOutOfMemoryError.h +0 -27
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/RuntimeConfig.h +0 -141
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/Public/SamplingProfiler.h +0 -270
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/RuntimeTaskRunner.h +0 -64
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/SynthTrace.h +0 -1566
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/SynthTraceParser.h +0 -37
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/ThreadSafetyAnalysis.h +0 -75
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/TimerStats.h +0 -23
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/TraceInterpreter.h +0 -334
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/TracingRuntime.h +0 -328
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/CDPAgent.h +0 -131
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/CDPDebugAPI.h +0 -73
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/CallbackOStream.h +0 -89
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/ConsoleMessage.h +0 -135
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/DebuggerDomainAgent.h +0 -280
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/DebuggerDomainCoordinator.h +0 -137
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/DomainAgent.h +0 -107
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/DomainState.h +0 -140
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/HeapProfilerDomainAgent.h +0 -71
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/JSONValueInterfaces.h +0 -40
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/MessageConverters.h +0 -82
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/MessageInterfaces.h +0 -72
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/MessageTypes.h +0 -1279
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/MessageTypesInlines.h +0 -313
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/ProfilerDomainAgent.h +0 -38
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/RemoteObjectConverters.h +0 -77
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/RemoteObjectsTable.h +0 -127
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/cdp/RuntimeDomainAgent.h +0 -138
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/Dummy.h +0 -24
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/Extensions.h +0 -20
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/ExtensionsBytecode.h +0 -23
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/Intrinsics.h +0 -44
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/JSIUtils.h +0 -123
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/TextEncoder.h +0 -29
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/contrib/ContribDummy.h +0 -24
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/contrib/ContribExtensions.h +0 -23
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/contrib/TextDecoder.h +0 -30
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/extensions/contrib/TextDecoderUtils.h +0 -113
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/hermes.h +0 -242
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes/hermes_tracing.h +0 -52
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_abi/HermesABIHelpers.h +0 -295
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_abi/HermesABIRuntimeWrapper.h +0 -25
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_abi/hermes_abi.h +0 -642
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_abi/hermes_vtable.h +0 -29
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/HermesSandboxRuntime.h +0 -41
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/hermes_sandbox_impl_compiled.h +0 -12
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/hermes_sandbox_impl_dbg_compiled-impl.h +0 -8516
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/hermes_sandbox_impl_dbg_compiled.h +0 -137
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/hermes_sandbox_impl_opt_compiled-impl.h +0 -3945
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/hermes_sandbox_impl_opt_compiled.h +0 -119
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/wasm-rt-fb.h +0 -124
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/wasm-rt-impl.h +0 -66
- package/targets/android/app/src/main/cpp/hermes-libs/include/hermes_sandbox/external/wasm-rt.h +0 -456
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/JSIDynamic.h +0 -26
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/decorator.h +0 -1157
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/hermes-interfaces.h +0 -242
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/instrumentation.h +0 -132
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/jsi-inl.h +0 -434
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/jsi.h +0 -2266
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/jsilib.h +0 -59
- package/targets/android/app/src/main/cpp/hermes-libs/include/jsi/threadsafe.h +0 -79
- package/targets/android/app/src/main/cpp/hermes-libs/jsi-impl/jsi.cpp +0 -1111
- package/targets/android/app/src/main/cpp/hermes-libs/x86_64/libhermesvm.so +0 -0
- package/targets/android/app/src/main/java/com/elur/universal/BinaryCodec.kt +0 -121
- package/targets/android/app/src/main/java/com/elur/universal/DlDecoder.kt +0 -260
- package/targets/android/app/src/main/java/com/elur/universal/DlOpsDecode.kt +0 -158
- package/targets/android/app/src/main/java/com/elur/universal/ElurBoxDrawable.kt +0 -161
- package/targets/android/app/src/main/java/com/elur/universal/ElurBridge.kt +0 -238
- package/targets/android/app/src/main/java/com/elur/universal/ElurBridgeHermes.kt +0 -223
- package/targets/android/app/src/main/java/com/elur/universal/ElurCanvasView.kt +0 -202
- package/targets/android/app/src/main/java/com/elur/universal/ElurCryptoModule.kt +0 -206
- package/targets/android/app/src/main/java/com/elur/universal/ElurCustomLayout.kt +0 -185
- package/targets/android/app/src/main/java/com/elur/universal/ElurEditText.kt +0 -17
- package/targets/android/app/src/main/java/com/elur/universal/ElurFontRegistry.kt +0 -190
- package/targets/android/app/src/main/java/com/elur/universal/ElurHttpModule.kt +0 -306
- package/targets/android/app/src/main/java/com/elur/universal/ElurImageService.kt +0 -348
- package/targets/android/app/src/main/java/com/elur/universal/ElurLicensesActivity.kt +0 -84
- package/targets/android/app/src/main/java/com/elur/universal/ElurListView.kt +0 -954
- package/targets/android/app/src/main/java/com/elur/universal/ElurManifest.kt +0 -117
- package/targets/android/app/src/main/java/com/elur/universal/ElurMetrics.kt +0 -325
- package/targets/android/app/src/main/java/com/elur/universal/ElurModuleRegistrar.kt +0 -14
- package/targets/android/app/src/main/java/com/elur/universal/ElurPermissionGate.kt +0 -36
- package/targets/android/app/src/main/java/com/elur/universal/ElurRenderer.kt +0 -6164
- package/targets/android/app/src/main/java/com/elur/universal/ElurRowYoga.kt +0 -130
- package/targets/android/app/src/main/java/com/elur/universal/ElurScrollView.kt +0 -240
- package/targets/android/app/src/main/java/com/elur/universal/ElurShellView.kt +0 -117
- package/targets/android/app/src/main/java/com/elur/universal/ElurSkiaCanvasView.kt +0 -162
- package/targets/android/app/src/main/java/com/elur/universal/ElurSkiaTreeRenderer.kt +0 -968
- package/targets/android/app/src/main/java/com/elur/universal/ElurStateModule.kt +0 -69
- package/targets/android/app/src/main/java/com/elur/universal/ElurSwipeDriver.kt +0 -34
- package/targets/android/app/src/main/java/com/elur/universal/ElurTckModule.kt +0 -99
- package/targets/android/app/src/main/java/com/elur/universal/ElurTextMeasure.kt +0 -16
- package/targets/android/app/src/main/java/com/elur/universal/ElurTrace.kt +0 -24
- package/targets/android/app/src/main/java/com/elur/universal/ElurUiModule.kt +0 -48
- package/targets/android/app/src/main/java/com/elur/universal/ElurUiWorklet.kt +0 -305
- package/targets/android/app/src/main/java/com/elur/universal/JsBridge.kt +0 -67
- package/targets/android/app/src/main/java/com/elur/universal/JsThread.kt +0 -189
- package/targets/android/app/src/main/java/com/elur/universal/MainActivity.kt +0 -844
- package/targets/android/app/src/main/java/com/elur/universal/ModuleRegistry.kt +0 -701
- package/targets/android/app/src/main/java/com/elur/universal/YogaRowScope.kt +0 -97
- package/targets/android/app/src/main/res/values/ids.xml +0 -10
- package/targets/android/app/src/main/res/values/strings.xml +0 -8
- package/targets/android/app/src/main/res/values-es/strings.xml +0 -5
- package/targets/android/app/src/main/res/xml/network_security_config.xml +0 -10
- package/targets/android/build.gradle.kts +0 -5
- package/targets/android/gradle/libs.versions.toml +0 -12
- package/targets/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/targets/android/gradle/wrapper/gradle-wrapper.properties +0 -8
- package/targets/android/gradle.properties +0 -23
- package/targets/android/gradlew +0 -251
- package/targets/android/gradlew.bat +0 -94
- package/targets/android/settings.gradle.kts +0 -32
- package/targets/linux/CMakeLists.txt +0 -196
- package/targets/linux/README.md +0 -422
- package/targets/linux/ci/tsan.supp +0 -15
- package/targets/linux/generated/elur_module_registrar.cpp +0 -18
- package/targets/linux/generated/module_sources.cmake +0 -7
- package/targets/linux/src/elur_applicator.cpp +0 -5073
- package/targets/linux/src/elur_applicator.h +0 -387
- package/targets/linux/src/elur_clip.cpp +0 -76
- package/targets/linux/src/elur_clip.h +0 -23
- package/targets/linux/src/elur_crypto_module.cpp +0 -121
- package/targets/linux/src/elur_events.h +0 -57
- package/targets/linux/src/elur_fonts.cpp +0 -106
- package/targets/linux/src/elur_fonts.h +0 -31
- package/targets/linux/src/elur_host.cpp +0 -1041
- package/targets/linux/src/elur_host.h +0 -66
- package/targets/linux/src/elur_http_module.cpp +0 -437
- package/targets/linux/src/elur_js.h +0 -40
- package/targets/linux/src/elur_modules.cpp +0 -453
- package/targets/linux/src/elur_modules.h +0 -159
- package/targets/linux/src/elur_renderer.h +0 -46
- package/targets/linux/src/elur_shot.cpp +0 -64
- package/targets/linux/src/elur_shot.h +0 -17
- package/targets/linux/src/elur_skia_a11y.cpp +0 -987
- package/targets/linux/src/elur_skia_a11y.h +0 -146
- package/targets/linux/src/elur_skia_app.cpp +0 -1770
- package/targets/linux/src/elur_skia_app.h +0 -18
- package/targets/linux/src/elur_state_module.cpp +0 -99
- package/targets/linux/src/elur_tck_module.cpp +0 -186
- package/targets/linux/src/elur_ui_module.cpp +0 -84
- package/targets/linux/src/elur_yoga.cpp +0 -452
- package/targets/linux/src/elur_yoga.h +0 -95
- package/targets/linux/src/main.cpp +0 -294
- package/targets/windows/Package.appxmanifest +0 -28
- package/targets/windows/README.md +0 -44
- package/targets/windows/elur-windows.vcxproj +0 -133
- package/targets/windows/packages.config +0 -10
- package/targets/windows/src/elur_crypto_module_win.cpp +0 -106
- package/targets/windows/src/elur_events.h +0 -58
- package/targets/windows/src/elur_host_win.cpp +0 -645
- package/targets/windows/src/elur_host_win.h +0 -75
- package/targets/windows/src/elur_http_module_win.cpp +0 -331
- package/targets/windows/src/elur_js.h +0 -40
- package/targets/windows/src/elur_modules.cpp +0 -460
- package/targets/windows/src/elur_modules.h +0 -159
- package/targets/windows/src/elur_state_module.cpp +0 -99
- package/targets/windows/src/elur_ui_module_win.cpp +0 -75
- package/targets/windows/src/elur_uia_host.h +0 -129
- package/targets/windows/src/elur_win_applicator.cpp +0 -3118
- package/targets/windows/src/elur_win_applicator.h +0 -186
- package/targets/windows/src/elur_yoga.cpp +0 -452
- package/targets/windows/src/elur_yoga.h +0 -95
- package/targets/windows/src/main.cpp +0 -321
|
@@ -1,981 +0,0 @@
|
|
|
1
|
-
# Auditoría completa — Elur Universal frente al estado del arte (2026-11-07)
|
|
2
|
-
|
|
3
|
-
> **Edición 2 (verificación reforzada):** se repitió la prueba P0 con el
|
|
4
|
-
> build real de `examples/mareas` y con Hermes además de QuickJS-ng. Las
|
|
5
|
-
> salidas exactas están en el **Apéndice E**. Se corrigieron dos
|
|
6
|
-
> generalizaciones del primer borrador (el desglose de la matriz y el
|
|
7
|
-
> conteo de archivos de paridad).
|
|
8
|
-
>
|
|
9
|
-
> **Actualización 2026-11-13 — P0 ejecutado:** cerré P0.1 (`gen-bundle`
|
|
10
|
-
> subpaths), P0.2 (matriz honesta + gate), P0.3 (A2UI Image/label/
|
|
11
|
-
> variantes), P0.4 (CSPRNG host-backed), P0.5 (gates doc↔código), P0.6
|
|
12
|
-
> (`elur.app.json` en los 25 ejemplos) y P1.6 (cableado de entorno).
|
|
13
|
-
> Estado verificado: paridad **114/114**, unit **134 archivos / 1.268
|
|
14
|
-
> tests**, typecheck, build Linux, assemble Android (Kotlin + QuickJS +
|
|
15
|
-
> Hermes), `check-divergences` (44/44), `gen-doc-data --check` y
|
|
16
|
-
> `check-doc-sync --check` verdes. Además, `@elurjs/universal/testing`
|
|
17
|
-
> (ADR-0199), `persisted.ready`/`hydrated`, overlays con back/inert/foco
|
|
18
|
-
> (ADR-0200), paridad nativa fase 1 de texto/input (ADR-0201),
|
|
19
|
-
> `NodeRef.measureInWindow` web (ADR-0202), primitivas headless fase 1+2
|
|
20
|
-
> (ADR-0203/0205), `load`/`error`/`fallbackSrc` de imagen (ADR-0204),
|
|
21
|
-
> catálogo A2UI Tabs/Modal/ChoicePicker/Icon (ADR-0206), superficie A2UI
|
|
22
|
-
> viva (ADR-0207), `checks` de validación (ADR-0208), `loadData` nativo
|
|
23
|
-
> por defecto (ADR-0209), primitivas de navegación (ADR-0210), formato
|
|
24
|
-
> A2UI localizado (ADR-0211). Red/offline queda fuera del core
|
|
25
|
-
> (ADR-0212) y el dev loop gana `--dev-fast` + auto `gen-routes` +
|
|
26
|
-
> servidor web/reload (ADR-0213/0214). Las cifras del cuerpo de este
|
|
27
|
-
> documento son el diagnóstico fechado 2026-11-07 y se conservan como
|
|
28
|
-
> evidencia; el estado vigente está en `docs/ESTADO.md`.
|
|
29
|
-
|
|
30
|
-
**Alcance:** `framework/` completo (`src/`, `cli/`, `packages/`, `native/`, `targets/android`, `targets/linux`, `tests/`) más el corpus documental (`docs/`, ADRs, `docs/propuestas/investigacion-apps-completas/`, documento maestro v6.0). No se auditan los repos hermanos (`@elurjs/core`, `@elurjs/kit`, `@elurjs/query`, `@elurjs/auth`, etc.) salvo su integración en este repo.
|
|
31
|
-
|
|
32
|
-
**Método:** lectura del código real, ejecución de los gates del proyecto, reproducción de fallos en QuickJS-ng, contraste con `PENDIENTES-CORE-APPS-COMPLETAS.md` (2026-10-19) y comparación con el estado del arte público a 2026-11-07.
|
|
33
|
-
|
|
34
|
-
**Veredicto en una frase:** la infraestructura de contratos, motores y hosts es de nivel alto y muy por encima de la media; la **capa de aplicación** y la **veracidad de la matriz de capacidades** van por detrás, y hoy existe un **fallo de empaquetado que rompe el runtime embebido** en QuickJS-ng/Hermes. Antes de añadir features hay que cerrar ese fallo, decir la verdad sobre lo implementado y completar la capa de app.
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## 0. Resumen para decidir
|
|
39
|
-
|
|
40
|
-
### 0.1 Los cinco hallazgos que cambian la prioridad
|
|
41
|
-
|
|
42
|
-
| # | Hallazgo | Severidad | Evidencia |
|
|
43
|
-
| --- | --- | --- | --- |
|
|
44
|
-
| 1 | **El bundle embebido rompe las APIs de aplicación.** `gen-bundle.mjs` externaliza `@elurjs/core` y su shim `__require` solo devuelve *signals*. `screen-host` importa `_pushComponentContext`/`_popComponentContext` y los llama en **cada** mount; `forms`, `store`, `plugins` y `context` se emiten como `__require("@elurjs/core/...")`. Resultado: `TypeError: not a function` en QuickJS-ng/Hermes. Reproducido con un entry mínimo; el build real de `examples/mareas` contiene la misma llamada rota. | **P0 — bloquea release** | `cli/gen-bundle.mjs:49-56,120-125`; `src/router/screen-host.ts:10,320-324`; `generated/elurRouter.js:30,592`; `bun run test:parity` → 104/114 OK, 10 FAIL |
|
|
45
|
-
| 2 | **La matriz de capacidades sobredeclara.** 19 props y 5 eventos figuran `exact` en los tres backends: 15 props solo están implementadas en web (una, `columns`, también parcialmente en Android), 2 (`refreshing`, `endReachedThreshold`) no están en ningún backend, 2 (`safeArea`, `keyboardAvoiding`) dependen de insets que ningún host actualiza, y los 5 eventos no se despachan en ningún backend. El validador SDUI y `strictProps` confían en ella, así que un documento puede validar una prop que el host ignora en silencio. | **P0 — integridad del contrato** | `src/ir/schema.ts:701-901,949-974`; `ElurRenderer.kt:2953`; `elur_applicator.cpp:1530`; `src/backends/web/index.ts:1578-1660` |
|
|
46
|
-
| 3 | **La capa de aplicación está a medias.** No existen overlays/portales/back interceptors, primitivas headless, testing harness, `@elurjs/query`, SSE/WebSocket, subida de ficheros, SDUI app-level (`doc.lifecycle/queries/commands/forms/overlays`, `sduiScreen`) ni AG-UI/MCP Apps. | **P1 — apps completas** | `src/` no tiene `overlays/`, `primitives/`, `testing/`; `package.json` no depende de `@elurjs/query`; `src/sdui/envelope.ts` no tiene esas secciones |
|
|
47
|
-
| 4 | **APIs públicas “de papel” (casi cerrado).** `viewport`/`windowInsets`/`reducedMotion` cableados (ADR-0197), `persisted.ready`/`hydrated`, `appState` Linux, `NodeRef.measureInWindow` web (ADR-0202) y `loadData` nativo por defecto (ADR-0209). Queda: medida nativa de NodeRef. | **P1 — DX y correctness** | `src/runtime/environment.ts`; `src/app/load-data.ts`; ADR-0202/0209 |
|
|
48
|
-
| 5 | **Seguridad y gates (corregido).** `crypto.getRandomValues` ya usa CSPRNG host-backed (ADR-0198); `gen-doc-data`/`check-doc-sync` verdes; 25/25 ejemplos con `elur.app.json`. Queda CRL/OCSP y el plan histórico desactualizado (snapshot). | **P1/P2 — gobernanza residual** | `wintertc-globals.ts`; `docs/ESTADO.md` 2026-11-13; `find examples -name elur.app.json` = 25 |
|
|
49
|
-
|
|
50
|
-
### 0.2 Lo que ya está y no hay que rehacer
|
|
51
|
-
|
|
52
|
-
- Contratos versionados y verificados: `IR_VERSION 10`, `DL_ABI_VERSION 11`, `NATIVE_ABI_VERSION 7`, `BRIDGE_ABI_VERSION 1`, `EVENT_CONTRACT_VERSION 5`, `SEMANTICS_VERSION 3`, `SDUI_VERSION 1`, `NAV_STATE_VERSION 1`.
|
|
53
|
-
- 121 archivos / **1.203 tests unitarios verdes**; `tsc --noEmit` verde; 57 archivos de paridad en la corrida actual (5 fallan hoy; el doc-data declara 56 carriles).
|
|
54
|
-
- Reconciliador DOM-free, wire binario, listas virtuales y nativas, router universal, SSR/SSG, hidratación, worklets/CESM, módulos nativos ambient, codegen, TCK, oráculo Yoga, paridad geométrica, source maps, observabilidad.
|
|
55
|
-
- Capa de aplicación de octubre: ciclo de vida (`onMount/onEnter/onLeave`), `appState`, formularios universales, store/context, WinterTC, `fetch` universal, `page.data.ts`/`loading.ts`/`error.ts`, `detachedByTab`, NodeRef (parcial), i18n/kv/location.
|
|
56
|
-
- SDUI/A2UI: envelope firmado, canonical JSON, anti-replay, gateway, downlevel 10→1, ETag/TTL, worklets como dato, máquinas de estado, listas nativas, adaptador A2UI v0.9/v1.0 (ADR-0222), MCP stdio.
|
|
57
|
-
- Linux GTK4 real, packaging AppImage/.deb/RPM/Flatpak, TCK de plataforma, perfil S/D de hilos, Skia tree en Linux, matriz de paridad multi-eje.
|
|
58
|
-
|
|
59
|
-
### 0.3 Veredicto por dimensión
|
|
60
|
-
|
|
61
|
-
| Dimensión | Nota | Comentario |
|
|
62
|
-
| --- | --- | --- |
|
|
63
|
-
| Contratos y runtime | **A** | IR + DL + ABI + versiones + TCK; fallo de empaquetado empaña el resultado |
|
|
64
|
-
| Reconciliador y reactividad | **A** | Transaccional, keyed diff, scopes, listas, worklets |
|
|
65
|
-
| Backend web / SSR | **A−** | DOM real, SSR/SSG, hidratación, streaming; faltan PWA y algunas props |
|
|
66
|
-
| Android | **B+** | Renderer maduro, listas nativas, a11y, IME; props nuevas sin materializar |
|
|
67
|
-
| Linux GTK4 | **B** | Host real y TCK; CESM/canvas/pinch y props nuevas pendientes |
|
|
68
|
-
| SDUI / A2UI | **B** | Base excelente; app-level y catálogo A2UI incompletos |
|
|
69
|
-
| Capa de aplicación | **C+** | Ciclo de vida y forms bien; overlays/data/primitivas/testing ausentes |
|
|
70
|
-
| DX y tooling | **B−** | Build/doctor/visual parity muy buenos; dev loop, templates, assets y testing harness faltan |
|
|
71
|
-
| Ecosistema / plugins | **D** | Solo i18n/kv/location; el resto es trabajo de paquetes |
|
|
72
|
-
| Seguridad | **B** | Firma/anti-replay/grants sólidos; CSPRNG host-backed ya implementado (ADR-0198); CRL/OCSP pendientes |
|
|
73
|
-
| Gobernanza / conformidad | **C** | Licencia y TCK listos; npm publicado + repo público; cero terceros aún |
|
|
74
|
-
|
|
75
|
-
### 0.4 Recomendación estratégica
|
|
76
|
-
|
|
77
|
-
El foso de Elur no es competir con Expo/Flutter en amplitud de ecosistema. Es ser **la única plataforma con un IR universal, SDUI/A2UI nativo y web DOM real bajo el mismo contrato verificable**. La secuencia correcta es:
|
|
78
|
-
|
|
79
|
-
1. **P0 — Hacer que lo que ya existe funcione de verdad** en QuickJS/Hermes y decir la verdad en la matriz.
|
|
80
|
-
2. **P1 — Cerrar la capa de aplicación** (overlays, data, primitivas, testing).
|
|
81
|
-
3. **P2 — Explotar la ventaja agéntica** (AG-UI + MCP Apps + SDUI app-level) y el ciclo comercial (assets/PWA/OTA).
|
|
82
|
-
4. **P3 — Plataformas y escala** (iOS/Windows/macOS, view flattening, first frame, terceros).
|
|
83
|
-
|
|
84
|
-
No se recomienda abrir iOS/Windows ni el renderer Skia completo antes de P0/P1.
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## 1. Evidencia de la verificación (2026-11-07)
|
|
89
|
-
|
|
90
|
-
### 1.1 Comandos ejecutados
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
cd framework
|
|
94
|
-
bun run typecheck # exit 0
|
|
95
|
-
bun run test -- --maxWorkers=2 # 121 files, 1203 tests passed (54.86 s)
|
|
96
|
-
bun run test:parity # 57 files: 52 OK, 5 FAIL; 114 runs: 104 OK, 10 FAIL
|
|
97
|
-
bun cli/check-divergences.mjs # OK: 9 normativas + 25 aproximaciones (presupuesto 25/25)
|
|
98
|
-
bun cli/gen-doc-data.mjs --check # exit 1: doc-data.json desincronizado
|
|
99
|
-
bun cli/check-doc-sync.mjs --check # exit 1: 16 drifts en ../v6-src/part*.md
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### 1.2 Drift de `doc-data.json`
|
|
103
|
-
|
|
104
|
-
`gen-doc-data --check` detectó:
|
|
105
|
-
|
|
106
|
-
```text
|
|
107
|
-
propsCapability: 44 → 64
|
|
108
|
-
eventsCapability: 17 → 22
|
|
109
|
-
universalEvents: 16 → 21
|
|
110
|
-
unitFiles: 117 → 121
|
|
111
|
-
parityLanes: 53 → 56
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
El `docs/doc-data.json` tiene fecha 2026-11-07 pero sus números son anteriores a los cambios del 2026-10-19. Es decir: **el gate doc↔código está rojo** y el documento maestro publicado no refleja el código actual.
|
|
115
|
-
|
|
116
|
-
### 1.3 Fallos de paridad (no son hardware)
|
|
117
|
-
|
|
118
|
-
`bun run test:parity` falla en **5 archivos**, en QuickJS-ng y Hermes:
|
|
119
|
-
|
|
120
|
-
| Archivo | Fallo | Causa inmediata |
|
|
121
|
-
| --- | --- | --- |
|
|
122
|
-
| `tests/parity/data-entry.js` | 3 asserts | `_pushComponentContext is not a function` |
|
|
123
|
-
| `tests/parity/screen-host.js` | `TypeError: not a function`, sin `PARITY-END` | idem |
|
|
124
|
-
| `tests/parity/lifecycle-forms-data.js` | 3 asserts | idem + `@elurjs/core/form` |
|
|
125
|
-
| `tests/parity/transitions.js` | 7 asserts | idem |
|
|
126
|
-
| `tests/parity/mount-embedded.js` | mount de app routed no emite `nav` ni monta `topEntry` | idem |
|
|
127
|
-
|
|
128
|
-
Reproducción mínima:
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
cat > /tmp/context-entry.ts <<'EOF'
|
|
132
|
-
import { provide, inject, createInjectionKey } from ".../src/index.ts";
|
|
133
|
-
const K = createInjectionKey<number>("k");
|
|
134
|
-
provide(K, 42);
|
|
135
|
-
console.log(inject(K));
|
|
136
|
-
EOF
|
|
137
|
-
bun cli/gen-bundle.mjs /tmp/context-entry.ts /tmp/context-entry.js
|
|
138
|
-
qjs --std -I generated/elurSignals.js /tmp/context-entry.js
|
|
139
|
-
# TypeError: not a function
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
El bundle generado contiene:
|
|
143
|
-
|
|
144
|
-
```js
|
|
145
|
-
var __require = function(name) { return { signal: globalThis.signal, ... }; };
|
|
146
|
-
var import_context2 = __require("@elurjs/core/context");
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
El shim no tiene `provide`, `inject`, `createInjectionKey`, ni `_pushComponentContext`. Lo mismo ocurre con `@elurjs/core/form`, `/store` y `/plugins`.
|
|
150
|
-
|
|
151
|
-
**El camino real de build lo confirma** (no solo el harness de paridad):
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
bun cli/elur.mjs build --target linux \
|
|
155
|
-
--app examples/mareas/entry.ts --config examples/mareas/elur.app.json
|
|
156
|
-
# exit 0
|
|
157
|
-
|
|
158
|
-
grep -n '_pushComponentContext\|__require("@elurjs/core/context")' generated/elurApp.js
|
|
159
|
-
# 7757: import_context._pushComponentContext();
|
|
160
|
-
# 8145: import_context = __require("@elurjs/core/context");
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
Es decir: `elur build` termina en verde, pero el artefacto que evalúa QuickJS/Hermes contiene la llamada rota. El test `tests/unit/test-core-boundary.test.ts` no lo detecta porque solo busca fugas DOM (`popstate`, `pushState`, `RouterView`), no `__require` de subpaths.
|
|
164
|
-
|
|
165
|
-
**Por qué no se había visto antes:** el `generated/elurApp.js` que había en el árbol antes de esta auditoría tenía fecha **2026-10-17 23:01**, anterior al cambio del 19-oct que introdujo `@elurjs/core/context`. El APK/bundle que se probó en dispositivo no contenía el import roto. Un build fresco (2026-11-07) sí. Es una regresión de la capa de aplicación de octubre, no un fallo histórico del renderer.
|
|
166
|
-
|
|
167
|
-
**Consecuencia:** cualquier app routed que use `mountApp`/`mountEmbeddedApp` llama `_pushComponentContext()` en `renderEntry`; el bundle de Mareas también contiene el `__require`. En Vitest no se ve porque Vite resuelve el paquete real. En QuickJS/Hermes revienta el mount. Esto invalida hoy la afirmación “paridad 108/108” y es el primer blocker de release.
|
|
168
|
-
|
|
169
|
-
### 1.4 Evidencia de la matriz
|
|
170
|
-
|
|
171
|
-
`src/ir/schema.ts` declara hoy **64 props** y **22 eventos**. De ellos, figuran `exact` en web/android/linux:
|
|
172
|
-
|
|
173
|
-
- Props: `maxLines`, `textOverflow`, `selectable`, `multiline`, `rows`, `readOnly`, `autoCapitalize`, `spellcheck`, `variant`, `horizontal`, `scrollLeft`, `paging`, `inverted`, `refreshing`, `endReachedThreshold`, `columns`, `fallbackSrc`, `safeArea`, `keyboardAvoiding` (19).
|
|
174
|
-
- Eventos: `refresh`, `endReached`, `load`, `error`, `pinch` (5).
|
|
175
|
-
|
|
176
|
-
La implementación real:
|
|
177
|
-
|
|
178
|
-
- **Android** (`ElurRenderer.kt:2953 applyPropsOnView`): no aplica las 15 props de texto/lista (`maxLines`, `textOverflow`, `selectable`, `multiline`, `rows`, `readOnly`, `autoCapitalize`, `spellcheck`, `variant`, `horizontal`, `scrollLeft`, `paging`, `inverted`, `columns`, `fallbackSrc`). `maxLines` solo aparece en la medición off-UI (`:972`), no como prop. `safeArea`/`keyboardAvoiding` se resuelven en el reconciliador, no en el aplicador, y dependen de insets que no llegan.
|
|
179
|
-
- **Linux** (`elur_applicator.cpp:1530 applyProp`): mismo caso: no aplica las 15 props de texto/lista; `safeArea`/`keyboardAvoiding` quedan en el reconciliador con insets 0.
|
|
180
|
-
- **Web** (`backends/web/index.ts:1578-1660`): aplica 15 de 19; no aplica `refreshing`, `endReachedThreshold`, `safeArea`, `keyboardAvoiding`.
|
|
181
|
-
- **Eventos**: `refresh`, `endReached`, `load`, `error` y `pinch` no se despachan en ningún backend. `error` solo existe como listener interno de `fallbackSrc` en web, no como evento de app.
|
|
182
|
-
|
|
183
|
-
`check-divergences` no detecta esto porque solo valida forma y presupuesto, no implementación. `strictProps` sí usa `isPortableProp`, así que **acepta** esas props y el host las ignora: exactamente el fallo silencioso que el proyecto prohíbe.
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## 2. Estado real por capa
|
|
188
|
-
|
|
189
|
-
### 2.1 Contratos y runtime
|
|
190
|
-
|
|
191
|
-
| Pieza | Estado | Evidencia |
|
|
192
|
-
| --- | --- | --- |
|
|
193
|
-
| IR / builder `ui``` | ✅ | `src/ir/`, `src/ir/ui.ts`, tests IR |
|
|
194
|
-
| Reconciliador transaccional | ✅ | `src/reconciler/reconciler.ts`, keyed diff, scopes |
|
|
195
|
-
| Display List binario | ✅ | `DL_ABI 11`, corpus byte-exacto, `tests/parity/transport-encode.js` |
|
|
196
|
-
| Router universal | ✅ | `src/router/`, paridad y stress 3315 asserts |
|
|
197
|
-
| Ciclo de vida de pantalla | ✅ | `onMount/onEnter/onLeave`, `appState`, tests |
|
|
198
|
-
| Formularios / store / context | 🟡 | Implementados y testeados en Vitest; **rotos en bundle embebido** por el shim |
|
|
199
|
-
| WinterTC (ECMA-429) | ✅ | API completa; `crypto.getRandomValues` host-backed con fail-closed (ADR-0198) |
|
|
200
|
-
| `fetch` universal | ✅ | `src/native/http.ts`, Headers/Request/Response/AbortSignal, tests |
|
|
201
|
-
| Módulos nativos / CESM | ✅ | `native/`, codegen, TCK, Android/Linux |
|
|
202
|
-
| Worklets / animaciones | ✅ | `src/animations/`, CESM, UIThreadRunner, lockdown |
|
|
203
|
-
| Observabilidad / errores | ✅ | Métricas, source maps, `symbolicate`, reporte de errores |
|
|
204
|
-
|
|
205
|
-
### 2.2 Web / SSR
|
|
206
|
-
|
|
207
|
-
- DOM real, SSR/SSG, hidratación, streaming, `page.data.ts`, tema sin flash, fuentes, i18n, `href`, metadata, paridad geométrica.
|
|
208
|
-
- Faltan: PWA (`manifest.webmanifest`, service worker, offline), `refresh`/`endReached`/`pinch`, `safeArea`/`keyboardAvoiding` reales (dependen de insets) y `refreshing` visual. `load`/`error` de imagen ya están (ADR-0204).
|
|
209
|
-
- `elur dev --target web` sirve `dist/` con SSE auto-reload (ADR-0214; `--no-serve` para desactivarlo).
|
|
210
|
-
- `elur dev --dev-fast` y auto `gen-routes` ya están (ADR-0213).
|
|
211
|
-
|
|
212
|
-
### 2.3 Android
|
|
213
|
-
|
|
214
|
-
- Renderer maduro: Platform Views, listas nativas, Yoga, IME, a11y, imágenes Coil, transiciones, swipe-back, métricas, source maps.
|
|
215
|
-
- Faltan: 7 props de lista/scroll (`variant`, `horizontal`, `scrollLeft`, `paging`, `inverted`, `columns`, `refreshing`), 3 eventos (`refresh`/`endReached`/`pinch`), overlays/back interceptors, view flattening/global pool, first frame pre-baked, brownfield (`ElurView`/`ElurFragment`). Texto/input (ADR-0201) e imagen `load`/`error`/`fallbackSrc` (ADR-0204) implementados, pendientes de verificación on-device.
|
|
216
|
-
- `targetSdk 36`: el back en raíz con un modal abierto cierra la app (`isEnabled = depth > 1`), porque no hay interceptores.
|
|
217
|
-
|
|
218
|
-
### 2.4 Linux GTK4
|
|
219
|
-
|
|
220
|
-
- Host real: GtkFixed+Yoga, Pango, AT-SPI, IME, eventos, plataformas, image service, packaging.
|
|
221
|
-
- Faltan: CESM real (`elur_modules.cpp:429` devuelve “CESM no activo”), `canvas`, `pinch`, delegado `layout`, props de lista/scroll y `semantics.actions`. `appState`/`reducedMotion` ya emiten (ADR-0197); texto/input (ADR-0201) e imagen `load`/`error`/`fallbackSrc` (ADR-0204) implementados.
|
|
222
|
-
- Perfil S/D de hilos verificado; TSan limpio.
|
|
223
|
-
|
|
224
|
-
### 2.5 SDUI / A2UI
|
|
225
|
-
|
|
226
|
-
| Pieza | Estado |
|
|
227
|
-
| --- | --- |
|
|
228
|
-
| Envelope firmado, canonical JSON, seq/notAfter, grants | ✅ |
|
|
229
|
-
| Gateway `serveEnvelope`, downlevel 10→1, ETag/TTL | ✅ |
|
|
230
|
-
| `doc.worklets`, `doc.transitions`, `doc.machines` | ✅ |
|
|
231
|
-
| `list.{items,fields,renderItem}` | ✅ |
|
|
232
|
-
| A2UI v0.9/v1.0: catálogo básico + dialecto por superficie, RPC bidireccional (ADR-0222) | ✅ |
|
|
233
|
-
| A2UI: Tabs/Modal/ChoicePicker/Icon | ✅ (ADR-0206) |
|
|
234
|
-
| A2UI: Video/AudioPlayer | 🔴 (sin nodo de media portable) |
|
|
235
|
-
| A2UI live surface / `updateDataModel` O(1) | ✅ (ADR-0207) |
|
|
236
|
-
| `sduiScreen`, `doc.lifecycle`, `doc.queries`, `doc.commands`, `doc.forms`, `doc.overlays` | 🔴 |
|
|
237
|
-
| AG-UI v1.0 | 🔴 |
|
|
238
|
-
| MCP Apps (SEP-1865) | 🔴 (solo servidor MCP CLI) |
|
|
239
|
-
|
|
240
|
-
**Bugs A2UI verificados:**
|
|
241
|
-
|
|
242
|
-
1. `Image` emite `props = { url: ... }` (`a2ui.ts:517`), pero el catálogo portable usa `src`; en web y Linux no pinta; en Android `url` solo aplica a WebView.
|
|
243
|
-
2. `Image` escribe `node.semantics = { label }` (`a2ui.ts:525`), pero `lower.ts` no lee `semantics`; el label accesible se pierde en los tres backends.
|
|
244
|
-
3. `objectFit: "scale-down"` ya está en `ENUMS.objectFit`, pero Android lo mapea a `FIT_CENTER` y Linux fija `GTK_CONTENT_FIT_COVER`; no es exacto.
|
|
245
|
-
4. ~~`CheckBox` sin `variant:"checkbox"`, `TextField longText` sin `multiline`, `DateTimeInput` con warning~~ corregido en ADR-0195/P0.3; ~~`checks` no se ejecutan~~ corregido en ADR-0208 (<code>invalid</code> + primer mensaje).
|
|
246
|
-
|
|
247
|
-
### 2.6 Toolchain
|
|
248
|
-
|
|
249
|
-
| Comando | Estado |
|
|
250
|
-
| --- | --- |
|
|
251
|
-
| `elur build` web/android/linux, SSR/SSG, HBC/QJSC | ✅ |
|
|
252
|
-
| `elur doctor`, `plugin *`, `create`, `engines`, `debug`, `inspect`, `visual-parity` | ✅ |
|
|
253
|
-
| `elur sdui *` + MCP stdio | ✅ |
|
|
254
|
-
| `elur dev` | 🟡: ✅ `--dev-fast`, auto `gen-routes` y web reload (ADR-0213/0214); falta watch Linux |
|
|
255
|
-
| `elur create --template` | 🔴 |
|
|
256
|
-
| `elur assets` (iconos/splash/PWA) | 🔴 |
|
|
257
|
-
| `package-linux` | ✅ (RPM/Flatpak con receta si falta tool) |
|
|
258
|
-
|
|
259
|
-
### 2.7 Testing
|
|
260
|
-
|
|
261
|
-
- 1.203 tests unitarios, 57 archivos de paridad en la corrida actual (56 carriles declarados en `doc-data`), stress, TCK, semantics, visual parity, layout oracle, wire corpus, i18n corpus.
|
|
262
|
-
- Faltan: `@elurjs/universal/testing` (render en memoria, `fire.press`, queries por rol/label), tests de `environment.ts`, tests de overlays/primitivas, lane de `provide/inject` en paridad (hoy falla), y medición on-device fresca tras el cambio del 19-oct.
|
|
263
|
-
|
|
264
|
-
---
|
|
265
|
-
|
|
266
|
-
## 3. P0 — El runtime embebido está roto (detalle)
|
|
267
|
-
|
|
268
|
-
### 3.1 Causa raíz
|
|
269
|
-
|
|
270
|
-
`cli/gen-bundle.mjs`:
|
|
271
|
-
|
|
272
|
-
```ts
|
|
273
|
-
const SIGNAL_API = ["Signal", ..., "onCleanup"];
|
|
274
|
-
const signalsShim = `{ ${SIGNAL_API.map(...)} }`;
|
|
275
|
-
output = output
|
|
276
|
-
.replace(/var __require = import\.meta\.require;/g,
|
|
277
|
-
`var __require = function(name) { return ${signalsShim}; };`)
|
|
278
|
-
.replace(/__require\(["']@elurjs\/core(?:\/signals)?["']\)/g,
|
|
279
|
-
`(${signalsShim})`);
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
Bun deja `__require("@elurjs/core/context")`, `@elurjs/core/form`, `@elurjs/core/store`, `@elurjs/core/plugins` porque los subpaths no están en `external` ni resueltos por el plugin. El shim los trata como si fueran `@elurjs/core/signals`.
|
|
283
|
-
|
|
284
|
-
`src/router/screen-host.ts` importa `_pushComponentContext`/`_popComponentContext` y los invoca **sin condición** en cada factory. Por eso no es solo un problema de quien use `provide/inject`: **toda app routed** pasa por ahí.
|
|
285
|
-
|
|
286
|
-
### 3.2 Corrección recomendada
|
|
287
|
-
|
|
288
|
-
**Opción A (mínima, recomendada):** ampliar el shim para que cada subpath devuelva el objeto correcto desde `globalThis`:
|
|
289
|
-
|
|
290
|
-
- Exponer en `elurSignals.js` (o en un nuevo `elurCore.js`) las APIs de `@elurjs/core/context`, `/form`, `/store` y `/plugins`.
|
|
291
|
-
- En `gen-bundle.mjs`, mapear explícitamente:
|
|
292
|
-
- `@elurjs/core/context` → `globalThis.__elurCoreContext`
|
|
293
|
-
- `@elurjs/core/form` → `globalThis.__elurCoreForm`
|
|
294
|
-
- `@elurjs/core/store` → `globalThis.__elurCoreStore`
|
|
295
|
-
- `@elurjs/core/plugins` → `globalThis.__elurCorePlugins`
|
|
296
|
-
- Alternativa: dejar de externalizar esos subpaths y bundlearlos, confiando en el plugin que redirige `./signals.js` a `@elurjs/core/signals`. Esto evita duplicar la instancia de signals, pero aumenta el tamaño y puede duplicar helpers.
|
|
297
|
-
|
|
298
|
-
**Opción B (estructural):** crear un `elurCore.js` que exponga **toda** la superficie DOM-free de `@elurjs/core` (signals + context + form + store + plugins) y usarlo como único external. Es más limpio a futuro, pero exige un paso de build más y un contrato de globals.
|
|
299
|
-
|
|
300
|
-
### 3.3 Criterios de aceptación
|
|
301
|
-
|
|
302
|
-
- `bun run test:parity` verde en qjs y Hermes (0 FAIL).
|
|
303
|
-
- Un lane nuevo `tests/parity/context.js` que ejercite `provide`/`inject`/`createInjectionKey`, `createForm`, `createStore` y `onMount` en un bundle real.
|
|
304
|
-
- Un test de humo que compile `examples/mareas/entry.ts` y ejecute `mountEmbeddedApp` contra un host falso en qjs.
|
|
305
|
-
- `bun cli/gen-bundle.mjs` no debe emitir ningún `__require("@elurjs/...")` fuera del shim explícito. Añadir un assert al generador: si queda un `__require` de un paquete no mapeado, fallar el build.
|
|
306
|
-
|
|
307
|
-
---
|
|
308
|
-
|
|
309
|
-
## 4. P0 — La matriz de capacidades debe decir la verdad
|
|
310
|
-
|
|
311
|
-
### 4.1 Qué se declara vs. qué se implementa
|
|
312
|
-
|
|
313
|
-
| Capacidad | Matriz | Web | Android | Linux | Veredicto |
|
|
314
|
-
| --- | --- | --- | --- | --- | --- |
|
|
315
|
-
| `maxLines` | exact/approx/exact | ✅ | 🟡 | ✅ | implementada (ADR-0201); Linux verificado en GTK |
|
|
316
|
-
| `textOverflow` | exact/approx/approx | ✅ | 🟡 | 🟡 | implementada; verificación GTK/on-device pendiente |
|
|
317
|
-
| `selectable` | exact/approx/approx | ✅ | 🟡 | 🟡 | implementada; verificación GTK/on-device pendiente |
|
|
318
|
-
| `multiline` | exact/approx/no | ✅ | 🟡 | 🔴 | Android implementado; Linux usa GtkEntry de 1 línea |
|
|
319
|
-
| `rows` | exact/approx/no | ✅ | 🟡 | 🔴 | Android implementado; Linux usa GtkEntry de 1 línea |
|
|
320
|
-
| `readOnly` | exact/approx/approx | ✅ | 🟡 | 🟡 | implementada; verificación GTK/on-device pendiente |
|
|
321
|
-
| `autoCapitalize` | exact/approx/approx | ✅ | 🟡 | 🟡 | implementada; verificación GTK/on-device pendiente |
|
|
322
|
-
| `spellcheck` | exact/approx/approx | ✅ | 🟡 | 🟡 | implementada; verificación GTK/on-device pendiente |
|
|
323
|
-
| `variant` | exact/no/no | ✅ | 🔴 | 🔴 | pendiente (P1.1) |
|
|
324
|
-
| `horizontal` | exact/no/no | ✅ | 🔴 | 🔴 | pendiente (P1.1) |
|
|
325
|
-
| `scrollLeft` | exact/no/no | ✅ | 🔴 | 🔴 | pendiente (P1.1) |
|
|
326
|
-
| `paging` | exact/no/no | ✅ | 🔴 | 🔴 | pendiente (P1.1) |
|
|
327
|
-
| `inverted` | exact/no/no | ✅ | 🔴 | 🔴 | pendiente (P1.1) |
|
|
328
|
-
| `refreshing` | no/no/no | 🔴 | 🔴 | 🔴 | sin implementación (vocabulario) |
|
|
329
|
-
| `endReachedThreshold` | no/no/no | 🔴 | 🔴 | 🔴 | sin implementación (vocabulario) |
|
|
330
|
-
| `columns` | exact/no/no | ✅ | 🔴 | 🔴 | pendiente (P1.1) |
|
|
331
|
-
| `fallbackSrc` | exact/approx/exact | ✅ | 🟡 | ✅ | implementada (ADR-0204); Linux probado en GTK |
|
|
332
|
-
| `safeArea` | approx/approx/approx | 🟡 | 🟡 | 🟡 | lógica en reconciler; insets reales pendientes |
|
|
333
|
-
| `keyboardAvoiding` | approx/approx/approx | 🟡 | 🟡 | 🟡 | lógica en reconciler; insets reales pendientes |
|
|
334
|
-
| `refresh` (evento) | no/no/no | 🔴 | 🔴 | 🔴 | sin emisor |
|
|
335
|
-
| `endReached` (evento) | no/no/no | 🔴 | 🔴 | 🔴 | sin emisor |
|
|
336
|
-
| `load` (evento) | exact/approx/exact | ✅ | 🟡 | ✅ | implementado (ADR-0204); Linux probado en GTK |
|
|
337
|
-
| `error` (evento) | exact/approx/exact | ✅ | 🟡 | ✅ | implementado (ADR-0204); Linux probado en GTK |
|
|
338
|
-
| `pinch` (evento) | no/no/no | 🔴 | 🔴 | 🔴 | sin emisor |
|
|
339
|
-
|
|
340
|
-
**Notas:**
|
|
341
|
-
|
|
342
|
-
- `safeArea`/`keyboardAvoiding` sí tienen lógica en el reconciliador (`reconciler.ts`), pero dependen de `windowInsets`; Linux/Android ya emiten viewport/insets y la verificación de padding real queda en el carril on-device.
|
|
343
|
-
- `columns` en Android solo existe en `ElurCustomLayout` (delegado `layout`), no en `ElurListView`; en Linux no existe.
|
|
344
|
-
- La evidencia de `exact` vive en `tests/unit/test-capability-truth.test.ts`; `approx` exige nota + ficha y no se promueve sin ejecución real.
|
|
345
|
-
|
|
346
|
-
### 4.2 Por qué importa
|
|
347
|
-
|
|
348
|
-
1. **SDUI/A2UI validan contra la matriz.** `validateEnvelope` usa `PROPS_CAPABILITY`; un documento remoto con `refreshing` o `pinch` pasa la validación y el host no hace nada. Eso es exactamente el “fail-silent” que ADR-0086/0145 prohíben.
|
|
349
|
-
2. **`strictProps` tampoco protege.** `isPortableProp` devuelve `true` si los tres niveles no son `no`; con `exact` los deja pasar.
|
|
350
|
-
3. **La documentación publicaba una tabla falsa.** `doc-data.json` y el documento maestro generan §4.3/§4.4 desde esa matriz; tras ADR-0196/0201/0204 los niveles ya reflejan la implementación real.
|
|
351
|
-
4. **El presupuesto de divergencias estaba ciego.** Pasó de 25 a 42 (ADR-0196) y a 44 (ADR-0204) al declarar la deuda real; el gate ahora falla si una capacidad nueva diverge sin ADR.
|
|
352
|
-
|
|
353
|
-
### 4.3 Corrección recomendada (decisión por capacidad)
|
|
354
|
-
|
|
355
|
-
No se debe “arreglar” solo bajando niveles: hay que decidir caso por caso.
|
|
356
|
-
|
|
357
|
-
| Grupo | Props/eventos | Decisión recomendada |
|
|
358
|
-
| --- | --- | --- |
|
|
359
|
-
| **Fácil, nativo** | `maxLines`, `textOverflow`, `selectable`, `multiline`, `rows`, `readOnly`, `autoCapitalize`, `spellcheck`, `variant`, `fallbackSrc` | Implementar en Android/Linux (TextView/EditText/GtkLabel/GtkEntry/GtkPicture); 5-8 días. |
|
|
360
|
-
| **Medio** | `horizontal`, `scrollLeft`, `paging`, `inverted`, `columns` | Implementar en `ElurListView`/`GtkScrolledWindow`; 5-7 días. |
|
|
361
|
-
| **Requiere diseño** | `refreshing`, `endReachedThreshold`, `refresh`, `endReached` | Diseñar contrato de scroll (`{y,x,vh,vw,ch,cw}`) y pull-to-refresh; 5-7 días. |
|
|
362
|
-
| **Requiere host** | `safeArea`, `keyboardAvoiding`, `pinch` | Cablear `windowInsets`/`viewport` en hosts y gesto multi-touch; 4-6 días. |
|
|
363
|
-
| **No implementar aún** | `columns` en Linux, `pinch` si no hay consumidor | Declarar `no`/`approx` con ficha y presupuesto explícito. |
|
|
364
|
-
|
|
365
|
-
**Regla de oro propuesta:** una capacidad no puede pasar a `exact` hasta que exista:
|
|
366
|
-
|
|
367
|
-
1. implementación en el backend,
|
|
368
|
-
2. test unitario del backend (jsdom/Kotlin/JVM/GTK),
|
|
369
|
-
3. caso en el corpus de paridad o TCK,
|
|
370
|
-
4. fila en `PROPS_CAPABILITY`/`EVENTS_CAPABILITY` con evidencia.
|
|
371
|
-
|
|
372
|
-
### 4.4 Gate de verdad (nuevo)
|
|
373
|
-
|
|
374
|
-
Añadir `tests/unit/test-capability-truth.test.ts` con una tabla explícita `BACKEND_IMPLEMENTED: Record<platform, Set<prop|event>>` mantenida a mano y verificada contra la matriz. No es perfecta (puede desincronizarse), pero es **visible y falla en CI**; mejor que un grep heurístico. Alternativa más fuerte: generar la tabla desde marcadores `// @capability web:maxLines` en los aplicadores y verificar que cada `exact` tiene marcador en los tres. Se puede empezar por la tabla manual y evolucionar.
|
|
375
|
-
|
|
376
|
-
También conviene que `check-divergences --report` imprima, por entrada `exact`, la evidencia declarada (archivo/símbolo). Sin evidencia, no es `exact`.
|
|
377
|
-
|
|
378
|
-
---
|
|
379
|
-
|
|
380
|
-
## 5. Brechas por dimensión (estado del arte 2026)
|
|
381
|
-
|
|
382
|
-
### 5.1 Ciclo de vida, datos y estado
|
|
383
|
-
|
|
384
|
-
| Capacidad | Estado real | Brecha | Referencia SOTA |
|
|
385
|
-
| --- | --- | --- | --- |
|
|
386
|
-
| `onMount`/`onEnter`/`onLeave` | ✅ module-level hooks, `ScreenHost` | `ctx.isActive` no existe; `onEnter` no revalida queries por sí solo | React Activity / Expo Router focus effects; Ionic `ionViewWillEnter` |
|
|
387
|
-
| `appState` | ✅ Android/Web/Linux | Linux emite `notify::is-active` (ADR-0197) | RN AppState; Capacitor App |
|
|
388
|
-
| `page.data.ts` | ✅ SSR/SPA | Nativo con default `loadData` (ADR-0209) | Expo Router loader / Remix loader |
|
|
389
|
-
| `page.server.ts` | ✅ SSR, excluido del bundle | No hay BFF nativo por defecto | Next.js Server Actions |
|
|
390
|
-
| `loading.ts`/`error.ts` | ✅ streaming + boundary | Sin overlay de error dev | React Suspense/Error Boundary |
|
|
391
|
-
| `@elurjs/query` | 🔴 no es dependencia | Sin caché, dedupe, retry, offline queue, revalidación al foco | TanStack Query / SWR |
|
|
392
|
-
| Persistencia | 🟡 `persisted()` | `ready`/`hydrated` ya existen; faltan `version`/`migrate` y `clear(prefix)`; `keys` existe | Zustand persist / MMKV |
|
|
393
|
-
| Estado global | ✅ store/context | Roto en bundle embebido (P0) | Redux/Zustand/Jotai |
|
|
394
|
-
|
|
395
|
-
**Recomendación:** integrar `@elurjs/query` como dependencia opcional y añadir `page.data.ts` universal con default `fetch` en nativo; `persisted` ya expone `ready`/`hydrated`, falta `version`/`migrate` y `clear(prefix)`; tests de ciclo de vida + query.
|
|
396
|
-
|
|
397
|
-
### 5.2 Formularios y controles
|
|
398
|
-
|
|
399
|
-
| Capacidad | Estado | Brecha |
|
|
400
|
-
| --- | --- | --- |
|
|
401
|
-
| `createForm`/`elurField` | ✅ en Vitest | Roto en bundle (P0); sin `useField` de array en UI |
|
|
402
|
-
| Validadores | ✅ required/email/pattern/min/max/matchField; `checks` A2UI vía Expr (ADR-0208) | `pattern` nativo SDUI pendiente |
|
|
403
|
-
| Formato | ✅ `formatNumber`/`formatCurrency`/`formatDate`/`pluralize` con `format` inyectado por mount (ADR-0211) | Integración i18n es opt-in de la app |
|
|
404
|
-
| `text-input` multilínea/readonly/máscaras | 🟡 web exact; Android approx (implementado); Linux aprox/no multilínea | Fase 1 ADR-0201; faltan máscaras y picker nativo |
|
|
405
|
-
| `switch` checkbox/radio | 🟡 web; 🔴 nativo | `variant` sigue en deuda (P1.1 fase 2) |
|
|
406
|
-
| `select`/combobox/date/time | 🔴 | Sin primitiva universal ni picker nativo |
|
|
407
|
-
| `progress`/spinner | 🔴 | No hay nodo ni primitiva; solo semántica `valueNow` |
|
|
408
|
-
| PIN/OTP, number input, rating | 🔴 | Solo en `@elurjs/ui-brain` (Zag/DOM) |
|
|
409
|
-
|
|
410
|
-
**Recomendación:** cerrar primero la paridad nativa de las props existentes; después `Select`/`DatePicker`/`Progress` como primitivas compuestas, no opcodes nuevos.
|
|
411
|
-
|
|
412
|
-
### 5.3 Overlays, back y foco
|
|
413
|
-
|
|
414
|
-
**Implementado (ADR-0200):** `src/overlays` + hosts lazy `overlay-host`/
|
|
415
|
-
`toast-host` en el shell, `createModal`/`createBottomSheet`/`createToast`,
|
|
416
|
-
back LIFO (`ScreenHost.handleBack`/`pushBackInterceptor`), inert del
|
|
417
|
-
fondo (`accessible:false`) y `restoreFocus()` al cerrar; Escape web y
|
|
418
|
-
`__elur_back` Android/Linux consumen el overlay antes del router.
|
|
419
|
-
Tests unitarios 4/4; los hosts son lazy para no alterar SSR/hidratación.
|
|
420
|
-
|
|
421
|
-
**Pendiente del bloque:** drag nativo del bottom sheet, `Popover`/
|
|
422
|
-
`ContextMenu`/`Tooltip`/`Loading`, focus trap de tabulación explícito y
|
|
423
|
-
proyección SDUI (`doc.overlays` + intents `overlay.open/close`, `toast`).
|
|
424
|
-
|
|
425
|
-
### 5.4 Primitivas headless
|
|
426
|
-
|
|
427
|
-
Implementadas en `src/primitives` (ADR-0203 fase 1, ADR-0205 fase 2 y
|
|
428
|
-
ADR-0210 fase 3): `createTabs`, `createAccordion`, `createSelect`,
|
|
429
|
-
`createPinInput`, `createNumberInput`, `createRatingGroup`,
|
|
430
|
-
`createSegmentedControl`, `createSteps`, `createTooltip`,
|
|
431
|
-
`createPopover`, `createCombobox`, `createMenu`, `createTreeView` y
|
|
432
|
-
`createPagination` — estado + prop-getters + `render()` por defecto,
|
|
433
|
-
DOM-free y testeadas con `renderTestScreen`. Queda el `Combobox`
|
|
434
|
-
adaptativo y `aria-activedescendant` (requiere ampliar
|
|
435
|
-
`SEMANTIC_PROPS`).
|
|
436
|
-
|
|
437
|
-
### 5.5 Listas y scroll
|
|
438
|
-
|
|
439
|
-
| Capacidad | Estado |
|
|
440
|
-
| --- | --- |
|
|
441
|
-
| Virtualización, reciclaje, keyed diff | ✅ |
|
|
442
|
-
| Lista nativa Android | ✅ |
|
|
443
|
-
| Lista nativa Linux | 🔴 (ventana JS) |
|
|
444
|
-
| Alturas variables en JS | 🔴 (`rowHeight` fijo) |
|
|
445
|
-
| `horizontal`/`scrollLeft`/`paging`/`inverted` | 🟡 web; 🔴 nativo |
|
|
446
|
-
| Pull-to-refresh / `endReached` | 🔴 |
|
|
447
|
-
| Payload `scroll` con `ch/cw` | 🔴 |
|
|
448
|
-
| Grid/masonry en `list` | 🟡 Android delegado; web parcial; Linux no |
|
|
449
|
-
|
|
450
|
-
**Lectura:** la lista nativa Android y el `scroll-view` Linux ya existen
|
|
451
|
-
(ADR-0054 y ADR-0033): RecyclerView con reciclaje/scroll/scrollTop y
|
|
452
|
-
GtkScrolledWindow con scroll/scrollTop. P1.1 fase 3 **no reimplementa la
|
|
453
|
-
lista**: completa props/eventos que faltan sobre esas bases
|
|
454
|
-
(`horizontal`, `scrollLeft`, `paging`, `inverted`, `columns`,
|
|
455
|
-
`refresh`/`endReached`). Linux no tiene lista nativa con ventana
|
|
456
|
-
propia; su `list` es el path JS.
|
|
457
|
-
|
|
458
|
-
**Recomendación:** definir el contrato de scroll completo (`{y,x,vh,vw,ch,cw}`), implementar `refresh`/`endReached` una vez en el reconciliador y exponerlos en los tres backends; añadir Fenwick/prefix-sum para alturas variables en web/Linux.
|
|
459
|
-
|
|
460
|
-
### 5.6 Imagen, iconos, media y canvas
|
|
461
|
-
|
|
462
|
-
| Capacidad | Estado |
|
|
463
|
-
| --- | --- |
|
|
464
|
-
| `image` src/Coil/libsoup | ✅ |
|
|
465
|
-
| `@load`/`@error` | ✅ web/Linux; 🟡 Android (impl., on-device pendiente) |
|
|
466
|
-
| `fallbackSrc` | ✅ web/Linux; 🟡 Android (impl., on-device pendiente) |
|
|
467
|
-
| Placeholder/blurhash/AVIF | 🔴 |
|
|
468
|
-
| Iconos/SVG | 🔴 (no hay `<icon>` ni path portable) |
|
|
469
|
-
| `canvas` web/Android | ✅ |
|
|
470
|
-
| `canvas` Linux | 🔴 |
|
|
471
|
-
| `arc`/`svgPath` | 🟡 schema+web; 🔴 nativo |
|
|
472
|
-
| Audio/vídeo | 🔴 |
|
|
473
|
-
| PDF/captura de nodo | 🔴 (SkPDF está en libskia) |
|
|
474
|
-
|
|
475
|
-
**Recomendación:** completar `fallbackSrc`/`load`/`error` en Android on-device (ADR-0204) y en el renderer Skia opt-in de Linux; `svgPath` compartido (Path2D/Android Path/Skia); `canvas` Linux con GtkDrawingArea/Cairo; después `<icon>` como primitiva, no opcode.
|
|
476
|
-
|
|
477
|
-
### 5.7 Layout y estilo
|
|
478
|
-
|
|
479
|
-
- Yoga 3.2.1, L1, unidades lógicas, RTL, logical edges, `row-reverse`, `aspectRatio`, `display:contents`, `sticky`, transforms, stateStyle.
|
|
480
|
-
- Faltan: `backgroundGradient` en Android/Linux (solo web), radios por esquina en Android/Linux (solo schema/web), `cursor` explícito, `grid` real (Taffy diferido), inline/rich text mixto, container queries, `transition` automática por cambio de estilo.
|
|
481
|
-
- `objectFit` no es exacto en Android/Linux para `scale-down`/`none`.
|
|
482
|
-
|
|
483
|
-
**Recomendación:** tabla de verdad por StyleKey y backend (igual que la matriz de props); implementar gradientes/radios en `ElurBoxDrawable` y CSS GTK; no adoptar Taffy hasta que haya consumidor.
|
|
484
|
-
|
|
485
|
-
### 5.8 Entorno, ventana y shells
|
|
486
|
-
|
|
487
|
-
- `viewport`, `windowInsets`, `reducedMotion` existen como signals, pero **ningún host los actualiza**.
|
|
488
|
-
- `safeArea`/`keyboardAvoiding` dependen de ellos; en la práctica son 0.
|
|
489
|
-
- `ShellKind` declara `drawer`/`split`; solo `stack`/`tabs` están implementados.
|
|
490
|
-
- No hay multi-ventana, tray, menú nativo, drag & drop de archivos, atajos globales, PiP.
|
|
491
|
-
- Android: `statusBar`/nav bar/splash no se controlan desde JS.
|
|
492
|
-
- Linux: no hay `window.setTitle/setSize/fullscreen`.
|
|
493
|
-
|
|
494
|
-
**Recomendación:** cablear `setViewport`/`setWindowInsets`/`setReducedMotion` en Android/Linux/Web (este es el fix más rentable: tres llamadas y un test); después `drawer`/`split`; después ventana desktop como paquete.
|
|
495
|
-
|
|
496
|
-
### 5.9 Red, storage y background
|
|
497
|
-
|
|
498
|
-
- `fetch` universal ✅, `AbortSignal` ✅, baseUrl ✅.
|
|
499
|
-
- Sin WebSocket/SSE, sin multipart/upload con progreso, sin descarga de ficheros, sin SQLite, sin red reactiva en core, sin background tasks, sin cola offline. Red/offline pertenece a `@elurjs/query` o a un paquete `@elurjs/network` (ADR-0212).
|
|
500
|
-
- `http` acota body a 4 MiB y solo texto; no sirve para fotos/PDF.
|
|
501
|
-
- `loadData` nativo ya tiene default (ADR-0209); falta caché/dedupe de `@elurjs/query`.
|
|
502
|
-
|
|
503
|
-
**Recomendación:** paquete `@elurjs/network` (isOnline/connectionType) y `@elurjs/http` extendido (stream/WS/SSE/upload/download); `@elurjs/sqlite` y `@elurjs/files` como paquetes, no core; `@elurjs/query` para caché/retry/offline.
|
|
504
|
-
|
|
505
|
-
### 5.10 Plugins de dispositivo
|
|
506
|
-
|
|
507
|
-
Hoy solo `@elurjs/i18n`, `@elurjs/kv`, `@elurjs/location`.
|
|
508
|
-
|
|
509
|
-
Faltan (paquetes, no core): `files`, `image-picker`, `camera`, `media` (audio/vídeo), `notifications`, `secure-storage`, `biometrics`, `web-browser` (OAuth/PKCE), `clipboard`, `share`, `haptics`, `app-info`/`device`, `network`, `sqlite`, `webview`, `maps`, `sensors`, `ble`, `nfc`, `speech`, `iap`, `passkeys`, `attestation`, `store-review`, `app-update`, `pdf`, `capture-node`, `image-manipulator`, `crypto` ampliado.
|
|
510
|
-
|
|
511
|
-
**Prioridad:** `secure-storage`, `web-browser`, `files`, `media`, `notifications`, `clipboard`/`share`/`haptics`, `sqlite`, `webview`/`maps`; el resto cuando haya consumidor.
|
|
512
|
-
|
|
513
|
-
### 5.11 Seguridad y criptografía
|
|
514
|
-
|
|
515
|
-
- Firma Ed25519, canonical JSON, anti-replay, grants, allowlist, pinning DNS, cuotas de worklet: **muy bien**.
|
|
516
|
-
- ~~`crypto.getRandomValues` es xorshift con semilla de tiempo~~ **corregido (ADR-0198)**: `__elurRandom` host-backed (/dev/urandom; QuickJS + Hermes), orden host → WebCrypto → opt-in inseguro → throw fail-closed.
|
|
517
|
-
- `crypto` solo expone `ed25519Verify`; sin SHA-256/512, HMAC, AES-GCM, PBKDF2/HKDF.
|
|
518
|
-
- Sin CRL/OCSP, sin rotación de claves documentada, sin attestation.
|
|
519
|
-
- Web sin CSP/SRI generados; sin Trusted Types.
|
|
520
|
-
|
|
521
|
-
**Recomendación:** ampliar `@elurjs/crypto` (hash/HMAC/AES-GCM/KDF) como paquete; CRL/OCSP y attestation cuando haya consumidor. El CSPRNG ya está cerrado.
|
|
522
|
-
|
|
523
|
-
### 5.12 SDUI, A2UI y agentic UI
|
|
524
|
-
|
|
525
|
-
Lo que ya está es el mayor diferenciador del proyecto. Lo que falta:
|
|
526
|
-
|
|
527
|
-
| Pieza | Prioridad | Nota |
|
|
528
|
-
| --- | --- | --- |
|
|
529
|
-
| A2UI Image `src` + label + tests | P0 | bug real |
|
|
530
|
-
| `ChoicePicker`, `Tabs`, `Modal`, `Icon` | ✅ | ADR-0206; Video/AudioPlayer siguen fallback |
|
|
531
|
-
| `Video`/`AudioPlayer` A2UI | P1 | requieren nodo/Platform View de media |
|
|
532
|
-
| `mountA2uiSurface` + update O(1) | ✅ | ADR-0207; `sendDataModel` incluido |
|
|
533
|
-
| `checks` de validación A2UI | ✅ | ADR-0208: required/numeric/email/regex/length + `invalid`/mensaje |
|
|
534
|
-
| `formatNumber`/`formatCurrency`/`formatDate`/`pluralize` | ✅ | ADR-0211: ops Expr + `format` inyectado por mount; fallback sin locale |
|
|
535
|
-
| `doc.lifecycle`/`queries`/`commands`/`forms`/`overlays` | P1 | app-level SDUI |
|
|
536
|
-
| `sduiScreen` en Router/ScreenHost | P1 | navegación híbrida |
|
|
537
|
-
| AG-UI v1.0 (`STATE_SNAPSHOT`, `STATE_DELTA`, `TOOL_CALL_*`) | P2 | transporte de agente |
|
|
538
|
-
| MCP Apps (`ui://`, CSP, iframe/nativo) | P2 | host de herramientas |
|
|
539
|
-
| SSE/streaming de patches | P1 | push del servidor |
|
|
540
|
-
| Certificado de oráculos por niveles | P2 | confianza del agente |
|
|
541
|
-
|
|
542
|
-
**Posicionamiento:** A2UI + AG-UI + MCP Apps son complementarios, no competidores. Elur puede ser el **renderer nativo** que ninguno de los tres tiene: A2UI declara, AG-UI transporta, MCP Apps hospeda; Elur monta en Views nativas, web DOM y desktop. Esa es la historia de “nuevo estado del arte” más defendible.
|
|
543
|
-
|
|
544
|
-
### 5.13 DX, testing y DevTools
|
|
545
|
-
|
|
546
|
-
- `elur build`, `doctor`, `visual-parity`, `inspect`, `debug`, `sdui` están muy bien.
|
|
547
|
-
- `elur dev`: `--dev-fast`, auto `gen-routes` y servidor web con reload SSE (ADR-0213/0214); falta watch Linux.
|
|
548
|
-
- `elur create`: sin plantillas `routed`/`tabs`/`fullstack`/`sdui`.
|
|
549
|
-
- Sin `@elurjs/universal/testing` (render en memoria, `fire.press`, búsqueda por rol/label).
|
|
550
|
-
- Sin devtools unificado (signals, árbol, router, módulos, query), sin error overlay dev.
|
|
551
|
-
- Sin benchmark de cold start real ni Perfetto/FrameTimeline de producción.
|
|
552
|
-
|
|
553
|
-
**Recomendación:** testing harness primero (es lo que más acelera a un tercero); dev-fast y plantillas después; devtools al final (requiere contrato de depuración).
|
|
554
|
-
|
|
555
|
-
### 5.14 Build, assets, PWA, OTA y distribución
|
|
556
|
-
|
|
557
|
-
- Build web/android/linux, SSR/SSG, HBC/QJSC, signing, AAB, splits, minify, 16 KB: ✅.
|
|
558
|
-
- Sin `elur assets` (iconos adaptativos, splash, monochrome, `.desktop`, favicons, `manifest.webmanifest`).
|
|
559
|
-
- Sin PWA/service worker/offline.
|
|
560
|
-
- Sin OTA firmada con rollback (Zipline/Expo Updates como referencia).
|
|
561
|
-
- Sin brownfield (`ElurView`/`ElurFragment`).
|
|
562
|
-
- npm publicado; repo público; sin RFC; sin reportes de terceros.
|
|
563
|
-
|
|
564
|
-
**Recomendación:** `elur assets` + PWA es un fin de semana y desbloquea apps web completas; OTA/brownfield son P2; publicación/gobernanza es decisión del autor, no técnica.
|
|
565
|
-
|
|
566
|
-
### 5.15 Performance y escala
|
|
567
|
-
|
|
568
|
-
- Medido: paridad geométrica 168/168, listas 1000 items, stress 40K nodos, qjsc init 72.5→43.5 ms, Hermes vs QJS.
|
|
569
|
-
- Sin view flattening/phantom nodes, sin global view pool entre pantallas, sin first frame pre-baked, sin 120 Hz efectivo verificado, sin app de 200+ nodos con imágenes en producción.
|
|
570
|
-
- `ElurCustomLayout` ya prueba el mecanismo de delegados; falta el aplanado automático.
|
|
571
|
-
|
|
572
|
-
**Recomendación:** view flattening + pool global después de P1; first frame pre-baked es el mayor golpe de percepción (Lynx IFR); medir cold start real antes de prometer.
|
|
573
|
-
|
|
574
|
-
### 5.16 Accesibilidad
|
|
575
|
-
|
|
576
|
-
- Excelente en Android/Linux/Web: roles, estados, live regions, foco, acciones, axe, AT-SPI.
|
|
577
|
-
- Faltan: focus traps en overlays, `inert` del fondo, `semantics.actions` en Linux (gap certificado), `actions` web (sin API SR) y tests de lector de pantalla en overlays. Formularios A2UI ya exponen label/error (`invalid` + mensaje, ADR-0208).
|
|
578
|
-
|
|
579
|
-
### 5.17 Plataformas
|
|
580
|
-
|
|
581
|
-
- Android y Linux implementados; web completa.
|
|
582
|
-
- iOS: spec y backend compartido, sin `targets/ios`; bloqueado por Mac/CI.
|
|
583
|
-
- Windows: ADR-0180, sin target; bloqueado por Windows real.
|
|
584
|
-
- macOS/ChromeOS: pendientes.
|
|
585
|
-
- Embebidos: futuro.
|
|
586
|
-
|
|
587
|
-
**Recomendación:** no abrir un target nuevo hasta que P0/P1 estén verdes; el coste de mantener tres hosts ya es alto.
|
|
588
|
-
|
|
589
|
-
---
|
|
590
|
-
|
|
591
|
-
## 6. Comparativa con el estado del arte (2026-11)
|
|
592
|
-
|
|
593
|
-
### 6.1 Frameworks
|
|
594
|
-
|
|
595
|
-
| Criterio | Elur | React 19.3 + RN 0.83–0.84 (Expo 55) | Flutter 3.41 (Impeller) | Lynx | Valdi | Compose MP |
|
|
596
|
-
| --- | --- | --- | --- | --- | --- | --- |
|
|
597
|
-
| Render | Vistas SO + Skia opt-in | Vistas SO (Fabric) | Canvas propio | Vistas SO/element set | Vistas SO | Skia/Skiko |
|
|
598
|
-
| Web real | DOM + SSR/SSG | RNW (shim) / RSC web | Canvas/Wasm | Limitado | No | Wasm/canvas |
|
|
599
|
-
| Contrato versionado + TCK | **Sí** | No | No | No | No | No |
|
|
600
|
-
| SDUI/A2UI nativo | **Sí** (Capa 8) | No (librerías) | No | Parcial | No | No |
|
|
601
|
-
| Dual-thread/worklets | Worklets opt-in + CESM | Reanimated worklets | UI thread propio | Dual-thread por diseño | No | No |
|
|
602
|
-
| View flattening/pool | No | Fabric (parcial) | No | No | **Sí** (phantom/pool) | No |
|
|
603
|
-
| OTA firmada | No | EAS Update (bytecode diff) | No | No | Zipline | No |
|
|
604
|
-
| Ecosistema | Muy pequeño | **Enorme** | **Enorme** | Pequeño | Beta | Grande |
|
|
605
|
-
| Madurez | Joven | **Producción masiva** | **Producción masiva** | TikTok | 8 años Snap | Estable |
|
|
606
|
-
|
|
607
|
-
**Lectura:** Elur no compite en ecosistema ni madurez; compite en **contrato + web real + SDUI/agentic**. Expo SDK 55 usa RN 0.83 + React 19.2; RN 0.84 pone Hermes V1 por defecto y la New Architecture es obligatoria desde RN 0.82; React 19.3 aporta Actions/Activity/View Transitions y React Compiler 1.0; Flutter 3.41/Impeller es el referente de fluidez; Lynx/Valdi son la referencia de rendimiento nativo (IFR, phantom nodes, pool). Elur debe tomar de ellos las optimizaciones concretas (flattening, pool, first frame, OTA) sin copiar su modelo.
|
|
608
|
-
|
|
609
|
-
### 6.2 Agentic UI
|
|
610
|
-
|
|
611
|
-
| Protocolo | Qué resuelve | Elur hoy | Recomendación |
|
|
612
|
-
| --- | --- | --- | --- |
|
|
613
|
-
| **A2UI** v0.9.1 / v1.0 candidate | UI declarativa que el host renderiza con componentes nativos | Adaptador v0.9 parcial | Completar catálogo + live surface; es el foso |
|
|
614
|
-
| **AG-UI** v1.0 | Transporte de eventos agente↔frontend (`STATE_SNAPSHOT`, `STATE_DELTA`, `TOOL_CALL_*`) | No | Implementar `src/sdui/agui.ts` (~150 líneas) |
|
|
615
|
-
| **MCP Apps** SEP-1865 (estable 2026-01-26) | Herramientas MCP con UI `ui://` en iframe sandbox | Solo servidor MCP CLI | Nivel A: iframe con CSP; Nivel B: traducir a A2UI/SDUI |
|
|
616
|
-
| **WinterTC** ECMA-429 | APIs web mínimas en runtimes no-browser | Implementado; CSPRNG host-backed (ADR-0198) | Tests de host + fail-closed |
|
|
617
|
-
|
|
618
|
-
**Posicionamiento:** ser el renderer nativo de A2UI y el host de MCP Apps en Android/Linux/web es una categoría que ni React Native ni Flutter ocupan hoy. Es la mejor oportunidad de “nuevo estado del arte”.
|
|
619
|
-
|
|
620
|
-
---
|
|
621
|
-
|
|
622
|
-
## 7. Hoja de ruta priorizada
|
|
623
|
-
|
|
624
|
-
Los esfuerzos son orientativos (días ideales de una persona con el conocimiento del repo), no compromisos.
|
|
625
|
-
|
|
626
|
-
### 7.1 P0 — Integridad y release (1-2 semanas)
|
|
627
|
-
|
|
628
|
-
**Estado 2026-11-14:** P0.1 ✅, P0.2 ✅, P0.3 ✅, P0.4 ✅, P0.5 ✅,
|
|
629
|
-
P0.6 ✅, P0.7 ✅; P1.1 fase 1 (texto/input) ✅ parcial, P1.1 fase 2
|
|
630
|
-
(imagen load/error/fallbackSrc) ✅, P1.2 (overlays/back/inert/foco) ✅,
|
|
631
|
-
P1.3 fase 1-3 (Tabs/Accordion/Select/PinInput + controles + menú/
|
|
632
|
-
árbol/paginación) ✅, P1.5 (arnés de tests) ✅,
|
|
633
|
-
`persisted.ready`/`hydrated` ✅ y catálogo A2UI
|
|
634
|
-
Tabs/Modal/ChoicePicker/Icon ✅ (ADR-0206), superficie A2UI viva ✅
|
|
635
|
-
(ADR-0207), `checks` de validación ✅ (ADR-0208), `loadData` nativo
|
|
636
|
-
por defecto ✅ (ADR-0209), navegación ✅ (ADR-0210), formato A2UI ✅
|
|
637
|
-
(ADR-0211); red/offline fuera del core (ADR-0212). Paridad 114/114 y
|
|
638
|
-
unit 1.268 tras el cierre. El siguiente bloque es P1.4 (data layer) y,
|
|
639
|
-
en paralelo, la fase 3 nativa de list/scroll (requiere medición
|
|
640
|
-
horizontal/grid en Android y un list nativo en Linux).
|
|
641
|
-
|
|
642
|
-
| ID | Acción | Archivos | Esfuerzo | Aceptación | ADR |
|
|
643
|
-
| --- | --- | --- | --- | --- | --- |
|
|
644
|
-
| P0.1 | Arreglar subpaths de `@elurjs/core` en `gen-bundle` | `cli/gen-bundle.mjs`, `cli/gen-signals.mjs`, `src/index.ts`, `src/context/index.ts` | S (0.5-1 d) | `test:parity` 0 FAIL; lane `context.js`; assert de `__require` desconocido | ADR-0195 |
|
|
645
|
-
| P0.2 | Gate de verdad de la matriz + decisión por capacidad | `src/ir/schema.ts`, `tests/unit/test-capability-truth.test.ts`, `tests/divergences/manifest.json` | M (2-4 d) | Toda entrada `exact` tiene evidencia; `check-divergences` verde con presupuesto explícito | ADR-0196 |
|
|
646
|
-
| P0.3 | A2UI: `src` en Image, label en props, tests | `src/sdui/a2ui.ts`, `src/sdui/lower.ts`, `tests/unit/test-sdui-a2ui.test.ts` | S (0.5 d) | Imagen pinta en web/Android/Linux; label llega a a11y; 3 tests nuevos | — |
|
|
647
|
-
| P0.4 | CSPRNG para `getRandomValues`/`randomUUID` | ✅ `src/runtime/wintertc-globals.ts`, `native/rand/elur_random.h`, bridges Android/Linux, `hostAbi.ts` | M (1-2 d) | Token/UUID con fuente segura; fallback fail-closed; tests | ADR-0198 |
|
|
648
|
-
| P0.5 | Regenerar gates de documentación | `docs/doc-data.json`, `../v6-src/*.md`, `docs/ESTADO.md`, `docs/PENDIENTES.md` | S (0.5 d) | `gen-doc-data --check` y `check-doc-sync --check` verdes | ADR-0153 |
|
|
649
|
-
| P0.6 | `elur.app.json` en los 21 ejemplos + check en `doctor` | `examples/*`, `cli/doctor.mjs` | S (0.5 d) | `find examples -name elur.app.json` = 23; doctor falla si falta | — |
|
|
650
|
-
| P0.7 | Re-medir y actualizar claims (parity 114, unit 1203, props 64/events 22) | docs | S | Cifras reales en documento y README | ADR-0153 |
|
|
651
|
-
|
|
652
|
-
**Criterio de salida P0:** `typecheck`, `test`, `test:parity`, `check-divergences`, `gen-doc-data --check` y `check-doc-sync --check` verdes; bundle de Mareas ejecuta mount en qjs y Hermes.
|
|
653
|
-
|
|
654
|
-
### 7.2 P1 — Apps completas (4-6 semanas)
|
|
655
|
-
|
|
656
|
-
| ID | Acción | Esfuerzo | Dependencias | Aceptación |
|
|
657
|
-
| --- | --- | --- | --- | --- |
|
|
658
|
-
| P1.1 | Paridad nativa de props/eventos (19+5) | L (10-15 d) | P0.2 | Matriz exacta en los 3 hosts; tests JVM/GTK/jsdom + TCK |
|
|
659
|
-
| P1.2 | Overlays: `overlay-host`, Modal/Toast/BottomSheet, back interceptors, focus trap, inert | ✅ MVP 2026-11-13 (ADR-0200); faltan drag/Popover/Tooltip/SDUI | P1.1, P0.1 | Modal en raíz no cierra app; foco vuelve al trigger; a11y de fondo oculta; test e2e |
|
|
660
|
-
| P1.3 | Primitivas headless mínimas | ✅ fase 1-3 2026-11-14 (ADR-0203/0205/0210) | P1.2, `SduiMachine` | 14 controles DOM-free con tests; falta Combobox adaptativo/aria-activedescendant y SDUI/A2UI |
|
|
661
|
-
| P1.4 | Data layer: `@elurjs/query`, SSE/WebSocket, upload/download | L (10-15 d) | P0.1, `fetch` | ✅ default `loadData` nativo (ADR-0209); red/offline en query o paquete de red (ADR-0212); SSE en web/Android/Linux; subida con progreso |
|
|
662
|
-
| P1.5 | `@elurjs/universal/testing` (`renderTestScreen`, `fire`, queries) | M (3-5 d) | P0.1 | Tests de pantalla en <2 ms sin jsdom; docs y ejemplos |
|
|
663
|
-
| P1.6 | Cablear `viewport`/`windowInsets`/`reducedMotion` + NodeRef real | M (3-5 d) | ✅ entorno + NodeRef web + `loadData` nativo (ADR-0197/0202/0209); medida nativa de NodeRef pendiente | `viewport` cambia con rotación/resize; `safeArea`/`keyboardAvoiding` reciben insets; `measureInWindow` > 0 |
|
|
664
|
-
| P1.7 | `elur dev --dev-fast`, auto `gen-routes`, web reload, Linux | M (3-5 d) | ✅ dev-fast + auto gen-routes + web reload (ADR-0213/0214); falta watch Linux | Guardado→pantalla ~150 ms; rutas nuevas sin comando manual; Linux watch |
|
|
665
|
-
|
|
666
|
-
### 7.3 P2 — Ecosistema y SOTA (6-10 semanas)
|
|
667
|
-
|
|
668
|
-
| ID | Acción | Esfuerzo | Aceptación |
|
|
669
|
-
| --- | --- | --- | --- |
|
|
670
|
-
| P2.1 | A2UI completo + `mountA2uiSurface` O(1) | M | ✅ Tabs/Modal/ChoicePicker/Icon (ADR-0206) + superficie viva/`sendDataModel` (ADR-0207); faltan Video/AudioPlayer |
|
|
671
|
-
| P2.2 | SDUI app-level: `doc.lifecycle/queries/commands/forms/overlays`, `sduiScreen` | L | App multi-pantalla SDUI con router, caché ETag y lifecycle |
|
|
672
|
-
| P2.3 | AG-UI v1.0 + MCP Apps (nivel A iframe + nivel B A2UI) | M-L | `STATE_DELTA` actualiza signals; tool calls con confirmación; `ui://` con CSP |
|
|
673
|
-
| P2.4 | `elur assets` + PWA (manifest, SW, iconos, splash) | M | `elur assets` genera Android/Linux/Web; PWA offline básica |
|
|
674
|
-
| P2.5 | OTA firmada con rollback y bytecode diff | L | Bundle firmado, watchdog, rollback, snapshot restaurado |
|
|
675
|
-
| P2.6 | Brownfield Android (`ElurView`/`ElurFragment`) | M | Pantalla Elur embebida en app nativa con `setRoute`/`sendEvent` |
|
|
676
|
-
| P2.7 | View flattening + global pool Android | L | 40-60 % menos Views en pantallas típicas; pool por tipo |
|
|
677
|
-
| P2.8 | DevTools/error overlay unificado | M | Signals, árbol, router, módulos y query inspeccionables |
|
|
678
|
-
| P2.9 | Paquetes: secure-storage, web-browser, files, media, notifications, clipboard/share/haptics, sqlite, webview/maps | XL (continuo) | Cada paquete con def, binding Android/Linux/Web, manifest y TCK |
|
|
679
|
-
|
|
680
|
-
### 7.4 P3 — Plataformas y escala (continuo)
|
|
681
|
-
|
|
682
|
-
- iOS `targets/ios` (spike macOS CI).
|
|
683
|
-
- Windows `targets/windows` (WinUI 3; requiere Windows real).
|
|
684
|
-
- macOS/ChromeOS.
|
|
685
|
-
- Linux CESM real + canvas + semantics.actions.
|
|
686
|
-
- First frame pre-baked (IFR).
|
|
687
|
-
- 120 Hz/Perfetto/FrameTimeline.
|
|
688
|
-
- Tercero real que pase el TCK; repo público; npm; RFC.
|
|
689
|
-
- Device farm/SBOM/OTA de producto.
|
|
690
|
-
|
|
691
|
-
### 7.5 Secuencia recomendada
|
|
692
|
-
|
|
693
|
-
```text
|
|
694
|
-
Semana 1 P0.1 → P0.3 → P0.5 → P0.6 → P0.7
|
|
695
|
-
Semana 2 P0.2 → P0.4
|
|
696
|
-
Semanas 3-6 P1.1 → P1.6 → P1.7
|
|
697
|
-
Semanas 5-9 P1.2 → P1.3 → P1.5
|
|
698
|
-
Semanas 7-11 P1.4
|
|
699
|
-
Semanas 10-16 P2.1 → P2.2 → P2.3
|
|
700
|
-
Paralelo P2.9 (paquetes con consumidor real)
|
|
701
|
-
Después P2.4/P2.5/P2.6/P2.7/P2.8 y P3
|
|
702
|
-
```
|
|
703
|
-
|
|
704
|
-
### 7.6 Qué no hacer ahora
|
|
705
|
-
|
|
706
|
-
- No abrir iOS/Windows/macOS antes de que P0/P1 estén verdes.
|
|
707
|
-
- No implementar el renderer Skia del árbol completo antes del gate §19.3.
|
|
708
|
-
- No añadir opcodes por componente (`ADR-0145`).
|
|
709
|
-
- No prometer paridad “exacta” sin test en el backend.
|
|
710
|
-
- No convertir el core en un catálogo de plugins; los plugins van a `packages/`.
|
|
711
|
-
- No reescribir el documento maestro a v6 antes de que sus números sean verdaderos.
|
|
712
|
-
|
|
713
|
-
---
|
|
714
|
-
|
|
715
|
-
## 8. Reconciliación con el plan existente (`PENDIENTES-CORE-APPS-COMPLETAS.md`)
|
|
716
|
-
|
|
717
|
-
El plan del 2026-10-19 está **parcialmente ejecutado y desactualizado**: varias fases figuran sin marcar pero el código ya existe. Esta es la reconciliación verificada.
|
|
718
|
-
|
|
719
|
-
| Fase / ítem | Estado real | Evidencia | Acción |
|
|
720
|
-
| --- | --- | --- | --- |
|
|
721
|
-
| Fase 0 — npm/consumidor/agentes | ✅ hecha | `package.json` sin `private`, `bin`, `exports`, `files`; `cli/*` resuelven `cwd`; tarball 5.2 MB documentado | Solo falta publicar |
|
|
722
|
-
| 1.1 — core 4.0.5 + gen-signals | ✅ hecha | `@elurjs/core ^4.0.5`; `gen-signals` con Bun.build, queueMicrotask, exposes; tests core4 | — |
|
|
723
|
-
| 1.1 — `createScope` en reconciler | 🟡 superada | El reconciler conserva su `Scope` propio (más rico: árbol, postorder, idempotencia); no es deuda | Documentar la decisión |
|
|
724
|
-
| 1.2 — WinterTC | ✅ hecha | `src/runtime/wintertc-globals.ts`; instalado en backends/native; parity `test-wintertc.js`; CSPRNG host-backed (ADR-0198) | — |
|
|
725
|
-
| 1.3 — `fetch` universal | ✅ hecha | `src/native/http.ts`; `installFetchGlobals`; Headers/Request/Response/abort; baseUrl | Añadir multipart/streaming/WS (P1.4) |
|
|
726
|
-
| 2.1 — lifecycle/appState | ✅ hecha | `src/router/lifecycle.ts`; tests; Android/Web/Linux (ADR-0197) | — |
|
|
727
|
-
| 2.2 — page.data/loading/error | ✅ SSR/SPA/nativo | `kit-ssr`, `ScreenHost` loader/error; `loadData` nativo default (ADR-0209); falta `@elurjs/query` (caché/dedupe) | P1.4 |
|
|
728
|
-
| 2.3 — forms/persisted/detachedByTab | ✅ forms/detached; 🟡 persisted | `src/forms`, `src/app/state.ts`; `persisted` sin `ready`/migrate | P1.4 |
|
|
729
|
-
| 3.1 — props/text/input/switch/list/image/canvas/style | 🟡 | texto/input/fase 1 y `fallbackSrc`/load/error hechos; quedan 6 props de lista/scroll + `variant`; `canvas` Linux no; `arc/svgPath` web no | P1.1 fase 3 |
|
|
730
|
-
| 3.2 — entorno/safeArea/shells/pinch/NodeRef | 🟡 | viewport/insets/reducedMotion cableados; `NodeRef.measureInWindow` web >0; medida nativa, `drawer/split` y `pinch` pendientes | P1.6 |
|
|
731
|
-
| 4.1 — overlays/back | ✅ MVP | `src/overlays` (ADR-0200); hosts lazy, back/inert/foco; faltan drag/Popover/Tooltip | P1.2 |
|
|
732
|
-
| 4.2 — primitivas headless | ✅ | `src/primitives` (ADR-0203/0205/0210): 14 controles, getters + `render()`, tests DOM-free; falta Combobox adaptativo | — |
|
|
733
|
-
| 5 — A2UI bugs/live/catálogo | 🟡 | `url`/label, catálogo Tabs/Modal/ChoicePicker/Icon (ADR-0206) y superficie viva O(1) (ADR-0207) resueltos; Video/AudioPlayer pendientes | P2.1 |
|
|
734
|
-
| 5 — SDUI app-level / AG-UI | 🔴 | no `doc.lifecycle/queries/commands/forms/overlays`, no `sduiScreen`, no `agui.ts` | P2.2/P2.3 |
|
|
735
|
-
| 6 — Linux CESM | 🔴 | `elur_modules.cpp:429` stub | P3 |
|
|
736
|
-
| 6 — view flattening/pool | 🔴 | no hay phantom nodes/pool global | P2.7 |
|
|
737
|
-
| 6 — i18n/location/kv | 🟡 | 3 locales; `locate` solo; `persisted` sin ready | P2.9 |
|
|
738
|
-
| 6 — templates/assets | 🔴 | `create` sin `--template`; no `elur assets` | P2.4 |
|
|
739
|
-
| 6 — checklist final | 🟡 | typecheck/unit verdes; parity 10 FAIL; doc-sync rojo; npm pack no re-verificado | P0 |
|
|
740
|
-
|
|
741
|
-
**Conclusión:** el plan no debe reescribirse desde cero. Hay que **marcar lo hecho**, añadir la columna de evidencia y abrir los ítems nuevos (P0.1-P0.7, P1.1-P1.7) en el mismo formato.
|
|
742
|
-
|
|
743
|
-
---
|
|
744
|
-
|
|
745
|
-
## 9. Gates y métricas propuestas
|
|
746
|
-
|
|
747
|
-
### 9.1 Definition of Done (por feature)
|
|
748
|
-
|
|
749
|
-
1. Implementación en `src/` DOM-free si aplica, y en cada backend declarado.
|
|
750
|
-
2. Test unitario (`tests/unit`) y de paridad (`tests/parity`) si es DOM-free.
|
|
751
|
-
3. Test de backend real: jsdom (web), JVM (Android), GTK/TCK (Linux) o e2e cuando toque pintar.
|
|
752
|
-
4. Fila en `PROPS_CAPABILITY`/`EVENTS_CAPABILITY` con evidencia y nivel honesto.
|
|
753
|
-
5. ADR si cambia contrato o hay decisión no trivial.
|
|
754
|
-
6. Documento/bloque `docgen` actualizado y `check-doc-sync` verde.
|
|
755
|
-
7. Medición on-device si la afirmación es de rendimiento.
|
|
756
|
-
|
|
757
|
-
### 9.2 KPIs
|
|
758
|
-
|
|
759
|
-
| KPI | Hoy | Objetivo 2026-Q1 |
|
|
760
|
-
| --- | --- | --- |
|
|
761
|
-
| `test:parity` | 104/114 | 100 % |
|
|
762
|
-
| `check-doc-sync` | rojo (16) | verde |
|
|
763
|
-
| `gen-doc-data --check` | rojo | verde |
|
|
764
|
-
| Props `exact` con evidencia | ~35/64 | 64/64 |
|
|
765
|
-
| Eventos `exact` con evidencia | ~16/22 | 22/22 |
|
|
766
|
-
| Ejemplos con `elur.app.json` | 2/23 | 23/23 |
|
|
767
|
-
| Bundle embedded mount en qjs | falla | verde |
|
|
768
|
-
| Cold start real | sin medir | medido y publicado |
|
|
769
|
-
| Tercero TCK | 0 | 1 |
|
|
770
|
-
|
|
771
|
-
---
|
|
772
|
-
|
|
773
|
-
## 10. Anexos
|
|
774
|
-
|
|
775
|
-
### A. Archivos clave citados
|
|
776
|
-
|
|
777
|
-
- Empaquetado: `cli/gen-bundle.mjs`, `cli/gen-signals.mjs`, `src/router/screen-host.ts`, `src/context/index.ts`, `src/forms/index.ts`, `src/store/index.ts`.
|
|
778
|
-
- Matriz: `src/ir/schema.ts`, `src/ir/catalog.ts`, `tests/unit/test-divergences.test.ts`, `tests/divergences/manifest.json`.
|
|
779
|
-
- A2UI: `src/sdui/a2ui.ts`, `src/sdui/lower.ts`, `src/sdui/envelope.ts`, `src/sdui/intents.ts`.
|
|
780
|
-
- Runtime: `src/runtime/wintertc-globals.ts`, `src/runtime/environment.ts`, `src/native/http.ts`, `src/backends/native/index.ts`.
|
|
781
|
-
- Hosts: `targets/android/app/src/main/java/com/elur/universal/ElurRenderer.kt`, `MainActivity.kt`, `targets/linux/src/elur_applicator.cpp`, `elur_modules.cpp`.
|
|
782
|
-
- Paquetes: `packages/i18n`, `packages/kv`, `packages/location`.
|
|
783
|
-
- Plan: `docs/PENDIENTES-CORE-APPS-COMPLETAS.md`, `docs/PENDIENTES.md`, `docs/ESTADO.md`.
|
|
784
|
-
|
|
785
|
-
### B. Comandos reproducibles
|
|
786
|
-
|
|
787
|
-
```bash
|
|
788
|
-
# Salud
|
|
789
|
-
bun run typecheck
|
|
790
|
-
bun run test -- --maxWorkers=2
|
|
791
|
-
bun run test:parity
|
|
792
|
-
bun cli/check-divergences.mjs --report
|
|
793
|
-
bun cli/gen-doc-data.mjs --check
|
|
794
|
-
bun cli/check-doc-sync.mjs --check
|
|
795
|
-
|
|
796
|
-
# Reproducción del runtime roto
|
|
797
|
-
bun cli/gen-bundle.mjs examples/mareas/entry.ts /tmp/mareas.js --platform android
|
|
798
|
-
grep -n '__require("@elurjs/core' /tmp/mareas.js # → context
|
|
799
|
-
qjs --std -I generated/elurSignals.js /tmp/mareas.js # falla al montar
|
|
800
|
-
|
|
801
|
-
# Matriz
|
|
802
|
-
bun -e "import {PROPS_CAPABILITY,EVENTS_CAPABILITY} from './src/ir/schema.ts'; console.log(Object.keys(PROPS_CAPABILITY).length, Object.keys(EVENTS_CAPABILITY).length)"
|
|
803
|
-
```
|
|
804
|
-
|
|
805
|
-
### C. Fuentes externas consultadas (2026-11-07)
|
|
806
|
-
|
|
807
|
-
- React 19.2/19.3 y React Compiler 1.0: `react.dev/blog`, `react.dev/reference/react/Activity`, `react.dev/reference/react/ViewTransition`.
|
|
808
|
-
- React Native 0.84 / Expo SDK 55: `reactnative.dev/blog/2026/02/11/react-native-0.84`, `expo.dev/changelog/sdk-55`.
|
|
809
|
-
- Flutter 3.41 / Impeller: `flutter.dev/blog/flutter-darts-2026-roadmap`, `docs.flutter.dev/perf/impeller`.
|
|
810
|
-
- Lynx / Valdi: documentación pública y comparativas 2026 (Sparkling, Snap Valdi).
|
|
811
|
-
- A2UI / AG-UI / MCP Apps: `a2ui.org/introduction/agent-ui-ecosystem/`, `docs.ag-ui.com`, `developers.googleblog.com/a2ui-and-mcp-apps/`, SEP-1865.
|
|
812
|
-
- WinterTC ECMA-429: especificación pública.
|
|
813
|
-
- Tauri v2 / Electron / Compose Multiplatform: comparativas 2026.
|
|
814
|
-
|
|
815
|
-
### D. Glosario mínimo
|
|
816
|
-
|
|
817
|
-
- **IR**: árbol declarativo serializable (`IRDocument`).
|
|
818
|
-
- **DL**: Display List, protocolo de mutaciones (`DL_ABI 11`).
|
|
819
|
-
- **A2UI**: protocolo de UI declarativa para agentes.
|
|
820
|
-
- **AG-UI**: protocolo de eventos agente↔frontend.
|
|
821
|
-
- **MCP Apps**: extensión de MCP para UI `ui://` en iframe sandbox.
|
|
822
|
-
- **CESM**: memoria compartida cross-engine.
|
|
823
|
-
- **TCK**: suite de conformidad.
|
|
824
|
-
|
|
825
|
-
---
|
|
826
|
-
|
|
827
|
-
### E. Reproducciones exactas de esta edición
|
|
828
|
-
|
|
829
|
-
#### E.1 `mount-embedded` en QuickJS-ng (app routed)
|
|
830
|
-
|
|
831
|
-
```bash
|
|
832
|
-
qjs --std -I generated/elurSignals.js \
|
|
833
|
-
-I generated/elurRouter.js \
|
|
834
|
-
-I generated/elurMount.js \
|
|
835
|
-
tests/parity/mount-embedded.js
|
|
836
|
-
```
|
|
837
|
-
|
|
838
|
-
Salida relevante:
|
|
839
|
-
|
|
840
|
-
```text
|
|
841
|
-
[screen-host] error de pantalla: TypeError: not a function
|
|
842
|
-
[screen-host] error de pantalla: TypeError: not a function
|
|
843
|
-
[screen-host] error de pantalla: TypeError: not a function
|
|
844
|
-
FAIL: cadena async — not a function
|
|
845
|
-
FAIL: routed: op nav emitida tras settled
|
|
846
|
-
FAIL: routed: topEntry montada
|
|
847
|
-
PARITY-END mount-embedded passed=12 failed=3
|
|
848
|
-
```
|
|
849
|
-
|
|
850
|
-
#### E.2 `mount-embedded` en Hermes (ES5 → HBC → runtime)
|
|
851
|
-
|
|
852
|
-
```bash
|
|
853
|
-
cat generated/elurSignals.js generated/elurRouter.js generated/elurMount.js \
|
|
854
|
-
tests/parity/mount-embedded.js > /tmp/mount-embedded-combined.js
|
|
855
|
-
hermesc -emit-binary -O -out /tmp/mount-embedded.hbc /tmp/mount-embedded-combined.js
|
|
856
|
-
hermes /tmp/mount-embedded.hbc
|
|
857
|
-
```
|
|
858
|
-
|
|
859
|
-
Salida relevante:
|
|
860
|
-
|
|
861
|
-
```text
|
|
862
|
-
[screen-host] error de pantalla: TypeError: undefined is not a function
|
|
863
|
-
FAIL: cadena async — undefined is not a function
|
|
864
|
-
PARITY-END mount-embedded passed=10 failed=1
|
|
865
|
-
```
|
|
866
|
-
|
|
867
|
-
#### E.3 Build real de Mareas
|
|
868
|
-
|
|
869
|
-
```bash
|
|
870
|
-
bun cli/elur.mjs build --target linux \
|
|
871
|
-
--app examples/mareas/entry.ts --config examples/mareas/elur.app.json
|
|
872
|
-
# exit 0
|
|
873
|
-
|
|
874
|
-
grep -n '_pushComponentContext\|__require("@elurjs/core/context")' generated/elurApp.js
|
|
875
|
-
# 7757: import_context._pushComponentContext();
|
|
876
|
-
# 8145: import_context = __require("@elurjs/core/context");
|
|
877
|
-
|
|
878
|
-
grep -c '_pushComponentContext\|__require("@elurjs/core/context")' \
|
|
879
|
-
targets/android/app/src/main/assets/elurApp.js
|
|
880
|
-
# 0 (assets del 17-oct — por eso el APK viejo no lo tenía)
|
|
881
|
-
```
|
|
882
|
-
|
|
883
|
-
#### E.4 Reproducción A2UI (Image/CheckBox/TextField/DateTimeInput/Tabs)
|
|
884
|
-
|
|
885
|
-
Entrada: `Image { url, description, fit:"scaleDown" }`, `CheckBox`, `TextField variant:"longText"`, `DateTimeInput`, `Tabs`.
|
|
886
|
-
|
|
887
|
-
Salida del traductor:
|
|
888
|
-
|
|
889
|
-
```json
|
|
890
|
-
{
|
|
891
|
-
"id": "img", "type": "image",
|
|
892
|
-
"props": { "url": "https://x/a.png" },
|
|
893
|
-
"style": { "objectFit": "scale-down" },
|
|
894
|
-
"semantics": { "label": "Foto" }
|
|
895
|
-
}
|
|
896
|
-
```
|
|
897
|
-
|
|
898
|
-
Tras `lowerDocument`:
|
|
899
|
-
|
|
900
|
-
```text
|
|
901
|
-
lowered image props { url: "https://x/a.png" } // label perdido
|
|
902
|
-
```
|
|
903
|
-
|
|
904
|
-
El resto:
|
|
905
|
-
|
|
906
|
-
- `CheckBox` → `switch` sin `variant`.
|
|
907
|
-
- `TextField` `longText` → `text-input` sin `multiline`.
|
|
908
|
-
- `DateTimeInput` → `text-input` con warning, sin `keyboard:"date"`.
|
|
909
|
-
- `Tabs` → `text` literal `"[Tabs: no soportado]"`.
|
|
910
|
-
|
|
911
|
-
#### E.5 Escaneo heurístico de la matriz
|
|
912
|
-
|
|
913
|
-
El escaneo busca cada clave en `src/backends/web/index.ts`,
|
|
914
|
-
`ElurRenderer.kt` y `elur_applicator.cpp` (no prueba semántica, solo
|
|
915
|
-
presencia; la lectura de esas funciones es la evidencia principal).
|
|
916
|
-
|
|
917
|
-
```text
|
|
918
|
-
exact props total=43; con hueco en algún backend=20
|
|
919
|
-
(incluye `ref`, que se resuelve en el reconciliador, no en el backend)
|
|
920
|
-
|
|
921
|
-
maxLines web=true android=false linux=false
|
|
922
|
-
textOverflow web=true android=false linux=false
|
|
923
|
-
selectable web=true android=false linux=false
|
|
924
|
-
multiline web=true android=false linux=false
|
|
925
|
-
rows web=true android=false linux=false
|
|
926
|
-
readOnly web=true android=false linux=false
|
|
927
|
-
autoCapitalize web=true android=false linux=false
|
|
928
|
-
spellcheck web=true android=false linux=false
|
|
929
|
-
variant web=true android=false linux=false
|
|
930
|
-
horizontal web=true android=false linux=false
|
|
931
|
-
scrollLeft web=true android=false linux=false
|
|
932
|
-
paging web=true android=false linux=false
|
|
933
|
-
inverted web=true android=false linux=false
|
|
934
|
-
columns web=true android=false* linux=false
|
|
935
|
-
fallbackSrc web=true android=false linux=false
|
|
936
|
-
refreshing web=false android=false linux=false
|
|
937
|
-
endReachedThreshold web=false android=false linux=false
|
|
938
|
-
safeArea web=false android=false linux=false
|
|
939
|
-
keyboardAvoiding web=false android=false linux=false
|
|
940
|
-
|
|
941
|
-
event refresh web=false android=false linux=false
|
|
942
|
-
event endReached web=false android=false linux=false
|
|
943
|
-
event load web=false android=false linux=false
|
|
944
|
-
event error web=true* android=false linux=false
|
|
945
|
-
event pinch web=false android=false linux=false
|
|
946
|
-
```
|
|
947
|
-
|
|
948
|
-
`* columns` sí existe en `ElurCustomLayout.kt` para el delegado `layout`,
|
|
949
|
-
no para la prop `columns` de `list`. `error` solo aparece como listener
|
|
950
|
-
interno de `fallbackSrc`, no como evento de app.
|
|
951
|
-
|
|
952
|
-
#### E.6 Gates de documentación
|
|
953
|
-
|
|
954
|
-
```text
|
|
955
|
-
$ bun cli/gen-doc-data.mjs --check
|
|
956
|
-
[doc-data] drift en docs/doc-data.json: counts, capabilities, styleGroups
|
|
957
|
-
propsCapability: 44 → 64
|
|
958
|
-
eventsCapability: 17 → 22
|
|
959
|
-
universalEvents: 16 → 21
|
|
960
|
-
unitFiles: 117 → 121
|
|
961
|
-
parityLanes: 53 → 56
|
|
962
|
-
|
|
963
|
-
$ bun cli/check-doc-sync.mjs --check
|
|
964
|
-
[doc-sync] 16 drift(s)
|
|
965
|
-
exit 1
|
|
966
|
-
```
|
|
967
|
-
|
|
968
|
-
#### E.7 Lo que esta auditoría NO verificó
|
|
969
|
-
|
|
970
|
-
- Ejecución on-device del build del 19-oct o posterior (el APK y los
|
|
971
|
-
assets del árbol son del 17-oct).
|
|
972
|
-
- `npm pack`/`npm publish` real (solo se revisó `package.json`).
|
|
973
|
-
- Rendimiento en dispositivo físico, 120 Hz, Perfetto/FrameTimeline.
|
|
974
|
-
- `test:tck`/`test:semantics` completos fuera del carril de paridad.
|
|
975
|
-
- El código de los repos hermanos (`@elurjs/query`, `@elurjs/auth`,
|
|
976
|
-
`@elurjs/ui-brain`, `@elurjs/ionic`, `@elurjs/devtools`).
|
|
977
|
-
- Un host implementado por un tercero.
|
|
978
|
-
|
|
979
|
-
---
|
|
980
|
-
|
|
981
|
-
**Cierre:** Elur Universal ya tiene lo más difícil: un contrato propio, tres hosts reales, paridad geométrica, TCK y una capa SDUI/A2UI con ventaja estructural. Lo que falta no es “más framework”, es **cerrar la verdad y la capa de aplicación**: hacer que el bundle embebido funcione, que la matriz no mienta, que existan overlays/datos/primitivas/testing y que el ciclo de distribución sea real. Si se ejecuta P0 y P1 en ese orden, el resto (P2/P3) es ampliación, no rescate.
|