Skeleton, REST core, variables and JSON editor (M0–M2)

- knock-core: YAML collection format with unknown-field round trip,
  variable resolution across scopes with secrets and dynamic values,
  HTTP engine with manual redirects, cookie jar and large-body spill,
  basic/bearer/API key auth with debug output, assertions and extracts
- Tauri app: collection commands, file watcher, SQLite history,
  keyring-backed secrets
- Svelte UI: sidebar tree, tabs, request editor, response viewer,
  JSON form/code editor with schema hints, environments, settings
This commit is contained in:
2026-11-27 16:42:31 +01:00
commit f6484f4dc8
127 changed files with 22909 additions and 0 deletions
+72
View File
@@ -0,0 +1,72 @@
mod commands;
mod db;
mod oauth;
mod state;
mod watch;
use tauri::Manager;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {
if let Some(w) = app.get_webview_window("main") {
let _ = w.unminimize();
let _ = w.set_focus();
}
}))
.plugin(tauri_plugin_deep_link::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_opener::init())
.setup(|app| {
let dir = app.path().app_data_dir()?;
app.manage(state::AppState::new(dir)?);
Ok(())
})
.invoke_handler(tauri::generate_handler![
commands::collection_open,
commands::collection_create,
commands::collection_get,
commands::collection_close,
commands::recent_collections,
commands::recent_forget,
commands::request_get,
commands::request_save,
commands::request_create,
commands::folder_create,
commands::node_rename,
commands::node_duplicate,
commands::node_delete,
commands::node_move,
commands::folder_get,
commands::folder_save,
commands::manifest_get,
commands::manifest_save,
commands::env_get,
commands::env_save,
commands::env_delete,
commands::env_secrets,
commands::secret_set,
commands::vars_list,
commands::runtime_list,
commands::runtime_set,
commands::globals_get,
commands::globals_save,
commands::request_send,
commands::request_cancel,
commands::request_preview,
commands::response_body,
commands::response_save,
commands::cookies_list,
commands::cookie_delete,
commands::history_list,
commands::history_get,
commands::history_delete,
commands::setting_get,
commands::setting_set,
commands::path_params,
commands::app_version,
])
.run(tauri::generate_context!())
.expect("error while running knock");
}