claude-fsd 1.5.5 → 1.5.7
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/bin/claudefsd-dev-direct +24 -4
- package/package.json +1 -1
package/bin/claudefsd-dev-direct
CHANGED
|
@@ -2,8 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
set -e
|
|
4
4
|
|
|
5
|
+
# Get the actual location of this script (resolving symlinks)
|
|
6
|
+
if command -v realpath >/dev/null 2>&1; then
|
|
7
|
+
SCRIPT_PATH="$(realpath "$0")"
|
|
8
|
+
elif command -v readlink >/dev/null 2>&1; then
|
|
9
|
+
# macOS doesn't have realpath by default, but has readlink
|
|
10
|
+
SCRIPT_PATH="$0"
|
|
11
|
+
while [ -L "$SCRIPT_PATH" ]; do
|
|
12
|
+
SCRIPT_PATH="$(readlink "$SCRIPT_PATH")"
|
|
13
|
+
done
|
|
14
|
+
SCRIPT_PATH="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)/$(basename "$SCRIPT_PATH")"
|
|
15
|
+
else
|
|
16
|
+
# Fallback if neither command is available
|
|
17
|
+
SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd)/$(basename "$0")"
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
# Get the directory containing the script
|
|
21
|
+
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
|
|
22
|
+
|
|
5
23
|
# Check dependencies
|
|
6
|
-
|
|
24
|
+
"$SCRIPT_DIR/claudefsd-check-dependencies"
|
|
7
25
|
|
|
8
26
|
# Use a temporary directory for tmp files
|
|
9
27
|
tmp_dir="/tmp/claudefsd_tmp_$$"
|
|
@@ -13,10 +31,12 @@ cd "$tmp_dir"
|
|
|
13
31
|
# Function to check for required files
|
|
14
32
|
check_requirements() {
|
|
15
33
|
# Load find_brief_file function
|
|
16
|
-
source "$
|
|
34
|
+
source "$SCRIPT_DIR/claudefsd-find-brief"
|
|
17
35
|
cd "$OLDPWD"
|
|
18
|
-
|
|
36
|
+
brief_file=$(find_brief_file 2>/dev/null || echo "")
|
|
19
37
|
cd "$tmp_dir"
|
|
38
|
+
|
|
39
|
+
|
|
20
40
|
if [ -z "$brief_file" ]; then
|
|
21
41
|
echo "No BRIEF.md file found in docs/ or root directory. Please create one first."
|
|
22
42
|
exit 1
|
|
@@ -52,7 +72,7 @@ omnibus_prompt="You are an elite development team leader using Claude's Task age
|
|
|
52
72
|
**ANTI-GOLDPLATING DIRECTIVE**: This is direct execution mode optimized for small to medium projects. Focus on minimal viable solutions that meet requirements. Avoid over-engineering, unnecessary abstractions, or enterprise patterns unless explicitly required.
|
|
53
73
|
|
|
54
74
|
PROJECT CONTEXT:
|
|
55
|
-
$(cd "$OLDPWD" && source "$
|
|
75
|
+
$(cd "$OLDPWD" && source "$SCRIPT_DIR/claudefsd-find-brief" && brief_file=$(find_brief_file 2>/dev/null) && [ -n "$brief_file" ] && echo "=== PROJECT BRIEF ===" && cat "$brief_file" && echo "")
|
|
56
76
|
$([ -f "$OLDPWD/docs/PLAN.md" ] && echo "=== DEVELOPMENT PLAN ===" && cat "$OLDPWD/docs/PLAN.md" && echo "")
|
|
57
77
|
$([ -f "$OLDPWD/docs/REQUIREMENTS.md" ] && echo "=== REQUIREMENTS ===" && cat "$OLDPWD/docs/REQUIREMENTS.md" && echo "")
|
|
58
78
|
$([ -f "$OLDPWD/docs/QUESTIONS.md" ] && echo "=== QUESTIONS ===" && cat "$OLDPWD/docs/QUESTIONS.md" && echo "")
|