import { PAG_LANGUAGE } from "#configuration/constants/code.constants"; import { START_SECTION_ICON } from "#configuration/icons/grammar.icons"; import { START_SECTION_ID } from "#core/ids/grammar.ids"; import type { Section } from "#types/document.types"; const NODE_SHAPE = '# a node is the unit · every field is load-bearing, and the gate is what makes it a unit\n# NODE [ · · · yields: ]\n@purpose: ""\n@axis_question: ""\n@cue: ""\n@mandatory # present on a node of the conative or evaluative layer · it never folds\n\nCONTRACT:\n input: \n transform: \n constraints: \n output: \n handoff: \n\n# OUTPUT CONTRACT\nSET = \n\nHANDOFF GATE (evidence-bearing):\n rule_id: "" yields: \n [check] (evidence: ) over: measured: / \n [check] (evidence: )\n [check] (evidence: )\n refuse: before # on a node that writes\n result: pass -> NODE | -> REPAIR (owner: ) | unknown -> BLOCKED'; const DIRECTIVE_SHAPE = "# inside a node, a directive is an operation, a target, a relation and a destination · every slot filled\nOPERATION PREPOSITION INTO \n\nREAD_RESOURCE FROM INTO \nEXTRACT_FACTS FROM INTO \nANALYZE_CONTENT AGAINST INTO \nFILTER TO WHERE \nCOMPOSE_ARTIFACT FROM USING