* fix commands that require quoted paths
Several commands did not wrap the path in quotes which caused problems
when attempting to store the waveterm installation in a place that had a
space in the path. This corrects this in the particular case where the
username does not have spaces but the path to the executable does.
Note: the case of a user name having spaces has not been tested but
likely does not work.
* fix logging problem for wavesrv
A previous fix replaced the getWaveSrvCmd with getWaveSrvPath. This
needs to be getWaveSrvCmd to enable logging.
* fix variable name
* register cmd+p shortcut
* tab switcher modal
* initial implementation
* tab switcher modal content
* fix styles
* fix scroll bugs
* set selected index when clicking option
* hover effect for options
* switch when Enter key is pressed
* remove fuse.js
* only use switchscreen for switching sessions and tabs
* var naming changes
* fix multiple focused options on mouse hover
* fix duplicate focused options and scrollbar
* clean imports
* fix wrong function name
* merge color styles in app.less
* remove debugging code
* use For component when iterating thru options
* minor style fix
* remove mouse interaction, keep focusedIdx in bounds, increase max number of tabs shown, small layout adjustment for big tab names (and more space for icon)
* create migrations for required database change
This is a first attempt that does not appear to be working properly. It
requires review.
* fix errors in db migrations
The previous commit had an extra json call that broke the update and did
not remove the imported interies during a downgrade.
* change migrations to use column instead of json
It makes more sense to associate the source of a config with the remote
type than the sshopts type. This change makes that clear in the database
structure.
* ensure adding a remote manually tags correctly
Using the usual way of adding a remote should result in a sshconfigsrc
of "waveterm-manual". This will be important for filtering out remotes
installed manually and remotes installed via import
* create basic structure for parsing ssh config
This entails creating a new command, making it possible to query only
the imported remotes from the database, and implementing the logic to
handle all of the updates needed.
This needs improvements in a few areas:
- the /etc/ssh/config needs to be parsed as well
- the logic for editing exisiting imported remotes needs to be written
- error handling needs to be improved
- update packet responses need to be provided
* add sshkey support and implement editing
We now search for the ssh identity keyfile and add it if it is found.
Additionally, the logic to edit previously imported ssh hosts has been
added.
* combine hosts from user and system ssh config
We now check both the user ~/.ssh/config as well as the /etc/ssh/config
for hosts. This loops through each file starting with the user one. For
each host, it selects the first pattern without a wildcard and chooses
that to be the alias. If any future hosts are found to have the same
alias, they are skipped. Errors are raised if neither config file can be
opened or no aliases were found.
* improve logging and error reporting
Error reporting is now shortcircuited in cases of individual remotes in
order to allow the other remotes to continue. These errors are now
printed to logs instead.
* allow imports to edit ssh port
Previously, ssh ports could not be edited after the fact. Unfortunately,
this can cause problems since the port can be changed in an ssh config
file. To address this, we allow imports to change the port if a host
with the same canonical name had previously been imported.
* fix response to parse command
* fix error handline for alias parsing
Small mistake of checking for equality instead of inequality
* fix the ability to overwrite hostName with alias
if ssh_config does not find Hostname, it won't output an error. Now we
compare against the result instead of looking for an error.
* fix the error catching for User and Port
This fixes the same problem where parsing the config doesn't give an
error in the case when nothing is found. As before, this checks for a
blank result instead.
* remove unused code
* remove repeated canonical name check
The logic that checks for an existing canonical name already exists in
the AddRemote function, so it is not needed here.
Secondly, we now only allow edits of previously created remotes if they
have not been archived. If they have, the usual logic for creating a new
remote takes precedence.
Lastly, there is no need to archive a remote that has already been
archived so an additional check has been added.
* allow archives to preserve the SSHConfigSrc
* add log message for archiving of imported remotes
* create variables for string variants
Matches existing code style
* add cleanup for opened files
* move migration 25 to migration 26 (already merged a migration 25)
* fix RemoteRuntimeState in ModelUpdate by moving type to sstore.go. Fix some bugs in remote:parse. Fix key/identityfile, return value, and remote editing (should go through msh). remote sudo. add info messages around parse status
* fix issue with archiving the sshconfigsrc
A bug in RemoteType's FromMap caused the loss of sshconfigsrc during the
conversion. This has been corrected and the schema has been updated.
* fix order of archiving removed imported remotes
Previously, if the canonical name changed, the code would try to create
a new remote before archiving the old one. This did not work if the
alias didn't change. Now we archive first and add a new remote after.
* fix ability to change port when importing config
Importing from sshconfig needs to allow the port to change. This was not
happening because of a bug that has been corrected.
* always use host in place of hostname
Since host is the key actually searched for in the ssh config file,
searching for user@hostName may not actually work. To avoid this, we now
always use user@host instead.
* automatically determine ConnectMode
This aims to select a connection mode based off what is provided in the
ssh config file. It aims for auto connections when possible but will
fall back to manual if we can't easily support it
* remove sshkeysource migration number confilict
Previously had conflicting migration numbers of 26. The change not in
the main branch has been moved to 27 to remove the conflict.
* move sshkeysource migration to migration 28
* add WaveOptions flag parsing for ssh config
This is currently being used to allow users to force manual connect mode
if desired. It will also be used to force skipping options in the future
but that is not complete in this commit.
* implement ignore flag for ssh config parsing
The ignore flag will now archive an imported remote if it previously
existed and not create a new remote in its place.
* fix discovery of identity file
Previously, a ~ in the identity file's path was not expanded to the home
dir. Because of this, files with a ~ were previously identified as
invalid files. By expanding it during the search, this is no longer the
case.
* disable frontend edit button for imported remotes
Imported Remotes should not be editable in waveterm by users. This edit
makes it clear that the button will not work for those cases. Further
edits may be needed to explain why it doesn't work and what to do
instead.
* add backend rejection of updating imported remote
As before, we don't want manual editing of an imported remote inside the
app. This ensures that it can't happen on the backend.
* create tooltips for sshconfig edit/delete buttons
For remotes that are imported, edits are not allowed. This adds a
tooltip that explains what to do instead.
Deleting remotes that are imported is allowed, but they will come back
if the user imports again. The tooltip explains a way to avoid this.
* add logo after name for imported remotes
In the connections screen, there previously was not a way to tell
imported connections from manually created connections. This change adds
a logo after the imported ones to differentiate them.
* small formatting updates
* add import tooltip to connection modal
Added the logo for an imported config to the connection modal. It also
provides a short description when it the mouse hovers over it.
* add button to import ssh config
Make the command into a button for a simple gui interface.
Also ran prettier to clean up some syntax.
* remove strict casing on WaveOptions
WaveOptions was previously very specific about the casing of the ignore
and connectmode subcommands. With this update, the casing is
automatically converted to lowercase and can be ignored.
* add status dot before name in connections screen
* add space and tooltip to connection imported icon
* re-prettier
* sync schema.sql with running schema
* remove incognito field from history table. also don't add empty FeState vars
* history updates, add festate, durationms, exitcode, status, and tags into history table
* update screen/session delete, and clear to no longer purge history items. move deleted screens/sessions into a tombstone table.
* update schema
* fix alias -> fn
* quiet the security warning about an unchecked byte conversion. no real security issue here, but add a range check for good measure.
* working on an in-memory store for screen information
* nostrpos sentinel
* textareainput now tracks selection (to update backend)
* make websocket connections much safer. add a defer/panic handler for each ws message handled on backend. don't allow client to reconnect to backend ws handler more than once per second (handles issue with lots of fast fails)
* use onSelect to have frontend textarea sync state to backend ScreenMem store
* restore cmdline when switching screens
* prettier
* Add script to generate license disclaimers for all dependencies
* update readme
* Upload current acknowledgements
* Add acknowledgements link to about, remove unnecessary width setting
* revert gitignore
* update readme wording
* i was wrong, we can output for both backend mods at the same time
* update wording
* remove license button in about modal (replaced with acknowledgements)
* inital implementation
* cleanup
* ui jump fix
* fix wrong first tab top right border radius
* add comment
* remove react.fragment. only do initial screens populate on componentDidMount, rename this.scrollIntoViewTimeout (add Id to distinguish from state.scrollIntoViewTimeout).
* clean up some imports
* use single tabRef
* sidebar render delay of 0.5s, and a 0.5s transition on main window width
* fix width calculation and how we apply the buffer width for sidebar
* also add the model.ts change
handleKeyDown was a method that filtered out specific keypresses if they
weren't specific keycodes. This did not play well with all keyboards
which made it impossible to enter port numbers. furthermore,
handleInputChange should already filter out non-numeric characters, so
the filtering still works properly with this removal.
* work on basic sidebar layout
* fix more golang warnings
* sidebar open/close
* add ability to set width of split
* sidebar add and remove, set width, etc.
* almost working sidebar implementation -- still needs height/width, input control, and bug with initial add, but getting there
* add isSidebarOpen() method
* fix resize jump -- must set width in error handler as well (before window is loaded)
* sidebar UI touchups and help
* more sidebar progress, render more like regular lines, just in the right column
* merge
* move migration to 26
* simplify sidebar types
* checkpoint
* proxy things through parent screen object for sidebar
* checkpoint, add/remove from sidebar
* work on add/remove icons for sidebar
* fix height calculation, remove close button
* bring back close button when no line is selected
* add sidebar flag to run command to run new command output in sidebar
* implement 'sidebar' kwarg in eval. this lets sidebar work for slashcommands as well that produce lines (codeedit, mdview, etc.)
* prettier
* minor fixes
* working on resizing. must exclude sidebar entries and send separate resize events based on size of sidebar (implement exclude / include for resize)
* fix sidebar terminal command resizing
* add sidebar header (toggles for half/partial width and close). add hotkey to open/close sidebar (Cmd-Ctrl-S). more robust calculation for sidebar width. add width validation. minimum sidebar width is 200px. other fixes, etc.
* wrote client code for communicating with lambda cloud
* Added timeout functionality, added check for telemetry enabled for clouod completion, added capability to unset token, other small fixes
* removed stale prints and comments, readded non stream completion for now
* changed json encode to json marshal, also testing my new commit author
* added no telemetry error message and removed check for model in cloud completion
* added defer conn.close() to doOpenAIStreamCompletion, so websocket is always closed
* made a constant for the long telemetry error message
* added endpoint getter, made errors better
* updated scripthaus file to include dev ws endpoint
* added error check for open ai errors
* changed bool condition for better readability
* update some error messages (use error message from server if returned)
* dont blow up the whole response if the server times out. just write a timeout message
* render streaming errors with a new prompt in openai.tsx (show content and error). render cmd status 'error' with red x as well. show exitcode in tooltip of 'x'
* set hadError for errors. update timeout error to work with new frontend code
* bump client timeout to 5 minutes (longer than server timeout)
---------
Co-authored-by: sawka
* back-end implementation. initial ui implementation
* rough implementation of drag and drop
* wrap with AnimatePresence
* persist screen order
* cleanup
* return all screens when updating indices
* remove y axis anitation
* remove debugging code
* chain filtering and sorting logic
* remove unused var
* fix issue where tabs shift to left on hover
* fix tabElem scroll into view regression
* clear scrollIntoViewTimeout when component unmounts
* remove borken style prop
* completely remove animation related props
* scroll into view only when there's a new tab
* minor comment fix
* resolvePosInt() to resolve index
* move tab width const to magiclayout.ts
* move back scroll into view code as it was before
* clear timout
* refactor setTimeout
* remov debugging codes
* format cmdrunner.go
* move clearTimeout
* remove wheel event listener
* switch emain to using the bash from PATH, not defaulting to /bin/bash. not convinced this fixes#132 yet because the PATH set for MacOS applications is not set from .bash_profile or .zprofile. those seem to be set with launchctl setenv.
* move MacUserShell() func to shexec. use dscl UserShell output as bash path on MacOS when present. fixes#132
* migrate screen settings modal to new modals system
* use screen member var in the methods
* migrate session settings modal to new modal system
* use Modal component in session settings modal
* migrate line settings modal to new modals system
* use Modal component in line settings modal
* migrate client settings modal to new modals framework
* set alert modal width to 500px
* remove screen settings modal after deletion
* use Dropdown component for connnections dropdown
* use Dropdown component for connections dropdown in new tab flow
* replace InfoMessage with Tooltip
* use Dropdown for fontsize dropdown
* use Dropdown for renderer dropdown
* fix dropdown width issue on new tab container
* fix class names concatenation
* fix dropdown width issue in screen settings modal
* add icon for Linux
The app icon previously did not show up in Linux. This change fixes that
by providing the wave-logo-dark.png to the electron Browser Window.
* set the icon to only use the direct path on linux
The previous change was only required on linux and not on mac. This
ensures the old behavior will continue to be done on mac while using the
new behavior on linux.
* add filter button to the command input box
This will become a button that temporarily filters out the non-running
commands from your screen. At the moment it is only a placeholder design
that will likely change with more feedback. It does not have any
functionality at the moment.
* add view indication of active filter
This will become a clickable notification to let users know that a
filter is being applied. It displays the number of lines that are being
filtered. The plan is for it to be clickable to remove the filter. The
current version is a placeholder that is likely to change. It has no
functionality at the moment.
* add basic state to the filtering buttons
The filtering buttons up until this point haven't done anything. Now
they can be clicked and unclick causing them to render differently
depending on if they're selected. They still have no functionality
outside of their own appearance.
* add filtering functionality to filter button
The filter button now hides all non-running commands. And pressing it
again or pressing the other filter button will bring
back the hidden commands.
There are currently some formatting issues with the second button as it
jumps to the top of the screen if the filter is on and no running
commands are present.
An additional change was made to remove a variable accidentally
introduced in the last commit.
* add count for number of lines filtered out
The secondary filter button now lists the number of non-running commands
that have been filtered out. This count is added to the screen model in
case it is needed elsewhere.
* fix the style on the secondary buttons
This fixes the margin an the button to bring it in line with the line
items. It also fixes empty window screen to use a different css class.
Previously, the window-view class being used would cover the button. It
is now using the window-empty class instead.
* change formatting for secondary filter button
The button is now yellow with a border style instead of red with a solid
style. The border-radius has been changed to give the button a pill
shape.
Additionally, a style tab has been added to the button component to
provide it with custom styling. It should be changed to a custom class
design in the future.
* update style on primary filter button
This is being changed to simpler hover text in line with other text in
the cmd box.
* add number display as text for first filter button
The main filter button originally displayed a somewhat vague message.
Now it displays the number of running tasks with the rotating arrow
symbol.
* remove numLinesHidden count from model
This numLineHidden count is no longer needed with the new button design.
Furthermore, it created several warnings in react due to its
implementation. For both of these reasons, it has been removed.
* update filter functionality to better utilize mobx
This consisted of a few changes. The first was to move the filter state
from the GlobalModel to ScreenLines in order to track state separately
for each screen. Then several of the functions had to be rewritten to
wrap setting variables in the mobx.action wrapper.
As is, there are still a few issues with this design:
- the filter is not remembered when switching tabs
- if all running tasks expire, the second filter button is still present
* move filtering observable to Screen model
The previous observable did not persist when changing tabs because
ScreenLines did not persist. By moving it to Screen, the ovservable now
persists after changing tabs.
* init
* connections table
* view styles
* new components. header and status.
* action buttons
* use Button component in other modals
* hook add connection button
* RemoteConnDetailModal component
* refactor remotes model. read connection modal.
* remote conn detail modal layout and styles
* fix xterm styles
* use correct status message in xterm
* tone down color of settings input
* clean up
* edit remote conn modal
* fix buttons gap
* change button label
* archive and force install features
* use classnames
* add some class names and also set some widths / maxwidth for the table. too hard to read on large screens.
* small style updates
* fix some typescript errors, other small fixups
* fix type error
* move add button to the bottom of the table
* more improvements
* adjust layout, behavior, and style accrdg to mike's feedback
* set table max-width in css
* open detail modal after creation of new remote
* new modal component. migrate about modal to new modal component.
* migrate create remote conn modal to modal component
* working modals stack
* update some working (remote -> connection). fix typescript error in connections. remove some console.logs
* fix a couple of mobx warnings (need to wrap in action)
* register create conn modal
* follow model naming convention
* register edit remote conn modal
* reset
* reset
* reset
* reset
* use remotes model methods and wrap pushModal calls in mobx action
* only close connect modal after update for remotes returns
* register alert modal
* fix type error in app.tsx
* migrate remote detail and alert modal to base modal component
* Revert "fix conflicts"
This reverts commit 962da77918, reversing
changes made to 34cbe34ba5.
* only wrapper ModalProvider with mobx provider
* change archive label to delete
* fix error where isOpen method does not exist
* remove registry modal
* rename ModalStoreModel to ModalsModal
* fix issue where edit remote conn modal doesn't show
* simplify modal component
* grab remoteModel from within the remote modals
* fix edit modal
* minor change
* cleanup
* more cleanup
* change confirm wording to 'delete' instead of 'archive'. remove or-equals since isBlank is designed to check for exactly that.
* undo some of the strict typescript fixes
* undo more typescript fixes
* cleanup
* fix import
* revert build.md change
* add link to terms of service
The welcome page previously referenced the terms of service without
providing a link to them. This change adds a hyperlink which allows
users to easily navigate to them.
* remove the tos checkbox
Additionally, small cleanups have been made to the formatting of the
source code.
* update color name from prompt-green to wave-green
Previously, the name prompt-green was used for the green color
associated with the branding. It has now been changed to wave-green.
This is in response to the terminal being renamed from prompt to
waveterm.
As a part of this, change the css class is-prompt-green has also been
changed. It is renamed to is-wave-green.
* update anchor tags to use wave-green color
Previously, anchor tags used the blue color that comes as default with
bulma css. They are now changed to be the wave-green color that matches
the rest of the branding.
This also involved updating the hover text to be the same color.
Note that hover links had to be specified but focus links did not. I
imagine this is because of bulma css defaults. Regardless, the previous
.content overwrite that we used for hovering hyperlinks was removed as
it is no longer necessary.
* init
* connections table
* view styles
* new components. header and status.
* action buttons
* use Button component in other modals
* hook add connection button
* RemoteConnDetailModal component
* refactor remotes model. read connection modal.
* remote conn detail modal layout and styles
* fix xterm styles
* use correct status message in xterm
* tone down color of settings input
* clean up
* edit remote conn modal
* fix buttons gap
* change button label
* archive and force install features
* use classnames
* add some class names and also set some widths / maxwidth for the table. too hard to read on large screens.
* small style updates
* fix some typescript errors, other small fixups
* fix type error
* move add button to the bottom of the table
* more improvements
* adjust layout, behavior, and style accrdg to mike's feedback
* set table max-width in css
* open detail modal after creation of new remote
* update some working (remote -> connection). fix typescript error in connections. remove some console.logs
* fix a couple of mobx warnings (need to wrap in action)
* various improvements
* animation menu on close
* finish custom dropdown
* minor change
* minor fix
* add error support for dropdown
* create remote modal
* NumberField component and more on add remote connection modal implementation
* extend TextField instead. dobounce should be handled by the user not the component
* PasswordField
* remove used code. fix ssh key file field issue
* style buttons. fix modal height issue
* use react portal for dropdown menu
* remove debugging code
* tooltip implementation
* put back modal background
* (sawka) add autofocus attribute to textfield. change label color to color-secondary. fix file menu name. fix typescript error in basicrenderer
* init
* init
* error handling
* use css
* minor improvements
* fix some issues and tabicon init
* show error indicator when empty and is required
* debounce input
* fix decorator linting issue
* icon system init
* fix bugs
* color custom icons and fix regression
* remove debugging code
* remove @tab-magenta. fix formatting.
* swap magenta for mint
* change tab color order
* testing universal build
* arch files not required anymore
* use CGO_ENABLED for wavesrv. write out notes about the universal build problems/solution
* script and updates for universal build
* more updates for sign/notarize flow for universal app
* put in prod migration check
* build prompt to wave migration into emain. updates to macos build scripts
* update some packages
* successful universal build
* remove unused code
* menu item and send event to renderer
* wire up everything
* update content
* modal content
* add mising text
* minor fix
* style fixes
* figma design init
* about header, content, and general styles
* css refactor
* more on refactor
* reuse styles from app.less in about modal
* dynamic status
* external linkn
* finish about modal
* update links
* update license link
* init
* telemetry toggle
* finish styling and functionality
* remove unused style
* rever some styles
* use goroutine in sending telementry updates
* remove wave-modal class from AlertModal
* icons and button state fixes
* minor change with goroutines
* use default cursor not not-allowed
* update newtab screen to make it match the figma mockup (still waiting on UI for name)
* fix all typescript errors
* update for new build
* remove old import
* can open / close Apps view
* gotten app list to load dynamically
* updated icons bizzare that they all have the same bg
color
* can select an app form left bar
* could not get ImageViewer to work :(
* getting rid of screenshots
* readme.md works
* fixed the color problems for icons
* more fixes
* add delay and slight opacity animation
* cleanup
* focus support
* use savedHeight as initial tbody height
* cleanup
* set container to savedHeight initially
* fix calc issue
* more calc fixes
* more calc fixes
* please sync
* can select connection. now need add conection
* latest for discussion
* solved "autoselect connection" issue
* ready for PR
* pair programming, fix some issues with new tab flow
* final updates for new connection flow. integrate add new connection with error messages. add an option to cr to not create the line/history (non-interactive use)
---------
Co-authored-by: sawka
* md does render. need cleanups
* simul scrolling works
* preview button works
* md previewer works
* use Markdown component from elements, fix null ptr with unset ref
* add scroller div back in
* scrollers should overscroll contain
---------
Co-authored-by: sawka
* server is setting 'mode' linestate to 'view' or 'edit'. this change sets the editor in readonly mode based on this flag. (requires the new build of prompt-server)
* apply prettier
* serving moncao from node_modules
* add monaco-editor to package.json
* allow node_modules/monaco-editor into the build
---------
Co-authored-by: sawka
* fixed expand issues
* removed expand
* can close the file, and min 5 lines are
* removed older file
* lag selection took some time :(
* ready for PR
* changed prompt:lang to lang
* code window is always visible
* gotten resizing done. need more work
* starting on save now
* got save to display message. now need to intergrate with save() handler
* ready to tackle the height issue
* height adjusts, but requires some more testing
* removed fullscreen
* height now works
* set font family to "JetBrains Mono"