Repository navigation
feat(ui): run Nondominium as a Moss tool in weave dev mode - #180
Merged
Merged
Conversation
This was referenced Nov 4, 2026
Soushi888
force-pushed
the
feat/moss-tool-scaffold
branch
from
November 4, 2026 01:39
287e834 to
376f8d1
Compare
Soushi888
changed the base branch from
chore/holochain-0.7
to
docs/161-dna-hashes
November 4, 2026 01:39
Soushi888
marked this pull request as ready for review
November 4, 2026 02:26
Soushi888
force-pushed
the
feat/moss-tool-scaffold
branch
from
November 4, 2026 02:45
376f8d1 to
449c399
Compare
Soushi888
marked this pull request as draft
November 4, 2026 03:51
Adds weave/ (dev config with two agents and one group, kept outside the root workspaces so CI never installs Electron), bun run tool-dev, @theweave/api in ui/, and ui/src/lib/moss/: host detection, the Moss connection mode and an empty AppletServices. The standalone connection modes are unchanged. Documents the Moss integration in documentation/specifications/moss-integration.md.
Soushi888
force-pushed
the
feat/moss-tool-scaffold
branch
from
November 4, 2026 03:52
449c399 to
d499831
Compare
Soushi888
marked this pull request as ready for review
November 4, 2026 04:15
Collaborator
Author
Review APPROVE at head d499831, merging under Soushi's explicit
|
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
Nondominium now starts as a Moss tool in
weavedev mode.bun run tool-devruns the UI on:8888and two Moss windows, Alice and Bob, in one group, with the tool served from localhost. The UI detects Moss, connects through the applet client Moss hands it, and shows its own pages inside Moss. The standalone connection modes are untouched. Group context (#164) and NDOs as assets (#165) come next in the stack.Closes #163
Stacked on #178 (docs: publish the Holochain 0.7.1 DNA hashes), itself stacked on #130 (
chore/holochain-0.7). Review only this layer's diff; everything below belongs to the parent PR.GitHub already held #130 and #178 as a native stack (#179) and a stack can only be extended, so this layer sits on #178: rebased onto
docs/161-dna-hashes(no conflicts) and retargeted fromchore/holochain-0.7. It touchesCHANGELOG.mdandIMPLEMENTATION_STATUS.mdlike #178 does, in different sections.Intent
The UI had no
@theweave/*dependency and no applet entry point, so Moss could not load Nondominium as a tool. This is the base the rest of the Moss pilot builds on. Decisions already taken (2026-11-03): the pilot runs the weave CLI in dev mode, Moss only for v0.1.0, standalone keeps compiling and running unchanged.Changes
weave/: a separate package (not in the root workspaces, so CI and the standalone build never install Electron) withweave.dev.config.ts(two agents, one groupNondominium Pilot, tool fromlocalhost:8888,.happfromworkdir/),@theweave/clipinned to0.16.0-rc.5, and thetsconfigandtslibthe CLI needs to load a TypeScript config.moss:install,tool-dev(Vite plus both agents),tool-dev-1.ui/:@theweave/api0.7.0-rc.3, andsrc/lib/moss/withhost.ts(pure host detection),connect.ts(initializeHotReloadwhen needed, thenWeaveClient.connect, injectable for tests) andapplet-services.ts(an emptyAppletServices; feat(moss): NDOs as Moss assets #165 fills it).utils/hc-connect.ts: amossconnection mode, checked first.holochain.servicetakes anAppClientinstead of anAppWebsocketand exposes themossconnection.ui/static/icon.png(128 px, Moss limits group icons to about 200 KB; the logo is 308 KB),ui/static/weave.config.json, andworkdir/moss.yamlpointed at the icon that exists.documentation/specifications/moss-integration.md;ui_architecture.md(§3 and §15.4),lobby-architecture.md§9 (marked partly superseded),IMPLEMENTATION_STATUS.md,DOCUMENTATION_INDEX.md,SUMMARY.md,CHANGELOG.md.Decisions
weave.dev.config.tsat the repo root with@theweave/cliin the root devDependenciesbun install, CI included. A separateweave/package installs on demand withbun run moss:install.isWeaveContext()from@theweave/apiinitializeHotReloadfetches. Detection has to rely on the page: theapplet://protocol, an injected__WEAVE_API__, or a dev-build iframe carrying the iframe-kind hash Moss appends.workdir/happ.yamlHow to test
Recorded run (2026-11-03, two agents, nested X server): the repo's own config created the group, installed the tool in both agents, and the tool iframe logged
Connected to Holochain (moss) at moss://applet. The tool rendered inside Moss with the standalone Lobby profile form, which #164 replaces with the Moss profile.Documentation
Updated in this PR:
documentation/specifications/moss-integration.md(new),ui_architecture.md,lobby-architecture.md§9,IMPLEMENTATION_STATUS.md,DOCUMENTATION_INDEX.md,SUMMARY.md,CHANGELOG.md.Related
Pre-open review
Closes #163, stack position stated. Pass.docs/161-dna-hashes(2354947), no conflicts. Pass.AppClientwidening,cachedAppInfoguard, host detection,weave/config typechecked withtsc). Standalone path is reached only when the host is not Moss; the e2e suite exercises it. No blockers./+page.svelte > should render lobby heading(effect_orphanin melt), which fails identically onchore/holochain-0.7(81 passed, 1 failed there).bun run --filter ui check: 0 errors, 0 warnings.bun run e2e: 23 passed.weavepops one Electron window per agent; the recorded run used a nested X server.