refactor(api): expose traced remote namespaces

This commit is contained in:
imccyu
2026-08-07 18:28:30 +08:00
parent 146097368b
commit d6ffd87c5f
38 changed files with 566 additions and 492 deletions

View File

@@ -41,7 +41,7 @@ export type {
InvocationDescriptor,
InvocationParameterDescriptor,
InvocationSourceLocation,
TypeRTClientApi,
TypeRTClientRemote,
TypeRTClientContextBinder,
TypeRTCodec,
TypeRTContext,

View File

@@ -77,7 +77,7 @@ export type TypeRTRemoteContextApi<ContextKey extends string> = {
TypeRTRemoteContextNamespace<Namespace, ContextKey>
}
/** Merge-extensible direct namespace surface generated for Client API services. */
/** Merge-extensible direct namespace surface generated for Client Remote services. */
export interface TypeRTRemoteNamespaceMap {}
/** Awaitable disposer returned by Cordis-owned TypeRT registrations. */
@@ -176,14 +176,14 @@ export interface TypeRTRemoteContribution {
readonly descriptors: readonly InvocationDescriptor[]
}
/** Client API capability implemented by the Gateway and consumed by Remote assemblies. */
export interface TypeRTClientApi extends TypeRTRemoteNamespaceMap {
/** Client Remote capability implemented by the Gateway and consumed by Remote assemblies. */
export interface TypeRTClientRemote extends TypeRTRemoteNamespaceMap {
/**
* Mount one generated Host-for-Client contribution in the caller's fiber.
* @param contribution - explicitly selected Remote package artifact.
* @returns disposer withdrawing descriptors and concrete methods together.
* @returns disposer after namespace services and concrete methods are ready.
*/
mount(contribution: TypeRTRemoteContribution): TypeRTDisposer
$mount(contribution: TypeRTRemoteContribution): Promise<TypeRTDisposer>
}
/**