frame-cli 0.3.0

CLI for Frame — five intention-verbs over one application: frame new scaffolds it, frame run serves it, frame test proves it (real browser included), frame check verifies it statically, frame doctor walks the prerequisites
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gleam/erlang/process.{type Pid}

@external(erlang, "{{GLEAM_NAME}}_ffi", "loop")
fn actor_loop(supervisor: Pid, state: Int) -> Nil

/// Starts the component actor. The FFI is only the raw receive primitive;
/// this Gleam module owns the component entrypoint and message contract.
pub fn run(supervisor: Pid) -> Nil {
  actor_loop(supervisor, 0)
}

/// The entity command used by the host adapter and actor.
pub fn entity_message() -> Int {
  7
}