codeforge-dev 1.7.0 → 1.9.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/.devcontainer/.env +4 -6
- package/.devcontainer/.env.example +29 -0
- package/.devcontainer/.gitignore +8 -0
- package/.devcontainer/.secrets.example +12 -0
- package/.devcontainer/CHANGELOG.md +181 -0
- package/.devcontainer/CLAUDE.md +57 -20
- package/.devcontainer/README.md +111 -56
- package/.devcontainer/config/{main-system-prompt.md → defaults/main-system-prompt.md} +72 -0
- package/.devcontainer/config/defaults/rules/spec-workflow.md +67 -0
- package/.devcontainer/config/defaults/rules/workspace-scope.md +7 -0
- package/.devcontainer/config/defaults/settings.json +67 -0
- package/.devcontainer/config/file-manifest.json +32 -0
- package/.devcontainer/devcontainer.json +20 -0
- package/.devcontainer/docs/configuration-reference.md +90 -0
- package/.devcontainer/docs/keybindings.md +100 -0
- package/.devcontainer/docs/optional-features.md +129 -0
- package/.devcontainer/docs/plugins.md +154 -0
- package/.devcontainer/docs/troubleshooting.md +128 -0
- package/.devcontainer/features/agent-browser/install.sh +6 -0
- package/.devcontainer/features/ast-grep/install.sh +6 -0
- package/.devcontainer/features/biome/README.md +27 -0
- package/.devcontainer/features/biome/install.sh +6 -0
- package/.devcontainer/features/ccburn/install.sh +6 -0
- package/.devcontainer/features/ccstatusline/devcontainer-feature.json +5 -0
- package/.devcontainer/features/ccstatusline/install.sh +7 -0
- package/.devcontainer/features/ccusage/install.sh +6 -0
- package/.devcontainer/features/claude-monitor/install.sh +6 -0
- package/.devcontainer/features/dprint/README.md +30 -0
- package/.devcontainer/features/dprint/devcontainer-feature.json +18 -0
- package/.devcontainer/features/dprint/install.sh +131 -0
- package/.devcontainer/features/hadolint/README.md +35 -0
- package/.devcontainer/features/hadolint/devcontainer-feature.json +13 -0
- package/.devcontainer/features/hadolint/install.sh +86 -0
- package/.devcontainer/features/lsp-servers/devcontainer-feature.json +5 -0
- package/.devcontainer/features/lsp-servers/install.sh +7 -0
- package/.devcontainer/features/mcp-qdrant/devcontainer-feature.json +5 -0
- package/.devcontainer/features/mcp-qdrant/install.sh +13 -6
- package/.devcontainer/features/mcp-reasoner/devcontainer-feature.json +5 -0
- package/.devcontainer/features/mcp-reasoner/install.sh +8 -1
- package/.devcontainer/features/notify-hook/devcontainer-feature.json +5 -0
- package/.devcontainer/features/notify-hook/install.sh +7 -0
- package/.devcontainer/features/ruff/README.md +26 -0
- package/.devcontainer/features/ruff/devcontainer-feature.json +21 -0
- package/.devcontainer/features/ruff/install.sh +74 -0
- package/.devcontainer/features/shellcheck/README.md +38 -0
- package/.devcontainer/features/shellcheck/devcontainer-feature.json +13 -0
- package/.devcontainer/features/shellcheck/install.sh +24 -0
- package/.devcontainer/features/shfmt/README.md +37 -0
- package/.devcontainer/features/shfmt/devcontainer-feature.json +13 -0
- package/.devcontainer/features/shfmt/install.sh +85 -0
- package/.devcontainer/features/splitrail/devcontainer-feature.json +5 -0
- package/.devcontainer/features/splitrail/install.sh +7 -0
- package/.devcontainer/features/tmux/install.sh +8 -0
- package/.devcontainer/features/tree-sitter/install.sh +6 -0
- package/.devcontainer/plugins/devs-marketplace/.claude-plugin/marketplace.json +104 -104
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-code-quality/.claude-plugin/plugin.json +7 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-code-quality/README.md +158 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-code-quality/hooks/hooks.json +39 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-code-quality/scripts/collect-edited-files.py +47 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-code-quality/scripts/format-on-stop.py +297 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-code-quality/scripts/lint-file.py +536 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-code-quality/scripts/syntax-validator.py +146 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-formatter/.claude-plugin/plugin.json +1 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-formatter/scripts/__pycache__/format-on-stop.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-formatter/scripts/format-on-stop.py +114 -9
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-linter/.claude-plugin/plugin.json +1 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-linter/hooks/hooks.json +4 -5
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-linter/scripts/__pycache__/lint-file.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/auto-linter/scripts/lint-file.py +478 -76
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/.claude-plugin/plugin.json +1 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/AGENT-REDIRECTION.md +226 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/architect.md +94 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/bash-exec.md +4 -4
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/claude-guide.md +14 -23
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/debug-logs.md +20 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/dependency-analyst.md +20 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/doc-writer.md +99 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/explorer.md +20 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/generalist.md +152 -9
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/git-archaeologist.md +18 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/migrator.md +114 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/perf-profiler.md +24 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/refactorer.md +101 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/researcher.md +33 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/security-auditor.md +24 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/spec-writer.md +65 -24
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/statusline-config.md +3 -3
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/agents/test-writer.md +99 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/hooks/hooks.json +100 -56
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/__pycache__/advisory-test-runner.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/__pycache__/collect-edited-files.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/__pycache__/commit-reminder.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/__pycache__/git-state-injector.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/__pycache__/redirect-builtin-agents.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/__pycache__/ticket-linker.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/__pycache__/todo-harvester.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/advisory-test-runner.py +174 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/collect-edited-files.py +8 -6
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/commit-reminder.py +90 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/git-state-injector.py +114 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/skill-suggester.py +61 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/spec-reminder.py +121 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/ticket-linker.py +137 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/scripts/todo-harvester.py +130 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/api-design/SKILL.md +224 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/api-design/references/error-handling.md +166 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/api-design/references/rest-conventions.md +215 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/ast-grep-patterns/SKILL.md +211 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/ast-grep-patterns/references/language-patterns.md +327 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/dependency-management/SKILL.md +134 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/dependency-management/references/ecosystem-commands.md +264 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/dependency-management/references/license-compliance.md +80 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/documentation-patterns/SKILL.md +153 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/documentation-patterns/references/api-doc-templates.md +221 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/documentation-patterns/references/docstring-formats.md +296 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/migration-patterns/SKILL.md +150 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/migration-patterns/references/javascript-migrations.md +179 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/migration-patterns/references/python-migrations.md +141 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/spec-check/SKILL.md +86 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/spec-init/SKILL.md +97 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/spec-init/references/backlog-template.md +7 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/spec-init/references/roadmap-template.md +13 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/spec-new/SKILL.md +101 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/spec-new/references/template.md +110 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/spec-update/SKILL.md +124 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/code-directive/skills/specification-writing/SKILL.md +32 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/dangerous-command-blocker/scripts/__pycache__/block-dangerous.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/notify-hook/hooks/hooks.json +1 -1
- package/.devcontainer/plugins/devs-marketplace/plugins/protected-files-guard/scripts/__pycache__/guard-protected.cpython-314.pyc +0 -0
- package/.devcontainer/scripts/check-setup.sh +72 -0
- package/.devcontainer/scripts/setup-aliases.sh +43 -3
- package/.devcontainer/scripts/setup-auth.sh +74 -0
- package/.devcontainer/scripts/setup-config.sh +117 -24
- package/.devcontainer/scripts/setup-update-claude.sh +8 -0
- package/.devcontainer/scripts/setup.sh +46 -13
- package/README.md +23 -190
- package/package.json +42 -42
- package/setup.js +245 -71
- package/.devcontainer/config/settings.json +0 -70
- package/.devcontainer/features/claude-code/README.md +0 -498
- package/.devcontainer/features/claude-code/config/settings.json +0 -72
- package/.devcontainer/features/claude-code/config/system-prompt.md +0 -118
- package/.devcontainer/features/claude-code/config/world-building-sp.md +0 -1432
- package/.devcontainer/features/claude-code/devcontainer-feature.json +0 -42
- package/.devcontainer/features/claude-code/install.sh +0 -466
- package/.devcontainer/plugins/devs-marketplace/plugins/planning-reminder/.claude-plugin/plugin.json +0 -7
- package/.devcontainer/plugins/devs-marketplace/plugins/planning-reminder/hooks/hooks.json +0 -17
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/.claude-plugin/plugin.json +0 -6
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/config/planning-instructions.md +0 -14
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/functional-conjuring-map.md +0 -989
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/hooks/hooks.json +0 -33
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/scripts/__pycache__/post-enhance-task.cpython-314.pyc +0 -0
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/scripts/enhance-planning.py +0 -71
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/scripts/enhancers/enhance-plan.sh +0 -68
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/scripts/enhancers/enhance-task.sh +0 -120
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/scripts/post-enhance-plan.py +0 -133
- package/.devcontainer/plugins/devs-marketplace/plugins/workflow-enhancer/scripts/post-enhance-task.py +0 -253
- /package/.devcontainer/config/{keybindings.json → defaults/keybindings.json} +0 -0
package/.devcontainer/plugins/devs-marketplace/plugins/auto-formatter/scripts/format-on-stop.py
CHANGED
|
@@ -5,9 +5,17 @@ Unified batch formatter — runs as a Stop hook.
|
|
|
5
5
|
Reads file paths collected by collect-edited-files.py during the
|
|
6
6
|
conversation turn, deduplicates them, and formats each based on
|
|
7
7
|
extension:
|
|
8
|
-
.py / .pyi
|
|
9
|
-
.go
|
|
10
|
-
.js/.jsx/.ts/.tsx/.mjs/.cjs/.mts/.cts
|
|
8
|
+
.py / .pyi → Ruff format (fallback: Black)
|
|
9
|
+
.go → gofmt
|
|
10
|
+
.js/.jsx/.ts/.tsx/.mjs/.cjs/.mts/.cts → Biome check --write
|
|
11
|
+
.css/.json/.jsonc/.graphql/.gql → Biome check --write
|
|
12
|
+
.html/.vue/.svelte/.astro → Biome check --write
|
|
13
|
+
.sh/.bash/.zsh/.mksh/.bats → shfmt -w
|
|
14
|
+
.md/.markdown → dprint fmt
|
|
15
|
+
.yaml/.yml → dprint fmt
|
|
16
|
+
.toml → dprint fmt
|
|
17
|
+
Dockerfile / .dockerfile → dprint fmt
|
|
18
|
+
.rs → rustfmt
|
|
11
19
|
|
|
12
20
|
Always cleans up the temp file. Always exits 0.
|
|
13
21
|
"""
|
|
@@ -18,7 +26,8 @@ import subprocess
|
|
|
18
26
|
import sys
|
|
19
27
|
from pathlib import Path
|
|
20
28
|
|
|
21
|
-
#
|
|
29
|
+
# ── Extension sets ──────────────────────────────────────────────────
|
|
30
|
+
|
|
22
31
|
PYTHON_EXTS = {".py", ".pyi"}
|
|
23
32
|
GO_EXTS = {".go"}
|
|
24
33
|
BIOME_EXTS = {
|
|
@@ -31,13 +40,29 @@ BIOME_EXTS = {
|
|
|
31
40
|
".mts",
|
|
32
41
|
".cts",
|
|
33
42
|
".css",
|
|
43
|
+
".json",
|
|
44
|
+
".jsonc",
|
|
45
|
+
".graphql",
|
|
46
|
+
".gql",
|
|
47
|
+
".html",
|
|
48
|
+
".vue",
|
|
49
|
+
".svelte",
|
|
50
|
+
".astro",
|
|
34
51
|
}
|
|
52
|
+
SHELL_EXTS = {".sh", ".bash", ".zsh", ".mksh", ".bats"}
|
|
53
|
+
DPRINT_EXTS = {".md", ".markdown", ".yaml", ".yml", ".toml"}
|
|
54
|
+
RUST_EXTS = {".rs"}
|
|
55
|
+
|
|
56
|
+
# ── Fallback paths ──────────────────────────────────────────────────
|
|
35
57
|
|
|
36
58
|
BLACK_PATH_FALLBACK = "/usr/local/py-utils/bin/black"
|
|
37
59
|
GOFMT_PATH_FALLBACK = "/usr/local/go/bin/gofmt"
|
|
60
|
+
DPRINT_CONFIG = "/usr/local/share/dprint/dprint.json"
|
|
61
|
+
|
|
62
|
+
# ── Tool resolution ─────────────────────────────────────────────────
|
|
38
63
|
|
|
39
64
|
|
|
40
|
-
def _resolve_tool(name: str, fallback: str) -> str | None:
|
|
65
|
+
def _resolve_tool(name: str, fallback: str = "") -> str | None:
|
|
41
66
|
"""Find tool via PATH first, fall back to hardcoded path."""
|
|
42
67
|
try:
|
|
43
68
|
result = subprocess.run(["which", name], capture_output=True, text=True)
|
|
@@ -45,7 +70,7 @@ def _resolve_tool(name: str, fallback: str) -> str | None:
|
|
|
45
70
|
return result.stdout.strip()
|
|
46
71
|
except Exception:
|
|
47
72
|
pass
|
|
48
|
-
if os.path.exists(fallback):
|
|
73
|
+
if fallback and os.path.exists(fallback):
|
|
49
74
|
return fallback
|
|
50
75
|
return None
|
|
51
76
|
|
|
@@ -87,8 +112,24 @@ def find_biome(file_path: str) -> str | None:
|
|
|
87
112
|
return find_global_tool("biome")
|
|
88
113
|
|
|
89
114
|
|
|
115
|
+
# ── Formatters ──────────────────────────────────────────────────────
|
|
116
|
+
|
|
117
|
+
|
|
90
118
|
def format_python(file_path: str) -> None:
|
|
91
|
-
"""Format with Black (
|
|
119
|
+
"""Format with Ruff (preferred) or Black (fallback)."""
|
|
120
|
+
ruff = _resolve_tool("ruff")
|
|
121
|
+
if ruff:
|
|
122
|
+
try:
|
|
123
|
+
subprocess.run(
|
|
124
|
+
[ruff, "format", "--quiet", file_path],
|
|
125
|
+
capture_output=True,
|
|
126
|
+
timeout=10,
|
|
127
|
+
)
|
|
128
|
+
return
|
|
129
|
+
except (subprocess.TimeoutExpired, OSError):
|
|
130
|
+
pass
|
|
131
|
+
|
|
132
|
+
# Fallback to Black
|
|
92
133
|
black = _resolve_tool("black", BLACK_PATH_FALLBACK)
|
|
93
134
|
if not black:
|
|
94
135
|
return
|
|
@@ -132,15 +173,79 @@ def format_biome(file_path: str) -> None:
|
|
|
132
173
|
pass
|
|
133
174
|
|
|
134
175
|
|
|
176
|
+
def format_shell(file_path: str) -> None:
|
|
177
|
+
"""Format with shfmt."""
|
|
178
|
+
shfmt = _resolve_tool("shfmt")
|
|
179
|
+
if not shfmt:
|
|
180
|
+
return
|
|
181
|
+
try:
|
|
182
|
+
subprocess.run(
|
|
183
|
+
[shfmt, "-w", file_path],
|
|
184
|
+
capture_output=True,
|
|
185
|
+
timeout=10,
|
|
186
|
+
)
|
|
187
|
+
except (subprocess.TimeoutExpired, OSError):
|
|
188
|
+
pass
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def format_dprint(file_path: str) -> None:
|
|
192
|
+
"""Format with dprint using the global config."""
|
|
193
|
+
dprint = _resolve_tool("dprint")
|
|
194
|
+
if not dprint:
|
|
195
|
+
return
|
|
196
|
+
if not os.path.isfile(DPRINT_CONFIG):
|
|
197
|
+
return
|
|
198
|
+
try:
|
|
199
|
+
subprocess.run(
|
|
200
|
+
[dprint, "fmt", "--config", DPRINT_CONFIG, file_path],
|
|
201
|
+
capture_output=True,
|
|
202
|
+
timeout=10,
|
|
203
|
+
)
|
|
204
|
+
except (subprocess.TimeoutExpired, OSError):
|
|
205
|
+
pass
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
def format_rust(file_path: str) -> None:
|
|
209
|
+
"""Format with rustfmt (conditional — only if installed)."""
|
|
210
|
+
rustfmt = _resolve_tool("rustfmt")
|
|
211
|
+
if not rustfmt:
|
|
212
|
+
return
|
|
213
|
+
try:
|
|
214
|
+
subprocess.run(
|
|
215
|
+
[rustfmt, file_path],
|
|
216
|
+
capture_output=True,
|
|
217
|
+
timeout=10,
|
|
218
|
+
)
|
|
219
|
+
except (subprocess.TimeoutExpired, OSError):
|
|
220
|
+
pass
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
# ── Dispatch ────────────────────────────────────────────────────────
|
|
224
|
+
|
|
225
|
+
|
|
135
226
|
def format_file(file_path: str) -> None:
|
|
136
|
-
"""Dispatch to the correct formatter based on extension."""
|
|
137
|
-
|
|
227
|
+
"""Dispatch to the correct formatter based on extension / filename."""
|
|
228
|
+
path = Path(file_path)
|
|
229
|
+
ext = path.suffix.lower()
|
|
230
|
+
name = path.name
|
|
231
|
+
|
|
138
232
|
if ext in PYTHON_EXTS:
|
|
139
233
|
format_python(file_path)
|
|
140
234
|
elif ext in GO_EXTS:
|
|
141
235
|
format_go(file_path)
|
|
142
236
|
elif ext in BIOME_EXTS:
|
|
143
237
|
format_biome(file_path)
|
|
238
|
+
elif ext in SHELL_EXTS:
|
|
239
|
+
format_shell(file_path)
|
|
240
|
+
elif ext in DPRINT_EXTS:
|
|
241
|
+
format_dprint(file_path)
|
|
242
|
+
elif ext in RUST_EXTS:
|
|
243
|
+
format_rust(file_path)
|
|
244
|
+
elif name == "Dockerfile" or ext == ".dockerfile":
|
|
245
|
+
format_dprint(file_path)
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
# ── Main ────────────────────────────────────────────────────────────
|
|
144
249
|
|
|
145
250
|
|
|
146
251
|
def main():
|
package/.devcontainer/plugins/devs-marketplace/plugins/auto-linter/.claude-plugin/plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auto-linter",
|
|
3
|
-
"description": "Auto-lints files
|
|
3
|
+
"description": "Auto-lints edited files at Stop (Pyright + Ruff for Python, Biome for JS/TS/CSS/GraphQL, ShellCheck for Shell, go vet for Go, hadolint for Dockerfile, clippy for Rust)",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "AnExiledDev"
|
|
6
6
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "
|
|
2
|
+
"description": "Batch-lint collected files when Claude stops responding",
|
|
3
3
|
"hooks": {
|
|
4
|
-
"
|
|
4
|
+
"Stop": [
|
|
5
5
|
{
|
|
6
|
-
"matcher": "
|
|
6
|
+
"matcher": "",
|
|
7
7
|
"hooks": [
|
|
8
8
|
{
|
|
9
9
|
"type": "command",
|
|
10
10
|
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/lint-file.py",
|
|
11
|
-
"timeout":
|
|
12
|
-
"async": true
|
|
11
|
+
"timeout": 60
|
|
13
12
|
}
|
|
14
13
|
]
|
|
15
14
|
}
|