WEFT_OS/crates/weft-runtime/wit/weft-app.wit
Marco Allegretti 84eb39db96 feat(runtime): add weft:app/notify WIT package and notify-ready host interface
Adds crates/weft-runtime/wit/weft-app.wit defining package weft:app@0.1.0
with interface notify { ready: func() }.

In the wasmtime-runtime path:
- Registers weft:app/notify@0.1.0 in the component linker before instantiation
- ready() prints
2026-03-11 15:15:11 +01:00

10 lines
399 B
Text

package weft:app@0.1.0;
/// Host interface that a WEFT app component imports to signal lifecycle events.
interface notify {
/// Signal to the runtime that the application has finished initialising
/// and is ready to serve requests. The runtime forwards this signal to
/// the session supervisor (appd), which transitions the session to the
/// Running state.
ready: func();
}