github-issue-tower-defence-management 1.140.1 → 1.141.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.
Files changed (59) hide show
  1. package/.github/workflows/umino-project.yml +2 -1
  2. package/CHANGELOG.md +14 -0
  3. package/README.md +8 -1
  4. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +43 -2
  5. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
  6. package/bin/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.js +32 -0
  7. package/bin/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.js.map +1 -0
  8. package/bin/adapter/repositories/FileSystemSessionAssistantTurnsRepository.js +135 -0
  9. package/bin/adapter/repositories/FileSystemSessionAssistantTurnsRepository.js.map +1 -0
  10. package/bin/adapter/repositories/FileSystemSessionDegenerationCooldownStateRepository.js +120 -0
  11. package/bin/adapter/repositories/FileSystemSessionDegenerationCooldownStateRepository.js.map +1 -0
  12. package/bin/domain/entities/OutputDegeneration.js +3 -0
  13. package/bin/domain/entities/OutputDegeneration.js.map +1 -0
  14. package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js +20 -5
  15. package/bin/domain/usecases/NotifySilentLiveSessionsUseCase.js.map +1 -1
  16. package/bin/domain/usecases/OutputDegenerationDetector.js +150 -0
  17. package/bin/domain/usecases/OutputDegenerationDetector.js.map +1 -0
  18. package/bin/domain/usecases/SessionOutputDegenerationRecoveryUseCase.js +84 -0
  19. package/bin/domain/usecases/SessionOutputDegenerationRecoveryUseCase.js.map +1 -0
  20. package/bin/domain/usecases/adapter-interfaces/SessionAssistantTurnsRepository.js +3 -0
  21. package/bin/domain/usecases/adapter-interfaces/SessionAssistantTurnsRepository.js.map +1 -0
  22. package/bin/domain/usecases/adapter-interfaces/SessionDegenerationCooldownStateRepository.js +3 -0
  23. package/bin/domain/usecases/adapter-interfaces/SessionDegenerationCooldownStateRepository.js.map +1 -0
  24. package/package.json +1 -1
  25. package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +44 -0
  26. package/src/adapter/entry-points/handlers/notifySilentTmuxSessions.test.ts +33 -3
  27. package/src/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.test.ts +69 -0
  28. package/src/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.ts +71 -0
  29. package/src/adapter/repositories/FileSystemSessionAssistantTurnsRepository.test.ts +138 -0
  30. package/src/adapter/repositories/FileSystemSessionAssistantTurnsRepository.ts +113 -0
  31. package/src/adapter/repositories/FileSystemSessionDegenerationCooldownStateRepository.test.ts +85 -0
  32. package/src/adapter/repositories/FileSystemSessionDegenerationCooldownStateRepository.ts +105 -0
  33. package/src/domain/entities/OutputDegeneration.ts +10 -0
  34. package/src/domain/usecases/NotifySilentLiveSessionsUseCase.test.ts +120 -8
  35. package/src/domain/usecases/NotifySilentLiveSessionsUseCase.ts +25 -9
  36. package/src/domain/usecases/OutputDegenerationDetector.test.ts +167 -0
  37. package/src/domain/usecases/OutputDegenerationDetector.ts +169 -0
  38. package/src/domain/usecases/SessionOutputDegenerationRecoveryUseCase.test.ts +224 -0
  39. package/src/domain/usecases/SessionOutputDegenerationRecoveryUseCase.ts +142 -0
  40. package/src/domain/usecases/adapter-interfaces/SessionAssistantTurnsRepository.ts +6 -0
  41. package/src/domain/usecases/adapter-interfaces/SessionDegenerationCooldownStateRepository.ts +4 -0
  42. package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
  43. package/types/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.d.ts +19 -0
  44. package/types/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.d.ts.map +1 -0
  45. package/types/adapter/repositories/FileSystemSessionAssistantTurnsRepository.d.ts +10 -0
  46. package/types/adapter/repositories/FileSystemSessionAssistantTurnsRepository.d.ts.map +1 -0
  47. package/types/adapter/repositories/FileSystemSessionDegenerationCooldownStateRepository.d.ts +15 -0
  48. package/types/adapter/repositories/FileSystemSessionDegenerationCooldownStateRepository.d.ts.map +1 -0
  49. package/types/domain/entities/OutputDegeneration.d.ts +10 -0
  50. package/types/domain/entities/OutputDegeneration.d.ts.map +1 -0
  51. package/types/domain/usecases/NotifySilentLiveSessionsUseCase.d.ts.map +1 -1
  52. package/types/domain/usecases/OutputDegenerationDetector.d.ts +32 -0
  53. package/types/domain/usecases/OutputDegenerationDetector.d.ts.map +1 -0
  54. package/types/domain/usecases/SessionOutputDegenerationRecoveryUseCase.d.ts +31 -0
  55. package/types/domain/usecases/SessionOutputDegenerationRecoveryUseCase.d.ts.map +1 -0
  56. package/types/domain/usecases/adapter-interfaces/SessionAssistantTurnsRepository.d.ts +4 -0
  57. package/types/domain/usecases/adapter-interfaces/SessionAssistantTurnsRepository.d.ts.map +1 -0
  58. package/types/domain/usecases/adapter-interfaces/SessionDegenerationCooldownStateRepository.d.ts +8 -0
  59. package/types/domain/usecases/adapter-interfaces/SessionDegenerationCooldownStateRepository.d.ts.map +1 -0
@@ -284,7 +284,8 @@ jobs:
284
284
  github.event.action == 'reopened') &&
285
285
  github.actor != 'dependabot[bot]' &&
286
286
  github.actor != 'renovate[bot]' &&
287
- github.actor != 'app/dependabot'
287
+ github.actor != 'app/dependabot' &&
288
+ github.event.pull_request.user.login != 'dependabot[bot]'
288
289
  steps:
289
290
  - uses: step-security/harden-runner@v2
290
291
  with:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.141.0](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.140.2...v1.141.0) (2026-07-26)
2
+
3
+
4
+ ### Features
5
+
6
+ * port output-degeneration detection into TDPM ([#1286](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1286)) ([2f2f7bb](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/2f2f7bb17f094c3a063cff29ba2dcedb227a14e5)), closes [#1285](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1285)
7
+
8
+ ## [1.140.2](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.140.1...v1.140.2) (2026-07-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * include role-named leader and PM sessions in the silent-session reminder ([#1284](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1284)) ([dd5cb46](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/commit/dd5cb460e626c53ca03859dacd4a333938e19b5f)), closes [#1283](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/issues/1283)
14
+
1
15
  ## [1.140.1](https://github.com/HiromiShikata/npm-cli-github-issue-tower-defence-management/compare/v1.140.0...v1.140.1) (2026-07-26)
2
16
 
3
17
 
package/README.md CHANGED
@@ -322,6 +322,11 @@ silentSubAgentIdleMessageHeader?: string # Optional: Overrides the line shown ab
322
322
  silentSubAgentIdleMessageFooter?: string # Optional: Overrides the line shown below the sub-process list in the idle (no-output) sub-process message. When unset, a generic built-in line is used
323
323
  silentSubAgentLongRunningMessageHeader?: string # Optional: Overrides the line shown above the sub-process list in the long-running sub-process message. When unset, a generic built-in line is used
324
324
  silentSubAgentLongRunningMessageFooter?: string # Optional: Overrides the line shown below the sub-process list in the long-running sub-process message. When unset, a generic built-in line is used
325
+ outputDegenerationResetEnabled?: boolean # Optional: Master switch for the output-degeneration reset step. When true, the daemon inspects every live interactive Claude Code session named after a github.com issue or pull-request URL and, when the session's most recent assistant turn is a collapsed single-token repeat loop (intra-turn) or the same isolated short trailing token recurs across the majority of recent turns (cross-turn), sends a checkpoint warning to the session via `tmux send-keys`, waits the grace period, and kills the tmux session so it is relaunched fresh. When false, detection and logging still run but no warning or kill is performed (dry-run). Default false
326
+ outputDegenerationWarningMessage?: string # Optional: Checkpoint warning sent to a degenerated session via `tmux send-keys` before it is reset. When unset, a built-in default that tells the session to checkpoint its resume state to its task issue is used
327
+ outputDegenerationGraceSeconds?: number # Optional: Seconds to wait after sending the degeneration warning before killing the tmux session, giving the session time to write its checkpoint. Default 5
328
+ outputDegenerationCooldownSeconds?: number # Optional: Seconds a session that was just reset is excluded from re-detection, so it is not repeatedly reset before its fresh relaunch completes. Default 300
329
+ outputDegenerationCooldownStateFilePath?: string # Optional: Path to the JSON state file that persists the per-session last-reset time used for the cooldown. When unset, defaults to ${XDG_CACHE_HOME:-~/.cache}/tdpm/output-degeneration-cooldown.json
325
330
  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
326
331
  adapter-interfaces: src/domain/usecases/adapter-interfaces
327
332
  ```
@@ -586,7 +591,7 @@ For each `In Tmux by human` issue with no live session, the reconciler launches
586
591
 
587
592
  Each schedule cycle, when `silentNotificationEnabled` is true, also inspects every live interactive Claude Code session and sends a short self-check reminder into a session via `tmux send-keys` when either of two independent conditions holds. The reminder is composed of only the sections whose condition is met. The main-session-stalled section and the sub-process section are independent, and within the sub-process section the idle (no-output) condition and the long-running condition each produce their own distinct message so a small idle time is never lumped together with a long running time; a sub-process that matches both conditions is reported in both messages, kept separate. When `silentNotificationEnabled` is not set, the entire step is a no-op even if the daemon picks up its configuration automatically.
588
593
 
589
- Candidate sessions are first selected from the live process tree: every live tmux session is taken, the descendants of each session's pane processes are walked, and the first descendant that is an interactive Claude Code process (its command line contains `claude` and does not contain the owner-handover marker `Take ownership of`, and its environment exposes both `CLAUDE_CODE_SESSION_ID` and `CLAUDE_CONFIG_DIR`) is taken as that session's process. Because the walk is anchored on tmux panes, background owner-handover spawns, the preparation daemon, and monitor processes — none of which run inside an interactive tmux pane — are excluded; the owner-handover marker check is an additional guard. The monitor then acts only on sessions whose tmux name encodes a `github.com` issue or pull-request URL — that is, a name of the form `https_//github_com/{owner}/{repo}/issues/{N}` or `https_//github_com/{owner}/{repo}/pull/{N}` (the form tmux derives from the raw issue/PR URL by replacing only `.` and `:` with `_`; the raw `https://github.com/...` form is matched as well). Sessions whose name does not encode such a URL for example an orchestrator session named with a plain word such as `workbench` are left untouched: they receive neither a main-stall nor a sub-process notification, and the count of non-github-named sessions ignored each cycle is logged. Each selected session's transcript is then resolved by scanning the `projects/<cwd-slug>/` subdirectories of two roots — the per-session `<CLAUDE_CONFIG_DIR>/projects/` and the shared `~/.claude/projects/` — for a `<sessionId>.jsonl` file named by any of the session's candidate session ids. The candidate ids are derived from the process tree, in priority order: the current session id recorded in `<CLAUDE_CONFIG_DIR>/sessions/<pid>.json` (the session id rotates on resume or compaction, and this record holds the current value), then the interactive process's own launch id from the `CLAUDE_CODE_SESSION_ID` environment variable, then the distinct ids propagated to its descendant processes, all deduped. Searching the shared root and the rotated current id is required because, for a resumed or compacted session, the actively-written transcript is named by the current id and lives under the shared root rather than under the per-session config directory; the descendant-propagated ids are required because, for a session started without `--resume`, the own launch id names no transcript on disk and the live transcript is named by the descendant id. The candidate ids are tried strictly in this priority order, and the first candidate id that names an existing `<sessionId>.jsonl` file in either root is selected; the most recently modified match is used only as a tiebreak when that same id exists in both roots. Resolving by candidate-id priority rather than by the globally most recently modified file across all candidate ids is required because a session running a sub-agent has the sub-agent's own transcript on disk too, and that sub-agent transcript can be more recently modified than the parent session's transcript while not naming the parent. The parent session's own ids (the rotated current id and the launch id) come before any descendant-propagated id, so the parent's own transcript is selected ahead of a sub-agent transcript; a sub-agent transcript, which lives under `projects/<cwd-slug>/<parentSessionId>/subagents/agent-<id>.jsonl` rather than as a top-level `<sessionId>.jsonl` file, is never reached. This way a non-resume session and a session that has no issue URL both resolve just as reliably as a resume, issue-url-named one, and a session that is waiting on the owner while a sub-agent runs is evaluated against its own transcript rather than the sub-agent's.
594
+ Candidate sessions are first selected from the live process tree: every live tmux session is taken, the descendants of each session's pane processes are walked, and the first descendant that is an interactive Claude Code process (its command line contains `claude` and does not contain the owner-handover marker `Take ownership of`, and its environment exposes both `CLAUDE_CODE_SESSION_ID` and `CLAUDE_CONFIG_DIR`) is taken as that session's process. Because the walk is anchored on tmux panes, background owner-handover spawns, the preparation daemon, and monitor processes — none of which run inside an interactive tmux pane — are excluded; the owner-handover marker check is an additional guard. The monitor then acts on a session when it is either named after a `github.com` issue or pull-request URL — that is, a name of the form `https_//github_com/{owner}/{repo}/issues/{N}` or `https_//github_com/{owner}/{repo}/pull/{N}` (the form tmux derives from the raw issue/PR URL by replacing only `.` and `:` with `_`; the raw `https://github.com/...` form is matched as well) — or has a resolvable Claude agent transcript on disk. The resolvable transcript is the proof that the session is a live Claude agent session, so role-named resident leader and project-manager agent sessions (for example `app`, `tdpm-cli`, `secretary`, and the per-project `*pm` sessions) are monitored and receive the main-stall reminder even though their names encode no issue or pull-request URL. Gating this broadened inclusion on the resolvable transcript rather than on merely being a tmux session keeps genuine non-agent interactive sessions excluded: a login shell, or a viewer such as `sso_login` or a `tdpm` viewer, exposes no Claude transcript on disk, so it is left untouched it receives neither a main-stall nor a sub-process notification and the count of interactive sessions ignored each cycle, those that are neither github-named nor have a resolvable transcript, is logged. A role-named leader or PM session encodes no `github.com` hub task, so the hub-task active-status gate described below treats it as active and does not suppress it. Each interactive session's transcript is resolved by scanning the `projects/<cwd-slug>/` subdirectories of two roots — the per-session `<CLAUDE_CONFIG_DIR>/projects/` and the shared `~/.claude/projects/` — for a `<sessionId>.jsonl` file named by any of the session's candidate session ids. The candidate ids are derived from the process tree, in priority order: the current session id recorded in `<CLAUDE_CONFIG_DIR>/sessions/<pid>.json` (the session id rotates on resume or compaction, and this record holds the current value), then the interactive process's own launch id from the `CLAUDE_CODE_SESSION_ID` environment variable, then the distinct ids propagated to its descendant processes, all deduped. Searching the shared root and the rotated current id is required because, for a resumed or compacted session, the actively-written transcript is named by the current id and lives under the shared root rather than under the per-session config directory; the descendant-propagated ids are required because, for a session started without `--resume`, the own launch id names no transcript on disk and the live transcript is named by the descendant id. The candidate ids are tried strictly in this priority order, and the first candidate id that names an existing `<sessionId>.jsonl` file in either root is selected; the most recently modified match is used only as a tiebreak when that same id exists in both roots. Resolving by candidate-id priority rather than by the globally most recently modified file across all candidate ids is required because a session running a sub-agent has the sub-agent's own transcript on disk too, and that sub-agent transcript can be more recently modified than the parent session's transcript while not naming the parent. The parent session's own ids (the rotated current id and the launch id) come before any descendant-propagated id, so the parent's own transcript is selected ahead of a sub-agent transcript; a sub-agent transcript, which lives under `projects/<cwd-slug>/<parentSessionId>/subagents/agent-<id>.jsonl` rather than as a top-level `<sessionId>.jsonl` file, is never reached. This way a non-resume session and a session that has no issue URL both resolve just as reliably as a resume, issue-url-named one, and a session that is waiting on the owner while a sub-agent runs is evaluated against its own transcript rather than the sub-agent's.
590
595
 
591
596
  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.
592
597
 
@@ -598,6 +603,8 @@ A two-consecutive-cycle debounce guards against transient false positives: a ses
598
603
 
599
604
  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_SUBAGENT_RUNTIME_ROOT_DIRECTORY`, `TDPM_MAIN_SILENT_THRESHOLD_SECONDS`, `TDPM_SILENT_UNANSWERED_OWNER_CALL_GRACE_SECONDS`, `TDPM_SUBAGENT_SILENT_THRESHOLD_SECONDS`, `TDPM_SUBAGENT_RUNNING_THRESHOLD_SECONDS`, `TDPM_SILENT_NOTIFICATION_STAGGER_SECONDS`, `TDPM_SILENT_CANDIDATE_DEBOUNCE_RECENCY_WINDOW_SECONDS`, `TDPM_SILENT_CANDIDATE_DEBOUNCE_STATE_FILE_PATH`, `TDPM_SILENT_NOTIFIED_STATE_FILE_PATH`, `TDPM_ACTIVE_HUB_TASK_STATUS`, `TDPM_SILENT_HUB_TASK_STATUS_CACHE_STATE_FILE_PATH`, `TDPM_SILENT_HUB_TASK_STATUS_CACHE_TTL_SECONDS`, `TDPM_SILENT_MAIN_STALLED_MESSAGE`, `TDPM_SILENT_MAIN_STALLED_STALE_OWNER_CALL_MESSAGE`, `TDPM_SILENT_SUBAGENT_IDLE_MESSAGE_HEADER`, `TDPM_SILENT_SUBAGENT_IDLE_MESSAGE_FOOTER`, `TDPM_SILENT_SUBAGENT_LONG_RUNNING_MESSAGE_HEADER`, and `TDPM_SILENT_SUBAGENT_LONG_RUNNING_MESSAGE_FOOTER`.
600
605
 
606
+ Each schedule cycle, when `outputDegenerationResetEnabled` is true, also inspects every live interactive Claude Code session named after a github.com issue or pull-request URL and resets a session whose output has collapsed into a repeat loop. A session is detected as degenerated when either of two independent conditions holds. The intra-turn condition looks at the session's most recent assistant turn and fires on any of three signatures: the longest consecutive run of an identical short token (at most 32 characters) is at least 5 and dominates at least 0.8 of the turn's tokens; or, after fenced code blocks, table rows, and list items are removed, an absolute consecutive run reaches at least 15 identical short tokens; or the duplicated 4-gram density of the filtered turn is at least 0.3 over at least 40 tokens. The cross-turn condition looks at the last 10 assistant turns and fires when the same isolated short purely-alphabetic trailing token recurs as the appended token in at least 4 of them. These thresholds are ported unchanged from the empirically-validated standalone monitor: healthy sessions never exceed 2 to 3 consecutive repeats of a single token in one turn and end turns with varied content, so both conditions have measured zero false positives. When a session is detected, a checkpoint warning is sent via `tmux send-keys`, the grace period is awaited, and the tmux session is killed so it is relaunched fresh; a per-session cooldown (default 300 seconds) prevents re-resetting the same session before its fresh relaunch completes. When `outputDegenerationResetEnabled` is not true the detection still runs and logs what it would do, but no warning or kill is performed, and any error during the step is logged and swallowed so the schedule cycle is never affected. Each config key above has a matching environment variable read when the config key is unset: `TDPM_OUTPUT_DEGENERATION_RESET_ENABLED` (the string `true` enables the step), `TDPM_OUTPUT_DEGENERATION_WARNING_MESSAGE`, `TDPM_OUTPUT_DEGENERATION_GRACE_SECONDS`, `TDPM_OUTPUT_DEGENERATION_COOLDOWN_SECONDS`, and `TDPM_OUTPUT_DEGENERATION_COOLDOWN_STATE_FILE_PATH`.
607
+
601
608
  ## Token Rotation Order File
602
609
 
603
610
  After each schedule cycle where Claude OAuth token rotation is active, TDPM writes the computed rotation order to:
@@ -54,6 +54,7 @@ const inTmuxByHumanSessionReconciler_1 = require("./inTmuxByHumanSessionReconcil
54
54
  const tokenExhaustionHandover_1 = require("./tokenExhaustionHandover");
55
55
  const staleTmuxSessionCleaner_1 = require("./staleTmuxSessionCleaner");
56
56
  const notifySilentTmuxSessions_1 = require("./notifySilentTmuxSessions");
57
+ const resetDegeneratedTmuxSessions_1 = require("./resetDegeneratedTmuxSessions");
57
58
  const rotationOrderFileWriter_1 = require("./rotationOrderFileWriter");
58
59
  const projectConfig_1 = require("../cli/projectConfig");
59
60
  const SystemDateRepository_1 = require("../../repositories/SystemDateRepository");
@@ -111,13 +112,13 @@ class HandleScheduledEventUseCaseHandler {
111
112
  this.handle = async (configFilePath, _verbose, inTmuxProjectOrderOverride = null) => {
112
113
  const configFileContent = fs_1.default.readFileSync(configFilePath, 'utf8');
113
114
  const input = yaml_1.default.parse(configFileContent);
114
- if (!(() => { const _io0 = input => (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.manager && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.org && ("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)) && (undefined === input.createTaskFromStoryBodyCheckboxEnabled || "boolean" === typeof input.createTaskFromStoryBodyCheckboxEnabled) && (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)) && (null === input.autoAssignManagerAuthors || undefined === input.autoAssignManagerAuthors || "string" === typeof input.autoAssignManagerAuthors || Array.isArray(input.autoAssignManagerAuthors) && input.autoAssignManagerAuthors.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.disks || Array.isArray(input.disks) && input.disks.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.newIssueRepo || "string" === typeof input.newIssueRepo) && (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.tokenExhaustionHandoverEnabled || "boolean" === typeof input.tokenExhaustionHandoverEnabled) && (undefined === input.tokenExhaustionHandoverMessage || "string" === typeof input.tokenExhaustionHandoverMessage) && (undefined === input.tokenExhaustionHandoverBareNameLeaderMessage || "string" === typeof input.tokenExhaustionHandoverBareNameLeaderMessage) && (undefined === input.tokenRateLimitSnapshotBaseDir || "string" === typeof input.tokenRateLimitSnapshotBaseDir) && (undefined === input.tokenExhaustionGracePeriodSeconds || "number" === typeof input.tokenExhaustionGracePeriodSeconds) && (undefined === input.tokenExhaustionHandoverStateFilePath || "string" === typeof input.tokenExhaustionHandoverStateFilePath) && (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.subAgentRuntimeRootDirectory || "string" === typeof input.subAgentRuntimeRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.unansweredOwnerCallGraceSeconds || "number" === typeof input.unansweredOwnerCallGraceSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.candidateDebounceRecencyWindowSeconds || "number" === typeof input.candidateDebounceRecencyWindowSeconds) && (undefined === input.candidateDebounceStateFilePath || "string" === typeof input.candidateDebounceStateFilePath) && (undefined === input.notifiedStateFilePath || "string" === typeof input.notifiedStateFilePath) && (undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus) && (undefined === input.hubTaskStatusCacheStateFilePath || "string" === typeof input.hubTaskStatusCacheStateFilePath) && (undefined === input.hubTaskStatusCacheTtlSeconds || "number" === typeof input.hubTaskStatusCacheTtlSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentMainStalledStaleOwnerCallMessage || "string" === typeof input.silentMainStalledStaleOwnerCallMessage) && (undefined === input.silentSubAgentIdleMessageHeader || "string" === typeof input.silentSubAgentIdleMessageHeader) && (undefined === input.silentSubAgentIdleMessageFooter || "string" === typeof input.silentSubAgentIdleMessageFooter) && (undefined === input.silentSubAgentLongRunningMessageHeader || "string" === typeof input.silentSubAgentLongRunningMessageHeader) && (undefined === input.silentSubAgentLongRunningMessageFooter || "string" === typeof input.silentSubAgentLongRunningMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io6(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
115
+ if (!(() => { const _io0 = input => (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.manager && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.org && ("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)) && (undefined === input.createTaskFromStoryBodyCheckboxEnabled || "boolean" === typeof input.createTaskFromStoryBodyCheckboxEnabled) && (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)) && (null === input.autoAssignManagerAuthors || undefined === input.autoAssignManagerAuthors || "string" === typeof input.autoAssignManagerAuthors || Array.isArray(input.autoAssignManagerAuthors) && input.autoAssignManagerAuthors.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.disks || Array.isArray(input.disks) && input.disks.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.newIssueRepo || "string" === typeof input.newIssueRepo) && (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.tokenExhaustionHandoverEnabled || "boolean" === typeof input.tokenExhaustionHandoverEnabled) && (undefined === input.tokenExhaustionHandoverMessage || "string" === typeof input.tokenExhaustionHandoverMessage) && (undefined === input.tokenExhaustionHandoverBareNameLeaderMessage || "string" === typeof input.tokenExhaustionHandoverBareNameLeaderMessage) && (undefined === input.tokenRateLimitSnapshotBaseDir || "string" === typeof input.tokenRateLimitSnapshotBaseDir) && (undefined === input.tokenExhaustionGracePeriodSeconds || "number" === typeof input.tokenExhaustionGracePeriodSeconds) && (undefined === input.tokenExhaustionHandoverStateFilePath || "string" === typeof input.tokenExhaustionHandoverStateFilePath) && (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.subAgentRuntimeRootDirectory || "string" === typeof input.subAgentRuntimeRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.unansweredOwnerCallGraceSeconds || "number" === typeof input.unansweredOwnerCallGraceSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.candidateDebounceRecencyWindowSeconds || "number" === typeof input.candidateDebounceRecencyWindowSeconds) && (undefined === input.candidateDebounceStateFilePath || "string" === typeof input.candidateDebounceStateFilePath) && (undefined === input.notifiedStateFilePath || "string" === typeof input.notifiedStateFilePath) && (undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus) && (undefined === input.hubTaskStatusCacheStateFilePath || "string" === typeof input.hubTaskStatusCacheStateFilePath) && (undefined === input.hubTaskStatusCacheTtlSeconds || "number" === typeof input.hubTaskStatusCacheTtlSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentMainStalledStaleOwnerCallMessage || "string" === typeof input.silentMainStalledStaleOwnerCallMessage) && (undefined === input.silentSubAgentIdleMessageHeader || "string" === typeof input.silentSubAgentIdleMessageHeader) && (undefined === input.silentSubAgentIdleMessageFooter || "string" === typeof input.silentSubAgentIdleMessageFooter) && (undefined === input.silentSubAgentLongRunningMessageHeader || "string" === typeof input.silentSubAgentLongRunningMessageHeader) && (undefined === input.silentSubAgentLongRunningMessageFooter || "string" === typeof input.silentSubAgentLongRunningMessageFooter) && (undefined === input.outputDegenerationResetEnabled || "boolean" === typeof input.outputDegenerationResetEnabled) && (undefined === input.outputDegenerationWarningMessage || "string" === typeof input.outputDegenerationWarningMessage) && (undefined === input.outputDegenerationGraceSeconds || "number" === typeof input.outputDegenerationGraceSeconds) && (undefined === input.outputDegenerationCooldownSeconds || "number" === typeof input.outputDegenerationCooldownSeconds) && (undefined === input.outputDegenerationCooldownStateFilePath || "string" === typeof input.outputDegenerationCooldownStateFilePath) && ("object" === typeof input.credentials && null !== input.credentials && _io6(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
115
116
  const value = input[key];
116
117
  if (undefined === value)
117
118
  return true;
118
119
  return "string" === typeof value;
119
120
  }); 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 => "string" === typeof input.title && "string" === typeof input.mountpoint; const _io6 = input => "object" === typeof input.manager && null !== input.manager && _io7(input.manager) && ("object" === typeof input.bot && null !== input.bot && _io11(input.bot)); const _io7 = input => "object" === typeof input.github && null !== input.github && _io8(input.github) && ("object" === typeof input.slack && null !== input.slack && _io9(input.slack)) && ("object" === typeof input.googleServiceAccount && null !== input.googleServiceAccount && _io10(input.googleServiceAccount)); const _io8 = input => "string" === typeof input.token; const _io9 = input => "string" === typeof input.userToken; const _io10 = input => "string" === typeof input.serviceAccountKey; const _io11 = input => "object" === typeof input.github && null !== input.github && _io12(input.github); const _io12 = input => "string" === typeof input.token; return input => "object" === typeof input && null !== input && _io0(input); })()(input)) {
120
- throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const _io0 = input => (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.manager && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.org && ("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)) && (undefined === input.createTaskFromStoryBodyCheckboxEnabled || "boolean" === typeof input.createTaskFromStoryBodyCheckboxEnabled) && (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)) && (null === input.autoAssignManagerAuthors || undefined === input.autoAssignManagerAuthors || "string" === typeof input.autoAssignManagerAuthors || Array.isArray(input.autoAssignManagerAuthors) && input.autoAssignManagerAuthors.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.disks || Array.isArray(input.disks) && input.disks.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.newIssueRepo || "string" === typeof input.newIssueRepo) && (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.tokenExhaustionHandoverEnabled || "boolean" === typeof input.tokenExhaustionHandoverEnabled) && (undefined === input.tokenExhaustionHandoverMessage || "string" === typeof input.tokenExhaustionHandoverMessage) && (undefined === input.tokenExhaustionHandoverBareNameLeaderMessage || "string" === typeof input.tokenExhaustionHandoverBareNameLeaderMessage) && (undefined === input.tokenRateLimitSnapshotBaseDir || "string" === typeof input.tokenRateLimitSnapshotBaseDir) && (undefined === input.tokenExhaustionGracePeriodSeconds || "number" === typeof input.tokenExhaustionGracePeriodSeconds) && (undefined === input.tokenExhaustionHandoverStateFilePath || "string" === typeof input.tokenExhaustionHandoverStateFilePath) && (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.subAgentRuntimeRootDirectory || "string" === typeof input.subAgentRuntimeRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.unansweredOwnerCallGraceSeconds || "number" === typeof input.unansweredOwnerCallGraceSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.candidateDebounceRecencyWindowSeconds || "number" === typeof input.candidateDebounceRecencyWindowSeconds) && (undefined === input.candidateDebounceStateFilePath || "string" === typeof input.candidateDebounceStateFilePath) && (undefined === input.notifiedStateFilePath || "string" === typeof input.notifiedStateFilePath) && (undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus) && (undefined === input.hubTaskStatusCacheStateFilePath || "string" === typeof input.hubTaskStatusCacheStateFilePath) && (undefined === input.hubTaskStatusCacheTtlSeconds || "number" === typeof input.hubTaskStatusCacheTtlSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentMainStalledStaleOwnerCallMessage || "string" === typeof input.silentMainStalledStaleOwnerCallMessage) && (undefined === input.silentSubAgentIdleMessageHeader || "string" === typeof input.silentSubAgentIdleMessageHeader) && (undefined === input.silentSubAgentIdleMessageFooter || "string" === typeof input.silentSubAgentIdleMessageFooter) && (undefined === input.silentSubAgentLongRunningMessageHeader || "string" === typeof input.silentSubAgentLongRunningMessageHeader) && (undefined === input.silentSubAgentLongRunningMessageFooter || "string" === typeof input.silentSubAgentLongRunningMessageFooter) && ("object" === typeof input.credentials && null !== input.credentials && _io6(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
121
+ throw new Error(`Invalid input: ${JSON.stringify(input)}\n\n${JSON.stringify((() => { const _io0 = input => (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.manager && "string" === typeof input.projectName && (null === input.labelsAsLlmAgentName || undefined === input.labelsAsLlmAgentName || Array.isArray(input.labelsAsLlmAgentName) && input.labelsAsLlmAgentName.every(elem => "string" === typeof elem)) && "string" === typeof input.org && ("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)) && (undefined === input.createTaskFromStoryBodyCheckboxEnabled || "boolean" === typeof input.createTaskFromStoryBodyCheckboxEnabled) && (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)) && (null === input.autoAssignManagerAuthors || undefined === input.autoAssignManagerAuthors || "string" === typeof input.autoAssignManagerAuthors || Array.isArray(input.autoAssignManagerAuthors) && input.autoAssignManagerAuthors.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.disks || Array.isArray(input.disks) && input.disks.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (undefined === input.workflowBlockerStoryName || "string" === typeof input.workflowBlockerStoryName) && (undefined === input.inTmuxDataOutputDir || "string" === typeof input.inTmuxDataOutputDir) && (undefined === input.newIssueRepo || "string" === typeof input.newIssueRepo) && (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.tokenExhaustionHandoverEnabled || "boolean" === typeof input.tokenExhaustionHandoverEnabled) && (undefined === input.tokenExhaustionHandoverMessage || "string" === typeof input.tokenExhaustionHandoverMessage) && (undefined === input.tokenExhaustionHandoverBareNameLeaderMessage || "string" === typeof input.tokenExhaustionHandoverBareNameLeaderMessage) && (undefined === input.tokenRateLimitSnapshotBaseDir || "string" === typeof input.tokenRateLimitSnapshotBaseDir) && (undefined === input.tokenExhaustionGracePeriodSeconds || "number" === typeof input.tokenExhaustionGracePeriodSeconds) && (undefined === input.tokenExhaustionHandoverStateFilePath || "string" === typeof input.tokenExhaustionHandoverStateFilePath) && (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.subAgentRuntimeRootDirectory || "string" === typeof input.subAgentRuntimeRootDirectory) && (undefined === input.mainSilentThresholdSeconds || "number" === typeof input.mainSilentThresholdSeconds) && (undefined === input.unansweredOwnerCallGraceSeconds || "number" === typeof input.unansweredOwnerCallGraceSeconds) && (undefined === input.subAgentSilentThresholdSeconds || "number" === typeof input.subAgentSilentThresholdSeconds) && (undefined === input.subAgentRunningThresholdSeconds || "number" === typeof input.subAgentRunningThresholdSeconds) && (undefined === input.silentNotificationStaggerSeconds || "number" === typeof input.silentNotificationStaggerSeconds) && (undefined === input.candidateDebounceRecencyWindowSeconds || "number" === typeof input.candidateDebounceRecencyWindowSeconds) && (undefined === input.candidateDebounceStateFilePath || "string" === typeof input.candidateDebounceStateFilePath) && (undefined === input.notifiedStateFilePath || "string" === typeof input.notifiedStateFilePath) && (undefined === input.activeHubTaskStatus || "string" === typeof input.activeHubTaskStatus) && (undefined === input.hubTaskStatusCacheStateFilePath || "string" === typeof input.hubTaskStatusCacheStateFilePath) && (undefined === input.hubTaskStatusCacheTtlSeconds || "number" === typeof input.hubTaskStatusCacheTtlSeconds) && (undefined === input.silentMainStalledMessage || "string" === typeof input.silentMainStalledMessage) && (undefined === input.silentMainStalledStaleOwnerCallMessage || "string" === typeof input.silentMainStalledStaleOwnerCallMessage) && (undefined === input.silentSubAgentIdleMessageHeader || "string" === typeof input.silentSubAgentIdleMessageHeader) && (undefined === input.silentSubAgentIdleMessageFooter || "string" === typeof input.silentSubAgentIdleMessageFooter) && (undefined === input.silentSubAgentLongRunningMessageHeader || "string" === typeof input.silentSubAgentLongRunningMessageHeader) && (undefined === input.silentSubAgentLongRunningMessageFooter || "string" === typeof input.silentSubAgentLongRunningMessageFooter) && (undefined === input.outputDegenerationResetEnabled || "boolean" === typeof input.outputDegenerationResetEnabled) && (undefined === input.outputDegenerationWarningMessage || "string" === typeof input.outputDegenerationWarningMessage) && (undefined === input.outputDegenerationGraceSeconds || "number" === typeof input.outputDegenerationGraceSeconds) && (undefined === input.outputDegenerationCooldownSeconds || "number" === typeof input.outputDegenerationCooldownSeconds) && (undefined === input.outputDegenerationCooldownStateFilePath || "string" === typeof input.outputDegenerationCooldownStateFilePath) && ("object" === typeof input.credentials && null !== input.credentials && _io6(input.credentials)); const _io1 = input => Object.keys(input).every(key => {
121
122
  const value = input[key];
122
123
  if (undefined === value)
123
124
  return true;
@@ -402,6 +403,26 @@ class HandleScheduledEventUseCaseHandler {
402
403
  path: _path + ".silentSubAgentLongRunningMessageFooter",
403
404
  expected: "(string | undefined)",
404
405
  value: input.silentSubAgentLongRunningMessageFooter
406
+ }), undefined === input.outputDegenerationResetEnabled || "boolean" === typeof input.outputDegenerationResetEnabled || _report(_exceptionable, {
407
+ path: _path + ".outputDegenerationResetEnabled",
408
+ expected: "(boolean | undefined)",
409
+ value: input.outputDegenerationResetEnabled
410
+ }), undefined === input.outputDegenerationWarningMessage || "string" === typeof input.outputDegenerationWarningMessage || _report(_exceptionable, {
411
+ path: _path + ".outputDegenerationWarningMessage",
412
+ expected: "(string | undefined)",
413
+ value: input.outputDegenerationWarningMessage
414
+ }), undefined === input.outputDegenerationGraceSeconds || "number" === typeof input.outputDegenerationGraceSeconds || _report(_exceptionable, {
415
+ path: _path + ".outputDegenerationGraceSeconds",
416
+ expected: "(number | undefined)",
417
+ value: input.outputDegenerationGraceSeconds
418
+ }), undefined === input.outputDegenerationCooldownSeconds || "number" === typeof input.outputDegenerationCooldownSeconds || _report(_exceptionable, {
419
+ path: _path + ".outputDegenerationCooldownSeconds",
420
+ expected: "(number | undefined)",
421
+ value: input.outputDegenerationCooldownSeconds
422
+ }), undefined === input.outputDegenerationCooldownStateFilePath || "string" === typeof input.outputDegenerationCooldownStateFilePath || _report(_exceptionable, {
423
+ path: _path + ".outputDegenerationCooldownStateFilePath",
424
+ expected: "(string | undefined)",
425
+ value: input.outputDegenerationCooldownStateFilePath
405
426
  }), ("object" === typeof input.credentials && null !== input.credentials || _report(_exceptionable, {
406
427
  path: _path + ".credentials",
407
428
  expected: "__type.o3",
@@ -950,6 +971,26 @@ class HandleScheduledEventUseCaseHandler {
950
971
  catch (error) {
951
972
  console.error(`Failed to notify silent tmux sessions: ${error instanceof Error ? error.message : String(error)}`);
952
973
  }
974
+ try {
975
+ const outputDegenerationResetEnabled = mergedInput.outputDegenerationResetEnabled ??
976
+ process.env.TDPM_OUTPUT_DEGENERATION_RESET_ENABLED === 'true';
977
+ await (0, resetDegeneratedTmuxSessions_1.resetDegeneratedTmuxSessions)({
978
+ enabled: outputDegenerationResetEnabled,
979
+ localCommandRunner: nodeLocalCommandRunner,
980
+ warningMessage: mergedInput.outputDegenerationWarningMessage ??
981
+ process.env.TDPM_OUTPUT_DEGENERATION_WARNING_MESSAGE ??
982
+ resetDegeneratedTmuxSessions_1.DEFAULT_RESET_DEGENERATED_TMUX_SESSIONS_PARAMS.warningMessage,
983
+ graceSeconds: readSilentSeconds(mergedInput.outputDegenerationGraceSeconds, process.env.TDPM_OUTPUT_DEGENERATION_GRACE_SECONDS, resetDegeneratedTmuxSessions_1.DEFAULT_RESET_DEGENERATED_TMUX_SESSIONS_PARAMS.graceSeconds),
984
+ cooldownSeconds: readSilentSeconds(mergedInput.outputDegenerationCooldownSeconds, process.env.TDPM_OUTPUT_DEGENERATION_COOLDOWN_SECONDS, resetDegeneratedTmuxSessions_1.DEFAULT_RESET_DEGENERATED_TMUX_SESSIONS_PARAMS.cooldownSeconds),
985
+ cooldownStateFilePath: mergedInput.outputDegenerationCooldownStateFilePath ??
986
+ process.env.TDPM_OUTPUT_DEGENERATION_COOLDOWN_STATE_FILE_PATH ??
987
+ null,
988
+ now: inTmuxNow,
989
+ });
990
+ }
991
+ catch (error) {
992
+ console.error(`Failed to reset degenerated tmux sessions: ${error instanceof Error ? error.message : String(error)}`);
993
+ }
953
994
  }
954
995
  return result;
955
996
  };
@@ -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,4CAAoB;AACpB,gDAAwB;AACxB,+DAA2D;AAC3D,6DAAyD;AACzD,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,uEAAmE;AACnE,qFAAkF;AAClF,uEAA0E;AAC1E,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,0GAAuG;AACvG,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,SAAS,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAC;IACrB,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,IAAI;4BACN,gCAAgC,EAC9B,WAAW,CAAC,sCAAsC;gCAClD,OAAO,CAAC,GAAG,CAAC,gDAAgD;gCAC5D,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;AAjpBD,gFAipBC"}
1
+ {"version":3,"file":"HandleScheduledEventUseCaseHandler.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,4CAAoB;AACpB,4CAAoB;AACpB,gDAAwB;AACxB,+DAA2D;AAC3D,6DAAyD;AACzD,6DAAyD;AACzD,+DAA2D;AAC3D,2DAAuD;AACvD,uEAAmE;AACnE,qFAAkF;AAClF,uEAA0E;AAC1E,uEAAmE;AACnE,yEAGoC;AACpC,iFAGwC;AACxC,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,8GA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ACD,eAAe,EAAE,iBAAiB,CAChC,WAAW,CAAC,iCAAiC,EAC7C,OAAO,CAAC,GAAG,CAAC,yCAAyC,EACrD,6EAA8C,CAAC,eAAe,CAC/D;wBACD,qBAAqB,EACnB,WAAW,CAAC,uCAAuC;4BACnD,OAAO,CAAC,GAAG,CAAC,iDAAiD;4BAC7D,IAAI;wBACN,GAAG,EAAE,SAAS;qBACf,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CACX,8CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAzrBD,gFAyrBC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_RESET_DEGENERATED_TMUX_SESSIONS_PARAMS = exports.resetDegeneratedTmuxSessions = void 0;
4
+ const SessionOutputDegenerationRecoveryUseCase_1 = require("../../../domain/usecases/SessionOutputDegenerationRecoveryUseCase");
5
+ const LocalProcessLiveSessionProcessSnapshotProvider_1 = require("../../repositories/LocalProcessLiveSessionProcessSnapshotProvider");
6
+ const ProcFsProcessEnvironReader_1 = require("../../repositories/ProcFsProcessEnvironReader");
7
+ const FileSystemInteractiveLiveSessionTranscriptResolver_1 = require("../../repositories/FileSystemInteractiveLiveSessionTranscriptResolver");
8
+ const FileSystemSessionAssistantTurnsRepository_1 = require("../../repositories/FileSystemSessionAssistantTurnsRepository");
9
+ const FileSystemSessionDegenerationCooldownStateRepository_1 = require("../../repositories/FileSystemSessionDegenerationCooldownStateRepository");
10
+ const TmuxSilentSessionNotificationRepository_1 = require("../../repositories/TmuxSilentSessionNotificationRepository");
11
+ const NodeTmuxSessionRepository_1 = require("../../repositories/NodeTmuxSessionRepository");
12
+ const RealSleeper_1 = require("../../repositories/RealSleeper");
13
+ const resetDegeneratedTmuxSessions = async (params) => {
14
+ const { enabled, localCommandRunner, processEnvironReader, warningMessage, graceSeconds, cooldownSeconds, cooldownStateFilePath, now, } = params;
15
+ const useCase = new SessionOutputDegenerationRecoveryUseCase_1.SessionOutputDegenerationRecoveryUseCase(new LocalProcessLiveSessionProcessSnapshotProvider_1.LocalProcessLiveSessionProcessSnapshotProvider(localCommandRunner, processEnvironReader ?? new ProcFsProcessEnvironReader_1.ProcFsProcessEnvironReader()), new FileSystemInteractiveLiveSessionTranscriptResolver_1.FileSystemInteractiveLiveSessionTranscriptResolver(), new FileSystemSessionAssistantTurnsRepository_1.FileSystemSessionAssistantTurnsRepository(), new TmuxSilentSessionNotificationRepository_1.TmuxSilentSessionNotificationRepository(localCommandRunner), new NodeTmuxSessionRepository_1.NodeTmuxSessionRepository(localCommandRunner), cooldownStateFilePath !== null
16
+ ? new FileSystemSessionDegenerationCooldownStateRepository_1.FileSystemSessionDegenerationCooldownStateRepository(cooldownStateFilePath)
17
+ : new FileSystemSessionDegenerationCooldownStateRepository_1.FileSystemSessionDegenerationCooldownStateRepository(), new RealSleeper_1.RealSleeper());
18
+ await useCase.run({
19
+ enabled,
20
+ warningMessage,
21
+ graceSeconds,
22
+ cooldownSeconds,
23
+ now,
24
+ });
25
+ };
26
+ exports.resetDegeneratedTmuxSessions = resetDegeneratedTmuxSessions;
27
+ exports.DEFAULT_RESET_DEGENERATED_TMUX_SESSIONS_PARAMS = {
28
+ warningMessage: SessionOutputDegenerationRecoveryUseCase_1.DEFAULT_OUTPUT_DEGENERATION_WARNING_MESSAGE,
29
+ graceSeconds: SessionOutputDegenerationRecoveryUseCase_1.DEFAULT_OUTPUT_DEGENERATION_GRACE_SECONDS,
30
+ cooldownSeconds: SessionOutputDegenerationRecoveryUseCase_1.DEFAULT_OUTPUT_DEGENERATION_COOLDOWN_SECONDS,
31
+ };
32
+ //# sourceMappingURL=resetDegeneratedTmuxSessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resetDegeneratedTmuxSessions.js","sourceRoot":"","sources":["../../../../src/adapter/entry-points/handlers/resetDegeneratedTmuxSessions.ts"],"names":[],"mappings":";;;AAEA,gIAK2E;AAC3E,sIAAmI;AACnI,8FAA2F;AAC3F,8IAA2I;AAC3I,4HAAyH;AACzH,kJAA+I;AAC/I,wHAAqH;AACrH,4FAAyF;AACzF,gEAA6D;AAatD,MAAM,4BAA4B,GAAG,KAAK,EAC/C,MAA0C,EAC3B,EAAE;IACjB,MAAM,EACJ,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,GAAG,GACJ,GAAG,MAAM,CAAC;IACX,MAAM,OAAO,GAAG,IAAI,mFAAwC,CAC1D,IAAI,+FAA8C,CAChD,kBAAkB,EAClB,oBAAoB,IAAI,IAAI,uDAA0B,EAAE,CACzD,EACD,IAAI,uGAAkD,EAAE,EACxD,IAAI,qFAAyC,EAAE,EAC/C,IAAI,iFAAuC,CAAC,kBAAkB,CAAC,EAC/D,IAAI,qDAAyB,CAAC,kBAAkB,CAAC,EACjD,qBAAqB,KAAK,IAAI;QAC5B,CAAC,CAAC,IAAI,2GAAoD,CACtD,qBAAqB,CACtB;QACH,CAAC,CAAC,IAAI,2GAAoD,EAAE,EAC9D,IAAI,yBAAW,EAAE,CAClB,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,OAAO;QACP,cAAc;QACd,YAAY;QACZ,eAAe;QACf,GAAG;KACJ,CAAC,CAAC;AACL,CAAC,CAAC;AApCW,QAAA,4BAA4B,gCAoCvC;AAEW,QAAA,8CAA8C,GAAG;IAC5D,cAAc,EAAE,sFAA2C;IAC3D,YAAY,EAAE,oFAAyC;IACvD,eAAe,EAAE,uFAA4C;CACrD,CAAC"}
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.FileSystemSessionAssistantTurnsRepository = exports.DEFAULT_TRANSCRIPT_TAIL_BYTES = void 0;
37
+ const fs = __importStar(require("fs"));
38
+ exports.DEFAULT_TRANSCRIPT_TAIL_BYTES = 3000000;
39
+ const isRecord = (value) => typeof value === 'object' && value !== null;
40
+ const assistantText = (message) => {
41
+ const content = message.content;
42
+ if (typeof content === 'string') {
43
+ return content;
44
+ }
45
+ if (Array.isArray(content)) {
46
+ const parts = [];
47
+ for (const block of content) {
48
+ if (isRecord(block) &&
49
+ block.type === 'text' &&
50
+ typeof block.text === 'string') {
51
+ parts.push(block.text);
52
+ }
53
+ }
54
+ return parts.join(' ');
55
+ }
56
+ return '';
57
+ };
58
+ class FileSystemSessionAssistantTurnsRepository {
59
+ constructor(tailBytes = exports.DEFAULT_TRANSCRIPT_TAIL_BYTES) {
60
+ this.tailBytes = tailBytes;
61
+ this.listRecentAssistantTurnsBySessionName = async (transcriptPathBySessionName, maxTurnsPerSession) => {
62
+ const turnsBySessionName = new Map();
63
+ for (const [sessionName, transcriptPath] of transcriptPathBySessionName) {
64
+ const turns = this.readRecentAssistantTurns(transcriptPath, maxTurnsPerSession);
65
+ if (turns.length > 0) {
66
+ turnsBySessionName.set(sessionName, turns);
67
+ }
68
+ }
69
+ return turnsBySessionName;
70
+ };
71
+ this.readRecentAssistantTurns = (transcriptPath, maxTurns) => {
72
+ const lines = this.readTailLines(transcriptPath);
73
+ const turns = [];
74
+ for (let index = lines.length - 1; index >= 0; index -= 1) {
75
+ const trimmed = lines[index].trim();
76
+ if (trimmed.length === 0) {
77
+ continue;
78
+ }
79
+ let parsed;
80
+ try {
81
+ parsed = JSON.parse(trimmed);
82
+ }
83
+ catch {
84
+ continue;
85
+ }
86
+ if (!isRecord(parsed) || parsed.type !== 'assistant') {
87
+ continue;
88
+ }
89
+ const message = parsed.message;
90
+ if (!isRecord(message)) {
91
+ continue;
92
+ }
93
+ const text = assistantText(message);
94
+ if (text.trim().length === 0) {
95
+ continue;
96
+ }
97
+ turns.push(text);
98
+ if (turns.length >= maxTurns) {
99
+ break;
100
+ }
101
+ }
102
+ return turns;
103
+ };
104
+ this.readTailLines = (transcriptPath) => {
105
+ let handle;
106
+ try {
107
+ handle = fs.openSync(transcriptPath, 'r');
108
+ }
109
+ catch {
110
+ return [];
111
+ }
112
+ try {
113
+ const size = fs.fstatSync(handle).size;
114
+ const start = size > this.tailBytes ? size - this.tailBytes : 0;
115
+ const length = size - start;
116
+ const buffer = new Uint8Array(length);
117
+ fs.readSync(handle, buffer, 0, length, start);
118
+ let text = Buffer.from(buffer).toString('utf8');
119
+ if (start > 0) {
120
+ const newlineIndex = text.indexOf('\n');
121
+ text = newlineIndex === -1 ? '' : text.slice(newlineIndex + 1);
122
+ }
123
+ return text.split('\n');
124
+ }
125
+ catch {
126
+ return [];
127
+ }
128
+ finally {
129
+ fs.closeSync(handle);
130
+ }
131
+ };
132
+ }
133
+ }
134
+ exports.FileSystemSessionAssistantTurnsRepository = FileSystemSessionAssistantTurnsRepository;
135
+ //# sourceMappingURL=FileSystemSessionAssistantTurnsRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileSystemSessionAssistantTurnsRepository.js","sourceRoot":"","sources":["../../../src/adapter/repositories/FileSystemSessionAssistantTurnsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAGZ,QAAA,6BAA6B,GAAG,OAAS,CAAC;AAEvD,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CACpE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AAE9C,MAAM,aAAa,GAAG,CAAC,OAAgC,EAAU,EAAE;IACjE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAChC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,IACE,QAAQ,CAAC,KAAK,CAAC;gBACf,KAAK,CAAC,IAAI,KAAK,MAAM;gBACrB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,EAC9B,CAAC;gBACD,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CA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