Repository navigation
Holochain 0.7 update: bundled desktop on the unified tauri-plugin-holochain - #206
Merged
Merged
Conversation
- hdk 0.6 -> 0.7, hdi 0.7 -> 0.8; profiles/file-storage deps to their main-0.7 branches; holochain_serialized_bytes 0.0.57 - relay_integrity: migrate validate() to the reshaped FlatOp API (CreateEntry/CreateRecord/Update/Delete/Link/AgentActivity), Action as a header+data struct, and TypedAction<...> validator signatures replacing EntryCreationAction/Update/Delete/CreateLink/DeleteLink - relay coordinator: match on ActionData instead of the removed Action enum variants; GetOptions is no longer constructible via struct literal (use the get_options() helper) - workdir/happ.yaml: drop the dna 'version' field (removed in 0.7) - rust 1.95.0 via rust-toolchain.toml (holochain 0.7 needs str::floor_char_boundary; matches android-service-runtime); release workflows bumped from 1.89 to match - flake: holonix main-0.7 Verified: all six zome wasms build for wasm32-unknown-unknown; hc app pack workdir --recursive produces relay.happ with hc 0.7.0.
…untime (direct Tauri IPC) Replace the darksoil p2p-shipyard plugin with the in-process tauri-plugin-holochain from holochain/android-service-runtime (pinned rev on main-0.7): - builder/holochain_bundled.rs rewritten against the new plugin API: init() + EVENT_READY/EVENT_SETUP_FAILED, main_window_builder with WindowOptions (direct Tauri IPC by default - no loopback websocket), runtime().setup_app/is_app_installed. NetworkConfig is holochain 0.7's native config: bootstrap + iroh relay only (0.7 dropped the sbd signal server and WebRTC transport, so SIGNAL_URL/ICE_URLS are gone). - new happ_update module: in-place coordinator-zome updates for release upgrades (the asr runtime has no update path). Ports the darksoil diff/update algorithm against the admin websocket on runtime().admin_port(), gated by a persisted bundle hash under the data dir. - drop direct holochain / lair_keystore / tauri-runtime deps (the plugin brings the conductor; vec_to_locked is re-exported); holochain_types/conductor_api/client/mr_bundle at 0.7-line versions. - NOTE: the holochain_service feature still points at the 0.6.1-based volla-cloud-services client and is expected to be broken until that fork updates to 0.7 (tracked separately). Verified: cargo check --features holochain_bundled clean.
- @holochain/client 0.20.4-rc.0 -> 0.21.0: AppWebsocket.connect() now
auto-detects the __HC_TAURI_HOLOCHAIN__ env injected by the unified
plugin and routes the App API over Tauri IPC (no loopback websocket);
the Android service path still falls back to __HC_LAUNCHER_ENV__.
- @holochain-open-dev/{elements,file-storage,utils} to 0.700.0 (their
holochain 0.7 line) so a single client version is bundled.
- Adapt to the client's restructured Action type (header + data): drop
the per-variant SignedActionHashed<...> generics, author/timestamp via
.header.
- dumpNetworkStats now returns ApiTransportStats: unwrap
.transport_stats in NetworkStatsStore.
- NetworkStatusPanel: type the optional diagnostic peer-meta fields
(dht_op_count/storage_arc/is_tombstone) locally - the client typings
don't declare them.
svelte-check: 46 -> 14 errors; the remaining 14 are pre-existing
strictness issues (catch-unknown, gesture event types, an app store
type mismatch) unrelated to the holochain deps.
…lease 2.0.0: holochain 0.7 cannot open 0.6 databases and 0.7 nodes cannot gossip with 0.6 nodes, so the major bump gives the conductor a fresh versioned data dir (holochain_dir joins the app major version). Data migration from 1.x is an explicitly separate follow-up. npm test now runs the zome build + happ pack only; the tryorama integration tests move to npm run test:tryorama until a holochain-0.7-compatible tryorama ships (0.19.x targets 0.6 - verified: all 10 tests time out against 0.7 conductors).
The unified plugin routes the App API through the app_request / sign_zome_call Tauri commands, which the window can only invoke when the capability grants the plugin's permissions (the old darksoil plugin's commands were not ACL'd in this capability file). Without it the UI fails with 'holochain.app_request not allowed'.
The @holochain/tryorama line stops at 0.19.2 (holochain 0.6); the 0.7-compatible continuation is published as @holochain-open-dev/tryorama 0.20.0 (client ^0.21.0). Restore 'npm test' to run the suite. Also run vitest files sequentially (fileParallelism: false): each file boots multiple real conductors, and running the three files concurrently starves them into flaky timeouts (1-2 random failures per run; all pass solo). Sequential: all 10 tests pass in ~4 minutes.
Merging develop brought the 1.0.3 migration export into the 0.7 line. On 2.0.0 it is destructive: a fresh 0.7 install starts under a new agent with no conversations, the on-disk export belongs to a different agent and is therefore ignored by the regression guards, and the empty snapshot replaces the user's 1.0.3 export at the fixed path before any import could read it. 2.0.0 now only reads the export. Removed the export scheduler from the layout, the export module, the write/pending-enable commands and the unused getRawMembraneProof client wrapper. read_migration_export stays, resolving the same paths 1.0.3 wrote to. The coordinator's get_raw_membrane_proof and its tests stay: they are DNA-hash neutral and the next DNA-breaking migration will need them. Also points membrane-proof.test.ts at @holochain-open-dev/tryorama, the package the 0.7 test setup installs; it failed to load before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Parts 1+2 of the migration plan: the whole stack moves to holochain 0.7.0, and the bundled desktop build switches from darksoil's p2p-shipyard plugin to the in-process tauri-plugin-holochain from holochain/android-service-runtime (pinned rev on
main-0.7), with the UI on @holochain/client 0.21.0 routing the App API over direct Tauri IPC (no loopback websocket).Stacked on #205 (base =
chore/de-risk-darksoil-dep; retarget todevelopafter #205 merges).Per the agreed scoping: only the bundled build needs to work here. The
holochain_service(Android system-runtime) build is known-broken until volla-cloud-services updates to 0.7 (separate second step), and 1.x data does not carry over — data migration (perhaps export/import) is follow-up implementation work.Changes
main-0.7lines (file-storage pinned atae535bd, yesterday's 0.700.0 release commit).relay_integrity'svalidate()rewritten for the reshapedFlatOp/TypedActionAPI; the coordinator migrated off the removedActionenum (now header+data). happ manifest: dnaversionfield removed (gone in 0.7).holochain_bundlednow uses the unified plugin —init()+EVENT_READY,main_window_builderwith direct-IPC wiring,runtime().setup_app(). Networking is iroh-only in 0.7 (bootstrap + iroh relay; the sbd signal server and WebRTC/ICE config no longer exist). Newhapp_updatemodule ports darksoil's coordinator-zome update algorithm (admin websocket onruntime().admin_port(), gated by a persisted bundle hash) so future 2.x releases can upgrade installed happs in place.capabilities/main.jsonnow grantsholochain:default— the plugin's commands are ACL'd, and without it the UI fails with 'app_request not allowed' (the error from the first manual run).Actiontype, theApiTransportStatswrapper, and locally-typed optional peer-meta diagnostics.@holochain/tryoramastops at 0.19.2/0.6). vitest now runs test files sequentially: each file boots multiple conductors and concurrent files starve each other into flaky timeouts.main-0.7, CI rust pins updated to match.Verified
hc app packsucceeds with hc 0.7.0.cargo check --features holochain_bundledclean;happ_updateunit test passes.npm run start:desktop): 0.7 conductor boots with the volla network config, happ installs (relay cell created, apps enabled), window opens over direct Tauri IPC, no permission or runtime errors.Open items (tracked in the plan doc)
happ_updateasRuntime::update_app_if_necessary.