Repository navigation
Conversation
The address names the daemon first, #/@<name>/<view>, and Local where it names none. api.js asks everything of that daemon under /d/<name>/api/, save /api/daemons and /api/notifications, keeps @<name> in every link through hash(), and on a switch clears what polls read, closes the held streams and fires hmz:daemon, on which the view and the sidebar's lists are drawn again. The server answers /d/local/api/ as /api/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Landed together in #385. |
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.
Unit 6 of the multi-daemon plan (C6).
#/@<name>/<view>…. An address without@is Local, so existing addresses keep working.api.jsexportsdaemon(),scoped(path),hash(path)(a page address that keeps the@name),onDaemon(fn)andtoDaemon(name, path).get,post,sendandpollscope every call to/d/<name>/api/…, Local included, so Local is/d/local/api/…./api/daemons*and/api/notifications*stay unscoped.hmz:daemongo(),stays()and every#/link orlocation.hashset in a static module go throughhash(). Export links and the held stream go throughscoped().site.pyanswers/d/local/api/…as/api/…. Proxying other daemons is unit 4.docs/reference/web.mdanddocs/user/web.md.Tests: new
tests/integration/test_web_scoping.py(Chromium + WebKit) covers:#/@local/…views load/d/local/api/@local@localstays there, and its stream is scoped@otherfireshmz:daemon, and its requests go to/d/other/api/All
test_web_*pass (139), and unit tests pass (5690). Livehmz webcheck with Playwright: all requests went to/d/local/api/, with no console errors.🤖 Generated with Claude Code