bps-kit 1.0.16 → 1.0.17

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 CHANGED
@@ -5,6 +5,13 @@ 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.17] - 2026-03-08
9
+ ### Corrigido
10
+ - O script `convert_to_vscode.js` esvaziava os metadados e scripts em Python de `.copilot-skills/` durante o processo de migração por achatar ativamente e destrutivamente pastas em um `.md` individual. O conversor agora move a pasta preservando a sanidade estrutural e utilitária de cada *skill*.
11
+ - Regex deficiente fazia com que as worklows base herdadas referissem-se à pastas extintas (`.github/skills`). Normalizado para ditar o ponteiro `.copilot-skills/`.
12
+ - Deletado rastros estáticos e zumbis que persistiam a criar uma pasta `.github/instructions` vazia, causando confusão a usuários inspecionando o repositório.
13
+ - A regra global *GEMINI* foi adequada para informar ao Copilot para ativamente ler (`view_file`) skills em vez de achar estáticamente que já estão no seu contexto (como era no pre-requisito original para a IDE Cursor).
14
+
8
15
  ## [1.0.16] - 2026-03-08
9
16
  ### Corrigido
10
17
  - Sincronização dos Paths Estáticos: O template global do projeto (`GEMINI.md`) possuía vestígios do path absoluto de leitura desvinculadas às regras autônomas implementadas para instâncias individuais. Isto estava impedindo o construtor regex do backend (`convert_to_vscode.js`) de ler e traduzir os caminhos originais em caminhos ocultados apropriados para lidar com o GitHub Copilot Agent.
@@ -9,9 +9,6 @@ const chalk = require('chalk');
9
9
  */
10
10
  async function convertToVsCode(destAgents, destBase) {
11
11
  const gitHubDir = path.join(destBase, '.github');
12
- const copilotInstructionsDir = path.join(gitHubDir, 'instructions');
13
-
14
- await fs.ensureDir(copilotInstructionsDir);
15
12
 
16
13
  console.log(chalk.dim(' [VS Code] Convertendo arquivos para sintaxe do Copilot...'));
17
14
 
@@ -25,7 +22,9 @@ async function convertToVsCode(destAgents, destBase) {
25
22
  content = content.replace(/\.\/\.agents\/vault\//g, './.copilot-vault/');
26
23
  content = content.replace(/\.\/\.agents\/rules\/GEMINI\.md/g, './.github/copilot-instructions.md');
27
24
  content = content.replace(/\.\/\.agents\/VAULT_INDEX\.md/g, './.github/VAULT_INDEX.md');
28
- content = content.replace(/\{skill-name\}\/SKILL\.md/g, '{skill-name}.md'); // Para buscar arquivos achatados invés de diretórios
25
+
26
+ // Copilot precisa ser avisado de que as skills ativas agora requerem leitura ativa (view_file) fora da injecao limitante do contexto
27
+ content = content.replace(/— always in context/g, '— explicitly read the SKILL.md file via file tools before using');
29
28
 
30
29
  // Trocar sintaxe bruta de trigger pelo ApplyTo nativo
31
30
  content = content.replace(/trigger:\s*always_on/g, 'applyTo: "**/*"');
@@ -36,22 +35,13 @@ async function convertToVsCode(destAgents, destBase) {
36
35
  await fs.writeFile(path.join(gitHubDir, 'copilot-instructions.md'), content);
37
36
  }
38
37
 
39
- // 2. Converter as skills nativas (ativas) em arquivo comum .md achatado
38
+ // 2. Mover as skills ativas inteiras (em vez de achatar) para preservar scripts em python embutidos e sub documentações!
40
39
  // Importante: NÃO alocamos em .github/skills pois o Copilot engole todos os Markdowns de lá e causa sobrecarga de +60 referências!
41
40
  const skillsDest = path.join(destAgents, 'skills');
42
41
  const copilotSkillsDir = path.join(destBase, '.copilot-skills');
43
- await fs.ensureDir(copilotSkillsDir);
44
42
 
45
43
  if (await fs.pathExists(skillsDest)) {
46
- const skillsDirs = await fs.readdir(skillsDest);
47
- for (const skillName of skillsDirs) {
48
- const skillFile = path.join(skillsDest, skillName, 'SKILL.md');
49
- if (await fs.pathExists(skillFile)) {
50
- let content = await fs.readFile(skillFile, 'utf8');
51
- // Salvar como .md comum achatado para a IA consultar dinamicamente via "file read" só quando requisitado
52
- await fs.writeFile(path.join(copilotSkillsDir, `${skillName}.md`), content);
53
- }
54
- }
44
+ await fs.move(skillsDest, copilotSkillsDir, { overwrite: true });
55
45
  }
56
46
 
57
47
  // 3. Converter o Vault Index (Tudo que esta no index vira uma instrução consultável)
@@ -59,8 +49,6 @@ async function convertToVsCode(destAgents, destBase) {
59
49
  if (await fs.pathExists(vaultIndexSrc)) {
60
50
  let content = await fs.readFile(vaultIndexSrc, 'utf8');
61
51
  content = content.replace(/\.\/\.agents\/vault\//g, './.copilot-vault/');
62
- // Também trocar eventuais menções de SKILL.md para o formato achatado.md do VSCode
63
- content = content.replace(/\{name\}\/SKILL\.md/g, '{name}.md');
64
52
  await fs.writeFile(path.join(gitHubDir, 'VAULT_INDEX.md'), content);
65
53
  }
66
54
 
@@ -107,11 +95,13 @@ ${content}`;
107
95
  const promptName = workflow.replace('.md', '');
108
96
 
109
97
  // Converter referências visuais e lógicas residuais do Antigravity nativo
110
- // para o equivalente funcional da arquitetura VS Code.
98
+ // para o equivalente funcional da arquitetura VS Code de forma escalonada!
111
99
  content = content.replace(/\.\/\.agents\/rules\/GEMINI\.md/g, './.github/copilot-instructions.md');
100
+ content = content.replace(/\.\/\.agents\/skills\//g, './.copilot-skills/');
101
+ content = content.replace(/\.\/\.agents\/vault\//g, './.copilot-vault/');
102
+ content = content.replace(/\.\/\.agents\/VAULT_INDEX\.md/g, './.github/VAULT_INDEX.md');
112
103
  content = content.replace(/\.\/\.agents\//g, './.github/');
113
104
  content = content.replace(/GEMINI\.md/g, 'copilot-instructions.md');
114
- content = content.replace(/VAULT_INDEX\.md/g, 'VAULT_INDEX.md');
115
105
 
116
106
  // Formato exigido para GitHub Copilot Prompts (.prompt.md)
117
107
  const vsCodePromptContent = `---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bps-kit",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "BPS Kit - The Ultimate Antigravity Brain",
5
5
  "bin": {
6
6
  "bps-kit": "./bin/cli.js"