mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:13:19 +08:00
- Rename platform/ to svc/ to avoid shadowing stdlib platform. - Replace from oclaw.* with from svc/runtime/interfaces; update -m CLI paths. - tests/conftest: prepend repo root to sys.path (no parent-folder package name). - CI: paths and offline_eval script under repo root. - Ops scripts: PYTHONPATH must be repo root for python -m runtime.* (fixes gateway/WhatsApp sidecar startup). - Fix default oclaw.json path in tabular/file attachment limits; stabilize attachment test config. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| agent.py | ||
| agents.py | ||
| attachment_normalize.py | ||
| base_hash.py | ||
| channels.py | ||
| chat.py | ||
| commands.py | ||
| config.py | ||
| connect.py | ||
| cron.py | ||
| devices.py | ||
| dispatcher.py | ||
| doctor.py | ||
| exec_approvals.py | ||
| health.py | ||
| image.py | ||
| logs.py | ||
| models.py | ||
| models_auth_status.py | ||
| nodes.py | ||
| nodes_pending.py | ||
| push.py | ||
| README.md | ||
| record_shared.py | ||
| restart_request.py | ||
| send.py | ||
| sessions.py | ||
| shared_types.py | ||
| skills.py | ||
| system.py | ||
| talk.py | ||
| telegram_send_normalize.py | ||
| tools_catalog.py | ||
| tools_effective.py | ||
| tts.py | ||
| types.py | ||
| update.py | ||
| usage.py | ||
| validation.py | ||
| voicewake.py | ||
| web.py | ||
| wizard.py | ||
server_methods
这是 vendor/oclaw/oclaw/gateway/server-methods 的 Python 重写目录。
当前已迁移
connect.ts->connect.pycommands.ts->commands.pyconfig.ts->config.pychannels.ts->channels.pyhealth.ts->health.pylogs.ts->logs.pyimage.ts->image.pydoctor.ts->doctor.pysessions.ts->sessions.pychat.ts->chat.pyagent.ts->agent.pyagents.ts->agents.pysend.ts->send.pyskills.ts->skills.pysystem.ts->system.pycron.ts->cron.pydevices.ts->devices.pymodels.ts->models.pymodels-auth-status.ts->models_auth_status.pypush.ts->push.pyupdate.ts->update.pyvoicewake.ts->voicewake.pywizard.ts->wizard.pytts.ts->tts.pyweb.ts->web.pytools-catalog.ts->tools_catalog.pytools-effective.ts->tools_effective.pytalk.ts->talk.pyusage.ts->usage.pyexec-approvals.ts->exec_approvals.pynodes-pending.ts->nodes_pending.pynodes.ts->nodes.pybase-hash.ts->base_hash.pyrestart-request.ts->restart_request.pyrecord-shared.ts->record_shared.pyattachment-normalize.ts->attachment_normalize.pyshared-types.ts->shared_types.pytypes.ts->types.pyvalidation.ts->validation.py
迁移策略
- 先迁移低耦合基础方法与类型层。
- 再迁移高耦合方法(
chat.ts、sessions.ts、nodes.ts、agent.ts等)。 - 每批迁移后执行语法与单测校验,保证可持续推进。