aodw-skill 0.7.23 → 0.7.24
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.
|
@@ -10,7 +10,7 @@ const OVERVIEW_FILE = `${CORE_DIR}/06-project/ai-overview.md`;
|
|
|
10
10
|
const MODULES_INDEX_FILE = `${CORE_DIR}/06-project/modules-index.yaml`;
|
|
11
11
|
|
|
12
12
|
// 检测技术栈
|
|
13
|
-
async function detectTechStack() {
|
|
13
|
+
export async function detectTechStack() {
|
|
14
14
|
const cwd = process.cwd();
|
|
15
15
|
const techStack = {
|
|
16
16
|
frontend: [],
|
|
@@ -228,7 +228,7 @@ async function detectTechStack() {
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
// 分析目录结构
|
|
231
|
-
async function analyzeDirectoryStructure() {
|
|
231
|
+
export async function analyzeDirectoryStructure() {
|
|
232
232
|
const cwd = process.cwd();
|
|
233
233
|
const structure = [];
|
|
234
234
|
const keyDirs = ['frontend', 'backend', 'apps', 'packages', 'src', 'lib', 'infra', 'docs', 'RT', CORE_DIR];
|
|
@@ -275,7 +275,7 @@ function getDefaultDescription(dir) {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
// 识别模块
|
|
278
|
-
async function detectModules() {
|
|
278
|
+
export async function detectModules() {
|
|
279
279
|
const cwd = process.cwd();
|
|
280
280
|
const modules = [];
|
|
281
281
|
const seenModules = new Set(); // 避免重复
|
|
@@ -609,7 +609,7 @@ AI 在创建新模块或重构模块结构时,应同步维护此映射关系
|
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
// 生成 ai-overview.md
|
|
612
|
-
async function generateOverviewFile(merged, existing, modules) {
|
|
612
|
+
export async function generateOverviewFile(merged, existing, modules) {
|
|
613
613
|
// 生成架构概览部分
|
|
614
614
|
const architectureSection = generateArchitectureSection(existing?.sections?.architecture);
|
|
615
615
|
|
|
@@ -681,7 +681,7 @@ ${moduleMappingSection}
|
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
// 生成 modules-index.yaml
|
|
684
|
-
async function generateModulesIndex(modules) {
|
|
684
|
+
export async function generateModulesIndex(modules) {
|
|
685
685
|
const index = {
|
|
686
686
|
version: 1,
|
|
687
687
|
last_updated: new Date().toISOString(),
|