004 cell state get set fields

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

shape: visits:u32;name:string;awake:bool
visits unset
visits set
visits = 41
unknown: vists (shape: room_state)
visits wanted u32
name set
name reset
name = assistant-02
awake set
awake = true
cell said: r1
assistant hibernated

Expected output

shape: visits:u32;name:string;awake:bool
visits unset
visits set
visits = 41
unknown: vists (shape: room_state)
visits wanted u32
name set
name reset
name = assistant-02
awake set
awake = true
cell said: r1
assistant hibernated

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (room_state, source: visits: u32 name: string awake: bool)
flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "cell", source: greet(5))
flow ~open click a branch to expand · @labels scroll to their anchor
open (expr: room_state, id: "assistant")

Test Configuration

MUST_RUN