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

22 lines
509 B
TOML
Raw Normal View History

[package]
name = "openconcho"
chore(release): 0.15.0 [skip ci] # [0.15.0](https://github.com/offendingcommit/openconcho/compare/v0.14.0...v0.15.0) (2026-06-03) ### Bug Fixes * **helm:** guard tmpfs blocks when empty, cap volume names at 63 chars ([d5a65d7](https://github.com/offendingcommit/openconcho/commit/d5a65d73b59378f5ce39bf76e0572da478cecbda)) * **helm:** pdb mutual exclusion, ingress null rules guard, hpa nil utilization guard ([b4939bd](https://github.com/offendingcommit/openconcho/commit/b4939bd57f2dba5ebca9efcd42901457512e70e4)) * **helm:** pin busybox:1.36, add -T 10 timeout, use --spider, add activeDeadlineSeconds ([8fac5d0](https://github.com/offendingcommit/openconcho/commit/8fac5d060f45b68141917efad4afe499ca2fda56)) * **helm:** use http://json-schema.org/draft-07/schema# for Helm compatibility ([8d41455](https://github.com/offendingcommit/openconcho/commit/8d41455e39db51617d7476e5cc48577eb7fff158)) ### Features * **helm:** add _helpers.tpl with name, label, and imageTag partials ([0268275](https://github.com/offendingcommit/openconcho/commit/02682750ab766851570eae58eb0b92761b98724f)) * **helm:** add Deployment template with read-only FS, tmpfs, probes ([514e1d4](https://github.com/offendingcommit/openconcho/commit/514e1d46c0248bfae5da1f2ceb12ca8799a81468)) * **helm:** add NOTES.txt with access instructions and NetworkPolicy/Ingress warning ([ce211df](https://github.com/offendingcommit/openconcho/commit/ce211df48cc59dfe933eb7a1b1415591b0e9f7fa)) * **helm:** add optional HPA, PDB, and NetworkPolicy templates ([b0b648b](https://github.com/offendingcommit/openconcho/commit/b0b648bdcf64732c0a713bd8e45077c5f1b39ba6)) * **helm:** add optional Ingress template ([9aa106c](https://github.com/offendingcommit/openconcho/commit/9aa106cede7d5719ee2cbc48c1c677491deea568)) * **helm:** add Service and ServiceAccount templates ([ee916ea](https://github.com/offendingcommit/openconcho/commit/ee916eabc485f37cdc56ffbdd8d9004f33f3a7b7)) * **helm:** add test-healthz and test-spa-root helm test jobs ([ee4630e](https://github.com/offendingcommit/openconcho/commit/ee4630e79ca588ee0f9cb167ac0f58ae4b8223cc)) * **helm:** chart scaffold — Chart.yaml, values, schema ([4112270](https://github.com/offendingcommit/openconcho/commit/411227046a3dee125a555a0d1a426afed0e74ec3))
2026-06-03 21:37:08 +00:00
version = "0.15.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"