@northbridge-security/secureai 0.1.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/.claude/README.md +122 -0
- package/.claude/commands/architect/clean.md +978 -0
- package/.claude/commands/architect/kiss.md +762 -0
- package/.claude/commands/architect/review.md +704 -0
- package/.claude/commands/catchup.md +90 -0
- package/.claude/commands/code.md +115 -0
- package/.claude/commands/commit.md +1218 -0
- package/.claude/commands/cover.md +1298 -0
- package/.claude/commands/fmea.md +275 -0
- package/.claude/commands/kaizen.md +312 -0
- package/.claude/commands/pr.md +503 -0
- package/.claude/commands/todo.md +99 -0
- package/.claude/commands/worktree.md +738 -0
- package/.claude/commands/wrapup.md +103 -0
- package/LICENSE +183 -0
- package/README.md +108 -0
- package/dist/cli.js +75634 -0
- package/docs/agents/devops-reviewer.md +889 -0
- package/docs/agents/kiss-simplifier.md +1088 -0
- package/docs/agents/typescript.md +8 -0
- package/docs/guides/README.md +109 -0
- package/docs/guides/agents.clean.arch.md +244 -0
- package/docs/guides/agents.clean.arch.ts.md +1314 -0
- package/docs/guides/agents.gotask.md +1037 -0
- package/docs/guides/agents.markdown.md +1209 -0
- package/docs/guides/agents.onepassword.md +285 -0
- package/docs/guides/agents.sonar.md +857 -0
- package/docs/guides/agents.tdd.md +838 -0
- package/docs/guides/agents.tdd.ts.md +1062 -0
- package/docs/guides/agents.typesript.md +1389 -0
- package/docs/guides/github-mcp.md +1075 -0
- package/package.json +130 -0
- package/packages/secureai-cli/src/cli.ts +21 -0
- package/tasks/README.md +880 -0
- package/tasks/aws.yml +64 -0
- package/tasks/bash.yml +118 -0
- package/tasks/bun.yml +738 -0
- package/tasks/claude.yml +183 -0
- package/tasks/docker.yml +420 -0
- package/tasks/docs.yml +127 -0
- package/tasks/git.yml +1336 -0
- package/tasks/gotask.yml +132 -0
- package/tasks/json.yml +77 -0
- package/tasks/markdown.yml +95 -0
- package/tasks/onepassword.yml +350 -0
- package/tasks/security.yml +102 -0
- package/tasks/sonar.yml +437 -0
- package/tasks/template.yml +74 -0
- package/tasks/vscode.yml +103 -0
- package/tasks/yaml.yml +121 -0
package/tasks/docs.yml
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# API Documentation Generation Tasks
|
|
2
|
+
# Provides TypeDoc-based API documentation generation in Markdown format.
|
|
3
|
+
|
|
4
|
+
version: "3"
|
|
5
|
+
|
|
6
|
+
tasks:
|
|
7
|
+
default:
|
|
8
|
+
desc: "Show available documentation tasks"
|
|
9
|
+
aliases: [help, h]
|
|
10
|
+
silent: true
|
|
11
|
+
cmds:
|
|
12
|
+
- |
|
|
13
|
+
# Color codes
|
|
14
|
+
GREEN='\033[0;32m'
|
|
15
|
+
YELLOW='\033[0;33m'
|
|
16
|
+
BOLD='\033[1m'
|
|
17
|
+
NC='\033[0m'
|
|
18
|
+
|
|
19
|
+
echo -e "${BOLD}API Documentation Generation${NC}"
|
|
20
|
+
echo ""
|
|
21
|
+
echo "Command Alias Description"
|
|
22
|
+
echo "─────────────────────────────────────────────────────────────────────"
|
|
23
|
+
echo -e " ${GREEN}task docs:generate${NC} ${YELLOW}g${NC} Generate API docs from TypeScript"
|
|
24
|
+
echo -e " ${GREEN}task docs:clean${NC} ${YELLOW}c${NC} Remove generated documentation"
|
|
25
|
+
echo -e " ${GREEN}task docs:watch${NC} ${YELLOW}w${NC} Watch for changes and regenerate"
|
|
26
|
+
echo -e " ${GREEN}task docs:view${NC} ${YELLOW}v${NC} Open generated docs in browser/editor"
|
|
27
|
+
echo ""
|
|
28
|
+
echo -e "${BOLD}Usage Examples:${NC}"
|
|
29
|
+
echo -e " task docs:generate # Generate API documentation"
|
|
30
|
+
echo -e " task docs:clean # Remove docs/api folder"
|
|
31
|
+
echo -e " task docs:watch # Watch for changes"
|
|
32
|
+
|
|
33
|
+
generate:
|
|
34
|
+
desc: "Generate API documentation from TypeScript source"
|
|
35
|
+
aliases: [g, gen]
|
|
36
|
+
silent: true
|
|
37
|
+
cmds:
|
|
38
|
+
- |
|
|
39
|
+
GREEN='\033[0;32m'
|
|
40
|
+
YELLOW='\033[0;33m'
|
|
41
|
+
NC='\033[0m'
|
|
42
|
+
|
|
43
|
+
echo -e "${YELLOW}Generating API documentation...${NC}"
|
|
44
|
+
|
|
45
|
+
# Run TypeDoc
|
|
46
|
+
bun run docs:generate
|
|
47
|
+
|
|
48
|
+
if [ $? -eq 0 ]; then
|
|
49
|
+
echo -e "${GREEN}✓${NC} API documentation generated in docs/api/"
|
|
50
|
+
else
|
|
51
|
+
echo -e "\033[0;31m✗${NC} Documentation generation failed"
|
|
52
|
+
exit 1
|
|
53
|
+
fi
|
|
54
|
+
|
|
55
|
+
clean:
|
|
56
|
+
desc: "Remove generated API documentation"
|
|
57
|
+
aliases: [c]
|
|
58
|
+
silent: true
|
|
59
|
+
cmds:
|
|
60
|
+
- |
|
|
61
|
+
GREEN='\033[0;32m'
|
|
62
|
+
NC='\033[0m'
|
|
63
|
+
|
|
64
|
+
if [ -d docs/api ]; then
|
|
65
|
+
rm -rf docs/api
|
|
66
|
+
echo -e "${GREEN}✓${NC} Removed docs/api/"
|
|
67
|
+
else
|
|
68
|
+
echo "No generated documentation found"
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
watch:
|
|
72
|
+
desc: "Watch source files and regenerate documentation on changes"
|
|
73
|
+
aliases: [w]
|
|
74
|
+
silent: false
|
|
75
|
+
cmds:
|
|
76
|
+
- |
|
|
77
|
+
echo "Watching for changes... (Press Ctrl+C to stop)"
|
|
78
|
+
bun run docs:watch
|
|
79
|
+
|
|
80
|
+
view:
|
|
81
|
+
desc: "Open generated API documentation"
|
|
82
|
+
aliases: [v]
|
|
83
|
+
silent: true
|
|
84
|
+
cmds:
|
|
85
|
+
- |
|
|
86
|
+
GREEN='\033[0;32m'
|
|
87
|
+
YELLOW='\033[0;33m'
|
|
88
|
+
RED='\033[0;31m'
|
|
89
|
+
NC='\033[0m'
|
|
90
|
+
|
|
91
|
+
if [ ! -d docs/api ]; then
|
|
92
|
+
echo -e "${RED}✗${NC} No documentation found. Run: task docs:generate"
|
|
93
|
+
exit 1
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# Try to open index file
|
|
97
|
+
INDEX_FILE="docs/api/README.md"
|
|
98
|
+
if [ -f "$INDEX_FILE" ]; then
|
|
99
|
+
# Check if we're in VSCode (stable or insiders)
|
|
100
|
+
if command -v code &> /dev/null; then
|
|
101
|
+
code "$INDEX_FILE"
|
|
102
|
+
echo -e "${GREEN}✓${NC} Opened in VSCode: $INDEX_FILE"
|
|
103
|
+
elif command -v code-insiders &> /dev/null; then
|
|
104
|
+
code-insiders "$INDEX_FILE"
|
|
105
|
+
echo -e "${GREEN}✓${NC} Opened in VSCode Insiders: $INDEX_FILE"
|
|
106
|
+
# Check for default markdown viewer (macOS)
|
|
107
|
+
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
|
108
|
+
open "$INDEX_FILE"
|
|
109
|
+
echo -e "${GREEN}✓${NC} Opened: $INDEX_FILE"
|
|
110
|
+
# Linux with xdg-open
|
|
111
|
+
elif command -v xdg-open &> /dev/null; then
|
|
112
|
+
xdg-open "$INDEX_FILE"
|
|
113
|
+
echo -e "${GREEN}✓${NC} Opened: $INDEX_FILE"
|
|
114
|
+
else
|
|
115
|
+
echo -e "${YELLOW}⚠${NC} Cannot auto-open. View manually: $INDEX_FILE"
|
|
116
|
+
fi
|
|
117
|
+
else
|
|
118
|
+
echo -e "${YELLOW}⚠${NC} Index file not found. Browse: docs/api/"
|
|
119
|
+
fi
|
|
120
|
+
|
|
121
|
+
rebuild:
|
|
122
|
+
desc: "Clean and regenerate API documentation"
|
|
123
|
+
aliases: [r, regen]
|
|
124
|
+
silent: true
|
|
125
|
+
cmds:
|
|
126
|
+
- task: clean
|
|
127
|
+
- task: generate
|