@deepwatch/dsh-contracts
v0.1.4
Published
Watch Bridge wire contracts shared by the Host plugins and the browser halves
Downloads
382
Maintainers
Readme
@deepwatch/dsh-contracts
Watch Bridge wire contracts shared by the Host plugins and the browser halves
Part of DeepWatch — the agent workspace built on the official DeepSeek Harness and powered by Watch Skill for perception, evidence, memory and independent verification.
Shared contract — depended on by both halves. Anyone implementing either side of the Bridge — a host plugin, a browser half, or a client of your own.
Exports
@deepwatch/dsh-contracts@deepwatch/dsh-contracts/identity@deepwatch/dsh-contracts/query@deepwatch/dsh-contracts/query/validate@deepwatch/dsh-contracts/query/wire
Install
npm install @deepwatch/dsh-contractsRarely on its own. @deepwatch/dsh-bundle
composes this package with the rest of DeepWatch and is what a profile
normally depends on; installing this one directly is for embedding a
single piece in a composition you control.
Example
Agree a protocol version before either side sends anything:
import {
negotiateProtocol, WATCH_PROTOCOL_VERSION, isSuccessVerdict,
} from '@deepwatch/dsh-contracts'
const agreed = negotiateProtocol(WATCH_PROTOCOL_VERSION)
if (isSuccessVerdict(reply.verdict)) { /* the check passed */ }Requirements
- Node
^22.19.0 || >=24.0.0
None. Types and schemas only; it pulls in nothing at runtime.
Stability
0.1.4 — a stable release.
Stable means tested, documented and supported — not 1.0. This is a
pre-1.0 line, and semantic versioning gives 0.x no compatibility
guarantee across minor versions: a 0.MINOR bump may change or remove
surface, and a patch will not. Depend on it with a tilde range
(~0.1.4) if you want that difference enforced by your lockfile
rather than by a changelog. The usual major-version promise starts at 1.0.
Side effects
Importing a module from this package evaluates no side effects, so a bundler may drop what a build does not use. Mounting it in a host is a separate matter: what it then reads or writes is governed by the workspace boundary and the host's permissions, not by this flag.
Where this fits
The wire shapes both halves agree on. Changing a shape here changes both sides at once, which is the reason it is a package rather than two copies.
The twenty packages and how they compose: the package map. Running DeepWatch, and the gates a change has to pass: the workspace README.
Attribution
Built on DeepSeek Harness · Powered by Watch Skill
DeepWatch and Watch Skill are independent projects and are not affiliated with or endorsed by DeepSeek. MIT licensed; third-party notices are in THIRD_PARTY_NOTICES.md.
