Skip to content

Commit 0818d52

Browse files
committed
RepoWorkspace is a platform primitive, not a ship internal
Move RepoWorkspace from druks.contrib.ship.workspace to a new top-level druks.workspaces module, beside druks.workflows and druks.agents, so any app can subclass it without depending on ship's package. druks.workspaces also re-exports the base Workspace, giving apps one import for both. Ship, review, and the profiler keep it unchanged — a pure move. The sandbox layer stays free of GitHub and account semantics.
1 parent 4c948a7 commit 0818d52

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎backend/druks/contrib/review/workflows.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from druks.contrib.review.datastructures import PullRequest
66
from druks.contrib.review.github import get_review_actor
77
from druks.contrib.ship.models import ProjectRepo
8-
from druks.contrib.ship.workspace import RepoWorkspace
98
from druks.core.apis.github import GITHUB
109
from druks.sandbox import repo as _repo
1110
from druks.sandbox.layout import get_github_token_remote_path, get_related_root, get_repo_root
1211
from druks.services.models import ServiceIdentity
1312
from druks.workflows import Workflow
13+
from druks.workspaces import RepoWorkspace
1414

1515
if TYPE_CHECKING:
1616
from druks.sandbox.host import Sandbox

‎backend/druks/contrib/ship/workflows.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
from druks.settings import load_settings
2828
from druks.skills.models import Skill
2929
from druks.workflows import FatalError, Workflow, step
30+
from druks.workspaces import RepoWorkspace
3031

3132
from .app import Ship
3233
from .constants import GITHUB_MCP_NAME, GITHUB_MCP_URL
3334
from .journal import BuildJournal
3435
from .policy import PlanGate, RepoPolicy
3536
from .prompt_context import BuildPromptContext
36-
from .workspace import RepoWorkspace
3737

3838
if TYPE_CHECKING:
3939
from druks.sandbox.host import Sandbox

‎backend/tests/ship/test_build_workspace.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
from typing import Any
66

77
import pytest
8-
from druks.contrib.ship import workspace as workspace_mod
8+
from druks import workspaces as workspace_mod
99
from druks.contrib.ship.constants import GITHUB_MCP_NAME, GITHUB_MCP_URL
1010
from druks.contrib.ship.workflows import Build, BuildWorkspace
11-
from druks.contrib.ship.workspace import RepoWorkspace
1211
from druks.mcp.helpers import get_bearer_token_env_var
1312
from druks.sandbox import host as host_mod
1413
from druks.sandbox.layout import get_related_root, get_repo_root
1514
from druks.workflows import FatalError
15+
from druks.workspaces import RepoWorkspace
1616

1717

1818
class _FakeSandbox:

0 commit comments

Comments
 (0)