mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-02 04:02:13 +01:00
An open-source, cross-platform terminal for seamless workflows
* feat: share sudo between pty sessions This is a first pass at a feature to cache the sudo password and share it between different pty sessions. This makes it possible to not require manual password entry every time sudo is used. * feat: allow error handling and canceling sudo cmds This adds the missing functionality that prevented failed sudo commands from automatically closing. * feat: restrict sudo caching to dev mode for now * modify fullCmdStr not pk.Command * refactor: condense ecdh encryptor creation This refactors the common pieces needed to create an encryptor from an ecdh key pair into a common function. * refactor: rename promptenc to waveenc * feat: add command to clear sudo password We currently do not provide use of the sudo -k and sudo -K commands to clear the sudo password. This adds a /sudo:clear command to handle it in the meantime. * feat: add kwarg to force sudo In cases where parsing for sudo doesn't work, this provides an alternate wave kwarg to use instead. It can be used with [sudo=1] at the beginning of a command. * refactor: simplify sudoArg parsing * feat: allow user to clear all sudo passwords This introduces the "all" kwarg for the sudo:clear command in order to clear all sudo passwords. * fix: handle deadline with real time Golang's time module uses monatomic time by default, but that is not desired for the password timeout since we want the timer to continue even if the computer is asleep. We now avoid this by directly comparing the unix timestamps. * fix: remove sudo restriction to dev mode This allows it to be used in regular builds as well. * fix: switch to password timeout without wait group This removes an unnecessary waiting period for sudo password entry. * fix: update deadline in sudo:clear This allows sudo:clear to cancel the goroutine for watching the password timer. * fix: pluralize sudo:clear message when all=1 This changes the output message for /sudo:clear to indicate multiple passwords cleared if the all=1 kwarg is used. * fix: use GetRemoteMap for getting remotes in clear The sudo:clear command was directly looping over the GlobalStore.Map which is not thread safe. Switched to GetRemoteMap which uses a lock internally. * fix: allow sudo metacmd to set sudo false This fixes the logic for resolving if a command is a sudo command. This change makes it possible for the sudo metacmd kwarg to force sudo to be false. |
||
---|---|---|
.github | ||
.testdriver | ||
.vscode | ||
acknowledgements | ||
assets | ||
buildres | ||
housekeeping | ||
public | ||
src | ||
waveshell | ||
wavesrv | ||
webpack | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.json | ||
build-linux.md | ||
BUILD.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
electron-builder.config.js | ||
go.work | ||
go.work.sum | ||
LICENSE | ||
NOTICE | ||
package.json | ||
README.md | ||
scripthaus.md | ||
SECURITY.md | ||
tsconfig.json | ||
version.js | ||
webpack.config.js | ||
yarn.lock |
Wave Terminal
Wave is an open-source AI-native terminal built for seamless workflows.
Wave isn't just another terminal emulator; it's a rethink on how terminals are built. Wave combines command line with the power of the open web to help veteran CLI users and new developers alike.
- Inline renderers to cut down on context switching. Render code, images, markdown, and CSV files without ever leaving the terminal.
- Persistent sessions that can restore state across network disconnections and reboots
- Searchable contextual command history across all remote sessions (saved locally)
- Workspaces, tabs, and command blocks to keep you organized
- CodeEdit, to edit local and remote files with a VSCode-like inline editor
- AI Integration with ChatGPT (or ChatGPT compatible APIs) to help write commands and get answers inline
Installation
Wave Terminal works with MacOS and Linux.
Install Wave Terminal from: www.waveterm.dev/download
Also available as a homebrew cask for MacOS:
brew install --cask wave
Links
- Homepage — https://www.waveterm.dev
- Download Page — https://www.waveterm.dev/download
- Documentation — https://docs.waveterm.dev/
- Blog — https://blog.waveterm.dev/
- Quick Start Guide — https://docs.waveterm.dev/quickstart/
- Discord Community — https://discord.gg/XfvZ334gwU
Building from Source
Contributing
Wave uses Github Issues for issue tracking.
Find more information in our Contributions Guide, which includes: