@dtt_siye/atool 1.6.0 → 1.6.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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dtt_siye/atool",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "AI Developer Toolkit - 一键配置 AI IDE 的工具集",
5
5
  "bin": {
6
6
  "atool": "bin/atool.js"
@@ -378,7 +378,7 @@ jq '.refine_status' .atool-docs/analysis-state.json
378
378
  | 问题 | 诊断命令 | 解决方案 |
379
379
  |------|---------|---------|
380
380
  | 没有检测到模块 | `cat .atool-docs/pre-scan/manifest.json \| jq '.modules'` | 检查源文件格式或 detect-stack 规则 |
381
- | phase3_graph 失败 | `cat .atool-docs/analysis-state.json \| jq '.phases.phase3_graph'` | 运行 `source lib/knowledge-graph.sh; assemble_enhanced_graph` 检查错误 |
381
+ | phase3_graph 失败 | `cat .atool-docs/analysis-state.json \| jq '.phases.phase3_graph'` | 运行 `source "$HOME/.claude/skills/project-analyze/lib/knowledge-graph.sh"; assemble_enhanced_graph` 检查错误 |
382
382
  | Sub-agent 无法读文件 | `cat .atool-docs/modules/{name}/data.json` | 检查 Phase 2 初稿是否生成 |
383
383
  | 精炼 Gate 失败 | `cat atool-analysis/modules/{name}/prd.md \| wc -l` | PRD 文件小于 30 行,需要扩展初稿 |
384
384
 
@@ -19,7 +19,7 @@
19
19
  > PROJECT_ROOT="$(pwd)"
20
20
  > DOCS_DIR="$PROJECT_ROOT/.atool-docs"
21
21
  > mkdir -p "$DOCS_DIR"
22
- > source lib/detect-stack.sh 2>/dev/null || true
22
+ > source "$HOME/.claude/skills/project-analyze/lib/detect-stack.sh" 2>/dev/null || source lib/detect-stack.sh 2>/dev/null || true
23
23
  > STACK=$(detect_stack "$PROJECT_ROOT" 2>/dev/null || echo "unknown")
24
24
  > FILE_COUNT=$(find "$PROJECT_ROOT" -type f \
25
25
  > ! -path "*/node_modules/*" ! -path "*/.git/*" \
@@ -50,7 +50,7 @@
50
50
  > PROJECT_ROOT="$(pwd)"
51
51
  > DOCS_DIR="$PROJECT_ROOT/.atool-docs"
52
52
  > mkdir -p "$DOCS_DIR/pre-scan"
53
- > source lib/pre-scan.sh 2>/dev/null
53
+ > source "$HOME/.claude/skills/project-analyze/lib/pre-scan.sh" 2>/dev/null || source lib/pre-scan.sh 2>/dev/null || true
54
54
  > pre_scan_project "$PROJECT_ROOT" "$DOCS_DIR/pre-scan" 2>/dev/null
55
55
  > if [ -f "$DOCS_DIR/pre-scan/manifest.json" ]; then
56
56
  > echo "Pre-scan OK: $(jq '.modules | length' "$DOCS_DIR/pre-scan/manifest.json" 2>/dev/null || echo '?') modules"
@@ -154,8 +154,8 @@
154
154
  如果 `lib/compute-importance.sh` 可用,运行重要性评分:
155
155
  > **执行命令(可选):**
156
156
  > ```bash
157
- > source lib/compute-importance.sh 2>/dev/null && \
158
- > compute_importance_batch "$DOCS_DIR/pre-scan/manifest.json" "$PROJECT_ROOT" 2>/dev/null && \
157
+ > source "$HOME/.claude/skills/project-analyze/lib/compute-importance.sh" 2>/dev/null || source lib/compute-importance.sh 2>/dev/null || true
158
+ > compute_importance_batch "$DOCS_DIR/pre-scan/manifest.json" "$PROJECT_ROOT" 2>/dev/null && \
159
159
  > echo "Importance scoring done" || echo "Importance scoring skipped"
160
160
  > ```
161
161
 
@@ -56,7 +56,7 @@
56
56
  > PROJECT_ROOT="$(pwd)"
57
57
  > DOCS_DIR="$PROJECT_ROOT/.atool-docs"
58
58
  > cd "$PROJECT_ROOT"
59
- > source lib/knowledge-graph.sh 2>/dev/null
59
+ > source "$HOME/.claude/skills/project-analyze/lib/knowledge-graph.sh" 2>/dev/null || source lib/knowledge-graph.sh 2>/dev/null || true
60
60
  > assemble_enhanced_graph "$DOCS_DIR" "$PROJECT_ROOT" 2>/dev/null
61
61
  > if [ -f "$DOCS_DIR/knowledge-graph.json" ]; then
62
62
  > NODES=$(jq '.nodes | length' "$DOCS_DIR/knowledge-graph.json" 2>/dev/null || echo 0)
@@ -77,7 +77,7 @@
77
77
  > PROJECT_ROOT="$(pwd)"
78
78
  > DOCS_DIR="$PROJECT_ROOT/.atool-docs"
79
79
  > cd "$PROJECT_ROOT"
80
- > source lib/multi-dimensional-analysis.sh 2>/dev/null
80
+ > source "$HOME/.claude/skills/project-analyze/lib/multi-dimensional-analysis.sh" 2>/dev/null || source lib/multi-dimensional-analysis.sh 2>/dev/null || true
81
81
  > run_multi_dimensional_analysis "$DOCS_DIR" 2>/dev/null
82
82
  > if [ -f "$DOCS_DIR/multi-dimensional-analysis.json" ]; then
83
83
  > echo "Multi-dimensional analysis complete"
@@ -92,11 +92,15 @@
92
92
  > ```bash
93
93
  > PROJECT_ROOT="$(pwd)"
94
94
  > cd "$PROJECT_ROOT"
95
- > if [ -f "lib/export-analysis.sh" ]; then
95
+ > _SKILL_LIB="$HOME/.claude/skills/project-analyze/lib"
96
+ > if [ -f "$_SKILL_LIB/export-analysis.sh" ]; then
97
+ > source "$_SKILL_LIB/export-analysis.sh"
98
+ > register_project "$PROJECT_ROOT"
99
+ > elif [ -f "lib/export-analysis.sh" ]; then
96
100
  > source lib/export-analysis.sh
97
101
  > register_project "$PROJECT_ROOT"
98
102
  > else
99
- > echo "WARNING: lib/export-analysis.sh not found — project not registered in ~/.atool/projects.json"
103
+ > echo "WARNING: export-analysis.sh not found — project not registered in ~/.atool/projects.json"
100
104
  > echo "Manual registration: add entry to ~/.atool/projects.json"
101
105
  > fi
102
106
  > ```
@@ -113,7 +117,15 @@
113
117
  > # 检查 knowledge-graph.json 是否存在
114
118
  > if [ -f "$DOCS_DIR/knowledge-graph.json" ]; then
115
119
  > # 调用 generate-visualization.sh
116
- > if [ -f "$PROJECT_ROOT/lib/generate-visualization.sh" ]; then
120
+ > _SKILL_LIB="$HOME/.claude/skills/project-analyze/lib"
121
+ > if [ -f "$_SKILL_LIB/generate-visualization.sh" ]; then
122
+ > source "$_SKILL_LIB/generate-visualization.sh"
123
+ > generate_visualization "$DOCS_DIR"
124
+ > if [ -f "$DOCS_DIR/visualization/index.html" ]; then
125
+ > echo "✅ Visualization generated: $DOCS_DIR/visualization/index.html"
126
+ > du -h "$DOCS_DIR/visualization/index.html" | awk '{print "Size: " $1}'
127
+ > fi
128
+ > elif [ -f "$PROJECT_ROOT/lib/generate-visualization.sh" ]; then
117
129
  > source "$PROJECT_ROOT/lib/generate-visualization.sh"
118
130
  > generate_visualization "$DOCS_DIR"
119
131
  > if [ -f "$DOCS_DIR/visualization/index.html" ]; then
@@ -121,7 +133,7 @@
121
133
  > du -h "$DOCS_DIR/visualization/index.html" | awk '{print "Size: " $1}'
122
134
  > fi
123
135
  > else
124
- > echo "⚠️ lib/generate-visualization.sh not found — skipping visualization"
136
+ > echo "⚠️ generate-visualization.sh not found — skipping visualization"
125
137
  > fi
126
138
  > else
127
139
  > echo "⚠️ knowledge-graph.json not found — cannot generate visualization"