import { Historian } from "./historian.js";
import { watch } from "../../nexus/state.js";
export class AppCore {
#tree;
#historian;
get state() { return this.#tree.state; }
get history() { return this.#historian.history; }
get actions() { return this.#historian.actions; }
constructor(params) {
this.#tree = watch.stateTree(params.initial_state);
this.#historian = new Historian(this.#tree, params.actions_blueprint, params.history_limit);
}
}