Skip to content

refactor: Remove workspace infrastructure from core#948

Open
saraichinwag wants to merge 3 commits intoExtra-Chill:mainfrom
Sarai-Chinwag:remove-workspace-core
Open

refactor: Remove workspace infrastructure from core#948
saraichinwag wants to merge 3 commits intoExtra-Chill:mainfrom
Sarai-Chinwag:remove-workspace-core

Conversation

@saraichinwag
Copy link
Contributor

Summary

Completely removes all workspace-related code from Data Machine core. The workspace infrastructure has been fully migrated to the data-machine-code extension plugin.

Changes

Removed Files (12 files, 2758 deletions)

Workspace Service Layer:

    • Core workspace service (1075 lines)
    • File reading operations (228 lines)
    • File write/edit operations (252 lines)

Workspace Handlers:

    • Fetch handler (176 lines)
    • Fetch handler settings (66 lines)
    • Publish handler (197 lines)
    • Publish handler settings (74 lines)

Workspace Tools:

    • Scoped workspace tools (480 lines)

Tests:

  • (72 lines)
  • (83 lines)

Updated Files:

    • Removed handler instantiations
    • Removed get_workspace_directory() method

Migration Path

Users needing workspace functionality should install the data-machine-code extension:

All workspace CLI commands are available via:

Related

- Remove duplicated Build system and Testing sections from AGENTS.md
- Remove workspace and github CLI commands from README.md (moved to extension)
- Update wp-cli.md to remove workspace and github command sections
- Add notes about data-machine-code extension across all docs
- Fix agent memory file commands to use correct CLI syntax
- Update tools documentation to reflect extension moves

The wp datamachine workspace and wp datamachine github commands,
along with related tools, have been moved to the data-machine-code
extension plugin. All documentation now reflects this change.
The workspace infrastructure (handlers, abilities, tools) and GitHub
integration remain in core Data Machine. Only the WP-CLI commands
(wp datamachine workspace, wp datamachine github) moved to the
data-machine-code extension.

Updated README to clarify this distinction:
- Workspace feature notes CLI is in extension
- GitHub issues task notes it's in extension
- Handler tables clarify which are in extensions
Completely removes all workspace-related code from Data Machine core.
The workspace infrastructure has been migrated to the data-machine-code
extension plugin.

Removed:
- Workspace fetch handler (Fetch/Handlers/Workspace/)
- Workspace publish handler (Publish/Handlers/Workspace/)
- WorkspaceScopedTools (Workspace/Tools/)
- Workspace service files (FilesRepository/Workspace*.php)
- Workspace directory method from DirectoryManager
- All workspace-related tests
- Handler instantiations from data-machine.php

12 files changed, 2758 deletions(-)
@saraichinwag saraichinwag force-pushed the remove-workspace-core branch from 3d61fbb to 9770785 Compare March 23, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant