Skip to content

Support conversation input and verify packed package in Workers - #7

Merged
dannymitchelldev merged 1 commit into
mainfrom
feat/5-conversation-workers
Nov 15, 2026
Merged

dannymitchelldev merged 1 commit into
mainfrom
feat/5-conversation-workers

Conversation

@dannymitchelldev

Copy link
Copy Markdown
Owner

StreamCheck now accepts exactly one of the existing prompt input or a nonempty text-message conversation. The exported TextMessage type supports system, user, and assistant roles; validation rejects malformed or ambiguous input before transport, and the real SDK receives roles, order, and content unchanged. Existing prompt callers, CLI behavior, callbacks, result types, and terminal outcome semantics are preserved.

Adds a locked workerd/esbuild gate that installs the actual tarball outside the checkout and exercises public exports against synthetic HTTP/SSE fixtures. The gate covers setup failures, HTTP/provider/protocol errors, interruptions, cancellation/deadline precedence, callback failures, warning-bearing and empty success, and cleanup. An explicit deny service blocks escaped network traffic. README, design contract, testing runbook, examples, and packed declaration checks describe the new API and tested runtime boundaries.

Validation on Windows / Node 24.18.0:

  • npm run check: 157 Node tests, packed declarations/installed CLI, and 50 workerd cases passed.
  • npm run example:demo passed; conversation example compiled without executing a provider call.
  • Exact-archive package/Workers checks and SHA-256 verification passed; 22 synthetic intercepted requests and zero external requests.
  • SDK remains 1.5.91; workerd 1.20260730.1, compatibility date 2026-07-30, nodejs_compat; esbuild 0.28.2.

The existing Windows/Ubuntu × Node 22.12.0/24 CI matrix runs the Workers gate through npm run check with npm ci --ignore-scripts. No live provider calls or deployments are part of this change. Conversation support remains unreleased; this PR does not change published v0.1.1 artifacts or publish a release.

Closes #5.

@dannymitchelldev
dannymitchelldev merged commit 270f312 into main Nov 15, 2026
4 checks passed
@dannymitchelldev
dannymitchelldev deleted the feat/5-conversation-workers branch November 15, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support conversation input and verify Cloudflare Workers compatibility

1 participant