Commit 8ea4493
committed
refactor: Regroup src/tools by domain
src/tools/ was grouped by three inconsistent axes: common/ (mode-independence),
core/ (shared logic — the opposite meaning under a synonym), and default/+apps/
(a mode split that, post-#975, only exists for the 4 *-widget tools). Helper names
misled too: build.ts fetches Actor definitions; *_common.ts double-marked "shared".
Regroup into domain directories matching the toolCategories vocabulary —
actors/ runs/ storage/ docs/ widgets/ — dissolving common/, core/, default/, apps/.
Rename categories.ts -> registry.ts and build.ts -> actors/actor_definition.ts.
Pure git mv plus import-path fixes; no logic, export, or schema changes. utils.ts
and structured_output_schemas.ts stay top-level.
The *_common.ts shared-logic files keep their suffix inside the new domain dirs:
dropping it collides with the sibling tool-entry file (e.g. search_actors.ts), and
merging the two would be a logic change, not a move. Export/file-name normalization
and any _common merge are left to the follow-up naming PR (#977).
Anchor the .gitignore "storage" rule to "/storage" so it ignores only the repo-root
Apify local-storage dir, not the new src/tools/storage/ source directory.
Closes #978.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HbBNrt49Pp92M9ebUwoWu41 parent 21fe69d commit 8ea4493
72 files changed
Lines changed: 120 additions & 115 deletions
File tree
- src
- mcp
- tools
- actors
- docs
- runs
- storage
- widgets
- utils
- tests
- integration
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments