Polyweave

@polyweave/harness-base (1.0.2)

Published 2026-07-10 23:47:30 +00:00 by Dvorak

Installation

@polyweave:registry=https://hub.kl1.tenere.ai/api/packages/Polyweave/npm/
npm install @polyweave/harness-base@1.0.2
"@polyweave/harness-base": "1.0.2"

About this package

harness-base

Shared primitives for LLM execution harnesses — writable output source, frame collector, lifecycle tracking, adapter wiring.

Synopsis

import { createBoundedPushable, createLifecycleWrapper, createHarnessErrorFrame } from '@polyweave/harness-base';

const output = createBoundedPushable(64);
const lifecycle = createLifecycleWrapper();

Install

npm install @polyweave/harness-base

API

createBoundedPushable(limit)

Creates a bounded pushable channel for streaming execution output.

createLifecycleWrapper()

Wraps an execution lifecycle with start/stop/error tracking.

createHarnessErrorFrame(error[, metadata])

Produces a standardized error frame for harness error reporting.

Tests

npm test

Requirements

Node.js 18 or later. ESM only.

License

MIT

Dependencies

Development Dependencies

ID Version
@rigor/core *

Peer Dependencies

ID Version
@polyweave/core *

Keywords

polyweave harness execution-loop push-stream
Details
npm
2026-07-10 23:47:30 +00:00
168
John Dvorak
SEE LICENSE IN LICENSE
2.9 KiB
Assets (1)
Versions (5) View all
1.0.5 2026-07-17
1.0.6 2026-07-11
1.0.3 2026-07-11
1.0.2 2026-07-10
1.0.1 2026-07-10