### Task 4: pack.sh PC 契约测试（RED）

**Files:**
- Create: `tests/deploy/baota/test-pack-web-hooks.sh`
- Modify: none yet

**Interfaces:**
- Consumes: fixtures
- Produces: 断言 `pack.sh` 含 `WEB_FRONTEND_DIR`、`NUXT_APP_BASE_URL`、`web/.output`、`assert_web` 等字符串（实现前失败）

```bash
#!/bin/bash
# tests/deploy/baota/test-pack-web-hooks.sh
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../../.." && pwd)"
PACK="$ROOT/deploy/baota/pack.sh"
grep -q 'WEB_FRONTEND_DIR' "$PACK"
grep -q 'NUXT_APP_BASE_URL=/web/' "$PACK"
grep -q 'NUXT_PUBLIC_API_BASE=/api/h5app' "$PACK"
grep -q 'web/.output' "$PACK" || grep -q 'STAGE/web' "$PACK"
grep -q 'assert_web' "$PACK" || grep -q 'index.mjs' "$PACK"
grep -q 'pnpm' "$PACK"
```

- [ ] Run → Expected: FAIL

---

