openwork-debug
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCredential check
凭证检查
Set these before running the HTTP checks:
OPENWORK_SERVER_URLOPENWORK_SERVER_TOKEN- (optional; use
OPENWORK_WORKSPACE_IDto discover)/workspaces
运行HTTP检查前请先设置以下变量:
OPENWORK_SERVER_URLOPENWORK_SERVER_TOKEN- (可选;可调用
OPENWORK_WORKSPACE_ID接口查询)/workspaces
Quick usage (read-only)
快速使用(只读)
bash
curl -s "$OPENWORK_SERVER_URL/health"
curl -s "$OPENWORK_SERVER_URL/capabilities" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"
curl -s "$OPENWORK_SERVER_URL/workspaces" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"bash
curl -s "$OPENWORK_SERVER_URL/health"
curl -s "$OPENWORK_SERVER_URL/capabilities" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"
curl -s "$OPENWORK_SERVER_URL/workspaces" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"Workspace config snapshot
工作区配置快照
bash
curl -s "$OPENWORK_SERVER_URL/workspace/$OPENWORK_WORKSPACE_ID/config" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"bash
curl -s "$OPENWORK_SERVER_URL/workspace/$OPENWORK_WORKSPACE_ID/config" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"Audit log (recent)
审计日志(近期)
bash
curl -s "$OPENWORK_SERVER_URL/workspace/$OPENWORK_WORKSPACE_ID/audit?limit=25" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"bash
curl -s "$OPENWORK_SERVER_URL/workspace/$OPENWORK_WORKSPACE_ID/audit?limit=25" \
-H "Authorization: Bearer $OPENWORK_SERVER_TOKEN"OpenCode engine checks
OpenCode引擎检查
bash
opencode -p "ping" -f json -q
opencode mcp list
opencode mcp debug <name>bash
opencode -p "ping" -f json -q
opencode mcp list
opencode mcp debug <name>DB fallback (read-only)
数据库降级方案(只读)
When the engine API is unavailable, you can inspect the SQLite db:
bash
sqlite3 ~/.opencode/opencode.db "select id, title, status from sessions order by updated_at desc limit 5;"
sqlite3 ~/.opencode/opencode.db "select role, content from messages order by created_at desc limit 10;"当引擎API不可用时,你可以直接查询SQLite数据库:
bash
sqlite3 ~/.opencode/opencode.db "select id, title, status from sessions order by updated_at desc limit 5;"
sqlite3 ~/.opencode/opencode.db "select role, content from messages order by created_at desc limit 10;"Notes
注意事项
- Audit logs are stored at in the workspace root.
.opencode/openwork/audit.jsonl - OpenWork server writes only within approved workspace roots.
- 审计日志存储在工作区根目录的路径下。
.opencode/openwork/audit.jsonl - OpenWork服务仅会在已获批的工作区根目录内执行写入操作。