@despia-native/kernel 0.0.0-stage → 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 +17 -2
- 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 +139 -4
package/README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @despia-native/kernel
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The platform-neutral DSX web kernel: reactive state, JSE evaluation, actions, declarative API blocks, logging, and the module bus.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install @despia-native/kernel
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { DSXState } from "@despia-native/kernel";
|
|
11
|
+
|
|
12
|
+
DSXState.set("cart.count", 2);
|
|
13
|
+
console.log(DSXState.get("cart.count"));
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The package is ESM, ships compiled JavaScript and declarations, has no runtime dependencies, and follows the shared DSX conformance corpus used by Swift and Kotlin. Node 20+ is supported for server/tooling use.
|
|
17
|
+
|
|
18
|
+
See the [DSX Web documentation](https://github.com/despia-native/despia/tree/main/Engine/TypeScript) for the API and compatibility policy.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** The cap, in milliseconds, from the first settled member. */
|
|
2
|
+
export declare const API_COHORT_CAP_MS = 300;
|
|
3
|
+
/** Host seams: where a stretch ends and how the cap is timed. The corpus harness fakes both. */
|
|
4
|
+
export declare const ApiCohortSeam: {
|
|
5
|
+
endOfStretch: (fn: () => void) => void;
|
|
6
|
+
after: (ms: number, fn: () => void) => unknown;
|
|
7
|
+
cancel: (handle: unknown) => void;
|
|
8
|
+
};
|
|
9
|
+
type Cohort = {
|
|
10
|
+
members: Set<ApiCohortMember>;
|
|
11
|
+
timer: unknown;
|
|
12
|
+
timed: boolean;
|
|
13
|
+
expired: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type ApiCohortMember = {
|
|
16
|
+
cohort: Cohort;
|
|
17
|
+
release: (() => void) | null;
|
|
18
|
+
done: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** A fetch joins the cohort of the stretch it starts in. */
|
|
21
|
+
export declare function joinApiCohort(): ApiCohortMember;
|
|
22
|
+
/** The member's response has settled. Null: commit now. A promise: commit when it resolves. */
|
|
23
|
+
export declare function arriveApiCohort(member: ApiCohortMember): Promise<void> | null;
|
|
24
|
+
/** The member will never arrive (superseded, cancelled, disposed, streamed): stop waiting for it. */
|
|
25
|
+
export declare function leaveApiCohort(member: ApiCohortMember | null): void;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=api-cohort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-cohort.d.ts","sourceRoot":"","sources":["../src/api-cohort.ts"],"names":[],"mappings":"AAgBA,+DAA+D;AAC/D,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,gGAAgG;AAChG,eAAO,MAAM,aAAa,EAAE;IAC1B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI,KAAK,OAAO,CAAC;IAC/C,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAKnC,CAAC;AAEF,KAAK,MAAM,GAAG;IAAE,OAAO,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAElG,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAI9F,4DAA4D;AAC5D,wBAAgB,aAAa,IAAI,eAAe,CAS/C;AAED,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAgB7E;AAED,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI,CAOnE"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
//
|
|
2
|
+
// api-cohort.ts - STABLE UI LAW 6 (proposals/stable-ui.md §4.3): READS STARTED TOGETHER SHOW UP
|
|
3
|
+
// TOGETHER. Fetches started by the same committed batch (one write that changes three api
|
|
4
|
+
// inputs, one route mount) commit their responses together: when the last one settles, or
|
|
5
|
+
// 300 ms after the first one settles, whichever comes first. A read still pending after the cap
|
|
6
|
+
// commits on its own when it lands, so a slow read never holds a fast one for long. A refresh
|
|
7
|
+
// keeps the old data drawn meanwhile (Law 2), so nothing paints a mix of two commits.
|
|
8
|
+
//
|
|
9
|
+
// "The same committed batch" is the host tick the fetches start in: on the web, one synchronous
|
|
10
|
+
// stretch (every binding a flush re-runs, every block a mount starts), which ends at the next
|
|
11
|
+
// microtask. A cohort of one commits at once, exactly as before this law.
|
|
12
|
+
//
|
|
13
|
+
// Twins: ApiCohort in ApiBlock.kt and ApiBlock.swift (the natives end a stretch at the next
|
|
14
|
+
// main-queue hop). Corpus: the `law-6-*` rows of OpenSource/Conformance/api/api-blocks.json.
|
|
15
|
+
//
|
|
16
|
+
/** The cap, in milliseconds, from the first settled member. */
|
|
17
|
+
export const API_COHORT_CAP_MS = 300;
|
|
18
|
+
/** Host seams: where a stretch ends and how the cap is timed. The corpus harness fakes both. */
|
|
19
|
+
export const ApiCohortSeam = {
|
|
20
|
+
endOfStretch: (fn) => queueMicrotask(fn),
|
|
21
|
+
after: (ms, fn) => setTimeout(fn, ms),
|
|
22
|
+
cancel: (handle) => clearTimeout(handle),
|
|
23
|
+
};
|
|
24
|
+
let current = null;
|
|
25
|
+
/** A fetch joins the cohort of the stretch it starts in. */
|
|
26
|
+
export function joinApiCohort() {
|
|
27
|
+
if (current === null) {
|
|
28
|
+
const opened = { members: new Set(), timer: null, timed: false, expired: false };
|
|
29
|
+
current = opened;
|
|
30
|
+
ApiCohortSeam.endOfStretch(() => { if (current === opened)
|
|
31
|
+
current = null; });
|
|
32
|
+
}
|
|
33
|
+
const member = { cohort: current, release: null, done: false };
|
|
34
|
+
current.members.add(member);
|
|
35
|
+
return member;
|
|
36
|
+
}
|
|
37
|
+
/** The member's response has settled. Null: commit now. A promise: commit when it resolves. */
|
|
38
|
+
export function arriveApiCohort(member) {
|
|
39
|
+
const cohort = member.cohort;
|
|
40
|
+
if (member.done)
|
|
41
|
+
return null;
|
|
42
|
+
if (cohort.expired || cohort.members.size === 1) {
|
|
43
|
+
finish(member);
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return new Promise((resolve) => {
|
|
47
|
+
member.release = resolve;
|
|
48
|
+
if (!cohort.timed) {
|
|
49
|
+
cohort.timed = true;
|
|
50
|
+
cohort.timer = ApiCohortSeam.after(API_COHORT_CAP_MS, () => {
|
|
51
|
+
cohort.timer = null;
|
|
52
|
+
cohort.expired = true;
|
|
53
|
+
releaseSettled(cohort);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (allSettled(cohort))
|
|
57
|
+
releaseSettled(cohort);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/** The member will never arrive (superseded, cancelled, disposed, streamed): stop waiting for it. */
|
|
61
|
+
export function leaveApiCohort(member) {
|
|
62
|
+
if (member === null || member.done)
|
|
63
|
+
return;
|
|
64
|
+
const cohort = member.cohort;
|
|
65
|
+
const release = member.release;
|
|
66
|
+
finish(member);
|
|
67
|
+
release?.();
|
|
68
|
+
if (cohort.members.size > 0 && allSettled(cohort))
|
|
69
|
+
releaseSettled(cohort);
|
|
70
|
+
}
|
|
71
|
+
function finish(member) {
|
|
72
|
+
member.done = true;
|
|
73
|
+
member.release = null;
|
|
74
|
+
member.cohort.members.delete(member);
|
|
75
|
+
}
|
|
76
|
+
function allSettled(cohort) {
|
|
77
|
+
for (const m of cohort.members)
|
|
78
|
+
if (m.release === null)
|
|
79
|
+
return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
function releaseSettled(cohort) {
|
|
83
|
+
const ready = [...cohort.members].filter((m) => m.release !== null);
|
|
84
|
+
if (cohort.members.size === ready.length && cohort.timer !== null) {
|
|
85
|
+
ApiCohortSeam.cancel(cohort.timer);
|
|
86
|
+
cohort.timer = null;
|
|
87
|
+
}
|
|
88
|
+
for (const m of ready) {
|
|
89
|
+
const release = m.release;
|
|
90
|
+
finish(m);
|
|
91
|
+
release();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=api-cohort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-cohort.js","sourceRoot":"","sources":["../src/api-cohort.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,iGAAiG;AACjG,2FAA2F;AAC3F,2FAA2F;AAC3F,iGAAiG;AACjG,+FAA+F;AAC/F,uFAAuF;AACvF,EAAE;AACF,iGAAiG;AACjG,+FAA+F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ACtB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,UAAU,CAAC,MAAc;IAChC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO;QAAE,IAAI,CAAC,CAAC,OAAO,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;IACrE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,cAAc,CAAC,MAAc;IACpC,MAAM,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;IACpE,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QAClE,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,MAAM,OAAO,GAAG,CAAC,CAAC,OAAQ,CAAC;QAC3B,MAAM,CAAC,CAAC,CAAC,CAAC;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { type ReactiveStore } from "./store.ts";
|
|
2
|
+
import { type Item } from "./jse/jse.ts";
|
|
3
|
+
import { type Dict } from "./jse/values.ts";
|
|
4
|
+
import { type GraphMember } from "./reactive-request.ts";
|
|
5
|
+
export type ApiSpec = {
|
|
6
|
+
as: string;
|
|
7
|
+
url: string;
|
|
8
|
+
method?: string;
|
|
9
|
+
/** JSE — default: true for GET, false otherwise (doc 05) */
|
|
10
|
+
auto?: string;
|
|
11
|
+
/** JSE expression yielding a headers dict */
|
|
12
|
+
headers?: string;
|
|
13
|
+
/** JSE expression yielding the request body */
|
|
14
|
+
body?: string;
|
|
15
|
+
/** json (default) | text | blob */
|
|
16
|
+
expect?: string;
|
|
17
|
+
/** debounce ms before a dep-change refetch */
|
|
18
|
+
debounce?: string;
|
|
19
|
+
/** network-error retries: re-sends a request that never got an answer (status 0). What to do
|
|
20
|
+
* with an answer you do not like is yours, in on:error. */
|
|
21
|
+
retry?: string;
|
|
22
|
+
/** THE AUTHOR'S OWN TEST OF WHAT AN ERROR IS: a JSE
|
|
23
|
+
* expression evaluated once per answered response with `dsx.this.status`, `dsx.this.headers`
|
|
24
|
+
* and `dsx.this.data` in scope (the names the success event already carries). When present
|
|
25
|
+
* it REPLACES the status test both ways; a network failure is an error whatever it says. */
|
|
26
|
+
"error-if"?: string;
|
|
27
|
+
/** no-store (default) | max-age(d) | swr(fresh, stale) — durations: N / Ns / Nm / Nh */
|
|
28
|
+
cache?: string;
|
|
29
|
+
/** server-render aware (doc 05/02): default true on GET, false otherwise. A boolean
|
|
30
|
+
* literal (`ssr="true"` / `ssr="false"`), not a reactive expression. Web-only: it
|
|
31
|
+
* gates SSR prefetch during render (executeApiForSSR); the native runtimes ignore
|
|
32
|
+
* it (async is their default), so no cross-platform corpus fixture is required. */
|
|
33
|
+
ssr?: string;
|
|
34
|
+
/** streaming defer (doc 02 "Streaming"): a `defer`red block is NOT awaited during the
|
|
35
|
+
* initial server render — the shell flushes first and the block keeps its client-fetch
|
|
36
|
+
* path on a non-streaming render. OUT-OF-ORDER STREAMING has LANDED (stream.ts
|
|
37
|
+
* renderPageStream, wired in live.ts): the shell flushes immediately with the deferred
|
|
38
|
+
* subtrees showing their loading branches, the response stays open, the deferred blocks
|
|
39
|
+
* run concurrently server-side, and each resolution flushes one `<script>` chunk pushing
|
|
40
|
+
* `{as, seed}`. A block that already settled client-side ignores its chunk. Web-SSR-only
|
|
41
|
+
* like `ssr`: the natives are async by default, so no cross-platform corpus is required. */
|
|
42
|
+
defer?: string;
|
|
43
|
+
/** doc 11: edges the expressions don't show (a session side-effect, an ordering-only
|
|
44
|
+
* constraint) — `needs="a, b"`. An unknown name is a DECLARED error, not a silent wait. */
|
|
45
|
+
needs?: string;
|
|
46
|
+
/** THE RESOURCE THIS BLOCK DECLARES. A GET block declares what it READS, a non-GET
|
|
47
|
+
* block declares what it CHANGES, and a successful non-GET refetches a GET block only
|
|
48
|
+
* when the two match. Normally the url says it and nothing is written here; `depends`
|
|
49
|
+
* is for the url that CANNOT say it (one that starts with a hole, or a write that
|
|
50
|
+
* touches more than the resource it posts to). `depends="/"` is the whole API. */
|
|
51
|
+
depends?: string;
|
|
52
|
+
/** THE TABLE THIS ANSWER IS (localization-and-caching.md L11): a language tag, usually
|
|
53
|
+
* `{{ dsx.app.locale }}`. The block's data becomes the runtime string table for that tag,
|
|
54
|
+
* merged and versioned by the runtime, and a switch to a language whose table is in flight
|
|
55
|
+
* keeps the previous language drawn until it lands. */
|
|
56
|
+
strings?: string;
|
|
57
|
+
/** networking.md N2: DECLARED streaming — `stream="true"` opens a streaming read
|
|
58
|
+
* regardless of content-type, `stream="false"` suppresses the SSE sniff. */
|
|
59
|
+
stream?: string;
|
|
60
|
+
/** proposals/realtime.md R1.5: how many streamed messages `data` holds. A formula (`{{ }}`),
|
|
61
|
+
* read at every delivery. Absent: a `stream="live"` block keeps 128, a finite stream keeps
|
|
62
|
+
* every message (bounded by the response byte cap, as before). */
|
|
63
|
+
keep?: string;
|
|
64
|
+
/** networking.md N2: per-request timeout in ms (bare number). 0/absent = host default. */
|
|
65
|
+
timeout?: string;
|
|
66
|
+
/** networking.md N2: redirect policy — follow (default) | error. */
|
|
67
|
+
redirect?: string;
|
|
68
|
+
/** networking.md N2: REQUEST encoding — json (default) | text | form | multipart. */
|
|
69
|
+
encode?: string;
|
|
70
|
+
/** doc 05 "the secrets story": `via="server"` proxies through the generated server
|
|
71
|
+
* route so the secret-bearing half never reaches the bundle. */
|
|
72
|
+
via?: string;
|
|
73
|
+
};
|
|
74
|
+
export type ApiEvent = "success" | "error" | "message" | "progress";
|
|
75
|
+
/** doc 05 `via="server"` / doc 13 "the embed knows its home origin": the absolute base the
|
|
76
|
+
* proxy route resolves against. "" = same origin (the browser default); the native hosts
|
|
77
|
+
* and the embed loader set their configured web origin here. */
|
|
78
|
+
export declare const ApiServerOrigin: {
|
|
79
|
+
base: string;
|
|
80
|
+
};
|
|
81
|
+
/** proposals/realtime.md R1.4: what one streamed message carried besides its data. `event` is the
|
|
82
|
+
* SSE `event:` field ("message" when the frame named none, and for a newline-delimited stream),
|
|
83
|
+
* `id` the last `id:` the stream has set (the EventSource "last event ID" buffer: it persists
|
|
84
|
+
* across frames that do not set one), `retry` a declared reconnection time in ms. */
|
|
85
|
+
export type ApiStreamMeta = {
|
|
86
|
+
event: string;
|
|
87
|
+
id: string | null;
|
|
88
|
+
retry?: number;
|
|
89
|
+
};
|
|
90
|
+
/** proposals/realtime.md R1: the reconnect ladder's one nondeterministic input. The ladder is the
|
|
91
|
+
* WebSocket module's, byte for byte: `min(2^attempt, 30)` seconds with FULL jitter
|
|
92
|
+
* (Mandatory/WebSocket web/index.js backoffDelayMs), floored by the server's declared `retry:`. A
|
|
93
|
+
* runner pins `random` so a reconnect waits exactly the declared floor. */
|
|
94
|
+
export declare const ApiStreamClock: {
|
|
95
|
+
random: () => number;
|
|
96
|
+
};
|
|
97
|
+
/** an SSR-resolved envelope carried in the hydration payload (doc 02 `api` plane).
|
|
98
|
+
* The client boot seeds a block from this instead of issuing the initial fetch. */
|
|
99
|
+
export type ApiSeed = {
|
|
100
|
+
data?: unknown;
|
|
101
|
+
error?: Dict | null;
|
|
102
|
+
fetchedAt?: number | null;
|
|
103
|
+
};
|
|
104
|
+
export type ApiBlockOpts = {
|
|
105
|
+
/** api events out — mount wires these to the tag's on:success/on:error/on:message */
|
|
106
|
+
onEvent?: (name: ApiEvent, payload: Dict) => void;
|
|
107
|
+
/** injected clock (the conformance fixtures drive time; defaults to Date.now) */
|
|
108
|
+
now?: () => number;
|
|
109
|
+
/** SSR hydration seed (doc 02): when present, the block adopts this resolved data
|
|
110
|
+
* and SKIPS its initial auto-fetch — subsequent dep changes / refresh() / cache
|
|
111
|
+
* behave normally. Absent = the ordinary fetch-on-mount path (unchanged). */
|
|
112
|
+
seed?: ApiSeed;
|
|
113
|
+
/** proposals/static-data.md S4: the time a CLOCKLESS seed was made. A `ssr="build"` seed
|
|
114
|
+
* carries `fetchedAt: null` (so unchanged data is unchanged bytes) and the build writes its
|
|
115
|
+
* time once, as registry.json `builtAt`; the host hands it here beside the seed. */
|
|
116
|
+
builtAt?: number;
|
|
117
|
+
/** doc 11: the component scope's `<api>` DAG. With a graph the block does NOT start on
|
|
118
|
+
* construction — every sibling mounts first, then `graph.start()` runs the runnable
|
|
119
|
+
* ones. Without one, the block is its own scope and starts immediately (unchanged). */
|
|
120
|
+
graph?: ApiGraph;
|
|
121
|
+
/** A graph-free component mount registers handles before graphStart() starts I/O. */
|
|
122
|
+
deferStart?: boolean;
|
|
123
|
+
/** THE EGRESS GATE (RunEnv.egress's twin at the block tier — studio-apps.md §8). The
|
|
124
|
+
* fetchFunnel law says every interpreter fetch passes one funnel, and `<api>` blocks
|
|
125
|
+
* quietly did not: they call the transport directly, so a host running bodies it did
|
|
126
|
+
* not write (a mounted app) had a gated `fetch()` beside an ungated `<api>`. Unset
|
|
127
|
+
* (every surface) = unchanged; set = a refused URL answers the same refused shape a
|
|
128
|
+
* refused fetchFunnel call does (status -2, invalid_request) and never leaves the
|
|
129
|
+
* process. Corpus: Conformance/studio-apps/scope.json (the api-egress case). */
|
|
130
|
+
egress?: (url: string) => boolean;
|
|
131
|
+
};
|
|
132
|
+
/** One call's own event receiver (reference/jse.md): the runner binds it to the
|
|
133
|
+
* call's `{ success, error, message, progress }` callbacks. */
|
|
134
|
+
export type ApiCallListener = (name: ApiEvent, payload: Dict) => Promise<void> | void;
|
|
135
|
+
export type ApiHandle = {
|
|
136
|
+
/** THE INVOKE FACE: `dsx.api.<as>(args?, handlers?)`, the declaration's own method. `listener`
|
|
137
|
+
* receives THIS call's own events (reference/jse.md), additive to the tag's. */
|
|
138
|
+
call(args?: Dict, listener?: ApiCallListener): Promise<unknown>;
|
|
139
|
+
/** the ONE lifecycle verb: `dsx.api.<as>.cancel()` */
|
|
140
|
+
cancel(): void;
|
|
141
|
+
/** THE MATERIALIZED REQUEST, READ FROM OUTSIDE — `materializeApiRequest`'s own answer. */
|
|
142
|
+
request(): Dict;
|
|
143
|
+
dispose(): void;
|
|
144
|
+
};
|
|
145
|
+
export declare function clearApiCache(): void;
|
|
146
|
+
/** the resource an `<api>` spec declares, or null when it declares none */
|
|
147
|
+
export declare function apiResourceKey(spec: {
|
|
148
|
+
url?: string;
|
|
149
|
+
depends?: string;
|
|
150
|
+
}): string | null;
|
|
151
|
+
/** Two declarations match when one CONTAINS the other, segment by segment. A write to
|
|
152
|
+
* `/api/orders` reaches a read of `/api/orders/12`, and a read of `/api/orders` is
|
|
153
|
+
* reached by a write to `/api/orders/12`. `/` is the whole API and matches everything. */
|
|
154
|
+
export declare function apiResourceMatches(read: string, write: string): boolean;
|
|
155
|
+
export type ApiInvalidationDiagnostics = {
|
|
156
|
+
/** successful non-GETs that named the resource they changed */
|
|
157
|
+
targetedWrites: number;
|
|
158
|
+
/** successful non-GETs whose url could not name one, so every reader refetched */
|
|
159
|
+
broadWrites: number;
|
|
160
|
+
/** refetches that happened because one side declared nothing */
|
|
161
|
+
broadRefetches: number;
|
|
162
|
+
/** the authored urls of the live GET blocks that declare no resource */
|
|
163
|
+
undeclaredBlocks: string[];
|
|
164
|
+
};
|
|
165
|
+
export declare function apiInvalidationDiagnostics(): ApiInvalidationDiagnostics;
|
|
166
|
+
export declare function resetApiInvalidationDiagnostics(): void;
|
|
167
|
+
/** INVALIDATION IS AN ACTION (localization-and-caching.md C4; corpus api/api-blocks.json
|
|
168
|
+
* `cache-invalidate-*`): `dsx.cache.invalidate('/posts')` makes every entry tagged with that
|
|
169
|
+
* resource unreachable at once, in every live surface, and refetches the mounted readers that
|
|
170
|
+
* read it: the same match a write makes (`apiResourceMatches`), with the resource named by the
|
|
171
|
+
* author instead of a write's url. A reader whose url names no resource refetches, the safe side
|
|
172
|
+
* of the law. Not a write, so the write diagnostics are not counted. An argument that names no
|
|
173
|
+
* resource invalidates nothing. */
|
|
174
|
+
export declare function invalidateApiResource(resource: unknown): void;
|
|
175
|
+
type CachePolicy = {
|
|
176
|
+
kind: "no-store";
|
|
177
|
+
} | {
|
|
178
|
+
kind: "max-age";
|
|
179
|
+
age: number;
|
|
180
|
+
} | {
|
|
181
|
+
kind: "swr";
|
|
182
|
+
fresh: number;
|
|
183
|
+
stale: number;
|
|
184
|
+
};
|
|
185
|
+
/** THE CACHE GRAMMAR, exported for the one other reader that must agree with it: a route row's
|
|
186
|
+
* `cache` (server live.ts, proposals/localization-and-caching.md C3) takes the same words an
|
|
187
|
+
* `<api cache>` does, so a page and its data are declared in one vocabulary. */
|
|
188
|
+
export declare function parseCachePolicy(attr: string | undefined): CachePolicy;
|
|
189
|
+
export type { CachePolicy };
|
|
190
|
+
/** One gate row: `<as>.blockedBy` is `[{ name, reason }]` while `waiting`. */
|
|
191
|
+
export type ApiBlocked = {
|
|
192
|
+
name: string;
|
|
193
|
+
reason: string;
|
|
194
|
+
};
|
|
195
|
+
/** The `<api>` dependency graph of ONE component scope (doc 11). Blocks attach to it,
|
|
196
|
+
* every block mounts before any fires, and a settled block re-evaluates its dependents:
|
|
197
|
+
* deep chains waterfall along their own edges, everything else stays concurrent. */
|
|
198
|
+
export declare class ApiGraph {
|
|
199
|
+
private readonly names;
|
|
200
|
+
private readonly upstream;
|
|
201
|
+
private readonly blocks;
|
|
202
|
+
/** the cycle path, when the declared graph is not a DAG (doc 11: a declared error) */
|
|
203
|
+
readonly cycle: string[] | null;
|
|
204
|
+
private readonly unknown;
|
|
205
|
+
private started;
|
|
206
|
+
constructor(specs: ApiSpec[]);
|
|
207
|
+
/** DFS with an explicit colour map — returns the first cycle path found, in
|
|
208
|
+
* declaration order so every runtime reports the same one. */
|
|
209
|
+
private findCycle;
|
|
210
|
+
upstreamsOf(name: string): string[];
|
|
211
|
+
unknownNeedsOf(name: string): string[];
|
|
212
|
+
attach(block: GraphMember, name: string): void;
|
|
213
|
+
detach(name: string): void;
|
|
214
|
+
/** Mount is over — every block is registered, so the runnable ones may start. */
|
|
215
|
+
start(): void;
|
|
216
|
+
/** An upstream settled: its dependents re-evaluate and fire the moment THEIR inputs
|
|
217
|
+
* are whole. Unrelated siblings are untouched (equality-checked identities). */
|
|
218
|
+
notifySettled(settled: string): void;
|
|
219
|
+
}
|
|
220
|
+
export declare function normalizeRequestHeaders(value: unknown): Dict | null;
|
|
221
|
+
/** Evaluate url/headers/body/auto in `store`'s scope — the ONE place the request is
|
|
222
|
+
* materialized (the block's dependency effect and the SSR prefetch below both use it,
|
|
223
|
+
* so the request an SSR run executes is byte-for-byte the one the client would). */
|
|
224
|
+
export declare function materializeApiRequest(declared: ApiSpec, store: ReactiveStore, item: Item): Dict;
|
|
225
|
+
/** `JSE.interpolate`, with the doc-11 hole ledger: a `{{ … }}` that evaluates to
|
|
226
|
+
* null/undefined and reads at least one non-ambient path records its scope name. */
|
|
227
|
+
export declare function interpolateGated(template: string, store: ReactiveStore, item: Item, missing: string[]): string;
|
|
228
|
+
/** THE DECLARED WORDS OF AN `<api>` TAKE `{{ }}`. `method`,
|
|
229
|
+
* `expect`, `timeout`, `retry`, `cache`, `debounce`, `redirect`, `encode` and `keep` are read
|
|
230
|
+
* through the interpolation law every attribute obeys, against the block's own scope, WHEN THE
|
|
231
|
+
* NEXT REQUEST STARTS: `method` and `expect` are part of the materialized request (a change is a
|
|
232
|
+
* new request, like a url change), the rest are transport policy the next request reads. A word
|
|
233
|
+
* with no hole is the word, at no cost. `as`, `needs`, `depends`, `ssr`, `via` and `stream` are
|
|
234
|
+
* DECLARATION facts the build and the graph read before any state exists, and the linter
|
|
235
|
+
* refuses a hole in them by name. Twins: ApiBlock.kt `word`, ApiBlock.swift `word`. */
|
|
236
|
+
export declare function apiWord(raw: string | undefined, store: ReactiveStore, item: Item): string | undefined;
|
|
237
|
+
/** The spec with its dynamic words read now (see `apiWord`). The same object when nothing in it
|
|
238
|
+
* carries a hole, so a static block allocates nothing. */
|
|
239
|
+
export declare function liveApiSpec(spec: ApiSpec, store: ReactiveStore, item: Item): ApiSpec;
|
|
240
|
+
/** `error-if`: is this ANSWERED response an error? `undefined` when the block declares no test
|
|
241
|
+
* (the status decides) or the response never got an answer (a network failure is always an
|
|
242
|
+
* error). Twins: ApiBlock.kt / ApiBlock.swift `judgedError`. */
|
|
243
|
+
export declare function apiErrorIf(expr: string | undefined, res: Dict, store: ReactiveStore, item: Item): boolean | undefined;
|
|
244
|
+
export declare const API_DYNAMIC_WORDS: readonly ["method", "expect", "timeout", "retry", "cache", "debounce", "redirect", "encode", "keep", "strings"];
|
|
245
|
+
/** doc 05/02: `ssr` defaults true for GET, false otherwise; an explicit boolean-literal
|
|
246
|
+
* attribute overrides. A non-GET is NEVER eligible (a mutation must never run during
|
|
247
|
+
* render), regardless of the flag. A `defer`red block is also ineligible — the shell
|
|
248
|
+
* flushes without it and it fetches on the client (the streaming flush is the open seam). */
|
|
249
|
+
export declare function apiSsrEnabled(spec: ApiSpec): boolean;
|
|
250
|
+
/** proposals/static-data.md S1: `ssr="build"` - the block is resolved by `despia build` and
|
|
251
|
+
* baked into the route's HTML and hydration payload. Fail CLOSED: the build refuses when it
|
|
252
|
+
* cannot resolve one. A GET only, like every server-resolved block. */
|
|
253
|
+
export declare function apiBuildTime(spec: ApiSpec): boolean;
|
|
254
|
+
/** doc 02 "Streaming": a boolean-literal `defer` marks a block for out-of-order streaming.
|
|
255
|
+
* The initial render never awaits a deferred block — the shell flushes with its loading
|
|
256
|
+
* branch; a STREAMING adapter (server stream.ts renderPageStream) then runs it and
|
|
257
|
+
* flushes its seed as a late chunk, and a non-streaming render leaves it on the
|
|
258
|
+
* client-fetch path (fail-open either way). */
|
|
259
|
+
export declare function apiDeferred(spec: ApiSpec): boolean;
|
|
260
|
+
/** Is this block ALREADY IN FLIGHT the first time a render reads its envelope?
|
|
261
|
+
*
|
|
262
|
+
* An `auto` block fires from its dependency effect the moment the head scope is built, and
|
|
263
|
+
* the effect body publishes `loading: true` (network) or `loading: true, status: "waiting"`
|
|
264
|
+
* (publishGate, when doc 11 gating holds it) BEFORE the tree is walked. So on the client the
|
|
265
|
+
* answer at first paint is yes for every auto block, gated or not, and no for a block that
|
|
266
|
+
* will never fire on its own.
|
|
267
|
+
*
|
|
268
|
+
* The SSR renderer runs no effects, so it has to ask this question rather than observe it.
|
|
269
|
+
* Without it the server published `loading: false, status: "ready"` for a block it never ran,
|
|
270
|
+
* which is not merely a different value, it is untrue: `data` is null because nothing has
|
|
271
|
+
* been fetched yet, not because the answer is empty. That untruth is what a `loading` branch
|
|
272
|
+
* and its `!loading && rows.length == 0` sibling BOTH read, so the server rendered the empty
|
|
273
|
+
* state where the client renders the loading one, and every such pair was a hydration
|
|
274
|
+
* mismatch (the Studio's navigator: "This project has no screens yet" server-side against
|
|
275
|
+
* "Reading the project…" on the client). One law, asked on both planes. */
|
|
276
|
+
export declare function apiPendingAtFirstRender(spec: ApiSpec, store: ReactiveStore, item: Item): boolean;
|
|
277
|
+
/** doc 02 out-of-order streaming: is this block one the STREAM runs after the initial
|
|
278
|
+
* flush? Exactly the ssr-eligibility ladder with the defer arm inverted — a deferred
|
|
279
|
+
* GET whose `ssr` flag is not explicitly false. Web-SSR infrastructure, like `ssr=`
|
|
280
|
+
* itself: no native twin owed (the unified-codebase law's infrastructure exemption). */
|
|
281
|
+
export declare function apiStreamEligible(spec: ApiSpec): boolean;
|
|
282
|
+
export type SsrApiOutcome =
|
|
283
|
+
/** ineligible (ssr=false, non-GET, or auto=false) — never seeded; client fetches on mount */
|
|
284
|
+
{
|
|
285
|
+
status: "skip";
|
|
286
|
+
}
|
|
287
|
+
/** attempted but not usable (network/timeout/http/decode) — fall back to the client
|
|
288
|
+
* fetch path (fail-open: SSR is a pure optimization, never a broken page) */
|
|
289
|
+
| {
|
|
290
|
+
status: "client";
|
|
291
|
+
code: string;
|
|
292
|
+
}
|
|
293
|
+
/** resolved ok — seed this envelope into the hydration payload */
|
|
294
|
+
| {
|
|
295
|
+
status: "seed";
|
|
296
|
+
envelope: ApiSeed;
|
|
297
|
+
};
|
|
298
|
+
/** Execute one `<api>` block during server render (doc 05 "SSR semantics"). Bounded by
|
|
299
|
+
* a hard timeout and returns a normalized outcome. ONLY a clean, ok GET response is
|
|
300
|
+
* seeded; every failure (network error, timeout, abort, http error, decode error)
|
|
301
|
+
* falls back to the client-fetch path so the page is never broken by a bad upstream. */
|
|
302
|
+
/** THE SERVER DATA CACHE (localization-and-caching.md C1): where an SSR pass keeps a PUBLIC
|
|
303
|
+
* block's answer, keyed by its materialized request exactly as the client keys it (so the
|
|
304
|
+
* locale header of C7 is in the key), with the resource it read (C4). The node host holds a
|
|
305
|
+
* bounded in-process LRU (server data-cache.ts); a host with a platform cache supplies its own. */
|
|
306
|
+
/** The server data cache an SSR pass reads through (C1). A host with a platform cache answers
|
|
307
|
+
* asynchronously (the Cloudflare Cache API behind each isolate's LRU); the node host's LRU
|
|
308
|
+
* answers at once. Both shapes are one seam. */
|
|
309
|
+
export type SsrDataCache = {
|
|
310
|
+
get(key: string): {
|
|
311
|
+
data: unknown;
|
|
312
|
+
at: number;
|
|
313
|
+
} | undefined | Promise<{
|
|
314
|
+
data: unknown;
|
|
315
|
+
at: number;
|
|
316
|
+
} | undefined>;
|
|
317
|
+
put(key: string, entry: {
|
|
318
|
+
data: unknown;
|
|
319
|
+
at: number;
|
|
320
|
+
resource: string | null;
|
|
321
|
+
}): void | Promise<void>;
|
|
322
|
+
};
|
|
323
|
+
/** The key the server data cache files a materialized request under: the client's own parts. */
|
|
324
|
+
export declare function ssrDataCacheKey(req: Dict): string;
|
|
325
|
+
export declare function executeApiForSSR(spec: ApiSpec, store: ReactiveStore, item: Item, opts?: {
|
|
326
|
+
now?: () => number;
|
|
327
|
+
timeoutMs?: number;
|
|
328
|
+
allowDeferred?: boolean;
|
|
329
|
+
origin?: string;
|
|
330
|
+
dataCache?: SsrDataCache;
|
|
331
|
+
}): Promise<SsrApiOutcome>;
|
|
332
|
+
export declare class ApiBlock implements ApiHandle {
|
|
333
|
+
private readonly spec;
|
|
334
|
+
private readonly store;
|
|
335
|
+
private readonly item;
|
|
336
|
+
private readonly onEvent;
|
|
337
|
+
private readonly now;
|
|
338
|
+
/** The declared cache policy, parsed once; null when `cache=` carries a hole and is read at
|
|
339
|
+
* each use instead (`policy`). */
|
|
340
|
+
private readonly staticPolicy;
|
|
341
|
+
private get policy();
|
|
342
|
+
private readonly seed;
|
|
343
|
+
private readonly builtAt;
|
|
344
|
+
private readonly graph;
|
|
345
|
+
private readonly egress;
|
|
346
|
+
/** proposals/realtime.md R0: WHEN this block (re)connects is the shared reactive law,
|
|
347
|
+
* reactive-request.ts; this class owns HOW (transport, cache, seed, envelope). */
|
|
348
|
+
private readonly rr;
|
|
349
|
+
/** stable UI Law 6: the cohort the read in flight belongs to (api-cohort.ts). */
|
|
350
|
+
private cohort;
|
|
351
|
+
private declaredError;
|
|
352
|
+
/** what this block declares it reads (GET/HEAD) or changes (everything else) */
|
|
353
|
+
readonly resourceKey: string | null;
|
|
354
|
+
private readonly isReader;
|
|
355
|
+
constructor(spec: ApiSpec, store: ReactiveStore, item: Item, opts?: ApiBlockOpts);
|
|
356
|
+
/** doc 11: the graph starts its blocks only once EVERY sibling has mounted, so the
|
|
357
|
+
* runnable set is computed against the whole scope, not against mount order. */
|
|
358
|
+
graphStart(): void;
|
|
359
|
+
/** doc 02 out-of-order streaming: adopt a SERVER-resolved envelope that arrived over
|
|
360
|
+
* the response stream AFTER this block mounted (web-SSR infrastructure, like `ssr=`).
|
|
361
|
+
* Applied only while the block has not itself SETTLED (no fetchedAt, no error) — the
|
|
362
|
+
* client's own resolved envelope always wins, never a backwards flash. An in-flight
|
|
363
|
+
* initial fetch is superseded exactly like a stale response (generation bump + abort).
|
|
364
|
+
* Fires `success` like any resolved-ok request (corpus law 7). Returns whether the
|
|
365
|
+
* seed took. */
|
|
366
|
+
seedLate(seed: ApiSeed): boolean;
|
|
367
|
+
/** An upstream settled. Re-materialize + re-gate; the identity guard means an
|
|
368
|
+
* unrelated settle, or a refetch that produced identical data, is a no-op. */
|
|
369
|
+
graphReevaluate(): void;
|
|
370
|
+
private startEffect;
|
|
371
|
+
/** evaluate url/headers/body/auto in the current scope (tracked) */
|
|
372
|
+
private materialize;
|
|
373
|
+
/** The identity the reactive law compares (reactive-request.ts). The ReactiveStore's generic
|
|
374
|
+
* effect key must never recursively walk an unbounded authored body: validate/encode first,
|
|
375
|
+
* then key on the bounded wire string. */
|
|
376
|
+
private requestIdentity;
|
|
377
|
+
/** THE MATERIALIZED REQUEST, READ FROM OUTSIDE. The devtools state door's api plane shows a
|
|
378
|
+
* person the url their expression actually PRODUCED, which is the one line on a response
|
|
379
|
+
* panel no other surface can answer — `url=` is a template and `{{ … }}` is what a reader
|
|
380
|
+
* cannot evaluate in their head.
|
|
381
|
+
*
|
|
382
|
+
* It is `materializeApiRequest`'s answer and nothing else, which is the whole reason this
|
|
383
|
+
* method exists rather than a second pass at the door: the tracked request when the effect
|
|
384
|
+
* holds one (the request this block last materialized, prepared exactly as it would be
|
|
385
|
+
* sent), and a fresh materialization when it does not (the request it WOULD send). A reader
|
|
386
|
+
* that re-evaluated `url`/`headers` itself would be a second opinion about what the block
|
|
387
|
+
* requests, and doc 05 keeps that to one function on purpose — the SSR prefetch is the other
|
|
388
|
+
* caller, and it exists so an SSR run issues byte-for-byte the request the client would.
|
|
389
|
+
*
|
|
390
|
+
* A COPY, because `fire` MUTATES the request it is handed (a body override, the encoded wire
|
|
391
|
+
* body and its content-type) and a reader must not be able to reach into the block's own. */
|
|
392
|
+
request(): Dict;
|
|
393
|
+
/** SSR-seeded blocks skip the first fetch; on a cacheable policy, prime the cache
|
|
394
|
+
* with the seed so a same-request revisit inside the fresh window is a hit, not a
|
|
395
|
+
* network call (doc 02: "the client marks them fresh per cache"). */
|
|
396
|
+
private primeSeedCache;
|
|
397
|
+
/** When the seed's answer was made: its own `fetchedAt`, else the build's `builtAt`, else
|
|
398
|
+
* unknown (null). */
|
|
399
|
+
private seedAt;
|
|
400
|
+
/** proposals/static-data.md S4: does the seed stand on mount? no-store: always (a static
|
|
401
|
+
* answer is the answer). max-age(d): while younger than d. swr(f, s): while younger than f.
|
|
402
|
+
* A seed of unknown age stands (the pre-S4 behaviour). */
|
|
403
|
+
private seedFresh;
|
|
404
|
+
private prepareRequest;
|
|
405
|
+
/** doc 11: a cycle, or a `needs=` naming a block that is not in this scope. */
|
|
406
|
+
private publishDeclaredError;
|
|
407
|
+
/** networking.md N2 "Progress": each entry publishes `<as>.progress` and fires
|
|
408
|
+
* `on:progress` BEFORE the terminal settle. Real transports deliver them one at a
|
|
409
|
+
* time; the seamed corpus carries them on the response envelope. */
|
|
410
|
+
private publishProgress;
|
|
411
|
+
private cacheKey;
|
|
412
|
+
private emitEvent;
|
|
413
|
+
private serveCached;
|
|
414
|
+
private disposedTable;
|
|
415
|
+
/** L11: a `strings` block's answer is a table. After every fire, a ready answer installs it for
|
|
416
|
+
* the tag the block names now, and an error releases that tag's hold. */
|
|
417
|
+
private fire;
|
|
418
|
+
private inflightRead;
|
|
419
|
+
private fireStrings;
|
|
420
|
+
private fireIn;
|
|
421
|
+
/** stable-ui Law 2: the envelope holds something a surface can draw. A reader's `.data` is
|
|
422
|
+
* content; a submit's is the last response, and its `.loading` stays the pending action. */
|
|
423
|
+
private hasData;
|
|
424
|
+
private failRequest;
|
|
425
|
+
private network;
|
|
426
|
+
private networkIn;
|
|
427
|
+
/** THE INVOKE FACE, and the only verb a document reaches (`await dsx.api.<as>(args?)`).
|
|
428
|
+
* ONE word, because the declaration already says what the request IS: a GET called is the
|
|
429
|
+
* re-read `rerun` performs, a non-GET called is the submit `submit` performs, and `args` is
|
|
430
|
+
* the optional body override a submit accepts. `refresh` and `send` were two names for one
|
|
431
|
+
* idea whose difference was already written in `method=`, so the author had to restate it
|
|
432
|
+
* at every call site and could state it WRONGLY; they are retired, not aliased (constitution
|
|
433
|
+
* "Experimental release compatibility policy"), and no runner dispatches them under any
|
|
434
|
+
* spelling. Twins: ApiBlock.kt `call`, ApiBlock.swift `call`. */
|
|
435
|
+
call(args?: Dict, listener?: ApiCallListener): Promise<unknown>;
|
|
436
|
+
/** The call handlers of the request in flight, and the ones the next `fire` adopts. */
|
|
437
|
+
private listener;
|
|
438
|
+
private pendingListener;
|
|
439
|
+
/** re-run now - revalidates (bypasses freshness, rewrites cache); data stays until it
|
|
440
|
+
* resolves. Answers the same `{ ok, status, data | error }` envelope a submit answers, so
|
|
441
|
+
* `await dsx.api.<as>()` reads one way whatever the declaration's method is. */
|
|
442
|
+
private rerun;
|
|
443
|
+
/** fire with a body override; mutations always hit the network (awaitable envelope).
|
|
444
|
+
* doc 11: a manual submit IGNORES gating but not HOLES - submitting with a hole in the
|
|
445
|
+
* inputs returns an `incomplete_input` envelope instead of a malformed request. */
|
|
446
|
+
private submit;
|
|
447
|
+
cancel(): void;
|
|
448
|
+
dispose(): void;
|
|
449
|
+
/** A write this block declared a dependency on landed: revalidate. A block the author
|
|
450
|
+
* fires by hand stays the author's to fire, and doc 11's gate still holds: a block
|
|
451
|
+
* whose inputs are not whole never issues a request, write or no write. */
|
|
452
|
+
invalidatedByWrite(): void;
|
|
453
|
+
}
|
|
454
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AA8BA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAA6D,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAmB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