Repository navigation
Releases
StreamCheck v0.3.0
StreamCheck v0.3.0 adds an opt-in idle timeout for stalled text streams. Set --idle-timeout-ms <ms> for CLI run or demo, or set idleTimeoutMs in runStreamCheck or runDemo.
The timer starts with the first nonempty text delta, resets on each subsequent nonempty delta, and stays active while StreamCheck waits for completion. The overall deadline still applies. If the idle timer expires, StreamCheck preserves the exact partial text, reports a distinct timeout diagnostic, and returns CLI exit code 124. PR #9
Install
npm install --ignore-scripts https://github.com/dannymitchelldev/streamcheck/releases/download/v0.3.0/streamcheck-0.3.0.tgzVerification
Release commit be1151b8ce68df68b2233f6c63df2a1eb4e3b149. All four CI jobs passed on Windows and Ubuntu with Node 22.12.0 and 24. The full check covered 165 tests, the packed-package consumer, and offline workerd verification. The attached archive passed both exact-artifact checks.
Download SHA256SUMS alongside the tarball and run sha256sum -c SHA256SUMS to verify integrity.
23518e23d4dcec7aa2ec728d08951cd9d1fb96809a210e1df6c5b5d304623ea7 streamcheck-0.3.0.tgz
StreamCheck v0.2.0
StreamCheck v0.2.0 adds role-preserving conversation input and verifies the actual packed package inside the Cloudflare Workers runtime. Existing prompt callers, the prompt-based CLI, result schema, synchronous callbacks, and disabled retries are preserved.
Changes
- Export
TextMessagewith system, user, and assistant roles. Accept exactly one ofpromptor a nonemptymessagesarray, preserving roles, order, whitespace, and content through the official SDK. Malformed or ambiguous input fails before transport; pre-aborted cancellation retains precedence. PR #7, issue #5. - Add
npm run test:workersto the full check. It installs the tarball outside the checkout and exercises public exports through the real SDK with synthetic HTTP/SSE fixtures and blocked external traffic. - Require both a normal finish reason and a complete SSE
[DONE]event before accepting success. Missing terminal markers and unfinished trailing frames now produce protocol diagnostics with received text retained. This stricter completion check can reject streams that earlier releases appeared to accept. PR #6. - Add an explicitly invoked, bounded manual live-interruption verification command, excluded from automated checks. Running that command explicitly can incur provider charges. PR #4.
Install
npm install --ignore-scripts https://github.com/dannymitchelldev/streamcheck/releases/download/v0.2.0/streamcheck-0.2.0.tgzDistribution remains through GitHub Releases, not the npm registry. Download the archive and SHA256SUMS together and verify with sha256sum -c SHA256SUMS, shasum -a 256 -c SHA256SUMS, or the source checkout's npm run checksum -- --check <path-to-SHA256SUMS>.
Verification
Release commit: 6b45f03da1dbb7f29edcbb4ca3541b48b38f4cdf.
All four exact-commit CI jobs passed: Ubuntu/Windows × Node 22.12.0/24, using npm ci --ignore-scripts, the full check, and the typed offline example. The full check passed 157 Node tests, packed declarations/installed CLI checks, and 50 workerd cases. The Workers report records 22 intercepted fixture requests and zero external requests.
The attached archive was packed from the clean release commit and verified without repacking through both the installed package consumer and workerd. SHA-256:
26052e58300c227ea5cafcd1a34a0736c70d0091001f5805be416365557a38e7 streamcheck-0.2.0.tgz
Runtime and evidence boundaries
Node.js 22.12+ and ESM are required for the CLI/tooling. The library's Workers configuration is verified with workerd 1.20260730.1, compatibility date 2026-07-30, and nodejs_compat. The SDK remains pinned to 1.5.91; esbuild 0.28.2 is development tooling. Other compatibility settings, deployed Cloudflare behavior, macOS, and physical console Ctrl+C are not established by this release's matrix.
No new live-provider calls were made for this release. Synthetic faults do not establish naturally occurring upstream reliability or cessation of provider billing after cancellation. Framing observation ends at the first complete [DONE] event, not full HTTP EOF. Tools, images, async callbacks, automatic retry/continuation, and server-side persistence remain unsupported. Prompts and generated text are not automatically redacted. Historical live receipts remain tied to their recorded source revisions.
StreamCheck v0.1.1
StreamCheck v0.1.1 fixes two diagnostic edge cases without changing the public API or result schema.
Fixed
- #1: malformed authorization-header values now return input/setup diagnostics before transport. This includes control characters that Headers accepts but Node HTTP rejects. The CLI returns exit 2, genuine connectivity errors remain network diagnostics, and header normalization is preserved.
- #2: the first observed finish reason is retained when synchronous onText throws or cancels on a combined text/finish frame. Partial text and first-accepted terminal precedence are preserved; success still waits for SDK draining.
Changes are in PR #3.
Try without credentials
git clone https://github.com/dannymitchelldev/streamcheck.git
cd streamcheck
git checkout v0.1.1
npm ci --ignore-scripts
npm run build
node dist/bin.js demo interruptedExit 3 is intentional: the fixture demonstrates retained partial output after a streaming provider error. No API key or provider request is needed.
Install the built library and CLI into another ESM project:
npm install --ignore-scripts https://github.com/dannymitchelldev/streamcheck/releases/download/v0.1.1/streamcheck-0.1.1.tgzDistribution is through GitHub Releases; this package is not published to the npm registry.
Verification
Release commit: d9795dfb0cdc0fda6c37f887c49bb264d6179286.
All four exact-commit CI jobs passed: Ubuntu/Windows x Node 22.12.0/24, including type checks, build, 108 tests, package/fresh-consumer checks, and the typed offline example.
Twelve regression cases were observed failing before their corresponding fixes; a normalization control and existing network/cancellation controls also pass. Independent AI patch re-review resolved the control-character and subprocess-guard findings, with no remaining runtime findings. The engineering record documents the corrections.
The attached archive was built from the clean release commit and tested as an exact artifact in an isolated consumer. Download the archive and SHA256SUMS together and verify:
sha256sum -c SHA256SUMSAlternatively use shasum -a 256 -c SHA256SUMS, or npm run checksum -- --check <path-to-SHA256SUMS> from a source checkout.
Boundaries
Node 22.12+ and ESM are required. Dependencies and the no-retry policy are unchanged. The pinned SDK still hides DONE versus EOF and can discard an unfinished trailing frame; see the design contract.
Live provider behavior, macOS, physical console Ctrl+C, and human implementation review remain unverified. Prompts and generated text are not automatically redacted. Explicit live runs may incur charges, and retrying partial generations can duplicate output and add charges.
StreamCheck v0.1.0
StreamCheck diagnoses OpenRouter text-stream failures while preserving the text already received. This is the initial MIT-licensed release of the TypeScript library and CLI.
Included
- Typed success, failure, interrupted-output, and cancellation results.
- Timing, observed HTTP status, normalized diagnostics, and exact partial text.
- Human CLI output, one-object JSON, meaningful exit codes, overall deadlines, and SIGINT handling.
- Four credential-free HTTP/SSE scenarios through the official SDK; no automatic retries.
- Source, declarations, public documentation, actual terminal recording, and packaged-consumer checks.
Try without credentials
git clone https://github.com/dannymitchelldev/streamcheck.git
cd streamcheck
git checkout v0.1.0
npm ci --ignore-scripts
npm run build
node dist/bin.js demo interruptedExit 3 is intentional: the demonstration returns interrupted output and a provider diagnostic. No provider request or API key is required.
For another ESM project:
npm install --ignore-scripts https://github.com/dannymitchelldev/streamcheck/releases/download/v0.1.0/streamcheck-0.1.0.tgzGitHub is the distribution channel; the package is not published to the npm registry.
Verification
Release commit: f0c219e08c807c83d531c18d407d66a7ed1993e5.
All four CI jobs passed: Windows/Ubuntu × Node 22.12.0/24, including type checking, build, the 95-test suite, archive/fresh-consumer checks, and the typed offline example. Local publication checks also passed from a newly populated npm cache.
The attached .tgz contains the built library/CLI and is verified as an exact artifact in an isolated consumer. SHA256SUMS contains its SHA-256 digest. Keep both downloads together and verify with:
sha256sum -c SHA256SUMSAlternatively use shasum -a 256 -c SHA256SUMS, or npm run checksum -- --check <path-to-SHA256SUMS> from the source checkout.
Boundaries
Node 22.12+ and ESM are required. The pinned SDK hides DONE versus EOF and can drop an unfinished trailing frame; a valid finish followed by such a frame can remain undetectable. See the design contract.
Live provider behavior, macOS, physical console Ctrl+C, and human implementation review are not claimed as verified. SIGINT handling is exercised through a portable subprocess harness. Prompts and generated text are not automatically redacted. Explicit live runs may incur charges; retries after partial output can duplicate text and add charges.
Built with Codex from a reviewed contract, with separate independent AI implementation and publication reviews. The engineering record documents actual findings, corrections, and verification boundaries.