github-issue-tower-defence-management 2.45.0 → 2.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +3 -25
  2. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +0 -52
  3. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
  4. package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js +4 -49
  5. package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js.map +1 -1
  6. package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js +1 -231
  7. package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js.map +1 -1
  8. package/package.json +1 -1
  9. package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
  10. package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts +1 -29
  11. package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts.map +1 -1
  12. package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts +0 -45
  13. package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts.map +1 -1
  14. package/bin/adapter/repositories/ConfigurableSilentSessionMessageComposer.js +0 -71
  15. package/bin/adapter/repositories/ConfigurableSilentSessionMessageComposer.js.map +0 -1
  16. package/bin/adapter/repositories/FileSystemSilentSessionCandidateStateRepository.js +0 -137
  17. package/bin/adapter/repositories/FileSystemSilentSessionCandidateStateRepository.js.map +0 -1
  18. package/bin/adapter/repositories/FileSystemSilentSessionHubTaskStatusCacheRepository.js +0 -126
  19. package/bin/adapter/repositories/FileSystemSilentSessionHubTaskStatusCacheRepository.js.map +0 -1
  20. package/bin/adapter/repositories/FileSystemSubAgentLivenessResolver.js +0 -81
  21. package/bin/adapter/repositories/FileSystemSubAgentLivenessResolver.js.map +0 -1
  22. package/bin/adapter/repositories/FileSystemSubAgentSilentSecondsResolver.js +0 -67
  23. package/bin/adapter/repositories/FileSystemSubAgentSilentSecondsResolver.js.map +0 -1
  24. package/bin/adapter/repositories/FileSystemSubAgentTranscriptDirectoryResolver.js +0 -57
  25. package/bin/adapter/repositories/FileSystemSubAgentTranscriptDirectoryResolver.js.map +0 -1
  26. package/bin/adapter/repositories/NodeSubAgentProcessLister.js +0 -37
  27. package/bin/adapter/repositories/NodeSubAgentProcessLister.js.map +0 -1
  28. package/bin/adapter/repositories/ProcessListSessionSubAgentActivityRepository.js +0 -50
  29. package/bin/adapter/repositories/ProcessListSessionSubAgentActivityRepository.js.map +0 -1
  30. package/bin/adapter/repositories/TranscriptSessionSubAgentActivityRepository.js +0 -382
  31. package/bin/adapter/repositories/TranscriptSessionSubAgentActivityRepository.js.map +0 -1
  32. package/bin/domain/entities/LiveSessionActivitySnapshot.js +0 -3
  33. package/bin/domain/entities/LiveSessionActivitySnapshot.js.map +0 -1
  34. package/bin/domain/usecases/DefaultSilentSessionMessageComposer.js +0 -49
  35. package/bin/domain/usecases/DefaultSilentSessionMessageComposer.js.map +0 -1
  36. package/bin/domain/usecases/adapter-interfaces/SessionSubAgentActivityRepository.js +0 -3
  37. package/bin/domain/usecases/adapter-interfaces/SessionSubAgentActivityRepository.js.map +0 -1
  38. package/bin/domain/usecases/adapter-interfaces/SilentSessionCandidateStateRepository.js +0 -3
  39. package/bin/domain/usecases/adapter-interfaces/SilentSessionCandidateStateRepository.js.map +0 -1
  40. package/bin/domain/usecases/adapter-interfaces/SilentSessionHubTaskStatusCacheRepository.js +0 -3
  41. package/bin/domain/usecases/adapter-interfaces/SilentSessionHubTaskStatusCacheRepository.js.map +0 -1
  42. package/bin/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.js +0 -3
  43. package/bin/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.js.map +0 -1
  44. package/bin/domain/usecases/adapter-interfaces/SubAgentLivenessResolver.js +0 -3
  45. package/bin/domain/usecases/adapter-interfaces/SubAgentLivenessResolver.js.map +0 -1
  46. package/bin/domain/usecases/adapter-interfaces/SubAgentProcessLister.js +0 -3
  47. package/bin/domain/usecases/adapter-interfaces/SubAgentProcessLister.js.map +0 -1
  48. package/bin/domain/usecases/adapter-interfaces/SubAgentSilentSecondsResolver.js +0 -3
  49. package/bin/domain/usecases/adapter-interfaces/SubAgentSilentSecondsResolver.js.map +0 -1
  50. package/bin/domain/usecases/adapter-interfaces/SubAgentTranscriptDirectoryResolver.js +0 -3
  51. package/bin/domain/usecases/adapter-interfaces/SubAgentTranscriptDirectoryResolver.js.map +0 -1
  52. package/bin/domain/usecases/silentSessionReminderSentinel.js +0 -12
  53. package/bin/domain/usecases/silentSessionReminderSentinel.js.map +0 -1
  54. package/types/adapter/repositories/ConfigurableSilentSessionMessageComposer.d.ts +0 -18
  55. package/types/adapter/repositories/ConfigurableSilentSessionMessageComposer.d.ts.map +0 -1
  56. package/types/adapter/repositories/FileSystemSilentSessionCandidateStateRepository.d.ts +0 -20
  57. package/types/adapter/repositories/FileSystemSilentSessionCandidateStateRepository.d.ts.map +0 -1
  58. package/types/adapter/repositories/FileSystemSilentSessionHubTaskStatusCacheRepository.d.ts +0 -21
  59. package/types/adapter/repositories/FileSystemSilentSessionHubTaskStatusCacheRepository.d.ts.map +0 -1
  60. package/types/adapter/repositories/FileSystemSubAgentLivenessResolver.d.ts +0 -11
  61. package/types/adapter/repositories/FileSystemSubAgentLivenessResolver.d.ts.map +0 -1
  62. package/types/adapter/repositories/FileSystemSubAgentSilentSecondsResolver.d.ts +0 -9
  63. package/types/adapter/repositories/FileSystemSubAgentSilentSecondsResolver.d.ts.map +0 -1
  64. package/types/adapter/repositories/FileSystemSubAgentTranscriptDirectoryResolver.d.ts +0 -7
  65. package/types/adapter/repositories/FileSystemSubAgentTranscriptDirectoryResolver.d.ts.map +0 -1
  66. package/types/adapter/repositories/NodeSubAgentProcessLister.d.ts +0 -8
  67. package/types/adapter/repositories/NodeSubAgentProcessLister.d.ts.map +0 -1
  68. package/types/adapter/repositories/ProcessListSessionSubAgentActivityRepository.d.ts +0 -12
  69. package/types/adapter/repositories/ProcessListSessionSubAgentActivityRepository.d.ts.map +0 -1
  70. package/types/adapter/repositories/TranscriptSessionSubAgentActivityRepository.d.ts +0 -21
  71. package/types/adapter/repositories/TranscriptSessionSubAgentActivityRepository.d.ts.map +0 -1
  72. package/types/domain/entities/LiveSessionActivitySnapshot.d.ts +0 -12
  73. package/types/domain/entities/LiveSessionActivitySnapshot.d.ts.map +0 -1
  74. package/types/domain/usecases/DefaultSilentSessionMessageComposer.d.ts +0 -7
  75. package/types/domain/usecases/DefaultSilentSessionMessageComposer.d.ts.map +0 -1
  76. package/types/domain/usecases/adapter-interfaces/SessionSubAgentActivityRepository.d.ts +0 -5
  77. package/types/domain/usecases/adapter-interfaces/SessionSubAgentActivityRepository.d.ts.map +0 -1
  78. package/types/domain/usecases/adapter-interfaces/SilentSessionCandidateStateRepository.d.ts +0 -11
  79. package/types/domain/usecases/adapter-interfaces/SilentSessionCandidateStateRepository.d.ts.map +0 -1
  80. package/types/domain/usecases/adapter-interfaces/SilentSessionHubTaskStatusCacheRepository.d.ts +0 -19
  81. package/types/domain/usecases/adapter-interfaces/SilentSessionHubTaskStatusCacheRepository.d.ts.map +0 -1
  82. package/types/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.d.ts +0 -10
  83. package/types/domain/usecases/adapter-interfaces/SilentSessionMessageComposer.d.ts.map +0 -1
  84. package/types/domain/usecases/adapter-interfaces/SubAgentLivenessResolver.d.ts +0 -7
  85. package/types/domain/usecases/adapter-interfaces/SubAgentLivenessResolver.d.ts.map +0 -1
  86. package/types/domain/usecases/adapter-interfaces/SubAgentProcessLister.d.ts +0 -8
  87. package/types/domain/usecases/adapter-interfaces/SubAgentProcessLister.d.ts.map +0 -1
  88. package/types/domain/usecases/adapter-interfaces/SubAgentSilentSecondsResolver.d.ts +0 -4
  89. package/types/domain/usecases/adapter-interfaces/SubAgentSilentSecondsResolver.d.ts.map +0 -1
  90. package/types/domain/usecases/adapter-interfaces/SubAgentTranscriptDirectoryResolver.d.ts +0 -4
  91. package/types/domain/usecases/adapter-interfaces/SubAgentTranscriptDirectoryResolver.d.ts.map +0 -1
  92. package/types/domain/usecases/silentSessionReminderSentinel.d.ts +0 -2
  93. package/types/domain/usecases/silentSessionReminderSentinel.d.ts.map +0 -1
package/README.md CHANGED
@@ -452,23 +452,7 @@ tokenExhaustionHandoverBareNameLeaderMessage?: string # Optional: Checkpoint ins
452
452
  tokenRateLimitSnapshotBaseDir?: string # Optional: Directory path for the per-token rate-limit snapshot JSON files read by the token exhaustion handover step. When unset, defaults to ${XDG_CACHE_HOME:-~/.cache}/tdpm/ratelimit
453
453
  tokenExhaustionGracePeriodSeconds?: number # Optional: Seconds to wait after sending the handover message before killing the tmux session, giving the session time to shut down gracefully. Default 180
454
454
  tokenExhaustionHandoverStateFilePath?: string # Optional: File path for the durable handover grace/debounce state (which sessions were signaled and when), written atomically so grace tracking survives daemon restarts. When unset, defaults to ${XDG_CACHE_HOME:-~/.cache}/tdpm/token-exhaustion-handover-state-tdpm-native.json (a TDPM-native filename kept distinct from any standalone monitor's state file so the two never share state)
455
- silentNotificationEnabled?: boolean # Optional: Master switch for the silent live session self-check notification. The step is a no-op unless this is `true`, the fleet-wide config file named by `--fleetConfigFilePath` (or `TDPM_FLEET_CONFIG`) contains a top-level `silentNotificationEnabled: true`, or the `TDPM_SILENT_NOTIFICATION_ENABLED` environment variable equals the string `true`. Priority order: this per-project config key (highest), fleet config (middle), env var (lowest). This gate prevents the step from acting automatically when the daemon is run with a default configuration; it must be explicitly turned on. Default false
456
- subAgentOutputRootDirectory?: string # Optional: Root directory holding one output file per sub-process (file name derived from the sub-process label). The modification time of each file is read to compute how long the sub-process output has been idle. When unset, sub-process idle time is reported as 0 and only the running-time threshold can trigger a sub-process notification
457
- subAgentProcessMatchPattern?: string # Optional: Regular expression matched against each process command line to discover the sub-processes that belong to a monitored session. The expression must define a named capture group `session` whose value equals the monitored session name, and may define a named capture group `label` used as the display name. When unset, the sub-process check is skipped
458
- subAgentTranscriptRootDirectory?: string # Optional: Projects root directory (for example `~/.claude/projects`) under which each session's transcript is stored as `<cwd-slug>/<sessionId>.jsonl` and its sub-agent transcripts live in the sibling `<cwd-slug>/<sessionId>/subagents/` directory as one `agent-<id>.jsonl` file per sub-agent. Because the on-disk directory is keyed by the session's working-directory slug and session id rather than by the tmux session name, the sub-agent directory is derived from the already-resolved main-session transcript path (the `.jsonl` suffix is stripped and `subagents` is appended). A sub-agent is treated as finished when the last meaningful entry of its transcript is a completion or termination marker: an assistant message whose `stop_reason` is `end_turn` or `stop_sequence`, an assistant message whose final content block is `text` (a final answer returned to the parent, which Claude Code often writes with a `null` `stop_reason`), a user message whose final content block is `text` (a terminal user entry such as `[Request interrupted by user]`), a user message whose final content block is the `tool_result` of a `StructuredOutput` tool call (the structured output the sub-agent delivered as its final answer), or a user message with no content blocks. A finished sub-agent is skipped only when it is no longer listed in the harness running-sub-agent set (`subAgentRuntimeRootDirectory`), or when that set cannot be read at all; a finished sub-agent the running set still lists is kept and reported as an unconsumed result, because the leader clears its record line once it has acted on the completion. Only a sub-agent whose last entry is an assistant message with a pending `tool_use` block and no following tool result is still considered active; its idle time is computed from the transcript file modification time (following symlinks) and the running time from its first entry timestamp. An active sub-agent whose pending tool command matches a live host process is classified as waiting on that external process and is exempt from the idle threshold (a genuinely hung sub-agent whose matching process is absent is still flagged), and the running threshold announces once per crossing per label. When set, this transcript-based discovery is used instead of `subAgentProcessMatchPattern`. When unset, the process-match discovery is used
459
- subAgentRuntimeRootDirectory?: string # Optional: Runtime root directory (for example `/tmp/claude-<uid>`) under which each session's positive running-sub-agent set is expected at `<cwd-slug>/<sessionId>/running-subagents.txt`. Each non-blank line has the form `<agentId> <label-or-branch-or-URL>`; only the first whitespace-delimited token of the line is taken as the sub-agent id, and any remaining text on the line (a label, branch name, or pull request URL) is ignored. Blank and whitespace-only lines are skipped. When transcript-based discovery is used, this enables a positive process-liveness gate: a sub-agent whose id is absent from the running set has already exited, so its stale on-disk transcript is not flagged even when its tail is a plain in-flight `tool_result`. Membership in the running set is also what distinguishes a consumed completion from an unconsumed one: a finished sub-agent the set still lists is reported as an unconsumed result and drives the unconsumed-result reminder section, while one absent from the set is dropped. When this directory is unset it defaults to `<os-tmpdir>/claude-<uid>` (or is disabled on platforms without a numeric user id); when the directory or the running-set file cannot be read the gate is skipped (fail-open) and the terminal-status and completion-marker exclusions remain the sole guards
460
- subAgentSilentThresholdSeconds?: number # Optional: Seconds of sub-process output silence after which the sub-process section is sent. Default 300
461
- subAgentRunningThresholdSeconds?: number # Optional: Seconds a sub-process may run before the sub-process section is sent regardless of its output silence. Default 900
462
- silentNotificationStaggerSeconds?: number # Optional: Seconds to wait between consecutive session notifications within one cycle, so the targets are notified sequentially rather than all at once. Default 25
463
- candidateDebounceRecencyWindowSeconds?: number # Optional: Recency window in seconds within which a session must have been recorded as a notification candidate in a previous cycle for the two-consecutive-cycle debounce to allow a notification this cycle. A small multiple of the schedule interval to tolerate interval jitter. Default 900
464
- candidateDebounceStateFilePath?: string # Optional: Path to the JSON state file that persists the per-cycle candidate session set used by the two-consecutive-cycle debounce. When unset, defaults to ${XDG_CACHE_HOME:-~/.cache}/tdpm/silent-session-candidates.json
465
- activeHubTaskStatus?: string # Optional: GitHub Project Status value that marks a session's hub task as still actively worked in an interactive session. For a session whose name is a `https://github.com/{owner}/{repo}/issues/{N}` issue URL, the hub task's latest state and Status are resolved before sending and the notification is suppressed when the issue is closed or merged, or when its Status differs from this value. Each resolved status is cached by issue URL (see hubTaskStatusCacheStateFilePath and hubTaskStatusCacheTtlSeconds) so a fresh cached entry decides the gate without a new GitHub query. When the hub task cannot be resolved (the resolver returns no tracked task, or a transient API error is thrown), a cached status is used as a fallback even after it expires: a cached active entry keeps the notification (the session is still notified if genuinely stalled) and a cached closed or non-active entry suppresses it. Only when there is no cached status at all and live resolution fails does the gate fail open once, logging a distinct warning. Sessions whose name is not a github.com issue URL are never checked. When unset, this hub-task active-status check is a no-op and existing behavior is preserved
466
- hubTaskStatusCacheStateFilePath?: string # Optional: Path to the JSON state file that caches each hub task's resolved state and Status keyed by issue URL for the hub-task active-status gate. When unset, defaults to ${XDG_CACHE_HOME:-~/.cache}/tdpm/silent-session-hub-task-status.json
467
- hubTaskStatusCacheTtlSeconds?: number # Optional: Seconds a cached hub-task status is considered fresh enough to decide the gate without re-querying GitHub. A cached entry older than this is re-resolved, but is still used as a fallback when re-resolution fails. Default 300
468
- silentSubAgentIdleMessageHeader?: string # Optional: Overrides the line shown above the sub-process list in the idle (no-output) sub-process message. When unset, a generic built-in line is used
469
- silentSubAgentIdleMessageFooter?: string # Optional: Overrides the line shown below the sub-process list in the idle (no-output) sub-process message. When unset, a generic built-in line is used
470
- silentSubAgentLongRunningMessageHeader?: string # Optional: Overrides the line shown above the sub-process list in the long-running sub-process message. When unset, a generic built-in line is used
471
- silentSubAgentLongRunningMessageFooter?: string # Optional: Overrides the line shown below the sub-process list in the long-running sub-process message. When unset, a generic built-in line is used
455
+ silentNotificationEnabled?: boolean # Optional: Master switch for the silent live session self-check notification step. The step is a no-op unless this is `true`, the fleet-wide config file named by `--fleetConfigFilePath` (or `TDPM_FLEET_CONFIG`) contains a top-level `silentNotificationEnabled: true`, or the `TDPM_SILENT_NOTIFICATION_ENABLED` environment variable equals the string `true`. Priority order: this per-project config key (highest), fleet config (middle), env var (lowest). Default false
472
456
  outputDegenerationResetEnabled?: boolean # Optional: Master switch for the output-degeneration reset step. When true, the daemon inspects every live interactive Claude Code session named after a github.com issue or pull-request URL and, when the session's most recent assistant turn is a collapsed single-token repeat loop (intra-turn) or the same isolated short trailing token recurs across the majority of recent turns (cross-turn), sends a checkpoint warning to the session via `tmux send-keys`, waits the grace period, and kills the tmux session so it is relaunched fresh. When false, detection and logging still run but no warning or kill is performed (dry-run). Default false
473
457
  outputDegenerationWarningMessage?: string # Optional: Checkpoint warning sent to a degenerated session via `tmux send-keys` before it is reset. When unset, a built-in default that tells the session to checkpoint its resume state to its task issue is used
474
458
  outputDegenerationGraceSeconds?: number # Optional: Seconds to wait after sending the degeneration warning before killing the tmux session, giving the session time to write its checkpoint. Default 5
@@ -749,15 +733,9 @@ For each `In Tmux by human` issue with no live session, the reconciler launches
749
733
 
750
734
  ## Silent Live Session Notification
751
735
 
752
- Each schedule cycle, when `silentNotificationEnabled` is true, also inspects every live interactive Claude Code session and sends a short self-check reminder into a session via `tmux send-keys` when the sub-process condition holds. Within the sub-process section the idle (no-output) condition and the long-running condition each produce their own distinct message so a small idle time is never lumped together with a long running time; a sub-process that matches both conditions is reported in both messages, kept separate. When `silentNotificationEnabled` is not set, the entire step is a no-op even if the daemon picks up its configuration automatically.
736
+ Each schedule cycle, when `silentNotificationEnabled` is true, this step runs and logs that the notification step is active but sends no notifications. When `silentNotificationEnabled` is not set, the step logs that it is skipped. Any error during the step is logged and swallowed so the schedule cycle is never affected.
753
737
 
754
- Candidate sessions are first selected from the live process tree: every live tmux session is taken, the descendants of each session's pane processes are walked, and the first descendant that is an interactive Claude Code process (its command line contains `claude` and does not contain the owner-handover marker `Take ownership of`, and its environment exposes both `CLAUDE_CODE_SESSION_ID` and `CLAUDE_CONFIG_DIR`) is taken as that session's process. Because the walk is anchored on tmux panes, background owner-handover spawns, the preparation daemon, and monitor processes — none of which run inside an interactive tmux pane — are excluded; the owner-handover marker check is an additional guard. The monitor then acts on a session when it is either named after a `github.com` issue or pull-request URL — that is, a name of the form `https_//github_com/{owner}/{repo}/issues/{N}` or `https_//github_com/{owner}/{repo}/pull/{N}` (the form tmux derives from the raw issue/PR URL by replacing only `.` and `:` with `_`; the raw `https://github.com/...` form is matched as well) — or has a resolvable Claude agent transcript on disk. The resolvable transcript is the proof that the session is a live Claude agent session, so role-named resident leader and project-manager agent sessions (for example `app`, `tdpm-cli`, `secretary`, and the per-project `*pm` sessions) are monitored when their names encode no issue or pull-request URL. Gating this broadened inclusion on the resolvable transcript rather than on merely being a tmux session keeps genuine non-agent interactive sessions excluded: a login shell, or a viewer such as `sso_login` or a `tdpm` viewer, exposes no Claude transcript on disk, so it is left untouched — it receives no sub-process notification — and the count of interactive sessions ignored each cycle, those that are neither github-named nor have a resolvable transcript, is logged. A role-named leader or PM session encodes no `github.com` hub task, so the hub-task active-status gate described below treats it as active and does not suppress it. Each interactive session's transcript is resolved by scanning the `projects/<cwd-slug>/` subdirectories of two roots — the per-session `<CLAUDE_CONFIG_DIR>/projects/` and the shared `~/.claude/projects/` — for a `<sessionId>.jsonl` file named by any of the session's candidate session ids. The candidate ids are derived from the process tree, in priority order: the current session id recorded in `<CLAUDE_CONFIG_DIR>/sessions/<pid>.json` (the session id rotates on resume or compaction, and this record holds the current value), then the interactive process's own launch id from the `CLAUDE_CODE_SESSION_ID` environment variable, then the distinct ids propagated to its descendant processes, all deduped. Searching the shared root and the rotated current id is required because, for a resumed or compacted session, the actively-written transcript is named by the current id and lives under the shared root rather than under the per-session config directory; the descendant-propagated ids are required because, for a session started without `--resume`, the own launch id names no transcript on disk and the live transcript is named by the descendant id. The candidate ids are tried strictly in this priority order, and the first candidate id that names an existing `<sessionId>.jsonl` file in either root is selected; the most recently modified match is used only as a tiebreak when that same id exists in both roots. Resolving by candidate-id priority rather than by the globally most recently modified file across all candidate ids is required because a session running a sub-agent has the sub-agent's own transcript on disk too, and that sub-agent transcript can be more recently modified than the parent session's transcript while not naming the parent. The parent session's own ids (the rotated current id and the launch id) come before any descendant-propagated id, so the parent's own transcript is selected ahead of a sub-agent transcript; a sub-agent transcript, which lives under `projects/<cwd-slug>/<parentSessionId>/subagents/agent-<id>.jsonl` rather than as a top-level `<sessionId>.jsonl` file, is never reached. This way a non-resume session and a session that has no issue URL both resolve just as reliably as a resume, issue-url-named one, and a session that is waiting on the owner while a sub-agent runs is evaluated against its own transcript rather than the sub-agent's.
755
-
756
- The sub-process section is sent, regardless of main output, when at least one sub-process of the session has been output-idle for `subAgentSilentThresholdSeconds`, has been running for `subAgentRunningThresholdSeconds`, or has finished while its result stayed unconsumed for `subAgentSilentThresholdSeconds`. It is composed of up to three distinct messages, one per condition: an idle message that lists each sub-process that produced no output for at least `subAgentSilentThresholdSeconds` with its no-output minutes, tells the agent to treat that system-detected idle duration as the authoritative signal rather than re-deriving whether the sub-process is alive, forbids dismissing the signal from speculation, and requires the agent to determine the cause by a concrete check (whether there is genuinely no recent activity anywhere, including a very recent push or commit or output from nested sub-processes it started, versus being legitimately blocked on an external dependency such as a continuous-integration run, an external API, or another process), to act if stuck or state the waiting conclusion with concrete evidence if waiting, and to output that investigation result into the session as a log even though owner notification is not required, and a long-running message that lists each sub-process that has been running for at least `subAgentRunningThresholdSeconds` with its running minutes and asks the agent to verify it is genuinely advancing rather than caught in an infinite loop, a task that is too large, or a stuck approach. The long-running message foregrounds the running duration and does not surface the short idle time, so a sub-process flagged only for running long is not dismissed because its silent time looks small; a sub-process that matches both conditions appears in both messages. The long-running threshold is overridable per project via `subAgentRunningThresholdSeconds` (default 900 seconds) for repositories whose continuous integration legitimately runs longer. The third message is the unconsumed-result message: it lists each finished sub-process whose result has been waiting unread for at least `subAgentSilentThresholdSeconds` with the whole minutes it has been waiting, and asks the agent to read that result, act on it, and then mark the sub-process finished so it is no longer tracked as running. A finished sub-process is recognized as unconsumed while it is still listed in the harness running set, because the leader removes that record line once it has acted on the completion, and its waiting time is the age of the last transcript write. This condition is evaluated independently of main-session silence, so a leader that keeps producing output while a finished sub-process result sits unread is still reminded. A finished sub-process never appears in the idle or long-running messages; those two remain restricted to sub-processes that are still working. Sub-processes are discovered in one of two ways: when `subAgentTranscriptRootDirectory` is configured, each session's `subagents/agent-<id>.jsonl` transcripts are scanned. The sub-agent directory is the `subagents/` directory that sits next to the session's already-resolved main-session transcript file under `projects/<cwd-slug>/<sessionId>/subagents/`, derived by stripping the `.jsonl` suffix from the main-session transcript path and appending `subagents`; this on-disk path is keyed by the session's working-directory slug and session id, not by the tmux session name. Whether a sub-agent has finished is determined from the last meaningful transcript entry rather than from the last non-null `stop_reason` seen anywhere in the file. A sub-agent is treated as finished when its last entry is a completion or termination marker: an assistant message whose `stop_reason` is `end_turn` or `stop_sequence`, an assistant message whose final content block is `text` (a final answer returned to the parent, which Claude Code often writes with a `null` `stop_reason`), a user message whose final content block is `text` (a terminal user entry such as `[Request interrupted by user]`), a user message whose final content block is the `tool_result` of a `StructuredOutput` tool call (the structured output the sub-agent delivered as its final answer), or a user message with no content blocks. Only a sub-agent whose last entry is an assistant message with a pending `tool_use` block and no following tool result is still considered active and subject to the idle and running thresholds; this is the genuinely-incomplete shape — the sub-agent requested a tool that never returned and is hung mid-work. A plain trailing `tool_result` (from any tool other than `StructuredOutput`) is not treated as a completion marker, because a live agent alternates between pending `tool_use` and `tool_result` entries as tools complete; treating it as terminal would make an active agent flap in and out of the snapshot. Idle time is taken from the transcript file modification time (following symlinks) while running time is taken from its first entry timestamp. Two positive signals drop a sub-agent outright: a parent-transcript task notification whose `<status>` is a terminal value (`completed`, `killed`, `stopped`, or `failed`) drops every `<task-id>` it lists, and, when `subAgentRuntimeRootDirectory` is configured, a process-liveness gate drops any sub-agent id absent from the harness running set (`running-subagents.txt`). A sub-agent that survives both signals and whose transcript ends in a completion or termination marker is the unconsumed-result case: it is still listed in the running set, so it is retained and reported with its completion state and the age of its last transcript write instead of being discarded, which is what lets the unconsumed-result message be composed. When the running set cannot be read at all, the completion marker alone excludes the sub-agent, because an unconsumed result cannot be distinguished from an already-cleared one without that set. There is no age cap: a sub-agent that is past the idle or running threshold and does not end in a completion or termination marker is flagged regardless of how long it has been silent, so a genuinely-stuck sub-agent that has been hung on a pending tool call for hours or days is still reported instead of being silently dropped. Otherwise sub-processes are discovered by matching `subAgentProcessMatchPattern` against process command lines. Because a sub-agent inside a single blocking call (for example a continuous-integration watch) is otherwise indistinguishable from a hung one, the transcript-based discovery additionally judges the sub-agent's actual wait state instead of applying any time-window suppression. A sub-agent whose transcript tail is an in-flight tool call — the last entry is an assistant tool-use with no following tool result — carrying a command string is classified as WAITING when a live process matching that command exists on the host: each pending tool command is normalized (whitespace collapsed, first 60 characters) and searched as a substring of the normalized host process command lines (`ps -eo etimes=,args=`, supplied through the injectable process lister). A WAITING sub-agent never produces an idle (no-output) reminder, no matter how long its transcript has been silent. The long-running message is selected on elapsed running time alone and is not affected by either signal: a sub-process that keeps producing output, and a sub-process classified as WAITING on a live external process, are both still reported once they pass `subAgentRunningThresholdSeconds`, because producing output and waiting on a long external command are exactly the states a genuinely long-running sub-process is normally in. This selection is also independent of whether the main session is silent, so a leader that is actively working is still told how long each of its sub-processes has been running. A sub-agent whose in-flight tool call has no matching live process is genuinely hung and its session is re-selected as a candidate on every qualifying cycle. A session that stays a candidate is re-injected on every qualifying cycle: there is no per-episode cap, so a session with a persistent sub-process advisory is reminded again each cycle until the condition clears.
757
-
758
- A two-consecutive-cycle debounce guards against transient false positives: a session is notified only when it meets the sub-agent notification condition in the current cycle and it was also a notification candidate in the immediately previous cycle. The set of candidate session names is persisted across cycles, keyed by the globally-unique session name, in a state file written atomically (the default path is `${XDG_CACHE_HOME:-~/.cache}/tdpm/silent-session-candidates.json`, overridable via `candidateDebounceStateFilePath`). The monitor runs as a fresh process each schedule cycle, so this on-disk state is what carries the previous cycle's candidate set forward. Each cycle loads the candidate set recorded within `candidateDebounceRecencyWindowSeconds` of now (default 900, a small multiple of the schedule interval to tolerate interval jitter), then records the current candidate set with the current timestamp; entries that age past the retention window are dropped on the next save, and a save merges with other recently-recorded session names so concurrent per-project runs do not clobber each other. A candidate that appears for only one isolated cycle — for example because a transient hub-task status resolution error fails open for a single cycle — is therefore deferred and never notified, while a genuine stall that persists across cycles is still caught, one cycle later. When more than one session is notified in the same cycle, the sends are spaced out sequentially with `silentNotificationStaggerSeconds` between consecutive sends (no wait before the first or after the last) so the targets are not all triggered at once. When `activeHubTaskStatus` is configured, each notification is gated on the latest GitHub state and Project Status of the session's hub task: a session whose name identifies a github.com issue or pull request — accepted both as a clean `https://github.com/{owner}/{repo}/issues/{N}` URL and as the real tmux session-name form `https_//github_com/{owner}/{repo}/issues/{N}` produced by replacing `.` and `:` with `_` (the `pull` path is accepted in both forms too) — is notified only while that hub task is open and in the configured active Status, so a session whose hub task has been closed, merged, or moved to another Status (for example Done) is suppressed; sessions whose name does not identify a github.com issue or pull request are never gated. To cut GitHub query load and remove most fail-opens, each resolved status is cached by issue URL in a state file written atomically (the default path is `${XDG_CACHE_HOME:-~/.cache}/tdpm/silent-session-hub-task-status.json`, overridable via `hubTaskStatusCacheStateFilePath`). On each cycle the gate reads the cache first: a cached entry recorded within `hubTaskStatusCacheTtlSeconds` of now (default 300) decides the gate without any GitHub query, and otherwise the hub task is re-resolved and the result written back to the cache. When live resolution fails — the resolver returns no tracked task (a closed or Done issue filtered out of the active project), or a transient API error is thrown — the gate falls back to the cached status even after it has expired: a cached active entry keeps the notification (still notified if genuinely stalled) and a cached closed or non-active entry suppresses it, each logged with a distinct warning. Only when there is no cached status at all and live resolution fails does the gate fail open once (a closed issue and a transient error are indistinguishable in that case without an extra network call), logging a distinct warning, so the next cycle can populate the cache. When `activeHubTaskStatus` is unset, this hub-task check is a no-op. Process-snapshot collection, transcript resolution, the wait between sends, and the message wording are all performed through injectable ports, so the logic is unit-testable without touching the host, and the host-specific process and environment access, sub-process pattern, and message wording are supplied through adapters or configuration. When `silentNotificationEnabled` is not true the step is a no-op, and any error during the step is logged and swallowed so the schedule cycle is never affected.
759
-
760
- Each config key above has a matching environment variable read when both the per-project config key and the fleet config are unset: `TDPM_SILENT_NOTIFICATION_ENABLED` (the string `true` enables the step; the fleet-wide config file's top-level `silentNotificationEnabled` is the intermediate source between the per-project key and this env var), `TDPM_SUBAGENT_OUTPUT_ROOT_DIRECTORY`, `TDPM_SUBAGENT_PROCESS_MATCH_PATTERN`, `TDPM_SUBAGENT_TRANSCRIPT_ROOT_DIRECTORY`, `TDPM_SUBAGENT_RUNTIME_ROOT_DIRECTORY`, `TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS`, `TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS`, `TDPM_SILENT_CANDIDATE_DEBOUNCE_RECENCY_WINDOW_SECONDS`, `TDPM_SILENT_CANDIDATE_DEBOUNCE_STATE_FILE_PATH`, `TDPM_ACTIVE_HUB_TASK_STATUS`, `TDPM_SILENT_HUB_TASK_STATUS_CACHE_STATE_FILE_PATH`, `TDPM_SILENT_HUB_TASK_STATUS_CACHE_TTL_SECONDS`, `TDPM_SILENT_SUBAGENT_IDLE_MESSAGE_HEADER`, `TDPM_SILENT_SUBAGENT_IDLE_MESSAGE_FOOTER`, `TDPM_SILENT_SUBAGENT_LONG_RUNNING_MESSAGE_HEADER`, and `TDPM_SILENT_SUBAGENT_LONG_RUNNING_MESSAGE_FOOTER`.
738
+ `TDPM_SILENT_NOTIFICATION_ENABLED` (the string `true` enables the step) is the environment variable equivalent. The fleet-wide config file's top-level `silentNotificationEnabled` is the intermediate source between the per-project config key and this env var.
761
739
 
762
740
  Each schedule cycle, when `outputDegenerationResetEnabled` is true, also inspects every live interactive Claude Code session named after a github.com issue or pull-request URL and resets a session whose output has collapsed into a repeat loop. A session is detected as degenerated when either of two independent conditions holds. The intra-turn condition looks at the session's most recent assistant turn and fires on any of three signatures: the longest consecutive run of an identical short token (at most 32 characters) is at least 5 and dominates at least 0.8 of the turn's tokens; or, after fenced code blocks, table rows, and list items are removed, an absolute consecutive run reaches at least 15 identical short tokens; or the duplicated 4-gram density of the filtered turn is at least 0.3 over at least 40 tokens. The cross-turn condition looks at the last 10 assistant turns and fires when the same isolated short purely-alphabetic trailing token recurs as the appended token in at least 4 of them. These thresholds are ported unchanged from the empirically-validated standalone monitor: healthy sessions never exceed 2 to 3 consecutive repeats of a single token in one turn and end turns with varied content, so both conditions have measured zero false positives. When a session is detected, a checkpoint warning is sent via `tmux send-keys`, the grace period is awaited, and the tmux session is killed so it is relaunched fresh; a per-session cooldown (default 300 seconds) prevents re-resetting the same session before its fresh relaunch completes. When `outputDegenerationResetEnabled` is not true the detection still runs and logs what it would do, but no warning or kill is performed, and any error during the step is logged and swallowed so the schedule cycle is never affected. Each config key above has a matching environment variable read when the config key is unset: `TDPM_OUTPUT_DEGENERATION_RESET_ENABLED` (the string `true` enables the step), `TDPM_OUTPUT_DEGENERATION_WARNING_MESSAGE`, `TDPM_OUTPUT_DEGENERATION_GRACE_SECONDS`, `TDPM_OUTPUT_DEGENERATION_COOLDOWN_SECONDS`, and `TDPM_OUTPUT_DEGENERATION_COOLDOWN_STATE_FILE_PATH`.
763
741
 
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.HandleScheduledEventUseCaseHandler = void 0;
7
7
  const yaml_1 = __importDefault(require("yaml"));
8
8
  const fs_1 = __importDefault(require("fs"));
9
- const os_1 = __importDefault(require("os"));
10
- const path_1 = __importDefault(require("path"));
11
9
  const situationFileWriter_1 = require("./situationFileWriter");
12
10
  const consoleListsWriter_1 = require("./consoleListsWriter");
13
11
  const dashboardRowWriter_1 = require("./dashboardRowWriter");
@@ -443,58 +441,8 @@ class HandleScheduledEventUseCaseHandler {
443
441
  const silentNotificationEnabled = mergedInput.silentNotificationEnabled ??
444
442
  (0, fleetConfig_1.loadSilentNotificationEnabled)(fleetConfigFilePath) ??
445
443
  process.env.TDPM_SILENT_NOTIFICATION_ENABLED === 'true';
446
- const subAgentOutputRootDirectory = mergedInput.subAgentOutputRootDirectory ??
447
- process.env.TDPM_SUBAGENT_OUTPUT_ROOT_DIRECTORY ??
448
- null;
449
- const subAgentProcessMatchPattern = mergedInput.subAgentProcessMatchPattern ??
450
- process.env.TDPM_SUBAGENT_PROCESS_MATCH_PATTERN ??
451
- null;
452
- const subAgentTranscriptRootDirectory = mergedInput.subAgentTranscriptRootDirectory ??
453
- process.env.TDPM_SUBAGENT_TRANSCRIPT_ROOT_DIRECTORY ??
454
- null;
455
- const getuid = process.getuid?.bind(process);
456
- const subAgentRuntimeRootDirectory = mergedInput.subAgentRuntimeRootDirectory ??
457
- process.env.TDPM_SUBAGENT_RUNTIME_ROOT_DIRECTORY ??
458
- (getuid === undefined
459
- ? null
460
- : path_1.default.join(os_1.default.tmpdir(), `claude-${getuid()}`));
461
444
  await (0, notifySilentTmuxSessions_1.notifySilentTmuxSessions)({
462
445
  enabled: silentNotificationEnabled,
463
- localCommandRunner: nodeLocalCommandRunner,
464
- subAgentOutputRootDirectory,
465
- subAgentProcessMatchPattern,
466
- subAgentTranscriptRootDirectory,
467
- subAgentRuntimeRootDirectory,
468
- subAgentSilentThresholdSeconds: readSilentSeconds(mergedInput.subAgentSilentThresholdSeconds, process.env.TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentSilentThresholdSeconds),
469
- subAgentRunningThresholdSeconds: readSilentSeconds(mergedInput.subAgentRunningThresholdSeconds, process.env.TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentRunningThresholdSeconds),
470
- staggerSeconds: readSilentSeconds(mergedInput.silentNotificationStaggerSeconds, process.env.TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.staggerSeconds),
471
- candidateDebounceRecencyWindowSeconds: readSilentSeconds(mergedInput.candidateDebounceRecencyWindowSeconds, process.env.TDPM_SILENT_CANDIDATE_DEBOUNCE_RECENCY_WINDOW_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.candidateDebounceRecencyWindowSeconds),
472
- candidateDebounceStateFilePath: mergedInput.candidateDebounceStateFilePath ??
473
- process.env.TDPM_SILENT_CANDIDATE_DEBOUNCE_STATE_FILE_PATH ??
474
- null,
475
- activeHubTaskStatus: mergedInput.activeHubTaskStatus ??
476
- process.env.TDPM_ACTIVE_HUB_TASK_STATUS ??
477
- null,
478
- hubTaskStatusResolver: issueRepository,
479
- hubTaskStatusCacheStateFilePath: mergedInput.hubTaskStatusCacheStateFilePath ??
480
- process.env.TDPM_SILENT_HUB_TASK_STATUS_CACHE_STATE_FILE_PATH ??
481
- null,
482
- hubTaskStatusCacheTtlSeconds: readSilentSeconds(mergedInput.hubTaskStatusCacheTtlSeconds, process.env.TDPM_SILENT_HUB_TASK_STATUS_CACHE_TTL_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.hubTaskStatusCacheTtlSeconds),
483
- messageTemplates: {
484
- subAgentIdleMessageHeader: mergedInput.silentSubAgentIdleMessageHeader ??
485
- process.env.TDPM_SILENT_SUBAGENT_IDLE_MESSAGE_HEADER ??
486
- null,
487
- subAgentIdleMessageFooter: mergedInput.silentSubAgentIdleMessageFooter ??
488
- process.env.TDPM_SILENT_SUBAGENT_IDLE_MESSAGE_FOOTER ??
489
- null,
490
- subAgentLongRunningMessageHeader: mergedInput.silentSubAgentLongRunningMessageHeader ??
491
- process.env.TDPM_SILENT_SUBAGENT_LONG_RUNNING_MESSAGE_HEADER ??
492
- null,
493
- subAgentLongRunningMessageFooter: mergedInput.silentSubAgentLongRunningMessageFooter ??
494
- process.env.TDPM_SILENT_SUBAGENT_LONG_RUNNING_MESSAGE_FOOTER ??
495
- null,
496
- },
497
- now: inTmuxNow,
498
446
  });
499
447
  }
500
448
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,4CAAoB;AACpB,4CAAoB;AACpB,gDAAwB;AACxB,+DAA2D;AAC3D,6DAG8B;AAC9B,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,yFAAsF;AACtF,uEAAmE;AACnE,iEAAwE;AACxE,q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js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,4CAAoB;AACpB,+DAA2D;AAC3D,6DAG8B;AAC9B,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,yFAAsF;AACtF,uEAAmE;AACnE,iEAAwE;AACxE,qFAAkF;AAClF,uEAA0E;AAC1E,uEAAmE;AACnE,yEAAsE;AACtE,iFAGwC;AACxC,uEAAmE;AACnE,wDAG8B;AAC9B,oDAM4B;AAC5B,kFAA+E;AAC/E,sFAAmF;AACnF,gGAA6F;AAC7F,0FAAuF;AACvF,wFAAqF;AACrF,sFAAmF;AACnF,wGAAqG;AACrG,8GAA2G;AAC3G,sGAAmG;AACnG,gGAA6F;AAC7F,8FAAsF;AACtF,kGAA+F;AAC/F,gIAA6H;AAC7H,oHAAiH;AACjH,wGAAqG;AAIrG,0FAAuF;AACvF,wGAAqG;AACrG,gIAA6H;AAC7H,gHAA6G;AAC7G,wGAAqG;AACrG,8GAA2G;AAC3G,0GAAuG;AACvG,wGAAqG;AACrG,0HAAuH;AACvH,8GAA2G;AAC3G,oGAAiG;AACjG,8FAA2F;AAC3F,sFAAmF;AACnF,gHAA6G;AAC7G,0GAAuG;AACvG,wGAAqG;AACrG,oGAAiG;AACjG,sGAAmG;AACnG,gHAA6G;AAC7G,0HAAuH;AACvH,kHAA+G;AAC/G,kGAA+F;AAC/F,kHAA+G;AAC/G,8GAA2G;AAC3G,sGAAmG;AACnG,gGAA6F;AAC7F,oGAAiG;AACjG,4GAAyG;AACzG,wGAAqG;AACrG,0EAAuE;AACvE,sHAAmH;AACnH,4EAKiD;AAEjD,MAAM,0BAA0B,GAAkB,IAAI,CAAC;AAEvD,MAAM,iBAAiB,GAAG,CACxB,WAA+B,EAC/B,QAA4B,EAC5B,YAAoB,EACZ,EAAE;IACV,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,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C,EAC7C,OAAO,CAAC,GAAG,CAAC,yCAAyC,EACrD,6EAA8C,CAAC,eAAe,CAC/D;wBACD,qBAAqB,EACnB,WAAW,CAAC,uCAAuC;4BACnD,OAAO,CAAC,GAAG,CAAC,iDAAiD;4BAC7D,IAAI;wBACN,GAAG,EAAE,SAAS;qBACf,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CACX,8CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AA3uBD,gFA2uBC"}
@@ -1,58 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS = exports.notifySilentTmuxSessions = void 0;
4
- const NotifySilentLiveSessionsUseCase_1 = require("../../../domain/usecases/NotifySilentLiveSessionsUseCase");
5
- const DefaultSilentSessionMessageComposer_1 = require("../../../domain/usecases/DefaultSilentSessionMessageComposer");
6
- const LocalProcessLiveSessionProcessSnapshotProvider_1 = require("../../repositories/LocalProcessLiveSessionProcessSnapshotProvider");
7
- const ProcFsProcessEnvironReader_1 = require("../../repositories/ProcFsProcessEnvironReader");
8
- const FileSystemInteractiveLiveSessionTranscriptResolver_1 = require("../../repositories/FileSystemInteractiveLiveSessionTranscriptResolver");
9
- const TmuxSilentSessionNotificationRepository_1 = require("../../repositories/TmuxSilentSessionNotificationRepository");
10
- const TranscriptRefusalTailStatusProvider_1 = require("../../repositories/TranscriptRefusalTailStatusProvider");
11
- const ProcessListSessionSubAgentActivityRepository_1 = require("../../repositories/ProcessListSessionSubAgentActivityRepository");
12
- const TranscriptSessionSubAgentActivityRepository_1 = require("../../repositories/TranscriptSessionSubAgentActivityRepository");
13
- const FileSystemSubAgentTranscriptDirectoryResolver_1 = require("../../repositories/FileSystemSubAgentTranscriptDirectoryResolver");
14
- const FileSystemSubAgentLivenessResolver_1 = require("../../repositories/FileSystemSubAgentLivenessResolver");
15
- const NodeSubAgentProcessLister_1 = require("../../repositories/NodeSubAgentProcessLister");
16
- const FileSystemSubAgentSilentSecondsResolver_1 = require("../../repositories/FileSystemSubAgentSilentSecondsResolver");
17
- const ConfigurableSilentSessionMessageComposer_1 = require("../../repositories/ConfigurableSilentSessionMessageComposer");
18
- const RealSleeper_1 = require("../../repositories/RealSleeper");
19
- const FileSystemSilentSessionCandidateStateRepository_1 = require("../../repositories/FileSystemSilentSessionCandidateStateRepository");
20
- const FileSystemSilentSessionHubTaskStatusCacheRepository_1 = require("../../repositories/FileSystemSilentSessionHubTaskStatusCacheRepository");
21
- const createSubAgentActivityRepository = (subAgentTranscriptRootDirectory, subAgentRuntimeRootDirectory, subAgentProcessMatchPattern, subAgentOutputRootDirectory, localCommandRunner, now) => {
22
- if (subAgentTranscriptRootDirectory !== null) {
23
- return new TranscriptSessionSubAgentActivityRepository_1.TranscriptSessionSubAgentActivityRepository(new FileSystemSubAgentTranscriptDirectoryResolver_1.FileSystemSubAgentTranscriptDirectoryResolver(subAgentTranscriptRootDirectory), new NodeSubAgentProcessLister_1.NodeSubAgentProcessLister(localCommandRunner), now, new FileSystemSubAgentLivenessResolver_1.FileSystemSubAgentLivenessResolver(subAgentRuntimeRootDirectory), subAgentRuntimeRootDirectory);
24
- }
25
- return new ProcessListSessionSubAgentActivityRepository_1.ProcessListSessionSubAgentActivityRepository(subAgentProcessMatchPattern, new NodeSubAgentProcessLister_1.NodeSubAgentProcessLister(localCommandRunner), new FileSystemSubAgentSilentSecondsResolver_1.FileSystemSubAgentSilentSecondsResolver(subAgentOutputRootDirectory, now));
26
- };
27
4
  const notifySilentTmuxSessions = async (params) => {
28
- const { enabled, localCommandRunner, processEnvironReader, subAgentOutputRootDirectory, subAgentProcessMatchPattern, subAgentTranscriptRootDirectory, subAgentRuntimeRootDirectory, subAgentSilentThresholdSeconds, subAgentRunningThresholdSeconds, staggerSeconds, candidateDebounceRecencyWindowSeconds, candidateDebounceStateFilePath, activeHubTaskStatus, hubTaskStatusResolver, hubTaskStatusCacheStateFilePath, hubTaskStatusCacheTtlSeconds, messageTemplates, submitPushOutWaitMilliseconds, now, } = params;
29
- if (!enabled) {
30
- console.log('Silent live session notification skipped: not enabled (set silentNotificationEnabled in fleet config, in project config, or set TDPM_SILENT_NOTIFICATION_ENABLED=true).');
5
+ if (!params.enabled) {
6
+ console.log('Silent live session notification skipped: not enabled (set silentNotificationEnabled or TDPM_SILENT_NOTIFICATION_ENABLED=true to enable).');
31
7
  return;
32
8
  }
33
- const messageComposer = new ConfigurableSilentSessionMessageComposer_1.ConfigurableSilentSessionMessageComposer(messageTemplates, new DefaultSilentSessionMessageComposer_1.DefaultSilentSessionMessageComposer());
34
- const useCase = new NotifySilentLiveSessionsUseCase_1.NotifySilentLiveSessionsUseCase(new LocalProcessLiveSessionProcessSnapshotProvider_1.LocalProcessLiveSessionProcessSnapshotProvider(localCommandRunner, processEnvironReader ?? new ProcFsProcessEnvironReader_1.ProcFsProcessEnvironReader()), new FileSystemInteractiveLiveSessionTranscriptResolver_1.FileSystemInteractiveLiveSessionTranscriptResolver(), createSubAgentActivityRepository(subAgentTranscriptRootDirectory, subAgentRuntimeRootDirectory, subAgentProcessMatchPattern, subAgentOutputRootDirectory, localCommandRunner, now), new TmuxSilentSessionNotificationRepository_1.TmuxSilentSessionNotificationRepository(localCommandRunner, new RealSleeper_1.RealSleeper(), TmuxSilentSessionNotificationRepository_1.DEFAULT_SUBMIT_PUSH_OUT_ATTEMPT_LIMIT, submitPushOutWaitMilliseconds ??
35
- TmuxSilentSessionNotificationRepository_1.DEFAULT_SUBMIT_PUSH_OUT_WAIT_MILLISECONDS), candidateDebounceStateFilePath !== null
36
- ? new FileSystemSilentSessionCandidateStateRepository_1.FileSystemSilentSessionCandidateStateRepository(candidateDebounceStateFilePath)
37
- : new FileSystemSilentSessionCandidateStateRepository_1.FileSystemSilentSessionCandidateStateRepository(), messageComposer, new RealSleeper_1.RealSleeper(), hubTaskStatusResolver, hubTaskStatusCacheStateFilePath !== null
38
- ? new FileSystemSilentSessionHubTaskStatusCacheRepository_1.FileSystemSilentSessionHubTaskStatusCacheRepository(hubTaskStatusCacheStateFilePath)
39
- : new FileSystemSilentSessionHubTaskStatusCacheRepository_1.FileSystemSilentSessionHubTaskStatusCacheRepository(), new TranscriptRefusalTailStatusProvider_1.TranscriptRefusalTailStatusProvider());
40
- await useCase.run({
41
- subAgentSilentThresholdSeconds,
42
- subAgentRunningThresholdSeconds,
43
- staggerSeconds,
44
- candidateDebounceRecencyWindowSeconds,
45
- activeHubTaskStatus,
46
- hubTaskStatusCacheTtlSeconds,
47
- now,
48
- });
9
+ console.log('Silent live session notification: all reminder sections removed; no notifications to send.');
49
10
  };
50
11
  exports.notifySilentTmuxSessions = notifySilentTmuxSessions;
51
- exports.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS = {
52
- subAgentSilentThresholdSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS,
53
- subAgentRunningThresholdSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
54
- staggerSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_NOTIFICATION_STAGGER_SECONDS,
55
- candidateDebounceRecencyWindowSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_CANDIDATE_DEBOUNCE_RECENCY_WINDOW_SECONDS,
56
- hubTaskStatusCacheTtlSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_HUB_TASK_STATUS_CACHE_TTL_SECONDS,
57
- };
12
+ exports.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS = {};
58
13
  //# sourceMappingURL=notifySilentTmuxSessions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notifySilentTmuxSessions.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts"],"names":[],"mappings":";;;AAGA,8GAQkE;AAClE,sHAAmH;AACnH,sIAAmI;AACnI,8FAA2F;AAC3F,8IAA2I;AAC3I,wHAIoE;AACpE,gHAA6G;AAC7G,kIAA+H;AAC/H,gIAA6H;AAC7H,oIAAiI;AACjI,8GAA2G;AAC3G,4FAAyF;AACzF,wHAAqH;AACrH,0HAGqE;AACrE,gEAA6D;AAC7D,wIAAqI;AACrI,gJAA6I;AAwB7I,MAAM,gCAAgC,GAAG,CACvC,+BAA8C,EAC9C,4BAA2C,EAC3C,2BAA0C,EAC1C,2BAA0C,EAC1C,kBAAsC,EACtC,GAAS,EAC0B,EAAE;IACrC,IAAI,+BAA+B,KAAK,IAAI,EAAE,CAAC;QAC7C,OAAO,IAAI,yFAA2C,CACpD,IAAI,6FAA6C,CAC/C,+BAA+B,CAChC,EACD,IAAI,qDAAyB,CAAC,kBAAkB,CAAC,EACjD,GAAG,EACH,IAAI,uEAAkC,CAAC,4BAA4B,CAAC,EACpE,4BAA4B,CAC7B,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,2FAA4C,CACrD,2BAA2B,EAC3B,IAAI,qDAAyB,CAAC,kBAAkB,CAAC,EACjD,IAAI,iFAAuC,CACzC,2BAA2B,EAC3B,GAAG,CACJ,CACF,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAsC,EACvB,EAAE;IACjB,MAAM,EACJ,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAC/B,cAAc,EACd,qCAAqC,EACrC,8BAA8B,EAC9B,mBAAmB,EACnB,qBAAqB,EACrB,+BAA+B,EAC/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+B,EAAE,4EAA0C;IAC3E,cAAc,EAAE,sEAAoC;IACpD,qCAAqC,EACnC,mFAAiD;IACnD,4BAA4B,EAAE,2EAAyC;CAC/D,CAAC"}
1
+ {"version":3,"file":"notifySilentTmuxSessions.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts"],"names":[],"mappings":";;;AAIO,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAsC,EACvB,EAAE;IACjB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,CACT,2IAA2I,CAC5I,CAAC;QACF,OAAO;IACT,CAAC;IACD,OAAO,CAAC,GAAG,CACT,4FAA4F,CAC7F,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,wBAAwB,4BAYnC;AAEW,QAAA,0CAA0C,GAAG,EAAW,CAAC"}
@@ -1,237 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotifySilentLiveSessionsUseCase = exports.isGitHubIssueOrPullRequestSessionName = exports.parseHubTaskIssueUrlFromSessionName = exports.DEFAULT_HUB_TASK_STATUS_CACHE_TTL_SECONDS = exports.DEFAULT_CANDIDATE_DEBOUNCE_RECENCY_WINDOW_SECONDS = exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = exports.DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS = exports.DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS = void 0;
4
- const ResolveInteractiveLiveSessionsUseCase_1 = require("./ResolveInteractiveLiveSessionsUseCase");
5
- exports.DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS = 5 * 60;
6
- exports.DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS = 15 * 60;
7
- exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = 25;
8
- exports.DEFAULT_CANDIDATE_DEBOUNCE_RECENCY_WINDOW_SECONDS = 15 * 60;
9
- exports.DEFAULT_HUB_TASK_STATUS_CACHE_TTL_SECONDS = 5 * 60;
10
- const GITHUB_ISSUE_OR_PULL_URL_PATTERN = /^https:\/\/github\.com\/([^/]+)\/([^/]+)\/(?:issues|pull)\/(\d+)$/;
11
- const GITHUB_TMUX_SESSION_NAME_PATTERN = /^https_\/\/github_com\/([^/]+)\/([^/]+)\/(?:issues|pull)\/(\d+)$/;
12
- const parseHubTaskIssueUrlFromSessionName = (sessionName) => {
13
- if (GITHUB_ISSUE_OR_PULL_URL_PATTERN.test(sessionName)) {
14
- return sessionName;
15
- }
16
- const tmuxMatch = GITHUB_TMUX_SESSION_NAME_PATTERN.exec(sessionName);
17
- if (tmuxMatch === null) {
18
- return null;
19
- }
20
- const [, owner, repo, number] = tmuxMatch;
21
- const target = sessionName.includes('/pull/') ? 'pull' : 'issues';
22
- return `https://github.com/${owner}/${repo}/${target}/${number}`;
23
- };
24
- exports.parseHubTaskIssueUrlFromSessionName = parseHubTaskIssueUrlFromSessionName;
3
+ exports.isGitHubIssueOrPullRequestSessionName = void 0;
25
4
  const GITHUB_ISSUE_OR_PULL_REQUEST_SESSION_NAME_PATTERN = /^https(:\/\/|_\/\/)github(\.com|_com)\/[^/]+\/[^/]+\/(issues|pull)\/\d+$/;
26
5
  const isGitHubIssueOrPullRequestSessionName = (sessionName) => GITHUB_ISSUE_OR_PULL_REQUEST_SESSION_NAME_PATTERN.test(sessionName);
27
6
  exports.isGitHubIssueOrPullRequestSessionName = isGitHubIssueOrPullRequestSessionName;
28
- class NotifySilentLiveSessionsUseCase {
29
- constructor(liveSessionProcessSnapshotProvider, interactiveLiveSessionTranscriptResolver, subAgentActivityRepository, notificationRepository, candidateStateRepository, messageComposer, sleeper, hubTaskStatusResolver = null, hubTaskStatusCacheRepository = null, refusalTailStatusProvider = null) {
30
- this.liveSessionProcessSnapshotProvider = liveSessionProcessSnapshotProvider;
31
- this.interactiveLiveSessionTranscriptResolver = interactiveLiveSessionTranscriptResolver;
32
- this.subAgentActivityRepository = subAgentActivityRepository;
33
- this.notificationRepository = notificationRepository;
34
- this.candidateStateRepository = candidateStateRepository;
35
- this.messageComposer = messageComposer;
36
- this.sleeper = sleeper;
37
- this.hubTaskStatusResolver = hubTaskStatusResolver;
38
- this.hubTaskStatusCacheRepository = hubTaskStatusCacheRepository;
39
- this.refusalTailStatusProvider = refusalTailStatusProvider;
40
- this.resolveInteractiveLiveSessions = new ResolveInteractiveLiveSessionsUseCase_1.ResolveInteractiveLiveSessionsUseCase();
41
- this.run = async (params) => {
42
- const snapshot = await this.liveSessionProcessSnapshotProvider.getSnapshot();
43
- const allInteractiveSessions = this.resolveInteractiveLiveSessions.resolve(snapshot);
44
- // Resolve the on-disk Claude transcript for every interactive session
45
- // before any name-based narrowing. A resolvable transcript is the proof
46
- // that a session is a live Claude agent session (its transcript, keyed by
47
- // the session id, is actively present on disk), independent of how the tmux
48
- // session is named.
49
- const transcriptPathBySessionName = this.interactiveLiveSessionTranscriptResolver.resolveTranscriptPaths(allInteractiveSessions);
50
- // Monitor a session when it is either named after a github.com issue or
51
- // pull-request URL (the hub-task sessions) or has a resolvable Claude agent
52
- // transcript (role-named resident leader / PM agent sessions such as app,
53
- // tdpm-cli, secretary, and the per-project *pm sessions). Gating the
54
- // broadened inclusion on the resolvable transcript rather than on merely
55
- // being a tmux session keeps the fail-direction safe: a genuine non-agent
56
- // interactive session — a login shell, or a viewer such as sso_login or a
57
- // tdpm viewer — exposes no Claude transcript on disk, so it is still
58
- // excluded and never reminded.
59
- const interactiveSessions = allInteractiveSessions.filter((session) => (0, exports.isGitHubIssueOrPullRequestSessionName)(session.sessionName) ||
60
- transcriptPathBySessionName.has(session.sessionName));
61
- const skippedNonAgentSessionCount = allInteractiveSessions.length - interactiveSessions.length;
62
- if (skippedNonAgentSessionCount > 0) {
63
- console.log(`Silent live session notification: ignoring ${skippedNonAgentSessionCount} interactive session(s) that are neither named after a github.com issue or pull-request URL nor have a resolvable Claude agent transcript.`);
64
- }
65
- // A session whose most recent assistant turn is a model refusal is
66
- // excluded from ALL reminder candidates: each reminder delivery re-sends
67
- // the full session context to the API and is guaranteed to produce another
68
- // refusal, so reminding such a session only burns tokens. The gate is
69
- // state-based (no time windows) and self-clears once a non-refusal
70
- // assistant turn appears after the refusal.
71
- const refusalTailedSessionNames = this.refusalTailStatusProvider === null
72
- ? new Set()
73
- : await this.refusalTailStatusProvider.listRefusalTailedSessionNames(transcriptPathBySessionName);
74
- const monitoredSessions = interactiveSessions.filter((session) => {
75
- if (!refusalTailedSessionNames.has(session.sessionName)) {
76
- return true;
77
- }
78
- console.log(`Skipping ${session.sessionName}: last assistant turn was a model refusal; suppressing reminders until a non-refusal turn appears.`);
79
- return false;
80
- });
81
- const snapshots = await this.collectSnapshots(monitoredSessions, transcriptPathBySessionName);
82
- const candidates = [];
83
- for (const sessionSnapshot of snapshots) {
84
- const candidate = this.composeCandidate(sessionSnapshot, params);
85
- if (candidate !== null) {
86
- candidates.push(candidate);
87
- }
88
- }
89
- candidates.sort((left, right) => left.sessionName < right.sessionName
90
- ? -1
91
- : left.sessionName > right.sessionName
92
- ? 1
93
- : 0);
94
- const previousCandidateSessionNames = await this.candidateStateRepository.loadRecentCandidateSessionNames({
95
- now: params.now,
96
- recencyWindowSeconds: params.candidateDebounceRecencyWindowSeconds,
97
- });
98
- await this.candidateStateRepository.saveCandidateSessionNames({
99
- sessionNames: candidates.map((candidate) => candidate.sessionName),
100
- now: params.now,
101
- });
102
- const debouncedCandidates = candidates.filter((candidate) => previousCandidateSessionNames.has(candidate.sessionName));
103
- const suppressedFirstCycleCount = candidates.length - debouncedCandidates.length;
104
- console.log(`Silent live session notification: ${debouncedCandidates.length} debounced candidate(s) of ${candidates.length} current candidate(s) across ${interactiveSessions.length} interactive session(s); ${suppressedFirstCycleCount} first-cycle candidate(s) deferred until they persist into the next cycle.`);
105
- let sentCount = 0;
106
- for (const candidate of debouncedCandidates) {
107
- if (!(await this.isHubTaskActive(candidate.sessionName, params.activeHubTaskStatus, params.hubTaskStatusCacheTtlSeconds, params.now))) {
108
- continue;
109
- }
110
- if (sentCount > 0) {
111
- await this.sleeper.sleep(params.staggerSeconds * 1000);
112
- }
113
- await this.notificationRepository.sendSelfCheckNotification(candidate.sessionName, candidate.message);
114
- sentCount += 1;
115
- // One line per send, grep-stable on the `Notified ` prefix: the
116
- // ISO-8601 UTC timestamp disambiguates concurrent schedule runs and
117
- // the section list records what the message actually contained.
118
- console.log(`Notified ${candidate.sessionName} at=${params.now.toISOString()} sections=[${candidate.sectionLabels.join(',')}]`);
119
- }
120
- };
121
- this.isHubTaskActive = async (sessionName, activeHubTaskStatus, hubTaskStatusCacheTtlSeconds, now) => {
122
- if (activeHubTaskStatus === null || this.hubTaskStatusResolver === null) {
123
- return true;
124
- }
125
- const hubTaskIssueUrl = (0, exports.parseHubTaskIssueUrlFromSessionName)(sessionName);
126
- if (hubTaskIssueUrl === null) {
127
- return true;
128
- }
129
- const cachedEntry = this.hubTaskStatusCacheRepository === null
130
- ? null
131
- : await this.hubTaskStatusCacheRepository.loadHubTaskStatus({
132
- url: hubTaskIssueUrl,
133
- });
134
- const nowEpochSeconds = Math.floor(now.getTime() / 1000);
135
- if (cachedEntry !== null) {
136
- const cacheAgeSeconds = nowEpochSeconds - cachedEntry.recordedEpochSeconds;
137
- if (cacheAgeSeconds <= hubTaskStatusCacheTtlSeconds) {
138
- const active = this.isResolvedStatusActive(cachedEntry.state, cachedEntry.status, activeHubTaskStatus);
139
- if (!active) {
140
- console.log(`Skipping ${sessionName}: hub task ${hubTaskIssueUrl} is no longer active per cached status (state "${cachedEntry.state}", status "${cachedEntry.status ?? 'null'}", active status "${activeHubTaskStatus}").`);
141
- }
142
- return active;
143
- }
144
- }
145
- const resolution = await this.tryResolveAndCacheHubTask(hubTaskIssueUrl, activeHubTaskStatus, sessionName, now);
146
- if (resolution.resolved) {
147
- return resolution.active;
148
- }
149
- if (cachedEntry !== null) {
150
- const active = this.isResolvedStatusActive(cachedEntry.state, cachedEntry.status, activeHubTaskStatus);
151
- console.warn(`Hub task ${hubTaskIssueUrl} for session ${sessionName} could not be resolved (${resolution.reason}); falling back to expired cached status (state "${cachedEntry.state}", status "${cachedEntry.status ?? 'null'}"), so the notification is ${active ? 'sent' : 'suppressed'}.`);
152
- return active;
153
- }
154
- console.warn(`Hub task ${hubTaskIssueUrl} for session ${sessionName} is not resolvable and has no cached status (${resolution.reason}); sending notification (fail-open).`);
155
- return true;
156
- };
157
- this.tryResolveAndCacheHubTask = async (hubTaskIssueUrl, activeHubTaskStatus, sessionName, now) => {
158
- if (this.hubTaskStatusResolver === null) {
159
- return { resolved: false, reason: 'resolver is not configured' };
160
- }
161
- let issue;
162
- try {
163
- issue = await this.hubTaskStatusResolver.getIssueByUrl(hubTaskIssueUrl);
164
- }
165
- catch (error) {
166
- return {
167
- resolved: false,
168
- reason: error instanceof Error ? error.message : String(error),
169
- };
170
- }
171
- if (issue === null) {
172
- return { resolved: false, reason: 'resolver returned no tracked task' };
173
- }
174
- if (this.hubTaskStatusCacheRepository !== null) {
175
- await this.hubTaskStatusCacheRepository.saveHubTaskStatus({
176
- url: hubTaskIssueUrl,
177
- state: issue.state,
178
- status: issue.status,
179
- now,
180
- });
181
- }
182
- const active = this.isResolvedStatusActive(issue.state, issue.status, activeHubTaskStatus);
183
- if (!active) {
184
- console.log(`Skipping ${sessionName}: hub task ${hubTaskIssueUrl} is no longer active (state "${issue.state}", status "${issue.status ?? 'null'}", active status "${activeHubTaskStatus}").`);
185
- }
186
- return { resolved: true, active };
187
- };
188
- this.isResolvedStatusActive = (state, status, activeHubTaskStatus) => state === 'OPEN' && status === activeHubTaskStatus;
189
- this.collectSnapshots = async (interactiveSessions, transcriptPathBySessionName) => {
190
- const sessionNames = interactiveSessions.map((session) => session.sessionName);
191
- const subAgentsBySessionName = await this.subAgentActivityRepository.listSubAgentActivitiesBySessionName(sessionNames, transcriptPathBySessionName);
192
- return sessionNames.map((sessionName) => ({
193
- sessionName,
194
- subAgents: subAgentsBySessionName.get(sessionName) ?? [],
195
- }));
196
- };
197
- this.composeCandidate = (snapshot, thresholds) => {
198
- const sections = [];
199
- const sectionLabels = [];
200
- const idleSubAgents = snapshot.subAgents.filter((subAgent) => !subAgent.finishedResultUnconsumed &&
201
- !subAgent.waitingOnExternalProcess &&
202
- subAgent.silentSeconds >= thresholds.subAgentSilentThresholdSeconds);
203
- const longRunningSubAgents = snapshot.subAgents.filter((subAgent) => !subAgent.finishedResultUnconsumed &&
204
- subAgent.runningSeconds >= thresholds.subAgentRunningThresholdSeconds);
205
- if (idleSubAgents.length > 0 || longRunningSubAgents.length > 0) {
206
- sections.push(this.messageComposer.composeSubAgentSection({
207
- idleSubAgents,
208
- longRunningSubAgents,
209
- }));
210
- for (const subAgent of idleSubAgents) {
211
- sectionLabels.push(`sub-agent-idle:${subAgent.label}`);
212
- }
213
- for (const subAgent of longRunningSubAgents) {
214
- sectionLabels.push(`sub-agent-long-running:${subAgent.label}`);
215
- }
216
- }
217
- const unconsumedResultSubAgents = snapshot.subAgents.filter((subAgent) => subAgent.finishedResultUnconsumed &&
218
- subAgent.silentSeconds >= thresholds.subAgentSilentThresholdSeconds);
219
- if (unconsumedResultSubAgents.length > 0) {
220
- sections.push(this.messageComposer.composeSubAgentUnconsumedResultSection(unconsumedResultSubAgents));
221
- for (const subAgent of unconsumedResultSubAgents) {
222
- sectionLabels.push(`sub-agent-result-unconsumed:${subAgent.label}`);
223
- }
224
- }
225
- if (sections.length === 0) {
226
- return null;
227
- }
228
- return {
229
- sessionName: snapshot.sessionName,
230
- message: sections.join('\n\n'),
231
- sectionLabels,
232
- };
233
- };
234
- }
235
- }
236
- exports.NotifySilentLiveSessionsUseCase = NotifySilentLiveSessionsUseCase;
237
7
  //# sourceMappingURL=NotifySilentLiveSessionsUseCase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotifySilentLiveSessionsUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":";;;AAY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Aa;aACd,CAAC;QACJ,CAAC,CAAC;IA/UC,CAAC;CAgVL;AA/VD,0EA+VC"}
1
+ {"version":3,"file":"NotifySilentLiveSessionsUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":";;;AAAA,MAAM,iDAAiD,GACrD,0EAA0E,CAAC;AAEtE,MAAM,qCAAqC,GAAG,CACnD,WAAmB,EACV,EAAE,CACX,iDAAiD,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAHzD,QAAA,qCAAqC,yCAGoB"}