mirror of
https://github.com/morluto/rea.git
synced 2026-11-17 04:04:25 +00:00
refactor(cli)!: own builtin refusals and retire per-command MCP
Own builtin refusal paths and Markdown schemas in REA. Reject retired per-command MCP before loading command registrars, preserve invoked identity, and apply token controls to the complete selected failure document. BREAKING CHANGE: rea <command> --mcp is removed. Start REA's MCP server with rea mcp or rea --mcp. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
1 parent
d6bcfc10ea
commit
7d502ddb0d
18 files changed
+413
-50
No files matched your search
+4
-5
@@ -30,6 +30,7 @@ import { excludeDeclaredSensitiveArguments } from "./explicitSensitiveArguments.
|
||||
import {
|
||||
CLI_CUSTOM_GLOBAL_OPTIONS,
|
||||
CLI_DESCRIPTION,
|
||||
CLI_UPDATE_REFUSAL,
|
||||
serveDiscovery,
|
||||
} from "./discovery.js";
|
||||
import { reportUnknownMcpSubcommand } from "./mcpBuiltinCommands.js";
|
||||
@@ -107,12 +108,10 @@ export const createCliShell = (options: CliShellOptions): CliInstance => {
|
||||
},
|
||||
sync: false,
|
||||
update: {
|
||||
// Incur's update:false only suppresses notices. Reject its explicit
|
||||
// installer so ambiguous flags cannot bypass REA's verified workflow.
|
||||
// Incur still supplies ordinary-command notices. Keep its installer
|
||||
// disabled while REA owns the update refusal and verified update command.
|
||||
install: () => {
|
||||
throw new Error(
|
||||
"Use 'rea update' to update the identified installation. The '--update' alias accepts only global output flags.",
|
||||
);
|
||||
throw new Error(CLI_UPDATE_REFUSAL.message);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user