@pennyfarthing/core 8.0.0 → 8.0.1
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/package.json
CHANGED
|
@@ -36,12 +36,13 @@ if [[ "$_real_script_dir" == */pennyfarthing-dist/scripts/* ]]; then
|
|
|
36
36
|
_pkg_root="${_real_script_dir%/pennyfarthing-dist/scripts/*}"
|
|
37
37
|
|
|
38
38
|
# Determine context: framework dev or consumer?
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
PROJECT_ROOT="$_pkg_root"
|
|
42
|
-
elif [[ "$_pkg_root" == */node_modules/* ]]; then
|
|
39
|
+
# Check node_modules FIRST - if we're in node_modules, we're always a consumer
|
|
40
|
+
if [[ "$_pkg_root" == */node_modules/* ]]; then
|
|
43
41
|
# Consumer context: walk up from node_modules to project
|
|
44
42
|
PROJECT_ROOT="${_pkg_root%/node_modules/*}"
|
|
43
|
+
elif [[ -d "$_pkg_root/pennyfarthing-dist" && ! -L "$_pkg_root/pennyfarthing-dist" ]]; then
|
|
44
|
+
# Framework context: package root IS project root
|
|
45
|
+
PROJECT_ROOT="$_pkg_root"
|
|
45
46
|
else
|
|
46
47
|
PROJECT_ROOT="$_pkg_root"
|
|
47
48
|
fi
|
|
@@ -91,11 +91,17 @@ echo ""
|
|
|
91
91
|
MANAGED_PATHS=(
|
|
92
92
|
".claude/core"
|
|
93
93
|
".claude/skills"
|
|
94
|
+
".claude/commands"
|
|
94
95
|
".claude/personas"
|
|
95
96
|
".claude/pennyfarthing"
|
|
96
97
|
".claude/manifest.json"
|
|
97
98
|
".claude/settings.local.json"
|
|
98
99
|
".claude/statusline.sh"
|
|
100
|
+
".pennyfarthing/agents"
|
|
101
|
+
".pennyfarthing/guides"
|
|
102
|
+
".pennyfarthing/personas"
|
|
103
|
+
".pennyfarthing/scripts"
|
|
104
|
+
".pennyfarthing/workflows"
|
|
99
105
|
"scripts/core"
|
|
100
106
|
"scripts/hooks"
|
|
101
107
|
"scripts/lib"
|