Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | WebSocket: send a User-Agent header | Přemysl Eric Janouch | 2020-10-15 | 1 | -0/+2 |
| | |||||
* | json-rpc-test-server: add a simple co-process mode | Přemysl Eric Janouch | 2020-10-15 | 3 | -7/+179 |
| | | | | | | A disgusting copy-paste but it will have to do for now. Closes #6 | ||||
* | json-rpc-test-server: WS: fix failures to upgrade | Přemysl Eric Janouch | 2020-10-15 | 1 | -5/+8 |
| | | | | Similar to ad1aba9, only here we return 426 to the client. | ||||
* | WebSocket: adapt to common "await" infrastructure | Přemysl Eric Janouch | 2020-10-14 | 1 | -79/+9 |
| | |||||
* | Add a backend for co-processes | Přemysl Eric Janouch | 2020-10-14 | 3 | -11/+439 |
| | | | | | | | | | Targets language servers. In this first stage, we don't need to support bi-directionality, although it's a requirement for finishing this task. Updates #4 | ||||
* | This software is no longer simple | Přemysl Eric Janouch | 2020-10-14 | 4 | -11/+11 |
| | |||||
* | WebSocket: some clean-up | Přemysl Eric Janouch | 2020-10-14 | 1 | -37/+26 |
| | |||||
* | Split out a http-parser wrapper | Přemysl Eric Janouch | 2020-10-14 | 1 | -111/+152 |
| | |||||
* | Simplify the FAIL macro | Přemysl Eric Janouch | 2020-10-14 | 1 | -5/+1 |
| | |||||
* | WebSocket: fix upgrade processing | Přemysl Eric Janouch | 2020-10-14 | 1 | -14/+6 |
| | | | | | When http-parser sets the upgrade field, it checks for status code 101 and even resolves our TODO about checking the entire Connection header. | ||||
* | json-rpc-shell.adoc: document the M-Enter binding | Přemysl Eric Janouch | 2020-10-14 | 1 | -1/+1 |
| | |||||
* | WebSockets -> WebSocket | Přemysl Eric Janouch | 2020-10-14 | 4 | -15/+15 |
| | | | | | This is the correct name of the protocol, usage of the word "WebSockets" should be limited. | ||||
* | Support reading OpenRPC documents from a file | Přemysl Eric Janouch | 2020-10-13 | 3 | -20/+31 |
| | | | | Bump liberty, it generated incorrect help messages. | ||||
* | Factor out init_backend() | Přemysl Eric Janouch | 2020-10-13 | 1 | -27/+31 |
| | | | | The main() function is still way too long. | ||||
* | json-rpc-test-server: implement rpc.discover | Přemysl Eric Janouch | 2020-10-13 | 1 | -2/+35 |
| | |||||
* | Cleanup | Přemysl Eric Janouch | 2020-10-13 | 1 | -14/+17 |
| | | | | Prevent the last fuck-up from happening again. | ||||
* | Add libedit autocompletion back in | Přemysl Eric Janouch | 2020-10-13 | 1 | -0/+4 |
| | | | | I've mistakenly removed it in the M-Enter change. | ||||
* | Bump version, update NEWSv1.1.0 | Přemysl Eric Janouch | 2020-10-13 | 2 | -1/+12 |
| | |||||
* | libedit: bind M-Enter to newline-insert as well | Přemysl Eric Janouch | 2020-10-13 | 1 | -5/+12 |
| | |||||
* | json-rpc-test-server: fix reading the request URI | Přemysl Eric Janouch | 2020-10-13 | 1 | -1/+1 |
| | |||||
* | Bump http-parser | Přemysl Eric Janouch | 2020-10-13 | 1 | -0/+0 |
| | | | | | Apparently it's reached maturity and there won't be any changes anytime soon, making this the perfect time for an upgrade. | ||||
* | OpenRPC: avoid eating HTTP/transport errors | Přemysl Eric Janouch | 2020-10-13 | 1 | -15/+22 |
| | |||||
* | Document OpenRPC tab completion support | Přemysl Eric Janouch | 2020-10-13 | 2 | -0/+5 |
| | | | | | | | | Now that it's functional in both frontends, we can flaunt it. I still don't want to make it the default. Closes #1 | ||||
* | Implement tab completion under libedit | Přemysl Eric Janouch | 2020-10-13 | 1 | -23/+137 |
| | | | | | | | | | | | I haven't tested it with real wide characters but it will have to do. I wasn't even sure if this piece of crap could be coerced into doing this at first, so it's a win for me. It uses a variation of the code in degesch where we /don't/ want to print the list of candidates on partial failure. Updates #1 | ||||
* | json-rpc-test-server: fix a potential memory leak | Přemysl Eric Janouch | 2020-10-13 | 1 | -0/+1 |
| | |||||
* | json-rpc-shell.adoc: update WebSocket notes | Přemysl Eric Janouch | 2020-10-10 | 1 | -2/+1 |
| | | | | | https://github.com/open-rpc/client-js also uses WebSockets, although they don't seem to support notifications (in general). | ||||
* | Bump liberty | Přemysl Eric Janouch | 2020-10-10 | 2 | -59/+8 |
| | | | | resolve_relative_runtime_unique_filename() used to have a bug. | ||||
* | Readline: add trivial OpenRPC support | Přemysl Eric Janouch | 2020-10-10 | 1 | -6/+108 |
| | | | | So far hidden under a switch and only for this frontend. | ||||
* | Reorder help message entries a bit | Přemysl Eric Janouch | 2020-10-10 | 1 | -6/+6 |
| | | | | Should be both more useful and more alphabetic this way. | ||||
* | Fix use of possibly uninitialised memory | Přemysl Eric Janouch | 2020-10-10 | 1 | -1/+1 |
| | |||||
* | Split make_json_rpc_call() in half | Přemysl Eric Janouch | 2020-10-10 | 1 | -13/+24 |
| | |||||
* | Slightly refactor make_json_rpc_call() | Přemysl Eric Janouch | 2020-10-10 | 1 | -36/+29 |
| | |||||
* | Readline: make M-Enter insert a newline | Přemysl Eric Janouch | 2020-10-09 | 1 | -0/+12 |
| | | | | | | | Before, it was only possible with C-v C-j but it's too useful to require such an awkward method. There is a precedent in, e.g., zsh and fish for the new binding. | ||||
* | Fix handling terminal resizes while the terminal is suspended | Přemysl Eric Janouch | 2020-10-09 | 1 | -0/+2 |
| | | | | GNU Readline has a misfeature. | ||||
* | Readline: fix a dormant bug in prompt changes | Přemysl Eric Janouch | 2020-10-09 | 1 | -5/+3 |
| | | | | For details, see a similar change in degesch from uirc3. | ||||
* | Make a release, create NEWSv1.0.0 | Přemysl Eric Janouch | 2020-09-05 | 2 | -2/+6 |
| | |||||
* | Streamline the manual page a bit | Přemysl Eric Janouch | 2020-09-05 | 1 | -11/+11 |
| | | | | I have consulted `man 7 man-pages` but overall it's a huge mess. | ||||
* | Use saner defaults | Přemysl Eric Janouch | 2020-09-05 | 2 | -32/+39 |
| | | | | | | | | So that most of the time users won't need to use any switches. --pretty-print has been inverted into jq's --compact-output, and --auto-id has been replaced with barely, if-at-all useful --null-as-id. | ||||
* | Improve AsciiDoc compatibility | Přemysl Eric Janouch | 2020-09-05 | 1 | -25/+19 |
| | | | | | | | | | | | | | I need two renderers to work: hswg/libasciidoc and asciidoctor in man page mode (and ideally in HTML as well). That should be covered now. The triple-plus thing was the first thing that showed good results, after trying backslashes, single-plus quoting and [] after ://. The change of the source code block kind could be considered as unification. I'm combining tabs with spaces within one document though, and I should get rid of the tabs in the rest of it then... | ||||
* | Write a nice new man page in AsciiDoc | Přemysl Eric Janouch | 2020-09-05 | 4 | -34/+212 |
| | | | | | | | | | Taking some preliminary steps for inclusion in Linux distributions. The help message has been slightly improved and the README extended, with part of it now residing in the man page. One less GNU dependency, for what it's worth. | ||||
* | Move "connecting..." messages to the debug mode | Přemysl Eric Janouch | 2020-09-05 | 1 | -1/+1 |
| | | | | So that the --verbose option does only one thing. | ||||
* | Fix libedit a bit more and discourage from using it | Přemysl Eric Janouch | 2020-09-02 | 2 | -2/+15 |
| | |||||
* | json-rpc-test-server: add a "date" method | Přemysl Eric Janouch | 2020-09-01 | 1 | -0/+23 |
| | |||||
* | Update copyright years | Přemysl Eric Janouch | 2020-09-01 | 3 | -3/+3 |
| | |||||
* | json-rpc-test-server: reject non-null params in "ping" | Přemysl Eric Janouch | 2020-09-01 | 1 | -1/+4 |
| | |||||
* | json-rpc-test-server: make sure to set the id in responses | Přemysl Eric Janouch | 2020-09-01 | 1 | -0/+5 |
| | |||||
* | Warn on unexpected "id" fields | Přemysl Eric Janouch | 2020-09-01 | 1 | -17/+22 |
| | |||||
* | Make the verbose mode also show the raw input | Přemysl Eric Janouch | 2020-09-01 | 1 | -1/+15 |
| | | | | | To make it more useful for debugging. We might also tie this to the --debug option, though that would be a bit chaotic. | ||||
* | Strip trailing newlines from editor output | Přemysl Eric Janouch | 2020-09-01 | 1 | -3/+10 |
| | |||||
* | Fix libedit crash | Přemysl Eric Janouch | 2020-09-01 | 1 | -1/+2 |
| | | | | | Again, I have no idea why it started to happen, it just occured to me to try to change the call, and it turns out out it works. |