@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/vscode.yml
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# VSCode Extension Tasks
|
|
2
|
+
# Provides build, package, and installation utilities for the SecureAI VSCode extension.
|
|
3
|
+
|
|
4
|
+
version: "3"
|
|
5
|
+
|
|
6
|
+
vars:
|
|
7
|
+
VSCODE_PKG_DIR: packages/secureai-vscode
|
|
8
|
+
VSIX_NAME: secureai-vscode-0.2.0.vsix
|
|
9
|
+
|
|
10
|
+
tasks:
|
|
11
|
+
default:
|
|
12
|
+
desc: "Show available VSCode extension tasks"
|
|
13
|
+
aliases: [help, h]
|
|
14
|
+
silent: true
|
|
15
|
+
cmds:
|
|
16
|
+
- |
|
|
17
|
+
GREEN='\033[0;32m'
|
|
18
|
+
YELLOW='\033[0;33m'
|
|
19
|
+
BOLD='\033[1m'
|
|
20
|
+
NC='\033[0m'
|
|
21
|
+
|
|
22
|
+
echo -e "${BOLD}VSCode Extension Tasks${NC}"
|
|
23
|
+
echo ""
|
|
24
|
+
echo "Command Alias Description"
|
|
25
|
+
echo "───────────────────────────────────────────────────────────────────────────────"
|
|
26
|
+
echo -e " ${GREEN}task vscode:build${NC} ${YELLOW}b${NC} Build the VSCode extension"
|
|
27
|
+
echo -e " ${GREEN}task vscode:package${NC} ${YELLOW}pkg${NC} Build and package VSIX"
|
|
28
|
+
echo -e " ${GREEN}task vscode:install${NC} ${YELLOW}i${NC} Build, package, and install to VSCode"
|
|
29
|
+
echo ""
|
|
30
|
+
|
|
31
|
+
build:core:
|
|
32
|
+
desc: "Build secureai-core dependency"
|
|
33
|
+
internal: true
|
|
34
|
+
silent: true
|
|
35
|
+
cmds:
|
|
36
|
+
- |
|
|
37
|
+
GREEN='\033[0;32m'
|
|
38
|
+
NC='\033[0m'
|
|
39
|
+
bun run --filter=@northbridge-security/secureai-core build &>/dev/null
|
|
40
|
+
echo -e "${GREEN}✓${NC} secureai-core built"
|
|
41
|
+
|
|
42
|
+
build:
|
|
43
|
+
desc: "Build the VSCode extension (with dependencies)"
|
|
44
|
+
aliases: [b]
|
|
45
|
+
dir: "{{.VSCODE_PKG_DIR}}"
|
|
46
|
+
silent: true
|
|
47
|
+
deps:
|
|
48
|
+
- build:core
|
|
49
|
+
cmds:
|
|
50
|
+
- |
|
|
51
|
+
GREEN='\033[0;32m'
|
|
52
|
+
NC='\033[0m'
|
|
53
|
+
bun run build
|
|
54
|
+
echo -e "${GREEN}✓${NC} Extension built"
|
|
55
|
+
|
|
56
|
+
package:
|
|
57
|
+
desc: "Build and package VSIX"
|
|
58
|
+
aliases: [pkg]
|
|
59
|
+
dir: "{{.VSCODE_PKG_DIR}}"
|
|
60
|
+
silent: true
|
|
61
|
+
deps:
|
|
62
|
+
- build
|
|
63
|
+
cmds:
|
|
64
|
+
- |
|
|
65
|
+
GREEN='\033[0;32m'
|
|
66
|
+
NC='\033[0m'
|
|
67
|
+
bun run package 2>&1 | grep -v "WARNING"
|
|
68
|
+
echo -e "${GREEN}✓${NC} VSIX packaged: {{.VSIX_NAME}}"
|
|
69
|
+
|
|
70
|
+
install:
|
|
71
|
+
desc: "Build, package, and install extension to VSCode"
|
|
72
|
+
aliases: [i]
|
|
73
|
+
silent: true
|
|
74
|
+
deps:
|
|
75
|
+
- package
|
|
76
|
+
cmds:
|
|
77
|
+
- |
|
|
78
|
+
GREEN='\033[0;32m'
|
|
79
|
+
YELLOW='\033[0;33m'
|
|
80
|
+
NC='\033[0m'
|
|
81
|
+
|
|
82
|
+
VSIX_PATH="{{.VSCODE_PKG_DIR}}/{{.VSIX_NAME}}"
|
|
83
|
+
EXTENSION_ID="northbridge-security.secureai-vscode"
|
|
84
|
+
|
|
85
|
+
# Check if VSCode CLI is available (supports both stable and insiders)
|
|
86
|
+
if command -v code &> /dev/null; then
|
|
87
|
+
VSCODE_CMD="code"
|
|
88
|
+
elif command -v code-insiders &> /dev/null; then
|
|
89
|
+
VSCODE_CMD="code-insiders"
|
|
90
|
+
else
|
|
91
|
+
echo -e "${YELLOW}⚠${NC} 'code' command not found"
|
|
92
|
+
echo "Install VSCode Shell Command: Cmd+Shift+P > 'Shell Command: Install code command'"
|
|
93
|
+
exit 1
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# Uninstall existing extension first (ignore errors if not installed)
|
|
97
|
+
$VSCODE_CMD --uninstall-extension "$EXTENSION_ID" 2>/dev/null || true
|
|
98
|
+
echo -e "${GREEN}✓${NC} Old extension uninstalled"
|
|
99
|
+
|
|
100
|
+
# Install the fresh extension
|
|
101
|
+
$VSCODE_CMD --install-extension "$VSIX_PATH" --force 2>/dev/null
|
|
102
|
+
|
|
103
|
+
echo -e "${GREEN}✓${NC} Extension installed"
|
package/tasks/yaml.yml
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# YAML Linting & Validation Tasks
|
|
2
|
+
# Provides YAML validation, linting, and auto-fixing for all YAML files in the project.
|
|
3
|
+
|
|
4
|
+
version: "3"
|
|
5
|
+
|
|
6
|
+
vars:
|
|
7
|
+
DEFAULT_PATTERNS: "*.yml,*.yaml,.*.yml,.*.yaml,.github/**/*.yml,.github/**/*.yaml,tasks/**/*.yml"
|
|
8
|
+
YAMLLINT_CONFIG: ".yamllint.yml"
|
|
9
|
+
|
|
10
|
+
tasks:
|
|
11
|
+
default:
|
|
12
|
+
desc: "Show available YAML tasks"
|
|
13
|
+
aliases: [help, h]
|
|
14
|
+
silent: true
|
|
15
|
+
cmds:
|
|
16
|
+
- |
|
|
17
|
+
# Color codes
|
|
18
|
+
GREEN='\033[0;32m'
|
|
19
|
+
YELLOW='\033[0;33m'
|
|
20
|
+
BOLD='\033[1m'
|
|
21
|
+
NC='\033[0m'
|
|
22
|
+
|
|
23
|
+
echo -e "${BOLD}YAML Linting & Validation${NC}"
|
|
24
|
+
echo ""
|
|
25
|
+
echo "Command Alias Description Examples"
|
|
26
|
+
echo "───────────────────────────────────────────────────────────────────────────────────────────────────"
|
|
27
|
+
echo -e " ${GREEN}task yaml:lint${NC} ${YELLOW}l${NC} Lint YAML files FILES=\"*.yml\""
|
|
28
|
+
echo -e " ${GREEN}task yaml:lint:fix${NC} ${YELLOW}lf${NC} Auto-fix YAML formatting FILES=\"*.yml\""
|
|
29
|
+
echo -e " ${GREEN}task yaml:validate${NC} ${YELLOW}v${NC} Validate YAML syntax only FILES=\"*.yml\""
|
|
30
|
+
echo -e " ${GREEN}task yaml:setup${NC} ${YELLOW}s${NC} Install YAML tools globally"
|
|
31
|
+
echo ""
|
|
32
|
+
echo -e "${BOLD}Usage Examples:${NC}"
|
|
33
|
+
echo -e " task yaml:lint # Lint all YAML files (quiet on success)"
|
|
34
|
+
echo -e " task yaml:lint FILES=\"*.yml\" # Lint specific pattern"
|
|
35
|
+
echo -e " task yaml:lint LINTER=prettier # Force prettier"
|
|
36
|
+
echo -e " VERBOSE=1 task yaml:lint # Show output even on success"
|
|
37
|
+
echo -e " task yaml:lint:fix # Auto-fix all issues"
|
|
38
|
+
|
|
39
|
+
lint:
|
|
40
|
+
desc: "Lint YAML files (quiet on success, use VERBOSE=1 for details)"
|
|
41
|
+
aliases: [l]
|
|
42
|
+
silent: true
|
|
43
|
+
vars:
|
|
44
|
+
FILE_PATTERNS: "{{.FILES | default .DEFAULT_PATTERNS}}"
|
|
45
|
+
LINTER: '{{.LINTER | default ""}}'
|
|
46
|
+
VERBOSE_FLAG: '{{.VERBOSE | default ""}}'
|
|
47
|
+
cmds:
|
|
48
|
+
- |
|
|
49
|
+
REPO_URL=$(task git:repo:url 2>/dev/null || echo "")
|
|
50
|
+
SCRIPT="{{.TASKFILE_DIR}}/../src/tasks/yaml/lint.ts"
|
|
51
|
+
|
|
52
|
+
if [ "$REPO_URL" = "https://github.com/northbridge-security/ai-toolkit" ] && [ -f "$SCRIPT" ]; then
|
|
53
|
+
bun run "$SCRIPT"
|
|
54
|
+
else
|
|
55
|
+
# Fallback to ai-toolkit CLI
|
|
56
|
+
npx @northbridge-security/ai-toolkit yaml lint -f "$FILES"
|
|
57
|
+
fi
|
|
58
|
+
env:
|
|
59
|
+
FILES: "{{.FILE_PATTERNS}}"
|
|
60
|
+
LINTER: "{{.LINTER}}"
|
|
61
|
+
VERBOSE: "{{.VERBOSE_FLAG}}"
|
|
62
|
+
|
|
63
|
+
lint:fix:
|
|
64
|
+
desc: "Auto-fix YAML files where possible (quiet when no changes)"
|
|
65
|
+
aliases: [lf, fix]
|
|
66
|
+
silent: true
|
|
67
|
+
vars:
|
|
68
|
+
FILE_PATTERNS: "{{.FILES | default .DEFAULT_PATTERNS}}"
|
|
69
|
+
VERBOSE_FLAG: '{{.VERBOSE | default ""}}'
|
|
70
|
+
cmds:
|
|
71
|
+
- |
|
|
72
|
+
REPO_URL=$(task git:repo:url 2>/dev/null || echo "")
|
|
73
|
+
SCRIPT="{{.TASKFILE_DIR}}/../src/tasks/yaml/lint-fix.ts"
|
|
74
|
+
|
|
75
|
+
if [ "$REPO_URL" = "https://github.com/northbridge-security/ai-toolkit" ] && [ -f "$SCRIPT" ]; then
|
|
76
|
+
bun run "$SCRIPT"
|
|
77
|
+
else
|
|
78
|
+
# Fallback to ai-toolkit CLI
|
|
79
|
+
npx @northbridge-security/ai-toolkit yaml lint --fix -f "$FILES"
|
|
80
|
+
fi
|
|
81
|
+
env:
|
|
82
|
+
FILES: "{{.FILE_PATTERNS}}"
|
|
83
|
+
VERBOSE: "{{.VERBOSE_FLAG}}"
|
|
84
|
+
|
|
85
|
+
validate:
|
|
86
|
+
desc: "Validate YAML syntax (quiet on success, use VERBOSE=1 for details)"
|
|
87
|
+
aliases: [v]
|
|
88
|
+
silent: true
|
|
89
|
+
vars:
|
|
90
|
+
FILE_PATTERNS: "{{.FILES | default .DEFAULT_PATTERNS}}"
|
|
91
|
+
VERBOSE_FLAG: '{{.VERBOSE | default ""}}'
|
|
92
|
+
cmds:
|
|
93
|
+
- |
|
|
94
|
+
REPO_URL=$(task git:repo:url 2>/dev/null || echo "")
|
|
95
|
+
SCRIPT="{{.TASKFILE_DIR}}/../src/tasks/yaml/validate.ts"
|
|
96
|
+
|
|
97
|
+
if [ "$REPO_URL" = "https://github.com/northbridge-security/ai-toolkit" ] && [ -f "$SCRIPT" ]; then
|
|
98
|
+
bun run "$SCRIPT"
|
|
99
|
+
else
|
|
100
|
+
# Fallback to ai-toolkit CLI (lint includes validation)
|
|
101
|
+
npx @northbridge-security/ai-toolkit yaml lint -f "$FILES"
|
|
102
|
+
fi
|
|
103
|
+
env:
|
|
104
|
+
FILES: "{{.FILE_PATTERNS}}"
|
|
105
|
+
VERBOSE: "{{.VERBOSE_FLAG}}"
|
|
106
|
+
|
|
107
|
+
setup:
|
|
108
|
+
desc: "Install YAML tools globally (js-yaml, prettier, yamllint)"
|
|
109
|
+
aliases: [s]
|
|
110
|
+
silent: true
|
|
111
|
+
cmds:
|
|
112
|
+
- |
|
|
113
|
+
REPO_URL=$(task git:repo:url 2>/dev/null || echo "")
|
|
114
|
+
SCRIPT="{{.TASKFILE_DIR}}/../src/tasks/yaml/setup.ts"
|
|
115
|
+
|
|
116
|
+
if [ "$REPO_URL" = "https://github.com/northbridge-security/ai-toolkit" ] && [ -f "$SCRIPT" ]; then
|
|
117
|
+
bun run "$SCRIPT"
|
|
118
|
+
else
|
|
119
|
+
# Fallback to ai-toolkit CLI
|
|
120
|
+
npx @northbridge-security/ai-toolkit yaml setup
|
|
121
|
+
fi
|