bitwire

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: Apache-2.0

README

bitwire

One generic duplex envelope interface, independent of runtime and carrier. bitwire owns the contract, native declarations, canonical envelope format and independent conformance observations. bitruntime supplies endpoint implementations.

import type { Wire, Envelope, Path } from '@bitspark/bitwire';
// Wire: send(envelope), receive(handler), closed, close().
// Path: readonly Atom[]. Payload: ground ontos Atom | Tuple.

Paths preserve exact bytes and segment boundaries. Empty self differs from the empty-key child. Payloads are opaque; the wire defines no call/return kinds, invocation deadlines or ID deduplication. Source/correlation are routing context, not authentication. Send success is local admission, not operation execution.

Read the contract, current encoding and clean replacement decision. The current format is bitwire/envelope/1 over ontos-codec-v1; WebSocket negotiates bitwire.ontos.v1. There are no supported historical profiles or compatibility exports. Stored application identity is a consumer's separate concern.

The checked ontos consumer mirror pins v0.9.0 with reversible import adaptations, hashes and vectors. No private registry or checkout is needed. TypeScript users import Atom/Tuple from this package or its /ontos subpath; /ontos-codec and /ontos-data share those same classes. The optional data embeddings do not constrain arbitrary ground wire payloads.

Eight native presentations live in wire/{go,ts,py,rs,swift,cpp,java,hs}. The language matrix distinguishes package/declaration checks from runtime behavior. Complete DeixisNode structure is independent of opaque route access. Consumers can store Wire values in trees without a second wire API.

Run pnpm install --frozen-lockfile and node scripts/check.mjs. Native binding CI also checks packaged consumers. Release uses an exact-commit provenance rehearsal, an immutable tag, public npm/crates/Go verification and the established optional Python/Maven workflows. Haskell is delivered as source; Hackage remains deferred.

Directories

Path Synopsis
ontos
go/codec
Package codec is the ontos canonical binary codec — ontos-codec-v1 (frozen).
Package codec is the ontos canonical binary codec — ontos-codec-v1 (frozen).
go/core
Package core is ontos/core (L0): the frozen value model.
Package core is ontos/core (L0): the frozen value model.
wire
go
Package wire declares the generic envelope wire.
Package wire declares the generic envelope wire.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL