No module outside this workspace was ever published against the
alias (the system has no external users yet), so the pre-rename
name goes away instead of being maintained: one attribute, no
legacy surface. All internal doc references swept; echo example
description moves to the product name. 0.3.0.
Signed-off-by: flemming-it <sf@flemming.it>
Brings the module SDK to WIT 1.1 in lockstep with the platform and
exposes the new host.emit-event as an ergonomic ctx.emit(name,
payload). Modules emit ephemeral progress/stream events (progress,
token streaming) delivered live to a following client and never
persisted.
- wit/world.wit → 1.1.0 (host.emit-event + use types.{payload}).
- host.rs: an emit hook (thread-local fn pointer; guest is
single-threaded). The #[fai_module] expansion installs a closure
reaching the real WIT emit-event import at the start of each
invocation; Context::emit calls through it. Outside a hub (unit
tests) it is a silent no-op.
- examples/progress: reference module emitting progress + token events;
builds clean for wasm32-wasip2, proving the ergonomics end-to-end.
The SDK keeps shielding module authors: emit is the whole surface, no
wit_bindgen in sight.
Signed-off-by: flemming-it <sf@flemming.it>
The SDK is product-scoped (Ch∆In's module SDK), not a generic vendor
crate — a future Brain SDK would collide. Crate + macros renamed to
chain-module-sdk[-macros]; repo + dir follow.
Signed-off-by: flemming-it <sf@flemming.it>
2026-06-16 11:26:37 +02:00
Renamed from crates/fai-module-sdk/src/context.rs (Browse further)