-
Notifications
You must be signed in to change notification settings - Fork 57
feat!: add async middleware across bindings #564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
willkill07
wants to merge
38
commits into
NVIDIA:main
from
willkill07:wkk_relay-509-async-middleware
Closed
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
6a2ff49
feat!: add async middleware across bindings
willkill07 1b1b57c
fix: harden async middleware bridges
willkill07 54e1780
fix: repair ffi CI validation
willkill07 6f1dbf3
fix: address async middleware review findings
willkill07 c6d57bc
fix: address remaining async middleware feedback
willkill07 6044fa6
fix: synchronize Rust attributions
willkill07 78fda3a
fix: harden middleware feedback paths
willkill07 5dd66a9
fix: preserve middleware serialization failures
willkill07 0b80595
fix: match generated attribution layout
willkill07 098a3c4
fix: preserve callback rejection boundaries
willkill07 3fac046
test: wait for queued subscriber delivery
willkill07 a8ecf81
test: wait for async scope event delivery
willkill07 ec07e8e
fix: correct async LLM intercept declarations
willkill07 cba52e6
test: validate canonical intercept declaration
willkill07 66850f4
test: await async OpenClaw export delivery
willkill07 d988616
test: update native ABI version expectation
willkill07 bc301d8
test: await async LLM event delivery
willkill07 0b56d31
fix: finalize stream events before completion
willkill07 8caa18b
test: tighten async middleware coverage
willkill07 66dc4f4
fix: preserve node sanitizer serialization errors
willkill07 bc4501b
test: await async LLM sanitizer event delivery
willkill07 057e210
fix: preserve async middleware event semantics
willkill07 17bded2
test: flush manual session LLM events
willkill07 760b15e
test: cover async middleware bindings
willkill07 1c862c3
test: cover async middleware registrations
willkill07 c36a4a5
test: exercise async middleware callbacks
willkill07 9d7e847
test: await LLM sanitizer callback
willkill07 ada9062
fix: harden async middleware publication
willkill07 43df441
fix: restore CI middleware checks
willkill07 f7b2556
refactor: consolidate async middleware registrations
willkill07 44ca679
fix: retain async callback typedef in C header
willkill07 2196ff2
fix: address async middleware review findings
willkill07 4724e51
fix: tighten async ABI review checks
willkill07 8501193
fix: reject duplicate async ABI declarations
willkill07 7576403
test: raise runtime and binding coverage
willkill07 e635472
test: wait for contextual sanitizer events
willkill07 6421da2
test: wait for failed LLM sanitizer event
willkill07 d3ffab5
fix: retain native plugin during async callbacks
willkill07 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| use std::future::Future; | ||
|
|
||
| pub(crate) fn block_on<F: Future>(future: F) -> F::Output { | ||
| tokio::runtime::Builder::new_current_thread() | ||
| .enable_all() | ||
| .build() | ||
| .expect("test runtime should build") | ||
| .block_on(future) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.