github-issue-tower-defence-management 1.117.3 → 1.117.5
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.
- package/CHANGELOG.md +14 -0
- package/README.md +3 -4
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +2 -7
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
- package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js +4 -5
- package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js.map +1 -1
- package/bin/adapter/repositories/TranscriptSessionSubAgentActivityRepository.js +39 -15
- package/bin/adapter/repositories/TranscriptSessionSubAgentActivityRepository.js.map +1 -1
- package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js +1 -2
- package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js.map +1 -1
- package/package.json +1 -1
- package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +0 -6
- package/src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts +0 -7
- package/src/adapter/repositories/TranscriptSessionSubAgentActivityRepository.test.ts +310 -95
- package/src/adapter/repositories/TranscriptSessionSubAgentActivityRepository.ts +43 -17
- package/src/domain/usecases/NotifySilentLiveSessionsUseCase.ts +0 -1
- package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
- package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts +0 -2
- package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts.map +1 -1
- package/types/adapter/repositories/TranscriptSessionSubAgentActivityRepository.d.ts +1 -2
- package/types/adapter/repositories/TranscriptSessionSubAgentActivityRepository.d.ts.map +1 -1
- package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts +0 -1
- package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.117.5](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.117.4...v1.117.5) (2026-06-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **silent-monitor:** drop sub-agent recency ceiling and rely on strengthened completion-at-end detection ([#1110](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1110)) ([4de5d72](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/4de5d726fa5bb3b15b5901eaebcb5487b7fe4a40)), closes [#1109](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1109)
|
|
7
|
+
|
|
8
|
+
## [1.117.4](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.117.3...v1.117.4) (2026-06-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **silent-notification:** exclude completed sub-agents by inspecting the last transcript entry ([#1104](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1104)) ([2bd9e42](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/2bd9e42cfab2ece45c273f987c5bffc2b620368d))
|
|
14
|
+
|
|
1
15
|
## [1.117.3](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.117.2...v1.117.3) (2026-06-29)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -288,11 +288,10 @@ silentNotificationEnabled?: boolean # Optional: Master switch for the silent liv
|
|
|
288
288
|
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
|
|
289
289
|
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
|
|
290
290
|
ownerCallMarker?: string # Optional: Marker substring that identifies an assistant message asking the owner for a decision or confirmation. When set, the main-session stalled section is suppressed while a session's latest marker-bearing assistant message is newer (by full timestamp) than its latest genuine owner reply. When unset, no session is treated as waiting on the owner
|
|
291
|
-
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
|
|
291
|
+
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 and skipped 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 a `tool_result` (the tool call completed and no assistant turn followed, the shape a sub-agent leaves when it ends right after its last tool — including the final `StructuredOutput` result — or when its process is gone), 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; its idle time is computed from the transcript file modification time (following symlinks) and the running time from its first entry timestamp, and it is flagged whenever it crosses the idle or running threshold regardless of how old it is. When set, this transcript-based discovery is used instead of `subAgentProcessMatchPattern`. When unset, the process-match discovery is used
|
|
292
292
|
mainSilentThresholdSeconds?: number # Optional: Seconds of main-session output silence after which the main-session self-check section is sent. Default 600
|
|
293
293
|
subAgentSilentThresholdSeconds?: number # Optional: Seconds of sub-process output silence after which the sub-process section is sent. Default 300
|
|
294
294
|
subAgentRunningThresholdSeconds?: number # Optional: Seconds a sub-process may run before the sub-process section is sent regardless of its output silence. Default 900
|
|
295
|
-
subAgentSilentCeilingSeconds?: number # Optional: Upper bound, in seconds, on how long a transcript-discovered sub-agent may have been output-idle and still be considered a notification candidate. A sub-agent whose transcript has been silent strictly longer than this ceiling is treated as dead and excluded, so the section reports only sub-agents that recently went silent rather than long-dead transcripts that linger on disk. Applies only to transcript-based discovery (`subAgentTranscriptRootDirectory`); the process-match discovery already gates on live processes. Default 3600. Limitation: a sub-agent that is genuinely still running but has been idle longer than the ceiling is not reported
|
|
296
295
|
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
|
|
297
296
|
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 Status is resolved before sending and the notification is skipped when the issue is closed or its Status differs from this value. Sessions whose name is not a github.com issue URL are never checked. When the hub task Status cannot be resolved (transient API error or the issue is not found), the notification is sent anyway (fail-open) and a warning is logged. When unset, this hub-task active-status check is a no-op and existing behavior is preserved
|
|
298
297
|
silentSubAgentMessageHeader?: string # Optional: Overrides the line shown above the sub-process list in the sub-process section. When unset, a generic built-in line is used
|
|
@@ -560,11 +559,11 @@ Candidate sessions are first selected from the live process tree: every live tmu
|
|
|
560
559
|
|
|
561
560
|
The main-session stalled section is sent when the session's main output has been idle for at least `mainSilentThresholdSeconds`, unless the session is currently waiting on the owner (in that case the silence is expected and the section is suppressed). Idle time is computed from the timestamp of the latest entry of any kind in the session's resolved transcript rather than from the transcript file modification time, so a session that keeps appending tool results, owner replies, or any other entry type while emitting no assistant text still counts as active and is not mistaken for a silent one. Whether a session is waiting on the owner is determined through an injectable port; the built-in default reports no session as waiting, so the suppression is only applied when a host provides an implementation. When `ownerCallMarker` is configured, a transcript-based implementation is used: it reads each session's resolved transcript and treats the session as waiting on the owner when the latest entry containing `ownerCallMarker` is newer (by full timestamp) than the latest genuine owner reply. A self-check reminder that the monitor injects into a session via `tmux send-keys` itself lands in that session's transcript as a `user` text entry; every injected reminder carries a fixed sentinel tag (`[TDPM_SILENT_SESSION_SELF_CHECK_REMINDER]`), and a `user` entry whose text contains that sentinel is not counted as a genuine owner reply. This prevents the monitor's own reminder from being mistaken for the owner answering, which would otherwise make a genuinely waiting session stop being suppressed. The stalled section's owner-call self-check point also instructs the agent on the required owner-call notification format: the owner-call must be emitted as the configured owner-call marker tag (interpolated from `ownerCallMarker` when set) as a complete matching pair — opening marker, content, then closing marker — on a single line with no newline inside the tag, and the content between the markers must begin with the 🔴 emoji immediately, because the owner's app only surfaces the notification together with its content when the exact, well-formed tag with the leading 🔴 is present and a malformed tag results in only a red indicator with no readable content. The same self-check point also tells the agent when to fire the owner-call: if the agent has completed or answered a request from the owner in this session, it must fire the owner-call to report the result to the owner, because completing or answering an owner's requested action is itself a reason to fire the owner-call. Completing or answering an owner request without firing the owner-call means the owner is never notified — the owner's app only surfaces the session when the owner-call fires — so the task silently stalls; the point states the causal link explicitly, noting that if the self-check reminder keeps arriving it is likely because an owner request was completed or answered without firing the owner-call, so the agent should fire the owner-call to report the result to the owner.
|
|
562
561
|
|
|
563
|
-
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` or has been running for `subAgentRunningThresholdSeconds`; the message lists each matched sub-process with its idle and running minutes. 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. Finished sub-agents
|
|
562
|
+
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` or has been running for `subAgentRunningThresholdSeconds`; the message lists each matched sub-process with its idle and running minutes. 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. Finished sub-agents are skipped, 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 a `tool_result`, or a user message with no content blocks. The `tool_result` and empty-user terminal shapes are the ones a sub-agent leaves when it ends right after its last tool call completes — for example the `tool_result` of the final `StructuredOutput` call a sub-agent uses to return its result, the launch acknowledgement of a background command, or any other tool whose result is written but no assistant turn follows because the sub-agent's process is gone (killed, crashed, or token-exhausted). Recognizing these shapes as terminal is what lets a marker-less dead transcript be excluded by the completion signal itself rather than by an age cap. 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. Idle time is taken from the transcript file modification time (following symlinks) while running time is taken from its first entry timestamp. Because sub-agents run in-process inside the parent session rather than as separate operating-system processes, no process-liveness signal can be matched back to a transcript; the completion-or-termination marker at the end of the transcript is the sole signal used to exclude finished sub-agents. 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.
|
|
564
563
|
|
|
565
564
|
There is no per-session notification cooldown: every cycle, a session is notified whenever it still meets the silent-target condition (output silent at or beyond the threshold and not waiting on the owner). No suppression state is persisted. Because silence is measured from the latest transcript entry of any type — including the monitor's own injected reminder and the owner's reply — a notified session's measured silence resets as soon as it produces any activity, so a session that has resumed is not re-flagged; this already prevents redundant nudges without a cooldown. 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 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 or moved to another Status is skipped; sessions whose name does not identify a github.com issue or pull request are never gated, and a hub task whose Status cannot be resolved fails open (the notification is sent and a warning is logged). When `activeHubTaskStatus` is unset, this hub-task check is a no-op. Process-snapshot collection, transcript resolution, owner-call detection, 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.
|
|
566
565
|
|
|
567
|
-
Each config key above has a matching environment variable read when the config key is unset: `TDPM_SILENT_NOTIFICATION_ENABLED` (the string `true` enables the step), `TDPM_SILENT_OWNER_CALL_MARKER`, `TDPM_SUBAGENT_OUTPUT_ROOT_DIRECTORY`, `TDPM_SUBAGENT_PROCESS_MATCH_PATTERN`, `TDPM_SUBAGENT_TRANSCRIPT_ROOT_DIRECTORY`, `TDPM_MAIN_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS`, `
|
|
566
|
+
Each config key above has a matching environment variable read when the config key is unset: `TDPM_SILENT_NOTIFICATION_ENABLED` (the string `true` enables the step), `TDPM_SILENT_OWNER_CALL_MARKER`, `TDPM_SUBAGENT_OUTPUT_ROOT_DIRECTORY`, `TDPM_SUBAGENT_PROCESS_MATCH_PATTERN`, `TDPM_SUBAGENT_TRANSCRIPT_ROOT_DIRECTORY`, `TDPM_MAIN_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS`, `TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS`, `TDPM_ACTIVE_HUB_TASK_STATUS`, `TDPM_SILENT_MAIN_STALLED_MESSAGE`, `TDPM_SILENT_SUBAGENT_MESSAGE_HEADER`, and `TDPM_SILENT_SUBAGENT_MESSAGE_FOOTER`.
|
|
568
567
|
|
|
569
568
|
## Token Rotation Order File
|
|
570
569
|
|
|
@@ -107,13 +107,13 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
107
107
|
this.handle = async (configFilePath, _verbose) => {
|
|
108
108
|
const configFileContent = fs_1.default.readFileSync(configFilePath, 'utf8');
|
|
109
109
|
const input = yaml_1.default.parse(configFileContent);
|
|
110
|
-
if (!(() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.
|
|
110
|
+
if (!(() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentSubAgentMessageHeader || "string" === typeof input.silentSubAgentMessageHeader) && (undefined === input.silentSubAgentMessageFooter || "string" === typeof input.silentSubAgentMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io5(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
|
|
111
111
|
const value = input[key];
|
|
112
112
|
if (undefined === value)
|
|
113
113
|
return true;
|
|
114
114
|
return "string" === typeof value;
|
|
115
115
|
}); const _io2 = input => "string" === typeof input.repo && (Array.isArray(input.members) && input.members.every(elem => "string" === typeof elem)) && "string" === typeof input.spreadsheetUrl; const _io3 = input => "string" === typeof input.defaultAgentName && (null === input.defaultLlmModelName || undefined === input.defaultLlmModelName || "string" === typeof input.defaultLlmModelName) && (null === input.fallbackLlmModelName || undefined === input.fallbackLlmModelName || "string" === typeof input.fallbackLlmModelName) && (null === input.defaultLlmAgentName || undefined === input.defaultLlmAgentName || "string" === typeof input.defaultLlmAgentName) && "string" === typeof input.configFilePath && (null === input.maximumPreparingIssuesCount || "number" === typeof input.maximumPreparingIssuesCount) && (undefined === input.utilizationPercentageThreshold || "number" === typeof input.utilizationPercentageThreshold) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.preparationProcessCheckCommand || "string" === typeof input.preparationProcessCheckCommand) && (null === input.codexHomeCandidates || undefined === input.codexHomeCandidates || Array.isArray(input.codexHomeCandidates) && input.codexHomeCandidates.every(elem => "string" === typeof elem)) && (undefined === input.awLogDirectoryPath || "string" === typeof input.awLogDirectoryPath) && (undefined === input.awLogStaleThresholdMinutes || "number" === typeof input.awLogStaleThresholdMinutes) && (null === input.awaitingQualityCheckStatus || undefined === input.awaitingQualityCheckStatus || "string" === typeof input.awaitingQualityCheckStatus) && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)); const _io4 = input => "string" === typeof input.scanBaseDirectory && "number" === typeof input.targetHourUtc && (undefined === input.enableKevNvdReport || "boolean" === typeof input.enableKevNvdReport) && (undefined === input.kevReportRepo || "string" === typeof input.kevReportRepo); const _io5 = input => "object" === typeof input.manager && null !== input.manager && _io6(input.manager) && ("object" === typeof input.bot && null !== input.bot && _io10(input.bot)); const _io6 = input => "object" === typeof input.github && null !== input.github && _io7(input.github) && ("object" === typeof input.slack && null !== input.slack && _io8(input.slack)) && ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount && _io9(input.googleServiceAccount)); const _io7 = input => "string" === typeof input.token; const _io8 = input => "string" === typeof input.userToken; const _io9 = input => "string" === typeof input.serviceAccountKey; const _io10 = input => "object" === typeof input.github && null !== input.github && _io11(input.github); const _io11 = input => "string" === typeof input.token; return input => "object" === typeof input && null !== input && _io0(input); })()(input)) {
|
|
116
|
-
throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.
|
|
116
|
+
throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const _io0 = input => "string" === typeof input.org && "number" === typeof input.allowIssueCacheMinutes && (undefined === input.thresholdForAutoReject || "number" === typeof input.thresholdForAutoReject) && (null === input.changeTargetPathAliases || undefined === input.changeTargetPathAliases || "object" === typeof input.changeTargetPathAliases && null !== input.changeTargetPathAliases && false === Array.isArray(input.changeTargetPathAliases) && _io1(input.changeTargetPathAliases)) && "string" === typeof input.projectUrl && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.manager && ("object" === typeof input.workingReport && null !== input.workingReport && _io2(input.workingReport)) && "string" === typeof input.urlOfStoryView && "boolean" === typeof input.disabled && (null === input.startPreparation || undefined === input.startPreparation || "object" === typeof input.startPreparation && null !== input.startPreparation && _io3(input.startPreparation)) && (null === input.dailySecurityScan || undefined === input.dailySecurityScan || "object" === typeof input.dailySecurityScan && null !== input.dailySecurityScan && _io4(input.dailySecurityScan)) && (null === input.allowedIssueAuthors || undefined === input.allowedIssueAuthors || "string" === typeof input.allowedIssueAuthors || Array.isArray(input.allowedIssueAuthors) && input.allowedIssueAuthors.every(elem => "string" === typeof elem)) && (undefined === input.claudeCodeOauthTokenListJsonPath || "string" === typeof input.claudeCodeOauthTokenListJsonPath) && (undefined === input.consoleDataOutputDir || "string" === typeof input.consoleDataOutputDir) && (undefined === input.dashboardDataDir || "string" === typeof input.dashboardDataDir) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.inTmuxConsoleBaseUrl || "string" === typeof input.inTmuxConsoleBaseUrl) && (undefined === input.inTmuxConsoleToken || "string" === typeof input.inTmuxConsoleToken) && (undefined === input.inTmuxProjectOrder || Array.isArray(input.inTmuxProjectOrder) && input.inTmuxProjectOrder.every(elem => "string" === typeof elem)) && (undefined === input.inTmuxLauncherCommand || "string" === typeof input.inTmuxLauncherCommand) && (undefined === input.silentNotificationEnabled || "boolean" === typeof input.silentNotificationEnabled) && (undefined === input.ownerCallMarker || "string" === typeof input.ownerCallMarker) && (undefined === input.subAgentOutputRootDirectory || "string" === typeof input.subAgentOutputRootDirectory) && (undefined === input.subAgentProcessMatchPattern || "string" === typeof input.subAgentProcessMatchPattern) && (undefined === input.subAgentTranscriptRootDirectory || "string" === typeof input.subAgentTranscriptRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentSubAgentMessageHeader || "string" === typeof input.silentSubAgentMessageHeader) && (undefined === input.silentSubAgentMessageFooter || "string" === typeof input.silentSubAgentMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io5(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
|
|
117
117
|
const value = input[key];
|
|
118
118
|
if (undefined === value)
|
|
119
119
|
return true;
|
|
@@ -282,10 +282,6 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
282
282
|
path: _path + ".subAgentRunningThresholdSeconds",
|
|
283
283
|
expected: "(number | undefined)",
|
|
284
284
|
value: input.subAgentRunningThresholdSeconds
|
|
285
|
-
}), undefined === input.subAgentSilentCeilingSeconds || "number" === typeof input.subAgentSilentCeilingSeconds || _report(_exceptionable, {
|
|
286
|
-
path: _path + ".subAgentSilentCeilingSeconds",
|
|
287
|
-
expected: "(number | undefined)",
|
|
288
|
-
value: input.subAgentSilentCeilingSeconds
|
|
289
285
|
}), undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds || _report(_exceptionable, {
|
|
290
286
|
path: _path + ".silentNotificationStaggerSeconds",
|
|
291
287
|
expected: "(number | undefined)",
|
|
@@ -777,7 +773,6 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
777
773
|
mainSilentThresholdSeconds: readSilentSeconds(mergedInput.mainSilentThresholdSeconds, process.env.TDPM_MAIN_SILENT_THRESHOLD_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.mainSilentThresholdSeconds),
|
|
778
774
|
subAgentSilentThresholdSeconds: readSilentSeconds(mergedInput.subAgentSilentThresholdSeconds, process.env.TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentSilentThresholdSeconds),
|
|
779
775
|
subAgentRunningThresholdSeconds: readSilentSeconds(mergedInput.subAgentRunningThresholdSeconds, process.env.TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentRunningThresholdSeconds),
|
|
780
|
-
subAgentSilentCeilingSeconds: readSilentSeconds(mergedInput.subAgentSilentCeilingSeconds, process.env.TDPM_SUBAGENT_SILENT_CEILING_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentSilentCeilingSeconds),
|
|
781
776
|
staggerSeconds: readSilentSeconds(mergedInput.silentNotificationStaggerSeconds, process.env.TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.staggerSeconds),
|
|
782
777
|
activeHubTaskStatus: mergedInput.activeHubTaskStatus ??
|
|
783
778
|
process.env.TDPM_ACTIVE_HUB_TASK_STATUS ??
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,4CAAoB;AACpB,+DAA2D;AAC3D,6DAAyD;AACzD,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,uEAAmE;AACnE,qFAAkF;AAClF,uEAAmE;AACnE,yEAGoC;AACpC,uEAAmE;AACnE,wDAG8B;AAC9B,kFAA+E;AAC/E,sFAAmF;AACnF,gGAA6F;AAC7F,0FAAuF;AACvF,wFAAqF;AACr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,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAnjBD,gFAmjBC"}
|
|
1
|
+
{"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,4CAAoB;AACpB,+DAA2D;AAC3D,6DAAyD;AACzD,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,uEAAmE;AACnE,qFAAkF;AAClF,uEAAmE;AACnE,yEAGoC;AACpC,uEAAmE;AACnE,wDAG8B;AAC9B,kFAA+E;AAC/E,sFAAmF;AACnF,gGAA6F;AAC7F,0FAAuF;AACvF,wFAAqF;AACrF,sFAAmF;AACnF,wGAAqG;AACrG,8GAA2G;AAC3G,sGAAmG;AACnG,gGAA6F;AAC7F,kGAA+F;AAC/F,gIAA6H;AAC7H,oHAAiH;AACjH,wGAAqG;AAIrG,0FAAuF;AACvF,wGAAqG;AACrG,gIAA6H;AAC7H,wGAAqG;AACrG,kIAA+H;AAC/H,8GAA2G;AAC3G,0GAAuG;AACvG,wGAAqG;AACrG,0HAAuH;AACvH,8GAA2G;AAC3G,8FAA2F;AAC3F,sFAAmF;AACnF,wGAAqG;AACrG,oGAAiG;AACjG,sGAAmG;AACnG,gHAA6G;AAC7G,0HAAuH;AACvH,kGAA+F;AAC/F,8GAA2G;AAC3G,gGAA6F;AAC7F,0EAAuE;AACvE,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,SA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;wBACtC,gBAAgB,EAAE;4BAChB,kBAAkB,EAChB,WAAW,CAAC,wBAAwB;gCACpC,OAAO,CAAC,GAAG,CAAC,gCAAgC;gCAC5C,IAAI;4BACN,qBAAqB,EACnB,WAAW,CAAC,2BAA2B;gCACvC,OAAO,CAAC,GAAG,CAAC,mCAAmC;gCAC/C,IAAI;4BACN,qBAAqB,EACnB,WAAW,CAAC,2BAA2B;gCACvC,OAAO,CAAC,GAAG,CAAC,mCAAmC;gCAC/C,IAAI;yBACP;wBACD,GAAG,EAAE,SAAS;qBACf,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CACX,0CACE,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;AA7iBD,gFA6iBC"}
|
|
@@ -23,20 +23,20 @@ const createOwnerCallStatusProvider = (ownerCallMarker) => {
|
|
|
23
23
|
}
|
|
24
24
|
return new NoUnansweredOwnerCallStatusProvider_1.NoUnansweredOwnerCallStatusProvider();
|
|
25
25
|
};
|
|
26
|
-
const createSubAgentActivityRepository = (subAgentTranscriptRootDirectory, subAgentProcessMatchPattern, subAgentOutputRootDirectory,
|
|
26
|
+
const createSubAgentActivityRepository = (subAgentTranscriptRootDirectory, subAgentProcessMatchPattern, subAgentOutputRootDirectory, localCommandRunner, now) => {
|
|
27
27
|
if (subAgentTranscriptRootDirectory !== null) {
|
|
28
|
-
return new TranscriptSessionSubAgentActivityRepository_1.TranscriptSessionSubAgentActivityRepository(new FileSystemSubAgentTranscriptDirectoryResolver_1.FileSystemSubAgentTranscriptDirectoryResolver(subAgentTranscriptRootDirectory), now
|
|
28
|
+
return new TranscriptSessionSubAgentActivityRepository_1.TranscriptSessionSubAgentActivityRepository(new FileSystemSubAgentTranscriptDirectoryResolver_1.FileSystemSubAgentTranscriptDirectoryResolver(subAgentTranscriptRootDirectory), now);
|
|
29
29
|
}
|
|
30
30
|
return new ProcessListSessionSubAgentActivityRepository_1.ProcessListSessionSubAgentActivityRepository(subAgentProcessMatchPattern, new NodeSubAgentProcessLister_1.NodeSubAgentProcessLister(localCommandRunner), new FileSystemSubAgentSilentSecondsResolver_1.FileSystemSubAgentSilentSecondsResolver(subAgentOutputRootDirectory, now));
|
|
31
31
|
};
|
|
32
32
|
const notifySilentTmuxSessions = async (params) => {
|
|
33
|
-
const { enabled, localCommandRunner, processEnvironReader, ownerCallMarker, subAgentOutputRootDirectory, subAgentProcessMatchPattern, subAgentTranscriptRootDirectory, mainSilentThresholdSeconds, subAgentSilentThresholdSeconds, subAgentRunningThresholdSeconds,
|
|
33
|
+
const { enabled, localCommandRunner, processEnvironReader, ownerCallMarker, subAgentOutputRootDirectory, subAgentProcessMatchPattern, subAgentTranscriptRootDirectory, mainSilentThresholdSeconds, subAgentSilentThresholdSeconds, subAgentRunningThresholdSeconds, staggerSeconds, activeHubTaskStatus, hubTaskStatusResolver, messageTemplates, now, } = params;
|
|
34
34
|
if (!enabled) {
|
|
35
35
|
console.log('Silent live session notification skipped: not enabled (set silentNotificationEnabled or TDPM_SILENT_NOTIFICATION_ENABLED=true to enable).');
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
const messageComposer = new ConfigurableSilentSessionMessageComposer_1.ConfigurableSilentSessionMessageComposer(messageTemplates, new DefaultSilentSessionMessageComposer_1.DefaultSilentSessionMessageComposer(ownerCallMarker));
|
|
39
|
-
const useCase = new NotifySilentLiveSessionsUseCase_1.NotifySilentLiveSessionsUseCase(new LocalProcessLiveSessionProcessSnapshotProvider_1.LocalProcessLiveSessionProcessSnapshotProvider(localCommandRunner, processEnvironReader ?? new ProcFsProcessEnvironReader_1.ProcFsProcessEnvironReader()), new FileSystemInteractiveLiveSessionTranscriptResolver_1.FileSystemInteractiveLiveSessionTranscriptResolver(), new FileSystemSessionOutputActivityRepository_1.FileSystemSessionOutputActivityRepository(), createSubAgentActivityRepository(subAgentTranscriptRootDirectory, subAgentProcessMatchPattern, subAgentOutputRootDirectory,
|
|
39
|
+
const useCase = new NotifySilentLiveSessionsUseCase_1.NotifySilentLiveSessionsUseCase(new LocalProcessLiveSessionProcessSnapshotProvider_1.LocalProcessLiveSessionProcessSnapshotProvider(localCommandRunner, processEnvironReader ?? new ProcFsProcessEnvironReader_1.ProcFsProcessEnvironReader()), new FileSystemInteractiveLiveSessionTranscriptResolver_1.FileSystemInteractiveLiveSessionTranscriptResolver(), new FileSystemSessionOutputActivityRepository_1.FileSystemSessionOutputActivityRepository(), createSubAgentActivityRepository(subAgentTranscriptRootDirectory, subAgentProcessMatchPattern, subAgentOutputRootDirectory, localCommandRunner, now), createOwnerCallStatusProvider(ownerCallMarker), new TmuxSilentSessionNotificationRepository_1.TmuxSilentSessionNotificationRepository(localCommandRunner), messageComposer, new RealSleeper_1.RealSleeper(), hubTaskStatusResolver);
|
|
40
40
|
await useCase.run({
|
|
41
41
|
mainSilentThresholdSeconds,
|
|
42
42
|
subAgentSilentThresholdSeconds,
|
|
@@ -51,7 +51,6 @@ exports.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS = {
|
|
|
51
51
|
mainSilentThresholdSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
|
|
52
52
|
subAgentSilentThresholdSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS,
|
|
53
53
|
subAgentRunningThresholdSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
|
|
54
|
-
subAgentSilentCeilingSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_SUBAGENT_SILENT_CEILING_SECONDS,
|
|
55
54
|
staggerSeconds: NotifySilentLiveSessionsUseCase_1.DEFAULT_NOTIFICATION_STAGGER_SECONDS,
|
|
56
55
|
};
|
|
57
56
|
//# sourceMappingURL=notifySilentTmuxSessions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifySilentTmuxSessions.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"notifySilentTmuxSessions.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts"],"names":[],"mappings":";;;AAIA,8GAOkE;AAClE,sHAAmH;AACnH,sIAAmI;AACnI,8FAA2F;AAC3F,8IAA2I;AAC3I,4HAAyH;AACzH,wHAAqH;AACrH,gHAA6G;AAC7G,4GAAyG;AACzG,kIAA+H;AAC/H,gIAA6H;AAC7H,oIAAiI;AACjI,4FAAyF;AACzF,wHAAqH;AACrH,0HAGqE;AACrE,gEAA6D;AAoB7D,MAAM,6BAA6B,GAAG,CACpC,eAA8B,EACL,EAAE;IAC3B,IAAI,eAAe,KAAK,IAAI,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3D,OAAO,IAAI,qEAAiC,CAAC,eAAe,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,IAAI,yEAAmC,EAAE,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,gCAAgC,GAAG,CACvC,+BAA8C,EAC9C,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,GAAG,CACJ,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,2FAA4C,CACrD,2BAA2B,EAC3B,IAAI,qDAAyB,CAAC,kBAAkB,CAAC,EACjD,IAAI,iFAAuC,CAC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,EAAE,2EAAyC;IACzE,+BAA+B,EAAE,4EAA0C;IAC3E,cAAc,EAAE,sEAAoC;CAC5C,CAAC"}
|
|
@@ -48,9 +48,42 @@ const parseEpochSeconds = (timestamp) => {
|
|
|
48
48
|
const parsed = Date.parse(timestamp);
|
|
49
49
|
return Number.isNaN(parsed) ? null : Math.floor(parsed / 1000);
|
|
50
50
|
};
|
|
51
|
+
const readContentBlocks = (message) => {
|
|
52
|
+
const content = message.content;
|
|
53
|
+
if (!Array.isArray(content)) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
return content.filter(isRecord);
|
|
57
|
+
};
|
|
58
|
+
const entryIndicatesCompletion = (entry) => {
|
|
59
|
+
const type = readString(entry, 'type');
|
|
60
|
+
const message = entry.message;
|
|
61
|
+
if (!isRecord(message)) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (type === 'assistant') {
|
|
65
|
+
const stopReason = readString(message, 'stop_reason');
|
|
66
|
+
if (stopReason === 'end_turn' || stopReason === 'stop_sequence') {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
const blocks = readContentBlocks(message);
|
|
70
|
+
const lastBlock = blocks[blocks.length - 1];
|
|
71
|
+
return lastBlock !== undefined && readString(lastBlock, 'type') === 'text';
|
|
72
|
+
}
|
|
73
|
+
if (type === 'user') {
|
|
74
|
+
const blocks = readContentBlocks(message);
|
|
75
|
+
if (blocks.length === 0) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
const lastBlock = blocks[blocks.length - 1];
|
|
79
|
+
const lastBlockType = readString(lastBlock, 'type');
|
|
80
|
+
return lastBlockType === 'text' || lastBlockType === 'tool_result';
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
};
|
|
51
84
|
const parseTranscript = (content) => {
|
|
52
85
|
let firstEntryEpochSeconds = null;
|
|
53
|
-
let
|
|
86
|
+
let lastEntryIndicatesCompletion = false;
|
|
54
87
|
for (const line of content.split('\n')) {
|
|
55
88
|
const trimmed = line.trim();
|
|
56
89
|
if (trimmed.length === 0) {
|
|
@@ -70,22 +103,17 @@ const parseTranscript = (content) => {
|
|
|
70
103
|
if (firstEntryEpochSeconds === null && epochSeconds !== null) {
|
|
71
104
|
firstEntryEpochSeconds = epochSeconds;
|
|
72
105
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const stopReason = readString(message, 'stop_reason');
|
|
76
|
-
if (stopReason !== null) {
|
|
77
|
-
lastStopReason = stopReason;
|
|
78
|
-
}
|
|
106
|
+
if (isRecord(parsed.message)) {
|
|
107
|
+
lastEntryIndicatesCompletion = entryIndicatesCompletion(parsed);
|
|
79
108
|
}
|
|
80
109
|
}
|
|
81
|
-
return { firstEntryEpochSeconds,
|
|
110
|
+
return { firstEntryEpochSeconds, lastEntryIndicatesCompletion };
|
|
82
111
|
};
|
|
83
112
|
const clampToZero = (value) => (value > 0 ? value : 0);
|
|
84
113
|
class TranscriptSessionSubAgentActivityRepository {
|
|
85
|
-
constructor(directoryResolver, now
|
|
114
|
+
constructor(directoryResolver, now) {
|
|
86
115
|
this.directoryResolver = directoryResolver;
|
|
87
116
|
this.now = now;
|
|
88
|
-
this.silentCeilingSeconds = silentCeilingSeconds;
|
|
89
117
|
this.listSubAgentActivitiesBySessionName = async (sessionNames, transcriptPathBySessionName) => {
|
|
90
118
|
const result = new Map();
|
|
91
119
|
const nowEpochSeconds = Math.floor(this.now.getTime() / 1000);
|
|
@@ -135,14 +163,10 @@ class TranscriptSessionSubAgentActivityRepository {
|
|
|
135
163
|
return null;
|
|
136
164
|
}
|
|
137
165
|
const transcript = parseTranscript(content);
|
|
138
|
-
if (transcript.
|
|
139
|
-
transcript.lastStopReason === 'stop_sequence') {
|
|
166
|
+
if (transcript.lastEntryIndicatesCompletion) {
|
|
140
167
|
return null;
|
|
141
168
|
}
|
|
142
169
|
const silentSeconds = clampToZero(nowEpochSeconds - Math.floor(stats.mtimeMs / 1000));
|
|
143
|
-
if (silentSeconds > this.silentCeilingSeconds) {
|
|
144
|
-
return null;
|
|
145
|
-
}
|
|
146
170
|
const runningSeconds = transcript.firstEntryEpochSeconds === null
|
|
147
171
|
? 0
|
|
148
172
|
: clampToZero(nowEpochSeconds - transcript.firstEntryEpochSeconds);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptSessionSubAgentActivityRepository.js","sourceRoot":"","sources":["../../../src/adapter/repositories/TranscriptSessionSubAgentActivityRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAK7B,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CACpE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AAE9C,MAAM,UAAU,GAAG,CACjB,KAA8B,EAC9B,GAAW,EACI,EAAE;IACjB,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7B,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,SAAwB,EAAiB,EAAE;IACpE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACrC,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AACjE,CAAC,CAAC;AAOF,MAAM,eAAe,GAAG,CAAC,OAAe,EAAoB,EAAE;IAC5D,IAAI,sBAAsB,GAAkB,IAAI,CAAC;IACjD,IAAI,
|
|
1
|
+
{"version":3,"file":"TranscriptSessionSubAgentActivityRep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|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotifySilentLiveSessionsUseCase = exports.isGitHubIssueOrPullRequestSessionName = exports.parseHubTaskIssueUrlFromSessionName = exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = exports.
|
|
3
|
+
exports.NotifySilentLiveSessionsUseCase = exports.isGitHubIssueOrPullRequestSessionName = exports.parseHubTaskIssueUrlFromSessionName = exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = exports.DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS = exports.DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS = exports.DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS = void 0;
|
|
4
4
|
const ResolveInteractiveLiveSessionsUseCase_1 = require("./ResolveInteractiveLiveSessionsUseCase");
|
|
5
5
|
exports.DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS = 10 * 60;
|
|
6
6
|
exports.DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS = 5 * 60;
|
|
7
7
|
exports.DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS = 15 * 60;
|
|
8
|
-
exports.DEFAULT_SUBAGENT_SILENT_CEILING_SECONDS = 60 * 60;
|
|
9
8
|
exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = 25;
|
|
10
9
|
const GITHUB_ISSUE_OR_PULL_URL_PATTERN = /^https:\/\/github\.com\/([^/]+)\/([^/]+)\/(?:issues|pull)\/(\d+)$/;
|
|
11
10
|
const GITHUB_TMUX_SESSION_NAME_PATTERN = /^https_\/\/github_com\/([^/]+)\/([^/]+)\/(?:issues|pull)\/(\d+)$/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotifySilentLiveSessionsUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":";;;AAWA,mGAAgG;AAEnF,QAAA,qCAAqC,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,QAAA,yCAAyC,GAAG,CAAC,GAAG,EAAE,CAAC;AACnD,QAAA,0CAA0C,GAAG,EAAE,GAAG,EAAE,CAAC;AACrD,QAAA,
|
|
1
|
+
{"version":3,"file":"NotifySilentLiveSessionsUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":";;;AAWA,mGAAgG;AAEnF,QAAA,qCAAqC,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,QAAA,yCAAyC,GAAG,CAAC,GAAG,EAAE,CAAC;AACnD,QAAA,0CAA0C,GAAG,EAAE,GAAG,EAAE,CAAC;AACrD,QAAA,oCAAoC,GAAG,EAAE,CAAC;AAEvD,MAAM,gCAAgC,GACpC,mEAAmE,CAAC;AAEtE,MAAM,gCAAgC,GACpC,kEAAkE,CAAC;AAE9D,MAAM,mCAAmC,GAAG,CACjD,WAAmB,EACJ,EAAE;IACjB,IAAI,gCAAgC,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QACvD,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,MAAM,SAAS,GAAG,gCAAgC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACrE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IAC1C,MAAM,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;IAClE,OAAO,sBAAsB,KAAK,IAAI,IAAI,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AACnE,CAAC,CAAC;AAbW,QAAA,mCAAmC,uCAa9C;AAEF,MAAM,iDAAiD,GACrD,0EAA0E,CAAC;AAEtE,MAAM,qCAAqC,GAAG,CACnD,WAAmB,EACV,EA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Seconds?: number;
|
|
117
117
|
subAgentSilentThresholdSeconds?: number;
|
|
118
118
|
subAgentRunningThresholdSeconds?: number;
|
|
119
|
-
subAgentSilentCeilingSeconds?: number;
|
|
120
119
|
silentNotificationStaggerSeconds?: number;
|
|
121
120
|
activeHubTaskStatus?: string;
|
|
122
121
|
silentMainStalledMessage?: string;
|
|
@@ -604,11 +603,6 @@ export class HandleScheduledEventUseCaseHandler {
|
|
|
604
603
|
process.env.TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
|
|
605
604
|
DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentRunningThresholdSeconds,
|
|
606
605
|
),
|
|
607
|
-
subAgentSilentCeilingSeconds: readSilentSeconds(
|
|
608
|
-
mergedInput.subAgentSilentCeilingSeconds,
|
|
609
|
-
process.env.TDPM_SUBAGENT_SILENT_CEILING_SECONDS,
|
|
610
|
-
DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentSilentCeilingSeconds,
|
|
611
|
-
),
|
|
612
606
|
staggerSeconds: readSilentSeconds(
|
|
613
607
|
mergedInput.silentNotificationStaggerSeconds,
|
|
614
608
|
process.env.TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS,
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
|
|
9
9
|
DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS,
|
|
10
10
|
DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
|
|
11
|
-
DEFAULT_SUBAGENT_SILENT_CEILING_SECONDS,
|
|
12
11
|
DEFAULT_NOTIFICATION_STAGGER_SECONDS,
|
|
13
12
|
} from '../../../domain/usecases/NotifySilentLiveSessionsUseCase';
|
|
14
13
|
import { DefaultSilentSessionMessageComposer } from '../../../domain/usecases/DefaultSilentSessionMessageComposer';
|
|
@@ -41,7 +40,6 @@ export type NotifySilentTmuxSessionsParams = {
|
|
|
41
40
|
mainSilentThresholdSeconds: number;
|
|
42
41
|
subAgentSilentThresholdSeconds: number;
|
|
43
42
|
subAgentRunningThresholdSeconds: number;
|
|
44
|
-
subAgentSilentCeilingSeconds: number;
|
|
45
43
|
staggerSeconds: number;
|
|
46
44
|
activeHubTaskStatus: string | null;
|
|
47
45
|
hubTaskStatusResolver: HubTaskStatusResolver | null;
|
|
@@ -62,7 +60,6 @@ const createSubAgentActivityRepository = (
|
|
|
62
60
|
subAgentTranscriptRootDirectory: string | null,
|
|
63
61
|
subAgentProcessMatchPattern: string | null,
|
|
64
62
|
subAgentOutputRootDirectory: string | null,
|
|
65
|
-
subAgentSilentCeilingSeconds: number,
|
|
66
63
|
localCommandRunner: LocalCommandRunner,
|
|
67
64
|
now: Date,
|
|
68
65
|
): SessionSubAgentActivityRepository => {
|
|
@@ -72,7 +69,6 @@ const createSubAgentActivityRepository = (
|
|
|
72
69
|
subAgentTranscriptRootDirectory,
|
|
73
70
|
),
|
|
74
71
|
now,
|
|
75
|
-
subAgentSilentCeilingSeconds,
|
|
76
72
|
);
|
|
77
73
|
}
|
|
78
74
|
return new ProcessListSessionSubAgentActivityRepository(
|
|
@@ -99,7 +95,6 @@ export const notifySilentTmuxSessions = async (
|
|
|
99
95
|
mainSilentThresholdSeconds,
|
|
100
96
|
subAgentSilentThresholdSeconds,
|
|
101
97
|
subAgentRunningThresholdSeconds,
|
|
102
|
-
subAgentSilentCeilingSeconds,
|
|
103
98
|
staggerSeconds,
|
|
104
99
|
activeHubTaskStatus,
|
|
105
100
|
hubTaskStatusResolver,
|
|
@@ -127,7 +122,6 @@ export const notifySilentTmuxSessions = async (
|
|
|
127
122
|
subAgentTranscriptRootDirectory,
|
|
128
123
|
subAgentProcessMatchPattern,
|
|
129
124
|
subAgentOutputRootDirectory,
|
|
130
|
-
subAgentSilentCeilingSeconds,
|
|
131
125
|
localCommandRunner,
|
|
132
126
|
now,
|
|
133
127
|
),
|
|
@@ -151,6 +145,5 @@ export const DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS = {
|
|
|
151
145
|
mainSilentThresholdSeconds: DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
|
|
152
146
|
subAgentSilentThresholdSeconds: DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS,
|
|
153
147
|
subAgentRunningThresholdSeconds: DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
|
|
154
|
-
subAgentSilentCeilingSeconds: DEFAULT_SUBAGENT_SILENT_CEILING_SECONDS,
|
|
155
148
|
staggerSeconds: DEFAULT_NOTIFICATION_STAGGER_SECONDS,
|
|
156
149
|
} as const;
|
|
@@ -9,7 +9,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
9
9
|
let rootDirectory: string;
|
|
10
10
|
const now = new Date('2026-06-27T12:00:00.000Z');
|
|
11
11
|
const nowEpochSeconds = Math.floor(now.getTime() / 1000);
|
|
12
|
-
const noOpCeilingSeconds = 365 * 24 * 60 * 60;
|
|
13
12
|
|
|
14
13
|
beforeEach(() => {
|
|
15
14
|
rootDirectory = fs.mkdtempSync(path.join(os.tmpdir(), 'subagent-tx-'));
|
|
@@ -76,7 +75,11 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
76
75
|
{
|
|
77
76
|
type: 'assistant',
|
|
78
77
|
timestamp: startTimestamp,
|
|
79
|
-
message: {
|
|
78
|
+
message: {
|
|
79
|
+
role: 'assistant',
|
|
80
|
+
stop_reason: 'tool_use',
|
|
81
|
+
content: [{ type: 'tool_use', name: 'Bash', input: {} }],
|
|
82
|
+
},
|
|
80
83
|
},
|
|
81
84
|
];
|
|
82
85
|
|
|
@@ -98,6 +101,145 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
98
101
|
},
|
|
99
102
|
];
|
|
100
103
|
|
|
104
|
+
const finalTextAnswerEntries = (startTimestamp: string): object[] => [
|
|
105
|
+
{ type: 'user', timestamp: startTimestamp, message: { role: 'user' } },
|
|
106
|
+
{
|
|
107
|
+
type: 'assistant',
|
|
108
|
+
timestamp: startTimestamp,
|
|
109
|
+
message: {
|
|
110
|
+
role: 'assistant',
|
|
111
|
+
stop_reason: 'tool_use',
|
|
112
|
+
content: [{ type: 'tool_use', name: 'Bash', input: {} }],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'user',
|
|
117
|
+
timestamp: startTimestamp,
|
|
118
|
+
message: {
|
|
119
|
+
role: 'user',
|
|
120
|
+
content: [{ type: 'tool_result', content: '' }],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: 'assistant',
|
|
125
|
+
timestamp: startTimestamp,
|
|
126
|
+
message: {
|
|
127
|
+
role: 'assistant',
|
|
128
|
+
stop_reason: null,
|
|
129
|
+
content: [{ type: 'text', text: 'All verification complete.' }],
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
|
|
134
|
+
const interruptedEntries = (startTimestamp: string): object[] => [
|
|
135
|
+
{ type: 'user', timestamp: startTimestamp, message: { role: 'user' } },
|
|
136
|
+
{
|
|
137
|
+
type: 'assistant',
|
|
138
|
+
timestamp: startTimestamp,
|
|
139
|
+
message: {
|
|
140
|
+
role: 'assistant',
|
|
141
|
+
stop_reason: 'tool_use',
|
|
142
|
+
content: [{ type: 'tool_use', name: 'Bash', input: {} }],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: 'user',
|
|
147
|
+
timestamp: startTimestamp,
|
|
148
|
+
message: {
|
|
149
|
+
role: 'user',
|
|
150
|
+
content: [{ type: 'text', text: '[Request interrupted by user]' }],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
];
|
|
154
|
+
|
|
155
|
+
const toolResultTerminalEntries = (startTimestamp: string): object[] => [
|
|
156
|
+
{ type: 'user', timestamp: startTimestamp, message: { role: 'user' } },
|
|
157
|
+
{
|
|
158
|
+
type: 'assistant',
|
|
159
|
+
timestamp: startTimestamp,
|
|
160
|
+
message: {
|
|
161
|
+
role: 'assistant',
|
|
162
|
+
stop_reason: 'tool_use',
|
|
163
|
+
content: [{ type: 'tool_use', name: 'Bash', input: {} }],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'user',
|
|
168
|
+
timestamp: startTimestamp,
|
|
169
|
+
message: {
|
|
170
|
+
role: 'user',
|
|
171
|
+
content: [{ type: 'tool_result', content: 'command output' }],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
];
|
|
175
|
+
|
|
176
|
+
const structuredOutputTerminalEntries = (
|
|
177
|
+
startTimestamp: string,
|
|
178
|
+
): object[] => [
|
|
179
|
+
{ type: 'user', timestamp: startTimestamp, message: { role: 'user' } },
|
|
180
|
+
{
|
|
181
|
+
type: 'assistant',
|
|
182
|
+
timestamp: startTimestamp,
|
|
183
|
+
message: {
|
|
184
|
+
role: 'assistant',
|
|
185
|
+
stop_reason: 'tool_use',
|
|
186
|
+
content: [{ type: 'tool_use', name: 'StructuredOutput', input: {} }],
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
type: 'user',
|
|
191
|
+
timestamp: startTimestamp,
|
|
192
|
+
message: {
|
|
193
|
+
role: 'user',
|
|
194
|
+
content: [
|
|
195
|
+
{
|
|
196
|
+
type: 'tool_result',
|
|
197
|
+
content: 'Structured output provided successfully',
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
];
|
|
203
|
+
|
|
204
|
+
const emptyUserTerminalEntries = (startTimestamp: string): object[] => [
|
|
205
|
+
{ type: 'user', timestamp: startTimestamp, message: { role: 'user' } },
|
|
206
|
+
{
|
|
207
|
+
type: 'assistant',
|
|
208
|
+
timestamp: startTimestamp,
|
|
209
|
+
message: {
|
|
210
|
+
role: 'assistant',
|
|
211
|
+
stop_reason: 'tool_use',
|
|
212
|
+
content: [{ type: 'tool_use', name: 'Bash', input: {} }],
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: 'user',
|
|
217
|
+
timestamp: startTimestamp,
|
|
218
|
+
message: { role: 'user', content: [] },
|
|
219
|
+
},
|
|
220
|
+
];
|
|
221
|
+
|
|
222
|
+
const pendingToolUseEntries = (startTimestamp: string): object[] => [
|
|
223
|
+
{ type: 'user', timestamp: startTimestamp, message: { role: 'user' } },
|
|
224
|
+
{
|
|
225
|
+
type: 'user',
|
|
226
|
+
timestamp: startTimestamp,
|
|
227
|
+
message: {
|
|
228
|
+
role: 'user',
|
|
229
|
+
content: [{ type: 'tool_result', content: '' }],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: 'assistant',
|
|
234
|
+
timestamp: startTimestamp,
|
|
235
|
+
message: {
|
|
236
|
+
role: 'assistant',
|
|
237
|
+
stop_reason: 'tool_use',
|
|
238
|
+
content: [{ type: 'tool_use', name: 'Bash', input: {} }],
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
];
|
|
242
|
+
|
|
101
243
|
it('reports a running sub-agent with silent seconds from the file mtime and running seconds from the first entry', async () => {
|
|
102
244
|
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
103
245
|
const startTimestamp = '2026-06-27T11:45:00.000Z';
|
|
@@ -110,7 +252,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
110
252
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
111
253
|
createResolver(),
|
|
112
254
|
now,
|
|
113
|
-
noOpCeilingSeconds,
|
|
114
255
|
);
|
|
115
256
|
|
|
116
257
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -134,7 +275,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
134
275
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
135
276
|
createResolver(),
|
|
136
277
|
now,
|
|
137
|
-
noOpCeilingSeconds,
|
|
138
278
|
);
|
|
139
279
|
|
|
140
280
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -156,7 +296,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
156
296
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
157
297
|
createResolver(),
|
|
158
298
|
now,
|
|
159
|
-
noOpCeilingSeconds,
|
|
160
299
|
);
|
|
161
300
|
|
|
162
301
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -167,6 +306,162 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
167
306
|
expect(result.size).toBe(0);
|
|
168
307
|
});
|
|
169
308
|
|
|
309
|
+
it('excludes a finished sub-agent whose last entry is a final assistant text answer with a null stop_reason', async () => {
|
|
310
|
+
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
311
|
+
writeAgentTranscript(
|
|
312
|
+
sessionName,
|
|
313
|
+
'finaltext',
|
|
314
|
+
finalTextAnswerEntries('2026-06-27T11:00:00.000Z'),
|
|
315
|
+
nowEpochSeconds - 600,
|
|
316
|
+
);
|
|
317
|
+
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
318
|
+
createResolver(),
|
|
319
|
+
now,
|
|
320
|
+
);
|
|
321
|
+
|
|
322
|
+
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
323
|
+
[sessionName],
|
|
324
|
+
transcriptMapFor([sessionName]),
|
|
325
|
+
);
|
|
326
|
+
|
|
327
|
+
expect(result.size).toBe(0);
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
it('excludes a sub-agent whose transcript ends with a user interruption text entry', async () => {
|
|
331
|
+
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
332
|
+
writeAgentTranscript(
|
|
333
|
+
sessionName,
|
|
334
|
+
'interrupted',
|
|
335
|
+
interruptedEntries('2026-06-27T11:00:00.000Z'),
|
|
336
|
+
nowEpochSeconds - 600,
|
|
337
|
+
);
|
|
338
|
+
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
339
|
+
createResolver(),
|
|
340
|
+
now,
|
|
341
|
+
);
|
|
342
|
+
|
|
343
|
+
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
344
|
+
[sessionName],
|
|
345
|
+
transcriptMapFor([sessionName]),
|
|
346
|
+
);
|
|
347
|
+
|
|
348
|
+
expect(result.size).toBe(0);
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
it('excludes a dead sub-agent whose transcript ends with an unconsumed tool result and no following assistant turn', async () => {
|
|
352
|
+
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
353
|
+
writeAgentTranscript(
|
|
354
|
+
sessionName,
|
|
355
|
+
'toolresultend',
|
|
356
|
+
toolResultTerminalEntries('2026-06-27T11:00:00.000Z'),
|
|
357
|
+
nowEpochSeconds - 600,
|
|
358
|
+
);
|
|
359
|
+
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
360
|
+
createResolver(),
|
|
361
|
+
now,
|
|
362
|
+
);
|
|
363
|
+
|
|
364
|
+
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
365
|
+
[sessionName],
|
|
366
|
+
transcriptMapFor([sessionName]),
|
|
367
|
+
);
|
|
368
|
+
|
|
369
|
+
expect(result.size).toBe(0);
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
it('excludes a finished sub-agent whose transcript ends with the final StructuredOutput tool result', async () => {
|
|
373
|
+
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
374
|
+
writeAgentTranscript(
|
|
375
|
+
sessionName,
|
|
376
|
+
'structuredend',
|
|
377
|
+
structuredOutputTerminalEntries('2026-06-27T11:00:00.000Z'),
|
|
378
|
+
nowEpochSeconds - 600,
|
|
379
|
+
);
|
|
380
|
+
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
381
|
+
createResolver(),
|
|
382
|
+
now,
|
|
383
|
+
);
|
|
384
|
+
|
|
385
|
+
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
386
|
+
[sessionName],
|
|
387
|
+
transcriptMapFor([sessionName]),
|
|
388
|
+
);
|
|
389
|
+
|
|
390
|
+
expect(result.size).toBe(0);
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
it('excludes a dead sub-agent whose transcript ends with a user entry that has no content blocks', async () => {
|
|
394
|
+
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
395
|
+
writeAgentTranscript(
|
|
396
|
+
sessionName,
|
|
397
|
+
'emptyuserend',
|
|
398
|
+
emptyUserTerminalEntries('2026-06-27T11:00:00.000Z'),
|
|
399
|
+
nowEpochSeconds - 600,
|
|
400
|
+
);
|
|
401
|
+
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
402
|
+
createResolver(),
|
|
403
|
+
now,
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
407
|
+
[sessionName],
|
|
408
|
+
transcriptMapFor([sessionName]),
|
|
409
|
+
);
|
|
410
|
+
|
|
411
|
+
expect(result.size).toBe(0);
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
it('flags a genuinely-active sub-agent whose last entry is a pending tool call', async () => {
|
|
415
|
+
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
416
|
+
writeAgentTranscript(
|
|
417
|
+
sessionName,
|
|
418
|
+
'pending',
|
|
419
|
+
pendingToolUseEntries('2026-06-27T11:45:00.000Z'),
|
|
420
|
+
nowEpochSeconds - 600,
|
|
421
|
+
);
|
|
422
|
+
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
423
|
+
createResolver(),
|
|
424
|
+
now,
|
|
425
|
+
);
|
|
426
|
+
|
|
427
|
+
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
428
|
+
[sessionName],
|
|
429
|
+
transcriptMapFor([sessionName]),
|
|
430
|
+
);
|
|
431
|
+
|
|
432
|
+
expect(result.get(sessionName)).toEqual([
|
|
433
|
+
{ label: 'agent-pending', silentSeconds: 600, runningSeconds: 900 },
|
|
434
|
+
]);
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
it('flags a long-silent genuine stall whose last entry is a pending tool call regardless of how old it is', async () => {
|
|
438
|
+
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
439
|
+
const fourDaysSeconds = 4 * 24 * 60 * 60;
|
|
440
|
+
writeAgentTranscript(
|
|
441
|
+
sessionName,
|
|
442
|
+
'longstall',
|
|
443
|
+
pendingToolUseEntries('2026-06-23T12:00:00.000Z'),
|
|
444
|
+
nowEpochSeconds - fourDaysSeconds,
|
|
445
|
+
);
|
|
446
|
+
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
447
|
+
createResolver(),
|
|
448
|
+
now,
|
|
449
|
+
);
|
|
450
|
+
|
|
451
|
+
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
452
|
+
[sessionName],
|
|
453
|
+
transcriptMapFor([sessionName]),
|
|
454
|
+
);
|
|
455
|
+
|
|
456
|
+
expect(result.get(sessionName)).toEqual([
|
|
457
|
+
{
|
|
458
|
+
label: 'agent-longstall',
|
|
459
|
+
silentSeconds: fourDaysSeconds,
|
|
460
|
+
runningSeconds: fourDaysSeconds,
|
|
461
|
+
},
|
|
462
|
+
]);
|
|
463
|
+
});
|
|
464
|
+
|
|
170
465
|
it('follows a symlinked transcript when computing silent seconds', async () => {
|
|
171
466
|
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
172
467
|
const targetDir = fs.mkdtempSync(
|
|
@@ -186,7 +481,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
186
481
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
187
482
|
createResolver(),
|
|
188
483
|
now,
|
|
189
|
-
noOpCeilingSeconds,
|
|
190
484
|
);
|
|
191
485
|
|
|
192
486
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -204,7 +498,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
204
498
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
205
499
|
{ resolveSubAgentsDirectory: () => null },
|
|
206
500
|
now,
|
|
207
|
-
noOpCeilingSeconds,
|
|
208
501
|
);
|
|
209
502
|
|
|
210
503
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -219,7 +512,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
219
512
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
220
513
|
createResolver(),
|
|
221
514
|
now,
|
|
222
|
-
noOpCeilingSeconds,
|
|
223
515
|
);
|
|
224
516
|
|
|
225
517
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -247,7 +539,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
247
539
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
248
540
|
createResolver(),
|
|
249
541
|
now,
|
|
250
|
-
noOpCeilingSeconds,
|
|
251
542
|
);
|
|
252
543
|
|
|
253
544
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -269,7 +560,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
269
560
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
270
561
|
createResolver(),
|
|
271
562
|
now,
|
|
272
|
-
noOpCeilingSeconds,
|
|
273
563
|
);
|
|
274
564
|
|
|
275
565
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -315,7 +605,6 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
315
605
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
316
606
|
new FileSystemSubAgentTranscriptDirectoryResolver(projectsRoot),
|
|
317
607
|
now,
|
|
318
|
-
noOpCeilingSeconds,
|
|
319
608
|
);
|
|
320
609
|
|
|
321
610
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -332,102 +621,24 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
332
621
|
]);
|
|
333
622
|
});
|
|
334
623
|
|
|
335
|
-
it('
|
|
624
|
+
it('flags a marker-less stall and excludes a finished transcript in the same session regardless of their age', async () => {
|
|
336
625
|
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
337
626
|
const twoDaysSeconds = 2 * 24 * 60 * 60;
|
|
338
627
|
writeAgentTranscript(
|
|
339
628
|
sessionName,
|
|
340
|
-
'
|
|
341
|
-
|
|
629
|
+
'finishedold',
|
|
630
|
+
finishedEntries('2026-06-25T12:00:00.000Z'),
|
|
342
631
|
nowEpochSeconds - twoDaysSeconds,
|
|
343
632
|
);
|
|
344
|
-
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
345
|
-
createResolver(),
|
|
346
|
-
now,
|
|
347
|
-
60 * 60,
|
|
348
|
-
);
|
|
349
|
-
|
|
350
|
-
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
351
|
-
[sessionName],
|
|
352
|
-
transcriptMapFor([sessionName]),
|
|
353
|
-
);
|
|
354
|
-
|
|
355
|
-
expect(result.size).toBe(0);
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
it('keeps a recently-silent sub-agent whose transcript is within the ceiling', async () => {
|
|
359
|
-
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
360
|
-
writeAgentTranscript(
|
|
361
|
-
sessionName,
|
|
362
|
-
'aliveone',
|
|
363
|
-
runningEntries('2026-06-27T11:45:00.000Z'),
|
|
364
|
-
nowEpochSeconds - 360,
|
|
365
|
-
);
|
|
366
|
-
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
367
|
-
createResolver(),
|
|
368
|
-
now,
|
|
369
|
-
60 * 60,
|
|
370
|
-
);
|
|
371
|
-
|
|
372
|
-
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
373
|
-
[sessionName],
|
|
374
|
-
transcriptMapFor([sessionName]),
|
|
375
|
-
);
|
|
376
|
-
|
|
377
|
-
expect(result.get(sessionName)).toEqual([
|
|
378
|
-
{ label: 'agent-aliveone', silentSeconds: 360, runningSeconds: 900 },
|
|
379
|
-
]);
|
|
380
|
-
});
|
|
381
|
-
|
|
382
|
-
it('keeps a sub-agent silent exactly at the ceiling and excludes one past it', async () => {
|
|
383
|
-
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
384
|
-
writeAgentTranscript(
|
|
385
|
-
sessionName,
|
|
386
|
-
'atceiling',
|
|
387
|
-
runningEntries('2026-06-27T11:00:00.000Z'),
|
|
388
|
-
nowEpochSeconds - 3600,
|
|
389
|
-
);
|
|
390
|
-
writeAgentTranscript(
|
|
391
|
-
sessionName,
|
|
392
|
-
'pastceiling',
|
|
393
|
-
runningEntries('2026-06-27T11:00:00.000Z'),
|
|
394
|
-
nowEpochSeconds - 3601,
|
|
395
|
-
);
|
|
396
|
-
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
397
|
-
createResolver(),
|
|
398
|
-
now,
|
|
399
|
-
3600,
|
|
400
|
-
);
|
|
401
|
-
|
|
402
|
-
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
403
|
-
[sessionName],
|
|
404
|
-
transcriptMapFor([sessionName]),
|
|
405
|
-
);
|
|
406
|
-
|
|
407
|
-
expect(result.get(sessionName)).toEqual([
|
|
408
|
-
{ label: 'agent-atceiling', silentSeconds: 3600, runningSeconds: 3600 },
|
|
409
|
-
]);
|
|
410
|
-
});
|
|
411
|
-
|
|
412
|
-
it('flags only the recently-silent sub-agent when a session holds both a dead and an alive transcript', async () => {
|
|
413
|
-
const sessionName = 'https_//github_com/owner/repo/issues/9';
|
|
414
|
-
const twoDaysSeconds = 2 * 24 * 60 * 60;
|
|
415
633
|
writeAgentTranscript(
|
|
416
634
|
sessionName,
|
|
417
|
-
'
|
|
418
|
-
|
|
635
|
+
'stalledold',
|
|
636
|
+
pendingToolUseEntries('2026-06-25T12:00:00.000Z'),
|
|
419
637
|
nowEpochSeconds - twoDaysSeconds,
|
|
420
638
|
);
|
|
421
|
-
writeAgentTranscript(
|
|
422
|
-
sessionName,
|
|
423
|
-
'alivetwo',
|
|
424
|
-
runningEntries('2026-06-27T11:45:00.000Z'),
|
|
425
|
-
nowEpochSeconds - 400,
|
|
426
|
-
);
|
|
427
639
|
const repository = new TranscriptSessionSubAgentActivityRepository(
|
|
428
640
|
createResolver(),
|
|
429
641
|
now,
|
|
430
|
-
60 * 60,
|
|
431
642
|
);
|
|
432
643
|
|
|
433
644
|
const result = await repository.listSubAgentActivitiesBySessionName(
|
|
@@ -436,7 +647,11 @@ describe('TranscriptSessionSubAgentActivityRepository', () => {
|
|
|
436
647
|
);
|
|
437
648
|
|
|
438
649
|
expect(result.get(sessionName)).toEqual([
|
|
439
|
-
{
|
|
650
|
+
{
|
|
651
|
+
label: 'agent-stalledold',
|
|
652
|
+
silentSeconds: twoDaysSeconds,
|
|
653
|
+
runningSeconds: twoDaysSeconds,
|
|
654
|
+
},
|
|
440
655
|
]);
|
|
441
656
|
});
|
|
442
657
|
});
|
|
@@ -25,12 +25,49 @@ const parseEpochSeconds = (timestamp: string | null): number | null => {
|
|
|
25
25
|
|
|
26
26
|
type ParsedTranscript = {
|
|
27
27
|
firstEntryEpochSeconds: number | null;
|
|
28
|
-
|
|
28
|
+
lastEntryIndicatesCompletion: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const readContentBlocks = (
|
|
32
|
+
message: Record<string, unknown>,
|
|
33
|
+
): Record<string, unknown>[] => {
|
|
34
|
+
const content = message.content;
|
|
35
|
+
if (!Array.isArray(content)) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
return content.filter(isRecord);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const entryIndicatesCompletion = (entry: Record<string, unknown>): boolean => {
|
|
42
|
+
const type = readString(entry, 'type');
|
|
43
|
+
const message = entry.message;
|
|
44
|
+
if (!isRecord(message)) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
if (type === 'assistant') {
|
|
48
|
+
const stopReason = readString(message, 'stop_reason');
|
|
49
|
+
if (stopReason === 'end_turn' || stopReason === 'stop_sequence') {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
const blocks = readContentBlocks(message);
|
|
53
|
+
const lastBlock = blocks[blocks.length - 1];
|
|
54
|
+
return lastBlock !== undefined && readString(lastBlock, 'type') === 'text';
|
|
55
|
+
}
|
|
56
|
+
if (type === 'user') {
|
|
57
|
+
const blocks = readContentBlocks(message);
|
|
58
|
+
if (blocks.length === 0) {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
const lastBlock = blocks[blocks.length - 1];
|
|
62
|
+
const lastBlockType = readString(lastBlock, 'type');
|
|
63
|
+
return lastBlockType === 'text' || lastBlockType === 'tool_result';
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
29
66
|
};
|
|
30
67
|
|
|
31
68
|
const parseTranscript = (content: string): ParsedTranscript => {
|
|
32
69
|
let firstEntryEpochSeconds: number | null = null;
|
|
33
|
-
let
|
|
70
|
+
let lastEntryIndicatesCompletion = false;
|
|
34
71
|
for (const line of content.split('\n')) {
|
|
35
72
|
const trimmed = line.trim();
|
|
36
73
|
if (trimmed.length === 0) {
|
|
@@ -49,15 +86,11 @@ const parseTranscript = (content: string): ParsedTranscript => {
|
|
|
49
86
|
if (firstEntryEpochSeconds === null && epochSeconds !== null) {
|
|
50
87
|
firstEntryEpochSeconds = epochSeconds;
|
|
51
88
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const stopReason = readString(message, 'stop_reason');
|
|
55
|
-
if (stopReason !== null) {
|
|
56
|
-
lastStopReason = stopReason;
|
|
57
|
-
}
|
|
89
|
+
if (isRecord(parsed.message)) {
|
|
90
|
+
lastEntryIndicatesCompletion = entryIndicatesCompletion(parsed);
|
|
58
91
|
}
|
|
59
92
|
}
|
|
60
|
-
return { firstEntryEpochSeconds,
|
|
93
|
+
return { firstEntryEpochSeconds, lastEntryIndicatesCompletion };
|
|
61
94
|
};
|
|
62
95
|
|
|
63
96
|
const clampToZero = (value: number): number => (value > 0 ? value : 0);
|
|
@@ -66,7 +99,6 @@ export class TranscriptSessionSubAgentActivityRepository implements SessionSubAg
|
|
|
66
99
|
constructor(
|
|
67
100
|
private readonly directoryResolver: SubAgentTranscriptDirectoryResolver,
|
|
68
101
|
private readonly now: Date,
|
|
69
|
-
private readonly silentCeilingSeconds: number,
|
|
70
102
|
) {}
|
|
71
103
|
|
|
72
104
|
listSubAgentActivitiesBySessionName = async (
|
|
@@ -132,18 +164,12 @@ export class TranscriptSessionSubAgentActivityRepository implements SessionSubAg
|
|
|
132
164
|
return null;
|
|
133
165
|
}
|
|
134
166
|
const transcript = parseTranscript(content);
|
|
135
|
-
if (
|
|
136
|
-
transcript.lastStopReason === 'end_turn' ||
|
|
137
|
-
transcript.lastStopReason === 'stop_sequence'
|
|
138
|
-
) {
|
|
167
|
+
if (transcript.lastEntryIndicatesCompletion) {
|
|
139
168
|
return null;
|
|
140
169
|
}
|
|
141
170
|
const silentSeconds = clampToZero(
|
|
142
171
|
nowEpochSeconds - Math.floor(stats.mtimeMs / 1000),
|
|
143
172
|
);
|
|
144
|
-
if (silentSeconds > this.silentCeilingSeconds) {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
173
|
const runningSeconds =
|
|
148
174
|
transcript.firstEntryEpochSeconds === null
|
|
149
175
|
? 0
|
|
@@ -14,7 +14,6 @@ import { ResolveInteractiveLiveSessionsUseCase } from './ResolveInteractiveLiveS
|
|
|
14
14
|
export const DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS = 10 * 60;
|
|
15
15
|
export const DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS = 5 * 60;
|
|
16
16
|
export const DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS = 15 * 60;
|
|
17
|
-
export const DEFAULT_SUBAGENT_SILENT_CEILING_SECONDS = 60 * 60;
|
|
18
17
|
export const DEFAULT_NOTIFICATION_STAGGER_SECONDS = 25;
|
|
19
18
|
|
|
20
19
|
const GITHUB_ISSUE_OR_PULL_URL_PATTERN =
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HandleScheduledEventUseCaseHandler.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAiD3D,qBAAa,kCAAkC;IAC7C,MAAM,GACJ,gBAAgB,MAAM,EACtB,UAAU,OAAO,KAChB,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,eAAe,EAAE,IAAI,EAAE,CAAC;KACzB,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"HandleScheduledEventUseCaseHandler.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAiD3D,qBAAa,kCAAkC;IAC7C,MAAM,GACJ,gBAAgB,MAAM,EACtB,UAAU,OAAO,KAChB,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,eAAe,EAAE,IAAI,EAAE,CAAC;KACzB,GAAG,IAAI,CAAC,CAmiBP;CACH"}
|
|
@@ -13,7 +13,6 @@ export type NotifySilentTmuxSessionsParams = {
|
|
|
13
13
|
mainSilentThresholdSeconds: number;
|
|
14
14
|
subAgentSilentThresholdSeconds: number;
|
|
15
15
|
subAgentRunningThresholdSeconds: number;
|
|
16
|
-
subAgentSilentCeilingSeconds: number;
|
|
17
16
|
staggerSeconds: number;
|
|
18
17
|
activeHubTaskStatus: string | null;
|
|
19
18
|
hubTaskStatusResolver: HubTaskStatusResolver | null;
|
|
@@ -25,7 +24,6 @@ export declare const DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS: {
|
|
|
25
24
|
readonly mainSilentThresholdSeconds: number;
|
|
26
25
|
readonly subAgentSilentThresholdSeconds: number;
|
|
27
26
|
readonly subAgentRunningThresholdSeconds: number;
|
|
28
|
-
readonly subAgentSilentCeilingSeconds: number;
|
|
29
27
|
readonly staggerSeconds: 25;
|
|
30
28
|
};
|
|
31
29
|
//# sourceMappingURL=notifySilentTmuxSessions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifySilentTmuxSessions.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gEAAgE,CAAC;AAGpG,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAC;AACxG,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"notifySilentTmuxSessions.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gEAAgE,CAAC;AAGpG,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAC;AACxG,OAAO,EAEL,qBAAqB,EAKtB,MAAM,0DAA0D,CAAC;AAclE,OAAO,EAEL,6BAA6B,EAC9B,MAAM,6DAA6D,CAAC;AAGrE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C,0BAA0B,EAAE,MAAM,CAAC;IACnC,8BAA8B,EAAE,MAAM,CAAC;IACvC,+BAA+B,EAAE,MAAM,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBAAqB,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACpD,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,GAAG,EAAE,IAAI,CAAC;CACX,CAAC;AAoCF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,8BAA8B,KACrC,OAAO,CAAC,IAAI,CAwDd,CAAC;AAEF,eAAO,MAAM,0CAA0C;;;;;CAK7C,CAAC"}
|
|
@@ -4,8 +4,7 @@ import { SubAgentTranscriptDirectoryResolver } from '../../domain/usecases/adapt
|
|
|
4
4
|
export declare class TranscriptSessionSubAgentActivityRepository implements SessionSubAgentActivityRepository {
|
|
5
5
|
private readonly directoryResolver;
|
|
6
6
|
private readonly now;
|
|
7
|
-
|
|
8
|
-
constructor(directoryResolver: SubAgentTranscriptDirectoryResolver, now: Date, silentCeilingSeconds: number);
|
|
7
|
+
constructor(directoryResolver: SubAgentTranscriptDirectoryResolver, now: Date);
|
|
9
8
|
listSubAgentActivitiesBySessionName: (sessionNames: string[], transcriptPathBySessionName: Map<string, string>) => Promise<Map<string, SubAgentActivity[]>>;
|
|
10
9
|
private collectActivities;
|
|
11
10
|
private toActivity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptSessionSubAgentActivityRepository.d.ts","sourceRoot":"","sources":["../../../src/adapter/repositories/TranscriptSessionSubAgentActivityRepository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,iCAAiC,EAAE,MAAM,4EAA4E,CAAC;AAC/H,OAAO,EAAE,mCAAmC,EAAE,MAAM,8EAA8E,CAAC;
|
|
1
|
+
{"version":3,"file":"TranscriptSessionSubAgentActivityRepository.d.ts","sourceRoot":"","sources":["../../../src/adapter/repositories/TranscriptSessionSubAgentActivityRepository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,iCAAiC,EAAE,MAAM,4EAA4E,CAAC;AAC/H,OAAO,EAAE,mCAAmC,EAAE,MAAM,8EAA8E,CAAC;AA6FnI,qBAAa,2CAA4C,YAAW,iCAAiC;IAEjG,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG;gBADH,iBAAiB,EAAE,mCAAmC,EACtD,GAAG,EAAE,IAAI;IAG5B,mCAAmC,GACjC,cAAc,MAAM,EAAE,EACtB,6BAA6B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC/C,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAmBzC;IAEF,OAAO,CAAC,iBAAiB,CAuBvB;IAEF,OAAO,CAAC,UAAU,CA6BhB;CACH"}
|
|
@@ -10,7 +10,6 @@ import { IssueRepository } from './adapter-interfaces/IssueRepository';
|
|
|
10
10
|
export declare const DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS: number;
|
|
11
11
|
export declare const DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS: number;
|
|
12
12
|
export declare const DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS: number;
|
|
13
|
-
export declare const DEFAULT_SUBAGENT_SILENT_CEILING_SECONDS: number;
|
|
14
13
|
export declare const DEFAULT_NOTIFICATION_STAGGER_SECONDS = 25;
|
|
15
14
|
export declare const parseHubTaskIssueUrlFromSessionName: (sessionName: string) => string | null;
|
|
16
15
|
export declare const isGitHubIssueOrPullRequestSessionName: (sessionName: string) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotifySilentLiveSessionsUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yDAAyD,CAAC;AAC7G,OAAO,EAAE,wCAAwC,EAAE,MAAM,+DAA+D,CAAC;AACzH,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AAC/G,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGvE,eAAO,MAAM,qCAAqC,QAAU,CAAC;AAC7D,eAAO,MAAM,yCAAyC,QAAS,CAAC;AAChE,eAAO,MAAM,0CAA0C,QAAU,CAAC;AAClE,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"NotifySilentLiveSessionsUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,yDAAyD,CAAC;AAC7G,OAAO,EAAE,wCAAwC,EAAE,MAAM,+DAA+D,CAAC;AACzH,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,mCAAmC,EAAE,M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