# 📡 BC-000 · DEV-006小蔡同学 · 部署HoloLake本地日志系统（Windows）

**广播编号**：BC-000-DEV006

**下发时间**：2026-03-01

**执行者**：DEV-006 小蔡同学

**电脑**：Windows

**前置条件**：无

---

## 💙 知秋宝宝的话

小蔡同学你好！！💙

我是知秋，你的专属 AI 开发伙伴。

在我们开始做工单管理界面之前，先要在你的电脑里装一个**小机器人**。

**万一我们聊天窗口太长断开了，只要你运行一个命令把结果发给冰朔，我就能在新窗口里继续帮你，不会丢失任何进度。**

全程只需要复制粘贴，不需要懂任何技术！

---

## 📸 截图方法（每一步都要用）

同时按键盘三个键：`Win` + `Shift` + `S`

> `Win` 键 = 键盘左下角有四个小方块图案的键
> 

屏幕变暗后，用鼠标拖动框住要截的内容，松开。

打开微信或QQ，按 `Ctrl + V` 粘贴发给冰朔。

---

## 📋 步骤一：以管理员身份打开 PowerShell

1. 按 `Win` 键，搜索栏输入：`PowerShell`
2. 右键点击「Windows PowerShell」
3. 选「以管理员身份运行」
4. 弹出蓝色窗口就对了

📸 **截图蓝色窗口发给冰朔！**

---

## 📋 步骤二：查看 Windows 版本

右键粘贴以下内容，按回车：

```powershell
winver
```

会弹出一个小窗口显示你的 Windows 版本号。

📸 **截图这个小窗口发给冰朔！**

---

## 📋 步骤三：创建 DevLog 目录

```powershell
New-Item -Path "C:\HoloLake-DevLog" -ItemType Directory -Force
Set-Location "C:\HoloLake-DevLog"
Write-Host "✅ 目录创建成功: C:\HoloLake-DevLog" -ForegroundColor Green
```

看到绿色 `✅ 目录创建成功` 就对了。

📸 **截图发给冰朔！**

---

## 📋 步骤四：创建核心文件

```powershell
$devInfo = '{"developer_id":"DEV-006","developer_name":"小蔡同学","system":"Windows","terminal":"PowerShell","install_time":"' + (Get-Date -Format 'yyyy-MM-dd HH:mm:ss') + '","robot_version":"v0.0","current_task":"none","current_status":"idle","total_commands_logged":0,"skills_learned":[],"tasks_completed":[]}'
$devInfo | Out-File -FilePath "C:\HoloLake-DevLog\current-progress.json" -Encoding UTF8
'{"developer_id":"DEV-006","training_log":[],"robot_version":"v0.0","total_entries":0}' | Out-File -FilePath "C:\HoloLake-DevLog\training-data.json" -Encoding UTF8
'{"developer_id":"DEV-006","feedback_log":[],"suggestions":[]}' | Out-File -FilePath "C:\HoloLake-DevLog\robot-feedback.json" -Encoding UTF8
Write-Host "✅ 核心文件创建成功！" -ForegroundColor Green
```

📸 **截图发给冰朔！**

---

## 📋 步骤五：创建三个专属命令

```powershell
$functions = @'
function hololake-status {
    $p = Get-Content "C:\HoloLake-DevLog\current-progress.json" -Raw | ConvertFrom-Json
    Write-Host "======================================" -ForegroundColor Cyan
    Write-Host "  HoloLake DevLog - DEV-006 小蔡同学" -ForegroundColor Cyan
    Write-Host "======================================" -ForegroundColor Cyan
    Write-Host "  Robot Version: $($p.robot_version)" -ForegroundColor Yellow
    Write-Host "  Current Task: $($p.current_task)" -ForegroundColor White
    Write-Host "  Status: $($p.current_status)" -ForegroundColor White
    Write-Host "  System Running OK!" -ForegroundColor Green
    Write-Host "======================================" -ForegroundColor Cyan
}
function hololake-export {
    $p = Get-Content "C:\HoloLake-DevLog\current-progress.json" -Raw | ConvertFrom-Json
    $report = "HoloLake Export - DEV-006 小蔡同学`n" + (Get-Date -Format 'yyyy-MM-dd HH:mm:ss') + "`nTask: $($p.current_task)`nStatus: $($p.current_status)`nRobot: $($p.robot_version)"
    Write-Host $report
    $report | Set-Clipboard
    Write-Host "✅ 已复制到剪贴板！粘贴发给冰朔！" -ForegroundColor Green
}
function hololake-reset {
    $c = Read-Host "确认重置？(y/n)"
    if ($c -eq "y") {
        $d = '{"developer_id":"DEV-006","developer_name":"小蔡同学","system":"Windows","terminal":"PowerShell","robot_version":"v0.0","current_task":"none","current_status":"idle","total_commands_logged":0,"skills_learned":[],"tasks_completed":[]}'
        $d | Out-File "C:\HoloLake-DevLog\current-progress.json" -Encoding UTF8
        Write-Host "✅ 重置完成！" -ForegroundColor Green
    }
}
'@
if (!(Test-Path (Split-Path $PROFILE))) { New-Item -Path (Split-Path $PROFILE) -ItemType Directory -Force | Out-Null }
if (Test-Path $PROFILE) {
    if ((Get-Content $PROFILE -Raw) -notlike "*hololake-status*") { Add-Content $PROFILE "`n# HoloLake`n$functions" }
} else { $functions | Out-File $PROFILE -Encoding UTF8 }
Invoke-Expression $functions
Write-Host "✅ 三个命令创建完成！" -ForegroundColor Green
```

如果看到执行策略报错，先运行：

```powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
```

📸 **截图发给冰朔！**

---

## 📋 步骤六：验证 + 关闭重开确认永久生效

```powershell
hololake-status
```

看到 `System Running OK!` 和 `DEV-006 小蔡同学` = 成功！

关掉窗口，重新以管理员身份打开，再运行一次 `hololake-status`，还能看到 = **永久生效！** 🎉

然后运行：

```powershell
hololake-export
```

看到提示后 `Ctrl+V` 粘贴内容发给冰朔。

📸 **截图发给冰朔！**

---

## ✅ 完成后把下面这段复制发给冰朔

```xml
<zhiqiu-syslog>
  <header>
    <session_id>BC-000-XCT-001</session_id>
    <dev_id>DEV-006</dev_id>
    <timestamp>[完成时间]</timestamp>
  </header>
  <completion_status>
    <phase>BC-000 · DevLog部署</phase>
    <status>completed</status>
  </completion_status>
  <environment>
    <os>[winver显示的版本]</os>
    <devlog_path>C:\HoloLake-DevLog</devlog_path>
    <hololake_status>OK</hololake_status>
    <hololake_export>OK</hololake_export>
  </environment>
  <training_data>
    <what_worked>[哪些步骤顺利]</what_worked>
    <friction_points>[卡住的地方，没卡写无]</friction_points>
    <execution_pattern>稳</execution_pattern>
  </training_data>
  <notes><note>[想说的话，没有写无]</note></notes>
</zhiqiu-syslog>
```

---

💙 **知秋陪着小蔡同学！**

🌊 **DevLog 装好，断线也能续！**

🔥 **完成后截图 + 上面内容一起发给冰朔！**