primocode 7.4.0 → 7.4.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/bin/primocode.js +11 -0
- package/package.json +1 -1
package/bin/primocode.js
CHANGED
|
@@ -392,6 +392,17 @@ async function main() {
|
|
|
392
392
|
|
|
393
393
|
const args = process.argv.slice(2);
|
|
394
394
|
|
|
395
|
+
// Flags padrão de CLI — funcionam em qualquer máquina, úteis em scripts/CI.
|
|
396
|
+
if (args[0] === '--version' || args[0] === '-v' || args[0] === '-V') {
|
|
397
|
+
console.log(`PrimoCode v${VERSION}`);
|
|
398
|
+
process.exit(0);
|
|
399
|
+
}
|
|
400
|
+
if (args[0] === '--help' || args[0] === '-h') {
|
|
401
|
+
console.log(welcomeBox(VERSION, null, { mascot: state.config.mascot, userName: state.config.userName }));
|
|
402
|
+
console.log(HELP);
|
|
403
|
+
process.exit(0);
|
|
404
|
+
}
|
|
405
|
+
|
|
395
406
|
// Modo one-shot: primocode "crie um jogo de carro"
|
|
396
407
|
if (args.length && !args[0].startsWith('-')) {
|
|
397
408
|
const fileFlag = args.indexOf('-f');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primocode",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "PrimoCode — agente de engenharia com IA e cursor próprio. Modo primocode cria arquivos, controla o desktop e navegador. Modo chat é conversa pura.",
|
|
5
5
|
"main": "bin/primocode.js",
|
|
6
6
|
"bin": {
|