Skip to content

Reorganize code#58

Merged
Tim Hockin (thockin) merged 3 commits into
agent-substrate:mainfrom
juli4n:fix/reorg_tool
May 22, 2026
Merged

Reorganize code#58
Tim Hockin (thockin) merged 3 commits into
agent-substrate:mainfrom
juli4n:fix/reorg_tool

Conversation

@juli4n
Copy link
Copy Markdown
Collaborator

@juli4n Julian Gutierrez Oschmann (juli4n) commented May 22, 2026

This PR has three commits, the first one introduces a tool to move / patch files within the repo to align with the rules enumerated in #49.

The second commit was automatically generated by running the tool (and go generate). This way we can rebase on top of inflight PRs, making the migration hopefully less painful.

The third one deletes the one-off tool.

Once the migration is done the tool will be removed so this PR should probably be not squashed (i.e. rebase and merge) to ease the rollback.

Fixes #49

@thockin
Copy link
Copy Markdown
Collaborator

Notes:

./tools is ambiguous WRT hack/tools and the only thing in tools/ is "setup" which is GCP specific (rename to setup-gcp?). What else might go in ./tools ? This is my only blocking question.

./pkg/api and ./pkg/proto are ambiguous -- they are both APIs, but for different layers. OK for now, but I expect we will want clarity on that eventually. Similarly ./pkg/client. Non-blocking

@juli4n
Copy link
Copy Markdown
Collaborator Author

Notes:

./tools is ambiguous WRT hack/tools and the only thing in tools/ is "setup" which is GCP specific (rename to setup-gcp?). What else might go in ./tools ? This is my only blocking question.

Renamed tools/setup to tools/setup-gcp.

./pkg/api and ./pkg/proto are ambiguous -- they are both APIs, but for different layers. OK for now, but I expect we will want clarity on that eventually. Similarly ./pkg/client. Non-blocking

Agreed.

I also added a third commit that deletes the tool at the tip.

All rules are defined in rules.json. Then the tools/reorg tool will execute them.
This commit was automatically generated by the tools/reorg tool.

```
go run ./tools/reorg
go generate ./...
bash benchmarking/locust/generate_protos.sh
```
@juli4n Julian Gutierrez Oschmann (juli4n) changed the title [WIP] Reorganize code Reorganize code May 22, 2026
@thockin
Copy link
Copy Markdown
Collaborator

LGTM

@thockin
Copy link
Copy Markdown
Collaborator

Fire in the hole!

@thockin Tim Hockin (thockin) merged commit 80a883c into agent-substrate:main May 22, 2026
4 checks passed
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.

Reorganize code layout

3 participants