Skip to content

Restructure repo#703

Merged
jade-codes merged 7 commits intomainfrom
restructure-repo
Jan 26, 2026
Merged

Restructure repo#703
jade-codes merged 7 commits intomainfrom
restructure-repo

Conversation

@jade-codes
Copy link
Copy Markdown
Owner

This pull request removes several project-specific instructional and checklist files from the .github/instructions directory and updates documentation to reflect recent changes in the repository structure. It also refines the devcontainer setup commands for improved environment initialization.

Documentation and Instruction Cleanup:

  • Deleted .github/instructions/chore.md, .github/instructions/configuration.md, and .github/instructions/copilot-instructions.md, removing internal checklists and contributor guides that are no longer needed or have been superseded. [1] [2] [3]

Repository Structure and Docs Update:

  • Updated .github/copilot-instructions.md to reflect the new repository structure, including renaming and reorganizing directories for core components and extensions.
  • Updated references to the VS Code extension and standard library locations in .github/copilot-instructions.md to match the new directory layout.

Devcontainer Improvements:

  • Modified .devcontainer/devcontainer.json to clean up submodule initialization and simplify post-create commands, ensuring a more reliable and streamlined setup process.

jade-codes and others added 2 commits January 21, 2026 10:38
BREAKING CHANGE: Repository structure completely reorganized

Old structure:
- crates/syster-base, crates/syster-cli, crates/syster-lsp
- editors/vscode-lsp, editors/vscode-modeller, editors/vscode-viewer
- packages/diagram-core, packages/diagram-ui

New structure:
- core/               (syster-base)
- cli/                (syster-cli)
- lsp/server/         (syster-lsp)
- lsp/vscode/         (vscode-lsp extension)
- modeller/core/      (diagram-core)
- modeller/ui/        (diagram-ui)
- modeller/vscode/    (vscode-modeller extension)
- viewer/vscode/      (vscode-viewer extension)

Benefits:
- Feature grouping: related components are together
- Clearer organization: LSP server + extension in same folder
- No more awkward nesting (crates/syster-lsp/crates/syster-lsp)

Updated:
- Cargo.toml workspace configuration
- package.json workspaces
- devcontainer.json paths
- README.md documentation
- copilot-instructions.md
- Renamed core/ to base/
- Moved lsp/server to language-server/
- Moved lsp/vscode to language-client/
- Moved modeller/vscode to modeller/
- Moved viewer/vscode to viewer/
- Moved modeller/core to diagram-core/
- Moved modeller/ui to diagram-ui/
- Removed root-level Cargo.toml, package.json, bun.lock
- Updated CI workflow to validate structure
- Updated release workflow to collect all artifacts
- Updated README and copilot-instructions
Copilot AI review requested due to automatic review settings January 26, 2026 13:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request restructures the repository from a nested directory layout (crates/, packages/, editors/) to a flat, feature-based structure, and removes obsolete internal documentation files. The restructure simplifies the repository layout by moving submodules to the root level with descriptive names.

Changes:

  • Reorganized submodules from nested directories to flat root-level directories with clear naming
  • Removed internal instructional and checklist files that are no longer needed
  • Updated documentation and CI workflows to reflect the new directory structure

Reviewed changes

Copilot reviewed 31 out of 32 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
viewer Added new viewer submodule at root level
packages/diagram-ui Removed nested diagram-ui submodule
packages/diagram-core Removed nested diagram-core submodule
package.json Removed root package.json for meta-repository setup scripts
modeller Added new modeller submodule at root level
language-server Added new language-server submodule at root level
language-client Added new language-client submodule at root level
editors/vscode-viewer Removed nested vscode-viewer submodule
editors/vscode-modeller Removed nested vscode-modeller submodule
editors/vscode-lsp Removed nested vscode-lsp submodule
diagram-ui Added new diagram-ui submodule at root level
diagram-core Added new diagram-core submodule at root level
crates/syster-lsp Removed nested syster-lsp submodule
crates/syster-cli Removed nested syster-cli submodule
crates/syster-base Removed nested syster-base submodule
cli Added new cli submodule at root level
base Added new base submodule at root level
README.md Updated to reflect new flat directory structure and component paths
Cargo.toml Removed workspace Cargo.toml as submodules are now independent
.gitmodules Reorganized submodule paths from nested to flat structure
.github/workflows/release.yml Updated to download and package artifacts from all components
.github/workflows/copilot-auto-retry.yml Removed auto-retry workflow file
.github/workflows/ci.yml Updated validation to check for new flat directory structure
.github/instructions/vscode-extension.md Removed VS Code extension development instructions
.github/instructions/refactor-lsp.md Removed LSP refactoring checklist
.github/instructions/documentation.md Removed documentation guidelines
.github/instructions/copilot-instructions.md Removed Rust development instructions
.github/instructions/configuration.md Removed configuration files guidelines
.github/instructions/chore.md Removed pre-commit checklist
.github/copilot-instructions.md Updated repository structure section and VS Code extension path references
.devcontainer/devcontainer.json Updated postCreateCommand to reference new directory paths

Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .devcontainer/devcontainer.json Outdated
Jade Wilson and others added 4 commits January 26, 2026 13:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jade-codes jade-codes merged commit f5cd032 into main Jan 26, 2026
1 check passed
jade-codes added a commit that referenced this pull request Feb 3, 2026
* refactor: reorganize to feature-based structure

BREAKING CHANGE: Repository structure completely reorganized

Old structure:
- crates/syster-base, crates/syster-cli, crates/syster-lsp
- editors/vscode-lsp, editors/vscode-modeller, editors/vscode-viewer
- packages/diagram-core, packages/diagram-ui

New structure:
- core/               (syster-base)
- cli/                (syster-cli)
- lsp/server/         (syster-lsp)
- lsp/vscode/         (vscode-lsp extension)
- modeller/core/      (diagram-core)
- modeller/ui/        (diagram-ui)
- modeller/vscode/    (vscode-modeller extension)
- viewer/vscode/      (vscode-viewer extension)

Benefits:
- Feature grouping: related components are together
- Clearer organization: LSP server + extension in same folder
- No more awkward nesting (crates/syster-lsp/crates/syster-lsp)

Updated:
- Cargo.toml workspace configuration
- package.json workspaces
- devcontainer.json paths
- README.md documentation
- copilot-instructions.md

* refactor: restructure repo - rename core to base, flatten submodules

- Renamed core/ to base/
- Moved lsp/server to language-server/
- Moved lsp/vscode to language-client/
- Moved modeller/vscode to modeller/
- Moved viewer/vscode to viewer/
- Moved modeller/core to diagram-core/
- Moved modeller/ui to diagram-ui/
- Removed root-level Cargo.toml, package.json, bun.lock
- Updated CI workflow to validate structure
- Updated release workflow to collect all artifacts
- Updated README and copilot-instructions

* fix: update devcontainer postCreateCommand path

* fix: remove postCreateCommand from devcontainer

* Update .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* docs: add architecture diagram to README

---------

Co-authored-by: Jade Wilson <jade_@LAPTOP-TB2FDPJ4.localdomain>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
jade-codes added a commit that referenced this pull request Feb 3, 2026
* refactor: reorganize to feature-based structure

BREAKING CHANGE: Repository structure completely reorganized

Old structure:
- crates/syster-base, crates/syster-cli, crates/syster-lsp
- editors/vscode-lsp, editors/vscode-modeller, editors/vscode-viewer
- packages/diagram-core, packages/diagram-ui

New structure:
- core/               (syster-base)
- cli/                (syster-cli)
- lsp/server/         (syster-lsp)
- lsp/vscode/         (vscode-lsp extension)
- modeller/core/      (diagram-core)
- modeller/ui/        (diagram-ui)
- modeller/vscode/    (vscode-modeller extension)
- viewer/vscode/      (vscode-viewer extension)

Benefits:
- Feature grouping: related components are together
- Clearer organization: LSP server + extension in same folder
- No more awkward nesting (crates/syster-lsp/crates/syster-lsp)

Updated:
- Cargo.toml workspace configuration
- package.json workspaces
- devcontainer.json paths
- README.md documentation
- copilot-instructions.md

* refactor: restructure repo - rename core to base, flatten submodules

- Renamed core/ to base/
- Moved lsp/server to language-server/
- Moved lsp/vscode to language-client/
- Moved modeller/vscode to modeller/
- Moved viewer/vscode to viewer/
- Moved modeller/core to diagram-core/
- Moved modeller/ui to diagram-ui/
- Removed root-level Cargo.toml, package.json, bun.lock
- Updated CI workflow to validate structure
- Updated release workflow to collect all artifacts
- Updated README and copilot-instructions

* fix: update devcontainer postCreateCommand path

* fix: remove postCreateCommand from devcontainer

* Update .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* docs: add architecture diagram to README

---------

Co-authored-by: jade-codes <jade_@LAPTOP-TB2FDPJ4.localdomain>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
jade-codes added a commit that referenced this pull request Feb 3, 2026
* refactor: reorganize to feature-based structure

BREAKING CHANGE: Repository structure completely reorganized

Old structure:
- crates/syster-base, crates/syster-cli, crates/syster-lsp
- editors/vscode-lsp, editors/vscode-modeller, editors/vscode-viewer
- packages/diagram-core, packages/diagram-ui

New structure:
- core/               (syster-base)
- cli/                (syster-cli)
- lsp/server/         (syster-lsp)
- lsp/vscode/         (vscode-lsp extension)
- modeller/core/      (diagram-core)
- modeller/ui/        (diagram-ui)
- modeller/vscode/    (vscode-modeller extension)
- viewer/vscode/      (vscode-viewer extension)

Benefits:
- Feature grouping: related components are together
- Clearer organization: LSP server + extension in same folder
- No more awkward nesting (crates/syster-lsp/crates/syster-lsp)

Updated:
- Cargo.toml workspace configuration
- package.json workspaces
- devcontainer.json paths
- README.md documentation
- copilot-instructions.md

* refactor: restructure repo - rename core to base, flatten submodules

- Renamed core/ to base/
- Moved lsp/server to language-server/
- Moved lsp/vscode to language-client/
- Moved modeller/vscode to modeller/
- Moved viewer/vscode to viewer/
- Moved modeller/core to diagram-core/
- Moved modeller/ui to diagram-ui/
- Removed root-level Cargo.toml, package.json, bun.lock
- Updated CI workflow to validate structure
- Updated release workflow to collect all artifacts
- Updated README and copilot-instructions

* fix: update devcontainer postCreateCommand path

* fix: remove postCreateCommand from devcontainer

* Update .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* docs: add architecture diagram to README

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants