@funeste38/scream
v0.1.0
Published
Semantic prototype for SCREAM, WAZAA and MASK in the Funesterie ecosystem.
Readme
@funeste38/scream
scream is a small semantic prototype for the Funesterie stack.
It exposes three layers:
SCREAM: text to resonance graphWAZAA: text to intermediate semantic structureMASK: normalize, validate and compile the semantic structure
Install
npm install @funeste38/screamAPI
const {
textToResonanceGraph,
textToWazaa,
wazaaToMask,
validateMask,
compileMask
} = require("@funeste38/scream");textToResonanceGraph(text)
Returns a simple graph-oriented placeholder structure:
{
input: text,
resonanceGraph: [],
meta: {}
}textToWazaa(text)
Returns a semantic intermediate placeholder:
{
input: text,
wazaa: {},
meta: {}
}wazaaToMask(wazaa)
Builds a first MASK-shaped object:
{
intent: wazaa.intent || "unknown",
inputs: wazaa.inputs || {},
meta: wazaa.meta || {}
}validateMask(mask)
Checks the minimal contract:
valid: truewhenintentexists- an
errorsarray otherwise
compileMask(mask)
Returns a placeholder compiled payload:
{
compiled: mask
}Development
npm install
npm test