{
  "snapshot": {
    "captured_at": "2026-10-07T11:12:00+08:00",
    "captured_by": "DSH agent",
    "purpose": "《我要当市长》新项目 NAS 开发环境基线快照（只检查，不开发）",
    "new_project_path": "/vol1/ai/projects/wyszz-new",
    "old_project_path_readonly": "/vol1/ai/projects/little-town",
    "old_project_modified": false
  },
  "system": {
    "os": {
      "pretty_name": "Debian GNU/Linux 12 (bookworm)",
      "id": "debian",
      "version_id": "12",
      "version_codename": "bookworm"
    },
    "fnos_version": "1.2.0604",
    "fnos_version_source": "/usr/trim/etc/version",
    "kernel": "6.18.18.c1032-trim",
    "kernel_full": "Linux homeNAS 6.18.18.c1032-trim #1032 SMP PREEMPT_DYNAMIC Fri Aug 21 01:49:29 UTC 2026 x86_64 GNU/Linux",
    "hostname": "homeNAS",
    "arch": "x86_64",
    "cpu": {
      "cores_nproc": 16,
      "cores_proc_cpuinfo": 16,
      "igpu": "Intel Corporation Alder Lake-S GT1 [UHD Graphics 730]",
      "dri_devices": ["/dev/dri/card0", "/dev/dri/renderD128"]
    },
    "memory": {
      "total": "15Gi",
      "used": "10Gi",
      "free": "1.2Gi",
      "shared": "99Mi",
      "buff_cache": "3.6Gi",
      "available": "4.5Gi",
      "swap_total": "8.0Gi",
      "swap_used": "1.9Gi",
      "swap_free": "6.1Gi"
    },
    "disk": [
      { "mount": "/", "device": "/dev/nvme0n1p2", "size": "98G", "used": "21G", "avail": "73G", "use_pct": "22%" },
      { "mount": "/mnt/ssd", "device": "/dev/nvme0n1p3", "size": "359G", "used": "37G", "avail": "304G", "use_pct": "11%" },
      { "mount": "/vol1", "device": "/dev/mapper/trim_c7df4867_51f3_4b98_b139_2f98c836e3bd-0", "size": "5.5T", "used": "286G", "avail": "5.2T", "use_pct": "6%" },
      { "mount": "/fs", "device": "trimafs", "size": "5.5T", "used": "286G", "avail": "5.2T", "use_pct": "6%" },
      { "mount": "/dev/shm", "device": "tmpfs", "size": "7.7G", "used": "1.4M", "avail": "7.7G", "use_pct": "1%" }
    ],
    "projects_fs": {
      "mount_target": "/vol1/ai/projects",
      "source": "/dev/nvme0n1p3[/projects]",
      "fstype": "ext4",
      "options": "rw,noatime",
      "exists": true,
      "writable": true,
      "write_test": "passed (create + delete temp file)"
    },
    "user": {
      "uid": 0,
      "user": "root",
      "gid": 0,
      "groups": ["0"],
      "home": "/vol1/ai/home",
      "real_system_user": "homeNAS (uid 1000, gid 1001)"
    },
    "package_managers": {
      "apt": "/usr/bin/apt",
      "apt_get": "/usr/bin/apt-get",
      "dpkg": "/usr/bin/dpkg",
      "absent": ["yum", "dnf", "rpm", "apk", "pacman", "zypper", "snap", "flatpak"]
    },
    "docker": {
      "installed": true,
      "version": "28.5.2",
      "build": "ecc6942",
      "compose_plugin_version": "v2.40.3",
      "compose_standalone": false,
      "used_this_session": false,
      "containers_created": 0
    },
    "gui": {
      "display": null,
      "wayland_display": null,
      "xdg_session_type": null,
      "display_managers_installed": [],
      "desktop_environments_installed": [],
      "xsessions_entries": ["openbox.desktop"],
      "xrdp": false,
      "vnc_server": false,
      "xvfb": { "installed": true, "version": "2:21.1.7-3+deb12u13" },
      "mesa_libs": ["libgl1 1.6.0-1", "libegl-mesa0 22.3.6-1+deb12u1", "mesa-vulkan-drivers 25.0.7-2~bpo12+1"],
      "systemd_default_target": "graphical.target",
      "graphical_target_state": "active",
      "interactive_desktop_available": false
    }
  },
  "tools": {
    "git": { "installed": true, "version": "2.39.5", "path": "/usr/bin/git", "apt_candidate": "1:2.39.5-0+deb12u3" },
    "curl": { "installed": true, "version": "7.88.1", "ssl": "OpenSSL/3.0.22", "path": "/usr/bin/curl" },
    "wget": { "installed": true, "version": "1.21.3", "path": "/usr/bin/wget" },
    "unzip": { "installed": true, "version": "6.00", "path": "/usr/bin/unzip" },
    "zip": { "installed": true, "version": "3.0", "path": "/usr/bin/zip" },
    "python3": { "installed": true, "version": "3.11.2", "path": "/usr/bin/python3" },
    "node": { "installed": true, "version": "v24.15.0", "path": "/mnt/ssd/apps/nodejs_v24/bin/node", "source": "standalone (not apt)" },
    "npm": { "installed": true, "version": "11.12.1", "path": "/mnt/ssd/apps/nodejs_v24/bin/npm", "prefix": "/mnt/ssd/apps/nodejs_v24", "registry": "https://registry.npmjs.org/" },
    "pnpm": { "installed": true, "version": "12.6.0", "path": "/mnt/ssd/apps/nodejs_v24/bin/pnpm" },
    "jq": { "installed": true, "version": "1.6", "path": "/usr/bin/jq" },
    "docker": { "installed": true, "version": "28.5.2", "path": "/usr/bin/docker" },
    "docker_compose": { "installed": true, "version": "v2.40.3", "invocation": "docker compose" },
    "missing_from_recommended_list": []
  },
  "node_fallbacks": {
    "nodejs_v22": { "path": "/mnt/ssd/apps/nodejs_v22/bin/node", "version": "v22.18.0", "npm": "10.9.3" },
    "apt_nodejs": { "candidate": "18.20.4+dfsg-1~deb12u3", "installed": false },
    "version_managers": { "nvm": false, "fnm": false, "volta": false }
  },
  "network_reachability": {
    "registry.npmjs.org": 200,
    "deb.debian.org": 200,
    "note": "reachability probe only; nothing was downloaded"
  },
  "installation_actions": {
    "installed": [],
    "upgraded": [],
    "removed": [],
    "count": 0,
    "reason": "all recommended tools already present; per instruction do not reinstall existing working versions"
  },
  "cocos_creator": {
    "official_linux_editor": false,
    "official_supported_os": ["Windows 7 64-bit or later", "macOS 10.9 or later"],
    "official_source": "https://docs.cocos.com/creator/3.8/manual/zh/getting-started/install/index.html",
    "official_download_page": "https://www.cocos.com/creator-download",
    "cpu_arch_supported_by_cocos": true,
    "cpu_arch_note": "x86_64 is officially supported, but no Linux editor binary exists",
    "requires_gui": true,
    "requires_gpu_rendering": true,
    "remote_desktop_feasible_now": false,
    "remote_desktop_reason": "no Linux editor to run; no xrdp/vnc/display-manager installed on this NAS",
    "can_create_project_on_nas": false,
    "can_preview_on_nas": false,
    "can_cli_build_on_nas": false,
    "cli_build_note": "official command-line build invokes the editor binary; docs list only macOS and Windows paths",
    "needs_other_os_for_editor": true,
    "unofficial_linux_port_used": false,
    "conclusion": "NAS 可作为项目文件、脚本和构建辅助环境，但 Cocos Creator 编辑器需要其他系统运行。"
  },
  "wechat_devtools": {
    "official_linux_version": false,
    "official_downloads": ["Windows 64", "Windows 32", "macOS x64", "macOS ARM64"],
    "stable_version": "2.01.2510260",
    "official_source": "https://developers.weixin.qq.com/miniprogram/dev/devtools/download_backup.html",
    "bundles_own_runtime": true,
    "runtime_note": "NW.js based; nightly uses NW.js 0.54.1 / 0.81.1 (node 20.7.0); does not depend on system Node.js",
    "must_run_on_windows_or_macos": true
  },
  "node_compatibility_findings": {
    "system_node_affects_cocos_editor": false,
    "reason": "Cocos Creator editor bundles its own Electron/Node runtime (3.8.5 upgraded editor Electron to 31.3.1)",
    "official_node_requirements_found": [
      "custom engine compilation requires NodeJS v12.0 or higher (Cocos forum)",
      "Cocos Creator 3.8.2 LTS: engine repo dev environment adapted to NodeJS 18.x",
      "Cocos Creator 3.8.4: Xiaomi packaging tool supports node 18 or higher"
    ],
    "node24_officially_confirmed": false,
    "decision": "keep current state, do not install or downgrade; report as unverified",
    "per_instruction": "如果无法确认兼容性，保留现状并报告"
  },
  "directories_created": [
    "/vol1/ai/projects/wyszz-new",
    "/vol1/ai/projects/wyszz-new/docs",
    "/vol1/ai/projects/wyszz-new/tools",
    "/vol1/ai/projects/wyszz-new/config"
  ],
  "open_items": [
    "确认是否有可用的 Windows 或 macOS 机器运行 Cocos Creator 与微信开发者工具",
    "确认 wyszz-new 目录属主是否需要从 root:root 改为 197609:197121 以便飞牛文件管理器/SMB 访问",
    "确认 Node 策略：接受现状 v24.15.0，还是为引擎级编译准备 Node 18/22",
    "确认是否需要为 NAS 搭建远程桌面（本轮未安装任何远程桌面组件）"
  ]
}
