Commit 5e37de0
Split the preset agent module by concern
agent.py had grown to 1591 lines mixing six concerns. Split it, moving every
symbol verbatim:
- session.py: on-disk session state, loaders, ownership claims, liveness
- workspace.py: the agent working directory, aliasing, wrappers, skills
- tail.py: offset-persistent tailers over stream and record files
- redaction.py: secret redaction shared by the tailers and verify
- agent.py: the Claude subprocess lifecycle (600 lines)
Imports follow one direction: session <- workspace <- (tail, redaction) <-
agent. No behavior change; all symbol bodies are byte-identical to before.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent e84c22a commit 5e37de0
11 files changed
Lines changed: 1176 additions & 1066 deletions
File tree
- src
- dstack/_internal/cli
- commands
- services/presets
- tests/_internal/cli/services/presets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
| |||
28 | 22 | | |
29 | 23 | | |
30 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments