@purista/harness
v1.1.0
Published
Self-hosted enterprise agent harness for typed tools, agents, workflows, state, sandboxing, and telemetry.
Readme
@purista/harness
Self-hosted enterprise agent harness for typed tools, agents, workflows, state, sandboxing, streaming, and OpenTelemetry instrumentation.
The core package also exports provider-neutral eval helpers:
evaluatePromptCandidates(...)compares prompt candidates against a fixed item set and deterministic or custom scorers.evaluateDeterministicScorer(...)runs JSON Pointer based deterministic scorer definitions without provider calls. It is exported from the main package and re-exported from@purista/harness/testing.
Telemetry defaults to dual GenAI and OpenInference attributes with no content
capture. InvokeOptions.traceparent and tracestate accept inbound W3C Trace
Context so application traces can parent harness run spans.
See Evaluating Prompts for the execution model, scorer limits, and privacy behavior.
Install
npm install @purista/harnessOptional peer dependencies:
@modelcontextprotocol/sdkenables MCP stdio/http tools.just-bashenables the exec-capable bash sandbox.@opentelemetry/apiconnects harness spans to an existing OpenTelemetry context.
Package Format
This package is ESM-only and ships compiled JavaScript plus TypeScript
declarations from dist/. Source files, tests, source maps, and local configs
are not included in the published package.
