Commit Graph

90 Commits

Author SHA1 Message Date
sawka
d84dd75d94 resolve ~ in read/write file api 2023-09-01 20:40:28 -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
681d80e0a6 force ipv4 listening in local server (consistent ipv4 throughout stack) 2023-08-14 17:04:16 -07:00
sawka
36a20a14c4 change functions to use lineid not cmdid 2023-07-30 18:32:56 -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
59ff522cd1 updates to read openai token from clientdata 2023-05-08 16:06:51 -07:00
sawka
150c8cfaee now calling promptcentral web updates 2023-03-26 18:48:43 -07:00
sawka
cf3644f0fd working on webshareupdates 2023-03-26 13:21:58 -07:00
sawka
02ae7ea972 checkpoint on big cmd screen migration 2023-03-20 19:20:57 -07:00
sawka
ed60723720 remove windowid 2023-03-14 16:37:22 -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
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
fe3fb6d377 updates for activity, buildtime, etc. 2023-02-23 15:17:47 -08:00
sawka
8e1f34b93b telemetry updates 2023-02-21 22:41:56 -08:00
sawka
6ea1dd65bb update ports 2023-01-30 11:36:02 -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
2bb098e940 exit stdin loop on error, force a sigkill after 10s 2023-01-23 15:48:54 -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
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
64ec186fa0 new API for client to log activity 2023-01-16 23:36:52 -08:00
sawka
be978a25b2 reinit focus 2023-01-11 20:53:46 -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
16b808bb21 working on autoconnect 2022-12-28 13:56:19 -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
35006dfc65 rename sh2/scripthaus to prompt. maxcommandlen set. 2022-12-19 17:36:19 -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
d9163d6af4 use log.Printf, ensure sc home dir 2022-10-31 12:40:45 -07:00
sawka
f35adf1da0 watch stdin, kill server is stdin is closed 2022-10-30 13:05:53 -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
f5b9ea07a1 local flag on remote, ensure 1 local remote. on archive, change to local remote 2022-10-04 11:45:24 -07:00
sawka
3beb00998b support sending password to remote 2022-09-30 17:22:28 -07:00
sawka
d251cbdd88 save/restore winsize w/ clientdata 2022-09-25 00:26:33 -07:00
sawka
42683e6f4a working on remote pty output 2022-09-14 23:10:35 -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
b980fd6b74 on ws connect, send sessionlist and remotelist 2022-09-05 12:42:09 -07:00
sawka
c3961891ce pass realoffset back in header for /api/ptyout 2022-09-03 23:57:05 -07:00
sawka
d55bb8812b finishing up historytype and making remotes update 2022-08-31 23:12:26 -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
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
46ba21030b save/restore activesessionid, set session name, much more sophisticated session switching logic 2022-08-26 16:21:19 -07:00
sawka
0d314000ac fully support new remoteptr 2022-08-24 13:21:54 -07:00