Go to file
王性驊 ea5f51aa7d threads-profile: drop --no-sandbox, re-enable Chromium's own sandbox
Verified live on prod (systemd-run with the same User=harbor,
NoNewPrivileges=true, ProtectSystem=strict, ProtectHome=true,
ReadWritePaths=/var/lib/harbor as harbor-worker@.service) that Chromium's
unprivileged-userns sandbox launches and navigates fine without
--no-sandbox; kernel.unprivileged_userns_clone=1 on this host makes it
unnecessary. Keeping the browser's own renderer/GPU sandbox gives real
defense-in-depth against a malicious/compromised public Threads page,
instead of relying on systemd's process-level ProtectSystem alone.

Needs a normal release (build-release.sh + activate-release.sh) to reach
prod; not hot-patched on the live host.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 17:52:20 +00:00
.grok/skills/spec-driven fix all 2026-07-09 03:45:28 +00:00
apps threads-profile: drop --no-sandbox, re-enable Chromium's own sandbox 2026-07-17 17:52:20 +00:00
deploy prod: throttle persona scrape jobs, cap worker CPU, add job-failure alerting + offsite backup 2026-07-17 17:38:36 +00:00
docs/product fix frontend 2026-07-13 03:18:08 +00:00
.gitignore fix frontend 2026-07-13 08:59:13 +00:00
AGENTS.md fix frontend 2026-07-10 12:54:45 +00:00
README.md fix frontend 2026-07-10 12:54:45 +00:00

README.md

Thread-Master / 巡樓(重構主線)

2026-07-09 起:舊程式已整包封存至 old/從零重寫

現在讀哪裡

路徑 說明
docs/product/haixun-console/ 產品需求 → spec → plan → tasks真相來源
old/ 舊 monorepo 只讀封存,不在上面開新功能
.grok/skills/spec-driven/ /spec-driven 流程 skill

目標結構(建立中)

thread-master/
  apps/web/          # Harbor Desk 前端Phase Bmock 優先)
  services/api/      # 新後端Phase A/C名稱以 plan 為準)
  docs/product/      # 產品文件
  old/               # 舊碼封存

交付順序

A 地基(登入 / 權限 / Threads / Job / 通知)
  → B 新前端 + Mock流程與風格先過關
    → C 接真後端
      → D 業務加深(海巡等)

前端apps/web

cd apps/web
npm install
npm run dev      # 本機開發,監聽 0.0.0.0:5173區網可連
npm run build    # 型別檢查 + 生產建置

部署dev 一鍵清乾淨重裝)

deploy/README.md

cp deploy/.env.example deploy/.env.dev   # 首次:填密鑰
./deploy/scripts/redeploy.sh --yes --kill-orphan
# 可選 nginx./deploy/scripts/install-nginx.sh

產品任務進度:docs/product/haixun-console/tasks/INDEX.md(目前從 T001 起)。

開發流程

/spec-driven haixun-console
# 或依 tasks 逐題實作,例如「做 T002」

查舊行為請到 old/backend/(只讀)。