Skip to main content

Module CreateEffectForRequest

Module CreateEffectForRequest 

Source
Expand description

§CreateEffectForRequest (Track)

Central routing table that maps string-based commands/RPC methods to typed effects (MappedEffect). Each domain module handles its own match arms and returns None for unrecognised methods, enabling the chain-of- responsibility pattern below.

§Domain modules

ModuleCommands handled
AuthenticationAuthentication.GetSession, Authentication.GetAccounts
ClipboardClipboard.Read, Clipboard.Write
CommandsexecuteCommand, Command.Execute, Command.GetAll
Configurationconfig.get, config.update, Configuration.*
DebugDebug.Start, Debug.RegisterConfigurationProvider, Debug.Stop
DiagnosticsDiagnostic.Set, Diagnostic.Clear
DocumentsDocument.Save, Document.SaveAs
FileSystemFileSystem.*, FileWatcher.*, openDocument aliases
Git$gitExec
KeybindingKeybinding.GetResolved
LanguageFeatures$languageFeatures:registerProvider
LanguagesLanguages.GetAll
NativeHostNativeHost.OpenExternal
SCM$scm:*
SearchfindFiles, findTextInFiles, Search.TextSearch
Secretssecrets.get, secrets.store, secrets.delete
StatusBar$statusBar:*, $setStatusBarMessage, $disposeStatusBarMessage
StorageStorage.Get, Storage.Set
TaskTask.Fetch, Task.Execute
Terminal$terminal:*, Terminal.*
TreeView$tree:register, tree.*
UserInterfaceUserInterface.*, Window.*
Webview$webview:*, webview.*, $resolveCustomEditor
WorkspaceapplyEdit, showTextDocument, $updateWorkspaceFolders

Modules§

Authentication
Clipboard
Commands
Configuration
Debug
Diagnostics
Documents
FileReadAlias
Cocoon legacy aliases: openDocument, readFile, stat - short-hand routes used by Cocoon’s Effect-TS Workspace + FileSystem services before the canonical FileSystem.* naming was established. Backed by the same FileSystemReader provider.
FileSystem
FileWatcher
Git
Keybinding
LanguageFeatures
Languages
NativeHost
SCM
Search
Secrets
StatusBar
Storage
Task
Terminal
TreeView
UserInterface
Webview
WindowUI
Window-namespace UI commands from Cocoon’s window shim. These emit Tauri events to Sky and return immediately (no reply channel wired yet).
Workspace

Functions§

Fn
Maps a string-based method name (command or RPC) to its corresponding effect constructor, returning a boxed closure (MappedEffect) that can be executed by the ApplicationRunTime.