Repository navigation
Only dispatch Rotur methods the built-in blocks use in the fallback host - #23
Merged
Merged
Conversation
The fallback host walked any dotted path on its Rotur client, so code that reached it through the runtime could call _http.getToken. It now dispatches only methods registered by the block specs, accepts only scopes those blocks use, and confirms spending methods with text built from the arguments.
…d projects my credits, send credits, seconds until daily claim and my transaction history are hidden from the palette. Projects that already use them still load and run: the blocks answer 0 or an empty string without reaching Rotur or asking for credits:view or credits:transfer. MistWarp no longer reads or sends anyone's credits.
create a gift, buy key, tip group and buy group product move credits too, so they're hidden no-ops like the others: projects can't move credits through MistWarp. The sign-in tests read the username instead of the balance.
Buying from Rotur's shops spends credits, which projects no longer do through MistWarp. Like the other money blocks, they stay hidden so old projects load, and do nothing.
Remove the Rotur extension's money blocks, keeping them hidden for old projects
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.
createSdkHostinsrc/extensions/rotur/core.jspreviously walked any dotted method path on its Rotur client. A caller reaching the host throughvm.runtime._roturHostResolvedcould read the token through_http.getTokenor invoke sensitive SDK actions without confirmation.The fallback host now dispatches only methods registered by the built-in block specs and accepts only scopes those blocks use. Sensitive methods always require confirmation, even when the caller passes
sensitive: false.The branch incorporates the latest
develop, including the removal of money blocks in #24. Removed blocks remain hidden and inert, and their SDK methods and credit permissions are rejected by the fallback host. The confirmation regression test uses key cancellation, which remains supported.Validation: full unit and integration test suite, VM production build, and ESLint over tracked JavaScript files. ESLint uses
--no-ignorebecause the worktree's.claudeancestor is otherwise ignored; the repository's normal excluded directories remain excluded from the file list.The conflict resolution has no visible UI change, so screenshots are not applicable.
GUI production deployment: Live editor (Cloudflare deployment). The deployment succeeded and production
version.jsonconfirms VM commite3ade1815b0ea504255ed800962f60d94897bf77.