bps-kit 1.0.10 → 1.0.11
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/CHANGELOG.md +6 -0
- package/bin/cli.js +13 -1
- package/bin/convert_to_vscode.js +20 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ Todas as mudanças notáveis neste projeto serão documentadas neste arqui
|
|
|
5
5
|
O formato é baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/),
|
|
6
6
|
e este projeto adere ao [Versionamento Semântico](https://semver.org/lang/pt-BR/).
|
|
7
7
|
|
|
8
|
+
## [1.0.11] - 2026-03-08
|
|
9
|
+
### Corrigido
|
|
10
|
+
- Expurgo do `node_modules/` do tracking source do sistema de repositórios do Git.
|
|
11
|
+
- Refinamentos drásticos na estrutura nativa tratada do Copilot (`--vscode` flag): Personas (Agents) baseadas em sistema consolidado foram re-desmembradas e alocadas organicamente em `.github/agents/`. Workflows foram mapeadas em `.github/prompts/*.prompt.md`.
|
|
12
|
+
- Instaladores agora emitem alertas amarelos prevenidos na interface se estiverem sobrescrevendo diretórios (`.agents/` ou `.github/`) previamente rastreados durante um setup de perfil repetido.
|
|
13
|
+
|
|
8
14
|
## [1.0.10] - 2026-03-08
|
|
9
15
|
### Corrigido
|
|
10
16
|
- Resolução do erro `MODULE_NOT_FOUND` reportado ao disparar a CLI contendo as flags combinadas de `--extra` / `--basic` e `--vscode`.
|
package/bin/cli.js
CHANGED
|
@@ -40,6 +40,14 @@ async function runInstaller() {
|
|
|
40
40
|
const spinner = ora('Montando diretórios base...').start();
|
|
41
41
|
|
|
42
42
|
try {
|
|
43
|
+
if (options.vscode && await fs.pathExists(path.join(DEST_BASE, '.github'))) {
|
|
44
|
+
spinner.warn(chalk.yellow('Aviso: Pasta .github detectada. Os artefatos do Copilot serão sobrescritos se existirem.'));
|
|
45
|
+
spinner.start('Montando diretórios base...');
|
|
46
|
+
} else if (!options.vscode && await fs.pathExists(DEST_AGENTS)) {
|
|
47
|
+
spinner.warn(chalk.yellow('Aviso: Pasta .agents já existe. O BPS Kit a sobrescreverá.'));
|
|
48
|
+
spinner.start('Montando diretórios base...');
|
|
49
|
+
}
|
|
50
|
+
|
|
43
51
|
// 1. Setup Base Directories
|
|
44
52
|
await fs.ensureDir(DEST_AGENTS);
|
|
45
53
|
|
|
@@ -112,7 +120,11 @@ async function runInstaller() {
|
|
|
112
120
|
console.log(chalk.cyan('======================================================'));
|
|
113
121
|
|
|
114
122
|
console.log(chalk.yellow('\n💡 Next Steps:'));
|
|
115
|
-
|
|
123
|
+
if (options.vscode) {
|
|
124
|
+
console.log(chalk.white('1. O GitHub Copilot Agent já deve estar lendo o `.github/copilot-instructions.md`.'));
|
|
125
|
+
} else {
|
|
126
|
+
console.log(chalk.white('1. O sistema Antigravity já deve estar lendo o `.agents/rules/GEMINI.md`.'));
|
|
127
|
+
}
|
|
116
128
|
console.log(chalk.white('2. Para auto-calibrar a sua IA baseada nos arquivos deste repositório, basta pedir para ele:\n'));
|
|
117
129
|
console.log(chalk.dim(' "Rode a workflow setup-brain para otimizar minhas skills neste projeto"'));
|
|
118
130
|
console.log('\n🌟 Boa codificação estruturada!\n');
|
package/bin/convert_to_vscode.js
CHANGED
|
@@ -66,18 +66,34 @@ ${content}`;
|
|
|
66
66
|
await fs.move(vaultSrc, copilotVaultDir, { overwrite: true });
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// 5.
|
|
69
|
+
// 5. Mover as 20 personas (AGENTS) para a pasta especializada do Copilot `.github/agents/`
|
|
70
70
|
const agentsSrc = path.join(destAgents, 'agents');
|
|
71
|
+
const copilotAgentsDir = path.join(gitHubDir, 'agents');
|
|
71
72
|
if (await fs.pathExists(agentsSrc)) {
|
|
73
|
+
await fs.ensureDir(copilotAgentsDir);
|
|
72
74
|
const agentFiles = await fs.readdir(agentsSrc);
|
|
73
|
-
let consolidatedAgents = `# 🤖 Antigravity Copilot Agents Roster\n\n`;
|
|
74
75
|
for (const agent of agentFiles) {
|
|
75
76
|
if (agent.endsWith('.md')) {
|
|
76
77
|
const content = await fs.readFile(path.join(agentsSrc, agent), 'utf8');
|
|
77
|
-
|
|
78
|
+
// Adicionando a extensão recomendada .agent.md se necessario, mas o VSCode aceita .md na pasta /agents
|
|
79
|
+
await fs.writeFile(path.join(copilotAgentsDir, agent), content);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 6. Converter Workflows em Copilot Prompts locados em `.github/prompts/`
|
|
85
|
+
const workflowsSrc = path.join(destAgents, 'workflows');
|
|
86
|
+
const copilotPromptsDir = path.join(gitHubDir, 'prompts');
|
|
87
|
+
if (await fs.pathExists(workflowsSrc)) {
|
|
88
|
+
await fs.ensureDir(copilotPromptsDir);
|
|
89
|
+
const workflowFiles = await fs.readdir(workflowsSrc);
|
|
90
|
+
for (const workflow of workflowFiles) {
|
|
91
|
+
if (workflow.endsWith('.md')) {
|
|
92
|
+
const content = await fs.readFile(path.join(workflowsSrc, workflow), 'utf8');
|
|
93
|
+
// O copilot aceita prompts em .github/prompts/{name}.prompt.md
|
|
94
|
+
await fs.writeFile(path.join(copilotPromptsDir, workflow.replace('.md', '.prompt.md')), content);
|
|
78
95
|
}
|
|
79
96
|
}
|
|
80
|
-
await fs.writeFile(path.join(gitHubDir, 'AGENTS.md'), consolidatedAgents);
|
|
81
97
|
}
|
|
82
98
|
|
|
83
99
|
// Limpeza pesada! Como o ambiente ja foi migrado de .agents para .github e .copilot-vault, delete a origem da instalacao hibrida.
|