@dtt_siye/atool 1.3.0 → 1.3.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/lib/install-skills.sh +16 -0
- package/lib/knowledge-graph.sh +483 -81
- package/lib/pre-scan.sh +70 -5
- package/package.json +1 -1
- package/skills/project-analyze/SKILL.md +34 -15
- package/skills/project-analyze/phases/phase2-understand.md +7 -1
- package/skills/project-analyze/phases/phase2.5-refine.md +284 -0
- package/skills/project-analyze/phases/phase4-synthesize.md +100 -119
- package/skills/project-analyze/phases/phase5-export.md +78 -32
- package/skills/project-analyze/prompts/understand-agent.md +17 -0
- package/skills/project-analyze/rules/android.md +61 -260
- package/skills/project-analyze/rules/devops.md +61 -421
- package/skills/project-analyze/rules/generic.md +53 -221
- package/skills/project-analyze/rules/go.md +60 -275
- package/skills/project-analyze/rules/harmony.md +64 -237
- package/skills/project-analyze/rules/java.md +47 -485
- package/skills/project-analyze/rules/mobile-flutter.md +57 -292
- package/skills/project-analyze/rules/mobile-react-native.md +65 -262
- package/skills/project-analyze/rules/mobile-swift.md +58 -303
- package/skills/project-analyze/rules/python.md +50 -296
- package/skills/project-analyze/rules/rust-tauri.md +51 -217
- package/skills/project-analyze/rules/rust.md +50 -274
- package/skills/project-analyze/rules/web-nextjs.md +61 -335
- package/skills/project-analyze/rules/web-react.md +50 -272
- package/skills/project-analyze/rules/web-vue.md +58 -352
- package/skills/project-analyze/rules/web.md +55 -347
- package/skills/requirements-writer/SKILL.md +48 -1
- package/skills/software-architecture/SKILL.md +73 -3
package/lib/install-skills.sh
CHANGED
|
@@ -118,6 +118,22 @@ install_skills() {
|
|
|
118
118
|
run_cmd cp -r "$skill_dir" "$target_skill"
|
|
119
119
|
write_skill_version_marker "$target_skill" "$source_ver"
|
|
120
120
|
|
|
121
|
+
# Copy referenced lib/ scripts into skill's lib/ subdirectory
|
|
122
|
+
# Skills reference scripts via "source lib/X.sh" relative to the skill dir
|
|
123
|
+
local skill_lib_dir="$target_skill/lib"
|
|
124
|
+
local referenced_libs
|
|
125
|
+
referenced_libs=$(find "$target_skill/phases" "$target_skill" -maxdepth 2 -name '*.md' -exec grep -roh 'source lib/[^ ]*\.sh' {} + 2>/dev/null \
|
|
126
|
+
| sed 's/source lib\///' | sort -u)
|
|
127
|
+
if [[ -n "$referenced_libs" ]]; then
|
|
128
|
+
run_cmd mkdir -p "$skill_lib_dir"
|
|
129
|
+
for lib_name in $referenced_libs; do
|
|
130
|
+
local lib_src="$atool_root/lib/$lib_name"
|
|
131
|
+
if [[ -f "$lib_src" ]]; then
|
|
132
|
+
run_cmd cp "$lib_src" "$skill_lib_dir/$lib_name"
|
|
133
|
+
fi
|
|
134
|
+
done
|
|
135
|
+
fi
|
|
136
|
+
|
|
121
137
|
if [[ "$installed_ver" != "none" ]] && [[ "$installed_ver" != "$source_ver" ]]; then
|
|
122
138
|
log_info "Updated skill: $skill_name"
|
|
123
139
|
else
|