MCPcopy Create free account
hub / github.com/microsoft/typescript-go / callbackFS

Struct callbackFS

internal/api/callbackfs.go:19–26  ·  view source on GitHub ↗

callbackFS wraps a base filesystem and delegates certain operations to the client via RPC callbacks. This allows the API client to provide a virtual filesystem (e.g., in-memory files for testing). The callbacks to enable are specified at construction time via the --callbacks CLI flag. The connectio

Source from the content-addressed store, hash-verified

17// --callbacks CLI flag. The connection is set via SetConnection after
18// the transport connection is established.
19type callbackFS struct {
20 base vfs.FS
21 enabledCallbacks map[string]bool
22
23 // conn and ctx are set after connection is established
24 conn Conn
25 ctx context.Context
26}
27
28// Callback names that can be enabled
29const (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected