Skip to main content

Module GenericRequest

Expand description

Generic-request atom modules for process_mountain_request.

Each submodule handles one semantic group of method names from Cocoon’s MountainGRPCClient.sendRequest(method, params) rail. Handler functions take (RequestId, Params, &Env) and return a typed Response<GenericResponse> without referencing CocoonServiceImpl.

Groups:

  • Commands - commands.execute, executeCommand, unregisterCommand
  • FileSystem - fs.*, readFile, writeFile, stat, readdir, … Also exports OkResponse / ErrResponse helpers used by other groups.
  • Secrets - getSecret, storeSecret, deleteSecret
  • WindowDialogs - dialogs, messages, status bar, webview, workspace ops

Modules§

Commands
Generic-request command handlers for process_mountain_request. Handles commands.execute, executeCommand, and unregisterCommand using Cocoon’s MountainGRPCClient method name conventions.
FileSystem
Generic-request file-system handlers for process_mountain_request. Handles fs.* / file:* / readFile / writeFile / stat / readdir aliases used by Cocoon’s FileSystemService and MountainGRPCClient.
Secrets
Generic-request secret-storage handlers for process_mountain_request. Handles getSecret, storeSecret, deleteSecret using Cocoon’s MountainGRPCClient name conventions.
WindowDialogs
Generic-request window/dialog handlers for process_mountain_request. Handles UserInterface.ShowOpenDialog, UserInterface.ShowSaveDialog, UserInterface.ShowInputBox, showInformation, showWarning, showError, showTextDocument, openDocument, createWebviewPanel, setWebviewHtml, createStatusBarItem, setStatusBarText, saveAll, applyEdit, openExternal.