feat: adiciona 36 novos comandos (Terminal, Node.js, PowerShell, Python) - #9
Merged
jeanavila997-ux merged 1 commit intoAug 18, 2026
Merged
Conversation
Expande o catalogo de whitelist com operacoes de diagnostico e gestao de ambiente para 4 areas sem cobertura ou com cobertura minima: Windows Terminal (9), Node.js (7 fixos + 2 templates de instalar/desinstalar pacote), PowerShell (8) e Python (7 fixos + 3 templates de instalar/desinstalar pacote e criar venv). Cada operacao entra em v10/allowed-operations.json (fonte de verdade validada pelo launcher) e em mcp-server/index.js (mestreTools, com id identico ao catalogo). Corrige tambem um bug preexistente em npm_install_no_projeto: o comando tinha -LiteralPath vazio (faltava $env:MESTRE_PROJETO_PATH). Adiciona teste de regressao permanente que garante todo id de mestreTools existir no catalogo -- a mesma classe de bug corrigida na sessao anterior (19 ids desalinhados bloqueando comandos legitimos).
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.
O que muda
Expande a whitelist com operacoes novas em 4 areas antes com pouca ou nenhuma cobertura:
Toda entrada nova existe em
v10/allowed-operations.json(fonte de verdade do launcher) E emmcp-server/index.js(mestreTools, id identico) -- disponivel nos botoes da UI e como tool MCP.Bonus
npm_install_no_projeto:-LiteralPathvazio (faltava$env:MESTRE_PROJETO_PATH)whitelist-enforcement.test.js): garante que todoiddemestreToolsexista no catalogo -- a mesma classe de bug corrigida no PR fix(mcp): corrige IDs das ferramentas MCP para bater com a whitelist #8 (19 ids desalinhados)Teste
npm test: 75 testes, 74 pass, 0 fail (+1 teste novo)node --check mcp-server/index.jsOK/classifycontra o launcher elevado -- confirmado que o processo precisa reiniciar para recarregar o catalogo do disco (comportamento esperado, nao e regressao)