ZeroOne 繁體中文技術部落格

Cloudflare Agents 接 MCP elicitation 時:把使用者輸入留在可確認的邊界內
Cloudflare Agents 支援回應 MCP elicitation 後,MCP server 可在 tool call 中要求使用者補資料。本文整理表單輸入、敏感資訊與確認動作的設計邊界。
1325 字
|
7 分鐘
Cover Image of the Post
讓 AI agent 暫時部署 Cloudflare Worker 前:帳號認領與交接檢查表
Cloudflare Temporary Accounts API 讓平台在使用者登入前部署預覽 Worker。本文整理 temporary deployment 的認領、資源邊界與交接檢查,避免測試環境被誤當成正式環境。
1476 字
|
7 分鐘
Cover Image of the Post
SQLite 搭配 Litestream:先驗證還原,再把 S3 複寫接進部署流程
SQLite 搭配 Litestream 做 S3 複寫時,重點不是只啟動 replicate,而是先驗證可還原、讓應用程式與資料庫共用正確路徑,保留不覆寫正式檔案的演練流程,並確認復原時所需的權限與資料範圍。
1428 字
|
7 分鐘
Cover Image of the Post
Claude Code 要讀取敏感檔案前:用 PreToolUse hook 多加一道阻擋規則
Claude Code 能讀取專案脈絡,但不該把 .env、私鑰或部署憑證當成一般檔案處理。本文用官方 PreToolUse hook 格式建立可檢查的阻擋規則與測試方式,並說明它與權限設定各自負責的邊界。
1450 字
|
7 分鐘
Cover Image of the Post
Claude Code 出現模型錯誤時:先判斷官方事故,還是自己的環境問題
Claude Code 突然出現模型錯誤、OAuth 登入失敗或請求逾時時,先別急著重裝。本文依官方狀態頁與 troubleshooting 文件整理判斷順序,保留可交接的錯誤證據,避免重複重裝與遺失線索。
1625 字
|
8 分鐘
Cover Image of the Post
RunCat Neo 顯示 Claude Code 與 Codex 用量:Desktop 排錯與設定
想在 macOS 選單列查看 Claude Code、Codex 的 Context 與額度?本文記錄 RunCat Neo Custom Metrics 設定,並處理 Desktop 不觸發 hook、資料不更新與 Full reset 顯示問題。
2927 字
|
15 分鐘
Cover Image of the Post
Cloudflare Workers 的 _redirects:先排靜態規則,再處理動態路徑
Cloudflare Workers Static Assets 的 _redirects 會受規則順序與靜態、動態數量上限影響。本文整理排序、測試與擴充策略,避免重新導向在部署後才失效,並附上上線驗證方法。
1403 字
|
7 分鐘
Cover Image of the Post
大型 repository 用 Copilot CLI 前,先用 sparse-checkout 縮小工作目錄
大型 repository 開啟 Copilot CLI 前,可先用 Git sparse-checkout 限定工作目錄,再核對信任目錄與路徑權限。本文提供範圍設定、測試與擴大邊界方式,降低誤改風險。
1531 字
|
8 分鐘
Cover Image of the Post