sawka
7da7d06f09
add a defer/recover to scws WriteJson
2023-11-10 13:36:37 -08:00
sawka
5327258287
add logo to left sidebar, change how collapse works
2023-11-10 13:16:35 -08:00
sawka
dd49e43579
update screen -> tab in user facing messages. waveshell var / ignore. fix bug with external urls
2023-11-10 12:31:31 -08:00
sawka
7449d9db67
remove show metacmds from history search (we always want to show meta)
2023-11-09 22:44:39 -08:00
sawka
4076c58b53
update in-app links to point to waveterm.dev
2023-11-09 21:49:06 -08:00
sawka
089553fce2
fix strange bug where ReturnStateBuf.Reader isn't closed, even when process exits. Force it closed after 2 seconds
2023-11-09 18:57:39 -08:00
sawka
d61c8c05a6
SIGKILL will also kill waveshell. clear PendingStateCmds and WaitingCmds on disconnect (remote.go)
2023-11-09 18:29:11 -08:00
sawka
f4ac642afa
fix bug where pendingStateCmds were cross screen boundaries. now screenid is part of the pendingStateCmd key
2023-11-09 17:47:24 -08:00
Red J Adaya
a0479c4683
add connection modal ( #64 )
...
* 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
2023-11-09 16:28:37 -08:00
sawka
1a566d06aa
gc was collecting the lockfile early causing it not to work. fixed with runtime.KeepAlive
2023-11-09 16:26:44 -08:00
sawka
68731f45a2
make binary paths consistent between dev/prod. add 'eval' as a rtnstate command. fix waveterm.lock file
2023-11-09 16:08:32 -08:00
Tracy Miranda
876321d06d
Tidy up contribution guide
2023-11-08 14:10:31 -05:00
sawka
379854e049
don't load remote content, and dont show codeeditor if closed
2023-11-08 00:26:28 -08:00
sawka
8daac68aad
dont load plugin resources at startup (delays important loads). load on demand if we open the apps screen.
2023-11-08 00:12:41 -08:00
sawka
86436d050e
limit size of newstate on line
2023-11-07 23:58:54 -08:00
sawka
1be2716f6e
add square icon back, fix spacing somewhat
2023-11-07 16:15:54 -08:00
sawka
aa0e8415c1
rename talk to us to discord
2023-11-07 01:27:11 -08:00
sawka
85f6aed2ad
remove apps in prod (not implemented yet)
2023-11-07 01:26:22 -08:00
sawka
d076fc0c72
remove current version check in about modal (not implemented). text not selectable (except for version)
2023-11-07 01:24:35 -08:00
sawka
80675f8c0f
update base cmdinput height
2023-11-07 01:16:48 -08:00
sawka
8ffd537bb7
fix cmdinput expand size calc
2023-11-07 01:14:26 -08:00
sawka
e76d74ada4
add download link
2023-11-07 00:51:44 -08:00
sawka
4f9be4d4f6
minor README changes
2023-11-07 00:49:37 -08:00
sawka
3e0849ff4f
add links to contributing markdown file
2023-11-07 00:45:48 -08:00
sawka
3504163596
README updates
2023-11-07 00:40:21 -08:00
sawka
a2b529f950
fix typescript errors
2023-11-07 00:18:45 -08:00
sawka
be9a3c288a
Merge pull request #63 from wavetermdev/dev-0.5.0
...
Merge dev 0.5.0 branch to main
2023-11-07 00:13:40 -08:00
sawka
f30739497f
upgrade monaco-editor version
2023-11-07 00:13:05 -08:00
sawka
7920a797dc
Merge branch 'main' into dev-0.5.0
2023-11-07 00:08:43 -08:00
Red J Adaya
847de1fc60
new tab flow ( #60 )
...
* 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
2023-11-07 00:04:25 -08:00
sawka
f8d3c0c19c
rename MainSideBar to sidebar
2023-11-06 14:00:43 -08:00
sawka
6430593e5f
upgrade packages
2023-11-06 13:56:09 -08:00
sawka
498c393baa
zip is a requirement for linux builds
2023-11-06 13:39:27 -08:00
sawka
0ae654cd1d
upgrade electron/rebuild to get rid of weird lzma-native dependency
2023-11-06 12:03:12 -08:00
sawka
d405352823
Create MacOS Universal Build ( #62 )
...
* 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
2023-11-05 00:00:47 -07:00
sawka
cccaf83b39
Merge branch 'dev-0.5.0'
2023-11-03 16:25:39 -07:00
Red J Adaya
a69e844178
init ( #61 )
2023-11-03 13:11:49 -07:00
sawka
61d6d2ddff
scope this section rule so it doesn't conflict with monaco editor
2023-11-03 00:44:47 -07:00
sawka
bda9943ed7
Merge remote-tracking branch 'origin/dev-0.5.0'
2023-11-02 14:06:22 -07:00
sawka
38a1f95115
migrate DB WAL file as well as DB file. make dev leftnav color more subtle
2023-11-02 14:05:43 -07:00
sawka
5708b3f19f
working on small history UI updates
2023-11-02 01:02:50 -07:00
sawka
d528f3db27
abstract connection selector dropdown properly. use in settings. remove old selector.
2023-11-02 00:08:04 -07:00
sawka
f2baa59af6
fix default workspace creation bug. fix no workspace message
2023-11-01 23:41:04 -07:00
sawka
055d00d78a
use nextlinenum to decide whether to show newtab flow
2023-11-01 23:10:01 -07:00
sawka
90e07266bf
try to fix the inline edit control
2023-11-01 23:02:19 -07:00
sawka
a7c2d440b2
new tab colors. also re-implement tab gradients according to figma file
2023-11-01 22:38:37 -07:00
sawka
df073724e0
remove console.log from pluginsview
2023-11-01 01:29:17 -07:00
sawka
afc5bbd212
Update Data Directories and Environment Variables ( #59 )
...
* phase 1 of wave runtime migration. update waveterm_dev, build vars, waveterm_app_path. fix errors with plugins readmes and screenshot directories. use asset loaders in webpack. fix window-empty styles. wave-migrate script. remove unused scripthaus commands. other fixes
* waveterm_home directory. lots of internal scbase prompt names to wave
* update waveterm.lock file
* change wave data directories. remove welcome modal code
* update waveterm.db name
* fix Wave menu (add back default items). Update TOS modal words
* fix typescript errors
2023-11-01 01:26:19 -07:00
Red J Adaya
15a4719b17
About Modal ( #39 )
...
* 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
2023-10-31 22:24:36 -07:00
sawka
8211a0bb26
reduce line jitter when switching from simple to full mode
2023-10-31 12:55:35 -07:00
sawka
e1189a5051
remove a lot of hover effects, unselectable menu text. move apps to bottom. remove favorites
2023-10-31 11:29:17 -07:00
sawka
ab8021fad7
add fontawesome back into the repo
2023-10-31 11:18:12 -07:00
Tracy Miranda
a0176d0e64
Update README.md ( #58 )
2023-10-31 10:42:04 -07:00
sawka
a8836ec691
Merge pull request #57 from wavetermdev/dev-0.5.0
...
Initial v0.5.0 merge into main
2023-10-30 23:36:29 -07:00
Red J Adaya
e7b58c1077
user oboarding flow ( #54 )
...
* 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
2023-10-30 22:39:51 -07:00
sawka
616a7d2dc0
fix new-tab button when scrolling (was getting flex-shrunk)
2023-10-30 20:47:45 -07:00
sawka
14715ec5b1
Fix All TypeScript Errors ( #56 )
...
* 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
2023-10-30 09:53:17 -07:00
sawka
9b5bc33125
update newtab screen to make it match the figma mockup (still waiting on UI for name) ( #52 )
2023-10-30 09:43:54 -07:00
sawka
940a187d34
update dmg build for Wave. Fix tab rounding
2023-10-29 20:02:57 -07:00
anandamarsh
c9c2b91a77
Pe 222 apps sidebar ( #51 )
...
* 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
2023-10-28 13:18:31 -07:00
Tracy Miranda
505ab56ef4
PE 178 Add OSS files ( #50 )
...
* Add contribution guide
* Format improvements
* Add security guidelines
* Create CODE_OF_CONDUCT.md
* Add README.md
2023-10-28 13:16:50 -07:00
Red J Adaya
e0cd8516b8
update color tab names ( #49 )
...
* change color names and values
* migrations
* update tab colors in fe
* set to default instead of null
* minor server fixes
2023-10-28 13:14:20 -07:00
sawka
9804dcb14c
fix up spacing for workspaces in sidebar
2023-10-26 15:17:23 -07:00
sawka
5bf83a7e59
move to 12.5px font for sizebar, increase icon size
2023-10-26 15:08:21 -07:00
sawka
f239832435
clicking anywhere on the cmdinput will give focus. also fix the click handler for exec to only be on the icon
2023-10-26 01:40:18 -07:00
sawka
d8d7d0b7d2
add 'magiclayout' to hold magical layout constants. compute the constants with the new padding/margins for new UI. use to compute runtime heights.
2023-10-26 01:25:46 -07:00
sawka
04cdab6f74
add metabarecmds into command completion
2023-10-26 00:01:52 -07:00
sawka
267b035fc8
remove autoinstall options from GUI, always set autoinstall flag, db migration to set autoinstall for all remotes ( #48 )
2023-10-25 22:07:00 -07:00
Red J Adaya
736fb7be6a
csvviwer focus support ( #46 )
...
* 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
2023-10-25 21:41:52 -07:00
sawka
65db030126
change prompt.js/css to waveterm.js/css
2023-10-25 18:45:14 -07:00
Red J Adaya
7e9e76f089
error boundary for screens ( #45 )
...
* error boundary for screens
* error boundary for plugins
* remove changes.diff
* move load-error-text class to app.less
* implement mikes suggestions
* apply error boundary to workspace view
* fix minor issues
2023-10-25 18:24:14 -07:00
sawka
49f18a3e94
added waveterm logo (png and svg)
2023-10-25 15:25:07 -07:00
sawka
737e08b583
bash v3 has a bug with reading large rcfiles from a /dev/fd pipe. fallback to writing a tmp file in that case to allow for large (128k+) rcfiles
2023-10-25 15:20:52 -07:00
Red J Adaya
7c966e2660
change session to workspace ( #47 )
...
* change session to workspace
* also need to change the less file since the className was changed
2023-10-25 13:55:30 -07:00
sawka
2b72cd18b8
update build instructions for new webpack configuration. merge origin/main into dev branch to pick up linux changes.
2023-10-25 13:47:52 -07:00
sawka
083e2f8b6c
big update for webpack configs. use --env to select environment. now dev/prod will combine both web and electron webpack environments
2023-10-25 13:32:15 -07:00
sawka
d19cd7c623
updates for icon / name
2023-10-25 09:46:51 -07:00
Red J Adaya
6ae263f9fa
csvviewer rendering flash ( #44 )
...
* more fixes
* add delay and slight opacity animation
* cleanup
2023-10-24 18:34:37 -07:00
sawka
ce033c616f
bump versions to v0.5.0, update package.json for Wave
2023-10-24 09:29:00 -07:00
sawka
c0de69e4a2
move +3 for descenders to termHeightFromRows
2023-10-24 09:27:20 -07:00
sawka
082fe4a425
new waveterm icon
2023-10-24 09:20:58 -07:00
anandamarsh
6016302814
PE 125 new tab flow ( #43 )
...
* 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
2023-10-23 23:22:18 -07:00
Red J Adaya
4000baa6c5
fix flashing issue ( #41 )
2023-10-23 17:10:14 -07:00
sawka
e5f500e34f
note about nodejs, npm, and yarn
2023-10-18 14:33:45 -07:00
sawka
19bcf4f3ed
update build-linux and scripthaus for linux builds
2023-10-18 14:23:40 -07:00
sawka
c1ca3a0460
update BUILD.md and create a build-linux.md
2023-10-18 13:45:30 -07:00
sawka
b01472a917
add platform class into main div
2023-10-18 13:32:23 -07:00
sawka
4e98db9745
add linux support for maker-zip
2023-10-18 05:54:07 +00:00
sawka
e920e09ccf
backport linux changes to main
2023-10-17 21:54:44 -07:00
sawka
bdcdc202a1
minor fix for linux (use move/resize events vs past-tense). smaller default window size.
2023-10-17 21:48:02 -07:00
anandamarsh
08d5ea5574
fix webpack dev directory
2023-10-17 18:40:01 -07:00
Red J Adaya
046d219555
add license notice ( #37 )
2023-10-16 21:31:13 -07:00
anandamarsh
805cb777d4
no brainer :) ( #38 )
2023-10-16 21:30:13 -07:00
sawka
7c11296a94
add go.work for helping with VSCode gopls
2023-10-16 19:17:44 -07:00
sawka
f2eaa2e278
add example copyright to index.ts
2023-10-16 15:33:27 -07:00
sawka
cad0526678
Add Apache 2.0 License
2023-10-16 15:22:41 -07:00
sawka
90e098e65a
add notice and license in package.json
2023-10-16 15:21:21 -07:00
sawka
59f9e54776
remove scripts from package.json (using scripthaus)
2023-10-16 15:14:24 -07:00
sawka
2c4fe1c3ad
put BUILD.md into repo. also add build-backend command
2023-10-16 15:11:22 -07:00
sawka
266fc498c7
new paths for getting waveterm running with monorepo
2023-10-16 14:02:22 -07:00
sawka
688584a1d4
add wavesrv and waveshell build commands to root scripthaus.md
2023-10-16 13:35:03 -07:00
sawka
18a44086fc
rename imports for wavesrv
2023-10-16 13:30:10 -07:00
sawka
397a0faa88
update go.mod and import paths for waveshell
2023-10-16 13:25:53 -07:00
sawka
a4c0128c89
Merging wave server code into mono-repo
2023-10-16 13:22:23 -07:00
sawka
d8c60a43bb
merged gitignore
2023-10-16 13:22:02 -07:00
sawka
77fee42365
move to wavesrv directory to prepare for merge to waveterm
2023-10-16 13:19:34 -07:00
sawka
1a9c427d22
bump server version to v0.4.0
2023-10-16 13:16:57 -07:00
sawka
a8055489f8
merge waveshell into waveterm repo
2023-10-16 13:11:26 -07:00
sawka
b864e1fb1d
move apishell code to subdirectory to prepare for move to main repo
2023-10-16 13:04:18 -07:00
sawka
393629cc2f
fix TOS modal link, correct fixed-font for new tab. code blocks default to terminal font.
2023-10-16 10:59:20 -07:00
sawka
ce63a03528
fix error getting TOS modal
2023-10-16 10:47:14 -07:00
sawka
f3f243aca3
use workspace- instead of session- for names
2023-10-12 13:36:11 -07:00
Red J Adaya
50190902ca
register csvviewer ( #3 )
...
New csvview command
2023-10-11 17:59:22 -07:00
Red J Adaya
afa7ef3d76
remove license ( #2 )
2023-10-09 18:19:47 -07:00
sawka
adc4948d17
add shell to initpk
2023-10-05 09:50:35 -07:00
sawka
9b380aee02
add function to detect user's shell
2023-10-05 09:42:48 -07:00
sawka
aa5c09368e
bump version to v0.3.1
2023-09-17 20:32:35 -07:00
sawka
6563b5855c
better cmdrunner / linestate integration (lang, template, etc.). lineState is now passed to AddCmdLine
2023-09-17 14:10:35 -07:00
sawka
de04a700d1
PE-117, PE-116, PE-149
2023-09-16 11:15:09 -07:00
sawka
54c2087ad6
remove websharing backend, migrate db to stop websharing any screens that are currently shared
2023-09-15 13:48:58 -07:00
sawka
0df800a390
for codeedit, set the focus to the line (not the input)
2023-09-15 12:57:47 -07:00
sawka
b8ef07e064
updated go.sum
2023-09-07 15:12:50 -07:00
sawka
d97c1862c7
should be 666 not 777 (don't set executable flag by default)
2023-09-06 21:57:41 -07:00
sawka
c7d09b4692
bump mshell version to v0.3
2023-09-06 21:50:59 -07:00
sawka
1127d2cfbd
bump mshell version to v0.3.0
2023-09-06 21:50:38 -07:00
sawka
71ba4b5b46
update writefile code. changed the way usetemp works to make sure file permissions/owner/attributes are kept on original file
2023-09-06 21:45:15 -07:00
sawka
8cb3bd49b5
bump prompt-server version to v0.3.0
2023-09-06 19:55:52 -07:00
sawka
1d77b2d5d6
add codeview command
2023-09-05 22:09:24 -07:00
sawka
bc488cf242
fix PE-63, permissions for temp files
2023-09-05 21:21:34 -07:00
sawka
d84dd75d94
resolve ~ in read/write file api
2023-09-01 20:40:28 -07:00
sawka
9785aaac19
set linestate
2023-09-01 16:45:01 -07:00
sawka
fea5f3306e
add codeedit command (testing)
2023-09-01 16:38:54 -07:00
sawka
5d89e0cfef
add line.linestate to DB. switch linetype to a dbmappable. update line sql queries. add state to /line:set command. bump migration ( #2 )
2023-09-01 15:21:35 -07:00
sawka
22fb034cc4
PE-41 remote file api ( #1 )
...
* RPC for remote file streaming -- just implemented 'stat' for now (streaming to come)
* allow RPC iterators for MShell RPCs. implement two test commands to test viewing files
* implement read-file handler
* read-file: allow overriding of content-type and use line's cwd not remote instance cwd
* checkpoint on write-file impl
* implemented metacommand version of write file
* checkpoint, untested write-file impl
* multipart handling for write-file data
* add usetemp param to writefile
2023-08-31 22:04:31 -07:00
sawka
c29c4a9a2d
PE-41 remote file api ( #1 )
...
* new remote file streaming API packets. implemented 'stat' for remote files
* introduce filedata packets. allow streaming RPCs. fix RPC bug with combined packet parsers. implement file streaming for filestream RPC.
* checkpoint on adding write-file
* completely untested write-file impl -- writefilecontext, condition var for signaling new data packets, cleanup goroutine, ready/done states.
* better error messages, also unlock MServer before calling done on wfcs
* fix bug with perm json tag. change constant name
2023-08-31 22:03:38 -07:00
sawka
681d80e0a6
force ipv4 listening in local server (consistent ipv4 throughout stack)
2023-08-14 17:04:16 -07:00
sawka
093e550d50
add a debug flag to log the rc file for bash initialization
2023-08-14 12:23:33 -07:00
sawka
ed50f1e7d0
up go.mod versions
2023-08-03 14:58:56 -07:00
sawka
865ac0220f
bump dep versions
2023-08-03 14:58:15 -07:00
sawka
6b330b25f3
remove selectmaps call
2023-07-30 22:25:44 -07:00
sawka
2d99d82fbc
remove blank cmdids from migration
2023-07-30 22:23:20 -07:00
sawka
483bcbe338
change cmd_migrate table name to prevent conflict
2023-07-30 18:46:57 -07:00
sawka
36a20a14c4
change functions to use lineid not cmdid
2023-07-30 18:32:56 -07:00
sawka
d2cfc5c980
fix insert for new doneinfo/startpk fields
2023-07-30 17:18:52 -07:00
sawka
2d63b1da96
checkpoint on line migration
2023-07-30 17:16:43 -07:00
sawka
bd515994f8
one by one migrations (so we can run code). remove migration messages from FE (it is fast)
2023-07-28 11:48:11 -07:00
sawka
afbc60ce92
update imports to reflect new package names (moved repo)
2023-07-26 14:24:14 -07:00
sawka
94827683b5
big rename mshell to commandlinedev/apishell
2023-07-26 13:00:07 -07:00
sawka
5d72581683
checkpoint
2023-07-26 10:10:27 -07:00
sawka
7c09d8c09e
remove logging message
2023-05-08 18:03:09 -07:00
sawka
386b5f7a90
add openai packet
2023-05-08 18:00:46 -07:00
sawka
6a6e51d783
bump version to v0.2.3
2023-05-08 17:57:15 -07:00
sawka
c045b67afe
switch openai to chat for metacmds
2023-05-08 17:54:38 -07:00
sawka
59ff522cd1
updates to read openai token from clientdata
2023-05-08 16:06:51 -07:00
sawka
8302ca1fcb
openai api integration 'working'
2023-05-04 01:01:13 -07:00
sawka
ab5deafdb6
updates to remote table, working on openai remote type
2023-05-02 12:43:54 -07:00
sawka
97fd46eda0
v0.2.2
2023-04-17 17:36:47 -07:00
sawka
3e295228e7
update txwrap dependency
2023-04-17 17:31:30 -07:00
sawka
dbd76e2f40
go mod tidy
2023-04-17 17:25:04 -07:00
sawka
0cd3f8ac04
can use view= instead of renderer= for setting renderer
2023-04-17 15:23:58 -07:00
sawka
51a7000de3
only add screendel if websharing
2023-04-17 15:22:30 -07:00
sawka
5e212caf83
allow staticdata to set a higher buffer limit (since it is processed before mpio multiplexer takes over). raise max rundata size to 1M from 128k
2023-04-17 15:13:03 -07:00
sawka
398be03324
simplify screen focus types (remove cmd-fg). send all screen focus updates. fix display issue with rtnstate (prompt vars)
2023-04-13 12:53:15 -07:00
sawka
15c09b7820
fix, allow empty values for pvar fields
2023-04-12 22:57:17 -07:00
sawka
1ac1051205
bump version to v0.2.1
2023-04-12 22:08:10 -07:00
sawka
bab095d701
add buildtime to initpacket
2023-04-12 21:45:45 -07:00
sawka
31d8719200
add buildtime to remote state mshell version
2023-04-12 21:42:16 -07:00
sawka
7bc8f41c0f
now that we're tracking git branches, git switch and git checkout are rtnstate commands
2023-04-12 14:43:11 -07:00
sawka
4e93eff86a
updates to FeState to store variables -- implement python venv and gitbranch in festate for prompt
2023-04-11 23:54:18 -07:00
sawka
a4a4d53eb0
grab git branch
2023-04-11 23:52:58 -07:00
sawka
b92c160333
fix session:purge
2023-04-07 15:48:44 -07:00
sawka
c7289556e5
bug fixes for prod version of webshare -- allow notify to reset backoff time
2023-04-05 15:09:51 -07:00
sawka
000d86b7af
fix session stats
2023-04-05 00:46:47 -07:00
sawka
bc89309cfe
fix nil ptr in /line:view
2023-04-05 00:25:22 -07:00
sawka
6c4a8e01df
dont log start of new ws conn
2023-04-04 23:44:47 -07:00
sawka
174a4ef8fd
add limits to websharing
2023-04-04 23:38:34 -07:00
sawka
fa8db1d80e
limit screen sharing to 50 commands
2023-04-04 23:24:08 -07:00
sawka
0ee3af71bd
update sharename
2023-04-04 22:28:52 -07:00
sawka
f6c6a40aba
add client:accepttos command
2023-04-04 21:52:20 -07:00
sawka
1d5fe3c5be
bump version
2023-04-04 09:15:31 -07:00
sawka
fdae19610b
fix path
2023-04-04 09:03:18 -07:00
sawka
c9e52b0148
fix dev url to be index-dev.html
2023-04-03 22:33:10 -07:00
sawka
6e6fe4d4bf
auto-install and reconnect flow working
2023-04-03 22:15:43 -07:00
sawka
c7024b0ef5
switch to 'connection'
2023-04-03 21:31:40 -07:00
sawka
936500a18e
add client deadline and update remoteruntimestate
2023-04-03 18:57:38 -07:00
sawka
faadfdffaa
new remoteview type to hook into remoteview window
2023-04-03 15:55:36 -07:00
sawka
0a16bb2181
add two new fields to remotetype for better messages on client
2023-04-03 01:37:55 -07:00
sawka
1810107572
fix error message
2023-04-02 23:11:29 -07:00
sawka
01a99cba03
minor updates/bugfixes
2023-04-02 23:00:55 -07:00
sawka
59fd629920
small updates webshare/archive interaction.
2023-04-02 00:20:05 -07:00
sawka
f808c7b362
better way to handle updates -- use a dedup across all updates, pack as many updates as possible into the packet
2023-03-31 18:15:51 -07:00
sawka
5e5a6aa53f
do synchronous webscreen delete
2023-03-31 13:25:57 -07:00
sawka
a7faf2040f
get contentheigh updates working
2023-03-31 00:32:38 -07:00
sawka
4c7d3f2079
add contentheight
2023-03-30 20:55:27 -07:00
sawka
274697039a
webshare selected line, sync webupdate for screen:new, fix line resolver for hidden items
2023-03-30 18:08:35 -07:00
sawka
652c820844
simplify updates, remove line:archived (now just line:del)
2023-03-30 12:59:58 -07:00
sawka
83ce367ace
set archived update for archived lines
2023-03-30 00:59:05 -07:00
sawka
3709381034
never omit ptypos or data from WebSharePtyData
2023-03-30 00:07:25 -07:00
sawka
a340f93c20
add statevars to remote, add vars into webremote
2023-03-29 12:42:04 -07:00
sawka
5480d5d7f6
fix nil checking in dbutil (typed nils)
2023-03-29 12:40:53 -07:00
sawka
2277e16749
bug fixes for webshare
2023-03-28 22:53:59 -07:00
sawka
6753f5eaf4
add updatets
2023-03-28 01:05:01 -07:00
sawka
50caeee5c2
support int fields in DBMappable
2023-03-28 01:04:34 -07:00
sawka
dde547351c
add some synchronization magic for ptypos updates
2023-03-28 00:24:37 -07:00
sawka
e674333621
support map types in DBMappable
2023-03-28 00:23:31 -07:00
sawka
1dbdb3d50b
got screen:new and screen:del implemented
2023-03-27 18:19:17 -07:00
sawka
b0269d5228
move generic db functions to dbutil (for use with PromptCentral)
2023-03-27 14:11:02 -07:00
sawka
29205ba586
for non-relative resolves, return nil if the number is out of range
2023-03-26 23:31:22 -07:00
sawka
582cd807a8
pcloud web-share working with stubbed out promptcentral
2023-03-26 23:07:30 -07:00
sawka
150c8cfaee
now calling promptcentral web updates
2023-03-26 18:48:43 -07:00
sawka
aed5a4db1d
multiple updates in request
2023-03-26 13:36:33 -07:00
sawka
cf3644f0fd
working on webshareupdates
2023-03-26 13:21:58 -07:00
sawka
9ffb672062
add screenupdates
2023-03-25 12:54:56 -07:00
sawka
4aa2bab06e
fix null screen bug
2023-03-24 18:35:29 -07:00
sawka
bfe8ee1c02
starting on screen:webshare feature. simplify bookmarks (removed bookmarked from line)
2023-03-24 10:34:07 -07:00
sawka
8299d3ff54
send updated clientdata when telemetry is updated
2023-03-23 12:08:03 -07:00
sawka
bd0cffb2c3
update schema
2023-03-20 21:38:39 -07:00
sawka
963bef8425
add groupid, since it is now a screenid not a sessionid
2023-03-20 19:21:23 -07:00
sawka
02ae7ea972
checkpoint on big cmd screen migration
2023-03-20 19:20:57 -07:00
sawka
cec75c0d5b
add simple history expansion
2023-03-20 12:19:48 -07:00
sawka
1742a3dbbc
add linenum to map
2023-03-18 11:49:00 -07:00
sawka
064e31eb2c
fix history query time
2023-03-17 21:36:49 -07:00
sawka
2ba3a09285
prevent nulls (problem with my DB)
2023-03-17 18:19:59 -07:00
sawka
e01a0a7fa0
write local-server-bin
2023-03-17 15:57:01 -07:00
sawka
e363ed0d0e
copy sshport to real sshopts. print port number in console
2023-03-17 15:07:29 -07:00
sawka
5b74117bca
bump to 0.1.7, add line:set
2023-03-17 14:47:30 -07:00
sawka
5bc6f1fd6c
set renderer from kwargs
2023-03-16 21:46:10 -07:00
sawka
e16c6534ad
add screenid to cmd, remove sessionid from screenlines
2023-03-15 18:12:55 -07:00
sawka
f86f0a78b1
restore historynum and add linenum to historyitems
2023-03-15 12:27:17 -07:00
sawka
ed60723720
remove windowid
2023-03-14 16:37:22 -07:00
sawka
2a7a5c739c
remove incognito check for now
2023-03-13 15:54:35 -07:00
sawka
f8abfcb563
bug fixes
2023-03-13 12:23:36 -07:00
sawka
49e56f91cd
bug fixes for screen primary
2023-03-13 12:10:23 -07:00
sawka
1059a10727
remove screens from session. add screenlinestype (replaces 'window' lines)
2023-03-13 10:50:29 -07:00
sawka
fd33157130
more window/screen_window references removed
2023-03-13 02:09:29 -07:00
sawka
e154aacaad
checkpoint, backend changes for consolidating window and screen_window to screen
2023-03-13 01:52:30 -07:00
sawka
ee2fd8e98f
let SIGHUP or stdin close trigger a shutdown
2023-03-12 15:24:53 -07:00
sawka
861cf8d126
fix shutdown loop -- have to ignore SIGHUP
2023-03-12 15:16:49 -07:00
sawka
34d4962b7a
more logging, backup db on migration, fix issue with dbmapper (writing byte arrays)
2023-03-12 14:42:18 -07:00
sawka
db5cecb1da
first use of go generics for DB mapping functions. add cloud session tables. refactor some of dbops to use new generics.
2023-03-09 18:44:01 -08:00
sawka
f2529581e1
checkpoint, cloud sessions
2023-03-08 17:16:06 -08:00
sawka
f5fd231208
promptenc for encrypting/decrypting some plain fields in a struct to an encrypted field (json + aead)
2023-03-08 14:38:46 -08:00
sawka
0ad1d9236a
commit unused code in working version
2023-03-08 09:56:38 -08:00
sawka
b20f85f8a2
commit keygen package (unused)
2023-03-08 09:50:07 -08:00
sawka
b2347f0b45
commit shparse test
2023-03-08 09:49:13 -08:00
sawka
c9d0aabfe5
add crypto libs
2023-03-08 09:37:52 -08:00
sawka
ca527e6643
bump to v0.1.6
2023-03-06 15:53:08 -08:00
sawka
66f55ad85c
fix bugs with history query paging
2023-03-06 15:42:50 -08:00
sawka
454c8758cd
bug fixes, allow cmd filtering
2023-03-06 13:54:38 -08:00
sawka
501b067ead
add a filtered search mode to history search
2023-03-06 11:47:44 -08:00
sawka
7516f880ae
history search bugfixes
2023-03-05 13:53:24 -08:00
sawka
56b74f35f3
allow many more history query search options
2023-03-03 18:12:24 -08:00
sawka
22d0c5687e
call to purge history items
2023-03-03 13:31:16 -08:00
sawka
60e17f160f
add activesessionid to switch screen
2023-03-03 10:15:57 -08:00
sawka
77d27272a5
line:view command
2023-03-02 23:24:01 -08:00
sawka
b842ef3215
add lines/cmds to historyview data. fix bug with lineid not getting added for comment commands
2023-03-02 22:26:15 -08:00
sawka
014f1132a7
working on playbooks and history view
2023-03-02 00:31:19 -08:00
sawka
fa393e2eec
make a fake cmd for 'cr'. add 'connect'
2023-02-28 17:50:42 -08:00
sawka
b557da8694
bump to v0.1.5
2023-02-27 12:28:22 -08:00
sawka
652930753c
schema updates
2023-02-26 22:22:20 -08:00
sawka
83314c3e48
update termfontsize command /client:set
2023-02-26 14:33:01 -08:00
sawka
ee4cfd2d4b
add db migrations
2023-02-23 17:52:54 -08:00
sawka
fe3fb6d377
updates for activity, buildtime, etc.
2023-02-23 15:17:47 -08:00
sawka
c1b6095410
add buildtime
2023-02-23 14:50:58 -08:00
sawka
8e1f34b93b
telemetry updates
2023-02-21 22:41:56 -08:00
sawka
33af77b88c
minor, finish bookmark functionality
2023-02-21 22:11:06 -08:00
sawka
e4113b5f51
bookmark edit, delete, getbyid
2023-02-21 18:03:13 -08:00
sawka
40526a6fdf
bookmarks view
2023-02-20 22:08:23 -08:00
sawka
63c620aea1
get bookmarks
2023-02-20 22:00:07 -08:00
sawka
3845429fd2
insert bookmark
2023-02-20 21:39:29 -08:00
sawka
37ffcd03c8
new bookmark tables
2023-02-20 15:42:27 -08:00
sawka
d0b03c359a
setscreenidx and getdbversion
2023-02-20 15:41:39 -08:00
sawka
5fa7bcc108
bump to version 0.1.4
2023-02-16 15:49:22 -08:00
sawka
bc0abacfd2
use new external module github.com/sawka/txwrap
2023-02-14 16:17:54 -08:00
sawka
57a8e49d73
updates for line renderer
2023-02-06 00:30:23 -08:00
sawka
573ca55c50
add stat call
2023-02-06 00:29:33 -08:00
sawka
171fa9128d
fix invalid height error
2023-02-01 09:45:33 -08:00
sawka
9914bd080b
bump version to v0.1.3
2023-02-01 00:48:00 -08:00
sawka
3240b128e1
fix nil ptr exception (because GetType() returns a value even when pk is nil)
2023-02-01 00:44:31 -08:00
sawka
c0876a6ab6
line:setheight command
2023-01-31 22:21:19 -08:00
sawka
108517bd08
add /screen:reset to remove all remote instances for screen
2023-01-31 17:56:56 -08:00
sawka
a4b8819948
increase rundata size limits
2023-01-31 12:14:41 -08:00
sawka
6ea1dd65bb
update ports
2023-01-30 11:36:02 -08:00
sawka
0696669c53
update schema
2023-01-28 21:15:05 -08:00
sawka
cd41be5d04
use relative path for mshell
2023-01-26 14:41:26 -08:00
sawka
848f321ae7
backend version, check telemetry send more often (but send on the same interval) -- works better with computer suspend.
2023-01-25 22:49:50 -08:00
sawka
518e900403
bump to v0.1.2
2023-01-25 22:30:25 -08:00
sawka
18048a675a
fix /scren:purge hanging issue
2023-01-25 14:29:12 -08:00
sawka
67ad7d017e
add session:purge (to be compatible with screen)
2023-01-25 13:57:36 -08:00
sawka
2bb098e940
exit stdin loop on error, force a sigkill after 10s
2023-01-23 15:48:54 -08:00
sawka
bf36d4f942
interactive connect -- does not force ssh batch mode
2023-01-23 13:47:57 -08:00
sawka
ae15fbdf91
create remote should show remote page, and force an interactive connect
2023-01-23 13:47:36 -08:00
sawka
5914e57afc
export PROMPT and PROMPT_VERSION, always start remote
2023-01-23 13:28:00 -08:00
sawka
f8c675c3e7
updates to telemetry, separate telemetry commands, use json data
2023-01-23 12:54:32 -08:00
sawka
ea897bf53c
send telemetry data to pcloud. pcloud dev settings (with PCLOUD_ENDPOINT). /client:show and /client:set commands (for no-telemetry)
2023-01-22 23:10:18 -08:00
sawka
dc051beeb8
add client:set command
2023-01-19 11:10:12 -08:00
sawka
353bfad434
change numlines to numcommands. log all interactive eval commands to activity table. stub pcloud telemetry call
2023-01-17 16:02:44 -08:00
sawka
85c943f65a
bump version to v0.1.1
2023-01-16 23:39:58 -08:00
sawka
64ec186fa0
new API for client to log activity
2023-01-16 23:36:52 -08:00
sawka
db727b232f
fix unused variable
2023-01-11 22:26:27 -08:00
sawka
be978a25b2
reinit focus
2023-01-11 20:53:46 -08:00
sawka
aa56db0bc4
fix userhostre to accept IP addresses
2023-01-11 17:16:20 -08:00
sawka
7f15092550
change back to /history
2023-01-02 12:13:55 -08:00
sawka
0f599207cf
clear can either archive or purge lines
2023-01-02 12:09:19 -08:00
sawka
96b25900fc
archive/purge lines for clear
2023-01-02 12:09:01 -08:00
sawka
a20da453f4
cr command (bare) shows all remotes
2022-12-30 17:01:17 -08:00
sawka
2f7aa94405
sudo remote and colors
2022-12-29 00:07:16 -08:00
sawka
f5e0801978
update local mshell binary path -- use the mshell packaged with Prompt app
2022-12-28 23:09:37 -08:00
sawka
7d887bc2d9
update build output paths
2022-12-28 23:08:33 -08:00
sawka
9ab5d1e529
implement devmode with alternate directory/ports so main/dev can be run simultaneously
2022-12-28 17:47:12 -08:00
sawka
e1e1a52e06
autoconnect remotes
2022-12-28 16:59:54 -08:00
sawka
16b808bb21
working on autoconnect
2022-12-28 13:56:19 -08:00
sawka
43689ac3f8
line archived (not line:hidden). remove some debugging code
2022-12-27 23:12:27 -08:00
sawka
73bc162824
session:show command
2022-12-26 19:06:46 -08:00
sawka
4974e9405f
use scbase not base for fileops
2022-12-26 18:49:45 -08:00
sawka
5933287e0d
unarchive session
2022-12-26 18:42:55 -08:00
sawka
af16ab1aed
working on session archive/delete
2022-12-26 16:09:21 -08:00
sawka
a485294f0b
bugfixes for screen archives
2022-12-26 12:38:47 -08:00
sawka
6bc948af5d
woring on screen archiving
2022-12-26 12:18:13 -08:00
sawka
f1a46dea82
screen archiving
2022-12-25 13:21:48 -08:00
sawka
5645a01482
archived not closed
2022-12-25 13:03:11 -08:00
sawka
962261ec35
updates for /screen:close
2022-12-23 15:56:29 -08:00
sawka
d2530339e4
line hidden attribute. add line:hide and line:purge commands
2022-12-21 17:45:40 -08:00
sawka
b0a40ee629
signal command
2022-12-20 21:58:58 -08:00
sawka
91667e4dec
process special input signals. also allow numeric signals.
2022-12-20 21:58:24 -08:00
sawka
1697010d55
handle simple authkey authentication for local-server
2022-12-20 16:16:46 -08:00
sawka
21bbab88c8
authkey get/generate. new schema for incognito/closed screens/sessions. rename scbase functions to use Prompt name
2022-12-19 18:52:08 -08:00
sawka
2684aaef85
change fn prefix that mshell uses to mshell
2022-12-19 17:39:19 -08:00
sawka
7250bbb1ad
rename to mshell_exittrap
2022-12-19 17:38:24 -08:00
sawka
35006dfc65
rename sh2/scripthaus to prompt. maxcommandlen set.
2022-12-19 17:36:19 -08:00
sawka
8624e9c844
add line staring to schema and to cmdrunner
2022-12-05 22:59:00 -08:00
sawka
f010758b36
mshell single writes ping packets to detect when the server has died. sends SIGHUP to children
2022-12-05 22:26:13 -08:00
sawka
39e5e6c729
remove test code
2022-12-05 15:45:26 -08:00
sawka
ad2cab595d
kill server on I/O write error, and add a pinger to continually send ping packets to test connection
2022-12-05 15:38:44 -08:00
sawka
81554e8fd2
fix concurrent write on websocket (only happened under intense write stress)
2022-11-29 12:45:19 -08:00
sawka
bdd8381b01
updates/bugfixes for statediff
2022-11-28 18:05:54 -08:00
sawka
c6a2118451
big update, got statediff and state_base working. updates to remote_instance and cmd tables/structures
2022-11-28 18:03:02 -08:00
sawka
61a07d4025
fix down migration
2022-11-28 12:01:03 -08:00
sawka
605d0899cf
checkpoint
2022-11-28 00:15:34 -08:00
sawka
b2dc52e166
checkpoint
2022-11-28 00:13:00 -08:00
sawka
eb3cf80329
fix json marshaling bug for statediff
2022-11-27 14:16:25 -08:00
sawka
d5ea9e0221
implement cmdfinal (hangup) from server
2022-11-27 14:12:15 -08:00
sawka
4481cddadc
checkpoint on statediff. bug fixes. working on more robust error handling for packetsender
2022-11-27 13:47:18 -08:00
sawka
5a151369cb
line/mapdiff code
2022-11-25 15:52:29 -08:00
sawka
c94c0b7c36
normalize assoc arrays on parse so then values can be compared
2022-11-25 14:21:51 -08:00
sawka
301bfaa0be
write a quick set of functions to pack and unpack byte arrays
2022-11-24 15:16:18 -08:00
sawka
576d02c98f
make a simple linediff
2022-11-24 15:05:08 -08:00
sawka
d286f4d6ab
checkpoint, add winsize to uicontext
2022-11-23 14:34:49 -08:00
sawka
7882232a0e
meta+command compgen working. hide compgen command from completion (underscores)
2022-11-23 11:12:05 -08:00
sawka
717461908a
command compgen also needs to detect directories
2022-11-23 10:51:51 -08:00
sawka
da2fe25fb8
move to simpleexpand
2022-11-22 22:59:29 -08:00
sawka
ac8180a1ae
fix default anchor value
2022-11-22 13:52:31 -08:00
sawka
00356fc297
fix comp complete
2022-11-22 00:32:27 -08:00
sawka
bd3595c954
checkpoint, testing new compgen. fixed superoffset bug
2022-11-22 00:26:41 -08:00
sawka
bb3e12fee7
checkpoint, extend working with all the crazy quote balancing for subs
2022-11-21 23:06:58 -08:00
sawka
75f662a188
checkpoint -- extension
2022-11-21 19:06:59 -08:00
sawka
8729d1f491
strwithpos uses rune position not byte position
2022-11-21 16:37:09 -08:00
sawka
9f7b5c8226
checkpoint, return comptype 'var' when we're in a var word
2022-11-21 14:47:00 -08:00
sawka
ff11290fa0
checkpoint, none/simple both need to recurse
2022-11-21 14:25:02 -08:00
sawka
ff11be5922
checkpoint on more completion/expansion
2022-11-21 12:55:53 -08:00
sawka
39ac41c448
working on expand
2022-11-19 14:05:38 -08:00
sawka
d469fed490
working on getting comppos to work recursively
2022-11-18 19:05:03 -08:00
sawka
54e42ad10e
checkpoint on finding command completion point
2022-11-18 16:16:31 -08:00
sawka
3474177f28
split cmdnone on command separators
2022-11-18 14:57:25 -08:00
sawka
a630606020
working on integrating position. identify cmd assignment words. make group words consistent. always copy Raw runes. fixup command whitespace
2022-11-18 14:26:52 -08:00
sawka
a599dc473a
split words into simple commands. identify bash keywords. light parsing of bash language to get command separation
2022-11-18 00:09:18 -08:00
sawka
082b146409
extension functions, word meta
2022-11-16 23:52:10 -08:00
sawka
7f4e5c0ef1
checkpoint, starting extend
2022-11-16 22:17:38 -08:00
sawka
475d7cd647
subparse backticks and dollar double quote
2022-11-16 12:00:44 -08:00
sawka
ec2de4609b
add QC to word, refactor makeWord, fix special variables
2022-11-16 11:13:15 -08:00
sawka
f1958eaac7
recursive parsing for double quotes, subshells, and variable expansions
2022-11-16 00:37:22 -08:00
sawka
d44242fe71
checkpoint on new shparse
2022-11-15 10:27:36 -08:00
sawka
b9fd4df60f
words -> str. test roundtrip
2022-11-15 00:39:53 -08:00
sawka
06724528cc
checkpoint
2022-11-15 00:36:30 -08:00
sawka
9da092816a
checkpoint
2022-11-14 19:57:29 -08:00
sawka
55767e3256
remove shellescape dependency
2022-11-14 13:56:50 -08:00
sawka
24f17ff5e9
checkpoint shparse
2022-11-14 13:56:28 -08:00
sawka
90bcb09b3e
hook up new command completion
2022-11-10 18:51:20 -08:00
sawka
afbdf644bf
checkpoint on comp
2022-11-10 16:00:51 -08:00
sawka
f81bea6658
check in some tests for comp package
2022-11-10 15:39:13 -08:00
sawka
2ab8795643
comp checkpoint
2022-11-10 15:28:39 -08:00
sawka
055dc7c8ac
checkpoint on compgen
2022-11-10 13:52:51 -08:00
sawka
01821ca094
allow variable comptype
2022-11-09 20:38:47 -08:00
sawka
848f7164a3
checkpoint on completion
2022-11-09 20:38:28 -08:00
sawka
d86bee87d8
partial word expansion
2022-11-04 12:28:08 -07:00
sawka
4392956f99
replace expand.Literal with safer hand-written version that only expands quoted strings and literals
2022-11-03 23:53:25 -07:00
sawka
d225c988ed
checkpoint on new completion parsing function
2022-11-03 19:16:14 -07:00
sawka
d7b67582eb
use deepequal for vars
2022-11-02 18:45:13 -07:00
sawka
76d3c10748
decls equal fn -- must parse associative arrays (order is not consistent in bash output)
2022-11-02 18:41:53 -07:00
sawka
d4e4b497fb
scripthaus env vars. also mshellbinaryfrompackage for install
2022-11-01 21:42:56 -07:00
sawka
ee36078082
parameterize the mshell bin directory (for packaging). inject MSHELL variables for execution
2022-11-01 21:19:42 -07:00
sawka
d9163d6af4
use log.Printf, ensure sc home dir
2022-10-31 12:40:45 -07:00
sawka
d6ba16613c
store migrations in go source (via embed)
2022-10-31 12:24:21 -07:00
sawka
f35adf1da0
watch stdin, kill server is stdin is closed
2022-10-30 13:05:53 -07:00
sawka
8939c57dd8
minor, add isempty func for shellstate
2022-10-30 12:52:58 -07:00
sawka
260fc2d313
working on server control and packaging
2022-10-30 12:52:40 -07:00
sawka
29dbf5dde9
runcommand now sets the state at the time of execution
2022-10-27 22:52:38 -07:00
sawka
31a38cbdae
state updates (yay)
2022-10-27 22:22:17 -07:00
sawka
2df33621fd
stateful commands block other commands while they are running, introduce waiting state
2022-10-27 22:00:10 -07:00
sawka
1da450e61c
implement reinit, also do not store 'columns' var
2022-10-27 21:59:17 -07:00
sawka
56259e3f05
fix cmd done lock ordering (actually start the cmdwait). implement reset command to re-initialize the terminal
2022-10-27 17:10:36 -07:00
sawka
e5d2267f27
minor updates to get state to be consistent
2022-10-27 00:34:16 -07:00
sawka
0060c8ffc2
big update to handle cmd returnstate (still need to process new state with donepacket)
2022-10-27 00:33:50 -07:00
sawka
d50ed6ca6c
work on evalbracketargs
2022-10-26 14:51:12 -07:00
sawka
cabf8a50ff
updates for new shellvars
2022-10-25 12:31:29 -07:00
sawka
245a1995e2
parse shellvariables with args
2022-10-25 12:31:07 -07:00
sawka
c9195b3cfd
move some sh parsing to shexec
2022-10-24 21:29:11 -07:00
sawka
674a6ef11e
grab shell vars with export vars
2022-10-24 21:26:39 -07:00
sawka
5d6c77491f
add shell parser
2022-10-24 15:35:01 -07:00
sawka
3b7dd7c01e
working on source command
2022-10-22 14:46:39 -07:00
sawka
d8b5508b77
returnstate option for runpk (for sourcing files)
2022-10-22 14:45:31 -07:00
sawka
caf8b1d151
use statediff for output for setenv, unset, and cd
2022-10-20 16:14:14 -07:00
sawka
e55f7fb4fe
working with new static commands
2022-10-18 18:03:02 -07:00
sawka
fdc5a289a9
use packet.ShellState, send aliases and functions as part of state
2022-10-16 23:51:04 -07:00
sawka
b9c3940b99
big change to execution, run command as a script and set aliases/funcs
2022-10-16 23:46:59 -07:00
sawka
1c2c8c2f4d
return defined bash aliases in initpk
2022-10-15 13:45:52 -07:00
sawka
c940c7b85b
cmd-fg, update when cmd done back to input
2022-10-11 23:11:43 -07:00
sawka
61dac018fb
allow negative numbers for anchor offset
2022-10-11 13:23:38 -07:00
sawka
62fc2594ef
checkpoint cmd-fg
2022-10-11 01:11:04 -07:00
sawka
d19f29c467
single-thread DB access. send selectedline updates for run/comment commands
2022-10-10 17:30:48 -07:00
sawka
43cf55b25e
commands for line selection, updated resolver to allow 'S' and 'E'
2022-10-07 01:08:03 -07:00
sawka
2d089b98fb
tweaks to genericresolver (and bug fix)
2022-10-06 23:58:38 -07:00
sawka
fbe652b932
add scrolltop and selectedline to screen_window
2022-10-06 18:33:54 -07:00
sawka
f5b9ea07a1
local flag on remote, ensure 1 local remote. on archive, change to local remote
2022-10-04 11:45:24 -07:00
sawka
539e71ad47
only show remote upgrade if initpk was received
2022-10-04 11:15:59 -07:00
sawka
998a65b873
remote editing checkpoint
2022-10-03 19:04:48 -07:00
sawka
1c46b79de3
checkpoint, visual editing of remotes
2022-10-03 12:25:43 -07:00
sawka
4d075e32bf
updateremote (non-visual)
2022-10-02 18:52:55 -07:00
sawka
f342cae630
refactor the remote edit argument parsing
2022-10-01 13:23:36 -07:00
sawka
d8e7c915e5
add sshport and batchmode
2022-09-30 17:22:57 -07:00
sawka
3beb00998b
support sending password to remote
2022-09-30 17:22:28 -07:00
sawka
23759b7283
working on remote:new
2022-09-30 16:23:40 -07:00
sawka
62c3390d31
use batchmode for non-manual connections. don't allow duplicate aliases for remotes
2022-09-30 16:05:48 -07:00
sawka
534ef04cca
checkpoint on remote:add dialog
2022-09-30 14:46:51 -07:00
sawka
be1e1dfe90
allow context cancelation of install
2022-09-26 23:23:32 -07:00
sawka
a60680f855
remote install
2022-09-26 23:23:04 -07:00
sawka
ea6b571184
pass context to runinstall for cancelation
2022-09-26 21:10:08 -07:00
sawka
d143ca2820
working on /remote:install
2022-09-26 21:09:43 -07:00
sawka
b5c67b6260
refactoring for versioned mshell binaries on remotes
2022-09-26 13:02:34 -07:00
sawka
d251cbdd88
save/restore winsize w/ clientdata
2022-09-25 00:26:33 -07:00
sawka
bf4fa2031b
autoinstall, fix version check
2022-09-24 22:42:52 -07:00
sawka
982d600d9b
checkpoint, working on autoinstall, semantic versioning, remoteshowall
2022-09-24 19:54:06 -07:00
sawka
4550e18b6b
version string will now be a real semantic version
2022-09-24 13:53:19 -07:00
sawka
aa1542cfc0
don't overwrite mshell if no input received on stdin during install
2022-09-21 23:51:16 -07:00
sawka
ca61597a19
send uname in initpk. remote space between uname parts
2022-09-21 23:26:53 -07:00
sawka
eb00fde596
send uname/mshellversion with remotestate
2022-09-21 23:26:24 -07:00
sawka
21617298e9
origtermopts, clientdata to/from map
2022-09-21 22:02:38 -07:00
sawka
8f608d9d9e
number formatting and better termopts formatting
2022-09-21 12:39:55 -07:00
sawka
5a6bebc51f
show some line info
2022-09-20 21:50:36 -07:00
sawka
a6637b51c9
getlinecmd and getlineidbyarg
2022-09-20 17:37:49 -07:00
sawka
db142d97ec
add linenum to line, nextlinenum to window
2022-09-20 17:01:25 -07:00
sawka
eab785409a
fix remoteidx insert code
2022-09-20 14:23:53 -07:00
sawka
9702fb648a
getsessionsdir
2022-09-20 14:15:39 -07:00
sawka
f75b75790c
session stats/size
2022-09-20 14:15:20 -07:00
sawka
fad718d571
fixup connect/disconnect to deal with connecting state. use context to cancel remote that is in connecting state
2022-09-16 12:28:09 -07:00
sawka
df80d2ac08
allow MakeClientProc to be canceled with a context
2022-09-16 12:27:14 -07:00
sawka
06e3a86f53
add status connecting
2022-09-15 17:44:39 -07:00
sawka
f2e0f9457d
handle remote input (can enter password manually now)
2022-09-15 17:09:04 -07:00
sawka
fcc1737fc4
format errors
2022-09-15 00:37:17 -07:00
sawka
c600027d72
remote pty work
2022-09-15 00:17:23 -07:00
sawka
42683e6f4a
working on remote pty output
2022-09-14 23:10:35 -07:00
sawka
83974e10dd
resolve a remote by id or partial id
2022-09-14 13:01:52 -07:00
sawka
c8b8f78249
allow remote kwarg to be passed to select a different remote for a command
2022-09-14 12:56:05 -07:00
sawka
002876a07b
add remoteidx
2022-09-14 12:06:55 -07:00
sawka
a74ee69da5
working on setting up remotes
2022-09-13 17:11:36 -07:00
sawka
53d710f709
option to send ssh errors to tty instead of stderr
2022-09-13 17:10:18 -07:00
sawka
6f71866663
remote archiving, bug fixes
2022-09-13 12:06:12 -07:00
sawka
cde8bed381
switch to signame for cross system compat
2022-09-06 16:41:05 -07:00
sawka
ec143de8b4
handle term resize / SIGWINCH, move from mpio to shexec (used UnknownPacketReporter). change signum to signame for cross-system compatibility
2022-09-06 16:40:41 -07:00
sawka
670f54a5b4
checkpoint
2022-09-06 13:58:07 -07:00
sawka
46f48a947c
better logging for which remote received the packet
2022-09-06 13:00:30 -07:00
sawka
283d276e99
show remote/ck for messages
2022-09-06 12:58:16 -07:00
sawka
4f4e12c00a
add single-from-server option to mshell, send message packets with ck back to server, report unknown packets back to server
2022-09-06 12:57:54 -07:00
sawka
2b7045443d
update termopts for running commands, send specialinput packet
2022-09-05 20:08:59 -07:00
sawka
082fb7a8b4
updates to inputpacket. inputpacket is split between datapacket and specialinputpacket
2022-09-05 16:32:08 -07:00
sawka
54d2f5d761
queue entire functions when cmdline has not been committed to DB yet. new inputpacket handling (for winsize)
2022-09-05 16:31:22 -07:00
sawka
a20ee78e6d
send line update via websocket synchronously before calling the cmdwait callback. ensures line arrives on fe client before any command updates or pty updates
2022-09-05 14:54:17 -07:00
sawka
54e0ecffe1
create a remote update queue to ensure that we send the line update before we send cmd updates
2022-09-05 14:49:23 -07:00
sawka
b980fd6b74
on ws connect, send sessionlist and remotelist
2022-09-05 12:42:09 -07:00
sawka
74953c71ac
more remote notifications (to keep FE in sync)
2022-09-04 13:51:49 -07:00
sawka
c3961891ce
pass realoffset back in header for /api/ptyout
2022-09-03 23:57:05 -07:00
sawka
57b54198e5
limit maxptysize
2022-09-03 23:38:35 -07:00
sawka
3639e2454d
send termopts.cols to cmdrunner
2022-09-03 23:36:15 -07:00
sawka
39dacb988a
default term rows should be 24 (not 25), add min/max values as well
2022-09-03 23:26:57 -07:00
sawka
247647cea8
remote connect/disconnect working. fix issue with remoteconnected in resolver. working on remote:new
2022-09-01 12:47:10 -07:00
sawka
d55bb8812b
finishing up historytype and making remotes update
2022-08-31 23:12:26 -07:00
sawka
1a88d564bb
return different history types
2022-08-31 13:28:52 -07:00
sawka
3936db0429
allow nil for display
2022-08-31 12:45:59 -07:00
sawka
86f3eabf5e
remote bugfix and filter remotes on client side
2022-08-31 12:01:16 -07:00
sawka
8b11af6822
add non-parsing commands to history
2022-08-31 00:01:42 -07:00
sawka
76854b6079
remote get-history-items, add show param and session/window ids to history command
2022-08-30 23:11:06 -07:00
sawka
8e4b02cec4
run mshell env in interactive bash shell with a new pty. this picks up special interactive environment vars from bash startup scripts
2022-08-30 00:23:03 -07:00
sawka
c03bbe8715
working on history queries
2022-08-29 19:18:02 -07:00
sawka
03dd6b1a7e
pass 'uicontext' with fecmd, use that to resolve ids instead of kwargs. other bug fixes
2022-08-29 16:31:06 -07:00
sawka
f2a5985349
working on history command, remote:showall
2022-08-28 14:24:05 -07:00
sawka
9d6cc1f67a
clear window
2022-08-26 22:01:29 -07:00
sawka
aff174fa80
tab colors
2022-08-26 21:44:18 -07:00
sawka
1997b9ea44
implement screen:set name
2022-08-26 17:51:28 -07:00
sawka
9b6d4e928d
use generic resolver for screens
2022-08-26 17:29:32 -07:00
sawka
ca29e28c85
register handlers instead of a switch statement. make resolve more generic
2022-08-26 17:17:33 -07:00
sawka
773e881bf6
move resolver into its own file
2022-08-26 16:24:07 -07:00
sawka
46ba21030b
save/restore activesessionid, set session name, much more sophisticated session switching logic
2022-08-26 16:21:19 -07:00
sawka
00b88f7f13
fix regexp, add dump argument to show parsed command
2022-08-26 13:18:26 -07:00
sawka
dc8cba79da
add quoting/shell-parsing for commands
2022-08-26 13:12:17 -07:00
sawka
d0806bbd63
remove lock around connecting remote
2022-08-24 22:57:41 -07:00
sawka
db993cf00f
add scripthaus.md
2022-08-24 21:33:50 -07:00
sawka
8274d19e0b
use interactive shell for environment
2022-08-24 18:57:13 -07:00
sawka
5b1b67cf55
quick fixes
2022-08-24 18:56:50 -07:00
sawka
0d314000ac
fully support new remoteptr
2022-08-24 13:21:54 -07:00
sawka
4f686e891b
big updates to remoteinstance, push changes through stack
2022-08-24 02:14:16 -07:00
sawka
09a072f900
run localhost mshell with cwd at HOME, not in current directory
2022-08-24 02:11:49 -07:00
sawka
51f7b0798b
add prompt to cmd
2022-08-23 21:05:49 -07:00
sawka
3423b63213
switch back to slash, combine file and metacmd completions
2022-08-23 17:26:42 -07:00
sawka
dd5e6259bd
add remote:show command
2022-08-23 14:01:52 -07:00
sawka
946f31988c
switch from '/' to '@' as metacommand character
2022-08-23 13:37:08 -07:00
sawka
709920ad8e
add ephemeral to line
2022-08-23 13:14:14 -07:00
sawka
429c41cfd0
show environment
2022-08-22 18:53:38 -07:00
sawka
292c76808a
setenv and unset working
2022-08-22 18:38:52 -07:00
sawka
f63a851b1a
export ParseEnv0 and MakeEnv0
2022-08-22 17:27:55 -07:00
sawka
dca199b492
update to use env0
2022-08-22 16:26:44 -07:00
sawka
7d06bc766c
rename env to env0. add envcomplete bool
2022-08-22 16:24:53 -07:00
sawka
525fe77a5f
send initpk.env in remotestate
2022-08-22 16:00:25 -07:00
sawka
e26705623b
add --env mode to mshell to print cwd and environment (for server initpk). needed because OSX does not support 'env -0'
2022-08-22 15:59:03 -07:00
sawka
9d150dc7e3
connectmode, add stubs for export/setenv command
2022-08-21 12:31:29 -07:00
sawka
b2a2b6252d
send cmd updates for donepk
2022-08-19 17:14:53 -07:00
sawka
86a7cd59e6
use cirfile for detached commands
2022-08-19 15:28:32 -07:00
sawka
03cfabd9b6
convert ptyout files to CF files (fixed size circular buffer files). connect to remotes with their own controlling terminal and capture that terminal output. POC to send password to controlling terminal to login.
2022-08-19 13:23:00 -07:00
sawka
26bd499fac
update to allow a WriteAt call for cirfiles
2022-08-19 12:51:37 -07:00
sawka
e1eecae6d3
implement WriteAt, refactored and tested append, writeat still needs testing
2022-08-18 21:54:42 -07:00
sawka
38870f9c6e
circular file buffer. metadata in header. uses flock to synchronize access. write metadata before and after writing file data.
2022-08-18 20:34:20 -07:00
sawka
77bd1fa7bc
return uname
2022-08-17 12:55:12 -07:00
sawka
b142e350be
capture uname
2022-08-17 12:54:40 -07:00
sawka
249bf88a4d
testing a 2nd remote with mshell --server
2022-08-17 12:24:09 -07:00
sawka
9542d14473
make mshell home directory during getremoteid
2022-08-16 16:26:06 -07:00
sawka
f86de49e31
updates to remote
2022-08-16 15:08:28 -07:00
sawka
b26b9924f3
updates to tables, lineid, sharemode, owneruserid
2022-08-16 12:08:26 -07:00
sawka
8186e54cd2
add client table, ensure client id / public / private key
2022-08-15 18:42:25 -07:00
sawka
550fd89472
fix datapos
2022-08-13 10:27:22 -07:00
sawka
62bbe18171
remove PosAppend weirdness and track filepos in remote
2022-08-12 13:59:31 -07:00
sawka
a67ae15b32
implement history
2022-08-11 23:45:15 -07:00
sawka
d5cf15e946
update history table
2022-08-11 12:07:41 -07:00
sawka
adca87e9db
better directory vs file completion
2022-08-11 10:21:45 -07:00
sawka
5a8ffa3544
more complicated compgen for directory vs file completion
2022-08-11 10:21:11 -07:00
sawka
f4515139a1
uniq completions
2022-08-10 18:33:58 -07:00
sawka
81c564aca9
implement simple command completions
2022-08-10 18:33:32 -07:00
sawka
d4528d1c42
compgen hasmore
2022-08-10 16:07:41 -07:00
sawka
a175d236c1
implement /cd and /compgen
2022-08-09 14:24:57 -07:00
sawka
fbb523aed8
implement compgen and cd in mshell server
2022-08-09 14:23:59 -07:00
sawka
66f547a695
implement new session and switch session
2022-08-08 16:21:46 -07:00
sawka
74b88185dc
add cache for ensuresessiondir
2022-08-08 09:52:50 -07:00
sawka
15c78c8934
sync schema to schema.db
2022-08-08 08:34:59 -07:00
sawka
4785253a10
return interactive update
2022-07-15 17:53:23 -07:00
sawka
6807547ff7
updates, switch to new fecmd packet to run all UI commands through
2022-07-15 17:37:32 -07:00
sawka
5b1eb383e3
screen deletion working, bug fixes
2022-07-15 01:57:45 -07:00
sawka
275e177218
checkpoint
2022-07-14 18:39:40 -07:00
sawka
c1ace6f5d6
updates for getting pty updates sent again
2022-07-13 14:16:08 -07:00
sawka
db841f2951
checkpoint, adding 'screen' concept to contain windows
2022-07-12 21:51:17 -07:00
sawka
11087c10be
txwrap can now be properly nested. add json conversion functions to quick
2022-07-12 16:10:46 -07:00
sawka
6351082900
checkpoint
2022-07-12 14:27:16 -07:00
sawka
2957a03864
checkpoint
2022-07-12 13:50:44 -07:00
sawka
f8753830ff
close ptyout file
2022-07-08 13:28:22 -07:00
sawka
ec6c1f5a9a
working on multiple sessions/windows
2022-07-08 13:23:45 -07:00
sawka
368c16eb60
get input working
2022-07-07 22:46:28 -07:00
sawka
554f8f1b31
input packet should use base64, add remoteid. allow untailing a full entry (when command is done)
2022-07-07 22:45:14 -07:00
sawka
5fcbe209bb
implement globalstore callback for cmd status changes
2022-07-07 22:13:45 -07:00
sawka
45dfeb69f6
updates to allow cmd tailing to work with mshell
2022-07-07 21:39:25 -07:00
sawka
4f4dd67d06
comment out tailer for now
2022-07-07 21:38:05 -07:00
sawka
463187221b
update tailer to use filenamegenerator. allow ptyonly option for getcmd
2022-07-07 21:37:17 -07:00
sawka
4cc55c46ca
only allow one instance of sh2 to run at a time (flock). HUP all running processes when sh2 starts or remote connection ends
2022-07-07 16:29:14 -07:00
sawka
e4bf4b4ef8
checkpoint, pass remote vars to client for prompt str, get commands showing
2022-07-07 13:26:46 -07:00
sawka
eb880e024e
add hostname to init packet
2022-07-07 13:25:42 -07:00
sawka
f7666fe480
checkpoint on storing cmd in db
2022-07-07 00:10:37 -07:00
sawka
2652a3509b
add rpc to combined packet parser
2022-07-06 22:46:59 -07:00
sawka
d4acb79585
data getting written to ptyout files in scripthaus dir
2022-07-06 22:46:22 -07:00
sawka
98e46399be
checkpoint, getting closer to running a command via mshell server
2022-07-06 19:01:00 -07:00
sawka
353605f815
bug fixes and updates for running server with scripthaus
2022-07-06 18:59:46 -07:00
sawka
1b69bb0ac8
fix mshell server to just blindly proxy mshell single command input/output, better simpler code
2022-07-06 17:16:45 -07:00
sawka
51df0479ff
sendpacket with context, initialize rpcmap
2022-07-06 14:35:27 -07:00
sawka
56e1ddf8e6
run packet opt to set term type
2022-07-06 14:06:58 -07:00
sawka
a1b8234954
fix tty TERM for ssh connections when usepty is set. also ignore pty read errors
2022-07-06 12:16:37 -07:00
sawka
95f11fb418
checkpoint, getting tty output working in non-detached mode
2022-07-06 11:21:15 -07:00
sawka
9aa684882b
don't send done packet when detached
2022-07-06 00:25:59 -07:00
sawka
0d585e5959
clean up --single detached mode
2022-07-06 00:21:44 -07:00
sawka
96123c8e1a
checkpoint for tightened runtime semantics for calls -- always send response packets, make sure correct response ids are set, etc.
2022-07-05 23:14:14 -07:00
sawka
0c204e8b2b
standardize error reporting, rpc gets resp, command get cmderr, other errors are just sent as messages
2022-07-05 17:45:46 -07:00
sawka
2755be315d
checkpoint for migrating to remoteinstance
2022-07-05 16:54:49 -07:00
sawka
ef362e5ee9
tighten up packet interfaces, RpcPacketType, RpcResponsePacketType, and CommandPacketType
2022-07-05 16:53:31 -07:00
sawka
123fdfe3bb
comment flow working
2022-07-05 10:51:47 -07:00
sawka
5b2e88ec32
checkpoint
2022-07-04 22:18:01 -07:00
sawka
fc18df0601
checkpoint
2022-07-03 12:01:56 -07:00
sawka
17172b158c
checkpoint
2022-07-02 13:31:56 -07:00
sawka
e9a09d071e
checkpoint, compiling with mshell --server
2022-07-01 17:38:36 -07:00
sawka
0a828b7184
tightening up server mode, fix bugs, refactor, etc.
2022-07-01 17:37:37 -07:00
sawka
f08bd2427e
working on remote runtime
2022-07-01 14:57:42 -07:00
sawka
60199713e8
checkpoint, ensuredefaultsession
2022-07-01 14:45:33 -07:00
sawka
b85be3457c
checkpoint, working on db calls
2022-07-01 14:07:13 -07:00
sawka
643f08e584
checkpoint, working on setting up db
2022-07-01 12:17:19 -07:00
sawka
02029b3948
add schema
2022-07-01 10:50:09 -07:00
sawka
3f01ff44c3
add migration commands into sh2-server (because migrate cli doesn't ship with sqlite3)
2022-07-01 10:48:14 -07:00
sawka
7340d89089
get sh2-server compiling again
2022-06-30 17:02:19 -07:00
sawka
b6711e7428
sanitize packets to be 7-bit ascii without control chars. dont send data/dataend when no rundata present. use os.Executable to locate mshell if running locally. more work on detached mode
2022-06-29 14:29:38 -07:00
sawka
4d8841a459
use RunPacketBuilder in server mode
2022-06-28 22:05:47 -07:00
sawka
c73691ac24
move static files from remotefd content to 'rundata'. send all rundata before command start. parse rundata before command start. compatible with detached commands
2022-06-28 21:57:30 -07:00
sawka
9054c3cdcc
got basic mshell --server functionality working to dispatch multiple commands
2022-06-28 19:01:33 -07:00
sawka
1d44afc10e
working on server mode. extract fdcontext as interface. create packet writer/reader for mpio. hook up to serverFdContext.
2022-06-28 17:20:01 -07:00
sawka
d7eb2526f0
refactor RunClientSSHCommandAndWait for server code
2022-06-28 15:04:08 -07:00
sawka
9377619e4c
write auto-detect logic for arch from uname
2022-06-27 23:14:53 -07:00
sawka
afd3bdb315
implement install command
2022-06-27 22:39:16 -07:00
sawka
26479f59c0
pass uname back when mshell isn't found, parse, and give install command
2022-06-27 18:42:56 -07:00
sawka
ec4bd5eaa1
only send 1 line from pw file, explicitly close pw file descriptor before running command
2022-06-27 15:59:14 -07:00
sawka
0f5ee87a76
allow mshell to execute local commands
2022-06-27 15:10:17 -07:00
sawka
dafe2b5a57
simplify argument parsing, hard code common ssh options
2022-06-27 14:57:01 -07:00
sawka
6574402691
create packetparser type, refactor to use
2022-06-27 12:14:07 -07:00
sawka
2a6791bcd6
combine sessionid and cmdid into one field ck (commandkey)
2022-06-27 12:03:47 -07:00
sawka
1ea8393844
update docs with sudo example
2022-06-26 01:53:07 -07:00
sawka
222deff0db
implement sudo dance allowing passing the sudo password on stdin with sudo -S, and passing a different stdin fd to the command
2022-06-26 01:41:58 -07:00
sawka
e8ae01efae
check for input termination before init packet
2022-06-25 00:33:18 -07:00
sawka
fec7721e32
refuse to run with ssh -t or -tt, detect nil runPacket
2022-06-25 00:30:41 -07:00
sawka
935500f1f1
packet debugging with --debug
2022-06-25 00:22:03 -07:00
sawka
43ed95f8fc
clean up combining stdout and stderr into packet parsers, combine the channels and close appropriately
2022-06-25 00:05:37 -07:00
sawka
e6776bd974
checkpoint. transfer binary data as base64. handle cwd. detect open fds. working to transfer data in non-error cases.
2022-06-24 23:42:00 -07:00
sawka
5223760a76
got basic mshell client working -- still need detectfds and extra files support
2022-06-24 13:25:09 -07:00
sawka
0267836376
move multiplexed IO to its own package independent of SHExecType (to use in mshell client)
2022-06-24 10:24:02 -07:00
sawka
4256ff5231
checkpoint -- cleanup and sync optimizations for remote client (basically working). beginning work on local client
2022-06-24 00:02:18 -07:00
sawka
52831dc723
setup extrafiles using run packet's fds field
2022-06-23 18:23:30 -07:00
sawka
29372be4ef
working with fdreaders and fdwriters to properly buffer output and not exceed buffer size without acks
2022-06-23 17:37:05 -07:00
sawka
c43d3ecc85
checkpoint got stdout/stderr data packets working with new remote handler
2022-06-23 12:48:45 -07:00
sawka
766d19f1bc
checkpoint, switch name from sh2-runner to mshell
2022-06-23 10:16:54 -07:00
sawka
eb7ac5136e
updates, switch to mshell package
2022-06-23 10:15:56 -07:00
sawka
0b172cd689
add cdpacket
2022-06-23 09:56:54 -07:00
sawka
4e18bbe44e
process comment commands
2022-06-20 21:57:23 -07:00
sawka
2c62890912
call SetWinsize to set terminal size always for pty
2022-06-20 17:51:28 -07:00
sawka
315a048f49
return username with init packet
2022-06-17 18:11:49 -07:00
sawka
859a1611b8
get runnerproc args from init packet
2022-06-17 18:11:16 -07:00
sawka
0a6d8b8e9f
input packet type
2022-06-17 15:31:07 -07:00
sawka
848100247c
got stdin fifo input working
2022-06-17 15:30:42 -07:00
sawka
b6a8550ab8
revert cmdtail to watch individual files (inefficient directory watching on osx). touch ptyout file before running (because of file watching)
2022-06-17 12:27:29 -07:00
sawka
c8f9022db4
close runout file in main runner
2022-06-17 11:29:33 -07:00
sawka
3497f607ce
fix bug in updateTailPos, add Close() for tailers
2022-06-16 22:23:29 -07:00
sawka
2a5cde908a
got streaming ptyout via websockets working
2022-06-16 22:22:47 -07:00
sawka
dc4baaea27
cmdtail now can support multiple tails on the same cmd with independent tail positions
2022-06-16 17:24:29 -07:00
sawka
862014bd82
add windowid
2022-06-16 15:51:41 -07:00
sawka
c6165f15f4
update tailer to send packets to a channel instead of hard coding to PacketSender
2022-06-16 01:10:56 -07:00
sawka
a5fedb3668
minor changes to ws
2022-06-16 01:09:56 -07:00
sawka
6f7a883cfd
updates for websocket ping/pong logic, longer timeouts
2022-06-15 18:13:16 -07:00
sawka
5176128346
updates to allow parsing non-packets into raw packets (to see stderr output), and new sessionwatcher
2022-06-15 16:29:57 -07:00
sawka
0c1cacc20d
capture stderr from runner process. new packet format to distinguish it from real packets. warn when the runner exits
2022-06-15 16:27:22 -07:00
sawka
f8f3ce65fb
get cmddata sent via websocket connection
2022-06-14 22:39:09 -07:00
sawka
ecceb67f20
got session/command tailing working. server can send getcmd packets, and client responds with cmddata packets
2022-06-14 22:16:58 -07:00
sawka
65094ad0ec
updates, groundwork for tail, better parsing logic
2022-06-14 14:17:36 -07:00
sawka
d80517caa0
run command submitted via run-command
2022-06-13 11:11:56 -07:00
sawka
22aa999a7b
initial checkin of main-server
2022-06-12 13:39:48 -07:00
sawka
1a3886c437
go runner / runner-single fork flow working
2022-06-10 21:37:21 -07:00
sawka
eeaeac8dc8
initial runner commit
2022-06-10 00:37:06 -07:00