sdd-flow 1.3.2 → 2.0.0
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 +33 -0
- package/CONTRIBUTING.md +25 -0
- package/LICENSE +21 -21
- package/README.md +113 -168
- package/README.pt-BR.md +100 -0
- package/bin/cli.js +162 -424
- package/docs/architecture.md +91 -0
- package/docs/distribution.md +64 -0
- package/docs/formats.md +212 -0
- package/docs/local-testing.pt-BR.md +195 -0
- package/docs/methodology.pt-BR.md +133 -0
- package/docs/migration.md +75 -0
- package/docs/quality-gates.pt-BR.md +160 -0
- package/docs/quality.md +56 -0
- package/docs/releases.pt-BR.md +186 -0
- package/docs/setup-documents.pt-BR.md +120 -0
- package/docs/usage.pt-BR.md +305 -0
- package/docs/validation.md +95 -0
- package/lib/adapters.js +115 -0
- package/lib/check.js +221 -0
- package/lib/context.js +117 -0
- package/lib/documents.js +71 -0
- package/lib/handoff.js +81 -0
- package/lib/history.js +16 -0
- package/lib/install.js +181 -0
- package/lib/io.js +119 -0
- package/lib/legacy-hashes.json +31 -0
- package/lib/markdown.js +71 -0
- package/lib/project.js +200 -0
- package/lib/quality.js +24 -0
- package/lib/revisions.js +79 -0
- package/lib/verification.js +267 -0
- package/package.json +55 -32
- package/templates/AGENTS.md +12 -49
- package/templates/QUICKSTART.md +16 -70
- package/templates/agents/AGENTS.md +54 -92
- package/templates/agents/DECISIONS.md +5 -21
- package/templates/agents/POLICIES.md +14 -0
- package/templates/agents/PROJECT.md +35 -145
- package/templates/agents/QUALITY.md +19 -0
- package/templates/agents/RULES.md +22 -132
- package/templates/agents/SETUP.md +38 -224
- package/templates/agents/config.yaml +13 -0
- package/templates/agents/current/_template.md +19 -0
- package/templates/agents/decisions/_template.md +22 -0
- package/templates/agents/prompts/conventional-commit.md +11 -51
- package/templates/agents/prompts/intake.md +23 -0
- package/templates/agents/prompts/pr-template.md +12 -21
- package/templates/agents/prompts/quality.md +57 -0
- package/templates/agents/prompts/rpi-close.md +23 -0
- package/templates/agents/prompts/rpi-implement.md +31 -68
- package/templates/agents/prompts/rpi-plan.md +87 -117
- package/templates/agents/prompts/rpi-research.md +21 -67
- package/templates/agents/prompts/rpi-validate.md +40 -103
- package/templates/agents/prompts/skill-call.md +11 -29
- package/templates/agents/prompts/task-create.md +13 -42
- package/templates/agents/skills/_template/SKILL.md +11 -37
- package/templates/agents/harness/claude-code/.hooks/guard-delete.sh +0 -22
- package/templates/agents/harness/claude-code/.hooks/guard-deps.sh +0 -25
- package/templates/agents/harness/claude-code/.hooks/guard-git.sh +0 -24
- package/templates/agents/harness/claude-code/commands/sdd-implement.md +0 -3
- package/templates/agents/harness/claude-code/commands/sdd-plan.md +0 -3
- package/templates/agents/harness/claude-code/commands/sdd-research.md +0 -3
- package/templates/agents/harness/claude-code/commands/sdd-validate.md +0 -3
- package/templates/agents/harness/claude-code/settings.json +0 -34
- package/templates/agents/harness/opencode/commands/sdd-implement.md +0 -3
- package/templates/agents/harness/opencode/commands/sdd-plan.md +0 -3
- package/templates/agents/harness/opencode/commands/sdd-research.md +0 -3
- package/templates/agents/harness/opencode/commands/sdd-validate.md +0 -3
- package/templates/agents/harness/opencode/opencode.json +0 -18
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# guard-git.sh
|
|
3
|
-
# Asks for confirmation before running git commit.
|
|
4
|
-
# git push, tag and branch -d are blocked via permissions.deny in settings.json.
|
|
5
|
-
# Exit 0 = allow | Exit 2 = block (Claude Code convention)
|
|
6
|
-
|
|
7
|
-
INPUT=$(cat)
|
|
8
|
-
|
|
9
|
-
# Extract the bash command from the JSON input sent by Claude Code
|
|
10
|
-
COMMAND=$(echo "$INPUT" | grep -o '"command":"[^"]*"' | head -1 | sed 's/"command":"//;s/"//')
|
|
11
|
-
|
|
12
|
-
# Intercept only git commit
|
|
13
|
-
if echo "$COMMAND" | grep -qE "^git commit"; then
|
|
14
|
-
echo "⚠️ Agent wants to run: $COMMAND" >&2
|
|
15
|
-
read -r -p "Allow git commit? [y/N] " response < /dev/tty
|
|
16
|
-
if [[ "$response" =~ ^[Yy]$ ]]; then
|
|
17
|
-
exit 0
|
|
18
|
-
else
|
|
19
|
-
echo "Blocked by guard-git.sh" >&2
|
|
20
|
-
exit 2
|
|
21
|
-
fi
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
exit 0
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"deny": [
|
|
4
|
-
"Bash(git push*)",
|
|
5
|
-
"Bash(git tag*)",
|
|
6
|
-
"Bash(git branch -d*)"
|
|
7
|
-
]
|
|
8
|
-
},
|
|
9
|
-
"hooks": {
|
|
10
|
-
"PreToolUse": [
|
|
11
|
-
{
|
|
12
|
-
"matcher": "Bash",
|
|
13
|
-
"hooks": [{
|
|
14
|
-
"type": "command",
|
|
15
|
-
"command": "bash agents/harness/claude-code/.hooks/guard-git.sh"
|
|
16
|
-
}]
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"matcher": "Bash",
|
|
20
|
-
"hooks": [{
|
|
21
|
-
"type": "command",
|
|
22
|
-
"command": "bash agents/harness/claude-code/.hooks/guard-delete.sh"
|
|
23
|
-
}]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"matcher": "Bash",
|
|
27
|
-
"hooks": [{
|
|
28
|
-
"type": "command",
|
|
29
|
-
"command": "bash agents/harness/claude-code/.hooks/guard-deps.sh"
|
|
30
|
-
}]
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opencode.ai/config.json",
|
|
3
|
-
|
|
4
|
-
"instructions": [
|
|
5
|
-
"agents/AGENTS.md",
|
|
6
|
-
"agents/PROJECT.md",
|
|
7
|
-
"agents/RULES.md"
|
|
8
|
-
],
|
|
9
|
-
|
|
10
|
-
"permission": {
|
|
11
|
-
"bash": {
|
|
12
|
-
"git commit *": "deny",
|
|
13
|
-
"git push *": "deny",
|
|
14
|
-
"git tag *": "deny",
|
|
15
|
-
"rm -rf *": "ask"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|