ai-global 2.7.0 → 2.8.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/ai-global +3 -7
- package/package.json +1 -1
package/ai-global
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# https://github.com/nanxiaobei/ai-global
|
|
5
5
|
|
|
6
6
|
# Version
|
|
7
|
-
VERSION="2.
|
|
7
|
+
VERSION="2.8.0"
|
|
8
8
|
|
|
9
9
|
# Known AI tool patterns
|
|
10
10
|
# Format: nodes|key|name|agents_md|rules|commands|skills|color
|
|
@@ -157,13 +157,9 @@ update_links() {
|
|
|
157
157
|
echo "" >> "$target_dir"
|
|
158
158
|
fi
|
|
159
159
|
else
|
|
160
|
-
# Copy all files (overwrite if exists)
|
|
161
|
-
find "$type_dir" -type f -
|
|
160
|
+
# Copy all files (overwrite if exists)
|
|
161
|
+
find "$type_dir" -type f -print0 2> /dev/null | while IFS= read -r -d '' file_dir; do
|
|
162
162
|
local rel_path="${file_dir#$type_dir/}"
|
|
163
|
-
# Skip if path contains any hidden directory component (at start or after /)
|
|
164
|
-
if [[ "$rel_path" =~ (^|/)\.[^/]+(/|$) ]]; then
|
|
165
|
-
continue
|
|
166
|
-
fi
|
|
167
163
|
local target_file="$target_dir/$rel_path"
|
|
168
164
|
mkdir -p "$(dirname "$target_file")" 2> /dev/null
|
|
169
165
|
cp "$file_dir" "$target_file" 2> /dev/null || true
|