refactor(agents): split Claude live sessions by concept (#121566)

* refactor(agents): split claude-live-session into concept modules

* refactor(agents): delete duplicated live-session helpers

* fix(agents): fence live-session close during pending spawn

* chore(lint): ratchet max-lines baseline after live-session split

* style(agents): satisfy lint on live-session split modules

* fix(agents): fence live session close state

* refactor(agents): extract Claude live turn timeouts

* fix(agents): preserve exec policy after Claude live split

* test(agents): complete Claude live policy session fixture
This commit is contained in:
Peter Steinberger
2026-08-10 19:39:16 -07:00
committed by GitHub
parent 17854d4c0b
commit f5aba54437
34 changed files with 6225 additions and 5750 deletions
+5 -3
View File
@@ -125,8 +125,10 @@ const COMPACT_GROUP_SECONDS_HINTS = new Map<string, number>([
// Reliability's runtime-free provider check dropped its wall time from
// ~245s to ~5s; the narrow anthropic cli-api artifact removes the same
// full-barrel evaluation for the remaining facade importers (spawn).
// The live-session extraction rebalanced these stripes without changing the
// fleet-scale import wall that dominates each compact group.
["agentic-agents-core-runner-cli-1", 8],
["agentic-agents-core-runner-cli-2", 9],
["agentic-agents-core-runner-cli-2", 8],
["agentic-agents-core-runner-cli-3", 8],
["agentic-agents-core-runner-commands", 27],
["agentic-agents-core-runner-embedded", 20],
@@ -143,7 +145,7 @@ const COMPACT_GROUP_SECONDS_HINTS = new Map<string, number>([
["agentic-agents-embedded-incomplete-turn", 146],
["agentic-agents-embedded-overflow-compaction", 150],
["agentic-agents-embedded-run", 30],
["agentic-agents-support", 105],
["agentic-agents-support", 110],
["agentic-agents-tools", 42],
["agentic-cli", 72],
["agentic-command-support", 41],
@@ -228,7 +230,7 @@ const STRIPE_FILE_SECONDS_HINTS = new Map<string, number>([
["src/agents/cli-runner.context-engine.test.ts", 6],
// Fresh profile: 5.1s total, 3.8s import; retain a conservative packing hint.
["src/agents/cli-runner.reliability.test.ts", 8],
["src/agents/cli-runner.spawn.test.ts", 18],
["src/agents/cli-runner.spawn.test.ts", 45],
["src/auto-reply/reply/commands-export-session.test.ts", 8],
["src/auto-reply/reply/commands-gating.test.ts", 6],
["src/auto-reply/reply/commands-learn.test.ts", 8],