diff --git a/network-poc/deploy-remote.sh b/network-poc/deploy-remote.sh index bc07835..71506a5 100755 --- a/network-poc/deploy-remote.sh +++ b/network-poc/deploy-remote.sh @@ -8,13 +8,12 @@ cd "$SCRIPT_DIR" SERVER="ubuntu@86.50.252.98" REMOTE_DIR="~/code/agentic-studio/network-poc" -KEY="$HOME/.ssh/id_rsa" -SSH_OPTS="-o StrictHostKeyChecking=no -i $KEY" +SSH_OPTS="-o StrictHostKeyChecking=no" -# SSH-avain -if ! ssh-add -l 2>/dev/null | grep -q id_rsa; then - echo "SSH-avain puuttuu agentista..." - ssh-add "$KEY" +# SSH-avain — yritetään yhdistää, jos ei onnistu, pyydetään avainta +if ! ssh $SSH_OPTS "$SERVER" "echo ok" >/dev/null 2>&1; then + echo "SSH-yhteys ei onnistu, lisätään avain..." + ssh-add "$HOME/.ssh/id_rsa" 2>/dev/null || ssh-add fi # Auto-commit diff --git a/network-poc/hub/Cargo.toml b/network-poc/hub/Cargo.toml index 00d6937..648dedc 100644 --- a/network-poc/hub/Cargo.toml +++ b/network-poc/hub/Cargo.toml @@ -11,7 +11,6 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } -uuid = { version = "1.7.0", features = ["v4", "serde"] } futures = "0.3" rusqlite = { version = "0.31", features = ["bundled"] } chrono = "0.4" diff --git a/network-poc/native-node/Cargo.toml b/network-poc/native-node/Cargo.toml index 1163a38..9dbd1ee 100644 --- a/network-poc/native-node/Cargo.toml +++ b/network-poc/native-node/Cargo.toml @@ -20,7 +20,6 @@ reqwest = { version = "0.12", features = ["json"] } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } dialoguer = "0.12.0" -console = "0.16.3" ratatui = "0.29.0" crossterm = { version = "0.28.1", features = ["event-stream"] } tracing-appender = "0.2.4" diff --git a/network-poc/node/Cargo.toml b/network-poc/node/Cargo.toml index dce534b..e62b24b 100644 --- a/network-poc/node/Cargo.toml +++ b/network-poc/node/Cargo.toml @@ -10,17 +10,11 @@ crate-type = ["cdylib"] wasm-bindgen = "0.2.91" js-sys = "0.3.68" web-sys = { version = "0.3.68", features = [ - "Window", - "Document", - "HtmlElement", "WebSocket", "MessageEvent", "Performance", "console", - "Request", - "RequestInit", "Response", - "Headers", "ReadableStream", "ReadableStreamDefaultReader", ] } @@ -31,8 +25,7 @@ console_error_panic_hook = "0.1.7" reqwest = { version = "0.12", default-features = false, features = ["json"] } tokenizers = { version = "0.19.1", default-features = false, features = ["unstable_wasm"] } rexie = "0.6" -log = "0.4" -candle-core = { version = "0.8" } +candle-core = "0.8" candle-nn = "0.8" candle-transformers = "0.8" getrandom = { version = "0.3", features = ["wasm_js"] }