mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
refactor: root-package imports (svc/runtime/interfaces) and fix PYTHONPATH
- 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>
This commit is contained in:
parent
7941b27f58
commit
420abac9f1
405 changed files with 1316 additions and 1345 deletions
|
|
@ -4,12 +4,12 @@ import uuid
|
|||
from dataclasses import dataclass
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
from oclaw.runtime.chat.turn_types import TurnRunOutcome
|
||||
from oclaw.runtime.agent_core_attempt import ALL_ATTEMPT_ERROR_CODES
|
||||
from oclaw.runtime.agent_core_attempt import AttemptRunnerInput, run_attempt
|
||||
from oclaw.runtime.memory_stage import compact_memory_context
|
||||
from oclaw.runtime.types import AttemptState, OclawMemoryContext, RunState, StandardMessage
|
||||
from oclaw.runtime.orchestration.trace import new_span_id
|
||||
from runtime.chat.turn_types import TurnRunOutcome
|
||||
from runtime.agent_core_attempt import ALL_ATTEMPT_ERROR_CODES
|
||||
from runtime.agent_core_attempt import AttemptRunnerInput, run_attempt
|
||||
from runtime.memory_stage import compact_memory_context
|
||||
from runtime.types import AttemptState, OclawMemoryContext, RunState, StandardMessage
|
||||
from runtime.orchestration.trace import new_span_id
|
||||
|
||||
_AGENT_CORE_OC_STAGE: dict[str, str] = {
|
||||
"run_started": "run_start",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue