bps-kit 1.0.11 → 1.0.13
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 +10 -0
- package/bin/convert_to_vscode.js +28 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ 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.13] - 2026-03-08
|
|
9
|
+
### Corrigido
|
|
10
|
+
- Workflows exportadas para Copilot Prompts (`.github/prompts/`) agora processam sua integridade lexical e efetuam substituições completas via RegEx, trocando qualquer referência contextual de `GEMINI.md` ou `.agents/` para adequação na nuvem do Copilot (`copilot-instructions.md` e `.github/`).
|
|
11
|
+
|
|
12
|
+
## [1.0.12] - 2026-03-08
|
|
13
|
+
### Adicionado
|
|
14
|
+
- Script conversor do VS Code agora transcreve dinamicamente blocos de Frontmatter YAML embutindo o parâmetro `description` e array vazio em `tools: []` para os Agentes Extraídos.
|
|
15
|
+
- Adicionado injeção do cabeçalho de metadados `agent: agent` nas extensões processadas do Copilot Prompts.
|
|
16
|
+
- Troca forçada da extensão canônica geradora de `.md` para `.agent.md` e `.prompt.md`.
|
|
17
|
+
|
|
8
18
|
## [1.0.11] - 2026-03-08
|
|
9
19
|
### Corrigido
|
|
10
20
|
- Expurgo do `node_modules/` do tracking source do sistema de repositórios do Git.
|
package/bin/convert_to_vscode.js
CHANGED
|
@@ -75,8 +75,17 @@ ${content}`;
|
|
|
75
75
|
for (const agent of agentFiles) {
|
|
76
76
|
if (agent.endsWith('.md')) {
|
|
77
77
|
const content = await fs.readFile(path.join(agentsSrc, agent), 'utf8');
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
const agentName = agent.replace('.md', '');
|
|
79
|
+
|
|
80
|
+
// Formato exigido para GitHub Copilot Agents (.agent.md)
|
|
81
|
+
const vsCodeAgentContent = `---
|
|
82
|
+
description: 'Agente especializado: ${agentName}. Use para tarefas relacionadas a esse domínio.'
|
|
83
|
+
tools: []
|
|
84
|
+
---
|
|
85
|
+
${content}`;
|
|
86
|
+
|
|
87
|
+
// Adicionando a extensão exigida .agent.md
|
|
88
|
+
await fs.writeFile(path.join(copilotAgentsDir, `${agentName}.agent.md`), vsCodeAgentContent);
|
|
80
89
|
}
|
|
81
90
|
}
|
|
82
91
|
}
|
|
@@ -89,9 +98,24 @@ ${content}`;
|
|
|
89
98
|
const workflowFiles = await fs.readdir(workflowsSrc);
|
|
90
99
|
for (const workflow of workflowFiles) {
|
|
91
100
|
if (workflow.endsWith('.md')) {
|
|
92
|
-
|
|
101
|
+
let content = await fs.readFile(path.join(workflowsSrc, workflow), 'utf8');
|
|
102
|
+
const promptName = workflow.replace('.md', '');
|
|
103
|
+
|
|
104
|
+
// Converter referências visuais e lógicas residuais do Antigravity nativo
|
|
105
|
+
// para o equivalente funcional da arquitetura VS Code.
|
|
106
|
+
content = content.replace(/\.\/\.agents\/rules\/GEMINI\.md/g, './.github/copilot-instructions.md');
|
|
107
|
+
content = content.replace(/\.\/\.agents\//g, './.github/');
|
|
108
|
+
content = content.replace(/GEMINI\.md/g, 'copilot-instructions.md');
|
|
109
|
+
content = content.replace(/VAULT_INDEX\.md/g, 'VAULT_INDEX.instructions.md');
|
|
110
|
+
|
|
111
|
+
// Formato exigido para GitHub Copilot Prompts (.prompt.md)
|
|
112
|
+
const vsCodePromptContent = `---
|
|
113
|
+
agent: agent
|
|
114
|
+
---
|
|
115
|
+
${content}`;
|
|
116
|
+
|
|
93
117
|
// O copilot aceita prompts em .github/prompts/{name}.prompt.md
|
|
94
|
-
await fs.writeFile(path.join(copilotPromptsDir,
|
|
118
|
+
await fs.writeFile(path.join(copilotPromptsDir, `${promptName}.prompt.md`), vsCodePromptContent);
|
|
95
119
|
}
|
|
96
120
|
}
|
|
97
121
|
}
|