DSLO's picture
Create muc.js
5251f87 verified
Raw
History Blame Contribute Delete
557 Bytes
// muc.js
// Meaning Unit Compiler (MUC) — converts MUE → Meaning Unit (MU)
function compileMUE(mue) {
return {
mucVersion: "v0.1",
compiledAt: new Date().toISOString(),
// Stable ID (deterministic over raw content)
id: `mu-${Buffer.from(mue.raw).toString('hex')}`,
// Core meaning unit payload (still opaque)
payload: {
raw: mue.raw,
length: mue.metadata.length,
type: mue.metadata.type
},
// No semantics, no interpretation
semanticProcessing: false
};
}
module.exports = { compileMUE };