Skip to content

Release: run on hlang runtime 2.1 - #95

Merged
qddegtya merged 6 commits into
masterfrom
dev
Nov 1, 2026
Merged

qddegtya merged 6 commits into
masterfrom
dev

Conversation

@qddegtya

@qddegtya qddegtya commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Merges #94 into master. Closes #86.

🤖 Generated with Claude Code

qddegtya and others added 6 commits November 2, 2026 03:25
- Upgrade @hlang-org/runtime to ^2.1.0.
- A failure on a component's error port rejects the run it belongs to, instead of
  leaving it pending forever.
- Each trigger port gets its own START component, so a run reaches only the port
  it names.
- Port.receive passes unknown and Pipeline.run resolves with unknown: ports are
  connected at run time, so the caller narrows what it gets.

Failing tests first: "rejects the run when a component throws", "rejects the run
when a component fails asynchronously", "rejects only the run whose input failed",
"keeps running after a failed run", "sends each run only to its own trigger".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent, StreamingAgent, RLMAgent and ToolInvoker narrow the unknown value on their
in port with type guards and reject the run with a TypeError when it does not
match. Handlers return their promise, so an asynchronous failure reaches the
component's error port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update the docs (English and Chinese, with source hashes), the examples and the
generated example and API pages for the hlang runtime 2.1 API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astack Ready Ready Preview Nov 1, 2026 7:28pm UTC

Request Review

@qddegtya
qddegtya merged commit 3eb7515 into master Nov 1, 2026
14 checks passed

This branch was successfully deployed

1 active deployment
Preview — fa49dafa Deployed Nov 1, 2026 by vercel[bot]
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.

Adopt hlang runtime 2.0: typed ports end to end

1 participant