
Félix MalfaitandGitHub
9cecbaebc3
refactor(workflow-tools): reorganize to one file per tool with co-located schemas (#16313)
## Summary
Reorganizes workflow tools to improve maintainability and
discoverability by having one file per tool with co-located input
schemas.
## Changes
- Create individual tool files in `tools/` directory (11 files)
- Co-locate input schemas with their tool implementations
- Add shared types file for dependencies and context
- Simplify workspace service to aggregate tool factories
- Remove centralized `schemas/` directory
## New Structure
```
workflow-tools/
├── services/
│ └── workflow-tool.workspace-service.ts
├── tools/
│ ├── activate-workflow-version.tool.ts
│ ├── compute-step-output-schema.tool.ts
│ ├── create-complete-workflow.tool.ts
│ ├── create-draft-from-workflow-version.tool.ts
│ ├── create-workflow-version-edge.tool.ts
│ ├── create-workflow-version-step.tool.ts
│ ├── deactivate-workflow-version.tool.ts
│ ├── delete-workflow-version-edge.tool.ts
│ ├── delete-workflow-version-step.tool.ts
│ ├── update-workflow-version-positions.tool.ts
│ └── update-workflow-version-step.tool.ts
├── types/
│ └── workflow-tool-dependencies.type.ts
└── workflow-tools.module.ts
```
## Benefits
- **Co-location**: Schema and tool logic are in the same file
- **Single responsibility**: Each file handles one tool
- **Easier maintenance**: Changes to a tool only touch one file
- **Better discoverability**: File names match tool names
2025-12-04 21:06:49 +01:00
..
2025-12-04 17:12:55 +01:00
2025-12-04 17:03:22 +01:00
2025-12-01 11:44:35 +01:00
2025-11-16 18:20:06 +01:00
2025-12-04 19:22:39 +01:00
2025-11-17 08:16:56 +01:00
2025-12-01 14:44:19 +00:00
2025-12-04 17:22:21 +00:00
2025-12-04 17:03:22 +01:00
2025-12-04 21:06:49 +01:00
2025-12-04 17:39:12 +01:00
2025-12-02 14:00:58 +01:00
2025-10-22 11:42:24 +02:00
2025-12-03 18:32:49 +01:00
2025-11-03 11:42:28 +01:00