@ graview/ studio (英语)
宣言本身作为一个图. 类型,领域,边缘,行为,规则,角色,
赠与、取景和品牌是元显像的节点
不变 defineNode 所以工作室是Graview的应用软件
声明: 添加字段是行为, 重命名一类是行为, 每
更改是作者的一项行动、意图和反面,以及 graview check
判断结果是否适用.
import { createStudio, createStudioLens } from "@graview/studio";
const studio = createStudio(app); // the app's declaration, as a store
studio.store.apply({ name: "add-field", args: { kind: "kind:plot", label: "soil", type: "enum", required: true, options: ["clay", "loam"] } });
studio.check(); // graview check on what it would become
const applied = studio.apply(); // { app, migration } — refused while there are errors
studio.files(); // src/domain/schema.ts, mutations.ts, invariants.ts, policy.ts
// An agent proposes; a person keeps or takes back.
studio.propose({ name: "add-kind", args: { label: "bed" } }, { kind: "agent", id: "planner" });
studio.proposals(); // the agent's batches still standing
studio.decline("proposal:1"); // undo, like any turn of an agent's
createStudioLens(app).View登记在工作室的种类
标题,是一个地方:检查者所说的,根据每个变化来判断.
一个图能携带的是宣言的形状. 动作的手写
身体和规则的判断是代码: 工作室保持检查通过
名称,为它从行为中宣布的行为写出一个机构(创建,
连结、断开、写作
退票前什么也没有 evaluate。 。 。 .