bps-kit 1.0.16 → 1.0.18
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,18 @@ 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.18] - 2026-03-08
|
|
9
|
+
### Modificado
|
|
10
|
+
- Universalização do *Lazy-Loading*: A instrução contida no template base `GEMINI.md` dizia que as habilidades (skills) na pasta raíz estariam "*always in context*" (sempre no contexto). Essa linha foi alterada para um comando forte que impõe as IAs nativas (Windsurf e Cursor) lerem a habilidade "explicitly read the SKILL.md file via file tools before using". Isso universaliza a redução de uso de Tokens Passivos (barrando possíveis alucinações de contexto) em todas as esferas e não apenas na arquitetura VS Code Copilot.
|
|
11
|
+
- Com isso, o construtor do VS Code (`convert_to_vscode.js`) não precisa mais realizar uma conversão *custom* desta *string* especifica visto que a performance de token foi regularizada no template Global.
|
|
12
|
+
|
|
13
|
+
## [1.0.17] - 2026-03-08
|
|
14
|
+
### Corrigido
|
|
15
|
+
- 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*.
|
|
16
|
+
- Regex deficiente fazia com que as worklows base herdadas referissem-se à pastas extintas (`.github/skills`). Normalizado para ditar o ponteiro `.copilot-skills/`.
|
|
17
|
+
- 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.
|
|
18
|
+
- 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).
|
|
19
|
+
|
|
8
20
|
## [1.0.16] - 2026-03-08
|
|
9
21
|
### Corrigido
|
|
10
22
|
- 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.
|
package/bin/convert_to_vscode.js
CHANGED
|
@@ -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,6 @@ 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
|
|
29
25
|
|
|
30
26
|
// Trocar sintaxe bruta de trigger pelo ApplyTo nativo
|
|
31
27
|
content = content.replace(/trigger:\s*always_on/g, 'applyTo: "**/*"');
|
|
@@ -36,22 +32,13 @@ async function convertToVsCode(destAgents, destBase) {
|
|
|
36
32
|
await fs.writeFile(path.join(gitHubDir, 'copilot-instructions.md'), content);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
|
-
// 2.
|
|
35
|
+
// 2. Mover as skills ativas inteiras (em vez de achatar) para preservar scripts em python embutidos e sub documentações!
|
|
40
36
|
// Importante: NÃO alocamos em .github/skills pois o Copilot engole todos os Markdowns de lá e causa sobrecarga de +60 referências!
|
|
41
37
|
const skillsDest = path.join(destAgents, 'skills');
|
|
42
38
|
const copilotSkillsDir = path.join(destBase, '.copilot-skills');
|
|
43
|
-
await fs.ensureDir(copilotSkillsDir);
|
|
44
39
|
|
|
45
40
|
if (await fs.pathExists(skillsDest)) {
|
|
46
|
-
|
|
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
|
-
}
|
|
41
|
+
await fs.move(skillsDest, copilotSkillsDir, { overwrite: true });
|
|
55
42
|
}
|
|
56
43
|
|
|
57
44
|
// 3. Converter o Vault Index (Tudo que esta no index vira uma instrução consultável)
|
|
@@ -59,8 +46,6 @@ async function convertToVsCode(destAgents, destBase) {
|
|
|
59
46
|
if (await fs.pathExists(vaultIndexSrc)) {
|
|
60
47
|
let content = await fs.readFile(vaultIndexSrc, 'utf8');
|
|
61
48
|
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
49
|
await fs.writeFile(path.join(gitHubDir, 'VAULT_INDEX.md'), content);
|
|
65
50
|
}
|
|
66
51
|
|
|
@@ -107,11 +92,13 @@ ${content}`;
|
|
|
107
92
|
const promptName = workflow.replace('.md', '');
|
|
108
93
|
|
|
109
94
|
// Converter referências visuais e lógicas residuais do Antigravity nativo
|
|
110
|
-
// para o equivalente funcional da arquitetura VS Code
|
|
95
|
+
// para o equivalente funcional da arquitetura VS Code de forma escalonada!
|
|
111
96
|
content = content.replace(/\.\/\.agents\/rules\/GEMINI\.md/g, './.github/copilot-instructions.md');
|
|
97
|
+
content = content.replace(/\.\/\.agents\/skills\//g, './.copilot-skills/');
|
|
98
|
+
content = content.replace(/\.\/\.agents\/vault\//g, './.copilot-vault/');
|
|
99
|
+
content = content.replace(/\.\/\.agents\/VAULT_INDEX\.md/g, './.github/VAULT_INDEX.md');
|
|
112
100
|
content = content.replace(/\.\/\.agents\//g, './.github/');
|
|
113
101
|
content = content.replace(/GEMINI\.md/g, 'copilot-instructions.md');
|
|
114
|
-
content = content.replace(/VAULT_INDEX\.md/g, 'VAULT_INDEX.md');
|
|
115
102
|
|
|
116
103
|
// Formato exigido para GitHub Copilot Prompts (.prompt.md)
|
|
117
104
|
const vsCodePromptContent = `---
|
package/package.json
CHANGED
|
@@ -67,7 +67,7 @@ Agent activated → Check frontmatter "skills:" → Read SKILL.md (INDEX) → Re
|
|
|
67
67
|
## 🧠 Skill Auto-Routing System (v8.0.0 — Vault Edition)
|
|
68
68
|
|
|
69
69
|
### Architecture
|
|
70
|
-
- **Active skills** (~65): in `./.agents/skills/` —
|
|
70
|
+
- **Active skills** (~65): in `./.agents/skills/` — explicitly read the SKILL.md file via file tools before using
|
|
71
71
|
- **Vault skills** (~1200+): in `./.agents/vault/` — discoverable via index
|
|
72
72
|
|
|
73
73
|
### Core Rule — Skills First
|