MCPcopy
hub / github.com/claude-code-best/claude-code / createHostHandle

Function createHostHandle

packages/workflow-engine/src/ports.ts:21–23  ·  view source on GitHub ↗
(bundle: HostBundle)

Source from the content-addressed store, hash-verified

19
20/** Used by the core-side hostFactory: wraps any bundle into an opaque handle. */
21export function createHostHandle(bundle: HostBundle): HostHandle {
22 return { [HOST_HANDLE]: bundle } as HostHandle
23}
24
25/** Type guard. */
26export function isHostHandle(value: unknown): value is HostHandle {

Callers 15

makePortsFunction · 0.90
registry-demo.tsFile · 0.90
makePortsFunction · 0.90
mainFunction · 0.90
makePortsFunction · 0.90
mainFunction · 0.90
makeHostHandleFunction · 0.90
buildFunction · 0.85
mockPortsFunction · 0.85
ports.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 8

buildFunction · 0.68
mockPortsFunction · 0.68
buildCtxFunction · 0.68
portsWithFunction · 0.68
portsWithEventsFunction · 0.68
canonicalPortsFunction · 0.68
makePortsFunction · 0.68
mockPortsFunction · 0.68