wshserver

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 49 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SimpleId_This      = "this"
	SimpleId_Block     = "block"
	SimpleId_Tab       = "tab"
	SimpleId_Ws        = "ws"
	SimpleId_Workspace = "workspace"
	SimpleId_Client    = "client"
	SimpleId_Global    = "global"
	SimpleId_Temp      = "temp"
)
View Source
const (
	DefaultOutputChSize = 32
	DefaultInputChSize  = 32
)
View Source
const GitStatusDefaultTimeoutMs = 5000
View Source
const GitStatusMaxTimeoutMs = 15000

Variables

View Source
var InvalidWslDistroNames = []string{"docker-desktop", "docker-desktop-data"}
View Source
var WshServerImpl = WshServer{}

Functions

func GetMainRpcClient

func GetMainRpcClient() *wshutil.WshRpc

returns the wavesrv main rpc client singleton

Types

type WshServer

type WshServer struct{}

func (*WshServer) ActivityCommand

func (ws *WshServer) ActivityCommand(ctx context.Context, activity wshrpc.ActivityUpdate) error

func (*WshServer) BlockInfoCommand

func (ws *WshServer) BlockInfoCommand(ctx context.Context, blockId string) (*wshrpc.BlockInfoData, error)

func (*WshServer) BlockJobStatusCommand

func (ws *WshServer) BlockJobStatusCommand(ctx context.Context, blockId string) (*wshrpc.BlockJobStatusData, error)

func (*WshServer) BlocksListCommand

func (ws *WshServer) BlocksListCommand(
	ctx context.Context,
	req wshrpc.BlocksListRequest) ([]wshrpc.BlocksListEntry, error)

BlocksListCommand returns every block visible in the requested scope (current workspace by default).

func (*WshServer) CommandAiCancelCommand added in v1.2.0

func (ws *WshServer) CommandAiCancelCommand(ctx context.Context, requestId string) error

func (*WshServer) CommandAiModelsCommand added in v1.2.0

func (ws *WshServer) CommandAiModelsCommand(ctx context.Context, data wshrpc.CommandAiModelsRequest) (wshrpc.CommandAiModels, error)

func (*WshServer) CommandAiPreviewCommand added in v1.2.0

func (ws *WshServer) CommandAiPreviewCommand(ctx context.Context, data wshrpc.CommandAiRequest) (wshrpc.CommandAiPreview, error)

func (*WshServer) CommandAiRunCommand added in v1.2.0

func (ws *WshServer) CommandAiRunCommand(ctx context.Context, data wshrpc.CommandAiRequest) (wshrpc.CommandAiResult, error)

CommandAiRunCommand reports engine problems in the result's status rather than as an error, so the frontend can show sign-in or setup guidance.

func (*WshServer) CommandAiStatusCommand added in v1.2.0

func (ws *WshServer) CommandAiStatusCommand(ctx context.Context, data wshrpc.CommandAiStatusRequest) (wshrpc.CommandAiStatus, error)

func (*WshServer) ConnConnectCommand

func (ws *WshServer) ConnConnectCommand(ctx context.Context, connRequest wshrpc.ConnRequest) error

func (*WshServer) ConnDisconnectCommand

func (ws *WshServer) ConnDisconnectCommand(ctx context.Context, connName string) error

func (*WshServer) ConnEnsureCommand

func (ws *WshServer) ConnEnsureCommand(ctx context.Context, data wshrpc.ConnExtData) error

func (*WshServer) ConnListCommand

func (ws *WshServer) ConnListCommand(ctx context.Context) ([]string, error)

func (*WshServer) ConnReinstallWshCommand

func (ws *WshServer) ConnReinstallWshCommand(ctx context.Context, data wshrpc.ConnExtData) error

func (*WshServer) ConnStatusCommand

func (ws *WshServer) ConnStatusCommand(ctx context.Context) ([]wshrpc.ConnStatus, error)

func (*WshServer) ControllerAppendOutputCommand

func (ws *WshServer) ControllerAppendOutputCommand(ctx context.Context, data wshrpc.CommandControllerAppendOutputData) error

func (*WshServer) ControllerDestroyCommand

func (ws *WshServer) ControllerDestroyCommand(ctx context.Context, blockId string) error

func (*WshServer) ControllerInputCommand

func (ws *WshServer) ControllerInputCommand(ctx context.Context, data wshrpc.CommandBlockInputData) error

func (*WshServer) ControllerResyncCommand

func (ws *WshServer) ControllerResyncCommand(ctx context.Context, data wshrpc.CommandControllerResyncData) error

func (*WshServer) CreateBlockCommand

func (ws *WshServer) CreateBlockCommand(ctx context.Context, data wshrpc.CommandCreateBlockData) (*waveobj.ORef, error)

func (*WshServer) CreateSubBlockCommand

func (ws *WshServer) CreateSubBlockCommand(ctx context.Context, data wshrpc.CommandCreateSubBlockData) (*waveobj.ORef, error)

func (*WshServer) DebugTermCommand

func (*WshServer) DeleteBlockCommand

func (ws *WshServer) DeleteBlockCommand(ctx context.Context, data wshrpc.CommandDeleteBlockData) error

func (*WshServer) DeleteSubBlockCommand

func (ws *WshServer) DeleteSubBlockCommand(ctx context.Context, data wshrpc.CommandDeleteBlockData) error

func (*WshServer) DismissWshFailCommand

func (ws *WshServer) DismissWshFailCommand(ctx context.Context, connName string) error

*

  • Dismisses the WshFail Command in runtime memory on the backend

func (*WshServer) DisposeSuggestionsCommand

func (ws *WshServer) DisposeSuggestionsCommand(ctx context.Context, widgetId string) error

func (*WshServer) DurableJobCountCommand added in v0.5.0

func (ws *WshServer) DurableJobCountCommand(ctx context.Context, data wshrpc.CommandDurableJobCountData) (int, error)

func (*WshServer) EventPublishCommand

func (ws *WshServer) EventPublishCommand(ctx context.Context, data wps.WaveEvent) error

func (*WshServer) EventReadHistoryCommand

func (ws *WshServer) EventReadHistoryCommand(ctx context.Context, data wshrpc.CommandEventReadHistoryData) ([]*wps.WaveEvent, error)

func (*WshServer) EventRecvCommand

func (ws *WshServer) EventRecvCommand(ctx context.Context, data wps.WaveEvent) error

func (*WshServer) EventSubCommand

func (ws *WshServer) EventSubCommand(ctx context.Context, data wps.SubscriptionRequest) error

func (*WshServer) EventUnsubCommand

func (ws *WshServer) EventUnsubCommand(ctx context.Context, data string) error

func (*WshServer) FetchSuggestionsCommand

func (ws *WshServer) FetchSuggestionsCommand(ctx context.Context, data wshrpc.FetchSuggestionsData) (*wshrpc.FetchSuggestionsResponse, error)

func (*WshServer) FileAppendCommand

func (ws *WshServer) FileAppendCommand(ctx context.Context, data wshrpc.FileData) error

func (*WshServer) FileCopyCommand

func (ws *WshServer) FileCopyCommand(ctx context.Context, data wshrpc.CommandFileCopyData) error

func (*WshServer) FileCreateCommand

func (ws *WshServer) FileCreateCommand(ctx context.Context, data wshrpc.FileData) error

func (*WshServer) FileDeleteCommand

func (ws *WshServer) FileDeleteCommand(ctx context.Context, data wshrpc.CommandDeleteFileData) error

func (*WshServer) FileDownloadDirectoryCommand added in v1.7.0

func (*WshServer) FileInfoCommand

func (ws *WshServer) FileInfoCommand(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileInfo, error)

func (*WshServer) FileJoinCommand

func (ws *WshServer) FileJoinCommand(ctx context.Context, paths []string) (*wshrpc.FileInfo, error)

func (*WshServer) FileListCommand

func (ws *WshServer) FileListCommand(ctx context.Context, data wshrpc.FileListData) ([]*wshrpc.FileInfo, error)

func (*WshServer) FileListStreamCommand

func (*WshServer) FileMkdirCommand

func (ws *WshServer) FileMkdirCommand(ctx context.Context, data wshrpc.FileData) error

func (*WshServer) FileMoveCommand

func (ws *WshServer) FileMoveCommand(ctx context.Context, data wshrpc.CommandFileCopyData) error

func (*WshServer) FileReadCommand

func (ws *WshServer) FileReadCommand(ctx context.Context, data wshrpc.FileData) (*wshrpc.FileData, error)

func (*WshServer) FileStreamCommand

func (ws *WshServer) FileStreamCommand(ctx context.Context, data wshrpc.CommandFileStreamData) (*wshrpc.FileInfo, error)

func (*WshServer) FileWriteCommand

func (ws *WshServer) FileWriteCommand(ctx context.Context, data wshrpc.FileData) error

func (*WshServer) FindGitBashCommand

func (ws *WshServer) FindGitBashCommand(ctx context.Context, rescan bool) (string, error)

func (*WshServer) GetAllBadgesCommand

func (ws *WshServer) GetAllBadgesCommand(ctx context.Context) ([]baseds.BadgeEvent, error)

func (*WshServer) GetAllVarsCommand

func (ws *WshServer) GetAllVarsCommand(ctx context.Context, data wshrpc.CommandVarData) ([]wshrpc.CommandVarResponseData, error)

func (*WshServer) GetFullConfigCommand

func (ws *WshServer) GetFullConfigCommand(ctx context.Context) (wconfig.FullConfigType, error)

func (*WshServer) GetJwtPublicKeyCommand

func (ws *WshServer) GetJwtPublicKeyCommand(ctx context.Context) (string, error)

func (*WshServer) GetMetaCommand

func (ws *WshServer) GetMetaCommand(ctx context.Context, data wshrpc.CommandGetMetaData) (waveobj.MetaMapType, error)

func (*WshServer) GetRTInfoCommand

func (ws *WshServer) GetRTInfoCommand(ctx context.Context, data wshrpc.CommandGetRTInfoData) (*waveobj.ObjRTInfo, error)

func (*WshServer) GetSecretsCommand

func (ws *WshServer) GetSecretsCommand(ctx context.Context, names []string) (map[string]string, error)

func (*WshServer) GetSecretsLinuxStorageBackendCommand

func (ws *WshServer) GetSecretsLinuxStorageBackendCommand(ctx context.Context) (string, error)

func (*WshServer) GetSecretsNamesCommand

func (ws *WshServer) GetSecretsNamesCommand(ctx context.Context) ([]string, error)

func (*WshServer) GetVarCommand

func (*WshServer) GitStatusCommand added in v0.4.66

func (ws *WshServer) GitStatusCommand(ctx context.Context, data wshrpc.CommandGitStatusData) (*wshrpc.GitStatusResponse, error)

func (*WshServer) JobCmdExitedCommand

func (ws *WshServer) JobCmdExitedCommand(ctx context.Context, data wshrpc.CommandJobCmdExitedData) error

func (*WshServer) JobControllerAttachJobCommand

func (ws *WshServer) JobControllerAttachJobCommand(ctx context.Context, data wshrpc.CommandJobControllerAttachJobData) error

func (*WshServer) JobControllerConnectedJobsCommand

func (ws *WshServer) JobControllerConnectedJobsCommand(ctx context.Context) ([]string, error)

func (*WshServer) JobControllerDeleteJobCommand

func (ws *WshServer) JobControllerDeleteJobCommand(ctx context.Context, jobId string) error

func (*WshServer) JobControllerDetachJobCommand

func (ws *WshServer) JobControllerDetachJobCommand(ctx context.Context, jobId string) error

func (*WshServer) JobControllerDisconnectJobCommand

func (ws *WshServer) JobControllerDisconnectJobCommand(ctx context.Context, jobId string) error

func (*WshServer) JobControllerExitJobCommand

func (ws *WshServer) JobControllerExitJobCommand(ctx context.Context, jobId string) error

func (*WshServer) JobControllerListCommand

func (ws *WshServer) JobControllerListCommand(ctx context.Context) ([]*waveobj.Job, error)

func (*WshServer) JobControllerReconnectJobCommand

func (ws *WshServer) JobControllerReconnectJobCommand(ctx context.Context, jobId string) error

func (*WshServer) JobControllerReconnectJobsForConnCommand

func (ws *WshServer) JobControllerReconnectJobsForConnCommand(ctx context.Context, connName string) error

func (*WshServer) JobControllerStartJobCommand

func (ws *WshServer) JobControllerStartJobCommand(ctx context.Context, data wshrpc.CommandJobControllerStartJobData) (string, error)

func (*WshServer) MacOSVersionCommand

func (ws *WshServer) MacOSVersionCommand(ctx context.Context) (string, error)

func (*WshServer) MessageCommand

func (ws *WshServer) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error

for testing

func (*WshServer) NotifySystemResumeCommand

func (ws *WshServer) NotifySystemResumeCommand(ctx context.Context) error

func (*WshServer) PathCommand

func (ws *WshServer) PathCommand(ctx context.Context, data wshrpc.PathCommandData) (string, error)

func (*WshServer) PortForwardListCommand added in v1.0.0

func (ws *WshServer) PortForwardListCommand(ctx context.Context, data wshrpc.CommandPortForwardListData) ([]wshrpc.PortForwardInfo, error)

func (*WshServer) PortForwardStartCommand added in v1.0.0

func (ws *WshServer) PortForwardStartCommand(ctx context.Context, data wshrpc.CommandPortForwardStartData) (*wshrpc.PortForwardInfo, error)

func (*WshServer) PortForwardStopCommand added in v1.0.0

func (ws *WshServer) PortForwardStopCommand(ctx context.Context, data wshrpc.CommandPortForwardStopData) error

func (*WshServer) RecordTEventCommand

func (ws *WshServer) RecordTEventCommand(ctx context.Context, data telemetrydata.TEvent) error

func (*WshServer) RemoteFileInfoCommand

func (ws *WshServer) RemoteFileInfoCommand(ctx context.Context, path string) (*wshrpc.FileInfo, error)

func (*WshServer) RemoteFileStreamCommand

func (ws *WshServer) RemoteFileStreamCommand(ctx context.Context, data wshrpc.CommandRemoteFileStreamData) (*wshrpc.FileInfo, error)

func (*WshServer) RemoteListEntriesCommand added in v0.5.0

remote hosts walk local (file://) folder uploads through the main server's default route

func (*WshServer) ResolveIdsCommand

func (*WshServer) RunCompletionGenCommand

RunCompletionGenCommand runs a Fig completion generator (e.g. "git branch" for `git checkout <tab>`) and returns its raw output for the frontend to post-process. Generator commands come from curated, vendored (MIT) Fig specs - not arbitrary user input - and run without a shell, in the prompt's cwd, with a hard timeout.

func (*WshServer) SetConfigCommand

func (ws *WshServer) SetConfigCommand(ctx context.Context, data wshrpc.MetaSettingsType) error

func (*WshServer) SetConnectionsConfigCommand

func (ws *WshServer) SetConnectionsConfigCommand(ctx context.Context, data wshrpc.ConnConfigRequest) error

func (*WshServer) SetMetaCommand

func (ws *WshServer) SetMetaCommand(ctx context.Context, data wshrpc.CommandSetMetaData) error

func (*WshServer) SetRTInfoCommand

func (ws *WshServer) SetRTInfoCommand(ctx context.Context, data wshrpc.CommandSetRTInfoData) error

func (*WshServer) SetSecretsCommand

func (ws *WshServer) SetSecretsCommand(ctx context.Context, secrets map[string]*string) error

func (*WshServer) SetVarCommand

func (ws *WshServer) SetVarCommand(ctx context.Context, data wshrpc.CommandVarData) error

func (*WshServer) StreamTestCommand

func (ws *WshServer) StreamTestCommand(ctx context.Context) chan wshrpc.RespOrErrorUnion[int]

for testing

func (*WshServer) TestCommand

func (ws *WshServer) TestCommand(ctx context.Context, data string) error

func (*WshServer) TestMultiArgCommand

func (ws *WshServer) TestMultiArgCommand(ctx context.Context, arg1 string, arg2 int, arg3 bool) (string, error)

func (*WshServer) UpdateSavedPortServiceCommand added in v1.6.0

func (ws *WshServer) UpdateSavedPortServiceCommand(ctx context.Context, data wshrpc.CommandUpdateSavedPortServiceData) ([]wconfig.SavedPortService, error)

func (*WshServer) UpdateTabNameCommand

func (ws *WshServer) UpdateTabNameCommand(ctx context.Context, tabId string, newName string) error

func (*WshServer) UpdateWorkspaceTabIdsCommand

func (ws *WshServer) UpdateWorkspaceTabIdsCommand(ctx context.Context, workspaceId string, tabIds []string) error

func (*WshServer) WaitForRouteCommand

func (ws *WshServer) WaitForRouteCommand(ctx context.Context, data wshrpc.CommandWaitForRouteData) (bool, error)

func (*WshServer) WaveFileReadStreamCommand

func (ws *WshServer) WaveFileReadStreamCommand(ctx context.Context, data wshrpc.CommandWaveFileReadStreamData) (*wshrpc.WaveFileInfo, error)

func (*WshServer) WaveInfoCommand

func (ws *WshServer) WaveInfoCommand(ctx context.Context) (*wshrpc.WaveInfoData, error)

func (*WshServer) WorkspaceListCommand

func (ws *WshServer) WorkspaceListCommand(ctx context.Context) ([]wshrpc.WorkspaceInfoData, error)

func (*WshServer) WriteTempFileCommand

func (ws *WshServer) WriteTempFileCommand(ctx context.Context, data wshrpc.CommandWriteTempFileData) (string, error)

func (*WshServer) WshActivityCommand

func (ws *WshServer) WshActivityCommand(ctx context.Context, data map[string]int) error

func (*WshServer) WshServerImpl

func (*WshServer) WshServerImpl()

func (*WshServer) WslDefaultDistroCommand

func (ws *WshServer) WslDefaultDistroCommand(ctx context.Context) (string, error)

func (*WshServer) WslListCommand

func (ws *WshServer) WslListCommand(ctx context.Context) ([]string, error)

func (*WshServer) WslStatusCommand

func (ws *WshServer) WslStatusCommand(ctx context.Context) ([]wshrpc.ConnStatus, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL