GraphQL, WebSocket, import, runner and CLI (M5, M6) plus packaging

- GraphQL editor with schema introspection, cached schema,
  autocomplete and explorer
- WebSocket: auth and subprotocols in the handshake, text/JSON/hex/file
  messages, saved messages, live log with filter, search and export,
  reconnect with backoff
- Import from Postman (collections and environments), Bruno, Insomnia,
  OpenAPI/Swagger and cURL; imported scripts are kept as docs, never run;
  credentials move to the gitignored secrets file
- Code snippets for cURL, fetch, Python, HTTPie, Go, PowerShell;
  Postman export
- Runner for folders and collections with JSON and JUnit reports
- knock CLI: send, run, import, auth login/debug/logout
- Large JSON responses parsed off the main thread
- PKGBUILDs, desktop entry with knock:// handler, CI workflow, README
This commit is contained in:
2026-11-27 17:13:06 +01:00
parent a469697af7
commit fc253126a7
51 changed files with 8437 additions and 24 deletions
+15
View File
@@ -3,6 +3,7 @@ mod db;
mod oauth;
mod state;
mod watch;
mod ws;
use tauri::Manager;
@@ -22,6 +23,7 @@ pub fn run() {
let dir = app.path().app_data_dir()?;
app.manage(state::AppState::new(dir)?);
app.manage(oauth::OauthState::default());
app.manage(ws::WsState::default());
Ok(())
})
.invoke_handler(tauri::generate_handler![
@@ -67,11 +69,24 @@ pub fn run() {
commands::setting_set,
commands::path_params,
commands::app_version,
commands::write_text_file,
commands::runner_run,
commands::import_curl,
commands::import_detect,
commands::import_source,
commands::import_text,
commands::import_environment,
commands::export_postman,
commands::code_snippet,
oauth::oauth_status,
oauth::oauth_run,
oauth::oauth_callback,
oauth::oauth_deep_link,
oauth::oauth_cancel,
ws::ws_connect,
ws::ws_send,
ws::ws_ping,
ws::ws_close,
])
.run(tauri::generate_context!())
.expect("error while running knock");