Root Helpers
Standalone functions exported from the package root — usable without constructing a client.
5 methods
(root exports).parseRef()
Parse a `name@version` definition reference string into its parts.
Parameters
refrequiredstringReference string, e.g. 'code-validator@1.2.0'.
parseRef(ref: string)import { UluOpsClient } from '@uluops/core';
const client = new UluOpsClient({
apiKey: 'ulr_your-api-key',
});
const result = await (root exports).parseRef('example-value');{ name: string; version?: string }(root exports).classifyDecision()
Classify a decision string into its category (positive / negative / conditional / neutral) via the core register plus an optional custom vocabulary map.
Parameters
decisionrequiredstringDecision string emitted by an agent.
vocabularyMapoptionalVocabularyMapOptional custom vocabulary map from buildVocabularyMap().
classifyDecision(decision: string, vocabularyMap?)import { UluOpsClient } from '@uluops/core';
const client = new UluOpsClient({
apiKey: 'ulr_your-api-key',
});
const result = await (root exports).classifyDecision('example-value');DecisionCategory(root exports).buildVocabularyMap()
Build a decision-vocabulary map from a definition's declared decision vocabulary. Entries that would remap core-register strings (PASS, FAIL, COMPLETE, …) are ignored (CWE-345 guard).
Parameters
definitionrequiredAgentDefinitionDefinition whose decisions.vocabulary block to read.
buildVocabularyMap(definition)import { UluOpsClient } from '@uluops/core';
const client = new UluOpsClient({
apiKey: 'ulr_your-api-key',
});
const result = await (root exports).buildVocabularyMap('example-value');VocabularyMap(root exports).resolveDecisionCategory()
Resolve an execution result's decision category — prefers the engine-stamped `decisionCategory`, falls back to core-register classification. Added in 0.30.0; the canonical way to gate on custom-vocabulary verdicts (EXPOSED, BEWITCHED, …).
Parameters
resultrequiredExecutionResultExecution result to classify.
resolveDecisionCategory(result: ExecutionResult)import { UluOpsClient } from '@uluops/core';
const client = new UluOpsClient({
apiKey: 'ulr_your-api-key',
});
const result = await (root exports).resolveDecisionCategory('example-value');DecisionCategory(root exports).deriveCompleteness()
Derive a completeness assessment from degradation markers on an execution result.
Parameters
markersrequiredDegradationMarkersDegradation markers from an execution result.
deriveCompleteness(markers)import { UluOpsClient } from '@uluops/core';
const client = new UluOpsClient({
apiKey: 'ulr_your-api-key',
});
const result = await (root exports).deriveCompleteness('example-value');CompletenessAssessment