Files
openconcho/packages/desktop/src-tauri/Cargo.toml

22 lines
509 B
TOML
Raw Normal View History

[package]
name = "openconcho"
chore(release): 0.16.0 [skip ci] # [0.16.0](https://github.com/offendingcommit/openconcho/compare/v0.15.0...v0.16.0) (2026-06-10) ### Bug Fixes * **ci:** replace userEvent.selectOptions with fireEvent.change; bump setup-node to v6 ([1c28cae](https://github.com/offendingcommit/openconcho/commit/1c28cae3f2aed84e9c2deff7c7fcb622bb86df2e)) * **dashboard:** guard setMetricsById against same-value calls to end loop ([3b88a41](https://github.com/offendingcommit/openconcho/commit/3b88a41afda842eb3d493b7d77a825595164cb94)) * **dashboard:** remove lastSeen from metrics useMemo deps to break render loop ([f79cdaf](https://github.com/offendingcommit/openconcho/commit/f79cdafba7aa16004c75d2684d7dedd6279f3265)) * **dashboard:** use primitive deps in onMetrics effect to break render loop ([9cc8637](https://github.com/offendingcommit/openconcho/commit/9cc8637dc7ebf62b2002a0a3d8e4b3781660e770)) * **test:** remove unused within import from fleet.test.tsx ([36fb6ee](https://github.com/offendingcommit/openconcho/commit/36fb6ee51923c8eb3261d851a1754f7f1c6ec0b9)) * **web:** break metricsEqual lastSeen dep-loop; add staleTime to test ([173f096](https://github.com/offendingcommit/openconcho/commit/173f096e33157a1744ffa2ef9d09a170216ac036)) * **web:** reset serverFilter when the selected instance is removed ([699ec38](https://github.com/offendingcommit/openconcho/commit/699ec3848016aad31db33eecc0079645f24f83b6)) * **web:** stop Sidebar re-render loop from cache-event subscriber ([7e529c8](https://github.com/offendingcommit/openconcho/commit/7e529c8c44b358d3f437f1f1888c0e7fa5664d52)) ### Features * **web:** merge Fleet into a server-filterable Dashboard ([e66f927](https://github.com/offendingcommit/openconcho/commit/e66f927f89cbfda6e900080369599fe0d4eeb5bf)), closes [#54](https://github.com/offendingcommit/openconcho/issues/54) * **web:** redirect /fleet to Dashboard; update fleet tests ([da126b2](https://github.com/offendingcommit/openconcho/commit/da126b2e74f89cdeca323e00232a4f49764fb992))
2026-06-10 12:20:29 +00:00
version = "0.16.0"
edition = "2021"
[lib]
name = "openconcho_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-http = "2"
tauri-plugin-shell = "2"
tauri-plugin-deep-link = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
feat(desktop): auto-discover Honcho instances on localhost (#1) * feat(desktop): auto-discover Honcho instances on localhost First-launch and on-demand discovery of running Honcho instances on 127.0.0.1:8000-8100. Desktop-only — the browser can't port-scan due to CORS, so the scan runs in the Tauri Rust shell. - New Rust command `discover_honcho_instances(start_port?, end_port?)` in src-tauri/src/discover.rs: parallel TCP probe of each port with 150ms connect timeout + 250ms total request budget, looking for a /health endpoint returning `{"status":"ok"}`. - New TS helper `discoverHonchoInstances()` in src/lib/discovery.ts: detects Tauri runtime; web build degrades to an empty result. - `suggestNameForInstance()` fetches the first workspace and derives a friendly name from its id ("neo-personal" -> "Neo"). Used to seed the Name field for each discovered instance. - `DiscoveredInstances` component: list of found instances with editable suggested names + per-row checkbox + "Add N instances" button. Rows are pre-checked by default and filter out already- configured baseUrls. - Wired into `InstancesManager`: - First launch (no instances): renders above the connection-type chooser with autoRun=true. User sees results immediately. - With instances: adds a "Discover instances" button to the list view that opens the discovery flow on demand. - Both paths gate on `isTauri()`; the web build keeps its existing behaviour unchanged. Adds tokio (with net + io-util + time + rt + macros) and futures to the Tauri shell to get async TCP + join_all. Tests: - deriveNameFromWorkspaceId handles hyphenated, multi-segment, and no-hyphen ids * test(desktop): add probe tests including live Hermes stack integration - rejects_inverted_port_range - ignores_ports_with_no_listener - finds_live_hermes_stacks (#[ignore]d; opt-in with --ignored) The ignored test exercises discover_honcho_instances against ports 8000-8010, expecting exactly [8001, 8002, 8003, 8004, 8005]. Verified locally — the probe finds all 5 stacks in <10ms. --------- Co-authored-by: Agents <agents@Jarviss-Mac-mini.local>
2026-05-24 17:01:14 +01:00
tokio = { version = "1", features = ["net", "io-util", "time", "rt", "macros"] }
futures = "0.3"