bps-kit 1.0.15 → 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,17 @@ 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
|
+
|
|
15
|
+
## [1.0.16] - 2026-03-08
|
|
16
|
+
### Corrigido
|
|
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.
|
|
18
|
+
|
|
8
19
|
## [1.0.15] - 2026-03-08
|
|
9
20
|
### Corrigido
|
|
10
21
|
- Eliminado Overhead Brutal (+66 Referências Vias Copilot) mudando os Markdowns de Skills ativas para uma pasta raiz independente `.copilot-skills/` em vez de abrigá-las no escopo autônomo do `.github/`.
|
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
|
|
|
@@ -24,7 +21,10 @@ async function convertToVsCode(destAgents, destBase) {
|
|
|
24
21
|
content = content.replace(/\.\/\.agents\/skills\//g, './.copilot-skills/');
|
|
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
|
-
content = content.replace(
|
|
24
|
+
content = content.replace(/\.\/\.agents\/VAULT_INDEX\.md/g, './.github/VAULT_INDEX.md');
|
|
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');
|
|
28
28
|
|
|
29
29
|
// Trocar sintaxe bruta de trigger pelo ApplyTo nativo
|
|
30
30
|
content = content.replace(/trigger:\s*always_on/g, 'applyTo: "**/*"');
|
|
@@ -35,22 +35,13 @@ async function convertToVsCode(destAgents, destBase) {
|
|
|
35
35
|
await fs.writeFile(path.join(gitHubDir, 'copilot-instructions.md'), content);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// 2.
|
|
38
|
+
// 2. Mover as skills ativas inteiras (em vez de achatar) para preservar scripts em python embutidos e sub documentações!
|
|
39
39
|
// Importante: NÃO alocamos em .github/skills pois o Copilot engole todos os Markdowns de lá e causa sobrecarga de +60 referências!
|
|
40
40
|
const skillsDest = path.join(destAgents, 'skills');
|
|
41
41
|
const copilotSkillsDir = path.join(destBase, '.copilot-skills');
|
|
42
|
-
await fs.ensureDir(copilotSkillsDir);
|
|
43
42
|
|
|
44
43
|
if (await fs.pathExists(skillsDest)) {
|
|
45
|
-
|
|
46
|
-
for (const skillName of skillsDirs) {
|
|
47
|
-
const skillFile = path.join(skillsDest, skillName, 'SKILL.md');
|
|
48
|
-
if (await fs.pathExists(skillFile)) {
|
|
49
|
-
let content = await fs.readFile(skillFile, 'utf8');
|
|
50
|
-
// Salvar como .md comum achatado para a IA consultar dinamicamente via "file read" só quando requisitado
|
|
51
|
-
await fs.writeFile(path.join(copilotSkillsDir, `${skillName}.md`), content);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
44
|
+
await fs.move(skillsDest, copilotSkillsDir, { overwrite: true });
|
|
54
45
|
}
|
|
55
46
|
|
|
56
47
|
// 3. Converter o Vault Index (Tudo que esta no index vira uma instrução consultável)
|
|
@@ -58,8 +49,6 @@ async function convertToVsCode(destAgents, destBase) {
|
|
|
58
49
|
if (await fs.pathExists(vaultIndexSrc)) {
|
|
59
50
|
let content = await fs.readFile(vaultIndexSrc, 'utf8');
|
|
60
51
|
content = content.replace(/\.\/\.agents\/vault\//g, './.copilot-vault/');
|
|
61
|
-
// Também trocar eventuais menções de SKILL.md para o formato achatado.md do VSCode
|
|
62
|
-
content = content.replace(/\{name\}\/SKILL\.md/g, '{name}.md');
|
|
63
52
|
await fs.writeFile(path.join(gitHubDir, 'VAULT_INDEX.md'), content);
|
|
64
53
|
}
|
|
65
54
|
|
|
@@ -106,11 +95,13 @@ ${content}`;
|
|
|
106
95
|
const promptName = workflow.replace('.md', '');
|
|
107
96
|
|
|
108
97
|
// Converter referências visuais e lógicas residuais do Antigravity nativo
|
|
109
|
-
// para o equivalente funcional da arquitetura VS Code
|
|
98
|
+
// para o equivalente funcional da arquitetura VS Code de forma escalonada!
|
|
110
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');
|
|
111
103
|
content = content.replace(/\.\/\.agents\//g, './.github/');
|
|
112
104
|
content = content.replace(/GEMINI\.md/g, 'copilot-instructions.md');
|
|
113
|
-
content = content.replace(/VAULT_INDEX\.md/g, 'VAULT_INDEX.md');
|
|
114
105
|
|
|
115
106
|
// Formato exigido para GitHub Copilot Prompts (.prompt.md)
|
|
116
107
|
const vsCodePromptContent = `---
|
package/package.json
CHANGED
package/templates/VAULT_INDEX.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 🗄️ Vault Index
|
|
2
2
|
|
|
3
|
-
> 1197 skills in `./.agents/
|
|
4
|
-
> To use: `view_file ./.agents/
|
|
3
|
+
> 1197 skills in `./.agents/vault/`.
|
|
4
|
+
> To use: `view_file ./.agents/vault/{skill-name}/SKILL.md`
|
|
5
5
|
|
|
6
6
|
## Web & Frontend (53)
|
|
7
7
|
3d-web-experience angular angular-best-practices angular-migration angular-state-management angular-ui-patterns animejs-animation antigravity-design-expert antigravity-workflows baseline-ui chrome-extension-developer cloudflare-workers-expert design-md design-orchestration design-spells frontend-dev-guidelines frontend-mobile-development-component-scaffold frontend-mobile-security-xss-scan frontend-security-coder frontend-slides frontend-ui-dark-ts html-injection-testing nextjs-app-router-patterns radix-ui-design-system react-best-practices react-flow-architect react-flow-node-ts react-modernization react-native-architecture react-nextjs-development react-state-management react-ui-patterns spline-3d-integration tailwind-design-system threejs-animation threejs-fundamentals threejs-geometry threejs-interaction threejs-lighting threejs-loaders threejs-materials threejs-postprocessing threejs-shaders threejs-skills threejs-textures ui-skills ui-ux-pro-max ui-visual-validator web-artifacts-builder web-design-guidelines web-scraper web-security-testing webflow-automation
|
|
@@ -67,16 +67,16 @@ 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/
|
|
71
|
-
- **Vault skills** (~1200+): in `./.agents/
|
|
70
|
+
- **Active skills** (~65): in `./.agents/skills/` — always in context
|
|
71
|
+
- **Vault skills** (~1200+): in `./.agents/vault/` — discoverable via index
|
|
72
72
|
|
|
73
73
|
### Core Rule — Skills First
|
|
74
74
|
After invoking any skill, explicitly say: '📖 Using skill: [skill-name]' before proceeding. If no skill was used, say: '⚠️ No skill used — responding from base knowledge.'
|
|
75
75
|
|
|
76
76
|
### Routing Flow
|
|
77
77
|
1. Check if an **active skill** covers the request → use it directly
|
|
78
|
-
2. If not → open `./.agents/
|
|
79
|
-
3. If found → `view_file ./.agents/
|
|
78
|
+
2. If not → open `./.agents/VAULT_INDEX.md` to find a vault skill
|
|
79
|
+
3. If found → `view_file ./.agents/vault/{name}/SKILL.md`
|
|
80
80
|
4. If nothing found → respond from base knowledge
|
|
81
81
|
|
|
82
82
|
### Intent → Skill Routing Map (Active Skills)
|