mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 00:40:45 +08:00
No description
Move admin operation audit to true offset-based pagination with SQL-side filtering and total count metadata, while keeping legacy response compatibility. Also refine admin Experts section layout and improve chat image viewer interactions and reasoning finalization behavior to reduce UX regressions. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .github/workflows | ||
| _hooks_selftest_workspace | ||
| _local | ||
| desktop | ||
| docs | ||
| interfaces | ||
| platform | ||
| prompts | ||
| runtime | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| .gitmodules | ||
| __init__.py | ||
| oclaw.json | ||
| pytest.ini | ||
| README.md | ||
| requirements.txt | ||
Oclaw Architecture Root
This repository is fully consolidated under oclaw/.
Quickstart (Open Source)
Prerequisites
- Python 3.11+
- Node.js 22+ (required by the official Weixin plugin)
1) Bootstrap venv (Windows)
powershell -ExecutionPolicy Bypass -File .\scripts\bootstrap_venv.ps1
2) Start gateway (background)
powershell -ExecutionPolicy Bypass -File .\scripts\start_gateway.ps1 -SkipInstall -Background
Open:
- Admin:
http://127.0.0.1:8787/admin - Chat:
http://127.0.0.1:8787/chat
If port 8787 is stuck/occupied, force-stop:
powershell -ExecutionPolicy Bypass -File .\scripts\stop_gateway.ps1 -Force
3) Weixin (Personal WeChat): install → login → start
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\weixin_install.ps1
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\weixin_login.ps1
powershell -ExecutionPolicy Bypass -File .\runtime\operations\scripts\weixin_start.ps1
Notes:
weixin_install.ps1does not require globalopenclawCLI installation; runtime deps are installed locally in sidecar workspace..\scripts\start_all.ps1 -Backgroundnow skips missing Weixin/WhatsApp sidecars gracefully (warn + continue), so Admin/Chat can still boot on fresh installs.- Admin supports channel dispatch controls for Weixin/WhatsApp (bind specialist / comprehensive), with default
generalist.
Full runbook (recommended): see docs/RUNBOOK.md → “开源快速安装(从零到跑起来)”.
Minimal onboarding guide: docs/OPEN_SOURCE_QUICKSTART.md.
Layers
runtime/: core execution loop, routing, skill runtime, hook runtimeinterfaces/: transport adapters (HTTP/WS)gateway/: method handlers and protocol bridgingapplication/: use-cases and orchestration servicesinfrastructure/: runtime-facing integrations/adaptersplatform/: shared platform capabilities (llm, persistence, config, files)tools/: tool registry, MCP adapters, public/system toolsskills/: installable skills and runtime manifests
Naming Rule
- Use
oclawconsistently in paths, symbols, and docs. - Avoid introducing legacy aliases or old naming variants.
Attachment Replay Config
- Attachment-related limits are configured in
oclaw.jsonunder:plugins.entries.memory-wiki.auto.attachments.tabular
- Replay limits:
image_result_replay_cap_chars(default4000, range600..30000)video_result_replay_cap_chars(default4000, range600..30000)- Used to cap historical
query_image_attachment/query_video_attachment(task=transcript)text replay in model context.
- Video transcript chunk defaults:
video_transcript_chunk_size(default1600)video_transcript_chunk_overlap(default200)
- Unified archive budget defaults (zip/tar/tgz/gz):
archive_max_depth(default2)archive_max_file_count(default200)archive_max_entry_bytes(default10485760)archive_max_total_uncompressed_bytes(default52428800)- Archive parse errors now expose stable
error_codevalues (for UI mapping and retries).
- Effective priority for replay-cap values:
- DB setting
AIA_IMAGE_TOOL_RESULT_REPLAY_CAP_CHARS - DB setting
AIA_VIDEO_TOOL_RESULT_REPLAY_CAP_CHARS - Environment variable
AIA_IMAGE_TOOL_RESULT_REPLAY_CAP_CHARS - Environment variable
AIA_VIDEO_TOOL_RESULT_REPLAY_CAP_CHARS oclaw.jsonvalue- Built-in default
- DB setting
See docs/ENVIRONMENT_VARIABLES.md for full runtime variable reference.