github-issue-tower-defence-management 1.96.0 → 1.97.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +11 -0
  3. package/bin/adapter/entry-points/console/ui-dist/assets/{index-CO3Vvzqr.css → index-CdQeHptu.css} +1 -1
  4. package/bin/adapter/entry-points/console/ui-dist/index.html +2 -2
  5. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +18 -2
  6. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
  7. package/bin/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.js +19 -0
  8. package/bin/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.js.map +1 -0
  9. package/bin/adapter/repositories/NodeTmuxSessionRepository.js +44 -0
  10. package/bin/adapter/repositories/NodeTmuxSessionRepository.js.map +1 -0
  11. package/bin/domain/usecases/adapter-interfaces/TmuxSessionRepository.js +3 -0
  12. package/bin/domain/usecases/adapter-interfaces/TmuxSessionRepository.js.map +1 -0
  13. package/bin/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.js +41 -0
  14. package/bin/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.js.map +1 -0
  15. package/package.json +1 -1
  16. package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleStoryActions.stories.tsx +63 -0
  17. package/src/adapter/entry-points/console/ui/src/index.css +5 -0
  18. package/src/adapter/entry-points/console/ui-dist/assets/{index-CO3Vvzqr.css → index-CdQeHptu.css} +1 -1
  19. package/src/adapter/entry-points/console/ui-dist/index.html +2 -2
  20. package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +17 -0
  21. package/src/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.test.ts +123 -0
  22. package/src/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.ts +29 -0
  23. package/src/adapter/repositories/NodeTmuxSessionRepository.test.ts +100 -0
  24. package/src/adapter/repositories/NodeTmuxSessionRepository.ts +53 -0
  25. package/src/domain/usecases/adapter-interfaces/TmuxSessionRepository.ts +9 -0
  26. package/src/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.test.ts +186 -0
  27. package/src/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.ts +75 -0
  28. package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
  29. package/types/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.d.ts +10 -0
  30. package/types/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.d.ts.map +1 -0
  31. package/types/adapter/repositories/NodeTmuxSessionRepository.d.ts +10 -0
  32. package/types/adapter/repositories/NodeTmuxSessionRepository.d.ts.map +1 -0
  33. package/types/domain/usecases/adapter-interfaces/TmuxSessionRepository.d.ts +6 -0
  34. package/types/domain/usecases/adapter-interfaces/TmuxSessionRepository.d.ts.map +1 -0
  35. package/types/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.d.ts +19 -0
  36. package/types/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.d.ts.map +1 -0
  37. /package/bin/adapter/entry-points/console/ui-dist/assets/{index-B3F4E8LD.js → index-rqxspBmD.js} +0 -0
  38. /package/src/adapter/entry-points/console/ui-dist/assets/{index-B3F4E8LD.js → index-rqxspBmD.js} +0 -0
@@ -1 +1 @@
1
- /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-input:#e5e5e5;--color-ring:#0a0a0a;--color-background:#fff;--color-foreground:#0a0a0a;--color-primary:#171717;--color-primary-foreground:#fafafa;--color-secondary:#f5f5f5;--color-secondary-foreground:#171717;--color-accent:#f5f5f5;--color-accent-foreground:#171717}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.hidden{display:none}.inline-flex{display:inline-flex}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-input{border-color:var(--color-input)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--color-background)}.bg-primary{background-color:var(--color-primary)}.bg-secondary{background-color:var(--color-secondary)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-foreground{color:var(--color-foreground)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.lowercase{text-transform:lowercase}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-primary\/90:hover{background-color:#171717e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--color-primary) 90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:#f5f5f5cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--color-secondary) 80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}}body{color:#e6edf3;background-color:#0d1117;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.console-app{flex-direction:column;max-width:920px;margin:0 auto;display:flex}.console-tabbar{-webkit-overflow-scrolling:touch;background:#161b22;border-bottom:2px solid #30363d;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:42px;padding:0 8px;display:flex;overflow-x:auto}.console-tab{color:#8b949e;white-space:nowrap;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 14px;font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;display:inline-flex}.console-tab:hover{color:#e6edf3}.console-tab[data-active=true]{color:#e6edf3;border-bottom-color:#2f81f7;font-weight:700}.console-tab-badge{text-align:center;color:#e6edf3;background:#484f58;border-radius:20px;min-width:20px;padding:1px 7px;font-size:11px;font-weight:700;line-height:1.5}.console-tab-badge[data-zero=true]{color:#8b949e;background:#30363d}.console-tab-pjname{color:#8b949e;align-self:center;margin-left:auto;padding:0 8px;font-size:11.5px}.console-tab-geninfo{color:#8b949e;align-self:center;padding:0 4px;font-size:11px}.console-tab-count-heading{color:#8b949e;margin:0;padding:12px 18px 0;font-size:13px}.console-list{margin:0;padding:12px 18px 18px;list-style:none}.console-list-group{list-style:none}.console-item-row .console-item-icon{flex:none;margin-top:3px}.console-group-header{background:#0b0f14;border-bottom:1px solid #21262d;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-storytag{align-items:center;gap:8px;font-size:13px;font-weight:700;display:inline-flex}.console-story-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.console-group-count{color:#8b949e;font-size:12px}.console-item-row{color:#e6edf3;text-align:left;cursor:pointer;background:#161b22;border:1px solid #30363d;border-radius:8px;align-items:flex-start;gap:14px;width:100%;margin-bottom:10px;padding:12px 16px;display:flex}.console-item-row:hover{background:#1a2029;border-color:#484f58}.console-item-row[data-active=true]{background:#1a2029;border-color:#4493f8}.console-item-meta{flex:1;min-width:0}.console-item-title{font-size:14.5px;font-weight:600;display:block}.console-item-sub{color:#8b949e;margin-top:3px;font-size:12.5px;display:block}.console-item-pill{color:#8b949e;border:1px solid #30363d;border-radius:20px;margin-right:6px;padding:1px 8px;font-size:11px;display:inline-block}.console-item-createdat{color:#8b949e;cursor:help}.console-list-message{color:#8b949e;padding:16px;font-size:14px}.console-list-empty{text-align:center;color:#8b949e;padding:40px;font-size:14px}.console-list-error,.console-comment-error,.console-files-error,.console-commits-error,.console-detail-body-error{color:#f85149}.console-detail{flex-direction:column;gap:12px;padding:16px;display:flex}.console-detail-title{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.console-detail-title-text{flex:1}.console-detail-number{color:#8b949e;font-weight:400}.console-detail-closed-label{color:#a371f7;font-size:13px}.console-detail-subbar{align-items:center;gap:12px;font-size:13px;display:flex}.console-detail-link{color:#4493f8}.console-detail-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-detail-pill,.console-label-chip,.console-detail-status-chip{border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.console-detail-labels{flex-wrap:wrap;gap:6px;display:flex}.console-detail-createdat{color:#8b949e;font-size:12px}.console-panel{border:1px solid #30363d;border-radius:8px;overflow:hidden}.console-panel-header{background:#161b22;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-panel-toggle{color:#e6edf3;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.console-panel-body{padding:12px}.console-markdown{word-break:break-word;font-size:14px;line-height:1.5}.console-mermaid-error{color:#f85149;font-size:13px}.console-comment{border-top:1px solid #21262d;padding-top:8px}.console-comment-header{color:#8b949e;gap:8px;font-size:12px;display:flex}.console-comment-author{color:#e6edf3;font-weight:600}.console-files,.console-commits{margin:0;padding:0;list-style:none}.console-commit{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file{flex-direction:column;font-size:13px;display:flex}.console-file-badge{text-align:center;border:1px solid;border-radius:4px;width:18px;font-size:11px}.console-file-path,.console-commit-message{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-add,.console-pr-add{color:#3fb950}.console-file-del,.console-pr-del{color:#f85149}.console-commit-sha{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-actionbar{z-index:100;background:#161b22;border-top:2px solid #30363d;padding:10px 16px;position:fixed;bottom:0;left:0;right:0}.console-operation-bar{flex-direction:column;gap:8px;max-width:920px;margin:0 auto;display:flex}.console-op-group{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.console-op-group-review{gap:10px}.console-op-button{color:#e6edf3;white-space:nowrap;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-op-button:hover{border-color:#484f58}.console-op-button-approve{color:#fff;background:#238636;border-color:#2ea043}.console-op-button-reject{color:#ffd166;background:#7d5000;border-color:#a06800}.console-op-button-wrong{color:#f85149;background:#3a1518;border-color:#f85149}.console-op-button-unneeded{color:#aab0b8;background:#2a2d31;border-color:#6e7681}.console-op-button-snooze{color:#79c0ff;background:#1c2b4a;border-color:#4493f8}.console-pr-section{border:1px solid #30363d;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.console-pr-statbar{color:#8b949e;gap:12px;font-size:12px;display:flex}.console-detail-screen{padding-bottom:140px}.console-panel-open-link{color:#4493f8;font-size:13px;font-weight:400}.console-composer{margin-top:4px}.console-composer-toggle{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:2px 0;font-size:12.5px}.console-composer-toggle:hover{color:#e6edf3}.console-composer-posted{flex-direction:column;gap:8px;margin-top:8px;display:flex}.console-composer-form{margin-top:8px}.console-composer-input{box-sizing:border-box;color:#e6edf3;width:100%;font:inherit;resize:vertical;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:8px;font-size:14px}.console-composer-row{align-items:center;gap:8px;margin-top:6px;display:flex}.console-composer-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-composer-submit:disabled{opacity:.6;cursor:default}.console-composer-status{color:#8b949e;font-size:12px}.console-composer-error{color:#f85149}.console-undo-toast{z-index:9998;white-space:nowrap;border-radius:10px;align-items:center;gap:12px;max-width:92vw;padding:12px 18px;font-size:13.5px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0009}.console-undo-toast-green{color:#3fb950;background:#0d3320;border:1px solid #2ea043}.console-undo-toast-amber{color:#ffd166;background:#3a2800;border:1px solid #a06800}.console-undo-toast-red{color:#f85149;background:#3a1518;border:1px solid #da3633}.console-undo-toast-gray{color:#aab0b8;background:#2a2d31;border:1px solid #6e7681}.console-undo-toast-blue{color:#79c0ff;background:#0d1f40;border:1px solid #4493f8}.console-undo-toast-error{color:#f85149;background:#3a1518;border:1px solid #f85149}.console-undo-toast-message{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.console-undo-toast-undo{cursor:pointer;color:inherit;background:#ffffff1f;border:none;border-radius:6px;flex:none;padding:4px 12px;font-size:13px;font-weight:700}.console-undo-toast-undo:hover{background:#ffffff38}.console-undo-toast-countdown{opacity:.7;flex:none;font-size:11px}.console-undo-toast-bar{opacity:.5;background:currentColor;border-radius:0 0 10px 10px;height:3px;transition:width .1s linear;position:absolute;bottom:0;left:0}.console-file-row{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file-row:hover{background:#1a2029}.console-file-caret{color:#8b949e;flex:none;width:1em}.console-file-diff{border-collapse:collapse;width:100%;margin:4px 0 8px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-diff td{white-space:pre-wrap;word-break:break-word;vertical-align:top;padding:0 10px}.console-diff-ln{text-align:right;color:#6e7681;-webkit-user-select:none;user-select:none;white-space:nowrap;border-right:1px solid #30363d;width:1%;padding:0 8px}.console-diff-add td{background:#2ea04326}.console-diff-add .console-diff-code{color:#aff5b4}.console-diff-del td{background:#f8514926}.console-diff-del .console-diff-code{color:#ffdcd7}.console-diff-hunk td{color:#79c0ff;background:#161b22}.console-diff-ctx .console-diff-code{color:#c9d1d9}.console-file-diff-empty{color:#8b949e;padding:8px 14px;font-size:12px}.console-pr-header{flex-wrap:wrap;align-items:center;gap:10px;padding-top:4px;display:flex}.console-pr-section-title{color:#e6edf3;font-size:15px;font-weight:600}.console-pr-section-state{color:#8b949e;border:1px solid #6e7681;border-radius:999px;padding:1px 8px;font-size:11px}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
1
+ /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-input:#e5e5e5;--color-ring:#0a0a0a;--color-background:#fff;--color-foreground:#0a0a0a;--color-primary:#171717;--color-primary-foreground:#fafafa;--color-secondary:#f5f5f5;--color-secondary-foreground:#171717;--color-accent:#f5f5f5;--color-accent-foreground:#171717}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.hidden{display:none}.inline-flex{display:inline-flex}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-input{border-color:var(--color-input)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--color-background)}.bg-primary{background-color:var(--color-primary)}.bg-secondary{background-color:var(--color-secondary)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-2{padding-block:calc(var(--spacing) * 2)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-foreground{color:var(--color-foreground)}.text-primary-foreground{color:var(--color-primary-foreground)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.lowercase{text-transform:lowercase}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-primary\/90:hover{background-color:#171717e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--color-primary) 90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:#f5f5f5cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--color-secondary) 80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}}body{color:#e6edf3;background-color:#0d1117;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.console-app{flex-direction:column;max-width:920px;margin:0 auto;display:flex}.console-tabbar{-webkit-overflow-scrolling:touch;background:#161b22;border-bottom:2px solid #30363d;flex-wrap:nowrap;align-items:stretch;gap:0;min-height:42px;padding:0 8px;display:flex;overflow-x:auto}.console-tab{color:#8b949e;white-space:nowrap;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 14px;font-size:13px;font-weight:500;line-height:1.2;text-decoration:none;display:inline-flex}.console-tab:hover{color:#e6edf3}.console-tab[data-active=true]{color:#e6edf3;border-bottom-color:#2f81f7;font-weight:700}.console-tab-badge{text-align:center;color:#e6edf3;background:#484f58;border-radius:20px;min-width:20px;padding:1px 7px;font-size:11px;font-weight:700;line-height:1.5}.console-tab-badge[data-zero=true]{color:#8b949e;background:#30363d}.console-tab-pjname{color:#8b949e;align-self:center;margin-left:auto;padding:0 8px;font-size:11.5px}.console-tab-geninfo{color:#8b949e;align-self:center;padding:0 4px;font-size:11px}.console-tab-count-heading{color:#8b949e;margin:0;padding:12px 18px 0;font-size:13px}.console-list{margin:0;padding:12px 18px 18px;list-style:none}.console-list-group{list-style:none}.console-item-row .console-item-icon{flex:none;margin-top:3px}.console-group-header{background:#0b0f14;border-bottom:1px solid #21262d;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-storytag{align-items:center;gap:8px;font-size:13px;font-weight:700;display:inline-flex}.console-story-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.console-group-count{color:#8b949e;font-size:12px}.console-item-row{color:#e6edf3;text-align:left;cursor:pointer;background:#161b22;border:1px solid #30363d;border-radius:8px;align-items:flex-start;gap:14px;width:100%;margin-bottom:10px;padding:12px 16px;display:flex}.console-item-row:hover{background:#1a2029;border-color:#484f58}.console-item-row[data-active=true]{background:#1a2029;border-color:#4493f8}.console-item-meta{flex:1;min-width:0}.console-item-title{font-size:14.5px;font-weight:600;display:block}.console-item-sub{color:#8b949e;margin-top:3px;font-size:12.5px;display:block}.console-item-pill{color:#8b949e;border:1px solid #30363d;border-radius:20px;margin-right:6px;padding:1px 8px;font-size:11px;display:inline-block}.console-item-createdat{color:#8b949e;cursor:help}.console-list-message{color:#8b949e;padding:16px;font-size:14px}.console-list-empty{text-align:center;color:#8b949e;padding:40px;font-size:14px}.console-list-error,.console-comment-error,.console-files-error,.console-commits-error,.console-detail-body-error{color:#f85149}.console-detail{flex-direction:column;gap:12px;padding:16px;display:flex}.console-detail-title{align-items:center;gap:8px;margin:0;font-size:20px;display:flex}.console-detail-title-text{flex:1}.console-detail-number{color:#8b949e;font-weight:400}.console-detail-closed-label{color:#a371f7;font-size:13px}.console-detail-subbar{align-items:center;gap:12px;font-size:13px;display:flex}.console-detail-link{color:#4493f8}.console-detail-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-detail-pill,.console-label-chip,.console-detail-status-chip{border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.console-detail-labels{flex-wrap:wrap;gap:6px;display:flex}.console-detail-createdat{color:#8b949e;font-size:12px}.console-panel{border:1px solid #30363d;border-radius:8px;overflow:hidden}.console-panel-header{background:#161b22;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-panel-toggle{color:#e6edf3;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.console-panel-body{padding:12px}.console-markdown{word-break:break-word;font-size:14px;line-height:1.5}.console-mermaid-error{color:#f85149;font-size:13px}.console-comment{border-top:1px solid #21262d;padding-top:8px}.console-comment-header{color:#8b949e;gap:8px;font-size:12px;display:flex}.console-comment-author{color:#e6edf3;font-weight:600}.console-files,.console-commits{margin:0;padding:0;list-style:none}.console-commit{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file{flex-direction:column;font-size:13px;display:flex}.console-file-badge{text-align:center;border:1px solid;border-radius:4px;width:18px;font-size:11px}.console-file-path,.console-commit-message{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-add,.console-pr-add{color:#3fb950}.console-file-del,.console-pr-del{color:#f85149}.console-commit-sha{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-actionbar{z-index:100;background:#161b22;border-top:2px solid #30363d;padding:10px 16px;position:fixed;bottom:0;left:0;right:0}.console-operation-bar{flex-direction:column;gap:8px;max-width:920px;margin:0 auto;display:flex}.console-op-group{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.console-op-group-review{gap:10px}.console-op-group-stories{max-height:50vh;overflow-y:auto}.console-op-button{color:#e6edf3;white-space:nowrap;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-op-button:hover{border-color:#484f58}.console-op-button-approve{color:#fff;background:#238636;border-color:#2ea043}.console-op-button-reject{color:#ffd166;background:#7d5000;border-color:#a06800}.console-op-button-wrong{color:#f85149;background:#3a1518;border-color:#f85149}.console-op-button-unneeded{color:#aab0b8;background:#2a2d31;border-color:#6e7681}.console-op-button-snooze{color:#79c0ff;background:#1c2b4a;border-color:#4493f8}.console-pr-section{border:1px solid #30363d;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.console-pr-statbar{color:#8b949e;gap:12px;font-size:12px;display:flex}.console-detail-screen{padding-bottom:140px}.console-panel-open-link{color:#4493f8;font-size:13px;font-weight:400}.console-composer{margin-top:4px}.console-composer-toggle{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:2px 0;font-size:12.5px}.console-composer-toggle:hover{color:#e6edf3}.console-composer-posted{flex-direction:column;gap:8px;margin-top:8px;display:flex}.console-composer-form{margin-top:8px}.console-composer-input{box-sizing:border-box;color:#e6edf3;width:100%;font:inherit;resize:vertical;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:8px;font-size:14px}.console-composer-row{align-items:center;gap:8px;margin-top:6px;display:flex}.console-composer-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:7px 16px;font-size:13px;font-weight:600}.console-composer-submit:disabled{opacity:.6;cursor:default}.console-composer-status{color:#8b949e;font-size:12px}.console-composer-error{color:#f85149}.console-undo-toast{z-index:9998;white-space:nowrap;border-radius:10px;align-items:center;gap:12px;max-width:92vw;padding:12px 18px;font-size:13.5px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0009}.console-undo-toast-green{color:#3fb950;background:#0d3320;border:1px solid #2ea043}.console-undo-toast-amber{color:#ffd166;background:#3a2800;border:1px solid #a06800}.console-undo-toast-red{color:#f85149;background:#3a1518;border:1px solid #da3633}.console-undo-toast-gray{color:#aab0b8;background:#2a2d31;border:1px solid #6e7681}.console-undo-toast-blue{color:#79c0ff;background:#0d1f40;border:1px solid #4493f8}.console-undo-toast-error{color:#f85149;background:#3a1518;border:1px solid #f85149}.console-undo-toast-message{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.console-undo-toast-undo{cursor:pointer;color:inherit;background:#ffffff1f;border:none;border-radius:6px;flex:none;padding:4px 12px;font-size:13px;font-weight:700}.console-undo-toast-undo:hover{background:#ffffff38}.console-undo-toast-countdown{opacity:.7;flex:none;font-size:11px}.console-undo-toast-bar{opacity:.5;background:currentColor;border-radius:0 0 10px 10px;height:3px;transition:width .1s linear;position:absolute;bottom:0;left:0}.console-file-row{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.console-file-row:hover{background:#1a2029}.console-file-caret{color:#8b949e;flex:none;width:1em}.console-file-diff{border-collapse:collapse;width:100%;margin:4px 0 8px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.console-file-diff td{white-space:pre-wrap;word-break:break-word;vertical-align:top;padding:0 10px}.console-diff-ln{text-align:right;color:#6e7681;-webkit-user-select:none;user-select:none;white-space:nowrap;border-right:1px solid #30363d;width:1%;padding:0 8px}.console-diff-add td{background:#2ea04326}.console-diff-add .console-diff-code{color:#aff5b4}.console-diff-del td{background:#f8514926}.console-diff-del .console-diff-code{color:#ffdcd7}.console-diff-hunk td{color:#79c0ff;background:#161b22}.console-diff-ctx .console-diff-code{color:#c9d1d9}.console-file-diff-empty{color:#8b949e;padding:8px 14px;font-size:12px}.console-pr-header{flex-wrap:wrap;align-items:center;gap:10px;padding-top:4px;display:flex}.console-pr-section-title{color:#e6edf3;font-size:15px;font-weight:600}.console-pr-section-state{color:#8b949e;border:1px solid #6e7681;border-radius:999px;padding:1px 8px;font-size:11px}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>TDPM Console</title>
7
- <script type="module" crossorigin src="/assets/index-B3F4E8LD.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-CO3Vvzqr.css">
7
+ <script type="module" crossorigin src="/assets/index-rqxspBmD.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-CdQeHptu.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -4,6 +4,7 @@ import fs from 'fs';
4
4
  import { writeSituationFile } from './situationFileWriter';
5
5
  import { writeConsoleLists } from './consoleListsWriter';
6
6
  import { writeInTmuxByHumanData } from './inTmuxByHumanDataWriter';
7
+ import { reconcileInTmuxByHumanSessions } from './inTmuxByHumanSessionReconciler';
7
8
  import { writeRotationOrderFile } from './rotationOrderFileWriter';
8
9
  import {
9
10
  fetchProjectReadme,
@@ -73,6 +74,7 @@ export class HandleScheduledEventUseCaseHandler {
73
74
  inTmuxConsoleBaseUrl?: string;
74
75
  inTmuxConsoleToken?: string;
75
76
  inTmuxProjectOrder?: string[];
77
+ inTmuxLauncherCommand?: string;
76
78
  credentials: {
77
79
  manager: {
78
80
  github: {
@@ -409,6 +411,21 @@ export class HandleScheduledEventUseCaseHandler {
409
411
  }`,
410
412
  );
411
413
  }
414
+
415
+ try {
416
+ await reconcileInTmuxByHumanSessions({
417
+ inTmuxLauncherCommand: mergedInput.inTmuxLauncherCommand ?? null,
418
+ assigneeLogin: input.manager,
419
+ issues: result.issues,
420
+ localCommandRunner: nodeLocalCommandRunner,
421
+ });
422
+ } catch (error) {
423
+ console.error(
424
+ `Failed to reconcile in-tmux-by-human sessions: ${
425
+ error instanceof Error ? error.message : String(error)
426
+ }`,
427
+ );
428
+ }
412
429
  }
413
430
  return result;
414
431
  };
@@ -0,0 +1,123 @@
1
+ import { Issue } from '../../../domain/entities/Issue';
2
+ import { LocalCommandRunner } from '../../../domain/usecases/adapter-interfaces/LocalCommandRunner';
3
+ import { reconcileInTmuxByHumanSessions } from './inTmuxByHumanSessionReconciler';
4
+
5
+ const ASSIGNEE = 'owner-login';
6
+
7
+ const makeIssue = (overrides: Partial<Issue> = {}): Issue => ({
8
+ nameWithOwner: 'demo/repo',
9
+ number: 1,
10
+ title: 'Issue 1',
11
+ state: 'OPEN',
12
+ status: 'In Tmux by human',
13
+ story: null,
14
+ nextActionDate: null,
15
+ nextActionHour: null,
16
+ estimationMinutes: null,
17
+ dependedIssueUrls: [],
18
+ completionDate50PercentConfidence: null,
19
+ url: 'https://github.com/demo/repo/issues/1',
20
+ assignees: [ASSIGNEE],
21
+ labels: [],
22
+ org: 'demo',
23
+ repo: 'repo',
24
+ body: '',
25
+ itemId: 'item-1',
26
+ isPr: false,
27
+ isInProgress: false,
28
+ isClosed: false,
29
+ createdAt: new Date(),
30
+ author: '',
31
+ ...overrides,
32
+ });
33
+
34
+ type Mocked<T> = jest.Mocked<T> & jest.MockedObject<T>;
35
+
36
+ const createMockRunner = (): Mocked<LocalCommandRunner> => ({
37
+ runCommand: jest.fn(),
38
+ });
39
+
40
+ describe('reconcileInTmuxByHumanSessions', () => {
41
+ it('does nothing when no launcher command is configured', async () => {
42
+ const runner = createMockRunner();
43
+
44
+ await reconcileInTmuxByHumanSessions({
45
+ inTmuxLauncherCommand: null,
46
+ assigneeLogin: ASSIGNEE,
47
+ issues: [makeIssue()],
48
+ localCommandRunner: runner,
49
+ });
50
+
51
+ expect(runner.runCommand.mock.calls).toHaveLength(0);
52
+ });
53
+
54
+ it('launches a detached tmux session when an In Tmux by human session is missing', async () => {
55
+ const runner = createMockRunner();
56
+ runner.runCommand.mockImplementation(async (program, args) => {
57
+ if (program === 'tmux' && args[0] === 'list-sessions') {
58
+ return { stdout: '', stderr: '', exitCode: 0 };
59
+ }
60
+ if (program === 'ps') {
61
+ return { stdout: '', stderr: '', exitCode: 0 };
62
+ }
63
+ return { stdout: '', stderr: '', exitCode: 0 };
64
+ });
65
+
66
+ await reconcileInTmuxByHumanSessions({
67
+ inTmuxLauncherCommand: 'cl',
68
+ assigneeLogin: ASSIGNEE,
69
+ issues: [makeIssue()],
70
+ localCommandRunner: runner,
71
+ });
72
+
73
+ const newSessionCall = runner.runCommand.mock.calls.find(
74
+ (call) => call[0] === 'tmux' && call[1][0] === 'new-session',
75
+ );
76
+ expect(newSessionCall).toBeDefined();
77
+ expect(newSessionCall?.[1]).toEqual([
78
+ 'new-session',
79
+ '-d',
80
+ '-s',
81
+ 'https___github_com_demo_repo_issues_1',
82
+ 'sh',
83
+ '-lc',
84
+ 'exec "$1" "$2"',
85
+ 'sh',
86
+ 'cl',
87
+ 'https://github.com/demo/repo/issues/1',
88
+ ]);
89
+ });
90
+
91
+ it('does not launch when a live session already exists', async () => {
92
+ const runner = createMockRunner();
93
+ runner.runCommand.mockImplementation(async (program, args) => {
94
+ if (program === 'tmux' && args[0] === 'list-sessions') {
95
+ return {
96
+ stdout: 'https___github_com_demo_repo_issues_1\n',
97
+ stderr: '',
98
+ exitCode: 0,
99
+ };
100
+ }
101
+ if (program === 'ps') {
102
+ return {
103
+ stdout: 'claude --name https://github.com/demo/repo/issues/1\n',
104
+ stderr: '',
105
+ exitCode: 0,
106
+ };
107
+ }
108
+ return { stdout: '', stderr: '', exitCode: 0 };
109
+ });
110
+
111
+ await reconcileInTmuxByHumanSessions({
112
+ inTmuxLauncherCommand: 'cl',
113
+ assigneeLogin: ASSIGNEE,
114
+ issues: [makeIssue()],
115
+ localCommandRunner: runner,
116
+ });
117
+
118
+ const newSessionCalls = runner.runCommand.mock.calls.filter(
119
+ (call) => call[0] === 'tmux' && call[1][0] === 'new-session',
120
+ );
121
+ expect(newSessionCalls).toHaveLength(0);
122
+ });
123
+ });
@@ -0,0 +1,29 @@
1
+ import { Issue } from '../../../domain/entities/Issue';
2
+ import { LocalCommandRunner } from '../../../domain/usecases/adapter-interfaces/LocalCommandRunner';
3
+ import { InTmuxByHumanSessionReconcileUseCase } from '../../../domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase';
4
+ import { NodeTmuxSessionRepository } from '../../repositories/NodeTmuxSessionRepository';
5
+
6
+ export type ReconcileInTmuxByHumanSessionsParams = {
7
+ inTmuxLauncherCommand: string | null;
8
+ assigneeLogin: string;
9
+ issues: Issue[];
10
+ localCommandRunner: LocalCommandRunner;
11
+ };
12
+
13
+ export const reconcileInTmuxByHumanSessions = async (
14
+ params: ReconcileInTmuxByHumanSessionsParams,
15
+ ): Promise<void> => {
16
+ const { inTmuxLauncherCommand, assigneeLogin, issues, localCommandRunner } =
17
+ params;
18
+ if (!inTmuxLauncherCommand || !assigneeLogin) {
19
+ return;
20
+ }
21
+ const useCase = new InTmuxByHumanSessionReconcileUseCase(
22
+ new NodeTmuxSessionRepository(localCommandRunner),
23
+ );
24
+ await useCase.run({
25
+ issues,
26
+ assigneeLogin,
27
+ launcherCommand: inTmuxLauncherCommand,
28
+ });
29
+ };
@@ -0,0 +1,100 @@
1
+ import { LocalCommandRunner } from '../../domain/usecases/adapter-interfaces/LocalCommandRunner';
2
+ import { NodeTmuxSessionRepository } from './NodeTmuxSessionRepository';
3
+
4
+ type Mocked<T> = jest.Mocked<T> & jest.MockedObject<T>;
5
+
6
+ const createMockRunner = (): Mocked<LocalCommandRunner> => ({
7
+ runCommand: jest.fn(),
8
+ });
9
+
10
+ describe('NodeTmuxSessionRepository', () => {
11
+ describe('listLiveSessionNames', () => {
12
+ it('parses tmux session names and drops blank lines', async () => {
13
+ const runner = createMockRunner();
14
+ runner.runCommand.mockResolvedValue({
15
+ stdout: 'session-a\nsession-b\n\n',
16
+ stderr: '',
17
+ exitCode: 0,
18
+ });
19
+ const repository = new NodeTmuxSessionRepository(runner);
20
+
21
+ const result = await repository.listLiveSessionNames();
22
+
23
+ expect(result).toEqual(['session-a', 'session-b']);
24
+ expect(runner.runCommand.mock.calls[0][0]).toBe('tmux');
25
+ expect(runner.runCommand.mock.calls[0][1]).toEqual([
26
+ 'list-sessions',
27
+ '-F',
28
+ '#{session_name}',
29
+ ]);
30
+ });
31
+
32
+ it('returns an empty list when tmux exits non-zero', async () => {
33
+ const runner = createMockRunner();
34
+ runner.runCommand.mockResolvedValue({
35
+ stdout: '',
36
+ stderr: 'no server running',
37
+ exitCode: 1,
38
+ });
39
+ const repository = new NodeTmuxSessionRepository(runner);
40
+
41
+ const result = await repository.listLiveSessionNames();
42
+
43
+ expect(result).toEqual([]);
44
+ });
45
+ });
46
+
47
+ describe('listInteractiveProcessCommandLines', () => {
48
+ it('parses process command lines from ps output', async () => {
49
+ const runner = createMockRunner();
50
+ runner.runCommand.mockResolvedValue({
51
+ stdout:
52
+ 'claude --name https://github.com/demo/repo/issues/1\n/usr/bin/tmux\n',
53
+ stderr: '',
54
+ exitCode: 0,
55
+ });
56
+ const repository = new NodeTmuxSessionRepository(runner);
57
+
58
+ const result = await repository.listInteractiveProcessCommandLines();
59
+
60
+ expect(result).toEqual([
61
+ 'claude --name https://github.com/demo/repo/issues/1',
62
+ '/usr/bin/tmux',
63
+ ]);
64
+ expect(runner.runCommand.mock.calls[0][0]).toBe('ps');
65
+ expect(runner.runCommand.mock.calls[0][1]).toEqual(['-eo', 'args=']);
66
+ });
67
+ });
68
+
69
+ describe('launchDetachedSession', () => {
70
+ it('creates a detached tmux session running the launcher command with the issue url', async () => {
71
+ const runner = createMockRunner();
72
+ runner.runCommand.mockResolvedValue({
73
+ stdout: '',
74
+ stderr: '',
75
+ exitCode: 0,
76
+ });
77
+ const repository = new NodeTmuxSessionRepository(runner);
78
+
79
+ await repository.launchDetachedSession(
80
+ 'https___github_com_demo_repo_issues_1',
81
+ 'cl',
82
+ 'https://github.com/demo/repo/issues/1',
83
+ );
84
+
85
+ expect(runner.runCommand.mock.calls[0][0]).toBe('tmux');
86
+ expect(runner.runCommand.mock.calls[0][1]).toEqual([
87
+ 'new-session',
88
+ '-d',
89
+ '-s',
90
+ 'https___github_com_demo_repo_issues_1',
91
+ 'sh',
92
+ '-lc',
93
+ 'exec "$1" "$2"',
94
+ 'sh',
95
+ 'cl',
96
+ 'https://github.com/demo/repo/issues/1',
97
+ ]);
98
+ });
99
+ });
100
+ });
@@ -0,0 +1,53 @@
1
+ import { LocalCommandRunner } from '../../domain/usecases/adapter-interfaces/LocalCommandRunner';
2
+ import { TmuxSessionRepository } from '../../domain/usecases/adapter-interfaces/TmuxSessionRepository';
3
+
4
+ export class NodeTmuxSessionRepository implements TmuxSessionRepository {
5
+ constructor(private readonly localCommandRunner: LocalCommandRunner) {}
6
+
7
+ listLiveSessionNames = async (): Promise<string[]> => {
8
+ const { stdout, exitCode } = await this.localCommandRunner.runCommand(
9
+ 'tmux',
10
+ ['list-sessions', '-F', '#{session_name}'],
11
+ );
12
+ if (exitCode !== 0) {
13
+ return [];
14
+ }
15
+ return stdout
16
+ .split('\n')
17
+ .map((line) => line.trim())
18
+ .filter((line) => line.length > 0);
19
+ };
20
+
21
+ listInteractiveProcessCommandLines = async (): Promise<string[]> => {
22
+ const { stdout, exitCode } = await this.localCommandRunner.runCommand(
23
+ 'ps',
24
+ ['-eo', 'args='],
25
+ );
26
+ if (exitCode !== 0) {
27
+ return [];
28
+ }
29
+ return stdout
30
+ .split('\n')
31
+ .map((line) => line.trim())
32
+ .filter((line) => line.length > 0);
33
+ };
34
+
35
+ launchDetachedSession = async (
36
+ sessionName: string,
37
+ launcherCommand: string,
38
+ issueUrl: string,
39
+ ): Promise<void> => {
40
+ await this.localCommandRunner.runCommand('tmux', [
41
+ 'new-session',
42
+ '-d',
43
+ '-s',
44
+ sessionName,
45
+ 'sh',
46
+ '-lc',
47
+ `exec "$1" "$2"`,
48
+ 'sh',
49
+ launcherCommand,
50
+ issueUrl,
51
+ ]);
52
+ };
53
+ }
@@ -0,0 +1,9 @@
1
+ export interface TmuxSessionRepository {
2
+ listLiveSessionNames: () => Promise<string[]>;
3
+ listInteractiveProcessCommandLines: () => Promise<string[]>;
4
+ launchDetachedSession: (
5
+ sessionName: string,
6
+ launcherCommand: string,
7
+ issueUrl: string,
8
+ ) => Promise<void>;
9
+ }
@@ -0,0 +1,186 @@
1
+ import { Issue } from '../../entities/Issue';
2
+ import { IN_TMUX_STATUS_NAME } from '../../entities/WorkflowStatus';
3
+ import { TmuxSessionRepository } from '../adapter-interfaces/TmuxSessionRepository';
4
+ import {
5
+ InTmuxByHumanSessionReconcileUseCase,
6
+ toTmuxSessionName,
7
+ } from './InTmuxByHumanSessionReconcileUseCase';
8
+
9
+ const ASSIGNEE = 'owner-login';
10
+ const LAUNCHER = 'cl';
11
+
12
+ let issueCounter = 0;
13
+ const makeIssue = (overrides: Partial<Issue> = {}): Issue => {
14
+ issueCounter += 1;
15
+ return {
16
+ nameWithOwner: 'demo/repo',
17
+ number: issueCounter,
18
+ title: `Issue ${issueCounter}`,
19
+ state: 'OPEN',
20
+ status: IN_TMUX_STATUS_NAME,
21
+ story: null,
22
+ nextActionDate: null,
23
+ nextActionHour: null,
24
+ estimationMinutes: null,
25
+ dependedIssueUrls: [],
26
+ completionDate50PercentConfidence: null,
27
+ url: `https://github.com/demo/repo/issues/${issueCounter}`,
28
+ assignees: [ASSIGNEE],
29
+ labels: [],
30
+ org: 'demo',
31
+ repo: 'repo',
32
+ body: '',
33
+ itemId: `item-${issueCounter}`,
34
+ isPr: false,
35
+ isInProgress: false,
36
+ isClosed: false,
37
+ createdAt: new Date(),
38
+ author: '',
39
+ ...overrides,
40
+ };
41
+ };
42
+
43
+ const createFakeTmuxSessionRepository = (state: {
44
+ liveSessionNames: string[];
45
+ processCommandLines: string[];
46
+ }): TmuxSessionRepository & {
47
+ launches: {
48
+ sessionName: string;
49
+ launcherCommand: string;
50
+ issueUrl: string;
51
+ }[];
52
+ } => {
53
+ const launches: {
54
+ sessionName: string;
55
+ launcherCommand: string;
56
+ issueUrl: string;
57
+ }[] = [];
58
+ return {
59
+ launches,
60
+ listLiveSessionNames: async () => state.liveSessionNames,
61
+ listInteractiveProcessCommandLines: async () => state.processCommandLines,
62
+ launchDetachedSession: async (sessionName, launcherCommand, issueUrl) => {
63
+ launches.push({ sessionName, launcherCommand, issueUrl });
64
+ },
65
+ };
66
+ };
67
+
68
+ describe('InTmuxByHumanSessionReconcileUseCase', () => {
69
+ beforeEach(() => {
70
+ issueCounter = 0;
71
+ });
72
+
73
+ it('launches a detached session for an In Tmux by human issue with no live session', async () => {
74
+ const issue = makeIssue();
75
+ const repository = createFakeTmuxSessionRepository({
76
+ liveSessionNames: [],
77
+ processCommandLines: [],
78
+ });
79
+ const useCase = new InTmuxByHumanSessionReconcileUseCase(repository);
80
+
81
+ const result = await useCase.run({
82
+ issues: [issue],
83
+ assigneeLogin: ASSIGNEE,
84
+ launcherCommand: LAUNCHER,
85
+ });
86
+
87
+ expect(repository.launches).toEqual([
88
+ {
89
+ sessionName: toTmuxSessionName(issue.url),
90
+ launcherCommand: LAUNCHER,
91
+ issueUrl: issue.url,
92
+ },
93
+ ]);
94
+ expect(result.launchedIssueUrls).toEqual([issue.url]);
95
+ });
96
+
97
+ it('does not launch when a live session already exists for the issue', async () => {
98
+ const issue = makeIssue();
99
+ const repository = createFakeTmuxSessionRepository({
100
+ liveSessionNames: [toTmuxSessionName(issue.url)],
101
+ processCommandLines: [
102
+ `claude --model opus --agent leader --name ${issue.url}`,
103
+ ],
104
+ });
105
+ const useCase = new InTmuxByHumanSessionReconcileUseCase(repository);
106
+
107
+ const result = await useCase.run({
108
+ issues: [issue],
109
+ assigneeLogin: ASSIGNEE,
110
+ launcherCommand: LAUNCHER,
111
+ });
112
+
113
+ expect(repository.launches).toEqual([]);
114
+ expect(result.launchedIssueUrls).toEqual([]);
115
+ });
116
+
117
+ it('treats a session as missing when the tmux session exists but no process advertises the issue url', async () => {
118
+ const issue = makeIssue();
119
+ const repository = createFakeTmuxSessionRepository({
120
+ liveSessionNames: [toTmuxSessionName(issue.url)],
121
+ processCommandLines: ['claude --model opus --name some-other-task'],
122
+ });
123
+ const useCase = new InTmuxByHumanSessionReconcileUseCase(repository);
124
+
125
+ const result = await useCase.run({
126
+ issues: [issue],
127
+ assigneeLogin: ASSIGNEE,
128
+ launcherCommand: LAUNCHER,
129
+ });
130
+
131
+ expect(repository.launches).toHaveLength(1);
132
+ expect(result.launchedIssueUrls).toEqual([issue.url]);
133
+ });
134
+
135
+ it('launches only the missing sessions across multiple In Tmux by human issues', async () => {
136
+ const liveIssue = makeIssue();
137
+ const missingIssueOne = makeIssue();
138
+ const missingIssueTwo = makeIssue();
139
+ const repository = createFakeTmuxSessionRepository({
140
+ liveSessionNames: [toTmuxSessionName(liveIssue.url)],
141
+ processCommandLines: [`claude --model opus --name ${liveIssue.url}`],
142
+ });
143
+ const useCase = new InTmuxByHumanSessionReconcileUseCase(repository);
144
+
145
+ const result = await useCase.run({
146
+ issues: [liveIssue, missingIssueOne, missingIssueTwo],
147
+ assigneeLogin: ASSIGNEE,
148
+ launcherCommand: LAUNCHER,
149
+ });
150
+
151
+ expect(result.launchedIssueUrls).toEqual([
152
+ missingIssueOne.url,
153
+ missingIssueTwo.url,
154
+ ]);
155
+ expect(repository.launches.map((launch) => launch.issueUrl)).toEqual([
156
+ missingIssueOne.url,
157
+ missingIssueTwo.url,
158
+ ]);
159
+ });
160
+
161
+ it('ignores issues that are not In Tmux by human, closed, or assigned to another login', async () => {
162
+ const otherStatusIssue = makeIssue({ status: 'Done' });
163
+ const closedIssue = makeIssue({ isClosed: true });
164
+ const otherAssigneeIssue = makeIssue({ assignees: ['someone-else'] });
165
+ const repository = createFakeTmuxSessionRepository({
166
+ liveSessionNames: [],
167
+ processCommandLines: [],
168
+ });
169
+ const useCase = new InTmuxByHumanSessionReconcileUseCase(repository);
170
+
171
+ const result = await useCase.run({
172
+ issues: [otherStatusIssue, closedIssue, otherAssigneeIssue],
173
+ assigneeLogin: ASSIGNEE,
174
+ launcherCommand: LAUNCHER,
175
+ });
176
+
177
+ expect(repository.launches).toEqual([]);
178
+ expect(result.launchedIssueUrls).toEqual([]);
179
+ });
180
+
181
+ it('transforms an issue url into a tmux session name by replacing non-alphanumeric characters', () => {
182
+ expect(toTmuxSessionName('https://github.com/demo/repo/issues/42')).toBe(
183
+ 'https___github_com_demo_repo_issues_42',
184
+ );
185
+ });
186
+ });