@jeffersonfabriciodev/sdd-kit 1.0.1
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/README.md +43 -0
- package/bin/run.js +66 -0
- package/bin/sdd-kit-darwin-amd64 +0 -0
- package/bin/sdd-kit-darwin-arm64 +0 -0
- package/bin/sdd-kit-linux-amd64 +0 -0
- package/bin/sdd-kit-linux-arm64 +0 -0
- package/bin/sdd-kit-windows-amd64.exe +0 -0
- package/bin/sdd-kit-windows-arm64.exe +0 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# SDD Kit
|
|
2
|
+
|
|
3
|
+
> CLI que instala o framework **SDD Kit** (Spec-Driven Development) em qualquer projeto — pronto para Claude Code, Cursor ou GitHub Copilot.
|
|
4
|
+
|
|
5
|
+
## Uso rápido
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx @jeffersonfabriciodev/sdd-kit@latest init
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Formulário interativo: escolhe a pasta, a ferramenta de IA e gera a estrutura do SDD Kit (constituição, playbook, templates de spec/BDD, subagents, hooks e comandos).
|
|
12
|
+
|
|
13
|
+
## Opções
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Interativo (default)
|
|
17
|
+
npx @jeffersonfabriciodev/sdd-kit@latest init
|
|
18
|
+
|
|
19
|
+
# Sem perguntas — escolhe a tool por flag
|
|
20
|
+
npx @jeffersonfabriciodev/sdd-kit@latest init --target . --tool claude --yes
|
|
21
|
+
|
|
22
|
+
# Preview, sem escrever nada
|
|
23
|
+
npx @jeffersonfabriciodev/sdd-kit@latest init --tool cursor --dry-run
|
|
24
|
+
|
|
25
|
+
# Versão
|
|
26
|
+
npx @jeffersonfabriciodev/sdd-kit@latest version
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Ferramentas suportadas: `claude`, `cursor`, `copilot`.
|
|
30
|
+
|
|
31
|
+
## Como funciona
|
|
32
|
+
|
|
33
|
+
O pacote embute os binários do SDD Kit para todas as plataformas suportadas (Linux, macOS, Windows × amd64/arm64). O `npx`/`npm` instala o pacote e o shim executa o binário da sua plataforma — **sem download em runtime, sem rede, funciona offline**.
|
|
34
|
+
|
|
35
|
+
- Node.js ≥ 18
|
|
36
|
+
|
|
37
|
+
## Licença & Atribuição
|
|
38
|
+
|
|
39
|
+
Apache-2.0 © 2026 Jefferson Fabrício.
|
|
40
|
+
|
|
41
|
+
O SDD Kit — metodologia, templates, prompts de subagents, hooks e estrutura de comandos — é obra original de Jefferson Fabrício. Obras derivadas devem preservar a atribuição (Seção 4 da Apache-2.0).
|
|
42
|
+
|
|
43
|
+
- Repositório: [github.com/JeffersonFabricio/sdd-kit](https://github.com/JeffersonFabricio/sdd-kit)
|
package/bin/run.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Copyright 2026 Jefferson Fabrício
|
|
3
|
+
// Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.
|
|
4
|
+
// https://github.com/JeffersonFabricio/sdd-kit
|
|
5
|
+
//
|
|
6
|
+
// Seletor de binário. Este pacote npm embute os binários do sdd-kit para todas
|
|
7
|
+
// as plataformas suportadas em bin/. Este script só escolhe o binário certo
|
|
8
|
+
// para a plataforma atual e o executa — sem rede, sem download, sem cache.
|
|
9
|
+
//
|
|
10
|
+
// O binário em si contém os templates do SDD Kit embarcados (embed.FS); o
|
|
11
|
+
// código-fonte (Go + templates-fonte) vive num repositório privado e NÃO é
|
|
12
|
+
// distribuído neste pacote.
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const fs = require('fs');
|
|
17
|
+
const { spawnSync } = require('child_process');
|
|
18
|
+
|
|
19
|
+
// Mapeia plataforma/arquitetura → nome do binário embutido em bin/.
|
|
20
|
+
// Os nomes precisam casar com o que o release.yml copia para npm/bin/.
|
|
21
|
+
function binaryName() {
|
|
22
|
+
const key = `${process.platform}-${process.arch}`;
|
|
23
|
+
const map = {
|
|
24
|
+
'linux-x64': 'sdd-kit-linux-amd64',
|
|
25
|
+
'linux-arm64': 'sdd-kit-linux-arm64',
|
|
26
|
+
'darwin-x64': 'sdd-kit-darwin-amd64',
|
|
27
|
+
'darwin-arm64': 'sdd-kit-darwin-arm64',
|
|
28
|
+
'win32-x64': 'sdd-kit-windows-amd64.exe',
|
|
29
|
+
'win32-arm64': 'sdd-kit-windows-arm64.exe',
|
|
30
|
+
};
|
|
31
|
+
const name = map[key];
|
|
32
|
+
if (!name) {
|
|
33
|
+
console.error(`sdd-kit: plataforma não suportada: ${key}`);
|
|
34
|
+
console.error('Suportadas: linux/darwin/windows × amd64/arm64.');
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
|
37
|
+
return name;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function main() {
|
|
41
|
+
const bin = path.join(__dirname, binaryName());
|
|
42
|
+
|
|
43
|
+
if (!fs.existsSync(bin)) {
|
|
44
|
+
console.error(`sdd-kit: binário não encontrado em ${bin}`);
|
|
45
|
+
console.error('O pacote pode ter sido instalado de forma incompleta — reinstale com `npm i -g @jeffersonfabriciodev/sdd-kit` ou rode via `npx`.');
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Garante o bit de execução em Unix (npm pode não preservá-lo no unpack).
|
|
50
|
+
if (process.platform !== 'win32') {
|
|
51
|
+
try {
|
|
52
|
+
fs.chmodSync(bin, 0o755);
|
|
53
|
+
} catch {
|
|
54
|
+
// se falhar, o spawn abaixo reporta o erro real
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const result = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' });
|
|
59
|
+
if (result.error) {
|
|
60
|
+
console.error(`sdd-kit: falha ao executar o binário: ${result.error.message}`);
|
|
61
|
+
process.exit(1);
|
|
62
|
+
}
|
|
63
|
+
process.exit(result.status ?? 1);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
main();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jeffersonfabriciodev/sdd-kit",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "CLI que instala o framework SDD Kit (Spec-Driven Development) em qualquer projeto — Claude Code, Cursor ou GitHub Copilot",
|
|
5
|
+
"homepage": "https://github.com/JeffersonFabricio/sdd-kit#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/JeffersonFabricio/sdd-kit.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/JeffersonFabricio/sdd-kit/issues"
|
|
12
|
+
},
|
|
13
|
+
"author": "Jefferson Fabrício",
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"bin": {
|
|
16
|
+
"sdd-kit": "bin/run.js"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin/run.js",
|
|
23
|
+
"bin/sdd-kit-linux-amd64",
|
|
24
|
+
"bin/sdd-kit-linux-arm64",
|
|
25
|
+
"bin/sdd-kit-darwin-amd64",
|
|
26
|
+
"bin/sdd-kit-darwin-arm64",
|
|
27
|
+
"bin/sdd-kit-windows-amd64.exe",
|
|
28
|
+
"bin/sdd-kit-windows-arm64.exe",
|
|
29
|
+
"README.md"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"sdd",
|
|
36
|
+
"spec-driven-development",
|
|
37
|
+
"bdd",
|
|
38
|
+
"scaffold",
|
|
39
|
+
"cli",
|
|
40
|
+
"claude-code",
|
|
41
|
+
"cursor",
|
|
42
|
+
"copilot",
|
|
43
|
+
"tdd"
|
|
44
|
+
]
|
|
45
|
+
}
|