refactor: unify plugin RPC namespaces to devframes:plugin:<slug>:<fn>#105
Merged
Conversation
Every plugin used a different convention for its RPC function names — `devframes-plugin-terminals:spawn`, `git:status`, `devframe-a11y-inspector:get-config`, etc. Unify all six plugins (a11y, code-server, git, inspect, messages, terminals) onto one namespace: `devframes:plugin:<slug>:<fn-name>`, matching each plugin's `@devframes/plugin-<slug>` package name. The same identifier previously did double duty as both the RPC namespace and the devframe mount id (which drives the hosted mount path `/__<id>/`). Split these: the mount id becomes `devframes_plugin_<slug>` (underscore, URL-path-safe) while the RPC namespace, shared-state keys, and streaming-channel names use the colon form. Hub-owned identifiers the plugins merely mirror (`devframe:docks:active`, `devframe:terminals`, `devframe:messages:updated`) are left untouched since they belong to `@devframes/hub`, not the plugins. Updates the AGENTS.md RPC namespacing convention to match, plus every affected doc, README, test, and RPC API snapshot. Co-authored-by: opencode <noreply@opencode.ai>
✅ Deploy Preview for devfra ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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
Every plugin used a different convention for its RPC function names:
devframes-plugin-terminals:spawndevframes:plugin:terminals:spawndevframes-plugin-code-server:statusdevframes:plugin:code-server:statusdevframes-plugin-inspect:list-functionsdevframes:plugin:inspect:list-functionsdevframes-plugin-messages:listdevframes:plugin:messages:listgit:statusdevframes:plugin:git:statusdevframe-a11y-inspector:get-configdevframes:plugin:a11y:get-configAll six now share one namespace:
devframes:plugin:<slug>:<fn-name>, matching each plugin's@devframes/plugin-<slug>package name.What else moved
The same identifier previously did double duty as both the RPC namespace and the devframe mount id (which drives the hosted mount path
/__<id>/). These are split now:id:indefineDevframe, e.g. dock ids,basePath, CLIcommandfor a11y/inspect/messages) →devframes_plugin_<slug>(underscore, URL-path-safe).devframes:plugin:<slug>:...(colon).Hub-owned identifiers a plugin merely mirrors (
devframe:docks:active,devframe:terminals,devframe:messages:updated) are untouched — they belong to@devframes/hub, not the plugin.Also updated
AGENTS.md's RPC namespacing convention now documents the new format.docs/plugins/*,docs/guide/hub.md,docs/errors/DF8107.md), test, andtsnapiAPI snapshot.inspect'sfunction-name.test.ts, which asserted a specific split of the old (single-colon) inspect RPC name — rewritten with a synthetic single-colon example plus the real (now 3-colon) inspect name for the deep-namespace case.Out of scope
plugins/inspectandplugins/messagesalready had a pre-existing mismatch between their published npmbincommand (devframe-inspect/devframe-messages) and their devframe id (devframes-plugin-inspect/devframes-plugin-messagesbefore this PR). That mismatch predates this change and isn't touched here.plans/*.mddocs keep their originalgit:*references as a paper trail of already-implemented work.Verification
pnpm lint && pnpm test && pnpm typecheck && pnpm buildall pass (672/672 tests).Created with the help of an agent (opencode).