Repository navigation
Commit 9047bcb
committed
refactor(service-automation): move the run-history bodies into run-history.ts
Move-only. The bodies of nine AutomationEngine methods move unedited into a
new run-history.ts: listRuns, listRunsPage, runRecordToLogEntry,
suspendedRunToLogEntry, getRun, listSuspendedRuns and readSuspendedRuns,
which read runs back, and recordLog and finishRefusedRun, which record
them. Each method keeps its name, docblock, signature and position in the
class and calls its body with a RunHistoryHost literal holding exactly the
members the body reads; runRecordToLogEntry and suspendedRunToLogEntry read
none and are called directly. Each async stub drops async and returns the
promise the moved function makes.
Fields assigned only at their declaration or in the constructor go by
value. store goes through a getter, because setSuspendedRunStore replaces
it. formatRunSummaryLine's import moves with recordLog, its one reader.
The ENGINE_SOURCES grep pins read the new module too.
Claude-Session: https://claude.ai/code/session_01Mnj4nkWuhJ18xEdZvb2cjE
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 673ebfd commit 9047bcb
3 files changed
Lines changed: 862 additions & 660 deletions
File tree
- packages/services/service-automation/src
0 commit comments