@despia-native/kernel 0.0.0-coming-soon.0 → 0.3.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/LICENSE +202 -0
- package/NOTICE +1414 -0
- package/README.md +16 -1
- package/dist/.dsx-build-stamp.json +7 -0
- package/dist/api-cohort.d.ts +27 -0
- package/dist/api-cohort.d.ts.map +1 -0
- package/dist/api-cohort.js +94 -0
- package/dist/api-cohort.js.map +1 -0
- package/dist/api.d.ts +454 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +2442 -0
- package/dist/api.js.map +1 -0
- package/dist/app-consts.d.ts +10 -0
- package/dist/app-consts.d.ts.map +1 -0
- package/dist/app-consts.js +39 -0
- package/dist/app-consts.js.map +1 -0
- package/dist/app-update.d.ts +12 -0
- package/dist/app-update.d.ts.map +1 -0
- package/dist/app-update.js +32 -0
- package/dist/app-update.js.map +1 -0
- package/dist/aria.d.ts +152 -0
- package/dist/aria.d.ts.map +1 -0
- package/dist/aria.js +524 -0
- package/dist/aria.js.map +1 -0
- package/dist/audio-core.d.ts +260 -0
- package/dist/audio-core.d.ts.map +1 -0
- package/dist/audio-core.js +1440 -0
- package/dist/audio-core.js.map +1 -0
- package/dist/audio-edit.d.ts +100 -0
- package/dist/audio-edit.d.ts.map +1 -0
- package/dist/audio-edit.js +489 -0
- package/dist/audio-edit.js.map +1 -0
- package/dist/audio-mix.d.ts +84 -0
- package/dist/audio-mix.d.ts.map +1 -0
- package/dist/audio-mix.js +393 -0
- package/dist/audio-mix.js.map +1 -0
- package/dist/auth-proof.d.ts +145 -0
- package/dist/auth-proof.d.ts.map +1 -0
- package/dist/auth-proof.js +644 -0
- package/dist/auth-proof.js.map +1 -0
- package/dist/availability-explain.d.ts +3 -0
- package/dist/availability-explain.d.ts.map +1 -0
- package/dist/availability-explain.js +322 -0
- package/dist/availability-explain.js.map +1 -0
- package/dist/availability.d.ts +246 -0
- package/dist/availability.d.ts.map +1 -0
- package/dist/availability.js +615 -0
- package/dist/availability.js.map +1 -0
- package/dist/background.d.ts +116 -0
- package/dist/background.d.ts.map +1 -0
- package/dist/background.js +235 -0
- package/dist/background.js.map +1 -0
- package/dist/boot-tables-flag.d.ts +2 -0
- package/dist/boot-tables-flag.d.ts.map +1 -0
- package/dist/boot-tables-flag.js +16 -0
- package/dist/boot-tables-flag.js.map +1 -0
- package/dist/boot-tables.d.ts +40 -0
- package/dist/boot-tables.d.ts.map +1 -0
- package/dist/boot-tables.js +102 -0
- package/dist/boot-tables.js.map +1 -0
- package/dist/border-edges.d.ts +5 -0
- package/dist/border-edges.d.ts.map +1 -0
- package/dist/border-edges.js +47 -0
- package/dist/border-edges.js.map +1 -0
- package/dist/bus.d.ts +1203 -0
- package/dist/bus.d.ts.map +1 -0
- package/dist/bus.js +2647 -0
- package/dist/bus.js.map +1 -0
- package/dist/calendar-core.d.ts +143 -0
- package/dist/calendar-core.d.ts.map +1 -0
- package/dist/calendar-core.js +372 -0
- package/dist/calendar-core.js.map +1 -0
- package/dist/call-value.d.ts +16 -0
- package/dist/call-value.d.ts.map +1 -0
- package/dist/call-value.js +54 -0
- package/dist/call-value.js.map +1 -0
- package/dist/camera-core.d.ts +222 -0
- package/dist/camera-core.d.ts.map +1 -0
- package/dist/camera-core.js +980 -0
- package/dist/camera-core.js.map +1 -0
- package/dist/canvas-core.d.ts +404 -0
- package/dist/canvas-core.d.ts.map +1 -0
- package/dist/canvas-core.js +2186 -0
- package/dist/canvas-core.js.map +1 -0
- package/dist/capture-core.d.ts +74 -0
- package/dist/capture-core.d.ts.map +1 -0
- package/dist/capture-core.js +158 -0
- package/dist/capture-core.js.map +1 -0
- package/dist/compile/codegen.d.ts +146 -0
- package/dist/compile/codegen.d.ts.map +1 -0
- package/dist/compile/codegen.js +1949 -0
- package/dist/compile/codegen.js.map +1 -0
- package/dist/compile/jstier.d.ts +44 -0
- package/dist/compile/jstier.d.ts.map +1 -0
- package/dist/compile/jstier.js +181 -0
- package/dist/compile/jstier.js.map +1 -0
- package/dist/compile/tier-door.d.ts +41 -0
- package/dist/compile/tier-door.d.ts.map +1 -0
- package/dist/compile/tier-door.js +167 -0
- package/dist/compile/tier-door.js.map +1 -0
- package/dist/compile/tier-realm.d.ts +49 -0
- package/dist/compile/tier-realm.d.ts.map +1 -0
- package/dist/compile/tier-realm.js +368 -0
- package/dist/compile/tier-realm.js.map +1 -0
- package/dist/compile/tier.d.ts +23 -0
- package/dist/compile/tier.d.ts.map +1 -0
- package/dist/compile/tier.js +157 -0
- package/dist/compile/tier.js.map +1 -0
- package/dist/compose-core.d.ts +86 -0
- package/dist/compose-core.d.ts.map +1 -0
- package/dist/compose-core.js +112 -0
- package/dist/compose-core.js.map +1 -0
- package/dist/config-validate.d.ts +31 -0
- package/dist/config-validate.d.ts.map +1 -0
- package/dist/config-validate.js +147 -0
- package/dist/config-validate.js.map +1 -0
- package/dist/config-values.d.ts +106 -0
- package/dist/config-values.d.ts.map +1 -0
- package/dist/config-values.js +340 -0
- package/dist/config-values.js.map +1 -0
- package/dist/contacts-core.d.ts +127 -0
- package/dist/contacts-core.d.ts.map +1 -0
- package/dist/contacts-core.js +211 -0
- package/dist/contacts-core.js.map +1 -0
- package/dist/content-transition.d.ts +58 -0
- package/dist/content-transition.d.ts.map +1 -0
- package/dist/content-transition.js +94 -0
- package/dist/content-transition.js.map +1 -0
- package/dist/controls-core.d.ts +227 -0
- package/dist/controls-core.d.ts.map +1 -0
- package/dist/controls-core.js +652 -0
- package/dist/controls-core.js.map +1 -0
- package/dist/cookies.d.ts +78 -0
- package/dist/cookies.d.ts.map +1 -0
- package/dist/cookies.js +265 -0
- package/dist/cookies.js.map +1 -0
- package/dist/corner-shape-core.d.ts +69 -0
- package/dist/corner-shape-core.d.ts.map +1 -0
- package/dist/corner-shape-core.js +261 -0
- package/dist/corner-shape-core.js.map +1 -0
- package/dist/crypto-core.d.ts +57 -0
- package/dist/crypto-core.d.ts.map +1 -0
- package/dist/crypto-core.js +128 -0
- package/dist/crypto-core.js.map +1 -0
- package/dist/dataviz.d.ts +436 -0
- package/dist/dataviz.d.ts.map +1 -0
- package/dist/dataviz.js +956 -0
- package/dist/dataviz.js.map +1 -0
- package/dist/debug.d.ts +293 -0
- package/dist/debug.d.ts.map +1 -0
- package/dist/debug.js +767 -0
- package/dist/debug.js.map +1 -0
- package/dist/device-ownership.d.ts +50 -0
- package/dist/device-ownership.d.ts.map +1 -0
- package/dist/device-ownership.js +105 -0
- package/dist/device-ownership.js.map +1 -0
- package/dist/effects.d.ts +86 -0
- package/dist/effects.d.ts.map +1 -0
- package/dist/effects.js +98 -0
- package/dist/effects.js.map +1 -0
- package/dist/element.d.ts +108 -0
- package/dist/element.d.ts.map +1 -0
- package/dist/element.js +63 -0
- package/dist/element.js.map +1 -0
- package/dist/file-watch.d.ts +16 -0
- package/dist/file-watch.d.ts.map +1 -0
- package/dist/file-watch.js +49 -0
- package/dist/file-watch.js.map +1 -0
- package/dist/filepaths.d.ts +72 -0
- package/dist/filepaths.d.ts.map +1 -0
- package/dist/filepaths.js +271 -0
- package/dist/filepaths.js.map +1 -0
- package/dist/film.d.ts +264 -0
- package/dist/film.d.ts.map +1 -0
- package/dist/film.js +313 -0
- package/dist/film.js.map +1 -0
- package/dist/fonts.d.ts +66 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.js +135 -0
- package/dist/fonts.js.map +1 -0
- package/dist/forms.d.ts +191 -0
- package/dist/forms.d.ts.map +1 -0
- package/dist/forms.js +663 -0
- package/dist/forms.js.map +1 -0
- package/dist/geo.d.ts +289 -0
- package/dist/geo.d.ts.map +1 -0
- package/dist/geo.js +460 -0
- package/dist/geo.js.map +1 -0
- package/dist/handler-announce.d.ts +46 -0
- package/dist/handler-announce.d.ts.map +1 -0
- package/dist/handler-announce.js +96 -0
- package/dist/handler-announce.js.map +1 -0
- package/dist/handoff.d.ts +71 -0
- package/dist/handoff.d.ts.map +1 -0
- package/dist/handoff.js +250 -0
- package/dist/handoff.js.map +1 -0
- package/dist/identity-durability.d.ts +76 -0
- package/dist/identity-durability.d.ts.map +1 -0
- package/dist/identity-durability.js +150 -0
- package/dist/identity-durability.js.map +1 -0
- package/dist/image-core.d.ts +240 -0
- package/dist/image-core.d.ts.map +1 -0
- package/dist/image-core.js +618 -0
- package/dist/image-core.js.map +1 -0
- package/dist/image-schemes.d.ts +10 -0
- package/dist/image-schemes.d.ts.map +1 -0
- package/dist/image-schemes.js +28 -0
- package/dist/image-schemes.js.map +1 -0
- package/dist/index.d.ts +143 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +299 -0
- package/dist/index.js.map +1 -0
- package/dist/ink-core.d.ts +53 -0
- package/dist/ink-core.d.ts.map +1 -0
- package/dist/ink-core.js +119 -0
- package/dist/ink-core.js.map +1 -0
- package/dist/input.d.ts +148 -0
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +358 -0
- package/dist/input.js.map +1 -0
- package/dist/integrity.d.ts +63 -0
- package/dist/integrity.d.ts.map +1 -0
- package/dist/integrity.js +150 -0
- package/dist/integrity.js.map +1 -0
- package/dist/intents.d.ts +95 -0
- package/dist/intents.d.ts.map +1 -0
- package/dist/intents.js +282 -0
- package/dist/intents.js.map +1 -0
- package/dist/interpolate-core.d.ts +37 -0
- package/dist/interpolate-core.d.ts.map +1 -0
- package/dist/interpolate-core.js +443 -0
- package/dist/interpolate-core.js.map +1 -0
- package/dist/jse/color.d.ts +12 -0
- package/dist/jse/color.d.ts.map +1 -0
- package/dist/jse/color.js +196 -0
- package/dist/jse/color.js.map +1 -0
- package/dist/jse/core.d.ts +54 -0
- package/dist/jse/core.d.ts.map +1 -0
- package/dist/jse/core.js +1519 -0
- package/dist/jse/core.js.map +1 -0
- package/dist/jse/dispatch.d.ts +28 -0
- package/dist/jse/dispatch.d.ts.map +1 -0
- package/dist/jse/dispatch.js +116 -0
- package/dist/jse/dispatch.js.map +1 -0
- package/dist/jse/highlight-grammar.d.ts +15 -0
- package/dist/jse/highlight-grammar.d.ts.map +1 -0
- package/dist/jse/highlight-grammar.js +161 -0
- package/dist/jse/highlight-grammar.js.map +1 -0
- package/dist/jse/highlight-grammars.generated.d.ts +2 -0
- package/dist/jse/highlight-grammars.generated.d.ts.map +1 -0
- package/dist/jse/highlight-grammars.generated.js +4 -0
- package/dist/jse/highlight-grammars.generated.js.map +1 -0
- package/dist/jse/highlight.d.ts +37 -0
- package/dist/jse/highlight.d.ts.map +1 -0
- package/dist/jse/highlight.js +323 -0
- package/dist/jse/highlight.js.map +1 -0
- package/dist/jse/jse.d.ts +674 -0
- package/dist/jse/jse.d.ts.map +1 -0
- package/dist/jse/jse.js +5841 -0
- package/dist/jse/jse.js.map +1 -0
- package/dist/jse/pathmatch.d.ts +10 -0
- package/dist/jse/pathmatch.d.ts.map +1 -0
- package/dist/jse/pathmatch.js +73 -0
- package/dist/jse/pathmatch.js.map +1 -0
- package/dist/jse/regex.d.ts +33 -0
- package/dist/jse/regex.d.ts.map +1 -0
- package/dist/jse/regex.js +375 -0
- package/dist/jse/regex.js.map +1 -0
- package/dist/jse/stdlib.d.ts +8 -0
- package/dist/jse/stdlib.d.ts.map +1 -0
- package/dist/jse/stdlib.js +765 -0
- package/dist/jse/stdlib.js.map +1 -0
- package/dist/jse/tokens.d.ts +102 -0
- package/dist/jse/tokens.d.ts.map +1 -0
- package/dist/jse/tokens.js +982 -0
- package/dist/jse/tokens.js.map +1 -0
- package/dist/jse/values.d.ts +206 -0
- package/dist/jse/values.d.ts.map +1 -0
- package/dist/jse/values.js +846 -0
- package/dist/jse/values.js.map +1 -0
- package/dist/keyboard.d.ts +196 -0
- package/dist/keyboard.d.ts.map +1 -0
- package/dist/keyboard.js +186 -0
- package/dist/keyboard.js.map +1 -0
- package/dist/label-choices.d.ts +3 -0
- package/dist/label-choices.d.ts.map +1 -0
- package/dist/label-choices.js +168 -0
- package/dist/label-choices.js.map +1 -0
- package/dist/language.d.ts +33 -0
- package/dist/language.d.ts.map +1 -0
- package/dist/language.js +50 -0
- package/dist/language.js.map +1 -0
- package/dist/length-units.d.ts +30 -0
- package/dist/length-units.d.ts.map +1 -0
- package/dist/length-units.js +83 -0
- package/dist/length-units.js.map +1 -0
- package/dist/lightsensor.d.ts +48 -0
- package/dist/lightsensor.d.ts.map +1 -0
- package/dist/lightsensor.js +97 -0
- package/dist/lightsensor.js.map +1 -0
- package/dist/link-refresh.d.ts +27 -0
- package/dist/link-refresh.d.ts.map +1 -0
- package/dist/link-refresh.js +166 -0
- package/dist/link-refresh.js.map +1 -0
- package/dist/link.d.ts +57 -0
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +333 -0
- package/dist/link.js.map +1 -0
- package/dist/linkpreview.d.ts +114 -0
- package/dist/linkpreview.d.ts.map +1 -0
- package/dist/linkpreview.js +439 -0
- package/dist/linkpreview.js.map +1 -0
- package/dist/list-presence.d.ts +32 -0
- package/dist/list-presence.d.ts.map +1 -0
- package/dist/list-presence.js +48 -0
- package/dist/list-presence.js.map +1 -0
- package/dist/live-stream.d.ts +27 -0
- package/dist/live-stream.d.ts.map +1 -0
- package/dist/live-stream.js +274 -0
- package/dist/live-stream.js.map +1 -0
- package/dist/livelogs.d.ts +134 -0
- package/dist/livelogs.d.ts.map +1 -0
- package/dist/livelogs.js +409 -0
- package/dist/livelogs.js.map +1 -0
- package/dist/logs.d.ts +80 -0
- package/dist/logs.d.ts.map +1 -0
- package/dist/logs.js +206 -0
- package/dist/logs.js.map +1 -0
- package/dist/mcp/apps.d.ts +82 -0
- package/dist/mcp/apps.d.ts.map +1 -0
- package/dist/mcp/apps.js +219 -0
- package/dist/mcp/apps.js.map +1 -0
- package/dist/mcp/entities.d.ts +25 -0
- package/dist/mcp/entities.d.ts.map +1 -0
- package/dist/mcp/entities.js +71 -0
- package/dist/mcp/entities.js.map +1 -0
- package/dist/mcp/result.d.ts +73 -0
- package/dist/mcp/result.d.ts.map +1 -0
- package/dist/mcp/result.js +119 -0
- package/dist/mcp/result.js.map +1 -0
- package/dist/mcp/webmcp.d.ts +162 -0
- package/dist/mcp/webmcp.d.ts.map +1 -0
- package/dist/mcp/webmcp.js +214 -0
- package/dist/mcp/webmcp.js.map +1 -0
- package/dist/mcp.d.ts +5 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +14 -0
- package/dist/mcp.js.map +1 -0
- package/dist/media-core.d.ts +191 -0
- package/dist/media-core.d.ts.map +1 -0
- package/dist/media-core.js +446 -0
- package/dist/media-core.js.map +1 -0
- package/dist/media-timeline-core.d.ts +94 -0
- package/dist/media-timeline-core.d.ts.map +1 -0
- package/dist/media-timeline-core.js +620 -0
- package/dist/media-timeline-core.js.map +1 -0
- package/dist/message.d.ts +42 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.js +582 -0
- package/dist/message.js.map +1 -0
- package/dist/missing-element.d.ts +29 -0
- package/dist/missing-element.d.ts.map +1 -0
- package/dist/missing-element.js +76 -0
- package/dist/missing-element.js.map +1 -0
- package/dist/motion-core.d.ts +160 -0
- package/dist/motion-core.d.ts.map +1 -0
- package/dist/motion-core.js +752 -0
- package/dist/motion-core.js.map +1 -0
- package/dist/motion-pose.d.ts +65 -0
- package/dist/motion-pose.d.ts.map +1 -0
- package/dist/motion-pose.js +143 -0
- package/dist/motion-pose.js.map +1 -0
- package/dist/motion.d.ts +132 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +260 -0
- package/dist/motion.js.map +1 -0
- package/dist/mount-core.d.ts +203 -0
- package/dist/mount-core.d.ts.map +1 -0
- package/dist/mount-core.js +437 -0
- package/dist/mount-core.js.map +1 -0
- package/dist/net-core.d.ts +110 -0
- package/dist/net-core.d.ts.map +1 -0
- package/dist/net-core.js +225 -0
- package/dist/net-core.js.map +1 -0
- package/dist/notify.d.ts +399 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +964 -0
- package/dist/notify.js.map +1 -0
- package/dist/orientation-binding.d.ts +39 -0
- package/dist/orientation-binding.d.ts.map +1 -0
- package/dist/orientation-binding.js +64 -0
- package/dist/orientation-binding.js.map +1 -0
- package/dist/orientation.d.ts +55 -0
- package/dist/orientation.d.ts.map +1 -0
- package/dist/orientation.js +89 -0
- package/dist/orientation.js.map +1 -0
- package/dist/ota.d.ts +52 -0
- package/dist/ota.d.ts.map +1 -0
- package/dist/ota.js +122 -0
- package/dist/ota.js.map +1 -0
- package/dist/passkeys.d.ts +91 -0
- package/dist/passkeys.d.ts.map +1 -0
- package/dist/passkeys.js +307 -0
- package/dist/passkeys.js.map +1 -0
- package/dist/payment.d.ts +85 -0
- package/dist/payment.d.ts.map +1 -0
- package/dist/payment.js +270 -0
- package/dist/payment.js.map +1 -0
- package/dist/pending-presenter.d.ts +31 -0
- package/dist/pending-presenter.d.ts.map +1 -0
- package/dist/pending-presenter.js +119 -0
- package/dist/pending-presenter.js.map +1 -0
- package/dist/permission-core.d.ts +59 -0
- package/dist/permission-core.d.ts.map +1 -0
- package/dist/permission-core.js +102 -0
- package/dist/permission-core.js.map +1 -0
- package/dist/persist.d.ts +169 -0
- package/dist/persist.d.ts.map +1 -0
- package/dist/persist.js +361 -0
- package/dist/persist.js.map +1 -0
- package/dist/phase-plan.d.ts +114 -0
- package/dist/phase-plan.d.ts.map +1 -0
- package/dist/phase-plan.js +837 -0
- package/dist/phase-plan.js.map +1 -0
- package/dist/playback-core.d.ts +64 -0
- package/dist/playback-core.d.ts.map +1 -0
- package/dist/playback-core.js +176 -0
- package/dist/playback-core.js.map +1 -0
- package/dist/player-sources.d.ts +12 -0
- package/dist/player-sources.d.ts.map +1 -0
- package/dist/player-sources.js +44 -0
- package/dist/player-sources.js.map +1 -0
- package/dist/proxy-denylist.d.ts +11 -0
- package/dist/proxy-denylist.d.ts.map +1 -0
- package/dist/proxy-denylist.js +44 -0
- package/dist/proxy-denylist.js.map +1 -0
- package/dist/public-config.d.ts +20 -0
- package/dist/public-config.d.ts.map +1 -0
- package/dist/public-config.js +109 -0
- package/dist/public-config.js.map +1 -0
- package/dist/qoe-core.d.ts +72 -0
- package/dist/qoe-core.d.ts.map +1 -0
- package/dist/qoe-core.js +113 -0
- package/dist/qoe-core.js.map +1 -0
- package/dist/reactive-request.d.ts +80 -0
- package/dist/reactive-request.d.ts.map +1 -0
- package/dist/reactive-request.js +192 -0
- package/dist/reactive-request.js.map +1 -0
- package/dist/read-cache.d.ts +129 -0
- package/dist/read-cache.d.ts.map +1 -0
- package/dist/read-cache.js +566 -0
- package/dist/read-cache.js.map +1 -0
- package/dist/recorder-core.d.ts +57 -0
- package/dist/recorder-core.d.ts.map +1 -0
- package/dist/recorder-core.js +136 -0
- package/dist/recorder-core.js.map +1 -0
- package/dist/ref.d.ts +41 -0
- package/dist/ref.d.ts.map +1 -0
- package/dist/ref.js +98 -0
- package/dist/ref.js.map +1 -0
- package/dist/refusal.d.ts +82 -0
- package/dist/refusal.d.ts.map +1 -0
- package/dist/refusal.js +218 -0
- package/dist/refusal.js.map +1 -0
- package/dist/region-insets.d.ts +61 -0
- package/dist/region-insets.d.ts.map +1 -0
- package/dist/region-insets.js +67 -0
- package/dist/region-insets.js.map +1 -0
- package/dist/rive-core.d.ts +323 -0
- package/dist/rive-core.d.ts.map +1 -0
- package/dist/rive-core.js +677 -0
- package/dist/rive-core.js.map +1 -0
- package/dist/runner.d.ts +595 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +4094 -0
- package/dist/runner.js.map +1 -0
- package/dist/scene/a11y.d.ts +11 -0
- package/dist/scene/a11y.d.ts.map +1 -0
- package/dist/scene/a11y.js +67 -0
- package/dist/scene/a11y.js.map +1 -0
- package/dist/scene/anim.d.ts +149 -0
- package/dist/scene/anim.d.ts.map +1 -0
- package/dist/scene/anim.js +396 -0
- package/dist/scene/anim.js.map +1 -0
- package/dist/scene/bind.d.ts +33 -0
- package/dist/scene/bind.d.ts.map +1 -0
- package/dist/scene/bind.js +66 -0
- package/dist/scene/bind.js.map +1 -0
- package/dist/scene/collide.d.ts +56 -0
- package/dist/scene/collide.d.ts.map +1 -0
- package/dist/scene/collide.js +146 -0
- package/dist/scene/collide.js.map +1 -0
- package/dist/scene/frame.d.ts +22 -0
- package/dist/scene/frame.d.ts.map +1 -0
- package/dist/scene/frame.js +57 -0
- package/dist/scene/frame.js.map +1 -0
- package/dist/scene/gltf.d.ts +79 -0
- package/dist/scene/gltf.d.ts.map +1 -0
- package/dist/scene/gltf.js +409 -0
- package/dist/scene/gltf.js.map +1 -0
- package/dist/scene/ir.d.ts +293 -0
- package/dist/scene/ir.d.ts.map +1 -0
- package/dist/scene/ir.js +692 -0
- package/dist/scene/ir.js.map +1 -0
- package/dist/scene/math.d.ts +50 -0
- package/dist/scene/math.d.ts.map +1 -0
- package/dist/scene/math.js +180 -0
- package/dist/scene/math.js.map +1 -0
- package/dist/scene/orbit.d.ts +19 -0
- package/dist/scene/orbit.d.ts.map +1 -0
- package/dist/scene/orbit.js +60 -0
- package/dist/scene/orbit.js.map +1 -0
- package/dist/scene/physics.d.ts +228 -0
- package/dist/scene/physics.d.ts.map +1 -0
- package/dist/scene/physics.js +1500 -0
- package/dist/scene/physics.js.map +1 -0
- package/dist/scene/registry.d.ts +85 -0
- package/dist/scene/registry.d.ts.map +1 -0
- package/dist/scene/registry.js +75 -0
- package/dist/scene/registry.js.map +1 -0
- package/dist/scene/skin.d.ts +82 -0
- package/dist/scene/skin.d.ts.map +1 -0
- package/dist/scene/skin.js +351 -0
- package/dist/scene/skin.js.map +1 -0
- package/dist/scene/sprite.d.ts +36 -0
- package/dist/scene/sprite.d.ts.map +1 -0
- package/dist/scene/sprite.js +107 -0
- package/dist/scene/sprite.js.map +1 -0
- package/dist/scene/viewer.d.ts +96 -0
- package/dist/scene/viewer.d.ts.map +1 -0
- package/dist/scene/viewer.js +235 -0
- package/dist/scene/viewer.js.map +1 -0
- package/dist/scoped-slots.d.ts +9 -0
- package/dist/scoped-slots.d.ts.map +1 -0
- package/dist/scoped-slots.js +42 -0
- package/dist/scoped-slots.js.map +1 -0
- package/dist/screen.d.ts +109 -0
- package/dist/screen.d.ts.map +1 -0
- package/dist/screen.js +309 -0
- package/dist/screen.js.map +1 -0
- package/dist/scroll.d.ts +525 -0
- package/dist/scroll.d.ts.map +1 -0
- package/dist/scroll.js +1226 -0
- package/dist/scroll.js.map +1 -0
- package/dist/settings-plane.d.ts +58 -0
- package/dist/settings-plane.d.ts.map +1 -0
- package/dist/settings-plane.js +86 -0
- package/dist/settings-plane.js.map +1 -0
- package/dist/share-inbox.d.ts +56 -0
- package/dist/share-inbox.d.ts.map +1 -0
- package/dist/share-inbox.js +114 -0
- package/dist/share-inbox.js.map +1 -0
- package/dist/shared-transition.d.ts +152 -0
- package/dist/shared-transition.d.ts.map +1 -0
- package/dist/shared-transition.js +257 -0
- package/dist/shared-transition.js.map +1 -0
- package/dist/sheet-content-padding.d.ts +24 -0
- package/dist/sheet-content-padding.d.ts.map +1 -0
- package/dist/sheet-content-padding.js +32 -0
- package/dist/sheet-content-padding.js.map +1 -0
- package/dist/shot-devices.d.ts +36 -0
- package/dist/shot-devices.d.ts.map +1 -0
- package/dist/shot-devices.js +90 -0
- package/dist/shot-devices.js.map +1 -0
- package/dist/shot-guards.d.ts +100 -0
- package/dist/shot-guards.d.ts.map +1 -0
- package/dist/shot-guards.js +260 -0
- package/dist/shot-guards.js.map +1 -0
- package/dist/shot-scope.d.ts +140 -0
- package/dist/shot-scope.d.ts.map +1 -0
- package/dist/shot-scope.js +302 -0
- package/dist/shot-scope.js.map +1 -0
- package/dist/slot-partition.d.ts +9 -0
- package/dist/slot-partition.d.ts.map +1 -0
- package/dist/slot-partition.js +38 -0
- package/dist/slot-partition.js.map +1 -0
- package/dist/snackbar.d.ts +165 -0
- package/dist/snackbar.d.ts.map +1 -0
- package/dist/snackbar.js +220 -0
- package/dist/snackbar.js.map +1 -0
- package/dist/socket.d.ts +96 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +370 -0
- package/dist/socket.js.map +1 -0
- package/dist/spotlight.d.ts +77 -0
- package/dist/spotlight.d.ts.map +1 -0
- package/dist/spotlight.js +174 -0
- package/dist/spotlight.js.map +1 -0
- package/dist/state-primitive.d.ts +37 -0
- package/dist/state-primitive.d.ts.map +1 -0
- package/dist/state-primitive.js +91 -0
- package/dist/state-primitive.js.map +1 -0
- package/dist/store-query.d.ts +25 -0
- package/dist/store-query.d.ts.map +1 -0
- package/dist/store-query.js +88 -0
- package/dist/store-query.js.map +1 -0
- package/dist/store-value.d.ts +48 -0
- package/dist/store-value.d.ts.map +1 -0
- package/dist/store-value.js +264 -0
- package/dist/store-value.js.map +1 -0
- package/dist/store-versioning.d.ts +70 -0
- package/dist/store-versioning.d.ts.map +1 -0
- package/dist/store-versioning.js +188 -0
- package/dist/store-versioning.js.map +1 -0
- package/dist/store.d.ts +282 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +1144 -0
- package/dist/store.js.map +1 -0
- package/dist/strings.d.ts +141 -0
- package/dist/strings.d.ts.map +1 -0
- package/dist/strings.js +581 -0
- package/dist/strings.js.map +1 -0
- package/dist/telemetry.d.ts +95 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +255 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/transform-core.d.ts +228 -0
- package/dist/transform-core.d.ts.map +1 -0
- package/dist/transform-core.js +921 -0
- package/dist/transform-core.js.map +1 -0
- package/dist/transition-core.d.ts +58 -0
- package/dist/transition-core.d.ts.map +1 -0
- package/dist/transition-core.js +352 -0
- package/dist/transition-core.js.map +1 -0
- package/dist/trim-trailing.d.ts +3 -0
- package/dist/trim-trailing.d.ts.map +1 -0
- package/dist/trim-trailing.js +14 -0
- package/dist/trim-trailing.js.map +1 -0
- package/dist/upload.d.ts +51 -0
- package/dist/upload.d.ts.map +1 -0
- package/dist/upload.js +68 -0
- package/dist/upload.js.map +1 -0
- package/dist/vendor-face.d.ts +44 -0
- package/dist/vendor-face.d.ts.map +1 -0
- package/dist/vendor-face.js +80 -0
- package/dist/vendor-face.js.map +1 -0
- package/dist/vendor-session.d.ts +166 -0
- package/dist/vendor-session.d.ts.map +1 -0
- package/dist/vendor-session.js +423 -0
- package/dist/vendor-session.js.map +1 -0
- package/dist/vendor-surface.d.ts +290 -0
- package/dist/vendor-surface.d.ts.map +1 -0
- package/dist/vendor-surface.js +439 -0
- package/dist/vendor-surface.js.map +1 -0
- package/dist/version-rules.generated.d.ts +17 -0
- package/dist/version-rules.generated.d.ts.map +1 -0
- package/dist/version-rules.generated.js +99 -0
- package/dist/version-rules.generated.js.map +1 -0
- package/dist/view-transition-core.d.ts +99 -0
- package/dist/view-transition-core.d.ts.map +1 -0
- package/dist/view-transition-core.js +127 -0
- package/dist/view-transition-core.js.map +1 -0
- package/dist/view-transition-door.d.ts +26 -0
- package/dist/view-transition-door.d.ts.map +1 -0
- package/dist/view-transition-door.js +88 -0
- package/dist/view-transition-door.js.map +1 -0
- package/dist/window-identity.d.ts +3 -0
- package/dist/window-identity.d.ts.map +1 -0
- package/dist/window-identity.js +27 -0
- package/dist/window-identity.js.map +1 -0
- package/package.json +141 -2
package/dist/bus.d.ts
ADDED
|
@@ -0,0 +1,1203 @@
|
|
|
1
|
+
import { type DsxElement } from "./element.ts";
|
|
2
|
+
import { isDict, type Dict } from "./jse/values.ts";
|
|
3
|
+
import { type DSXLogEntry } from "./logs.ts";
|
|
4
|
+
import { type SettingsBuild, type SettingsDiagnostic, type SettingsSpec } from "./settings-plane.ts";
|
|
5
|
+
export type Envelope = {
|
|
6
|
+
id: string | null;
|
|
7
|
+
scheme: string;
|
|
8
|
+
host: string;
|
|
9
|
+
event: string;
|
|
10
|
+
final: boolean;
|
|
11
|
+
data: unknown;
|
|
12
|
+
code: string | null;
|
|
13
|
+
recoverable: boolean | null;
|
|
14
|
+
message: string | null;
|
|
15
|
+
};
|
|
16
|
+
import { AvailabilityProbes, type AvailabilityReason, type AvailabilityTable, type Readiness } from "./availability.ts";
|
|
17
|
+
export type { AvailabilityReason, AvailabilityTable } from "./availability.ts";
|
|
18
|
+
export declare class ModuleCallError extends Error {
|
|
19
|
+
readonly code: string;
|
|
20
|
+
readonly data: unknown;
|
|
21
|
+
constructor(code: string, message: string, data?: unknown);
|
|
22
|
+
}
|
|
23
|
+
/** One client-reachable server route (generated/link.ts — `despia:client-link@1`). */
|
|
24
|
+
export interface LinkRoute {
|
|
25
|
+
chain: string;
|
|
26
|
+
action: string;
|
|
27
|
+
method: string;
|
|
28
|
+
path: string;
|
|
29
|
+
auth?: string;
|
|
30
|
+
reach?: readonly string[];
|
|
31
|
+
}
|
|
32
|
+
export declare const LinkSeam: {
|
|
33
|
+
/** the emitted client link table; empty until a surface installs it */
|
|
34
|
+
routes: readonly LinkRoute[];
|
|
35
|
+
/** the platform transport; null = no link, and the ladder falls through unchanged */
|
|
36
|
+
invoke: ((route: LinkRoute, args: Dict) => Promise<unknown>) | null;
|
|
37
|
+
/** the header source the app opted into (an auth provider): asked before each linked call and
|
|
38
|
+
* once more after a 401 (link.ts runLink). null = calls carry only the installer's headers. */
|
|
39
|
+
headerSource: ((attempt: "initial" | "retry") => Promise<Record<string, string>> | Record<string, string>) | null;
|
|
40
|
+
/** Bind an opted-in auth source to one session for both attempts of a call. */
|
|
41
|
+
headerSourceForCall: (() => (attempt: "initial" | "retry") => Promise<Record<string, string>> | Record<string, string>) | null;
|
|
42
|
+
};
|
|
43
|
+
/** The presentation door a renderer fills (proposals/module-component-presentation.md). A module's web
|
|
44
|
+
* facet presents its own component through the SAME machine the markup verb `dsx.component.present`
|
|
45
|
+
* drives: the renderer installs its router's handler here, and `DsxContext.component` forwards to it.
|
|
46
|
+
* The kernel names no DOM and no renderer; with nothing installed (a server pass, a headless test)
|
|
47
|
+
* the door is inert and `present` answers `false`, so a facet fails open instead of throwing. */
|
|
48
|
+
export declare const ComponentSeam: {
|
|
49
|
+
run: ((verb: "present" | "update" | "dismiss", name: string, opts: Dict, callerScheme: string) => void) | null;
|
|
50
|
+
/** The native `ui` handle's twin: the renderer answers the live surface a presented component
|
|
51
|
+
* stands on, so a facet can keep the facts it owns (a variable the component derives from) in
|
|
52
|
+
* step and call the component's own actions. null = no renderer, or nothing presented by that name. */
|
|
53
|
+
surface: ((name: string, callerScheme: string) => ComponentSurface | null) | null;
|
|
54
|
+
/** A component rendered where nothing can see it, for a facet that rasterises it (capture.offscreen).
|
|
55
|
+
* The renderer owns the hidden host and answers its node as an OPAQUE value (the kernel names no DOM);
|
|
56
|
+
* `settled` resolves once the tree has laid out at the requested size and its own assets have loaded,
|
|
57
|
+
* `dispose` releases the host, the store and everything the mount registered. null = no renderer. */
|
|
58
|
+
offscreen: ((name: string, opts: OffscreenOptions, callerScheme: string) => OffscreenMount | {
|
|
59
|
+
error: "unknown_component";
|
|
60
|
+
} | null) | null;
|
|
61
|
+
/** A component defined at RUNTIME from compiled IR (the native `dsx.stack.component(name, xml:)` twin): the
|
|
62
|
+
* facet compiles the markup with the public compiler and hands the IR (opaque to the kernel) and its sheet
|
|
63
|
+
* here; the renderer registers it under the caller's scheme so `present` and nested tags resolve it.
|
|
64
|
+
* `overTheAir` marks markup that did not ship in the binary, which the renderer runs on the JSE tier only.
|
|
65
|
+
* Answers whether a renderer took it. */
|
|
66
|
+
define: ((name: string, ir: unknown, opts: DefineOptions, callerScheme: string) => boolean) | null;
|
|
67
|
+
};
|
|
68
|
+
export interface DefineOptions {
|
|
69
|
+
css?: string;
|
|
70
|
+
overTheAir?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/** THE LAUNCH GATE (the native `dsx.boot.gate`, a boot-tier package's claim on the first mount). A module's
|
|
73
|
+
* `boot(dsx)` registers one through `dsx.boot.gate`; the renderer's boot runs them highest priority first and
|
|
74
|
+
* mounts nothing until the last has resolved (an app lock, a consent wall). The kernel names no gate and no
|
|
75
|
+
* renderer: it keeps the list, and the renderer that boots reads it. */
|
|
76
|
+
export interface BootGateHandle {
|
|
77
|
+
resolve(): void;
|
|
78
|
+
}
|
|
79
|
+
export interface BootGateSpec {
|
|
80
|
+
/** higher runs first; ties keep registration order */
|
|
81
|
+
priority?: number;
|
|
82
|
+
/** false registers nothing (the native `when:`) */
|
|
83
|
+
when?: boolean;
|
|
84
|
+
run(gate: BootGateHandle): void | Promise<void>;
|
|
85
|
+
}
|
|
86
|
+
export declare const BootGateSeam: {
|
|
87
|
+
gates: Array<{
|
|
88
|
+
scheme: string;
|
|
89
|
+
priority: number;
|
|
90
|
+
run: BootGateSpec["run"];
|
|
91
|
+
}>;
|
|
92
|
+
/** the gates in the order they run */
|
|
93
|
+
ordered(): Array<{
|
|
94
|
+
scheme: string;
|
|
95
|
+
priority: number;
|
|
96
|
+
run: BootGateSpec["run"];
|
|
97
|
+
}>;
|
|
98
|
+
};
|
|
99
|
+
/** THE LAUNCH COVER (the native `boot.splash` claim and its DSXBootCover). A module's `boot(dsx)` registers one
|
|
100
|
+
* through `dsx.boot.cover`; the renderer's boot runs it in the same turn as the first mount, so whatever it
|
|
101
|
+
* presents is on the very first painted frame, OVER the app, which builds beneath it. `settled` resolves once the
|
|
102
|
+
* first frame has settled; the cover leaves on its own terms after that (a minimum on screen is the module's).
|
|
103
|
+
* Unlike a gate it never holds the mount. A boot that adopted server markup runs no cover: that page painted
|
|
104
|
+
* before any script, and covering content already on screen is a flash, not a launch screen. */
|
|
105
|
+
export interface BootCoverHandle {
|
|
106
|
+
settled: Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
export interface BootCoverSpec {
|
|
109
|
+
/** false registers nothing (the native `when:`) */
|
|
110
|
+
when?: boolean;
|
|
111
|
+
run(cover: BootCoverHandle): void;
|
|
112
|
+
}
|
|
113
|
+
export declare const BootCoverSeam: {
|
|
114
|
+
covers: Array<{
|
|
115
|
+
scheme: string;
|
|
116
|
+
run: BootCoverSpec["run"];
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
119
|
+
export interface OffscreenOptions {
|
|
120
|
+
attributes?: Dict;
|
|
121
|
+
width: number;
|
|
122
|
+
height: number;
|
|
123
|
+
}
|
|
124
|
+
/** A detached component mount (see ComponentSeam.offscreen). */
|
|
125
|
+
export interface OffscreenMount {
|
|
126
|
+
node: unknown;
|
|
127
|
+
settled(): Promise<void>;
|
|
128
|
+
dispose(): void;
|
|
129
|
+
}
|
|
130
|
+
/** A presented component's state and action plane (the facet's `ui.set` / `ui.get` / `ui.action` / `ui.on`). */
|
|
131
|
+
export interface ComponentSurface {
|
|
132
|
+
set(name: string, value: unknown): void;
|
|
133
|
+
get(name: string): unknown;
|
|
134
|
+
action(name: string, args?: Dict): Promise<unknown>;
|
|
135
|
+
/** Hear an event the presented component raises (the presenter is its consumer, ruling P1): adds
|
|
136
|
+
* a handler, never replaces one (ruling P1.4 B2), and answers a disposer for exactly this one.
|
|
137
|
+
* Handlers drop when the presentation is dismissed. Twins: StackSurface.on, DsxSurface.on. */
|
|
138
|
+
on(event: string, handler: (payload: Dict) => void): () => void;
|
|
139
|
+
}
|
|
140
|
+
/** `unreachable` — the frozen pass-through spelling (durability P4, errors corpus). */
|
|
141
|
+
export declare const ERROR_UNREACHABLE = "unreachable";
|
|
142
|
+
export declare const ERROR_NOT_LOADED = "not_loaded";
|
|
143
|
+
export declare const ERROR_UNSUPPORTED_PLATFORM = "unsupported_platform";
|
|
144
|
+
/** typed absence (durability.md P4): this build dropped the module — the split out of
|
|
145
|
+
* not_loaded, driven by the build-excluded overlay (errors corpus) */
|
|
146
|
+
export declare const ERROR_EXCLUDED = "excluded";
|
|
147
|
+
/** the caller named an action the LOCAL module does not register — a caller bug, never absence */
|
|
148
|
+
export declare const ERROR_UNKNOWN_ACTION = "unknown_action";
|
|
149
|
+
/** typed absence (durability.md P4): the capability row PROMISES a local implementation on
|
|
150
|
+
* this facet and nothing stood it up (an unlinked framework, an OS floor, a dropped
|
|
151
|
+
* companion) — a different fact from "never here" and from "this build dropped it" */
|
|
152
|
+
export declare const ERROR_PREREQUISITES_MISSING = "prerequisites_missing";
|
|
153
|
+
/** One compiled capability row: the generated per-facet twin of an action's manifest contract. */
|
|
154
|
+
export interface FacetRow {
|
|
155
|
+
/** the facets whose runtime implements this action LOCALLY */
|
|
156
|
+
readonly provides: readonly string[];
|
|
157
|
+
/** the facets that may invoke it OVER THEIR LINK. Fail-closed: absent admits nobody,
|
|
158
|
+
* explicit `false` is the deny (facet-contracts.md — "a call a table doesn't admit
|
|
159
|
+
* never fires"). */
|
|
160
|
+
readonly reach?: readonly string[] | false;
|
|
161
|
+
}
|
|
162
|
+
/** chain → action → row. Exclusion-BLIND, like the platform catalog: a row survives its
|
|
163
|
+
* module being dropped, so absence is attributed instead of guessed. */
|
|
164
|
+
export type FacetTable = {
|
|
165
|
+
readonly [chain: string]: {
|
|
166
|
+
readonly [action: string]: FacetRow;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export declare const FacetSeam: {
|
|
170
|
+
/** the registered facet word THIS runtime binds; null = unbound (the honest default) */
|
|
171
|
+
facet: string | null;
|
|
172
|
+
/** the compiled capability table; empty until a build installs it */
|
|
173
|
+
rows: FacetTable;
|
|
174
|
+
/** the reach transport; null = no link, and the ladder answers the typed `unreachable`
|
|
175
|
+
* instead of hanging (facet-contracts.md: absence is load-bearing) */
|
|
176
|
+
invoke: ((call: {
|
|
177
|
+
chain: string;
|
|
178
|
+
action: string;
|
|
179
|
+
facet: string;
|
|
180
|
+
}, args: Dict) => Promise<unknown>) | null;
|
|
181
|
+
/** The row for one call, or null. THE ONE LOOKUP, named on all three lanes and pinned by the
|
|
182
|
+
* corpus `seamLookup` block, so no lane can answer it privately again.
|
|
183
|
+
*
|
|
184
|
+
* The CHAIN is lower cased, because a chain is a resolved IDENTITY and this kernel already
|
|
185
|
+
* folds identities exactly that way (`resolveChain` lower cases each segment, the route keys
|
|
186
|
+
* are lower cased, the build-excluded overlay is lower cased): the table's chain keys are
|
|
187
|
+
* canonically lower case. The ACTION key is matched VERBATIM first and lower cased second,
|
|
188
|
+
* because an action is NOT an identity, so a manifest's `heartRate` reaches its own key and
|
|
189
|
+
* an upper cased caller still reaches a lower cased one. Nothing case folds the TABLE.
|
|
190
|
+
*
|
|
191
|
+
* This kernel used to index `rows[chain]` raw while the Kotlin and Swift seams lower cased,
|
|
192
|
+
* and only its caller hid the difference: the funnel lower cases the identity before it asks,
|
|
193
|
+
* while `Context.facetFacts` on both native lanes hands the lookup the arriving spelling. */
|
|
194
|
+
row(chain: string, action: string): FacetRow | null;
|
|
195
|
+
};
|
|
196
|
+
/** The ladder's answer: the rung, and — for `unavailable` — exactly one frozen spelling
|
|
197
|
+
* from the corpus `codes` list. `via` names which transport rung two chose. */
|
|
198
|
+
export type FacetVerdict = {
|
|
199
|
+
rung: "local" | "reach" | "unavailable";
|
|
200
|
+
code: string | null;
|
|
201
|
+
via: "facet" | "link" | null;
|
|
202
|
+
};
|
|
203
|
+
/** Everything the ladder is allowed to know, as FACTS rather than a lazy interface — the
|
|
204
|
+
* caller resolves them once, the corpus states them literally, and nothing here can reach
|
|
205
|
+
* back into a registry. Cheap by construction: eight fields, no closures. */
|
|
206
|
+
export type FacetFacts = {
|
|
207
|
+
/** a registered module answers THIS action here */
|
|
208
|
+
local: boolean;
|
|
209
|
+
/** a module is registered for this chain (even if it does not answer this action) */
|
|
210
|
+
module: boolean;
|
|
211
|
+
/** the registered facet word this runtime binds; null = unbound */
|
|
212
|
+
facet: string | null;
|
|
213
|
+
/** the compiled capability row for this call, or null */
|
|
214
|
+
row: FacetRow | null;
|
|
215
|
+
/** a reach transport is installed */
|
|
216
|
+
transport: boolean;
|
|
217
|
+
/** a generated CLIENT-LINK route exists for this call AND its transport is installed */
|
|
218
|
+
linked: boolean;
|
|
219
|
+
/** the chain is in the build-excluded overlay */
|
|
220
|
+
excluded: boolean;
|
|
221
|
+
/** the platform catalog knows this scheme but not on this OS (the X-tier) */
|
|
222
|
+
offPlatform: boolean;
|
|
223
|
+
/** the platform catalog knows THIS ACTION and its manifest declares it off this OS
|
|
224
|
+
* (X2 §4 `platforms`). Separate from `offPlatform` because it OUTRANKS `unknown_action`:
|
|
225
|
+
* the module can be registered and correct here and still not run this action, and
|
|
226
|
+
* `unknown_action` names a caller bug the caller did not commit. Optional — a fact set
|
|
227
|
+
* only where an action-level row exists, so every existing construction is unchanged. */
|
|
228
|
+
offPlatformAction?: boolean;
|
|
229
|
+
};
|
|
230
|
+
/** The action catalog's key. The manifest spells a nested action path with dots and the wire
|
|
231
|
+
* spells it with slashes, so both fold to one spelling here rather than at each call site. */
|
|
232
|
+
export declare function actionPlatformKey(chain: string, action: string): string;
|
|
233
|
+
/**
|
|
234
|
+
* THE LADDER, pure (`OpenSource/Conformance/facets/facets.json` drives exactly this):
|
|
235
|
+
*
|
|
236
|
+
* 1. **local** — a registered module answering this action wins before anything else is
|
|
237
|
+
* consulted, so a partly-local chain never pays for the table.
|
|
238
|
+
* 2. **reach** — the row admits THIS facet ⇒ over the link; admitted with no transport ⇒
|
|
239
|
+
* the typed `unreachable`, never a hang. A generated client-link route is the same rung.
|
|
240
|
+
* 3. **typed unavailable** — the reason IS the code (durability.md P4). Precedence is frozen
|
|
241
|
+
* by the shipped funnels and deliberate: `unknown_action` (the module IS here — a caller
|
|
242
|
+
* bug, not absence — but an ACTION the catalog declares off this platform outranks even
|
|
243
|
+
* that, since the caller asked for something declared impossible) > `unsupported_platform`
|
|
244
|
+
* (the platform catalog, then the row that
|
|
245
|
+
* neither provides nor reaches us — the NEVER-ON-THIS-FACET class, which keeps its
|
|
246
|
+
* shipping name; the draft spelling `never_on_facet` is retired) > `excluded` (a build
|
|
247
|
+
* fact beats a runtime one) > `prerequisites_missing` (the row promised a local
|
|
248
|
+
* implementation nothing stood up) > `not_loaded` (nothing known at all).
|
|
249
|
+
*/
|
|
250
|
+
export declare function resolveFacetLadder(f: FacetFacts): FacetVerdict;
|
|
251
|
+
/** One recorded error — the wire shape plus ledger metadata. */
|
|
252
|
+
export type DSXErrorEntry = {
|
|
253
|
+
code: string;
|
|
254
|
+
message: string | null;
|
|
255
|
+
recoverable: boolean;
|
|
256
|
+
data: unknown;
|
|
257
|
+
/** the SOURCE scheme (whose error this is) */
|
|
258
|
+
scheme: string;
|
|
259
|
+
/** "raised" (ambient emission) | "call" (a failed bus call) | "uncaught" (a throw that
|
|
260
|
+
* unwound a markup action to the top with no catch) | "root" (a root-plan boot attempt
|
|
261
|
+
* failure — the fold consumes it and advances the plan; root-plan.md §failure attribution) */
|
|
262
|
+
origin: "raised" | "call" | "uncaught" | "root";
|
|
263
|
+
/** origin "call" only — false = fire-and-forget: the call site never saw the error */
|
|
264
|
+
delivered?: boolean;
|
|
265
|
+
at: number;
|
|
266
|
+
};
|
|
267
|
+
declare class DSXErrorLedgerImpl {
|
|
268
|
+
static readonly cap = 128;
|
|
269
|
+
private entries;
|
|
270
|
+
private total;
|
|
271
|
+
append(e: DSXErrorEntry): void;
|
|
272
|
+
/** the retained tail, oldest → newest (snapshot) */
|
|
273
|
+
recent(): DSXErrorEntry[];
|
|
274
|
+
/** monotonic count of every error ever recorded (survives ring eviction) */
|
|
275
|
+
count(): number;
|
|
276
|
+
/** dev tooling only — drops the retained tail (the monotonic count stays) */
|
|
277
|
+
clear(): void;
|
|
278
|
+
}
|
|
279
|
+
export declare const DSXErrors: DSXErrorLedgerImpl;
|
|
280
|
+
/** A module's handle on ONE `<socket>` block the calling component declares (proposals/audio-revamp.md section 5.7)
|
|
281
|
+
* Sockets stay component-scoped, and a module reaches one only through the call that names it.
|
|
282
|
+
* `send` is the block's own verb; `listen` sees every message before the page does and CONSUMES it by answering
|
|
283
|
+
* true (it never lands in `dsx.socket.<as>.data` and fires no on:message); the returned function stops listening. */
|
|
284
|
+
export type SocketPort = {
|
|
285
|
+
readonly as: string;
|
|
286
|
+
send(value: unknown): Dict;
|
|
287
|
+
listen(fn: (text: string, data: unknown) => boolean): () => void;
|
|
288
|
+
};
|
|
289
|
+
export type ActionContext = {
|
|
290
|
+
/** smart-typed argument read (NSNull → null) */
|
|
291
|
+
args(key?: string): unknown;
|
|
292
|
+
/** the calling component's `<socket as=…>` as a port, or null when it declares none by that name */
|
|
293
|
+
socket(as: string): SocketPort | null;
|
|
294
|
+
/** an `element` argument resolved to its handle (ADR 0025 D6), beside `args(key)`; throws `element_detached`
|
|
295
|
+
* for an unmounted element and `element_required` for a value that is not a handle. The web lane mints
|
|
296
|
+
* handles (dom/src/element.ts); a TS runtime with no mounted document (server, CLI) never holds one, so
|
|
297
|
+
* every element argument there is `element_required`. */
|
|
298
|
+
element(key: string): DsxElement;
|
|
299
|
+
/** the scheme the call arrived on and the action host: the web twin of the native
|
|
300
|
+
* `dsx.action.scheme` (NOT `dsx.command()?.scheme`, which on the native structured faces
|
|
301
|
+
* is the synthesized `dsx-call` carrier), so a catch-all handler (`actions["*"]`) can
|
|
302
|
+
* route a bare scheme-only call. */
|
|
303
|
+
scheme: string;
|
|
304
|
+
action: string;
|
|
305
|
+
/** terminal: success (first terminal wins) */
|
|
306
|
+
resolve(data?: unknown): void;
|
|
307
|
+
/** terminal: structured error */
|
|
308
|
+
error(code?: string, data?: unknown): void;
|
|
309
|
+
fail(code: string, message?: string, recoverable?: boolean, data?: unknown): void;
|
|
310
|
+
/** non-terminal call event: reaches THIS call's caller while its stream is open (Article 23.6) */
|
|
311
|
+
event(name: string, value?: unknown): void;
|
|
312
|
+
/** end this call's event stream: the operation it started is over; later emits are dropped and
|
|
313
|
+
* controls answer `call_ended`. A retained call that has not settled is settled by it (null); any
|
|
314
|
+
* other call keeps its own resolve or failure. Idempotent. */
|
|
315
|
+
end(): void;
|
|
316
|
+
/** what stopping THIS call does (the caller's `dsx.stop(call)`); receives this call's own context. Returns false when
|
|
317
|
+
* nothing was registered (a control context, or this call's stream already ended), as on the native lanes */
|
|
318
|
+
onStop(handler: ActionHandler): boolean;
|
|
319
|
+
/** what this call does when its caller invokes the control `name` on this call
|
|
320
|
+
* (`await dsx.module.<chain>.<action>.<name>(call, args)`); the handler receives the CONTROL's own context, whose resolve/fail
|
|
321
|
+
* settle the control, never this call. Reachable only while this call's stream is open. */
|
|
322
|
+
onControl(name: string, handler: ActionHandler): void;
|
|
323
|
+
/** A CALL THIS CALL HANDS ON (context-and-event-delivery.md, "A call a package hands on"): start
|
|
324
|
+
* `target` (`ctx.dsx.module.<chain>.<action>`) as a call this call holds, and make
|
|
325
|
+
* its declared events, controls and stop this call's own. Each callee event whose name this action
|
|
326
|
+
* declares (or that `opts.events` maps) is raised on this call; a payload field this action does not
|
|
327
|
+
* declare refuses the whole event, loudly (`invalid_param`). Each control this action declares (or that
|
|
328
|
+
* `opts.controls` maps) reaches the callee's call. Stopping this call stops the callee first, so what it
|
|
329
|
+
* emits on stop still reaches this call's caller; this call's stream closing for any other reason stops
|
|
330
|
+
* it too. The returned promise is the callee's terminal (its result, or its failure with the code). */
|
|
331
|
+
relay(target: unknown, args?: Dict, opts?: RelayOptions): Promise<unknown>;
|
|
332
|
+
/** cross-package broadcast, published on `<scheme>:<name>` (broadcastChannel) */
|
|
333
|
+
broadcast(name: string, value?: unknown): void;
|
|
334
|
+
/** the bound bus handle (modules reach other modules ONLY through this) */
|
|
335
|
+
dsx: DsxContext;
|
|
336
|
+
/** THE ATTESTED CALLER ORIGIN (`Bridge.Params.callerOrigin` on the natives): the origin
|
|
337
|
+
* (`scheme://host[:port]`, lowercased, default port omitted) of the frame that sent this call,
|
|
338
|
+
* stamped by the surface owner from the browser's own attribution (`MessageEvent.origin`) and
|
|
339
|
+
* never read from the call's arguments. `null` when the call did not come from a page (markup,
|
|
340
|
+
* another module, this app's own same-origin runtime); `"null"` when a page sent it but no
|
|
341
|
+
* origin could be attested. Authorize by comparing it with an exact allow-list. */
|
|
342
|
+
callerOrigin: string | null;
|
|
343
|
+
/** THE ATTESTED PAGE GENERATION (`Bridge.Params.pageGeneration` on the natives): which document
|
|
344
|
+
* of its surface sent this call, counted by the surface owner (the web preview counts the
|
|
345
|
+
* frame's loads) and never read from the call's arguments. An action that keeps per-page state
|
|
346
|
+
* compares it with the generation it recorded. `null` when the call did not come through a
|
|
347
|
+
* surface, or its owner counts no generations. */
|
|
348
|
+
pageGeneration: number | null;
|
|
349
|
+
};
|
|
350
|
+
/** The opaque origin's serialization (HTML "serialization of an origin"). */
|
|
351
|
+
export declare const OPAQUE_CALLER_ORIGIN = "null";
|
|
352
|
+
/** The one spelling of an attested caller origin (corpus web-surface/caller-origin.json; the
|
|
353
|
+
* natives' twins are CallerOrigin.swift / CallerOrigin.kt): `scheme://host[:port]`, lowercased,
|
|
354
|
+
* the scheme's default port omitted. Anything that is not a tuple origin is the opaque "null". */
|
|
355
|
+
export declare function normalizeCallerOrigin(serialized: string | null | undefined): string;
|
|
356
|
+
export type ActionHandler = (ctx: ActionContext) => unknown | Promise<unknown>;
|
|
357
|
+
/** How a call reaches its handler: stream events, fire-and-forget, and the calling component's sockets. */
|
|
358
|
+
export type CallOpts = {
|
|
359
|
+
events?: (name: string, value: unknown) => void;
|
|
360
|
+
/** receives the call's opaque value as soon as the call starts (Article 23.6). The value has no
|
|
361
|
+
* methods (grammar rule 1, ADR 0018): a package stops it with `dsx.stop(call)` and reaches a declared control
|
|
362
|
+
* with `dsx.module.<chain>.<action>.<control>(call, args)` (the kernel's ModuleRegistry.stop and .control). */
|
|
363
|
+
call?: (call: CallValue) => void;
|
|
364
|
+
fireAndForget?: boolean;
|
|
365
|
+
/** the caller HOLDS this call (the facet door: `dsx.module.<chain>.<action>(args, events, held)`). As on the
|
|
366
|
+
* native lanes, a retained action's handler that returns nothing is a stream start: the holder is settled by the
|
|
367
|
+
* call's real terminal (its resolve, failure or `end()`), never by an implicit null at dispatch. */
|
|
368
|
+
held?: boolean;
|
|
369
|
+
/** kernel-internal (relay): told when a retained call's stream ends by its `end()`. */
|
|
370
|
+
ended?: () => void;
|
|
371
|
+
/** kernel-internal (relay): the actions (`<chain>.<action>`) this call was handed on through. */
|
|
372
|
+
lineage?: readonly string[];
|
|
373
|
+
sockets?: (as: string) => SocketPort | null;
|
|
374
|
+
/** The surface owner's attested sender origin (`MessageEvent.origin`), never a value from the
|
|
375
|
+
* page's arguments. Absent: the call is not from a page and `ctx.callerOrigin` is null. Present
|
|
376
|
+
* (even null): the call is a page's, normalized, and an unattested one is the opaque "null". */
|
|
377
|
+
callerOrigin?: string | null;
|
|
378
|
+
/** The surface owner's page generation for the sending document; honoured only beside
|
|
379
|
+
* `callerOrigin` (a surface call), never from the page's arguments. */
|
|
380
|
+
pageGeneration?: number | null;
|
|
381
|
+
};
|
|
382
|
+
/** One call's value (constitution Article 23.6; grammar rule 1, ADR 0018): opaque, frozen, with no
|
|
383
|
+
* members. Everything done with it is reached through `dsx.`: `dsx.stop(call)` only stops listening
|
|
384
|
+
* (later events are dropped), never cancels; a control the action declares is
|
|
385
|
+
* `dsx.module.<chain>.<action>.<control>(call, args)`, and after the call's stream ended it rejects
|
|
386
|
+
* `call_ended`. */
|
|
387
|
+
export type CallValue = {
|
|
388
|
+
readonly __dsxCall?: never;
|
|
389
|
+
};
|
|
390
|
+
/** The run-time facts of one action (the generated call facts, `defineModule`'s `facts`): its declared
|
|
391
|
+
* call events with their top-level payload field names (`null`: the fields are not known, so not checked),
|
|
392
|
+
* its declared controls, and whether its stream outlives its settle. */
|
|
393
|
+
export type CallFacts = {
|
|
394
|
+
/** event name -> its declared payload field map (FieldSpec per field), null when it declares none */
|
|
395
|
+
events?: Readonly<Record<string, Readonly<Record<string, FieldSpec>> | null>>;
|
|
396
|
+
controls?: readonly string[];
|
|
397
|
+
retained?: boolean;
|
|
398
|
+
};
|
|
399
|
+
/** The optional arguments of `ctx.relay` (the same on Swift and Kotlin). */
|
|
400
|
+
export type RelayOptions = {
|
|
401
|
+
/** this action's event name -> the callee's event name. Default: every event this action declares, same
|
|
402
|
+
* name. A map replaces the default and only renames: with installed facts each name must be declared. */
|
|
403
|
+
events?: Readonly<Record<string, string>>;
|
|
404
|
+
/** this action's control name -> the callee's control name. Default: every control this action declares,
|
|
405
|
+
* same name. An empty map relays none. */
|
|
406
|
+
controls?: Readonly<Record<string, string>>;
|
|
407
|
+
/** reshapes or redacts a payload before the field check: (this action's event name, payload) -> payload */
|
|
408
|
+
event?: (name: string, payload: unknown) => unknown;
|
|
409
|
+
/** reshapes a control's arguments before they are sent; a throw fails the control with its code */
|
|
410
|
+
control?: (name: string, args: Dict) => Dict;
|
|
411
|
+
/** what this call does when a retained callee's stream ends (default: `end()`) */
|
|
412
|
+
ended?: () => void;
|
|
413
|
+
};
|
|
414
|
+
/** THE RELAY DEPTH LIMIT (a safety line, not an opinion): a chain of calls each handing on the next is refused
|
|
415
|
+
* past this many hops, as is any chain that comes back to an action already in it. Each hop runs inline on the
|
|
416
|
+
* main thread on the native lanes, so an unbounded chain is a stack overflow; no relay has a use past a handful. */
|
|
417
|
+
export declare const RELAY_DEPTH_LIMIT = 16;
|
|
418
|
+
/** One declared field of an event's payload (the call facts): its type word, whether it may be absent, and the
|
|
419
|
+
* nested fields of an object or the items of an array. */
|
|
420
|
+
export type FieldSpec = {
|
|
421
|
+
type?: unknown;
|
|
422
|
+
optional?: boolean;
|
|
423
|
+
fields?: Readonly<Record<string, FieldSpec>>;
|
|
424
|
+
items?: FieldSpec;
|
|
425
|
+
};
|
|
426
|
+
/** THE RELAY'S FIELD CHECK (constitution Article 28.13): the first place where `payload` is not what `fields`
|
|
427
|
+
* declares, at any depth, or null when it conforms. `fields` null means the event declares no payload map, so
|
|
428
|
+
* only an absent or empty payload conforms. The payload itself must be an object (null only when no field is
|
|
429
|
+
* required); a field not declared, a value of another type word, and an item of an array are each checked. */
|
|
430
|
+
export declare function relayPayloadViolation(payload: unknown, fields: Readonly<Record<string, FieldSpec>> | null): string | null;
|
|
431
|
+
export type WebModule = {
|
|
432
|
+
scheme: string;
|
|
433
|
+
/** the action keys whose call keeps its event stream after it settles (dsx.json `stream: true` or
|
|
434
|
+
* `retained: true`). Declaring the list installs this module's facts: every other action's stream
|
|
435
|
+
* closes at its settle. A module with no list keeps the open stream it always had. */
|
|
436
|
+
retained?: readonly string[];
|
|
437
|
+
/** the call facts of this module's actions (CallFacts), keyed like `actions`; the build generates the same
|
|
438
|
+
* facts from dsx.json for every module it bundles (`ModuleRegistry.setCallFacts`). */
|
|
439
|
+
facts?: Readonly<Record<string, CallFacts>>;
|
|
440
|
+
/** action table: host name (lowercased on dispatch) → handler. The special key `"*"` is a
|
|
441
|
+
* catch-all invoked when no named action matches — the web analogue of a native catch-all
|
|
442
|
+
* facet (it reads `ctx.scheme`/`ctx.action` to route a bare scheme-only call). */
|
|
443
|
+
actions: {
|
|
444
|
+
[name: string]: ActionHandler;
|
|
445
|
+
};
|
|
446
|
+
/** declared live state defaults — published under `global.<scheme>.<var>` */
|
|
447
|
+
state?: Dict;
|
|
448
|
+
/** bus hooks: event name → handler (claim answers by returning non-null) */
|
|
449
|
+
hooks?: {
|
|
450
|
+
[event: string]: (input: unknown) => unknown;
|
|
451
|
+
};
|
|
452
|
+
/** boot hook — runs at register time (the web "module load") */
|
|
453
|
+
boot?: (dsx: DsxContext) => void;
|
|
454
|
+
/** exported object handles (dsx.module.<scheme>.object(name)) */
|
|
455
|
+
objects?: {
|
|
456
|
+
[name: string]: () => unknown;
|
|
457
|
+
};
|
|
458
|
+
/** module-provided COMPONENTS (/web/18): Capitalized name → the platform facet
|
|
459
|
+
* implementation. Stored OPAQUELY — the kernel names no DOM (the renderer owns
|
|
460
|
+
* the mount contract, @despia-native/dom facet.ts); resolution rides facetComponent(). */
|
|
461
|
+
components?: {
|
|
462
|
+
[name: string]: unknown;
|
|
463
|
+
};
|
|
464
|
+
/** PER-MEMBER DEVICE PROBES (proposals/availability.md v2 7.4): member name (an action or a
|
|
465
|
+
* component) -> a synchronous, cheap, side-effect-free feature test that receives the call's
|
|
466
|
+
* arguments (absent when the whole member is asked), so one probe answers for the member and
|
|
467
|
+
* every variant. `false` means "the OS has it, this device or browser lacks it"
|
|
468
|
+
* (`unsupported_device`); a probe that throws, or no probe, answers available (fail-open). */
|
|
469
|
+
probe?: {
|
|
470
|
+
[member: string]: (args?: Readonly<Record<string, unknown>>) => boolean | null;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
export declare function defineModule(m: WebModule): WebModule;
|
|
474
|
+
/** Does this module ANSWER anything a caller can reach — an action, a bus hook, an object
|
|
475
|
+
* handle, a component, declared state or a boot block? The registry's capability answer
|
|
476
|
+
* (`isAvailable`, the `has()` builtin) reads this, never the bare table membership. */
|
|
477
|
+
export declare function moduleAnswers(m: WebModule): boolean;
|
|
478
|
+
/** The reserved MEMBER words — never actions. CLOSED and FROZEN (chains corpus):
|
|
479
|
+
* growth is a major-version event. */
|
|
480
|
+
export declare const RESERVED_MEMBERS: ReadonlySet<string>;
|
|
481
|
+
/** The identity-table view the fold resolves against — the live one comes from the
|
|
482
|
+
* registry (chainTable()); the conformance runner builds one from the corpus fixture. */
|
|
483
|
+
export type ChainTable = {
|
|
484
|
+
/** chain ∈ the identity set: registered chains ∪ build-excluded chains. */
|
|
485
|
+
isIdentity(chain: string): boolean;
|
|
486
|
+
/** chain ∈ the build-excluded overlay. */
|
|
487
|
+
isExcluded(chain: string): boolean;
|
|
488
|
+
};
|
|
489
|
+
export type ChainResolution = {
|
|
490
|
+
/** the resolved identity (lowercase dotted chain) */
|
|
491
|
+
chain: string;
|
|
492
|
+
/** the scheme AS CALLED: the chain as it arrived (ctx.scheme / error attribution
|
|
493
|
+
* echo this; identity stays `chain`) */
|
|
494
|
+
spelling: string;
|
|
495
|
+
/** the remaining action path segments, case preserved ([] = the bare call) */
|
|
496
|
+
action: string[];
|
|
497
|
+
/** the reserved-member route (the leading remainder token), or null — never an action */
|
|
498
|
+
member: string | null;
|
|
499
|
+
/** the remainder after the member ([] when none) */
|
|
500
|
+
rest: string[];
|
|
501
|
+
/** chain ∈ the identity set (false = module_not_found attribution against the head) */
|
|
502
|
+
known: boolean;
|
|
503
|
+
/** identity resolved through the excluded overlay */
|
|
504
|
+
excluded: boolean;
|
|
505
|
+
};
|
|
506
|
+
/** The corpus fold, pure. `segments` carry the caller's natural segmentation: the
|
|
507
|
+
* dotted-callee face splits on dots (head = the first segment); the wire face passes
|
|
508
|
+
* its scheme token as ONE head segment (an already-dotted chain token) plus the
|
|
509
|
+
* action-path segments. */
|
|
510
|
+
export declare function resolveChain(segments: readonly string[], table: ChainTable): ChainResolution;
|
|
511
|
+
/** How a delegate fold combines its listeners' answers — the twin of the natives'
|
|
512
|
+
* fold policy enum (Kotlin `ModuleRegistry.Combine` in Module.kt, Swift `DSXBus.Combine`
|
|
513
|
+
* in DSXBus.swift), same five cases and same
|
|
514
|
+
* meanings. This IS the difference the four deleted legacy verbs used to encode. */
|
|
515
|
+
export declare const COMBINE_POLICIES: readonly ["void", "any", "claim", "collect", "veto"];
|
|
516
|
+
export type Combine = (typeof COMBINE_POLICIES)[number];
|
|
517
|
+
/** THE RESIDENCE WORD of the generated platform-support column. A server-tier module
|
|
518
|
+
* provides a SERVICE, not a platform, so its row spells where it lives instead of leaving
|
|
519
|
+
* the column empty (`DSXGraph.SERVER_RESIDENCE` writes it into all four maps; the twins
|
|
520
|
+
* that accept and ignore it are `DesktopPackageCatalog.parse`, `ModuleRegistry.platformSupport`
|
|
521
|
+
* on Android and its `didSet` on iOS). It is a residence, never a platform: it must never
|
|
522
|
+
* satisfy the `includes(os)` test and must never reach a caller as a supportedPlatforms
|
|
523
|
+
* entry, so it is dropped at the one seam the catalog comes through. */
|
|
524
|
+
export declare const SERVER_RESIDENCE = "provides: server";
|
|
525
|
+
type AmbientErrorOpts = {
|
|
526
|
+
message?: string | null;
|
|
527
|
+
recoverable?: boolean;
|
|
528
|
+
data?: unknown;
|
|
529
|
+
origin?: "raised" | "uncaught";
|
|
530
|
+
};
|
|
531
|
+
export declare class ModuleRegistryImpl {
|
|
532
|
+
private modules;
|
|
533
|
+
/** scheme (lowercased) -> action (lowercased, dotted for groups) -> facts; a scheme with no row has no
|
|
534
|
+
* installed facts (a dynamic module, a kernel test), and a relay from it carries only explicit maps. */
|
|
535
|
+
private callFacts;
|
|
536
|
+
private hooks;
|
|
537
|
+
/** Who asked to hear when a point gains its first listener or loses its last (`observeWatchers`). */
|
|
538
|
+
private watcherObservers;
|
|
539
|
+
/** the build-excluded overlay (facet-contracts.md build visibility): chain → its
|
|
540
|
+
* DespiaExcluded-shaped entry. Part of the fold's identity set so an excluded child
|
|
541
|
+
* still resolves for attribution — never a phantom action on its parent. */
|
|
542
|
+
private excludedIdentities;
|
|
543
|
+
/** MODULE CONFIG — scheme → its `config.json` values, the twin of the natives' compiled
|
|
544
|
+
* `GeneratedConfigRaw`. Populated from the build manifest (`setModuleConfig`, fed by
|
|
545
|
+
* the generated module config), exactly the way `setPlatformSupport`
|
|
546
|
+
* fills the platform catalog for the same reason: both natives can compile a table into the
|
|
547
|
+
* binary and this renderer has no compile step to hide one in. Its absence was not a missing
|
|
548
|
+
* nicety — twelve web facets read `dsx.config?.<key>` with a fallback that always won, and
|
|
549
|
+
* Firebase, PostHog, Net, Media and Files each wrote in their own headers that "a web facet
|
|
550
|
+
* has no config plane" and then invented a different substitute. Empty until a host installs
|
|
551
|
+
* it, so a bare kernel keeps every one of those fallbacks working unchanged. */
|
|
552
|
+
private moduleConfig;
|
|
553
|
+
/** THE SETTINGS PLANE (settings-plane.ts): each package's declared setting rows (rules, setters, boot
|
|
554
|
+
* setters) and the build the binary is, from the build manifest; then the two layers above the build
|
|
555
|
+
* table, remote and runtime, each written only through the gate. `configFor` reads build < remote < runtime. */
|
|
556
|
+
private settingsSpecs;
|
|
557
|
+
private pendingSettings;
|
|
558
|
+
private readPendingSettings;
|
|
559
|
+
private settingsBuild;
|
|
560
|
+
private remoteSettings;
|
|
561
|
+
private runtimeSettings;
|
|
562
|
+
/** THE PUBLIC CONFIG TABLE (public-config.ts): the settings a page may read as `dsx.config.<chain>.<key>`. */
|
|
563
|
+
private publicConfig;
|
|
564
|
+
/** schemes whose CURRENT registrant arrived via `register(…, { fallback: true })` —
|
|
565
|
+
* a later provided module replaces it and clears the mark; a later fallback may too. */
|
|
566
|
+
private fallbackSchemes;
|
|
567
|
+
/** platform catalog — schemes that exist in the product but not on this OS (X-tier),
|
|
568
|
+
* each mapped to the platforms that DO implement it. Populated from the build manifest
|
|
569
|
+
* (`setPlatformSupport`) so `unsupported_platform` is honest. PRE-FILTERED by design: a
|
|
570
|
+
* chain is in this map only when the current OS is absent from its list, which is what
|
|
571
|
+
* lets `offPlatform` be a `.has()` and the ladder stay a pure function of facts. */
|
|
572
|
+
readonly unsupportedPlatforms: Map<string, string[]>;
|
|
573
|
+
/** the same, keyed "<chain>.<action>". The generated catalog is DENSE (K10): every declared
|
|
574
|
+
* action has a row, so a platform absent from one is a declared refusal rather than a hole,
|
|
575
|
+
* and a declared action with no handler here can no longer read as the typo it is not. This
|
|
576
|
+
* map stays PRE-FILTERED like its sibling above: a row survives the fold only when the
|
|
577
|
+
* current OS is absent from the action's list. */
|
|
578
|
+
readonly unsupportedActionPlatforms: Map<string, string[]>;
|
|
579
|
+
/** module-call diagnostics funnel: true while `module.callFailed` hooks are delivering
|
|
580
|
+
* (fire is synchronous), so a hook whose own body makes a failing call can't feed the
|
|
581
|
+
* funnel its own output (fire → hook → failing call → fire → …). */
|
|
582
|
+
private reportingCallFailure;
|
|
583
|
+
/** EVERY module-call failure lands here — the web twin of Context.reportCallFailure
|
|
584
|
+
* (Swift/Kotlin): a console.warn (the web's kernelLog), a LEDGER entry (origin "call" —
|
|
585
|
+
* the error system's unified record, error-system.md §3.3a), and the `module.callFailed`
|
|
586
|
+
* bus event, payload { scheme, action, code, data?, delivered } — the global observer
|
|
587
|
+
* seam (`dsx.delegate.listen("module.callFailed")`) for dev tooling. `delivered: false` marks a
|
|
588
|
+
* `.post` (fire-and-forget) failure: the call site discarded the rejection by shape,
|
|
589
|
+
* so this funnel is the only place it can surface. Observing never swallows — the
|
|
590
|
+
* awaited caller still gets the typed ModuleCallError rejection. `message`/`recoverable`
|
|
591
|
+
* arrive from the handler's own `fail(...)` when it authored them (full fidelity in the
|
|
592
|
+
* record even where the caller envelope stays narrow). */
|
|
593
|
+
private reportCallFailure;
|
|
594
|
+
/** The AMBIENT error hat: the fan-out is `reportAmbient` (above the class), with `module.error` sent through this
|
|
595
|
+
* registry's delegate fold. */
|
|
596
|
+
reportAmbientError(scheme: string, code: string, opts?: AmbientErrorOpts): void;
|
|
597
|
+
/** Install the build's call facts (scheme -> action -> CallFacts), generated from each package's dsx.json. */
|
|
598
|
+
setCallFacts(table: Readonly<Record<string, Readonly<Record<string, CallFacts>>>>): void;
|
|
599
|
+
/** The facts of `<scheme>.<action>`: null when the scheme has no installed facts. */
|
|
600
|
+
callFactsOf(scheme: string, action: string): CallFacts | null;
|
|
601
|
+
/** The generated barrier facts in force: chain -> its grant row, frozen into the kernel by `registerBoot`. */
|
|
602
|
+
private barrierGrants;
|
|
603
|
+
/** The generated facts' module objects: chain -> the module OBJECT the bootloader passes for it. */
|
|
604
|
+
private barrierGranted;
|
|
605
|
+
/** the module the boot loop is registering right now: only that call is the boot's own */
|
|
606
|
+
private bootEntry;
|
|
607
|
+
/** the declaring chains registered in the current boot (a second registrant of one is refused) */
|
|
608
|
+
private bootRegistered;
|
|
609
|
+
/** the first boot's facts, a fingerprint of them: they never change afterwards */
|
|
610
|
+
private barrierFirst;
|
|
611
|
+
/** THE BOOT REGISTRATION. `bootDsx` hands its module list here with the build's generated barrier facts
|
|
612
|
+
* (chain -> { module, components, secure }, from each package's `presentation.barrier` declaration); each
|
|
613
|
+
* module of the list registers through the loop's own call, the only place an identity is minted WITH a
|
|
614
|
+
* grant. The FIRST boot installs the facts and they never change after it, as on Swift and Kotlin: a later
|
|
615
|
+
* boot whose facts differ is ignored and logged `[Barrier] barrier facts install after boot refused`
|
|
616
|
+
* (corpus router/barrier.json C32), so no later boot can widen a grant or take one away from a package
|
|
617
|
+
* whose barrier is up. A later boot with the same facts is the same boot's facts. No App.json key is read.
|
|
618
|
+
* Registration order and every other rule are `register`'s own. */
|
|
619
|
+
registerBoot(modules: readonly WebModule[], barrier?: BarrierBootInput): void;
|
|
620
|
+
/** The renderer binds the document's barrier ledger here, ONCE per document: a second bind is
|
|
621
|
+
* refused and logged, so no later script can stand in front of the ledger the router bound. The
|
|
622
|
+
* slot itself is module-private and never exported. Answers whether it bound. */
|
|
623
|
+
bindBarrierLedger(door: BarrierDoor): boolean;
|
|
624
|
+
register(module: WebModule, opts?: {
|
|
625
|
+
fallback?: boolean;
|
|
626
|
+
}): void;
|
|
627
|
+
/** A ROUTE-TABLE ENTRY IS NOT A CAPABILITY. A module lands in the table the moment it
|
|
628
|
+
* registers, whether or not it carries anything — so a module registered with an empty
|
|
629
|
+
* action table (a licence decision, a build that stripped its facet, a surface it means to
|
|
630
|
+
* add later) used to read `has(scheme) === true` while every call into it answered
|
|
631
|
+
* `unknown_action`. The honest answer is the live one: available when the module ANSWERS —
|
|
632
|
+
* an action, a hook, an object handle, a component, declared state or a boot block
|
|
633
|
+
* (`moduleAnswers`). The Kotlin and Swift registries answer identically; pinned by
|
|
634
|
+
* Conformance/errors/errors.json (`schemeAvailable`, the hollow-module case). */
|
|
635
|
+
isAvailable(scheme: string): boolean;
|
|
636
|
+
/** the per-member probe cache; `version` is the reactive tick */
|
|
637
|
+
readonly probes: AvailabilityProbes;
|
|
638
|
+
/** v2.1: the live conditions each module published (scheme -> code -> fact), and the app-scoped
|
|
639
|
+
* ones (`offline` only), and the live degradations (member key -> id) */
|
|
640
|
+
private liveConditions;
|
|
641
|
+
private appConditions;
|
|
642
|
+
private appConditionOwners;
|
|
643
|
+
private liveDegradations;
|
|
644
|
+
/** the target row NAME this runtime is (readiness reads its `remedies` and `floor`) */
|
|
645
|
+
private targetName;
|
|
646
|
+
/** v2.1 D9: a module publishes (`data`) or clears (`null`) one live condition. Unknown codes are
|
|
647
|
+
* refused loudly (the vocabulary is closed); `scope: "app"` is admitted for `offline` only. */
|
|
648
|
+
setCondition(scheme: string, code: string, data: {
|
|
649
|
+
setting?: string | null;
|
|
650
|
+
inCall?: boolean;
|
|
651
|
+
members?: readonly string[] | null;
|
|
652
|
+
scope?: string;
|
|
653
|
+
pending?: boolean;
|
|
654
|
+
} | null): boolean;
|
|
655
|
+
/** v2.1 D5: a lane publishes (or clears with null) a live named degradation for one member. */
|
|
656
|
+
setDegradation(scheme: string, member: string, id: string | null): boolean;
|
|
657
|
+
/** the live facts the readiness fold reads for one member. BLOCK-FORM FOLD (the plane's convention,
|
|
658
|
+
* 20091f1309): a class method survives tree shaking, so its body sits under the guard, or its
|
|
659
|
+
* DSXStrings reads keep strings.ts and message.ts (about 5 KB gz) in every embed that never asks a verdict. */
|
|
660
|
+
private readinessFacts;
|
|
661
|
+
/** the generated member table (`DespiaAvailability.generated.json`); empty until a host installs it */
|
|
662
|
+
private availabilityTable;
|
|
663
|
+
/** lowercase member key -> the table's own spelling (components keep their PascalCase) */
|
|
664
|
+
private memberIndex;
|
|
665
|
+
/** the constraint values THIS runtime is: a TargetRow.values */
|
|
666
|
+
private targetValues;
|
|
667
|
+
/** this runtime's OS version ("17.2"; an Android API level "34"); null = unknown, fail-open */
|
|
668
|
+
osVersion: string | null;
|
|
669
|
+
/** The build seam for the MEMBER TABLE: the generated file verbatim, plus which of its target
|
|
670
|
+
* rows this runtime is (by name; default the app target of this OS). The platform maps the
|
|
671
|
+
* call ladder reads are derived from the same rows, so the table is the one source. */
|
|
672
|
+
setAvailabilityTable(table: AvailabilityTable, opts?: {
|
|
673
|
+
target?: string;
|
|
674
|
+
osVersion?: string | null;
|
|
675
|
+
}): void;
|
|
676
|
+
private findHandler;
|
|
677
|
+
private hasComponent;
|
|
678
|
+
/** the facts a caller knows: the target's values, the excluded overlay, the OS, the live probes */
|
|
679
|
+
private environment;
|
|
680
|
+
private rowKey;
|
|
681
|
+
/** The member's answer, through the ONE function. A member the table does not know gets a row
|
|
682
|
+
* from the live registry (its own row only, v2 5.2); a member nothing knows is `no` with no
|
|
683
|
+
* reason (the call fails `unknown_action` / `not_loaded`, which are not availability). */
|
|
684
|
+
private memberAnswer;
|
|
685
|
+
/** The runtime shape an author reads: `{ available, reason, via }` (depends = unknown facts =
|
|
686
|
+
* available, and NOT settled), then the v2.1 readiness fields for `key` (`chain` when null). */
|
|
687
|
+
private shape;
|
|
688
|
+
/** The verdict for ONE member (an action path or a component name) of `chain`, with the
|
|
689
|
+
* call's arguments when a variant is asked. */
|
|
690
|
+
memberAvailability(chain: string, member: string, args?: Readonly<Record<string, unknown>>): AvailabilityShape;
|
|
691
|
+
/** The module-level roll-up: AVAILABLE when any member can run here; the members' most static
|
|
692
|
+
* reason when none can. A module with no member rows answers from its own row. */
|
|
693
|
+
moduleAvailability(chain: string): AvailabilityShape;
|
|
694
|
+
/** v2.1 D10: the live condition a call meets when calling cannot remedy it in the call
|
|
695
|
+
* (`inCall` false). `permission_denied` stays the package's own gate. null = the call may run. */
|
|
696
|
+
private conditionRefusal;
|
|
697
|
+
/** `dsx.has(name, args?)`: a MODULE chain keeps its long-standing answer (registered and
|
|
698
|
+
* answering); `chain.member` asks the member, with the call's own arguments for a variant.
|
|
699
|
+
* The fold settles which dots are the chain. */
|
|
700
|
+
has(name: string, args?: Readonly<Record<string, unknown>>): boolean;
|
|
701
|
+
/** The `availability` member plane: `.available` / `.reason` for the module, `.<member>` for
|
|
702
|
+
* one action or component (`{ available, reason, via }`), and `.<member>.variants.<arg>.<value>`
|
|
703
|
+
* for one variant. */
|
|
704
|
+
availabilityPlane(chain: string): unknown;
|
|
705
|
+
/** The refusal a call meets AFTER a handler is found: the SAME own-row answer the pre-flight
|
|
706
|
+
* gives (`unsupported_os`, `unsupported_device`, or any other reason). null = the call may run. */
|
|
707
|
+
private runtimeRefusal;
|
|
708
|
+
/** The build seam for the excluded-identities overlay — chains that exist in the
|
|
709
|
+
* product but are excluded from THIS build. Default empty; the build wires it (the
|
|
710
|
+
* runtime.js `despia.excluded` twin). A chain whose nearest ancestor is also excluded
|
|
711
|
+
* carries the cascade entry shape ({ reason: "cascade", from: <parent chain> }).
|
|
712
|
+
* Entries are chain strings, or `{ chain }` objects; `excludedFact` answers them 1:1
|
|
713
|
+
* with the page's matchesEntry. */
|
|
714
|
+
setExcludedIdentities(chains: Array<string | {
|
|
715
|
+
chain: string;
|
|
716
|
+
}>): void;
|
|
717
|
+
/** THE DERIVATION SEAM of the member table's platform maps, not a second owner. `setAvailabilityTable`
|
|
718
|
+
* calls it with the maps it derives from the table rows, and no build hands a catalog to a runtime any
|
|
719
|
+
* more (v2.1: one owner per fact; `BootOptions.platformSupport` is gone). The ladder corpus
|
|
720
|
+
* (`Conformance/actions/declared-actions.json`) and the kernel tests drive the same maps directly,
|
|
721
|
+
* which is why it stays callable.
|
|
722
|
+
*
|
|
723
|
+
* The build seam for the PLATFORM CATALOG — the twin of `setExcludedIdentities`, and the
|
|
724
|
+
* thing whose absence made `unsupported_platform` unreachable on this renderer (X1 H3: the
|
|
725
|
+
* ladder and the table both shipped; nothing ever filled the table outside a test, so 359
|
|
726
|
+
* native-only actions answered `not_loaded`, which the bus itself documents as a caller bug).
|
|
727
|
+
*
|
|
728
|
+
* Takes the FULL catalog — every chain and every action, exactly as the member table's
|
|
729
|
+
* rows carry it (`requires.platform`) — and folds it
|
|
730
|
+
* against this runtime's OS, so what lands in the maps is only what is off-platform HERE.
|
|
731
|
+
* Filtering at install rather than at lookup is what keeps the ladder a pure function of
|
|
732
|
+
* facts and the `.has()` reads honest. Re-callable; each call replaces both tables. */
|
|
733
|
+
setPlatformSupport(catalog: {
|
|
734
|
+
byScheme?: Record<string, string[]>;
|
|
735
|
+
byAction?: Record<string, string[]>;
|
|
736
|
+
}, os?: string): void;
|
|
737
|
+
/** The build seam for MODULE CONFIG — the twin of `setPlatformSupport`, same shape, same
|
|
738
|
+
* reason. Takes the full `{ byScheme }` catalog the build emits and stores it lowercased, so a
|
|
739
|
+
* facet registered under any spelling of its scheme reads its own values. Re-callable; each
|
|
740
|
+
* call replaces the table. */
|
|
741
|
+
setModuleConfig(catalog: {
|
|
742
|
+
byScheme?: Record<string, Dict>;
|
|
743
|
+
}): void;
|
|
744
|
+
/** The build seam for `dsx.config.<chain>.<key>`: `DespiaConfig.json` as the build wrote it. Re-callable;
|
|
745
|
+
* a value that is not a table installs none, so every read is null. */
|
|
746
|
+
setPublicConfig(table: unknown): void;
|
|
747
|
+
/** `dsx.config.<path>`: a public setting through the live layers, resolved for this device, or null. */
|
|
748
|
+
readConfig(path: readonly string[]): unknown;
|
|
749
|
+
/** One module's config values, or an empty object. A COPY per read: a facet that mutated what
|
|
750
|
+
* it was handed would edit the build manifest for every other reader, and the shape a caller
|
|
751
|
+
* gets from `dsx.config` should behave like the frozen table the natives compile in. */
|
|
752
|
+
configFor(scheme: string): Dict;
|
|
753
|
+
/** One module's config as this build shipped it, before any remote or runtime value: what a declaration
|
|
754
|
+
* frozen into the build was generated from, so a live value can narrow it but never widen it. */
|
|
755
|
+
builtConfigFor(scheme: string): Dict;
|
|
756
|
+
/** The build seam for the SETTINGS PLANE: every package's declared rules and setters, and the build
|
|
757
|
+
* this binary is (`dsx.build`). Re-callable; each call replaces the table and clears both live layers. */
|
|
758
|
+
setSettingRules(catalog: {
|
|
759
|
+
byScheme?: Record<string, SettingsSpec>;
|
|
760
|
+
build?: SettingsBuild;
|
|
761
|
+
}): void;
|
|
762
|
+
/** Persist an OTA snapshot for the next launch. SDKs already initialized in this process keep
|
|
763
|
+
* their current values. A refused package is omitted; every offer meets the declared rules. */
|
|
764
|
+
applyRemoteSettings(byScheme: Record<string, Dict>): SettingsDiagnostic[];
|
|
765
|
+
/** The boot seam, called after build rows/config and before package setup. Re-judges persisted values. */
|
|
766
|
+
applyLaunchSettings(): SettingsDiagnostic[];
|
|
767
|
+
private remoteSettingsOffer;
|
|
768
|
+
/** The declared setters a boot calls, with their build values: `[{ callee, args }]`. */
|
|
769
|
+
bootSetterCalls(): Array<{
|
|
770
|
+
callee: string;
|
|
771
|
+
args: Dict;
|
|
772
|
+
}>;
|
|
773
|
+
/** Call every boot setter once (settled, never thrown: a refusal is already a typed diagnostic). */
|
|
774
|
+
applyBootSetters(): Promise<void>;
|
|
775
|
+
/** THE SETTINGS RUNG: a declared setter's offered values, judged before the handler runs. Answers the
|
|
776
|
+
* refusal, or null after committing the values to the runtime layer. */
|
|
777
|
+
private settingsRung;
|
|
778
|
+
private reportSettingDiagnostics;
|
|
779
|
+
/** The `.excluded` build fact: false, or the DespiaExcluded-shaped entry
|
|
780
|
+
* ({ reason: "excluded" } | { reason: "cascade", from }), build facts must answer. */
|
|
781
|
+
excludedFact(chain: string): false | {
|
|
782
|
+
reason: "excluded";
|
|
783
|
+
} | {
|
|
784
|
+
reason: "cascade";
|
|
785
|
+
from: string;
|
|
786
|
+
};
|
|
787
|
+
/** Resolve a dotted callee against the LIVE identity table (the chains-corpus fold) —
|
|
788
|
+
* the introspection seam the chain proxy and the conformance runner share. */
|
|
789
|
+
resolve(callee: string): ChainResolution;
|
|
790
|
+
/** The live ChainTable view: registered chains ∪ the excluded overlay form the
|
|
791
|
+
* identity set. */
|
|
792
|
+
private chainTable;
|
|
793
|
+
schemes(): string[];
|
|
794
|
+
/** The kernel-INTERNAL append. `dsx.delegate.listen` is its one public spelling — the
|
|
795
|
+
* natives deleted the public `hook` for exactly this reason (delegates.md phase 4: two
|
|
796
|
+
* competing attach idioms is the failure the collapse exists to end). Named
|
|
797
|
+
* `registerDelegate` because `register` on this class is already MODULE registration —
|
|
798
|
+
* the natives can call it `register` only because theirs hangs off `Context`. */
|
|
799
|
+
registerDelegate(event: string, priority: number, fn: (input: unknown) => unknown): () => void;
|
|
800
|
+
/** HEAR WHEN A POINT GAINS ITS FIRST LISTENER OR LOSES ITS LAST: `fn(true)` when `event` goes from no listener
|
|
801
|
+
* to one, `fn(false)` when its last listener leaves. Nothing is called at subscription; read `hasWatchers`
|
|
802
|
+
* for the current answer. An emitter whose platform charges for merely listening (a browser's
|
|
803
|
+
* `beforeunload`, which costs the page its back/forward cache) attaches its source only while someone
|
|
804
|
+
* listens. Generic: it names no point. Returns the unsubscribe. */
|
|
805
|
+
observeWatchers(event: string, fn: (watched: boolean) => void): () => void;
|
|
806
|
+
private notifyWatchers;
|
|
807
|
+
/** IS ANYONE LISTENING (the engine's guard before it builds a point it sends, `handler.start` first): true when at
|
|
808
|
+
* least one listener is attached to `event`. No copy, no sort, no allocation, so a site that sends a point on
|
|
809
|
+
* every handler run pays one walk of the hook list when nobody listens and builds nothing. Generic: it answers for
|
|
810
|
+
* every point, and a package may ask it on its bound `dsx.delegate`. Twins: Swift `DSXBus.hasWatchers`, Kotlin
|
|
811
|
+
* `ModuleRegistry.hasWatchers`. */
|
|
812
|
+
hasWatchers(event: string): boolean;
|
|
813
|
+
/** THE delegate fold — the ONE place every cross-module event collapses, and the twin of
|
|
814
|
+
* the natives' `ModuleRegistry.dispatch`. `combine` IS the difference between the four
|
|
815
|
+
* legacy verbs, and there is no verb in between. It is named `foldDelegate` rather than
|
|
816
|
+
* the natives' `dispatch` only because `dispatch` on this class is already the CALL path.
|
|
817
|
+
*
|
|
818
|
+
* The combines, matching the natives bit for bit: `void` runs every listener and answers
|
|
819
|
+
* nothing; `any` and `claim` both stop at the first non-nil answer (a claim is answered by
|
|
820
|
+
* ONE owner) and differ in intent, not mechanism; `collect` runs all and gathers the
|
|
821
|
+
* non-nil; `veto` stops at the first `false` and otherwise allows. A listener that throws
|
|
822
|
+
* is skipped and never settles the fold — one bad watcher cannot silently deny an event. */
|
|
823
|
+
foldDelegate(event: string, input?: unknown, combine?: Combine): unknown;
|
|
824
|
+
/** Point-to-point call, the legacy WIRE face (URL navigations, the v3 string
|
|
825
|
+
* transport): a scheme token (a chain, flat or dotted, ONE head unit, never
|
|
826
|
+
* re-split) + a slash-joined action path. EXEMPT from
|
|
827
|
+
* the reserved-member refusal (corpus _note): reserved words are banned from
|
|
828
|
+
* MANIFESTS, never from the wire, so a code-only legacy shim registered under a
|
|
829
|
+
* reserved spelling (biometric://available, bluetooth://state) keeps answering
|
|
830
|
+
* shipped pages. Resolves with the module's resolve() data; rejects with
|
|
831
|
+
* ModuleCallError (excluded / not_loaded / unsupported_platform / action code). Every failure —
|
|
832
|
+
* thrown here or settled by the handler — also reports to the diagnostics funnel
|
|
833
|
+
* (reportCallFailure above); `fireAndForget` marks a `.post` call, whose rejection
|
|
834
|
+
* the call site discards by shape (delivered: false in the funnel event). */
|
|
835
|
+
dispatch(scheme: string, host: string, args: Dict, opts?: CallOpts): Promise<unknown>;
|
|
836
|
+
/** `dsx.stop(call)`: stop listening to one call (its own `onStop` runs; never a cancel). Resolves for any
|
|
837
|
+
* call value (stopping twice, or after the call ended, is a no-op); rejects `call_ended` for a value
|
|
838
|
+
* that is not a call value (a typo, `undefined`, a foreign value), the same refusal `control` gives,
|
|
839
|
+
* so a mistaken stop is never silent. */
|
|
840
|
+
stop(call: unknown): Promise<void>;
|
|
841
|
+
/** `dsx.module.<chain>.<action>.<control>(call, args)`: `path` is the dotted path the author wrote
|
|
842
|
+
* (`print.document.cancel`). The action part must be the action the call was made to, else
|
|
843
|
+
* `unknown_control`; after the call's stream ended, `call_ended`. */
|
|
844
|
+
control(call: unknown, path: string, args?: Dict): Promise<unknown>;
|
|
845
|
+
/** Whether `path`, the dotted path a document wrote after `dsx.module.` (`print.document.cancel`), names a
|
|
846
|
+
* control of `call`: a call value this bus minted, and the path's action part is the action that call was
|
|
847
|
+
* made to (the rule `control` applies). A value only shaped like a call (frozen, no prototype, no members),
|
|
848
|
+
* which this bus never minted (a value from another runtime instance, a forgery), names a control at any path
|
|
849
|
+
* with a control's shape, as the package lanes route it (`controlTarget`): it is refused `call_ended`, as a
|
|
850
|
+
* call another document started is on Kotlin and Swift, and never sent on as data. Any other path that takes a
|
|
851
|
+
* minted call as its first argument is not a control: there the call goes where data goes (constitution
|
|
852
|
+
* Article 14.2). */
|
|
853
|
+
namesControl(call: unknown, path: string): boolean;
|
|
854
|
+
/** The availability refusal of one declared control (a `control` row of the member table), or null
|
|
855
|
+
* when the table has no row for it or it is available here. */
|
|
856
|
+
private controlRefusal;
|
|
857
|
+
/** The dotted-CALLEE face — the text after `dsx.module.` arrives WHOLE (the runner's
|
|
858
|
+
* statements, the chain proxy); the funnel folds identity vs action. A MODERN face:
|
|
859
|
+
* a reserved member arriving here as a call is refused (`reserved_member`). */
|
|
860
|
+
call(callee: string, args: Dict, opts?: CallOpts): Promise<unknown>;
|
|
861
|
+
/** THE dispatch funnel (chains corpus): every call face lands here with its natural
|
|
862
|
+
* segmentation, and the FOLD (resolveChain) settles module identity vs action path
|
|
863
|
+
* against the live identity table before any route is taken. Errors echo the scheme
|
|
864
|
+
* AS CALLED while identity, state, events, the bound dsx, stays the resolved
|
|
865
|
+
* chain. The `face` splits the reserved-member law: MODERN faces
|
|
866
|
+
* (the chain proxy, the dotted-callee `call`) refuse a member route as an action;
|
|
867
|
+
* the legacy WIRE face routes it DIRECT under the arriving spelling. */
|
|
868
|
+
/**
|
|
869
|
+
* Rung two lookup. `null` means "this call is not linked", and the caller must fall through to
|
|
870
|
+
* the answer it would have given anyway — never a substitute failure.
|
|
871
|
+
*
|
|
872
|
+
* Requires BOTH a transport and a listed route: a table with no transport (a build that emitted
|
|
873
|
+
* the link but never installed one) must not swallow `not_loaded`, because a caller told
|
|
874
|
+
* "unreachable" would go looking for a network problem that does not exist.
|
|
875
|
+
*/
|
|
876
|
+
private linkRouteFor;
|
|
877
|
+
/**
|
|
878
|
+
* Invoke over the link, and map failure onto the ONE closed vocabulary.
|
|
879
|
+
*
|
|
880
|
+
* A `ModuleCallError` from the transport is the SERVER's own typed answer (`unauthenticated`,
|
|
881
|
+
* `invalid_request`, …) and passes through with its reason intact — flattening it to `unreachable`
|
|
882
|
+
* would tell a caller the network failed when in fact the server answered, precisely.
|
|
883
|
+
* Everything else IS a link failure and becomes `unreachable`, the spelling durability P4
|
|
884
|
+
* froze for exactly this and the errors corpus already pins on the ordinary call path.
|
|
885
|
+
*/
|
|
886
|
+
private callOverLink;
|
|
887
|
+
/** The live FACTS for one call — the registry read once, so the pure ladder above decides
|
|
888
|
+
* on exactly what ships and the conformance runner can state the same eight fields
|
|
889
|
+
* literally. The facet half folds out of a peer-less bundle with the ladder's own guard. */
|
|
890
|
+
private facetFacts;
|
|
891
|
+
/**
|
|
892
|
+
* Rung two over the FACET link (the sibling of `callOverLink`, which rides the server
|
|
893
|
+
* node's client-link table). A `ModuleCallError` from the transport is the far node's own
|
|
894
|
+
* typed answer and passes through with its reason intact; anything else IS a link failure
|
|
895
|
+
* and becomes `unreachable`, the spelling durability P4 froze for exactly this.
|
|
896
|
+
*/
|
|
897
|
+
private callOverReach;
|
|
898
|
+
/** The wire payload each typed-absence code has always carried — the ladder picks the code,
|
|
899
|
+
* this composes the envelope, so the shipped shapes (errors corpus) are untouched. The two
|
|
900
|
+
* facet-only codes carry the same triple: who was asked, for what, on which facet. */
|
|
901
|
+
private absencePayload;
|
|
902
|
+
private dispatchSegments;
|
|
903
|
+
object(scheme: string, name: string): unknown;
|
|
904
|
+
/** Resolve a module-provided component (/web/18). A qualified tag's prefix is everything
|
|
905
|
+
* before its LAST dot, the providing module's chain (`payments.stripe.connect.Payouts` is
|
|
906
|
+
* module `payments.stripe.connect`, component `Payouts`; R1, corpus chains.json
|
|
907
|
+
* `componentTags`); bare `Name` → the ONE registered module providing it (a cross-package
|
|
908
|
+
* ambiguity resolves to none, loudly: qualify the tag). The impl stays opaque here (kernel
|
|
909
|
+
* DOM-free law); the renderer holds it to its contract. */
|
|
910
|
+
facetComponent(tag: string): {
|
|
911
|
+
scheme: string;
|
|
912
|
+
name: string;
|
|
913
|
+
impl: unknown;
|
|
914
|
+
} | null;
|
|
915
|
+
/** The reserved scheme's kernel verbs (logs corpus / errors corpus): `log` records one
|
|
916
|
+
* line ({ message, scheme? } — source defaults to "page", the bridge's caller), `error`
|
|
917
|
+
* runs the ambient fan-out ({ code, message?, recoverable?, data?, scheme? }). Both
|
|
918
|
+
* resolve null. Anything else answers `unknown_action` honestly — never `not_loaded`
|
|
919
|
+
* (the kernel does own this scheme). */
|
|
920
|
+
private kernelVerb;
|
|
921
|
+
}
|
|
922
|
+
export declare const ModuleRegistry: ModuleRegistryImpl;
|
|
923
|
+
/** THE FAN OUT LAW (Conformance/bus/fan-out.json), one law on four renderers:
|
|
924
|
+
*
|
|
925
|
+
* 1. publish order is subscription order
|
|
926
|
+
* 2. a re-entrant publish QUEUES behind the current one, on one queue for the whole bus
|
|
927
|
+
* 3. an unsubscribe during delivery takes effect for the NEXT publish (the subscriber
|
|
928
|
+
* set of a publish is frozen when that publish begins delivering, and a subscribe
|
|
929
|
+
* during delivery is the mirror: absent here, present next)
|
|
930
|
+
* 4. a subscriber that throws is reported through the diagnostic channel and never
|
|
931
|
+
* stops delivery
|
|
932
|
+
*
|
|
933
|
+
* Clause 3 is what makes clause 1 checkable: consulting the live registry mid-flight
|
|
934
|
+
* would make the delivery log a function of what each handler did to the registry, and a
|
|
935
|
+
* hundred-publish recording would stop being a function of the script. This lane used to
|
|
936
|
+
* iterate the live Set (clause 3 broken), recurse (clause 2 broken), and report a throw
|
|
937
|
+
* to console.warn alone. */
|
|
938
|
+
declare class DSXEventsImpl {
|
|
939
|
+
#private;
|
|
940
|
+
private listeners;
|
|
941
|
+
private queue;
|
|
942
|
+
/** THE diagnostic channel for a throwing subscriber. The default is the web lane's own
|
|
943
|
+
* error record: the kernel warning plus a ledger row, which is where every other
|
|
944
|
+
* swallowed failure in this file lands. Replaceable so a host (and the corpus runner)
|
|
945
|
+
* can observe it; a replacement never changes the fact that delivery continues. */
|
|
946
|
+
diagnostic: (name: string, error: unknown) => void;
|
|
947
|
+
on(name: string, fn: (value: unknown) => void): () => void;
|
|
948
|
+
/** Who asked to hear when a channel gains its first subscriber or loses its last, and the answer they last heard. */
|
|
949
|
+
private presence;
|
|
950
|
+
/** WOULD ANYONE HEAR `channel` (bus/watcher-presence.json; Article 20.3): a subscriber of the channel itself, or of
|
|
951
|
+
* its chain's `<chain>:*` (the module handle's kind-less `.on(handler)`, which `deliver` reaches for every kind).
|
|
952
|
+
* The module handle asks it scoped to its own broadcasts, `dsx.events.hasWatchers(name)`. Twins: Swift and
|
|
953
|
+
* Kotlin `DSXEventBus.hasWatchers`. */
|
|
954
|
+
hasWatchers(channel: string): boolean;
|
|
955
|
+
/** HEAR WHEN `channel` GAINS ITS FIRST SUBSCRIBER OR LOSES ITS LAST: `fn(true)` / `fn(false)`, on the subscribe or
|
|
956
|
+
* unsubscribe that changed the answer, in the order the observers registered. Nothing is called here; read
|
|
957
|
+
* `hasWatchers` for the present answer (the delegate plane's `ModuleRegistry.observeWatchers` is the same rule).
|
|
958
|
+
* An observer that throws is reported through `diagnostic` and the next observer still hears. Returns the stop. */
|
|
959
|
+
observeWatchers(channel: string, fn: (watched: boolean) => void): () => void;
|
|
960
|
+
private refreshWatchers;
|
|
961
|
+
publish(name: string, value: unknown): void;
|
|
962
|
+
/** One publish, delivered. The two subscriber sets are COPIED here, at the moment this
|
|
963
|
+
* publish begins, which is clause 3. */
|
|
964
|
+
private deliver;
|
|
965
|
+
}
|
|
966
|
+
export declare const DSXEvents: DSXEventsImpl;
|
|
967
|
+
/** `dsx.events` on a module handle: the bus itself (`on` and `publish` take a full channel, as every web lane spells
|
|
968
|
+
* them), with `hasWatchers` / `observeWatchers` scoped to THIS module's broadcasts, the channel `dsx.broadcast(name)`
|
|
969
|
+
* publishes on (`broadcastChannel`). The native handles scope the same pair to the scheme their `broadcast` carries
|
|
970
|
+
* (Context.swift / Context.kt `events`). */
|
|
971
|
+
export type DsxEvents = {
|
|
972
|
+
on(name: string, fn: (value: unknown) => void): () => void;
|
|
973
|
+
publish(name: string, value: unknown): void;
|
|
974
|
+
diagnostic: (name: string, error: unknown) => void;
|
|
975
|
+
/** Would anyone hear this module's `dsx.broadcast(name)`? */
|
|
976
|
+
hasWatchers(name: string): boolean;
|
|
977
|
+
/** `fn(true)` when the first subscriber of this module's `name` arrives, `fn(false)` when the last leaves. */
|
|
978
|
+
observeWatchers(name: string, fn: (watched: boolean) => void): () => void;
|
|
979
|
+
};
|
|
980
|
+
export type DsxContext = {
|
|
981
|
+
readonly scheme: string;
|
|
982
|
+
has(scheme: string): boolean;
|
|
983
|
+
/** `dsx.module.<chain>.<action>(args)` awaits a call. A package that HOLDS a call (Article 23.6) passes its
|
|
984
|
+
* event callback and receives the call's opaque value: `dsx.module.<chain>.<action>(args, events, held)`, the
|
|
985
|
+
* web twin of Swift `(args, events:settled:)` and Kotlin `(args, events, settled)`; the returned promise is
|
|
986
|
+
* the settle. Its events reach `events` only, and `dsx.stop(call)` stops it. A control the action declares is
|
|
987
|
+
* `dsx.module.<chain>.<action>.<control>(call, args)`: a call value first reaches that call's control. */
|
|
988
|
+
module: ModuleProxy;
|
|
989
|
+
/** `dsx.stop(call)` on a call this package holds (its `onStop` runs, its stream ends; never a cancel). */
|
|
990
|
+
stop(call: unknown): Promise<void>;
|
|
991
|
+
/** The delegate plane — the ONE attach/emit pair, matching the natives after the phase-4
|
|
992
|
+
* collapse. `listen` is the only public spelling of the append; `send` names its
|
|
993
|
+
* `combine` EXPLICITLY at every site, because an omitted combine falls back to `claim`,
|
|
994
|
+
* which SHORT-CIRCUITS — and an excluded owner declares nothing, so leaving it implicit
|
|
995
|
+
* lets a build profile quietly turn a broadcast into a first-wins call. */
|
|
996
|
+
delegate: {
|
|
997
|
+
listen(event: string, fn: (input: unknown) => unknown, priority?: number): () => void;
|
|
998
|
+
send(event: string, payload?: unknown, combine?: Combine): unknown;
|
|
999
|
+
/** Is anyone listening to `event`? The engine's guard before it builds a point it sends (`handler.start`). */
|
|
1000
|
+
hasWatchers(event: string): boolean;
|
|
1001
|
+
/** `fn(true)` when `event` gains its first listener, `fn(false)` when its last leaves; nothing at registration. */
|
|
1002
|
+
observeWatchers(event: string, fn: (watched: boolean) => void): () => void;
|
|
1003
|
+
};
|
|
1004
|
+
/** cross-package broadcast — the SAME verb `ActionContext.broadcast` names, on the handle a
|
|
1005
|
+
* module KEEPS after boot. A facet that emits outside a call (a socket frame, an orientation
|
|
1006
|
+
* change, a permission flip) holds only this context, and five shipped facets independently
|
|
1007
|
+
* wrote `ctx.dsx.broadcast(…)` against a type that did not have it: Consent, Geo, Notify,
|
|
1008
|
+
* Orientation, WebSocket. That was a TypeError on every emit, invisible only because none of
|
|
1009
|
+
* the five was discoverable by a build (registry.ts webLaneEntry). One verb, both contexts, and
|
|
1010
|
+
* one channel: `<scheme>:<name>` (broadcastChannel), the name `dsx.module.<chain>.on(name)` hears. */
|
|
1011
|
+
broadcast(name: string, value?: unknown): void;
|
|
1012
|
+
/** present, update and dismiss THIS module's own declared component through the renderer's
|
|
1013
|
+
* presentation machine: the three verbs and the options (`as`, `touch`, `attributes`) of the markup verb
|
|
1014
|
+
* `dsx.component.*`, no second implementation. A bare name is qualified with this module's scheme.
|
|
1015
|
+
* `present` answers whether a presenter took it; false = no renderer is attached (fail open). */
|
|
1016
|
+
component: {
|
|
1017
|
+
/** `as: "barrier"` raises this module's barrier (screen-presentation.md `The barrier`): the promise
|
|
1018
|
+
* resolves, or rejects with `barrier_not_granted` · `barrier_component_undeclared` · `invalid_param` ·
|
|
1019
|
+
* `unavailable` */
|
|
1020
|
+
present(name: string, opts: Dict & {
|
|
1021
|
+
as: "barrier";
|
|
1022
|
+
}): Promise<void>;
|
|
1023
|
+
present(name: string, opts?: Dict): boolean;
|
|
1024
|
+
/** `opts.id` updates exactly that presentation. A target naming a barrier entry answers a promise
|
|
1025
|
+
* (owner-only: `barrier_not_owner` · `barrier_not_granted` · `invalid_param`). */
|
|
1026
|
+
update(name: string, attributes: Dict, opts?: Dict): boolean | Promise<void>;
|
|
1027
|
+
/** `opts.id` (a presentation id from `present`'s `onPresented` hook) removes exactly that one. A target
|
|
1028
|
+
* naming a barrier entry lowers it and answers a promise (owner-only, as `update`). */
|
|
1029
|
+
dismiss(name: string, opts?: Dict): boolean | Promise<void>;
|
|
1030
|
+
/** the live surface of a component this module presented (state + actions), null when none is up */
|
|
1031
|
+
surface(name: string): ComponentSurface | null;
|
|
1032
|
+
/** mount a component DETACHED at an exact size, for rasterising: null with no renderer attached, an
|
|
1033
|
+
* `unknown_component` answer when the registry has no such component */
|
|
1034
|
+
offscreen(name: string, opts: OffscreenOptions): OffscreenMount | {
|
|
1035
|
+
error: "unknown_component";
|
|
1036
|
+
} | null;
|
|
1037
|
+
/** define a component at runtime from compiled IR (see ComponentSeam.define); false with no renderer */
|
|
1038
|
+
define(name: string, ir: unknown, opts?: DefineOptions): boolean;
|
|
1039
|
+
};
|
|
1040
|
+
/** launch gates: hold the first mount until this module says go (see BootGateSeam) */
|
|
1041
|
+
boot: {
|
|
1042
|
+
gate(spec: BootGateSpec): void;
|
|
1043
|
+
/** a launch cover: present over the first frame while the app builds beneath it (see BootCoverSeam) */
|
|
1044
|
+
cover(spec: BootCoverSpec): void;
|
|
1045
|
+
};
|
|
1046
|
+
/** the AMBIENT error hat (error-system.md): no call to settle here, so `error`/`fail`
|
|
1047
|
+
* report to the app — ledger + module.error + page channel + reactive keys. Repeatable.
|
|
1048
|
+
* (Inside an ACTION handler, `ctx.error`/`ctx.fail` stay the terminal settle — the hat
|
|
1049
|
+
* is the type: ActionContext settles, DsxContext reports.) */
|
|
1050
|
+
error(code: string, data?: unknown): void;
|
|
1051
|
+
/** v2.1 (availability.md D9): publish or clear (`null`) one live condition of this module,
|
|
1052
|
+
* `permission_denied · not_set_up · switched_off · offline · busy`. Members subject to it are
|
|
1053
|
+
* the ones whose manifest `errors` declares the code. */
|
|
1054
|
+
condition(code: string, data: {
|
|
1055
|
+
setting?: string | null;
|
|
1056
|
+
inCall?: boolean;
|
|
1057
|
+
members?: readonly string[] | null;
|
|
1058
|
+
scope?: string;
|
|
1059
|
+
pending?: boolean;
|
|
1060
|
+
} | null): boolean;
|
|
1061
|
+
/** v2.1 (D5): publish or clear a live named degradation of one member */
|
|
1062
|
+
degradation(member: string, id: string | null): boolean;
|
|
1063
|
+
/** v2.1 (D9): re-ask this module's probes (the world changed: hot-plug, foreground). True when an answer changed. */
|
|
1064
|
+
refresh(): boolean;
|
|
1065
|
+
fail(code: string, message?: string, recoverable?: boolean, data?: unknown): void;
|
|
1066
|
+
/** the error ledger read API — recent (retained ring), count (monotonic), clear (dev) */
|
|
1067
|
+
errors: {
|
|
1068
|
+
recent(): DSXErrorEntry[];
|
|
1069
|
+
count(): number;
|
|
1070
|
+
clear(): void;
|
|
1071
|
+
};
|
|
1072
|
+
/** the unified console primitive (logs corpus): console.log-shaped variadic formatting,
|
|
1073
|
+
* recorded in the log ring attributed to THIS module's scheme + one console line */
|
|
1074
|
+
log(...args: unknown[]): void;
|
|
1075
|
+
/** the log ring read API — recent (retained ring), count (monotonic), clear (dev) */
|
|
1076
|
+
logs: {
|
|
1077
|
+
recent(): DSXLogEntry[];
|
|
1078
|
+
count(): number;
|
|
1079
|
+
clear(): void;
|
|
1080
|
+
};
|
|
1081
|
+
/** THIS module's own `config.json` values (the natives' `dsx.config.<key>` twin). Empty on a
|
|
1082
|
+
* host that installs no config catalog, so a read stays a `?? fallback` away from working —
|
|
1083
|
+
* which is what every facet already wrote while this plane did not exist. */
|
|
1084
|
+
config: Dict;
|
|
1085
|
+
/** THIS module's facet tables, read-only: for each declaration namespace it owns, the build's
|
|
1086
|
+
* aggregate of every enabled package's rows keyed by the registered `emit` name
|
|
1087
|
+
* (`dsx.facets.TelemetrySinks`), the twin of the natives' `<Emit>.entries`: one contract, the
|
|
1088
|
+
* same rows. Installed once by the boot (boot-tables.ts), deep-frozen, null-prototype; empty for
|
|
1089
|
+
* a module that owns no namespace or on a host that installs none. */
|
|
1090
|
+
facets?: Readonly<Dict>;
|
|
1091
|
+
/** THIS module's opened safety line (Constitution Article 13.20, ADR 0019 K20): the values the app's `open`
|
|
1092
|
+
* list allows for the line this package declares in its dsx.json `safetyLines`, named by the package's own
|
|
1093
|
+
* line name with no chain. A frozen list of strings, or [] when the app does not open that line. Read from
|
|
1094
|
+
* what the build installed once at boot (boot-tables.ts), the same answer on every lane; never an on/off
|
|
1095
|
+
* value and never a start (Article 13.19). Swift and Kotlin twin: `dsx.opened(_:)`. */
|
|
1096
|
+
opened(line: string): readonly string[];
|
|
1097
|
+
/** the declared-vars publish face: writes `global.<scheme>.<var>`. The natives call this
|
|
1098
|
+
* `dsx.context` and carried a `dsx.state` alias of it, which the compatibility policy
|
|
1099
|
+
* forbids; the alias is gone on all three and `context` is the one word. */
|
|
1100
|
+
context: {
|
|
1101
|
+
set(name: string, value: unknown): void;
|
|
1102
|
+
get(name: string): unknown;
|
|
1103
|
+
};
|
|
1104
|
+
/** whose answers this module's declared reads are (read-cache.ts `scope`): the signed-in user and a partition such as
|
|
1105
|
+
* the workspace keep them on the device for the next visit; `null` (signed out) wipes them */
|
|
1106
|
+
reads: {
|
|
1107
|
+
scope(user: string | null, partition?: string): void;
|
|
1108
|
+
};
|
|
1109
|
+
global: {
|
|
1110
|
+
get(path: string): unknown;
|
|
1111
|
+
set(path: string, value: unknown): void;
|
|
1112
|
+
};
|
|
1113
|
+
env(): string;
|
|
1114
|
+
platform: {
|
|
1115
|
+
os: string;
|
|
1116
|
+
native: boolean;
|
|
1117
|
+
desktop: boolean;
|
|
1118
|
+
embed: boolean;
|
|
1119
|
+
};
|
|
1120
|
+
events: DsxEvents;
|
|
1121
|
+
};
|
|
1122
|
+
/** One node of the `dsx.module` chain plane — callable at any depth (the funnel folds
|
|
1123
|
+
* identity vs action), traversable a segment at a time, with the web-surfaced reserved
|
|
1124
|
+
* members at identity position. Dynamic by construction; the runtime proxy is the truth. */
|
|
1125
|
+
export type ModuleHandle = {
|
|
1126
|
+
(args?: Dict): Promise<unknown>;
|
|
1127
|
+
post: (args?: Dict) => void;
|
|
1128
|
+
object: (name: string) => unknown;
|
|
1129
|
+
/** the declared-vars plane, and the ONE member that reads it (facet-contracts.md). `.state`
|
|
1130
|
+
* was the pre-rename alias of this member and is deleted: the JSE plane fold dropped the
|
|
1131
|
+
* `.state.` spelling already (Conformance/jse/reserved-planes.json), so keeping the member
|
|
1132
|
+
* here meant the native surface and the web surface answered different words for one plane. */
|
|
1133
|
+
context: {
|
|
1134
|
+
[varName: string]: unknown;
|
|
1135
|
+
};
|
|
1136
|
+
available: boolean;
|
|
1137
|
+
excluded: false | {
|
|
1138
|
+
reason: "excluded";
|
|
1139
|
+
} | {
|
|
1140
|
+
reason: "cascade";
|
|
1141
|
+
from: string;
|
|
1142
|
+
};
|
|
1143
|
+
/** WHETHER AND WHY NOT (proposals/availability.md): `.available` / `.reason` for the module as
|
|
1144
|
+
* a whole, `.<member>.available` / `.<member>.reason` for one action or component. */
|
|
1145
|
+
availability: AvailabilityShape & {
|
|
1146
|
+
[member: string]: AvailabilityShape & {
|
|
1147
|
+
variants: unknown;
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
on: (kindOrHandler?: string | ((value: unknown, kind?: string) => void), handler?: (value: unknown, kind?: string) => void) => () => void;
|
|
1151
|
+
} & {
|
|
1152
|
+
[segment: string]: ModuleHandle;
|
|
1153
|
+
};
|
|
1154
|
+
/** what an author reads: the verdict and the route to the first member that cannot run, then
|
|
1155
|
+
* (v2.1) whether it is ready now, why not, at what quality, what would fix it, in one sentence */
|
|
1156
|
+
export type AvailabilityShape = {
|
|
1157
|
+
available: boolean;
|
|
1158
|
+
reason: AvailabilityReason | null;
|
|
1159
|
+
via: {
|
|
1160
|
+
member: string;
|
|
1161
|
+
reason: AvailabilityReason | null;
|
|
1162
|
+
}[];
|
|
1163
|
+
} & Readiness;
|
|
1164
|
+
export type ModuleProxy = {
|
|
1165
|
+
[scheme: string]: ModuleHandle;
|
|
1166
|
+
};
|
|
1167
|
+
/** THE CHANNEL A MODULE BROADCAST TRAVELS ON: `<scheme>:<name>`, the name `dsx.module.<chain>.on(name)`
|
|
1168
|
+
* subscribes to and the same scoping the native lanes give a broadcast (Context.swift/Context.kt
|
|
1169
|
+
* `broadcast` carries the module's scheme). A bare name would reach no subscriber of the module and
|
|
1170
|
+
* would collide with every other module's broadcast of the same name. */
|
|
1171
|
+
export declare function broadcastChannel(scheme: string, name: string): string;
|
|
1172
|
+
/** One generated barrier fact's grant row as the kernel holds it (a package's `presentation.barrier`). */
|
|
1173
|
+
export interface BarrierGrant {
|
|
1174
|
+
readonly chain: string;
|
|
1175
|
+
/** qualified component names the package declares may stand on the barrier */
|
|
1176
|
+
readonly components: readonly string[];
|
|
1177
|
+
readonly secure: boolean;
|
|
1178
|
+
}
|
|
1179
|
+
/** One generated barrier fact: the module object the bootloader registers for its chain, and the row its
|
|
1180
|
+
* package's manifest declares (`presentation.barrier { components, secure }`). Build-generated only. */
|
|
1181
|
+
export interface BarrierFact {
|
|
1182
|
+
readonly module: WebModule;
|
|
1183
|
+
readonly components?: readonly string[];
|
|
1184
|
+
readonly secure?: boolean;
|
|
1185
|
+
}
|
|
1186
|
+
/** What `bootDsx` hands `registerBoot`: the build's generated barrier facts (chain -> fact). */
|
|
1187
|
+
export interface BarrierBootInput {
|
|
1188
|
+
facts?: Readonly<Record<string, BarrierFact>>;
|
|
1189
|
+
}
|
|
1190
|
+
/** The ledger a renderer binds (`ModuleRegistry.bindBarrierLedger`). `run` answers null on success or the
|
|
1191
|
+
* typed code; `owner` is the caller's identity (opaque, compared by reference) and `grant` its grant. */
|
|
1192
|
+
export interface BarrierDoor {
|
|
1193
|
+
run(verb: "present" | "update" | "dismiss", owner: object | null, grant: BarrierGrant | null, component: string, attrs: Dict | undefined): string | null;
|
|
1194
|
+
/** does `target` name a barrier entry (or the `barrier` mode)? */
|
|
1195
|
+
names(target: string): boolean;
|
|
1196
|
+
/** is any barrier up? */
|
|
1197
|
+
barred(): boolean;
|
|
1198
|
+
}
|
|
1199
|
+
/** A handle for `scheme` WITHOUT identity: every barrier verb through it answers `barrier_not_granted`
|
|
1200
|
+
* (corpus router/barrier.json C22). Kept for every caller that builds a handle from a scheme string. */
|
|
1201
|
+
export declare function makeDsx(scheme: string): DsxContext;
|
|
1202
|
+
export { isDict };
|
|
1203
|
+
//# sourceMappingURL=bus.d.ts.map
|