repomind 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40772,7 +40772,7 @@ async function runGitCommit2(message) {
|
|
|
40772
40772
|
}
|
|
40773
40773
|
async function splitCommand() {
|
|
40774
40774
|
const fileConfig = await readRepoConfig();
|
|
40775
|
-
const useStaged = process.argv.includes("--
|
|
40775
|
+
const useStaged = !process.argv.includes("--all");
|
|
40776
40776
|
let exitCode = 0;
|
|
40777
40777
|
const { waitUntilExit } = render_default(
|
|
40778
40778
|
import_react38.default.createElement(SplitApp, {
|
|
@@ -40875,6 +40875,7 @@ if (args.includes("--version") || args.includes("-V")) {
|
|
|
40875
40875
|
}
|
|
40876
40876
|
var verbose = args.includes("--verbose") || args.includes("-v") || !!process.env.REPOMIND_DEBUG;
|
|
40877
40877
|
var command = args.find((a) => !a.startsWith("-"));
|
|
40878
|
+
var wantsHelp = args.includes("--help") || args.includes("-h");
|
|
40878
40879
|
function run(cmd) {
|
|
40879
40880
|
cmd().catch((err) => {
|
|
40880
40881
|
console.error("\u2717 Erro inesperado:", err.message);
|
|
@@ -40882,6 +40883,17 @@ function run(cmd) {
|
|
|
40882
40883
|
process.exit(1);
|
|
40883
40884
|
});
|
|
40884
40885
|
}
|
|
40886
|
+
var COMMAND_HELP = {
|
|
40887
|
+
commit: "repomind commit\n\n Gera uma mensagem de commit inteligente a partir do git diff --staged.\n Requer arquivos staged (git add).\n\n Flags:\n --verbose, -v Exibir detalhes de erro\n --help, -h Exibir esta ajuda",
|
|
40888
|
+
split: "repomind split [--all]\n\n Analisa altera\xE7\xF5es staged e divide em commits at\xF4micos.\n Por padr\xE3o analisa apenas altera\xE7\xF5es staged (git add).\n\n Flags:\n --all Incluir altera\xE7\xF5es unstaged + untracked\n --verbose, -v Exibir detalhes de erro\n --help, -h Exibir esta ajuda",
|
|
40889
|
+
login: "repomind login\n\n Autenticar com sua conta RepoMind via browser.\n Abre o navegador para completar o fluxo OAuth.",
|
|
40890
|
+
logout: "repomind logout\n\n Encerrar sess\xE3o atual e remover token local.",
|
|
40891
|
+
whoami: "repomind whoami\n\n Exibir o usu\xE1rio autenticado atualmente."
|
|
40892
|
+
};
|
|
40893
|
+
if (wantsHelp && command && COMMAND_HELP[command]) {
|
|
40894
|
+
console.log(COMMAND_HELP[command]);
|
|
40895
|
+
process.exit(0);
|
|
40896
|
+
}
|
|
40885
40897
|
switch (command) {
|
|
40886
40898
|
case "login":
|
|
40887
40899
|
run(loginCommand);
|