Registry↗Dashboard↗

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.

refrequiredstring

Reference string, e.g. 'code-validator@1.2.0'.

parseRef(ref: string)
typescript
import { UluOpsClient } from '@uluops/core';

const client = new UluOpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await (root exports).parseRef('example-value');
Response Type
{ 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.

decisionrequiredstring

Decision string emitted by an agent.

vocabularyMapoptionalVocabularyMap

Optional custom vocabulary map from buildVocabularyMap().

classifyDecision(decision: string, vocabularyMap?)
typescript
import { UluOpsClient } from '@uluops/core';

const client = new UluOpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await (root exports).classifyDecision('example-value');
Response Type
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).

definitionrequiredAgentDefinition

Definition whose decisions.vocabulary block to read.

buildVocabularyMap(definition)
typescript
import { UluOpsClient } from '@uluops/core';

const client = new UluOpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await (root exports).buildVocabularyMap('example-value');
Response Type
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, …).

resultrequiredExecutionResult

Execution result to classify.

resolveDecisionCategory(result: ExecutionResult)
typescript
import { UluOpsClient } from '@uluops/core';

const client = new UluOpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await (root exports).resolveDecisionCategory('example-value');
Response Type
DecisionCategory

(root exports).deriveCompleteness()

Derive a completeness assessment from degradation markers on an execution result.

markersrequiredDegradationMarkers

Degradation markers from an execution result.

deriveCompleteness(markers)
typescript
import { UluOpsClient } from '@uluops/core';

const client = new UluOpsClient({
  apiKey: 'ulr_your-api-key',
});

const result = await (root exports).deriveCompleteness('example-value');
Response Type
CompletenessAssessment