Repository navigation
Version Packages - #412
Merged
Merged
Version Packages#412
Conversation
dskvr
added a commit
that referenced
this pull request
Nov 9, 2026
…rewall approvals Resolves conflicts from main (#376, #409, #411, #412): - runtime.ts: keep main's createServiceRuntimeContext split and custom-domain push routing (pushCapabilities), and keep this branch's per-service lifetimes and authorizeOperation binding plus the permissions runtime. - types.ts / service-types.ts: ServiceHandler lives in service-types.ts on this branch; carry main's pushCapabilities field over to it. - relay-handler.ts: a planning relay service owns publish fan-out (main's ring-buffer skip); legacy relay services stay denied, so buffer fan-out still runs whenever the runtime coordinates the publish via the pool. - STATE.md: keep both quick-task rows. Port the new @kehto/mocks relay mock and main's relay delivery test to the planned-execution relay contract (local-only plans, abort-aware execute), since this branch denies legacy relay services (FW-RELAY-SERVICE-LEGACY-001). 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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@kehto/mocks@0.1.0
Minor Changes
0379d16: Introduce
@kehto/mocks: deterministic, in-memory mock services for everynapplet NAP domain — merged (
identity,inc,intent,shell,theme) andevery open
napplet/napsdraft (relay, storage, keys, media, notify, config,connect, class, value, cvm, outbox, upload, pow, link, webrtc, serial, ble,
system, common, lists, count, blossom, torrent, hashtree, dm, resource, fs,
capture, catalog, display, worker, mesh, motion, location, navigation, gamepad,
llm, soulseek, nzb, git).
Each mock is a plain
ServiceHandlerbuilt withdefineMockService, exposingservice.mockcontrols (state(),reset(),sent,routes) anddomain-specific controls for pushes and progress.
createMockNapServices()instantiates the whole registry for
ShellAdapter.services;MOCK_NAP_REGISTRYrecords the exactnapplet/napsref each mock was writtenagainst, and
scripts/audit-naps.mjsreports upstream drift. Transfer-orientedmocks (torrent, nzb, soulseek, resource, upload, fs, blossom, hashtree, git) use
a Linux distribution image catalog as their subject.
Mocks deliver through the real runtime: extension mocks declare their
out-of-request pushes as
pushCapabilities(defineMockService({ pushes })),pushToWindowreturns the runtime's delivery verdict and records only deliveredenvelopes, and the relay mock owns fan-out through each subscription's own
runtime
send(publisher echo, relay scope) viapushThrough.Patch Changes
and JSR imports, and use those releases for development and tests.
@kehto/runtime@0.28.1
Patch Changes
0379d16: Add
ServiceHandler.pushCapabilities: a registered service outside the built-indispatcher can declare the exact shell -> napplet push types it emits (each
mapped to the recipient's ACL capability or explicit
null), andServiceRuntimeContext.sendToEligibleNappletdelivers them under the samegates as inbound extension routing (registered handler, live unblocked source,
explicit
isDomainAllowedgrant, declared capability). Built-in domains keeptheir canonical recipient mapping; undeclared types are still refused.
When a registered
relayservice accepts arelay.publish, that service nowowns storage and fan-out of the event. The runtime ring buffer no longer
re-delivers it, which previously skipped the publisher's own subscriptions,
ignored per-subscription relay scope, and sent every other window a second
legacy
['EVENT', …]copy. Publishes coordinated by the runtime through theadapter relay pool keep the buffer fan-out.