{
  "name": "nice-aos",
  "version": "0.42.2",
  "description": "nice-aos —— 通用前端代码本体 / 数据库脚本 / 部署配置 / Java 后端服务蓝图 / 产品规划PRD文档蓝图 / Python 后端脚本 / PHP-Kotlin 后端分析 CLI（React / Vue 2+3 / Flutter / Go / Python / PHP / Kotlin / 油猴脚本 / MySQL 迁移脚本 / Dockerfile+Compose+K8s+nginx / asdm-aos Java 本体快照 / 规划管理库 PRD 文档）：扫描 React/TypeScript、Vue 2 Options API / Vue 3 SFC、Flutter/Dart、Go、Python、PHP（zentaopms 类）、Kotlin（Android/JVM）、Tampermonkey UserScript、Bash/PowerShell 脚本、CMake 构建脚本、Arch PKGBUILD、Nix flake 源码生成结构化本体快照；支持 MySQL 迁移脚本目录分析（Flyway 标准 / Sprint 非标准布局、多数据库、mysqldump 兼容），产出数据库模型（表/列/主键/外键/索引/迁移历史/领域分组/模式特征）和自包含数据蓝图 dataoverview HTML（SVG ER 关系图）；支持部署配置目录分析（docker-compose / K8s manifest / Dockerfile / nginx.conf / .env / shell），产出部署架构模型（服务/镜像/路由/依赖/中间件/环境/分层）和自包含部署蓝图 deployoverview HTML（分层拓扑 + SVG 依赖图 + 5 大审计场景）；支持基于 asdm-aos Java 后端本体快照生成后端服务蓝图（模块/分层/API 面/数据层/技术栈/代码质量/五维健康审计，8 Tab HTML，模块规则动态推导可配置）；支持产品规划/PRD 文档蓝图（扫描规划管理库特性 PRD/模块/发布/Roadmap，产出规划模型 planning-snapshot.json 与自包含 planning-overview HTML：特性/模块/依赖图谱/发布/战略/四维规划健康审计，内嵌 planning-viewer-data 供油猴脚本蓝图文案问答）；支持 Python 脚本/包实体分析（class/dataclass/abstract/继承/元类、def/async/装饰器/dunder/属性注解、import/from/as/wildcard、FastAPI/Flask/aiohttp/Sanic 路由、__all__/__main__ 入口/CLI 入口）；支持 PHP 实体分析（class/abstract/final/readonly、interface 多继承、trait 复用链、method/property、use Trait/别名/群组导入、namespace 归一、zentaopms control.php 路由）；支持 Kotlin 实体分析（class 5 变体含 data/sealed/object/enum/companion、interface、suspend fun、val/var、supertype 列表、import as/通配）；支持增量扫描；供 AI agent 与开发者毫秒级查询\n★ 三大核心命令（输入 / 输出 / 服务）：\n  ask       基于本体快照向 AI CLI（codebuddy/opencode）或模型服务（OpenAI 兼容，如 DeepSeek）提问；上下文 SQLite 预过滤，CLI 超时自动降级到模型服务\n  output    导出项目报告与蓝图（Markdown / JSON / HTML 蓝图 / viewmodel / 分层上下文文档树 docs；output = export 别名）\n  serve     启动本地数据源 HTTP 服务（CORS *），暴露快照、蓝图、/docs 项目文档在线浏览与 /api/* 端点给 AI agent 跨源拉取\n\n",
  "type": "module",
  "bin": {
    "nice-aos": "src/cli/index.js"
  },
  "engines": {
    "node": ">=18"
  },
  "keywords": [
    "code-ontology",
    "react",
    "vue",
    "flutter",
    "dart",
    "go",
    "golang",
    "typescript",
    "static-analysis",
    "code-map",
    "dependency-graph",
    "cli",
    "ai-agent",
    "mysql",
    "database",
    "schema",
    "migration",
    "er-diagram",
    "flyway",
    "deployment",
    "docker",
    "docker-compose",
    "kubernetes",
    "k8s",
    "nginx",
    "devops",
    "architecture-diagram",
    "java",
    "backend",
    "spring",
    "service-blueprint",
    "asdm-aos",
    "planning",
    "prd",
    "product-planning",
    "roadmap",
    "feature",
    "blueprint",
    "planning-blueprint",
    "python",
    "fastapi",
    "flask",
    "django",
    "chaquopy",
    "php",
    "kotlin",
    "zentaopms",
    "android",
    "trait",
    "shell",
    "bash",
    "powershell",
    "ps1",
    "cmake",
    "pkgbuild",
    "arch-linux",
    "nix",
    "flake",
    "context-docs",
    "docs-viewer"
  ],
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/SmallRob/nice-aos.git",
    "directory": "nice-aos"
  },
  "scripts": {
    "aos": "node src/cli/index.js --snapshot-dir ../.codebuddy/skills/nice-aos-skill/data",
    "aos:build": "node src/cli/index.js --snapshot-dir ../.codebuddy/skills/nice-aos-skill/data action refreshRepo --params \"{\\\"repoPath\\\":\\\"..\\\",\\\"roots\\\":[\\\"src\\\",\\\"nicekit/src\\\",\\\"nice-steam/src\\\"]}\"",
    "aos:report": "node src/cli/index.js --snapshot-dir ../.codebuddy/skills/nice-aos-skill/data export --format markdown --output ../.codebuddy/skills/nice-aos-skill/data/report.md",
    "aos:self": "node src/cli/index.js action refreshRepo --params \"{\\\"repoPath\\\":\\\".\\\",\\\"roots\\\":[\\\"src\\\"]}\"",
    "aos:self:report": "node src/cli/index.js export --format markdown --output .nice-aos/data/self-report.md",
    "test": "node --test \"test/*.test.mjs\" \"test/storage/*.test.mjs\""
  },
  "dependencies": {
    "@modelcontextprotocol/sdk": "^1.30.0",
    "commander": "^11.1.0",
    "typescript": "^5.8.0",
    "yaml": "^2.9.0"
  },
  "optionalDependencies": {
    "better-sqlite3": "^13.0.0"
  },
  "bundledDependencies": [
    "@modelcontextprotocol/sdk",
    "commander",
    "typescript",
    "yaml"
  ],
  "files": [
    "src/**",
    "skills/**/SKILL.md",
    "README.md",
    "CHANGELOG.md",
    "LICENSE"
  ]
}
