github-issue-tower-defence-management 1.114.2 → 1.115.0
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 +7 -0
- package/README.md +3 -3
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +10 -2
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
- package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js +3 -2
- package/bin/adapter/entry-points/handlers/notifySilentTmuxSessions.js.map +1 -1
- package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js +36 -2
- package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js.map +1 -1
- package/package.json +1 -1
- package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +6 -0
- package/src/adapter/entry-points/handlers/notifySilentTmuxSessions.test.ts +120 -0
- package/src/adapter/entry-points/handlers/notifySilentTmuxSessions.ts +7 -0
- package/src/domain/usecases/NotifySilentLiveSessionsUseCase.test.ts +188 -1
- package/src/domain/usecases/NotifySilentLiveSessionsUseCase.ts +59 -0
- package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
- package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts +3 -0
- package/types/adapter/entry-points/handlers/notifySilentTmuxSessions.d.ts.map +1 -1
- package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts +7 -1
- package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.115.0](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.114.2...v1.115.0) (2026-06-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **silent-notify:** skip notification when hub task is no longer active ([#1063](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1063)) ([0a45b7f](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/0a45b7fb8e13814422bc2a52f303bfebf10ab102))
|
|
7
|
+
|
|
1
8
|
## [1.114.2](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.114.1...v1.114.2) (2026-06-28)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -294,7 +294,7 @@ subAgentSilentThresholdSeconds?: number # Optional: Seconds of sub-process outpu
|
|
|
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
295
|
silentNotificationCooldownSeconds?: number # Optional: Minimum seconds between notifications to the same session. Default 1800
|
|
296
296
|
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
|
-
|
|
297
|
+
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
298
|
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
|
|
299
299
|
silentSubAgentMessageFooter?: string # Optional: Overrides the line shown below the sub-process list in the sub-process section. When unset, a generic built-in line is used
|
|
300
300
|
changeTargetPathAliases?: # Optional: Map of short alias keys to full repository-root-relative directory paths. Allows `change-target:<alias>` labels to reference deeply nested paths that exceed GitHub's 50-character label limit. When a `change-target:` label's value matches a key in this map, it is expanded to the corresponding full path before confinement checking. Values with leading or trailing slashes are normalized automatically. Example below
|
|
@@ -562,9 +562,9 @@ The main-session stalled section is sent when the session's main output has been
|
|
|
562
562
|
|
|
563
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, finished sub-agents (latest transcript entry `stop_reason` equal to `end_turn` or `stop_sequence`) are skipped, and idle time is taken from the transcript file modification time (following symlinks) while running time is taken from its first entry timestamp; otherwise sub-processes are discovered by matching `subAgentProcessMatchPattern` against process command lines.
|
|
564
564
|
|
|
565
|
-
A per-session cooldown (`silentNotificationCooldownSeconds`) prevents repeated notifications, persisted via the cache. Because the scheduled handler runs once per project but the silent-session monitor inspects the single global set of live tmux sessions, this cooldown is stored in a single project-independent cache scope (a fixed shared path rather than the per-project cache directory). This way the 30-minute cooldown is shared across every per-project pass and a session is notified at most once per cooldown window even when several projects are enabled; all other per-project caches are unaffected. 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. 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.
|
|
565
|
+
A per-session cooldown (`silentNotificationCooldownSeconds`) prevents repeated notifications, persisted via the cache. Because the scheduled handler runs once per project but the silent-session monitor inspects the single global set of live tmux sessions, this cooldown is stored in a single project-independent cache scope (a fixed shared path rather than the per-project cache directory). This way the 30-minute cooldown is shared across every per-project pass and a session is notified at most once per cooldown window even when several projects are enabled; all other per-project caches are unaffected. 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 is a `https://github.com/{owner}/{repo}/issues/{N}` issue URL is notified only while that issue 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 is not a github.com issue URL 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
566
|
|
|
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`, `TDPM_SILENT_NOTIFICATION_COOLDOWN_SECONDS`, `TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS`, `TDPM_SILENT_MAIN_STALLED_MESSAGE`, `TDPM_SILENT_SUBAGENT_MESSAGE_HEADER`, and `TDPM_SILENT_SUBAGENT_MESSAGE_FOOTER`.
|
|
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`, `TDPM_SILENT_NOTIFICATION_COOLDOWN_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
568
|
|
|
569
569
|
## Token Rotation Order File
|
|
570
570
|
|
|
@@ -115,13 +115,13 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
115
115
|
this.handle = async (configFilePath, _verbose) => {
|
|
116
116
|
const configFileContent = fs_1.default.readFileSync(configFilePath, 'utf8');
|
|
117
117
|
const input = yaml_1.default.parse(configFileContent);
|
|
118
|
-
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.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (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 => {
|
|
118
|
+
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.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (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 => {
|
|
119
119
|
const value = input[key];
|
|
120
120
|
if (undefined === value)
|
|
121
121
|
return true;
|
|
122
122
|
return "string" === typeof value;
|
|
123
123
|
}); 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)) {
|
|
124
|
-
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.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (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 => {
|
|
124
|
+
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.silentNotificationCooldownSeconds || "number" === typeof input.silentNotificationCooldownSeconds) && (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 => {
|
|
125
125
|
const value = input[key];
|
|
126
126
|
if (undefined === value)
|
|
127
127
|
return true;
|
|
@@ -298,6 +298,10 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
298
298
|
path: _path + ".silentNotificationStaggerSeconds",
|
|
299
299
|
expected: "(number | undefined)",
|
|
300
300
|
value: input.silentNotificationStaggerSeconds
|
|
301
|
+
}), undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus || _report(_exceptionable, {
|
|
302
|
+
path: _path + ".activeHubTaskStatus",
|
|
303
|
+
expected: "(string | undefined)",
|
|
304
|
+
value: input.activeHubTaskStatus
|
|
301
305
|
}), undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage || _report(_exceptionable, {
|
|
302
306
|
path: _path + ".silentMainStalledMessage",
|
|
303
307
|
expected: "(string | undefined)",
|
|
@@ -785,6 +789,10 @@ class HandleScheduledEventUseCaseHandler {
|
|
|
785
789
|
subAgentRunningThresholdSeconds: readSilentSeconds(mergedInput.subAgentRunningThresholdSeconds, process.env.TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.subAgentRunningThresholdSeconds),
|
|
786
790
|
cooldownSeconds: readSilentSeconds(mergedInput.silentNotificationCooldownSeconds, process.env.TDPM_SILENT_NOTIFICATION_COOLDOWN_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.cooldownSeconds),
|
|
787
791
|
staggerSeconds: readSilentSeconds(mergedInput.silentNotificationStaggerSeconds, process.env.TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS, notifySilentTmuxSessions_1.DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.staggerSeconds),
|
|
792
|
+
activeHubTaskStatus: mergedInput.activeHubTaskStatus ??
|
|
793
|
+
process.env.TDPM_ACTIVE_HUB_TASK_STATUS ??
|
|
794
|
+
null,
|
|
795
|
+
hubTaskStatusResolver: issueRepository,
|
|
788
796
|
messageTemplates: {
|
|
789
797
|
mainStalledMessage: mergedInput.silentMainStalledMessage ??
|
|
790
798
|
process.env.TDPM_SILENT_MAIN_STALLED_MESSAGE ??
|
|
@@ -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,uEAAm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AC/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;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,wGAA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ACJ,CAAC;YACH,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAzjBD,gFAyjBC"}
|
|
@@ -30,19 +30,20 @@ const createSubAgentActivityRepository = (subAgentTranscriptRootDirectory, subAg
|
|
|
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, cacheRepository, ownerCallMarker, subAgentOutputRootDirectory, subAgentProcessMatchPattern, subAgentTranscriptRootDirectory, mainSilentThresholdSeconds, subAgentSilentThresholdSeconds, subAgentRunningThresholdSeconds, cooldownSeconds, staggerSeconds, messageTemplates, now, } = params;
|
|
33
|
+
const { enabled, localCommandRunner, processEnvironReader, cacheRepository, ownerCallMarker, subAgentOutputRootDirectory, subAgentProcessMatchPattern, subAgentTranscriptRootDirectory, mainSilentThresholdSeconds, subAgentSilentThresholdSeconds, subAgentRunningThresholdSeconds, cooldownSeconds, 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());
|
|
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, cacheRepository), messageComposer, new RealSleeper_1.RealSleeper());
|
|
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, cacheRepository), messageComposer, new RealSleeper_1.RealSleeper(), hubTaskStatusResolver);
|
|
40
40
|
await useCase.run({
|
|
41
41
|
mainSilentThresholdSeconds,
|
|
42
42
|
subAgentSilentThresholdSeconds,
|
|
43
43
|
subAgentRunningThresholdSeconds,
|
|
44
44
|
cooldownSeconds,
|
|
45
45
|
staggerSeconds,
|
|
46
|
+
activeHubTaskStatus,
|
|
46
47
|
now,
|
|
47
48
|
});
|
|
48
49
|
};
|
|
@@ -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,8GAQkE;AAClE,sHAAmH;AACnH,sIAAmI;AACnI,8FAA2F;AAC3F,8IAA2I;AAC3I,4HAAyH;AACzH,wHAAqH;AAErH,gHAA6G;AAC7G,4GAAyG;AACzG,kIAA+H;AAC/H,gIAA6H;AAC7H,oIAAiI;AACjI,4FAAyF;AACzF,wHAAqH;AACrH,0HAGqE;AACrE,gEAA6D;AAsB7D,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,CACzC,2BAA2B,EAC3B,GAAG,CACJ,CACF,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAsC,EACvB,EAAE;IACjB,MAAM,EACJ,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,eAAe,E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
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotifySilentLiveSessionsUseCase = exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = exports.DEFAULT_NOTIFICATION_COOLDOWN_SECONDS = exports.DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS = exports.DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS = exports.DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS = void 0;
|
|
3
|
+
exports.NotifySilentLiveSessionsUseCase = exports.parseHubTaskIssueUrlFromSessionName = exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = exports.DEFAULT_NOTIFICATION_COOLDOWN_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
8
|
exports.DEFAULT_NOTIFICATION_COOLDOWN_SECONDS = 30 * 60;
|
|
9
9
|
exports.DEFAULT_NOTIFICATION_STAGGER_SECONDS = 25;
|
|
10
|
+
const GITHUB_ISSUE_URL_PATTERN = /^https:\/\/github\.com\/[^/]+\/[^/]+\/issues\/\d+$/;
|
|
11
|
+
const parseHubTaskIssueUrlFromSessionName = (sessionName) => {
|
|
12
|
+
return GITHUB_ISSUE_URL_PATTERN.test(sessionName) ? sessionName : null;
|
|
13
|
+
};
|
|
14
|
+
exports.parseHubTaskIssueUrlFromSessionName = parseHubTaskIssueUrlFromSessionName;
|
|
10
15
|
class NotifySilentLiveSessionsUseCase {
|
|
11
|
-
constructor(liveSessionProcessSnapshotProvider, interactiveLiveSessionTranscriptResolver, sessionOutputActivityRepository, subAgentActivityRepository, ownerCallStatusProvider, notificationRepository, messageComposer, sleeper) {
|
|
16
|
+
constructor(liveSessionProcessSnapshotProvider, interactiveLiveSessionTranscriptResolver, sessionOutputActivityRepository, subAgentActivityRepository, ownerCallStatusProvider, notificationRepository, messageComposer, sleeper, hubTaskStatusResolver = null) {
|
|
12
17
|
this.liveSessionProcessSnapshotProvider = liveSessionProcessSnapshotProvider;
|
|
13
18
|
this.interactiveLiveSessionTranscriptResolver = interactiveLiveSessionTranscriptResolver;
|
|
14
19
|
this.sessionOutputActivityRepository = sessionOutputActivityRepository;
|
|
@@ -17,6 +22,7 @@ class NotifySilentLiveSessionsUseCase {
|
|
|
17
22
|
this.notificationRepository = notificationRepository;
|
|
18
23
|
this.messageComposer = messageComposer;
|
|
19
24
|
this.sleeper = sleeper;
|
|
25
|
+
this.hubTaskStatusResolver = hubTaskStatusResolver;
|
|
20
26
|
this.resolveInteractiveLiveSessions = new ResolveInteractiveLiveSessionsUseCase_1.ResolveInteractiveLiveSessionsUseCase();
|
|
21
27
|
this.run = async (params) => {
|
|
22
28
|
const snapshot = await this.liveSessionProcessSnapshotProvider.getSnapshot();
|
|
@@ -45,6 +51,9 @@ class NotifySilentLiveSessionsUseCase {
|
|
|
45
51
|
console.log(`Skipping ${candidate.sessionName}: notified ${nowEpochSeconds - lastNotifiedEpochSeconds} seconds ago, within cooldown ${params.cooldownSeconds} seconds.`);
|
|
46
52
|
continue;
|
|
47
53
|
}
|
|
54
|
+
if (!(await this.isHubTaskActive(candidate.sessionName, params.activeHubTaskStatus))) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
48
57
|
if (sentCount > 0) {
|
|
49
58
|
await this.sleeper.sleep(params.staggerSeconds * 1000);
|
|
50
59
|
}
|
|
@@ -54,6 +63,31 @@ class NotifySilentLiveSessionsUseCase {
|
|
|
54
63
|
console.log(`Notified ${candidate.sessionName}.`);
|
|
55
64
|
}
|
|
56
65
|
};
|
|
66
|
+
this.isHubTaskActive = async (sessionName, activeHubTaskStatus) => {
|
|
67
|
+
if (activeHubTaskStatus === null || this.hubTaskStatusResolver === null) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
const hubTaskIssueUrl = (0, exports.parseHubTaskIssueUrlFromSessionName)(sessionName);
|
|
71
|
+
if (hubTaskIssueUrl === null) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
const issue = await this.hubTaskStatusResolver.getIssueByUrl(hubTaskIssueUrl);
|
|
76
|
+
if (issue === null) {
|
|
77
|
+
console.warn(`Hub task ${hubTaskIssueUrl} for session ${sessionName} could not be resolved; sending notification (fail-open).`);
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
if (issue.state !== 'OPEN' || issue.status !== activeHubTaskStatus) {
|
|
81
|
+
console.log(`Skipping ${sessionName}: hub task ${hubTaskIssueUrl} is no longer active (state "${issue.state}", status "${issue.status ?? 'null'}", active status "${activeHubTaskStatus}").`);
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
console.warn(`Failed to resolve hub task status for session ${sessionName} (${hubTaskIssueUrl}); sending notification (fail-open): ${error instanceof Error ? error.message : String(error)}`);
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
57
91
|
this.collectSnapshots = async (interactiveSessions, transcriptPathBySessionName, now) => {
|
|
58
92
|
const sessionNames = interactiveSessions.map((session) => session.sessionName);
|
|
59
93
|
const activities = await this.sessionOutputActivityRepository.listSessionOutputActivities(transcriptPathBySessionName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotifySilentLiveSessionsUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/NotifySilentLiveSessionsUseCase.ts"],"names":[],"mappings":";;;
|
|
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,qCAAqC,GAAG,EAAE,GAAG,EAAE,CAAC;AAChD,QAAA,oCAAoC,GAAG,EAAE,CAAC;AAEvD,MAAM,wBAAwB,GAC5B,oDAAoD,CAAC;AAEhD,MAAM,mCAAmC,GAAG,CACjD,WAAmB,EACJ,EAAE;IACjB,OAAO,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;AACzE,CAAC,CAAC;AAJW,QAAA,mCAAmC,uCAI9C;AASF,MAAa,+BAA+B;IAI1C,YACmB,kCAAsE,EACtE,wCAAkF,EAClF,+BAAgE,EAChE,0BAA6D,EAC7D,uBAAgD,EAChD,sBAA2D,EAC3D,eAA6C,EAC7C,OAAgB,EAChB,wBAAsD,IAAI;QAR1D,uCAAkC,GAAlC,kCAAkC,CAAoC;QACtE,6CAAwC,GAAxC,wCAAwC,CAA0C;QAClF,oCAA+B,GAA/B,+BAA+B,CAAiC;QAChE,+BAA0B,GAA1B,0BAA0B,CAAmC;QAC7D,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,2BAAsB,GAAtB,sBAAsB,CAAqC;QAC3D,oBAAe,GAAf,eAAe,CAA8B;QAC7C,YAAO,GAAP,OAAO,CAAS;QAChB,0BAAqB,GAArB,qBAAqB,CAAqC;QAZ5D,mCAA8B,GAC7C,IAAI,6EAAqC,EAAE,CAAC;QAc9C,QAAG,GAAG,KAAK,EAAE,MAQZ,EAAiB,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CACX,IAAI,CAAC,eAAe,CAAC,yBAAyB,CAC5C,QAAQ,CAAC,iBAAiB,CAC3B,CACF,CAAC;YACJ,CAAC;YAED,MAAM,gBAAgB,GAAG,QAAQ,CAAC,SAAS,CAAC,MAAM,CAChD,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,aAAa,IAAI,UAAU,CAAC,8BAA8B;gBACnE,QAAQ,CAAC,cAAc,IAAI,UAAU,CAAC,+BAA+B,CACxE,CAAC;YACF,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChC,QAAQ,CAAC,IAAI,CACX,IAAI,CAAC,eAAe,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAC9D,CAAC;YACJ,CAAC;YAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC1B,OAAO,IAAI,CAAC;YACd,CAAC;YACD,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC;IAjNC,CAAC;CAkNL;AAhOD,0EAgOC"}
|
package/package.json
CHANGED
|
@@ -127,6 +127,7 @@ export class HandleScheduledEventUseCaseHandler {
|
|
|
127
127
|
subAgentRunningThresholdSeconds?: number;
|
|
128
128
|
silentNotificationCooldownSeconds?: number;
|
|
129
129
|
silentNotificationStaggerSeconds?: number;
|
|
130
|
+
activeHubTaskStatus?: string;
|
|
130
131
|
silentMainStalledMessage?: string;
|
|
131
132
|
silentSubAgentMessageHeader?: string;
|
|
132
133
|
silentSubAgentMessageFooter?: string;
|
|
@@ -628,6 +629,11 @@ export class HandleScheduledEventUseCaseHandler {
|
|
|
628
629
|
process.env.TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS,
|
|
629
630
|
DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS.staggerSeconds,
|
|
630
631
|
),
|
|
632
|
+
activeHubTaskStatus:
|
|
633
|
+
mergedInput.activeHubTaskStatus ??
|
|
634
|
+
process.env.TDPM_ACTIVE_HUB_TASK_STATUS ??
|
|
635
|
+
null,
|
|
636
|
+
hubTaskStatusResolver: issueRepository,
|
|
631
637
|
messageTemplates: {
|
|
632
638
|
mainStalledMessage:
|
|
633
639
|
mergedInput.silentMainStalledMessage ??
|
|
@@ -6,6 +6,7 @@ import { ProcessEnvironReader } from '../../../domain/usecases/adapter-interface
|
|
|
6
6
|
import { LocalStorageCacheRepository } from '../../repositories/LocalStorageCacheRepository';
|
|
7
7
|
import { LocalStorageRepository } from '../../repositories/LocalStorageRepository';
|
|
8
8
|
import { SilentSessionMessageTemplates } from '../../repositories/ConfigurableSilentSessionMessageComposer';
|
|
9
|
+
import { Issue } from '../../../domain/entities/Issue';
|
|
9
10
|
import { SILENT_SESSION_REMINDER_SENTINEL } from '../../../domain/usecases/silentSessionReminderSentinel';
|
|
10
11
|
import {
|
|
11
12
|
notifySilentTmuxSessions,
|
|
@@ -130,6 +131,8 @@ describe('notifySilentTmuxSessions', () => {
|
|
|
130
131
|
subAgentOutputRootDirectory: null,
|
|
131
132
|
subAgentProcessMatchPattern: null,
|
|
132
133
|
subAgentTranscriptRootDirectory: null,
|
|
134
|
+
activeHubTaskStatus: null,
|
|
135
|
+
hubTaskStatusResolver: null,
|
|
133
136
|
messageTemplates: EMPTY_TEMPLATES,
|
|
134
137
|
now: NOW,
|
|
135
138
|
...DEFAULT_NOTIFY_SILENT_TMUX_SESSIONS_PARAMS,
|
|
@@ -266,6 +269,123 @@ describe('notifySilentTmuxSessions', () => {
|
|
|
266
269
|
expect(secondSendCall).toBeUndefined();
|
|
267
270
|
});
|
|
268
271
|
|
|
272
|
+
const HUB_TASK_SESSION_NAME =
|
|
273
|
+
'https://github.com/HiromiShikata/repo/issues/42';
|
|
274
|
+
|
|
275
|
+
const writeUrlSessionTranscript = (): void => {
|
|
276
|
+
const projectDirectory = path.join(configDir, 'projects', '-home-user');
|
|
277
|
+
fs.mkdirSync(projectDirectory, { recursive: true });
|
|
278
|
+
const silentTimestamp = new Date(
|
|
279
|
+
(NOW_EPOCH_SECONDS - 11 * 60) * 1000,
|
|
280
|
+
).toISOString();
|
|
281
|
+
fs.writeFileSync(
|
|
282
|
+
path.join(projectDirectory, `${SESSION_ID}.jsonl`),
|
|
283
|
+
JSON.stringify({
|
|
284
|
+
type: 'assistant',
|
|
285
|
+
timestamp: silentTimestamp,
|
|
286
|
+
message: {
|
|
287
|
+
role: 'assistant',
|
|
288
|
+
content: [{ type: 'text', text: 'progress update' }],
|
|
289
|
+
},
|
|
290
|
+
}),
|
|
291
|
+
'utf8',
|
|
292
|
+
);
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
const urlSessionRunner = (): Mocked<LocalCommandRunner> => {
|
|
296
|
+
const runner = createMockRunner();
|
|
297
|
+
runner.runCommand.mockImplementation(async (program, args) => {
|
|
298
|
+
if (program === 'tmux' && args[0] === 'list-sessions') {
|
|
299
|
+
return {
|
|
300
|
+
stdout: `${HUB_TASK_SESSION_NAME}\n`,
|
|
301
|
+
stderr: '',
|
|
302
|
+
exitCode: 0,
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
if (program === 'tmux' && args[0] === 'list-panes') {
|
|
306
|
+
return { stdout: `${PANE_PID}\n`, stderr: '', exitCode: 0 };
|
|
307
|
+
}
|
|
308
|
+
if (program === 'ps') {
|
|
309
|
+
return {
|
|
310
|
+
stdout: ` ${PANE_PID} 1 shell\n ${CLAUDE_PID} ${PANE_PID} claude --name ${HUB_TASK_SESSION_NAME}\n`,
|
|
311
|
+
stderr: '',
|
|
312
|
+
exitCode: 0,
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
return { stdout: '', stderr: '', exitCode: 0 };
|
|
316
|
+
});
|
|
317
|
+
return runner;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
const makeIssue = (overrides: {
|
|
321
|
+
state: Issue['state'];
|
|
322
|
+
status: string | null;
|
|
323
|
+
}): Issue => ({
|
|
324
|
+
nameWithOwner: 'HiromiShikata/repo',
|
|
325
|
+
number: 42,
|
|
326
|
+
title: 'Hub task',
|
|
327
|
+
state: overrides.state,
|
|
328
|
+
status: overrides.status,
|
|
329
|
+
story: null,
|
|
330
|
+
nextActionDate: null,
|
|
331
|
+
nextActionHour: null,
|
|
332
|
+
estimationMinutes: null,
|
|
333
|
+
dependedIssueUrls: [],
|
|
334
|
+
completionDate50PercentConfidence: null,
|
|
335
|
+
url: HUB_TASK_SESSION_NAME,
|
|
336
|
+
assignees: [],
|
|
337
|
+
labels: [],
|
|
338
|
+
org: 'HiromiShikata',
|
|
339
|
+
repo: 'repo',
|
|
340
|
+
body: '',
|
|
341
|
+
itemId: 'item-id',
|
|
342
|
+
isPr: false,
|
|
343
|
+
isInProgress: false,
|
|
344
|
+
isClosed: overrides.state !== 'OPEN',
|
|
345
|
+
createdAt: NOW,
|
|
346
|
+
author: 'HiromiShikata',
|
|
347
|
+
closingIssueReferenceUrls: [],
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
it('skips a URL-named session whose hub task is no longer in the active status', async () => {
|
|
351
|
+
writeUrlSessionTranscript();
|
|
352
|
+
const runner = urlSessionRunner();
|
|
353
|
+
const getIssueByUrl = jest
|
|
354
|
+
.fn()
|
|
355
|
+
.mockResolvedValue(makeIssue({ state: 'OPEN', status: 'Todo' }));
|
|
356
|
+
|
|
357
|
+
await notifySilentTmuxSessions({
|
|
358
|
+
...baseParams(runner),
|
|
359
|
+
activeHubTaskStatus: 'In tmux',
|
|
360
|
+
hubTaskStatusResolver: { getIssueByUrl },
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
expect(getIssueByUrl).toHaveBeenCalledWith(HUB_TASK_SESSION_NAME);
|
|
364
|
+
const sendCall = runner.runCommand.mock.calls.find(
|
|
365
|
+
(call) => call[0] === 'tmux' && call[1][0] === 'send-keys',
|
|
366
|
+
);
|
|
367
|
+
expect(sendCall).toBeUndefined();
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
it('sends to a URL-named session whose hub task is in the active status', async () => {
|
|
371
|
+
writeUrlSessionTranscript();
|
|
372
|
+
const runner = urlSessionRunner();
|
|
373
|
+
const getIssueByUrl = jest
|
|
374
|
+
.fn()
|
|
375
|
+
.mockResolvedValue(makeIssue({ state: 'OPEN', status: 'In tmux' }));
|
|
376
|
+
|
|
377
|
+
await notifySilentTmuxSessions({
|
|
378
|
+
...baseParams(runner),
|
|
379
|
+
activeHubTaskStatus: 'In tmux',
|
|
380
|
+
hubTaskStatusResolver: { getIssueByUrl },
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
const sendCall = runner.runCommand.mock.calls.find(
|
|
384
|
+
(call) => call[0] === 'tmux' && call[1][0] === 'send-keys',
|
|
385
|
+
);
|
|
386
|
+
expect(sendCall?.[1][2]).toBe(HUB_TASK_SESSION_NAME);
|
|
387
|
+
});
|
|
388
|
+
|
|
269
389
|
it('re-sends within the cooldown window when each project pass uses its own cache scope', async () => {
|
|
270
390
|
silentAssistantTranscript();
|
|
271
391
|
// This reproduces the per-project cooldown defect: when each project pass
|
|
@@ -4,6 +4,7 @@ import { OwnerCallStatusProvider } from '../../../domain/usecases/adapter-interf
|
|
|
4
4
|
import { ProcessEnvironReader } from '../../../domain/usecases/adapter-interfaces/ProcessEnvironReader';
|
|
5
5
|
import {
|
|
6
6
|
NotifySilentLiveSessionsUseCase,
|
|
7
|
+
HubTaskStatusResolver,
|
|
7
8
|
DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
|
|
8
9
|
DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS,
|
|
9
10
|
DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
|
|
@@ -44,6 +45,8 @@ export type NotifySilentTmuxSessionsParams = {
|
|
|
44
45
|
subAgentRunningThresholdSeconds: number;
|
|
45
46
|
cooldownSeconds: number;
|
|
46
47
|
staggerSeconds: number;
|
|
48
|
+
activeHubTaskStatus: string | null;
|
|
49
|
+
hubTaskStatusResolver: HubTaskStatusResolver | null;
|
|
47
50
|
messageTemplates: SilentSessionMessageTemplates;
|
|
48
51
|
now: Date;
|
|
49
52
|
};
|
|
@@ -99,6 +102,8 @@ export const notifySilentTmuxSessions = async (
|
|
|
99
102
|
subAgentRunningThresholdSeconds,
|
|
100
103
|
cooldownSeconds,
|
|
101
104
|
staggerSeconds,
|
|
105
|
+
activeHubTaskStatus,
|
|
106
|
+
hubTaskStatusResolver,
|
|
102
107
|
messageTemplates,
|
|
103
108
|
now,
|
|
104
109
|
} = params;
|
|
@@ -133,6 +138,7 @@ export const notifySilentTmuxSessions = async (
|
|
|
133
138
|
),
|
|
134
139
|
messageComposer,
|
|
135
140
|
new RealSleeper(),
|
|
141
|
+
hubTaskStatusResolver,
|
|
136
142
|
);
|
|
137
143
|
await useCase.run({
|
|
138
144
|
mainSilentThresholdSeconds,
|
|
@@ -140,6 +146,7 @@ export const notifySilentTmuxSessions = async (
|
|
|
140
146
|
subAgentRunningThresholdSeconds,
|
|
141
147
|
cooldownSeconds,
|
|
142
148
|
staggerSeconds,
|
|
149
|
+
activeHubTaskStatus,
|
|
143
150
|
now,
|
|
144
151
|
});
|
|
145
152
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NotifySilentLiveSessionsUseCase,
|
|
3
|
+
HubTaskStatusResolver,
|
|
4
|
+
parseHubTaskIssueUrlFromSessionName,
|
|
3
5
|
DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
|
|
4
6
|
DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS,
|
|
5
7
|
DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
|
|
6
8
|
DEFAULT_NOTIFICATION_COOLDOWN_SECONDS,
|
|
7
9
|
DEFAULT_NOTIFICATION_STAGGER_SECONDS,
|
|
8
10
|
} from './NotifySilentLiveSessionsUseCase';
|
|
11
|
+
import { Issue } from '../entities/Issue';
|
|
9
12
|
import { LiveSessionProcessSnapshotProvider } from './adapter-interfaces/LiveSessionProcessSnapshotProvider';
|
|
10
13
|
import { InteractiveLiveSessionTranscriptResolver } from './adapter-interfaces/InteractiveLiveSessionTranscriptResolver';
|
|
11
14
|
import { SessionOutputActivityRepository } from './adapter-interfaces/SessionOutputActivityRepository';
|
|
@@ -33,15 +36,19 @@ describe('NotifySilentLiveSessionsUseCase', () => {
|
|
|
33
36
|
let mockNotificationRepository: Mocked<SilentSessionNotificationRepository>;
|
|
34
37
|
let mockMessageComposer: Mocked<SilentSessionMessageComposer>;
|
|
35
38
|
let mockSleeper: Mocked<Sleeper>;
|
|
39
|
+
let mockHubTaskStatusResolver: Mocked<HubTaskStatusResolver>;
|
|
36
40
|
const now = new Date('2026-06-26T00:00:00Z');
|
|
37
41
|
const nowEpochSeconds = Math.floor(now.getTime() / 1000);
|
|
38
42
|
|
|
39
|
-
const runParams = (
|
|
43
|
+
const runParams = (
|
|
44
|
+
overrides?: Partial<{ activeHubTaskStatus: string | null }>,
|
|
45
|
+
): {
|
|
40
46
|
mainSilentThresholdSeconds: number;
|
|
41
47
|
subAgentSilentThresholdSeconds: number;
|
|
42
48
|
subAgentRunningThresholdSeconds: number;
|
|
43
49
|
cooldownSeconds: number;
|
|
44
50
|
staggerSeconds: number;
|
|
51
|
+
activeHubTaskStatus: string | null;
|
|
45
52
|
now: Date;
|
|
46
53
|
} => ({
|
|
47
54
|
mainSilentThresholdSeconds: DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
|
|
@@ -49,7 +56,9 @@ describe('NotifySilentLiveSessionsUseCase', () => {
|
|
|
49
56
|
subAgentRunningThresholdSeconds: DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS,
|
|
50
57
|
cooldownSeconds: DEFAULT_NOTIFICATION_COOLDOWN_SECONDS,
|
|
51
58
|
staggerSeconds: DEFAULT_NOTIFICATION_STAGGER_SECONDS,
|
|
59
|
+
activeHubTaskStatus: null,
|
|
52
60
|
now,
|
|
61
|
+
...overrides,
|
|
53
62
|
});
|
|
54
63
|
|
|
55
64
|
const emptySnapshot: LiveSessionProcessSnapshot = {
|
|
@@ -131,6 +140,9 @@ describe('NotifySilentLiveSessionsUseCase', () => {
|
|
|
131
140
|
mockSleeper = {
|
|
132
141
|
sleep: jest.fn().mockResolvedValue(undefined),
|
|
133
142
|
};
|
|
143
|
+
mockHubTaskStatusResolver = {
|
|
144
|
+
getIssueByUrl: jest.fn().mockResolvedValue(null),
|
|
145
|
+
};
|
|
134
146
|
useCase = new NotifySilentLiveSessionsUseCase(
|
|
135
147
|
mockSnapshotProvider,
|
|
136
148
|
mockTranscriptResolver,
|
|
@@ -140,9 +152,51 @@ describe('NotifySilentLiveSessionsUseCase', () => {
|
|
|
140
152
|
mockNotificationRepository,
|
|
141
153
|
mockMessageComposer,
|
|
142
154
|
mockSleeper,
|
|
155
|
+
mockHubTaskStatusResolver,
|
|
143
156
|
);
|
|
144
157
|
});
|
|
145
158
|
|
|
159
|
+
const issueFor = (overrides: Partial<Issue>): Issue => ({
|
|
160
|
+
nameWithOwner: 'HiromiShikata/repo',
|
|
161
|
+
number: 42,
|
|
162
|
+
title: 'Hub task',
|
|
163
|
+
state: 'OPEN',
|
|
164
|
+
status: 'In tmux',
|
|
165
|
+
story: null,
|
|
166
|
+
nextActionDate: null,
|
|
167
|
+
nextActionHour: null,
|
|
168
|
+
estimationMinutes: null,
|
|
169
|
+
dependedIssueUrls: [],
|
|
170
|
+
completionDate50PercentConfidence: null,
|
|
171
|
+
url: 'https://github.com/HiromiShikata/repo/issues/42',
|
|
172
|
+
assignees: [],
|
|
173
|
+
labels: [],
|
|
174
|
+
org: 'HiromiShikata',
|
|
175
|
+
repo: 'repo',
|
|
176
|
+
body: '',
|
|
177
|
+
itemId: 'item-id',
|
|
178
|
+
isPr: false,
|
|
179
|
+
isInProgress: false,
|
|
180
|
+
isClosed: false,
|
|
181
|
+
createdAt: now,
|
|
182
|
+
author: 'HiromiShikata',
|
|
183
|
+
closingIssueReferenceUrls: [],
|
|
184
|
+
...overrides,
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
const setupSilentMainSession = (sessionName: string): void => {
|
|
188
|
+
setupLiveInteractiveSession(sessionName);
|
|
189
|
+
mockSessionOutputActivityRepository.listSessionOutputActivities.mockResolvedValue(
|
|
190
|
+
[
|
|
191
|
+
{
|
|
192
|
+
sessionName,
|
|
193
|
+
lastOutputEpochSeconds:
|
|
194
|
+
nowEpochSeconds - DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS,
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
);
|
|
198
|
+
};
|
|
199
|
+
|
|
146
200
|
const setupLiveInteractiveSession = (sessionName: string): void => {
|
|
147
201
|
mockSnapshotProvider.getSnapshot.mockResolvedValue(
|
|
148
202
|
snapshotWithSessions([sessionName]),
|
|
@@ -406,6 +460,139 @@ describe('NotifySilentLiveSessionsUseCase', () => {
|
|
|
406
460
|
await expect(useCase.run(runParams())).rejects.toThrow('send-keys failed');
|
|
407
461
|
});
|
|
408
462
|
|
|
463
|
+
describe('hub-task active-status pre-send gate', () => {
|
|
464
|
+
const HUB_TASK_SESSION = 'https://github.com/HiromiShikata/repo/issues/42';
|
|
465
|
+
const ACTIVE_STATUS = 'In tmux';
|
|
466
|
+
|
|
467
|
+
it('sends when the hub task is open and in the active status', async () => {
|
|
468
|
+
setupSilentMainSession(HUB_TASK_SESSION);
|
|
469
|
+
mockHubTaskStatusResolver.getIssueByUrl.mockResolvedValue(
|
|
470
|
+
issueFor({
|
|
471
|
+
url: HUB_TASK_SESSION,
|
|
472
|
+
state: 'OPEN',
|
|
473
|
+
status: ACTIVE_STATUS,
|
|
474
|
+
}),
|
|
475
|
+
);
|
|
476
|
+
|
|
477
|
+
await useCase.run(runParams({ activeHubTaskStatus: ACTIVE_STATUS }));
|
|
478
|
+
|
|
479
|
+
expect(mockHubTaskStatusResolver.getIssueByUrl).toHaveBeenCalledWith(
|
|
480
|
+
HUB_TASK_SESSION,
|
|
481
|
+
);
|
|
482
|
+
expect(
|
|
483
|
+
mockNotificationRepository.sendSelfCheckNotification,
|
|
484
|
+
).toHaveBeenCalledWith(HUB_TASK_SESSION, MAIN_STALLED_SECTION);
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
it('skips when the hub task status differs from the active status', async () => {
|
|
488
|
+
setupSilentMainSession(HUB_TASK_SESSION);
|
|
489
|
+
mockHubTaskStatusResolver.getIssueByUrl.mockResolvedValue(
|
|
490
|
+
issueFor({ url: HUB_TASK_SESSION, state: 'OPEN', status: 'Todo' }),
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
await useCase.run(runParams({ activeHubTaskStatus: ACTIVE_STATUS }));
|
|
494
|
+
|
|
495
|
+
expect(
|
|
496
|
+
mockNotificationRepository.sendSelfCheckNotification,
|
|
497
|
+
).not.toHaveBeenCalled();
|
|
498
|
+
});
|
|
499
|
+
|
|
500
|
+
it('skips when the hub task issue is closed', async () => {
|
|
501
|
+
setupSilentMainSession(HUB_TASK_SESSION);
|
|
502
|
+
mockHubTaskStatusResolver.getIssueByUrl.mockResolvedValue(
|
|
503
|
+
issueFor({
|
|
504
|
+
url: HUB_TASK_SESSION,
|
|
505
|
+
state: 'CLOSED',
|
|
506
|
+
status: ACTIVE_STATUS,
|
|
507
|
+
isClosed: true,
|
|
508
|
+
}),
|
|
509
|
+
);
|
|
510
|
+
|
|
511
|
+
await useCase.run(runParams({ activeHubTaskStatus: ACTIVE_STATUS }));
|
|
512
|
+
|
|
513
|
+
expect(
|
|
514
|
+
mockNotificationRepository.sendSelfCheckNotification,
|
|
515
|
+
).not.toHaveBeenCalled();
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
it('leaves a non-URL session name unchecked and sends as before', async () => {
|
|
519
|
+
setupSilentMainSession('workbench');
|
|
520
|
+
|
|
521
|
+
await useCase.run(runParams({ activeHubTaskStatus: ACTIVE_STATUS }));
|
|
522
|
+
|
|
523
|
+
expect(mockHubTaskStatusResolver.getIssueByUrl).not.toHaveBeenCalled();
|
|
524
|
+
expect(
|
|
525
|
+
mockNotificationRepository.sendSelfCheckNotification,
|
|
526
|
+
).toHaveBeenCalledWith('workbench', MAIN_STALLED_SECTION);
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
it('does not call the resolver at all when the active status is unconfigured', async () => {
|
|
530
|
+
setupSilentMainSession(HUB_TASK_SESSION);
|
|
531
|
+
|
|
532
|
+
await useCase.run(runParams({ activeHubTaskStatus: null }));
|
|
533
|
+
|
|
534
|
+
expect(mockHubTaskStatusResolver.getIssueByUrl).not.toHaveBeenCalled();
|
|
535
|
+
expect(
|
|
536
|
+
mockNotificationRepository.sendSelfCheckNotification,
|
|
537
|
+
).toHaveBeenCalledWith(HUB_TASK_SESSION, MAIN_STALLED_SECTION);
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
it('fails open and logs a warning when status resolution throws', async () => {
|
|
541
|
+
setupSilentMainSession(HUB_TASK_SESSION);
|
|
542
|
+
const warnSpy = jest
|
|
543
|
+
.spyOn(console, 'warn')
|
|
544
|
+
.mockImplementation(() => undefined);
|
|
545
|
+
mockHubTaskStatusResolver.getIssueByUrl.mockRejectedValue(
|
|
546
|
+
new Error('GitHub API timeout'),
|
|
547
|
+
);
|
|
548
|
+
|
|
549
|
+
await useCase.run(runParams({ activeHubTaskStatus: ACTIVE_STATUS }));
|
|
550
|
+
|
|
551
|
+
expect(
|
|
552
|
+
mockNotificationRepository.sendSelfCheckNotification,
|
|
553
|
+
).toHaveBeenCalledWith(HUB_TASK_SESSION, MAIN_STALLED_SECTION);
|
|
554
|
+
expect(warnSpy).toHaveBeenCalledWith(
|
|
555
|
+
expect.stringContaining('fail-open'),
|
|
556
|
+
);
|
|
557
|
+
warnSpy.mockRestore();
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
it('fails open and logs a warning when the hub task cannot be resolved', async () => {
|
|
561
|
+
setupSilentMainSession(HUB_TASK_SESSION);
|
|
562
|
+
const warnSpy = jest
|
|
563
|
+
.spyOn(console, 'warn')
|
|
564
|
+
.mockImplementation(() => undefined);
|
|
565
|
+
mockHubTaskStatusResolver.getIssueByUrl.mockResolvedValue(null);
|
|
566
|
+
|
|
567
|
+
await useCase.run(runParams({ activeHubTaskStatus: ACTIVE_STATUS }));
|
|
568
|
+
|
|
569
|
+
expect(
|
|
570
|
+
mockNotificationRepository.sendSelfCheckNotification,
|
|
571
|
+
).toHaveBeenCalledWith(HUB_TASK_SESSION, MAIN_STALLED_SECTION);
|
|
572
|
+
expect(warnSpy).toHaveBeenCalledWith(
|
|
573
|
+
expect.stringContaining('fail-open'),
|
|
574
|
+
);
|
|
575
|
+
warnSpy.mockRestore();
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
it('parses a github.com issue URL session name and rejects other names', () => {
|
|
579
|
+
expect(parseHubTaskIssueUrlFromSessionName(HUB_TASK_SESSION)).toBe(
|
|
580
|
+
HUB_TASK_SESSION,
|
|
581
|
+
);
|
|
582
|
+
expect(parseHubTaskIssueUrlFromSessionName('workbench')).toBeNull();
|
|
583
|
+
expect(
|
|
584
|
+
parseHubTaskIssueUrlFromSessionName(
|
|
585
|
+
'https://github.com/HiromiShikata/repo/pull/42',
|
|
586
|
+
),
|
|
587
|
+
).toBeNull();
|
|
588
|
+
expect(
|
|
589
|
+
parseHubTaskIssueUrlFromSessionName(
|
|
590
|
+
'https://example.com/HiromiShikata/repo/issues/42',
|
|
591
|
+
),
|
|
592
|
+
).toBeNull();
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
|
|
409
596
|
it('uses the session entity helper for type completeness', () => {
|
|
410
597
|
expect(sessionFor('workbench')).toEqual({
|
|
411
598
|
sessionName: 'workbench',
|
|
@@ -8,6 +8,7 @@ import { SessionSubAgentActivityRepository } from './adapter-interfaces/SessionS
|
|
|
8
8
|
import { SilentSessionMessageComposer } from './adapter-interfaces/SilentSessionMessageComposer';
|
|
9
9
|
import { SilentSessionNotificationRepository } from './adapter-interfaces/SilentSessionNotificationRepository';
|
|
10
10
|
import { Sleeper } from './adapter-interfaces/Sleeper';
|
|
11
|
+
import { IssueRepository } from './adapter-interfaces/IssueRepository';
|
|
11
12
|
import { ResolveInteractiveLiveSessionsUseCase } from './ResolveInteractiveLiveSessionsUseCase';
|
|
12
13
|
|
|
13
14
|
export const DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS = 10 * 60;
|
|
@@ -16,6 +17,17 @@ export const DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS = 15 * 60;
|
|
|
16
17
|
export const DEFAULT_NOTIFICATION_COOLDOWN_SECONDS = 30 * 60;
|
|
17
18
|
export const DEFAULT_NOTIFICATION_STAGGER_SECONDS = 25;
|
|
18
19
|
|
|
20
|
+
const GITHUB_ISSUE_URL_PATTERN =
|
|
21
|
+
/^https:\/\/github\.com\/[^/]+\/[^/]+\/issues\/\d+$/;
|
|
22
|
+
|
|
23
|
+
export const parseHubTaskIssueUrlFromSessionName = (
|
|
24
|
+
sessionName: string,
|
|
25
|
+
): string | null => {
|
|
26
|
+
return GITHUB_ISSUE_URL_PATTERN.test(sessionName) ? sessionName : null;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type HubTaskStatusResolver = Pick<IssueRepository, 'getIssueByUrl'>;
|
|
30
|
+
|
|
19
31
|
type NotifyCandidate = {
|
|
20
32
|
sessionName: string;
|
|
21
33
|
message: string;
|
|
@@ -34,6 +46,7 @@ export class NotifySilentLiveSessionsUseCase {
|
|
|
34
46
|
private readonly notificationRepository: SilentSessionNotificationRepository,
|
|
35
47
|
private readonly messageComposer: SilentSessionMessageComposer,
|
|
36
48
|
private readonly sleeper: Sleeper,
|
|
49
|
+
private readonly hubTaskStatusResolver: HubTaskStatusResolver | null = null,
|
|
37
50
|
) {}
|
|
38
51
|
|
|
39
52
|
run = async (params: {
|
|
@@ -42,6 +55,7 @@ export class NotifySilentLiveSessionsUseCase {
|
|
|
42
55
|
subAgentRunningThresholdSeconds: number;
|
|
43
56
|
cooldownSeconds: number;
|
|
44
57
|
staggerSeconds: number;
|
|
58
|
+
activeHubTaskStatus: string | null;
|
|
45
59
|
now: Date;
|
|
46
60
|
}): Promise<void> => {
|
|
47
61
|
const snapshot =
|
|
@@ -96,6 +110,14 @@ export class NotifySilentLiveSessionsUseCase {
|
|
|
96
110
|
);
|
|
97
111
|
continue;
|
|
98
112
|
}
|
|
113
|
+
if (
|
|
114
|
+
!(await this.isHubTaskActive(
|
|
115
|
+
candidate.sessionName,
|
|
116
|
+
params.activeHubTaskStatus,
|
|
117
|
+
))
|
|
118
|
+
) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
99
121
|
if (sentCount > 0) {
|
|
100
122
|
await this.sleeper.sleep(params.staggerSeconds * 1000);
|
|
101
123
|
}
|
|
@@ -112,6 +134,43 @@ export class NotifySilentLiveSessionsUseCase {
|
|
|
112
134
|
}
|
|
113
135
|
};
|
|
114
136
|
|
|
137
|
+
private isHubTaskActive = async (
|
|
138
|
+
sessionName: string,
|
|
139
|
+
activeHubTaskStatus: string | null,
|
|
140
|
+
): Promise<boolean> => {
|
|
141
|
+
if (activeHubTaskStatus === null || this.hubTaskStatusResolver === null) {
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
const hubTaskIssueUrl = parseHubTaskIssueUrlFromSessionName(sessionName);
|
|
145
|
+
if (hubTaskIssueUrl === null) {
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
try {
|
|
149
|
+
const issue =
|
|
150
|
+
await this.hubTaskStatusResolver.getIssueByUrl(hubTaskIssueUrl);
|
|
151
|
+
if (issue === null) {
|
|
152
|
+
console.warn(
|
|
153
|
+
`Hub task ${hubTaskIssueUrl} for session ${sessionName} could not be resolved; sending notification (fail-open).`,
|
|
154
|
+
);
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
if (issue.state !== 'OPEN' || issue.status !== activeHubTaskStatus) {
|
|
158
|
+
console.log(
|
|
159
|
+
`Skipping ${sessionName}: hub task ${hubTaskIssueUrl} is no longer active (state "${issue.state}", status "${issue.status ?? 'null'}", active status "${activeHubTaskStatus}").`,
|
|
160
|
+
);
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
return true;
|
|
164
|
+
} catch (error) {
|
|
165
|
+
console.warn(
|
|
166
|
+
`Failed to resolve hub task status for session ${sessionName} (${hubTaskIssueUrl}); sending notification (fail-open): ${
|
|
167
|
+
error instanceof Error ? error.message : String(error)
|
|
168
|
+
}`,
|
|
169
|
+
);
|
|
170
|
+
return true;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
115
174
|
private collectSnapshots = async (
|
|
116
175
|
interactiveSessions: InteractiveLiveSession[],
|
|
117
176
|
transcriptPathBySessionName: Map<string, string>,
|
|
@@ -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;AA0D3D,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;AA0D3D,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,CA+iBP;CACH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LocalCommandRunner } from '../../../domain/usecases/adapter-interfaces/LocalCommandRunner';
|
|
2
2
|
import { ProcessEnvironReader } from '../../../domain/usecases/adapter-interfaces/ProcessEnvironReader';
|
|
3
|
+
import { HubTaskStatusResolver } from '../../../domain/usecases/NotifySilentLiveSessionsUseCase';
|
|
3
4
|
import { LocalStorageCacheRepository } from '../../repositories/LocalStorageCacheRepository';
|
|
4
5
|
import { SilentSessionMessageTemplates } from '../../repositories/ConfigurableSilentSessionMessageComposer';
|
|
5
6
|
export type NotifySilentTmuxSessionsParams = {
|
|
@@ -16,6 +17,8 @@ export type NotifySilentTmuxSessionsParams = {
|
|
|
16
17
|
subAgentRunningThresholdSeconds: number;
|
|
17
18
|
cooldownSeconds: number;
|
|
18
19
|
staggerSeconds: number;
|
|
20
|
+
activeHubTaskStatus: string | null;
|
|
21
|
+
hubTaskStatusResolver: HubTaskStatusResolver | null;
|
|
19
22
|
messageTemplates: SilentSessionMessageTemplates;
|
|
20
23
|
now: Date;
|
|
21
24
|
};
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"notifySilentTmuxSessions.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/notifyS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
6
|
import { SilentSessionMessageComposer } from './adapter-interfaces/SilentSessionMessageComposer';
|
|
7
7
|
import { SilentSessionNotificationRepository } from './adapter-interfaces/SilentSessionNotificationRepository';
|
|
8
8
|
import { Sleeper } from './adapter-interfaces/Sleeper';
|
|
9
|
+
import { IssueRepository } from './adapter-interfaces/IssueRepository';
|
|
9
10
|
export declare const DEFAULT_MAIN_SILENT_THRESHOLD_SECONDS: number;
|
|
10
11
|
export declare const DEFAULT_SUBAGENT_SILENT_THRESHOLD_SECONDS: number;
|
|
11
12
|
export declare const DEFAULT_SUBAGENT_RUNNING_THRESHOLD_SECONDS: number;
|
|
12
13
|
export declare const DEFAULT_NOTIFICATION_COOLDOWN_SECONDS: number;
|
|
13
14
|
export declare const DEFAULT_NOTIFICATION_STAGGER_SECONDS = 25;
|
|
15
|
+
export declare const parseHubTaskIssueUrlFromSessionName: (sessionName: string) => string | null;
|
|
16
|
+
export type HubTaskStatusResolver = Pick<IssueRepository, 'getIssueByUrl'>;
|
|
14
17
|
export declare class NotifySilentLiveSessionsUseCase {
|
|
15
18
|
private readonly liveSessionProcessSnapshotProvider;
|
|
16
19
|
private readonly interactiveLiveSessionTranscriptResolver;
|
|
@@ -20,16 +23,19 @@ export declare class NotifySilentLiveSessionsUseCase {
|
|
|
20
23
|
private readonly notificationRepository;
|
|
21
24
|
private readonly messageComposer;
|
|
22
25
|
private readonly sleeper;
|
|
26
|
+
private readonly hubTaskStatusResolver;
|
|
23
27
|
private readonly resolveInteractiveLiveSessions;
|
|
24
|
-
constructor(liveSessionProcessSnapshotProvider: LiveSessionProcessSnapshotProvider, interactiveLiveSessionTranscriptResolver: InteractiveLiveSessionTranscriptResolver, sessionOutputActivityRepository: SessionOutputActivityRepository, subAgentActivityRepository: SessionSubAgentActivityRepository, ownerCallStatusProvider: OwnerCallStatusProvider, notificationRepository: SilentSessionNotificationRepository, messageComposer: SilentSessionMessageComposer, sleeper: Sleeper);
|
|
28
|
+
constructor(liveSessionProcessSnapshotProvider: LiveSessionProcessSnapshotProvider, interactiveLiveSessionTranscriptResolver: InteractiveLiveSessionTranscriptResolver, sessionOutputActivityRepository: SessionOutputActivityRepository, subAgentActivityRepository: SessionSubAgentActivityRepository, ownerCallStatusProvider: OwnerCallStatusProvider, notificationRepository: SilentSessionNotificationRepository, messageComposer: SilentSessionMessageComposer, sleeper: Sleeper, hubTaskStatusResolver?: HubTaskStatusResolver | null);
|
|
25
29
|
run: (params: {
|
|
26
30
|
mainSilentThresholdSeconds: number;
|
|
27
31
|
subAgentSilentThresholdSeconds: number;
|
|
28
32
|
subAgentRunningThresholdSeconds: number;
|
|
29
33
|
cooldownSeconds: number;
|
|
30
34
|
staggerSeconds: number;
|
|
35
|
+
activeHubTaskStatus: string | null;
|
|
31
36
|
now: Date;
|
|
32
37
|
}) => Promise<void>;
|
|
38
|
+
private isHubTaskActive;
|
|
33
39
|
private collectSnapshots;
|
|
34
40
|
private composeMessage;
|
|
35
41
|
}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"NotifySilentLiveSessionsUseCase.d.ts","sourceRoot":"","sources":["../../../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