Repository navigation
feat: add standalone WinRT interface implementations for Node.js and Python - #148
Merged
leileizhang (lei9444) merged 10 commits intoSep 10, 2026
Merged
Conversation
Add metadata-validated WinRT reverse-call plans, standalone multi-interface IInspectable objects, and synchronous owner-thread handlers for Node.js and Python. Generate typed implementation factories and independently owned views, preserve callback lifetime and output ownership, and cover real native vtable calls, properties, events, arrays, and multi-output results. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mixed-language test coverageWorkflow status: ✅ Passed
|
Preserve ongoing coverage reporting work before merging current main. Include generated implementation sources, normalize Python subprocess paths, and retain per-family reports without changing coverage gates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate 5ea416b. Preserve COM borrowed/completion and WinRT test features/scripts, and use the merged array ownership constructor for exact HRESULT arrays. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep implement as the instance factory with a stable handle-managed value, support explicit interface/handler tuples, and retain advanced descriptors and independent views. Pin Python receivers across reentrant primary disposal, share measured reverse helpers, exercise both generated source trees and scalar/array contracts, and keep existing coverage gates unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The low-level callback fixture receives an owned native value. Release it when rejecting a subscription, and cover intentional retention across a thrown callback separately. Keep natural-exit assertions, native retention semantics, and coverage gates unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Release the implementation-side visible owned delegate when the controlled task fixture declines registration. Preserve the original failure and assert subscribers are not invoked; do not alter generated temporaries, GC, exit behavior, or timeouts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Type heterogeneous generated-package interface pairs without erasing handler relations, declare native delegate calls positional-only, and share focused E2E preparation. Pin detached receivers through reentrant disposal while preserving same-thread GIL release; cover the public WinAppSDK dispatcher projection and existing ownership paths. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Retain raw ECMA reference qualifiers before reverse validation, align synchronous JS void callbacks with TypeScript, and allocate generated helper symbols by owning interface and role. Track Python implementation pairs in a versioned inventory with atomic migration and retained-stub validation. Ship retrievable management source in runtime wheels and require its actual tracing and coverage without changing the gates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reconcile root visibility independently of helper renames using structured owner records and explicit old/current source replacement, including empty export sets. Preserve namespace views, pair unions, unrelated aliases, runtime-only generation, and atomic output. Cover single-to-ambiguous binary metadata, stable helper names, regenerated owners, star imports, strict typing, and source-path replacement. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate main 06de0fa with the Aion Electron sample and consolidated low-level tests. Resolve the package script overlap by retaining index, WinRT marshalling, and WinRT implementation declaration checks together; preserve both sides of the feature and test changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Kai Tao (vanzue)
approved these changes
Sep 10, 2026
leileizhang (lei9444)
deleted the
lei9444-winrt-interface-implementations
branch
September 10, 2026 12:03
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds standalone, metadata-driven WinRT interface implementations for Node.js/TypeScript and Python. Native callers can invoke language handlers through real
IInspectable-rooted objects, without a WinUI composable base or per-interface native adapter..d.tsand.pyideclarations.Usage
With matching runtime/generated bindings, COM initialized, and an existing task-instance view:
impl.valueis a stable, typed primary interface managed by the handle. Additional interfaces useinterfaces: [[IStringable, textHandlers]]in JavaScript orinterfaces=[(IStringable, text_handler)]in Python. Existing descriptors and independentfromImplementation/from_implementationviews remain available.Behavior and compatibility
release()releases the handle's references without disconnecting other native holders.dispose()also disconnects subsequent callbacks across all interfaces; already-entered callbacks may finish.Char16[]results now match their declaredlist[str]type; direct imports of affected long-name Python submodules may need updating.Documentation and samples