mirror of
https://github.com/morluto/rea.git
synced 2026-11-18 20:53:00 +00:00
fix(setup)!: bind managed registrations to selected installation
Use one command owner for setup, client writers, Gemini policy and CLI defaults. Migrate recognized runner registrations with backups and remove runner prewarm. Retain unknown identities and exercise real offline npm, CLI and MCP workflows. Fixes #7757 BREAKING CHANGE: managed MCP registrations use the selected absolute runtime and REA entry script, including package-runner cache paths. Keep that installation available or restore it before setup; unknown registrations require confirmed manual repair. Setup no longer returns prewarm or emits its progress events. Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
This commit is contained in:
1 parent
18a8e71c9f
commit
c77735fa83
56 files changed
+768
-1346
No files matched your search
@@ -24,7 +24,6 @@ import {
|
||||
inspectClientRegistrationCommand,
|
||||
type ClientRegistrationCommandFacts,
|
||||
type ClientRegistrationCommandIdentity,
|
||||
packageRunnerRegistrationCommand,
|
||||
} from "./ClientRegistrationIdentity.js";
|
||||
import {
|
||||
clientEvidencePaths,
|
||||
@@ -470,17 +469,7 @@ const registrationAligned = ({
|
||||
(registration.serverName !== "rea" || registration.transport !== "stdio")
|
||||
)
|
||||
return "stale";
|
||||
if (
|
||||
(["npx", "bunx"] as const).some((runner) => {
|
||||
const expected = packageRunnerRegistrationCommand(runner, platform);
|
||||
return (
|
||||
command.length === expected.length &&
|
||||
command.every((argument, index) => argument === expected[index])
|
||||
);
|
||||
})
|
||||
)
|
||||
return "aligned";
|
||||
// Other owned package references remain stale until pinned to this version.
|
||||
// Legacy package runners remain owned, but setup migrates them to the selected installation.
|
||||
if (commandFacts.package !== undefined) return "stale";
|
||||
// Owning the script does not establish how its shebang interpreter resolves
|
||||
// in the client. Setup migrates these launchers without losing ownership.
|
||||
|
||||
Reference in new issue
Block a user