sprawling-runtime 0.0.12

One run of a sprawling resident, from dispatch to freeze: turns, tools, replay and the sandbox that executes code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Copyright (c) 2026 2youg1 and the sprawling contributors

// Phase order is the type: an Assembling turn has no call method — the
// provider cannot be reached before prompt assembly is on the ledger.

fn main() {
    let mut now = || -> Result<kernel::TimeMs, kernel::AxError> { Ok(kernel::TimeMs::new(0)) };
    let mut lines = runtime::turn::HeldLines::open(kernel::RunId::CITY, "who".to_owned());
    let turn = runtime::turn::Turn::begin(&mut lines, kernel::TimeMs::new(0), &mut now);
    let _ = turn.call();
}