github-issue-tower-defence-management 2.156.0 → 2.157.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.
- package/bin/adapter/entry-points/console/ui-dist/assets/index-B1XFeyWN.css +2 -0
- package/bin/adapter/entry-points/console/ui-dist/assets/{index-CsUFYMnL.js → index-Tada7EPq.js} +1 -1
- package/bin/adapter/entry-points/console/ui-dist/index.html +2 -2
- package/bin/adapter/repositories/GitHubIssueCommentRepository.js +31 -16
- package/bin/adapter/repositories/GitHubIssueCommentRepository.js.map +1 -1
- package/bin/adapter/repositories/issue/RestIssueRepository.js +2 -0
- package/bin/adapter/repositories/issue/RestIssueRepository.js.map +1 -1
- package/bin/domain/services/commentCreateWithDedupRetry.js +2 -2
- package/bin/domain/services/commentCreateWithDedupRetry.js.map +1 -1
- package/bin/domain/usecases/ChangeStatusByStoryColorUseCase.js +12 -7
- package/bin/domain/usecases/ChangeStatusByStoryColorUseCase.js.map +1 -1
- package/bin/domain/usecases/ClearDependedIssueURLUseCase.js +12 -7
- package/bin/domain/usecases/ClearDependedIssueURLUseCase.js.map +1 -1
- package/bin/domain/usecases/CliErrorReportUseCase.js +12 -7
- package/bin/domain/usecases/CliErrorReportUseCase.js.map +1 -1
- package/bin/domain/usecases/ConflictedIssueRevertUseCase.js +16 -15
- package/bin/domain/usecases/ConflictedIssueRevertUseCase.js.map +1 -1
- package/bin/domain/usecases/ConsoleErrorReportUseCase.js +12 -7
- package/bin/domain/usecases/ConsoleErrorReportUseCase.js.map +1 -1
- package/bin/domain/usecases/CreateEstimationIssueUseCase.js +12 -7
- package/bin/domain/usecases/CreateEstimationIssueUseCase.js.map +1 -1
- package/bin/domain/usecases/DailySecurityScanUseCase.js +15 -9
- package/bin/domain/usecases/DailySecurityScanUseCase.js.map +1 -1
- package/bin/domain/usecases/HandleScheduledEventUseCase.js +15 -9
- package/bin/domain/usecases/HandleScheduledEventUseCase.js.map +1 -1
- package/bin/domain/usecases/StaleTaskPullRequestCloseUseCase.js +12 -7
- package/bin/domain/usecases/StaleTaskPullRequestCloseUseCase.js.map +1 -1
- package/bin/domain/usecases/StartPreparationUseCase.js +17 -23
- package/bin/domain/usecases/StartPreparationUseCase.js.map +1 -1
- package/bin/domain/usecases/SubscriptionDisabledIssueUseCase.js +11 -8
- package/bin/domain/usecases/SubscriptionDisabledIssueUseCase.js.map +1 -1
- package/bin/domain/usecases/reportSilentRedispatchWorkflowIssue.js +10 -8
- package/bin/domain/usecases/reportSilentRedispatchWorkflowIssue.js.map +1 -1
- package/package.json +1 -1
- package/types/adapter/repositories/GitHubIssueCommentRepository.d.ts.map +1 -1
- package/types/adapter/repositories/issue/RestIssueRepository.d.ts.map +1 -1
- package/types/domain/services/commentCreateWithDedupRetry.d.ts +1 -1
- package/types/domain/services/commentCreateWithDedupRetry.d.ts.map +1 -1
- package/types/domain/usecases/ChangeStatusByStoryColorUseCase.d.ts +3 -1
- package/types/domain/usecases/ChangeStatusByStoryColorUseCase.d.ts.map +1 -1
- package/types/domain/usecases/ClearDependedIssueURLUseCase.d.ts +3 -1
- package/types/domain/usecases/ClearDependedIssueURLUseCase.d.ts.map +1 -1
- package/types/domain/usecases/CliErrorReportUseCase.d.ts +3 -1
- package/types/domain/usecases/CliErrorReportUseCase.d.ts.map +1 -1
- package/types/domain/usecases/ConflictedIssueRevertUseCase.d.ts +4 -1
- package/types/domain/usecases/ConflictedIssueRevertUseCase.d.ts.map +1 -1
- package/types/domain/usecases/ConsoleErrorReportUseCase.d.ts +3 -1
- package/types/domain/usecases/ConsoleErrorReportUseCase.d.ts.map +1 -1
- package/types/domain/usecases/CreateEstimationIssueUseCase.d.ts +3 -1
- package/types/domain/usecases/CreateEstimationIssueUseCase.d.ts.map +1 -1
- package/types/domain/usecases/DailySecurityScanUseCase.d.ts +4 -1
- package/types/domain/usecases/DailySecurityScanUseCase.d.ts.map +1 -1
- package/types/domain/usecases/HandleScheduledEventUseCase.d.ts +4 -1
- package/types/domain/usecases/HandleScheduledEventUseCase.d.ts.map +1 -1
- package/types/domain/usecases/StaleTaskPullRequestCloseUseCase.d.ts +3 -1
- package/types/domain/usecases/StaleTaskPullRequestCloseUseCase.d.ts.map +1 -1
- package/types/domain/usecases/StartPreparationUseCase.d.ts +4 -1
- package/types/domain/usecases/StartPreparationUseCase.d.ts.map +1 -1
- package/types/domain/usecases/SubscriptionDisabledIssueUseCase.d.ts +3 -1
- package/types/domain/usecases/SubscriptionDisabledIssueUseCase.d.ts.map +1 -1
- package/types/domain/usecases/reportSilentRedispatchWorkflowIssue.d.ts +2 -1
- package/types/domain/usecases/reportSilentRedispatchWorkflowIssue.d.ts.map +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/index-Dt_tZwOn.css +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@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-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--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:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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;-webkit-text-decoration:inherit;-webkit-text-decoration: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:where(:not(iframe)){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]){appearance:button}::file-selector-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{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.grow{flex-grow:1}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.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}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.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}}html{font-size:clamp(15px,2.1vw,26px)}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;width:100%;height:100dvh;display:flex;overflow:hidden}.console-list-screen{flex:1;min-height:0;overflow-y:auto}.console-tabbar{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);background:#161b22;border-bottom:2px solid #30363d;flex-direction:column;display:flex}.console-tabbar-top{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;align-items:center;gap:12px;padding:4px 8px;display:flex;overflow-x:auto}.console-tabbar-bottom{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;align-items:stretch;gap:0;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:.8125rem;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;background:#2f81f726;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:.6875rem;font-weight:700;line-height:1.5}.console-tab-badge[data-zero=true]{color:#8b949e;background:#30363d}.console-tab-pjname{align-self:center;margin-left:4rem;padding:0 8px}.console-tab-pjname-button{color:#e6edf3;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:3px;padding:2px 4px;font-size:.8125rem;font-weight:600;line-height:1;display:flex}.console-tab-pjname-button:hover{color:#e6edf3;background:#21262d}.console-tab-pjname-arrow{font-size:.625rem}.console-tab-pjname-dropdown{z-index:100;background:#161b22;border:1px solid #30363d;border-radius:6px;min-width:120px;margin:0;padding:4px 0;list-style:none;box-shadow:0 8px 24px #01040980}.console-tab-pjname-option{color:#e6edf3;cursor:pointer;text-align:left;background:0 0;border:none;width:100%;padding:12px 16px;font-size:.7188rem;display:block}.console-tab-pjname-option:hover,.console-tab-pjname-option[data-active=true]{background:#21262d}.console-tab-pjname-button[data-disabled=true],.console-tab-pjname-option[data-disabled=true]{color:#8b949e}.console-tab-pjname-disabled-label{color:#8b949e;margin-left:4px;font-size:.625rem;font-weight:400}.console-tab-project-link{color:#8b949e;border-radius:4px;padding:8px 10px;font-size:.7188rem;text-decoration:none}.console-tab-project-link:hover{color:#e6edf3;background:#21262d}.console-tab-geninfo{color:#8b949e;align-self:center;padding:0 4px;font-size:.6875rem}.console-tab-settings{align-self:center;align-items:center;padding:0 4px;display:inline-flex}.console-project-timer-bar{box-sizing:border-box;background:#2d0000;align-items:center;gap:8px;width:100%;min-height:28px;padding:4px 12px;display:flex;position:relative}.console-project-timer-bar-track{background:#4d0000;border-radius:3px;flex:1;height:6px;overflow:hidden}.console-project-timer-bar-fill{background:#e53e3e;border-radius:3px;height:100%;transition:width .5s linear}.console-project-timer-bar-label{color:#e53e3e;white-space:nowrap;text-align:right;min-width:60px;font-size:.6875rem;font-weight:700}.console-timer-settings-button{color:#8b949e;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:8px 12px;font-size:1rem;line-height:1}.console-timer-settings-button:hover{color:#e6edf3;background:#21262d}.console-timer-settings-button--active{color:#e67e00}.console-timer-settings-overlay{z-index:100;position:fixed;inset:0}.console-timer-settings-backdrop{cursor:default;z-index:-1;background:#01040999;border:none;position:fixed;inset:0}.console-timer-settings-dialog-inner{background:#161b22;border:1px solid #30363d;border-radius:8px;min-width:280px;max-width:400px;max-height:80vh;padding:20px;overflow-y:auto}.console-timer-settings-title{color:#e6edf3;margin:0 0 16px;font-size:.9375rem;font-weight:600}.console-timer-settings-row{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.console-timer-settings-label{color:#c9d1d9;font-size:.875rem}.console-timer-settings-loading{color:#8b949e;padding:8px 0;font-size:.875rem}.console-timer-settings-project-table{border-collapse:collapse;width:100%;margin-bottom:12px}.console-timer-settings-th{color:#8b949e;text-align:left;border-bottom:1px solid #30363d;padding:0 4px 6px;font-size:.6875rem;font-weight:500}.console-timer-settings-th-minutes{text-align:right}.console-timer-settings-project-row td{vertical-align:middle;border-bottom:1px solid #21262d;padding:5px 4px}.console-timer-settings-pjcode{color:#c9d1d9;cursor:pointer;font-family:ui-monospace,SFMono-Regular,monospace;font-size:.8125rem;display:block}.console-timer-settings-minutes-cell{white-space:nowrap;text-align:right}.console-timer-settings-minutes-stepper{align-items:center;gap:2px;display:inline-flex}.console-timer-settings-minutes-step-btn{color:#c9d1d9;cursor:pointer;-webkit-user-select:none;user-select:none;background:#21262d;border:1px solid #30363d;border-radius:4px;padding:2px 5px;font-size:.875rem;line-height:1}.console-timer-settings-minutes-step-btn:hover{color:#e6edf3;background:#30363d}.console-timer-settings-minutes-input{color:#e6edf3;text-align:right;background:#0d1117;border:1px solid #30363d;border-radius:4px;width:40px;padding:3px 4px;font-size:.8125rem}.console-timer-settings-minutes-label{color:#8b949e;width:24px;font-size:.75rem;display:inline-block}.console-timer-settings-actions{justify-content:flex-end;margin-top:16px;display:flex}.console-timer-settings-save{color:#fff;cursor:pointer;background:#238636;border:1px solid #f0f6fc1a;border-radius:6px;padding:6px 14px;font-size:.8125rem;font-weight:500}.console-timer-settings-save:hover{background:#2ea043}.console-modal-dialog{z-index:100;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.console-modal-backdrop{cursor:default;z-index:-1;background:#01040999;border:none;width:100%;height:100%;position:fixed;inset:0}.console-modal-inner{background:#161b22;border:1px solid #30363d;border-radius:8px;width:100%;min-width:280px;max-width:400px;max-height:80vh;padding:20px;position:relative;overflow-y:auto}.console-modal-title{color:#e6edf3;margin:0 0 16px;font-size:.9375rem;font-weight:600}.console-modal-input{box-sizing:border-box;color:#e6edf3;background:#0d1117;border:1px solid #30363d;border-radius:6px;outline:none;width:100%;padding:6px 12px;font-size:.875rem}.console-modal-input:focus{border-color:#4493f8;box-shadow:0 0 0 3px #4493f84d}.console-modal-actions{gap:8px;margin-top:16px;display:flex}.console-toggle-switch{cursor:pointer;background:#30363d;border:none;border-radius:12px;flex-shrink:0;align-items:center;width:44px;height:24px;padding:2px;transition:background .2s;display:inline-flex;position:relative}.console-toggle-switch--on{background:#238636}.console-toggle-switch-thumb{background:#e6edf3;border-radius:50%;width:20px;height:20px;transition:transform .2s;display:block}.console-toggle-switch--on .console-toggle-switch-thumb{transform:translate(20px)}.console-toggle-switch:focus-visible{outline-offset:2px;outline:2px solid #58a6ff}.console-tab-settings-button{color:#8b949e;cursor:pointer;background:0 0;border:1px solid #30363d;border-radius:6px;align-self:center;margin-left:4px;padding:8px 12px;font-size:1rem;line-height:1}.console-tab-settings-button:hover{color:#e6edf3;border-color:#58a6ff}.console-settings-modal{z-index:1000;background:#0d1117;flex-direction:column;display:flex;position:fixed;inset:0}.console-settings-modal-bar{background:#161b22;border-bottom:1px solid #30363d;justify-content:space-between;align-items:center;padding:12px 18px;display:flex}.console-settings-modal-title{color:#e6edf3;font-size:1rem;font-weight:600}.console-settings-modal-close{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:1.125rem;line-height:1}.console-settings-modal-close:hover{color:#e6edf3}.console-settings-modal-body{flex-direction:column;flex:1;gap:16px;padding:24px 18px;display:flex}.console-settings-modal-loading{color:#8b949e;font-size:.875rem}.console-settings-modal-project-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.console-settings-modal-project-row{align-items:center;gap:10px;display:flex}.console-settings-modal-label{color:#e6edf3;flex-shrink:0;min-width:8rem;font-size:.875rem;font-weight:500}.console-settings-modal-input{color:#e6edf3;text-align:right;background:#0d1117;border:1px solid #30363d;border-radius:6px;width:4rem;padding:6px 10px;font-size:.875rem}.console-settings-modal-input:focus{border-color:#58a6ff;outline:none}.console-settings-modal-create-link{color:#58a6ff;border-radius:3px;justify-content:center;align-items:center;width:20px;height:20px;font-size:1rem;line-height:1;text-decoration:none;display:inline-flex}.console-settings-modal-create-link:hover{color:#79c0ff;background:#21262d}.console-settings-modal-error{color:#f85149;font-size:.875rem}.console-settings-modal-actions{gap:8px;display:flex}.console-settings-modal-save{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:6px 16px;font-size:.875rem;font-weight:500}.console-settings-modal-save:hover:not(:disabled){background:#2ea043}.console-settings-modal-save:disabled{opacity:.5;cursor:not-allowed}.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}.console-queued-item-title{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.console-queued-item-badges{flex-wrap:wrap;flex:1 1 0;align-items:center;gap:4px;min-width:0;display:flex}.console-queued-item-actions{flex:1 1 0;min-width:0}.console-group-header{background:#0b0f14;border-bottom:1px solid #21262d;justify-content:space-between;align-items:center;padding:6px 12px;display:flex}.console-storytag{white-space:nowrap;border:1px solid #0000;border-radius:6px;align-items:center;gap:8px;padding:2px 8px 2px 4px;font-size:.8125rem;font-weight:700;display:inline-flex}.console-story-dot{border-radius:999px;width:10px;height:10px;display:inline-block}.console-copy-story-name-button{color:#c9d1d9;border:1px solid #30363d;border-radius:6px;height:24px;padding:0 8px;font-size:.75rem}.console-copy-story-name-button:hover{color:#e6edf3;background-color:#21262d}.console-group-count{color:#8b949e;font-size:.75rem}.console-story-color-palette{flex-wrap:wrap;gap:4px;padding:6px 0;display:flex}.console-story-color-swatch{cursor:pointer;color:#e6edf3;border:2px solid #0000;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;font-size:.625rem;display:inline-flex}.console-story-color-swatch:hover{border-color:#e6edf3}.console-story-color-swatch:disabled{opacity:.4;cursor:not-allowed}.console-story-color-swatch-label{font-size:.5rem;line-height:1}.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{align-items:center;gap:6px;font-size:.9063rem;font-weight:600;display:flex}.console-item-sub{color:#8b949e;margin-top:3px;font-size:.7813rem;display:block}.console-item-pill{color:#8b949e;border:1px solid #30363d;border-radius:20px;margin-right:6px;padding:1px 8px;font-size:.6875rem;display:inline-block}.console-item-createdat{color:#8b949e;cursor:help}.console-item-fields,.console-item-status-agent{color:#adbac7;flex-wrap:wrap;gap:4px 10px;margin-top:4px;font-size:.7188rem;display:flex}.console-item-field{word-break:break-all;align-items:baseline;gap:4px;min-width:0;display:inline-flex}.console-item-field-label{color:#6e7681;text-transform:uppercase;letter-spacing:.03em;font-size:.625rem}.console-item-executive-summary{color:#8b949e;white-space:pre-line;word-break:break-word;background:#0d1117;border-left:2px solid #30363d;border-radius:0 4px 4px 0;margin-top:6px;padding:6px 8px;font-size:.75rem;display:block}.console-list-message{color:#8b949e;padding:16px;font-size:.875rem}.console-list-empty{text-align:center;color:#8b949e;padding:40px;font-size:.875rem}.console-list-error,.console-detail-fetch-error{color:#f85149}.console-detail-fetch-error-line{margin:0}.console-comment-notloaded,.console-files-notloaded,.console-commits-notloaded,.console-detail-body-notloaded{color:#8b949e}.console-detail{flex-direction:column;flex:1;min-height:0;display:flex}.console-detail-header{background:#0d1117;flex-direction:column;flex-shrink:0;gap:12px;padding:16px 16px 12px;display:flex}.console-detail-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:0 16px 12px;display:flex;overflow-y:auto}.console-detail-topline{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.console-detail-depended-issue-url{flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.8125rem;display:flex}.console-detail-depended-issue-url-label{color:#6e7681;text-transform:uppercase;letter-spacing:.03em;font-size:.625rem}.console-detail-depended-issue-url-link{align-items:center;display:inline-flex}.console-detail-title{align-items:center;gap:8px;margin:0;font-size:1.25rem;display:flex}.console-detail-title-text{flex:1}.console-detail-title-edit{color:#c9d1d9;cursor:pointer;vertical-align:middle;background:#21262d;border:1px solid #30363d;border-radius:6px;height:24px;padding:0 8px;font-size:.75rem;font-weight:600;line-height:22px}.console-detail-title-edit:hover{background:#30363d;border-color:#8b949e}.console-detail-title-text--editing{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.console-detail-title-input{color:#e6edf3;background:#0d1117;border:1px solid #30363d;border-radius:6px;flex:1;min-width:0;padding:6px 10px;font-size:.875rem}.console-detail-title-input:focus{border-color:#58a6ff;outline:none}.console-detail-title-save{color:#fff;cursor:pointer;white-space:nowrap;background:#238636;border:1px solid #2ea043;border-radius:6px;height:24px;padding:0 8px;font-size:.75rem;font-weight:600;line-height:22px}.console-detail-title-save:hover{background:#2ea043}.console-detail-title-cancel{color:#c9d1d9;cursor:pointer;white-space:nowrap;background:#21262d;border:1px solid #30363d;border-radius:6px;height:24px;padding:0 8px;font-size:.75rem;font-weight:600;line-height:22px}.console-detail-title-cancel:hover{background:#30363d;border-color:#8b949e}.console-detail-title-error{color:#f85149;white-space:nowrap;font-size:.875rem}.console-detail-number{color:#8b949e;font-weight:400}.console-detail-closed-label{color:#a371f7;font-size:.8125rem}.console-detail-subbar{align-items:center;gap:12px;font-size:.8125rem;display:flex}.console-detail-link{color:#4493f8}.console-detail-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-copy-url-button{color:#c9d1d9;border:1px solid #30363d;border-radius:6px;height:24px;padding:0 8px;font-size:.75rem}.console-copy-url-button:hover{color:#e6edf3;background-color:#21262d}.console-label-chip,.console-detail-status-chip{border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:.75rem;display:inline-block}.console-detail-agent-chip{color:#8b949e;border:1px solid #30363d;border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:400;display:inline-block}.console-detail-pr-status{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.console-related-pr-group{align-items:center;gap:6px;display:inline-flex}.console-related-pr-label{color:#8b949e;font-size:.75rem}.console-detail-ci-missing{opacity:.85;font-weight:400}.console-detail-mergeable-chip{font-weight:600}.console-detail-mergeable-chip-unknown{opacity:.7;font-weight:400}.console-detail-createdat{color:#8b949e;font-size:.75rem}.console-panel{border:1px solid #30363d;border-radius:8px;overflow:clip}.console-panel-header{background:#161b22;justify-content:space-between;align-items:center;display:flex}.console-panel-toggle{color:#e6edf3;text-align:left;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;gap:8px;padding:6px 12px;font-size:.875rem;font-weight:600;display:flex}.console-panel-toggle:hover{background:#1a2029}.console-panel-action{padding:6px 12px}.console-panel-body{padding:12px}.console-markdown{word-break:break-word;font-size:.875rem;line-height:1.5}.console-markdown ul{margin:.5em 0;padding-left:1.5em;list-style:outside}.console-markdown ol{margin:.5em 0;padding-left:1.5em;list-style:decimal}.console-markdown li{margin:.25em 0}.console-markdown table{border-collapse:collapse;margin:.5em 0}.console-markdown th,.console-markdown td{border:1px solid #30363d;padding:4px 8px}.console-markdown th{background:#161b22}.console-markdown h1,.console-markdown h2,.console-markdown h3,.console-markdown h4,.console-markdown h5,.console-markdown h6{margin:1em 0 .5em;font-weight:700;line-height:1.25}.console-markdown h1{font-size:1.6em}.console-markdown h2{font-size:1.4em}.console-markdown h3{font-size:1.2em}.console-markdown h4{font-size:1.05em}.console-markdown h5{font-size:.95em}.console-markdown h6{color:#8b949e;font-size:.9em}.console-markdown pre{background:#161b22;border:1px solid #30363d;border-radius:6px;margin:.5em 0;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8125rem;line-height:1.45;overflow-x:auto}.console-markdown code{background:#6e768166;border-radius:4px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}.console-markdown pre code{font-size:inherit;background:0 0;border-radius:0;padding:0}.console-markdown-code-block{flex-direction:column;margin:.5em 0;display:flex}.console-markdown-code-block pre{margin:0}.console-markdown-code-copy-host{justify-content:flex-end;margin-bottom:4px;display:flex}.console-copy-code-button{color:#c9d1d9;background-color:#161b22;border:1px solid #30363d;border-radius:6px;height:24px;padding:0 8px;font-size:.75rem}.console-copy-code-button:hover{color:#e6edf3;background-color:#21262d}.console-markdown blockquote{color:#8b949e;border-left:3px solid #30363d;margin:.5em 0;padding:0 1em}.console-markdown a{color:#4493f8;text-decoration:none}.console-markdown a:hover{text-decoration:underline}.console-markdown-reference-host{display:inline}.console-markdown-reference{vertical-align:baseline;align-items:center;gap:.25em;display:inline-flex}.console-markdown-reference .console-item-icon{flex-shrink:0}.console-markdown-reference-title{text-decoration:none}.console-markdown-reference:hover .console-markdown-reference-title{text-decoration:underline}.console-markdown-reference-number{color:#8b949e;flex-shrink:0;font-size:.75em}.console-markdown hr{border:none;border-top:1px solid #30363d;margin:1em 0}.console-mermaid-error{color:#f85149;font-size:.8125rem}.console-mermaid-enlarge{color:#e6edf3;background:#21262d;border:1px solid #30363d;border-radius:6px;width:100%;margin-top:6px;padding:10px 12px;font-size:.8125rem;display:block}.console-mermaid-modal{z-index:1000;background:#0d1117;flex-direction:column;display:flex;position:fixed;inset:0}.console-mermaid-modal-bar{border-bottom:1px solid #30363d;align-items:center;gap:8px;padding:8px 12px;display:flex}.console-mermaid-modal-button,.console-mermaid-modal-close{color:#e6edf3;background:#21262d;border:1px solid #30363d;border-radius:6px;min-width:44px;min-height:44px;font-size:1.125rem}.console-mermaid-modal-button:disabled{opacity:.4}.console-mermaid-modal-close{margin-left:auto}.console-mermaid-modal-scale{text-align:center;color:#8b949e;min-width:4.5rem;font-size:.875rem}.console-mermaid-modal-viewport{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.console-mermaid-modal-canvas{min-width:100%}.console-comment{white-space:nowrap;background:#161b22;border:1px solid #30363d;border-radius:8px;align-items:baseline;gap:8px;margin-bottom:4px;padding:6px 16px;display:flex;overflow:hidden}.console-comment-toggle{min-width:0;color:inherit;font:inherit;cursor:pointer;text-align:left;background:0 0;border:none;flex:1;align-items:baseline;gap:8px;padding:0;display:inline-flex}.console-comment-show-all{color:#e6edf3;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;margin-bottom:10px;padding:6px 12px;font-size:.75rem;font-weight:600}.console-comment-show-all:hover{background-color:#262c34;border-color:#484f58}.console-comment--expandable{cursor:pointer}.console-comment--expandable:hover{border-color:#484f58}.console-comment-author{color:#e6edf3;flex-shrink:0;font-size:.75rem;font-weight:600}.console-comment-time{color:#8b949e;flex-shrink:0;font-size:.75rem}.console-comment-body-preview{text-overflow:ellipsis;white-space:nowrap;color:#8b949e;flex:1;min-width:0;font-size:.75rem;overflow:hidden}.console-comment.is-expanded{white-space:normal;flex-wrap:wrap;overflow:visible}.console-comment-body-expanded{cursor:default;flex-basis:100%;min-width:0}.console-files,.console-commits{margin:0;padding:0;list-style:none}.console-commit{align-items:center;gap:8px;padding:4px 0;font-size:.8125rem;display:flex}.console-file{flex-direction:column;font-size:.8125rem;display:flex}.console-file-tree,.console-file-tree-children{margin:0;padding:0;list-style:none}.console-file-tree-dir{flex-direction:column;display:flex}.console-file-tree-dir-name{color:#8b949e;align-items:center;gap:6px;padding:4px 0;font-weight:600;display:flex}.console-file-tree-dir-icon{flex:none}.console-file-badge{text-align:center;border:1px solid;border-radius:4px;width:18px;font-size:.6875rem}.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-detail-dock{background:#161b22;border-top:2px solid #30363d;flex-shrink:0;max-height:45dvh;overflow-y:auto}.console-detail-dock-composer{max-height:50vh;padding:8px 16px 0;overflow-y:auto}.console-actionbar{padding:10px 16px;padding-bottom:calc(10px + env(safe-area-inset-bottom));background:#161b22}.console-operation-bar{flex-direction:column;gap:8px;width:100%;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-rare-actions{justify-content:flex-start}.console-op-group-left-pair{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.console-op-group-bottom-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.console-op-group-stories{max-height:33vh;overflow-y:auto}.console-story-select,.console-agent-select{color:#e6edf3;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;max-width:100%;padding:9px 12px;font-size:.8125rem;font-weight:600}.console-story-select:hover,.console-agent-select:hover{border-color:#484f58}.console-op-button{color:#e6edf3;white-space:nowrap;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:9px 16px;font-size:.8125rem;font-weight:600}.console-op-button:hover{border-color:#484f58}.console-op-button:disabled{opacity:.4;cursor:not-allowed}.console-op-comment-close-error{color:#f85149;font-size:.875rem}.console-op-requirement{text-align:right;color:#8b949e;width:100%;margin:0;font-size:.75rem}.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-op-button-danger{color:#f85149;background:#3a1518;border-color:#f85149}.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:.75rem;display:flex}.console-pr-repo{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.console-detail-screen{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.console-panel-open-link{color:#4493f8;font-size:.8125rem;font-weight:400}.console-composer{margin-top:4px}.console-composer-toggle{color:#8b949e;cursor:pointer;background:0 0;border:none;margin-left:auto;padding:2px 0;font-size:.7813rem;display:block}.console-composer-toggle:hover{color:#e6edf3}.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:.875rem}.console-composer-attach{align-items:center;gap:8px;padding:0 10px;display:flex}.console-composer-file-input{display:none}.console-composer-attach-button{color:#c9d1d9;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:4px;padding:4px 8px;font-size:.75rem}.console-composer-attach-button:disabled{opacity:.6;cursor:default}.console-composer-row{justify-content:flex-end;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:.8125rem;font-weight:600}.console-composer-submit:disabled{opacity:.6;cursor:default}.console-composer-status{color:#8b949e;font-size:.75rem}.console-composer-error{color:#f85149}.console-undo-toast,.console-error-toast{z-index:9998;border-radius:10px;gap:12px;max-width:45vw;padding:12px 18px;font-size:.8438rem;display:flex;position:fixed;bottom:12px;left:12px;box-shadow:0 4px 20px #0009}.console-undo-toast{white-space:nowrap;align-items:center}.console-error-toast{white-space:normal;flex-direction:column;max-height:40vh;overflow-y:auto}.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-error-toast-message{flex:1;min-width:0}.console-undo-toast-undo,.console-undo-toast-dismiss,.console-error-toast-dismiss,.console-error-toast-retry{cursor:pointer;color:inherit;background:#ffffff1f;border:none;border-radius:6px;flex:none;padding:4px 12px;font-size:.8125rem;font-weight:700}.console-undo-toast-undo:hover,.console-undo-toast-dismiss:hover,.console-error-toast-dismiss:hover,.console-error-toast-retry:hover{background:#ffffff38}.console-error-toast-actions{flex-wrap:wrap;gap:8px;display:flex}.console-undo-toast-countdown{opacity:.7;flex:none;font-size:.6875rem}.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-error-toast-title{white-space:nowrap;text-overflow:ellipsis;flex:0 auto;min-width:0;font-weight:700;overflow:hidden}.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:.8125rem;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:.8125rem/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-file-diff td.console-diff-ln{white-space:nowrap;word-break:normal;overflow-wrap:normal}.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:.75rem}.console-file-diff-image{padding:8px 14px}.console-file-diff-image-content{object-fit:contain;object-position:left top;border:1px solid #30363d;border-radius:4px;max-width:100%;max-height:420px}.console-diff-comment-cell{text-align:center;-webkit-user-select:none;user-select:none;width:1%;padding:0 2px}.console-diff-comment-button{color:#6e7681;cursor:pointer;opacity:.6;background:0 0;border:1px solid #30363d;border-radius:4px;width:18px;height:18px;padding:0;font-size:.875rem;line-height:16px}.console-diff-row:hover .console-diff-comment-button,.console-diff-comment-button:focus-visible,.console-diff-comment-button[aria-expanded=true]{opacity:1;color:#fff;background:#1f6feb;border-color:#2f81f7}.console-diff-composer-row td{background:#0d1117;padding:6px 10px}.console-timer-settings-project-row:last-child td{border-bottom:none}.console-diff-composer{background:#161b22;border:1px solid #30363d;border-radius:6px;flex-direction:column;gap:6px;padding:8px;display:flex}.console-diff-composer-anchor{color:#8b949e;font-size:.6875rem}.console-diff-composer-input{resize:vertical;color:#c9d1d9;width:100%;font:inherit;background:#0d1117;border:1px solid #30363d;border-radius:6px;padding:6px 8px}.console-diff-composer-controls{align-items:center;gap:8px;display:flex}.console-diff-composer-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #238636;border-radius:6px;padding:4px 12px}.console-diff-composer-submit:disabled{opacity:.6;cursor:default}.console-diff-composer-cancel{color:#c9d1d9;cursor:pointer;background:0 0;border:1px solid #30363d;border-radius:6px;padding:4px 12px}.console-diff-composer-status{color:#8b949e;font-size:.75rem}.console-diff-composer-error{color:#ff7b72}.console-diff-composer-posted{color:#3fb950;margin:0;font-size:.75rem}.console-pr-header{flex-wrap:wrap;align-items:center;gap:10px;padding-top:4px;display:flex}.console-pr-section-title{color:#e6edf3;font-size:.9375rem;font-weight:600}.console-pr-section-state{color:#8b949e;border:1px solid #6e7681;border-radius:999px;padding:1px 8px;font-size:.6875rem}.console-offline-panel{background:#161b22;border-bottom:2px solid #30363d}.console-offline-panel-header{color:#c9d1d9;border-bottom:1px solid #21262d;padding:8px 16px;font-size:.8125rem;font-weight:600}.console-offline-panel-item{border-bottom:1px solid #21262d;border-left:3px solid #30363d;flex-direction:column;gap:4px;padding:10px 16px;display:flex}.console-offline-panel-item:last-child{border-bottom:none}.console-offline-panel-item-green{background:#0d332066;border-left-color:#2ea043}.console-offline-panel-item-amber{background:#3a280066;border-left-color:#a06800}.console-offline-panel-item-red{background:#3a151866;border-left-color:#da3633}.console-offline-panel-item-gray{background:#2a2d3166;border-left-color:#6e7681}.console-offline-panel-item-blue{background:#0d1f4066;border-left-color:#4493f8}.console-offline-panel-item-error{background:#3a151866;border-left-color:#f85149}.console-offline-panel-item-message{color:#e6edf3;font-size:.8125rem;font-weight:600}.console-offline-panel-item-target{color:#8b949e;font-size:.75rem}.console-offline-panel-item-fetch-error{color:#f85149;font-size:.75rem}.console-offline-panel-item-pr-status{color:#8b949e;font-size:.75rem}.console-offline-panel-item-controls{gap:8px;margin-top:4px;display:flex}.console-offline-panel-confirm{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:4px 12px;font-size:.75rem;font-weight:600}.console-offline-panel-confirm:hover:not(:disabled){background:#2ea043}.console-offline-panel-confirm:disabled{opacity:.4;cursor:not-allowed}.console-offline-panel-discard{color:#8b949e;cursor:pointer;background:0 0;border:1px solid #30363d;border-radius:6px;padding:4px 12px;font-size:.75rem;font-weight:600}.console-offline-panel-discard:hover{color:#f85149;border-color:#f85149}.console-task-create-button{color:#8b949e;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #30363d;border-radius:6px;align-self:center;margin-left:4px;padding:8px 12px;font-size:.8125rem;line-height:1}.console-task-create-button:hover{color:#e6edf3;border-color:#58a6ff}.console-task-create-button:disabled{opacity:.4;cursor:not-allowed}.console-task-create-form{flex-wrap:wrap;align-items:center;gap:4px;margin-left:4px;display:flex}.console-task-create-form-select{color:#e6edf3;cursor:pointer;background:#161b22;border:1px solid #30363d;border-radius:6px;padding:3px 6px;font-size:.8125rem}.console-task-create-form-input{color:#e6edf3;background:#0d1117;border:1px solid #30363d;border-radius:6px;min-width:160px;padding:3px 8px;font-size:.8125rem}.console-task-create-form-input:focus{border-color:#58a6ff;outline:none}.console-task-create-form-submit,.console-task-create-form-cancel{color:#e6edf3;cursor:pointer;white-space:nowrap;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:3px 10px;font-size:.8125rem}.console-task-create-form-submit:hover,.console-task-create-form-cancel:hover{border-color:#484f58}.console-task-create-form-submit:disabled,.console-task-create-form-cancel:disabled{opacity:.4;cursor:not-allowed}.console-task-create-dialog-container{z-index:1000;justify-content:center;align-items:flex-start;padding-top:60px;display:flex;position:fixed;inset:0}.console-task-create-dialog-overlay{cursor:default;background:#01040999;border:none;padding:0;position:absolute;inset:0}.console-task-create-dialog{z-index:1;background:#0d1117;border:1px solid #30363d;border-radius:8px;flex-direction:column;width:100%;max-width:560px;max-height:calc(100vh - 100px);display:flex;position:relative;overflow:hidden}.console-task-create-dialog-bar{background:#161b22;border-bottom:1px solid #30363d;flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 18px;display:flex}.console-task-create-dialog-title{color:#e6edf3;font-size:1rem;font-weight:600}.console-task-create-dialog-bar-actions{align-items:center;gap:4px;display:flex}.console-task-create-dialog-open-link{color:#8b949e;align-items:center;padding:4px 8px;font-size:1.125rem;line-height:1;text-decoration:none;display:inline-flex}.console-task-create-dialog-open-link:hover{color:#e6edf3}.console-task-create-dialog-close{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:1.125rem;line-height:1}.console-task-create-dialog-close:hover{color:#e6edf3}.console-task-create-dialog-body{flex-direction:column;flex:1;gap:10px;min-height:0;padding:20px 18px;display:flex;overflow-y:auto}.console-task-create-dialog-footer{background:#161b22;border-top:1px solid #30363d;flex-shrink:0;padding:12px 18px}.console-task-create-dialog-section-label{color:#e6edf3;font-size:.875rem;font-weight:500}.console-task-create-dialog-textarea{color:#e6edf3;resize:vertical;background:#0d1117;border:1px solid #30363d;border-radius:6px;min-height:72px;padding:8px 10px;font-size:.875rem}.console-task-create-dialog-textarea:focus{border-color:#58a6ff;outline:none}.console-task-create-dialog-option-list{flex-wrap:wrap;gap:6px;max-height:160px;display:flex;overflow-y:auto}.console-task-create-dialog-option-button{color:#c9d1d9;cursor:pointer;white-space:nowrap;background:#21262d;border:1px solid #30363d;border-radius:20px;padding:4px 10px;font-size:.8125rem}.console-task-create-dialog-option-button:hover{color:#e6edf3;border-color:#58a6ff}.console-task-create-dialog-option-button--selected{color:#fff;background:#1f6feb;border-color:#1f6feb}.console-task-create-dialog-input{color:#e6edf3;background:#0d1117;border:1px solid #30363d;border-radius:6px;padding:6px 10px;font-size:.875rem}.console-task-create-dialog-input:focus{border-color:#58a6ff;outline:none}.console-task-create-dialog-file-input{color:#8b949e;font-size:.8125rem}.console-task-create-dialog-file-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.console-task-create-dialog-file-item{background:#161b22;border:1px solid #30363d;border-radius:6px;align-items:center;gap:8px;padding:4px 8px;display:flex}.console-task-create-dialog-file-thumbnail{object-fit:cover;border-radius:4px;flex-shrink:0;width:32px;height:32px}.console-task-create-dialog-file-name{color:#c9d1d9;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.8125rem;overflow:hidden}.console-task-create-dialog-file-remove{color:#8b949e;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:2px 6px;font-size:.875rem;line-height:1}.console-task-create-dialog-file-remove:hover{color:#f85149}.console-task-create-dialog-file-remove:disabled{opacity:.5;cursor:not-allowed}.console-task-create-dialog-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.console-task-create-dialog-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:6px 16px;font-size:.875rem;font-weight:500}.console-task-create-dialog-submit:hover:not(:disabled){background:#2ea043}.console-task-create-dialog-submit:disabled{opacity:.5;cursor:not-allowed}.console-task-create-dialog-cancel{color:#c9d1d9;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:6px 16px;font-size:.875rem}.console-task-create-dialog-cancel:hover:not(:disabled){border-color:#484f58}.console-task-create-dialog-cancel:disabled{opacity:.5;cursor:not-allowed}.console-task-create-dialog-fleet-link{color:#8b949e;align-items:center;padding:4px 8px;font-size:.8125rem;line-height:1;text-decoration:none;display:inline-flex}.console-task-create-dialog-fleet-link:hover{color:#e6edf3}.console-task-create-dialog-new-issue-link{color:#8b949e;align-items:center;padding:4px 8px;font-size:.8125rem;line-height:1;text-decoration:none;display:inline-flex}.console-task-create-dialog-new-issue-link:hover{color:#e6edf3}.console-fleet-task-create-dialog-container{z-index:1000;justify-content:center;align-items:flex-start;padding-top:60px;display:flex;position:fixed;inset:0}.console-panel-caret{color:#8b949e;font-size:.75rem}.console-panel-title{color:#e6edf3;font-size:.875rem;font-weight:600}.console-airplane-mode{border-radius:6px;align-items:center;gap:8px;padding:4px 8px;font-size:.8125rem;display:flex}.console-airplane-mode--on,.console-airplane-mode--syncing{background:#161b22;border:1px solid #30363d}.console-airplane-mode--error{background:#161b22;border:1px solid #f85149}.console-airplane-mode--off{background:0 0}.console-airplane-mode-label{color:#8b949e}.console-airplane-mode-retry,.console-airplane-mode-toggle{color:#8b949e;cursor:pointer;background:0 0;border:1px solid #30363d;border-radius:4px;padding:2px 6px;font-size:.75rem}.console-airplane-mode-progress{color:#8b949e}.console-airplane-mode-error-label{color:#f85149}.console-tab-label{font-size:.8125rem}.console-tab-fleet-task-create-link{color:#8b949e;border:1px solid #30363d;border-radius:4px;padding:2px 6px;font-size:.8125rem;text-decoration:none}.console-item-opened{background:#161b22}.console-item-status-badge{color:#8b949e;border:1px solid #30363d;border-radius:4px;padding:2px 6px;font-size:.75rem}.console-list-row{border-bottom:1px solid #21262d}.console-queued-item-row{border-bottom:1px solid #21262d;align-items:center;gap:8px;padding:4px 8px;display:flex}.console-queued-item-badge{color:#8b949e;border:1px solid #30363d;border-radius:4px;padding:2px 6px;font-size:.75rem}.console-prs-agent-filter{align-items:center;gap:8px;padding:4px 8px;display:flex}.console-story-list-container{flex-direction:column;gap:0;display:flex}.console-story-list{flex-direction:column;display:flex}.console-story-list-row{border-bottom:1px solid #21262d}.console-story-list-row-main{cursor:pointer;align-items:center;gap:8px;padding:6px 8px;display:flex}.console-story-count{color:#8b949e;font-size:.75rem}.console-story-description{color:#8b949e;padding:0 8px 4px;font-size:.8125rem}.console-add-story-section{padding:8px}.console-inline-input-form{flex-direction:column;gap:4px;padding:4px 0;display:flex}.console-inline-input-form-textarea{color:#e6edf3;resize:vertical;background:#0d1117;border:1px solid #30363d;border-radius:6px;min-height:60px;padding:6px 10px;font-size:.875rem}.console-inline-input-form-input{color:#e6edf3;background:#0d1117;border:1px solid #30363d;border-radius:6px;padding:6px 10px;font-size:.875rem}.console-story-delete-confirm{padding:8px}.console-story-delete-confirm-message{color:#e6edf3;margin-bottom:8px;font-size:.875rem}.console-story-delete-confirm-actions{gap:8px;display:flex}.console-story-task-list{flex-direction:column;padding:4px 0;display:flex}.console-story-task-row{align-items:baseline;gap:4px;padding:2px 8px;font-size:.8125rem;display:flex}.console-story-task-title{color:#e6edf3;white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.console-story-task-status,.console-story-task-agent{color:#8b949e;white-space:nowrap;font-size:.75rem}.console-story-task-depended-urls{color:#4493f8;font-size:.75rem}.console-story-task-next-action-date,.console-story-task-next-action-hour{color:#8b949e;white-space:nowrap;font-size:.75rem}.console-story-reorder-panel{flex-direction:column;gap:4px;padding:8px;display:flex}.console-story-reorder-row{border:1px solid #30363d;border-radius:4px;align-items:center;gap:8px;padding:4px;display:flex}.console-story-reorder-name{color:#e6edf3;flex:1;font-size:.875rem}.console-story-reorder-progress{color:#8b949e;font-size:.75rem}.console-story-reorder-error{color:#f85149;font-size:.875rem}.console-markdown-view{color:#e6edf3;font-size:.875rem;line-height:1.5}.console-markdown-empty{color:#8b949e;font-size:.875rem;font-style:italic}.console-markdown-reference-plain{color:#4493f8;font-size:.875rem}.console-mermaid{padding:8px 0}.console-mermaid-loading{color:#8b949e;font-size:.875rem}.console-mermaid-source{color:#8b949e;background:#161b22;border-radius:4px;padding:8px;font-family:monospace;font-size:.8125rem}.console-mermaid-rendered{overflow-x:auto}.console-file-stat{color:#e6edf3;align-items:center;gap:4px;font-size:.8125rem;display:flex}.console-files-loading{color:#8b949e;padding:8px;font-size:.875rem}.console-files-empty{color:#8b949e;padding:8px;font-size:.875rem;font-style:italic}.console-comment-list{flex-direction:column;gap:8px;display:flex}.console-comment-loading{color:#8b949e;padding:8px;font-size:.875rem}.console-comment-empty{color:#8b949e;padding:8px;font-size:.875rem;font-style:italic}.console-comment-create-workflow-issue{padding:4px 0}.console-workflow-issue-create-dialog-container{z-index:1000;justify-content:center;align-items:flex-start;padding-top:60px;display:flex;position:fixed;inset:0}.console-workflow-issue-create-dialog-overlay{cursor:default;background:#01040999;border:none;padding:0;position:absolute;inset:0}.console-workflow-issue-create-dialog{z-index:1;background:#0d1117;border:1px solid #30363d;border-radius:8px;flex-direction:column;width:100%;max-width:560px;max-height:calc(100vh - 100px);display:flex;position:relative;overflow:hidden}.console-workflow-issue-create-dialog-bar{background:#161b22;border-bottom:1px solid #30363d;flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 18px;display:flex}.console-workflow-issue-create-dialog-title{color:#e6edf3;font-size:1rem;font-weight:600}.console-workflow-issue-create-dialog-close{color:#8b949e;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:1.125rem;line-height:1}.console-workflow-issue-create-dialog-close:hover{color:#e6edf3}.console-workflow-issue-create-dialog-body{flex-direction:column;flex:1;gap:10px;min-height:0;padding:20px 18px;display:flex;overflow-y:auto}.console-workflow-issue-create-dialog-section-label{color:#e6edf3;font-size:.875rem;font-weight:500}.console-workflow-issue-create-dialog-textarea{color:#e6edf3;resize:vertical;background:#0d1117;border:1px solid #30363d;border-radius:6px;min-height:72px;padding:8px 10px;font-size:.875rem}.console-workflow-issue-create-dialog-textarea:focus{border-color:#58a6ff;outline:none}.console-workflow-issue-create-dialog-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.console-workflow-issue-create-dialog-submit{color:#fff;cursor:pointer;background:#238636;border:1px solid #2ea043;border-radius:6px;padding:6px 16px;font-size:.875rem;font-weight:500}.console-workflow-issue-create-dialog-submit:hover:not(:disabled){background:#2ea043}.console-workflow-issue-create-dialog-submit:disabled{opacity:.5;cursor:not-allowed}.console-workflow-issue-create-dialog-cancel{color:#c9d1d9;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:6px;padding:6px 16px;font-size:.875rem}.console-workflow-issue-create-dialog-cancel:hover:not(:disabled){border-color:#484f58}.console-workflow-issue-create-dialog-cancel:disabled{opacity:.5;cursor:not-allowed}.console-commits-loading{color:#8b949e;padding:8px;font-size:.875rem}.console-commits-empty{color:#8b949e;padding:8px;font-size:.875rem;font-style:italic}.console-commit-author,.console-commit-time{color:#8b949e;font-size:.75rem}.console-detail-body-loading{color:#8b949e;padding:8px;font-size:.875rem}.console-pr-branch{color:#8b949e;background:#161b22;border-radius:4px;padding:2px 6px;font-family:monospace;font-size:.8125rem}.console-pr-files-count{color:#8b949e;font-size:.75rem}.console-pr-body-loading{color:#8b949e;padding:8px;font-size:.875rem}.console-detail-ci-chip{color:#8b949e;border:1px solid #30363d;border-radius:4px;padding:2px 6px;font-size:.75rem}.console-detail-outofdate-chip{color:#d29922;border:1px solid #d29922;border-radius:4px;padding:2px 6px;font-size:.75rem}.console-detail-mergeable-chip-ok{color:#3fb950;border:1px solid #3fb950;border-radius:4px;padding:2px 6px;font-size:.75rem}.console-detail-mergeable-chip-conflict{color:#f85149;border:1px solid #f85149;border-radius:4px;padding:2px 6px;font-size:.75rem}.console-story-list-container{flex-direction:column;align-items:stretch;gap:12px;padding:12px 16px 16px;display:flex}.console-story-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.console-story-list-row{background:#161b22;border:1px solid #30363d;border-radius:8px;flex-direction:column;gap:6px;padding:10px 14px;display:flex}.console-story-list-row-main{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.console-story-count{text-align:center;color:#e6edf3;background:#484f58;border-radius:20px;flex-shrink:0;min-width:20px;padding:1px 7px;font-size:.6875rem;font-weight:700;line-height:1.5}.console-story-description{color:#8b949e;margin:0;font-size:.8125rem;line-height:1.4}.console-add-story-section{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.console-inline-input-form{flex-wrap:wrap;align-items:flex-start;gap:8px;display:flex}.console-inline-input-form-input{color:#e6edf3;min-width:180px;font:inherit;background:#0d1117;border:1px solid #30363d;border-radius:6px;flex:1;padding:7px 10px;font-size:.875rem}.console-inline-input-form-input:focus{border-color:#4493f8;outline:none}.console-inline-input-form-textarea{color:#e6edf3;min-width:240px;font:inherit;resize:vertical;background:#0d1117;border:1px solid #30363d;border-radius:6px;flex:1;padding:7px 10px;font-size:.875rem}.console-inline-input-form-textarea:focus{border-color:#4493f8;outline:none}.console-story-delete-confirm{background:#1c1006;border:1px solid #a06800;border-radius:6px;flex-direction:column;gap:8px;padding:10px 14px;display:flex}.console-story-delete-confirm-message{color:#ffd166;margin:0;font-size:.875rem}.console-story-delete-confirm-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.console-story-task-list{border-top:1px solid #21262d;flex-direction:column;gap:0;margin:4px 0 0;padding:0;list-style:none;display:flex}.console-story-task-row{border-bottom:1px solid #21262d;grid-template-columns:1fr auto auto auto auto auto;align-items:baseline;gap:8px;padding:5px 4px;font-size:.7813rem;display:grid}.console-story-task-row:last-child{border-bottom:none}.console-story-task-title{color:#4493f8;text-overflow:ellipsis;white-space:nowrap;min-width:0;text-decoration:none;overflow:hidden}.console-story-task-title:hover{text-decoration:underline}.console-story-task-status,.console-story-task-agent,.console-story-task-next-action-date,.console-story-task-next-action-hour{color:#8b949e;white-space:nowrap;flex-shrink:0}.console-story-task-depended-urls{color:#8b949e;text-overflow:ellipsis;white-space:nowrap;max-width:120px;font-size:.6875rem;overflow:hidden}.console-story-chevron{color:#8b949e;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:2px 4px;font-size:.625rem;line-height:1}.console-story-chevron:hover{color:#e6edf3}.console-story-overflow-container{flex-shrink:0;margin-left:auto;position:relative}.console-story-overflow-btn{color:#8b949e;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;padding:2px 6px;font-size:1rem;line-height:1}.console-story-overflow-btn:hover{color:#e6edf3;background:#21262d;border-color:#30363d}.console-story-overflow-menu{z-index:100;background:#161b22;border:1px solid #30363d;border-radius:6px;min-width:160px;margin:0;padding:4px 0;list-style:none;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #01040980}.console-story-overflow-option{color:#e6edf3;cursor:pointer;text-align:left;background:0 0;border:none;width:100%;padding:8px 16px;font-size:.8125rem;display:block}.console-story-overflow-option:hover{background:#21262d}.console-story-overflow-option:disabled{opacity:.4;cursor:not-allowed}.console-story-overflow-option--danger{color:#f85149}.console-story-overflow-separator{border:none;border-top:1px solid #30363d;margin:4px 0}@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-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@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}
|
package/bin/adapter/entry-points/console/ui-dist/assets/{index-CsUFYMnL.js → index-Tada7EPq.js}
RENAMED
|
@@ -88,6 +88,6 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
88
88
|
`).map(e=>`> ${e}`).join(`
|
|
89
89
|
`),sd=e=>e.split(`
|
|
90
90
|
`).find(e=>e.trim()!==``)??``,cd=e=>`${e.author}:${e.createdAt}:${e.body}`,ld=({comment:e,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})=>{let i=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let e=i.current;if(!e)return;let t=e=>e.stopPropagation();return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[]),(0,x.jsx)(`div`,{ref:i,className:`console-comment-body-expanded`,children:(0,x.jsx)(Hu,{body:e.body,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})})},ud=({comments:e,isLoading:t,error:n,now:r,buildImageProxyUrl:i,renderReferenceLink:a,repoContext:o,persistenceKey:s=null,issueUrl:c,issueTitle:l,storyEntries:u,agentOptions:d,onCreateIssueFromComment:f})=>{let[p,m]=(0,y.useState)(!1),[h,g]=(0,y.useState)(null),[_,v]=(0,y.useState)(()=>s==null?new Set:On(s)),b=e.length>0?cd(e[e.length-1]):null;(0,y.useEffect)(()=>{b!==null&&v(e=>new Set([...e,b]))},[b]),(0,y.useEffect)(()=>{s!=null&&kn(s,_)},[s,_]);let S=e=>{v(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};if(n!==null)return(0,x.jsx)(`p`,{className:`console-comment-notloaded`,children:`Not loaded.`});if(t)return(0,x.jsx)(`p`,{className:`console-comment-loading`,children:`Loading comments...`});if(e.length===0)return(0,x.jsx)(`p`,{className:`console-comment-empty`,children:`No comments.`});let C=!p&&e.length>1;return(0,x.jsxs)(`div`,{className:`console-comment-list`,children:[C&&(0,x.jsxs)(`button`,{type:`button`,className:`console-comment-show-all`,onClick:()=>{m(!0),v(t=>new Set([...t,...e.map(cd)]))},children:[`Show all `,e.length]}),e.map(e=>{let t=cd(e),n=_.has(t);return(0,x.jsxs)(`article`,{className:`console-comment${n?` is-expanded`:C?` console-comment--expandable`:``}`,children:[(0,x.jsxs)(`button`,{type:`button`,className:`console-comment-toggle`,onClick:()=>S(t),"aria-expanded":n,children:[(0,x.jsx)(`span`,{className:`console-comment-author`,children:e.author}),(0,x.jsx)(`span`,{className:`console-comment-time`,children:k(e.createdAt,r)}),!n&&(0,x.jsx)(`span`,{className:`console-comment-body-preview`,children:sd(e.body)})]}),f!==void 0&&(0,x.jsx)(`button`,{type:`button`,className:`console-comment-create-workflow-issue`,onClick:t=>{t.stopPropagation(),g(e)},title:`Create workflow improvement issue from this comment`,children:`+`}),n&&(0,x.jsx)(ld,{comment:e,buildImageProxyUrl:i,renderReferenceLink:a,repoContext:o})]},t)}),h!==null&&f!==void 0&&(0,x.jsx)(me,{storyEntries:u??[],agentOptions:d??[],onSubmit:f,onClose:()=>g(null),initialDraft:{title:``,body:(()=>{let e=od(h.body);return c!=null&&l!=null?`${c}\n\n${l}\n\n\n\n\n\n${e}`:l==null?e:`${l}\n\n\n\n\n\n${e}`})(),storyName:null,agentOptionId:null}})]})},dd=e=>e.slice(0,7),fd=e=>e.split(`
|
|
91
|
-
`)[0],pd=({commits:e,isLoading:t,error:n,now:r})=>n===null?t?(0,x.jsx)(`p`,{className:`console-commits-loading`,children:`Loading commits...`}):e.length===0?(0,x.jsx)(`p`,{className:`console-commits-empty`,children:`No commits.`}):(0,x.jsx)(`ul`,{className:`console-commits`,children:e.map(e=>(0,x.jsxs)(`li`,{className:`console-commit`,children:[(0,x.jsx)(`span`,{className:`console-commit-message`,children:fd(e.message)}),(0,x.jsx)(`span`,{className:`console-commit-sha`,children:dd(e.sha)}),(0,x.jsx)(`span`,{className:`console-commit-author`,children:e.author}),(0,x.jsx)(`span`,{className:`console-commit-time`,children:k(e.authoredAt,r)})]},e.sha))}):(0,x.jsx)(`p`,{className:`console-commits-notloaded`,children:`Not loaded.`}),md=({url:e,label:t=`Copy URL`})=>(0,x.jsx)(xu,{value:e,idleText:`Copy URL`,idleAriaLabel:t,copiedAriaLabel:`URL copied to clipboard`,className:`console-copy-url-button`}),hd=e=>{let t=new Map;for(let n of e){let e=t.get(n.message);if(e===void 0){t.set(n.message,[n.section]);continue}e.push(n.section)}return Array.from(t,([e,t])=>({message:e,sections:t}))},gd=e=>e.length<=1?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`,_d=({failures:e})=>e.length===0?null:(0,x.jsx)(`div`,{role:`alert`,className:`console-detail-fetch-error`,children:hd(e).map(e=>(0,x.jsxs)(`p`,{className:`console-detail-fetch-error-line`,children:[`Failed to load `,gd(e.sections),`:`,` `,e.message]},e.message))}),vd=({title:e,onTitleRename:t})=>{let[n,r]=(0,y.useState)(e),[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(e),[c,l]=(0,y.useState)(!1),[u,d]=(0,y.useState)(null),f=(0,y.useRef)(e);(0,y.useEffect)(()=>{let t=e!==f.current;f.current=e,!i&&t&&r(e)},[e,i]);let p=()=>{s(n),d(null),a(!0)},m=()=>{a(!1),d(null)},h=async()=>{let e=o.trim();if(e===``||e===n){a(!1);return}l(!0),d(null);try{await t(e),r(e),a(!1)}catch(e){d(e instanceof Error?e.message:`Failed to rename`)}finally{l(!1)}};return i?(0,x.jsxs)(`span`,{className:`console-detail-title-text console-detail-title-text--editing`,children:[(0,x.jsx)(`input`,{type:`text`,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{e.key===`Enter`?h():e.key===`Escape`&&m()},disabled:c,className:`console-detail-title-input`,"aria-label":`Edit title`}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>void h(),disabled:c,className:`console-detail-title-save`,children:`Save`}),(0,x.jsx)(`button`,{type:`button`,onClick:m,disabled:c,className:`console-detail-title-cancel`,children:`Cancel`}),u!==null&&(0,x.jsx)(`span`,{className:`console-detail-title-error`,role:`alert`,children:u})]}):(0,x.jsxs)(`span`,{className:`console-detail-title-text`,children:[n,(0,x.jsx)(`button`,{type:`button`,onClick:p,className:`console-detail-title-edit`,"aria-label":`Edit title`,children:`Edit`})]})},yd={MERGEABLE:{color:`GREEN`,label:`No conflict`,title:`This pull request has no merge conflicts`,modifier:`console-detail-mergeable-chip-ok`},CONFLICTING:{color:`RED`,label:`Conflict`,title:`This pull request has merge conflicts`,modifier:`console-detail-mergeable-chip-conflict`},UNKNOWN:{color:`GRAY`,label:`Checking merge status`,title:`GitHub has not finished computing the merge status yet`,modifier:`console-detail-mergeable-chip-unknown`}},bd=({mergeableStatus:e})=>{let t=yd[e],n=fe(t.color);return(0,x.jsx)(`span`,{className:`console-detail-status-chip console-detail-mergeable-chip ${t.modifier}`,style:{color:n.fg,borderColor:n.border,backgroundColor:n.bg},title:t.title,children:t.label})},xd=e=>{let t=fe(e);return{color:t.fg,borderColor:t.border,backgroundColor:t.bg}},Sd=({isPassedAllCiJob:e,isCiStateSuccess:t,isBranchOutOfDate:n,missingRequiredCheckNames:r})=>{let i=e&&t,a=i?`GREEN`:`RED`,o=i?`CI passing`:`CI failing`,s=!i&&r.length>0?`missing: ${r.join(`, `)}`:null;return(0,x.jsxs)(`span`,{className:`console-detail-pr-status`,children:[(0,x.jsxs)(`span`,{className:`console-detail-status-chip console-detail-ci-chip`,style:xd(a),title:s??o,children:[o,s!==null&&(0,x.jsxs)(`span`,{className:`console-detail-ci-missing`,children:[` `,`(`,s,`)`]})]}),n&&(0,x.jsx)(`span`,{className:`console-detail-status-chip console-detail-outofdate-chip`,style:xd(`YELLOW`),title:`This branch is out of date with the base branch`,children:`Out of date`})]})},Cd=({pullRequest:e,body:t,bodyIsLoading:n,files:r,filesAreLoading:i,filesError:a,commits:o,commitsAreLoading:s,commitsError:c,now:l,buildImageProxyUrl:u,renderReferenceLink:d,onAddInlineComment:f})=>{let p=e.summary,m=Oi(e.url),h=m===null?void 0:{owner:m.owner,repo:m.repo},g=i||a!==null?null:r.length,_=s||c!==null?null:o.length;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`console-pr-header`,children:[(0,x.jsx)(`a`,{href:e.url,className:`console-pr-section-title`,target:`_blank`,rel:`noopener noreferrer`,children:p?.title??e.url}),e.isDraft&&(0,x.jsx)(`span`,{className:`console-pr-section-state`,children:`draft`}),(0,x.jsx)(bd,{mergeableStatus:e.mergeableStatus}),(0,x.jsx)(Sd,{isPassedAllCiJob:e.isPassedAllCiJob,isCiStateSuccess:e.isCiStateSuccess,isBranchOutOfDate:e.isBranchOutOfDate,missingRequiredCheckNames:e.missingRequiredCheckNames}),(0,x.jsx)(`a`,{href:e.url,className:`console-panel-open-link`,target:`_blank`,rel:`noopener noreferrer`,children:`open`}),(0,x.jsx)(md,{url:e.url,label:`Copy PR URL`}),(0,x.jsxs)(`div`,{className:`console-pr-statbar`,children:[m!==null&&(0,x.jsxs)(`span`,{className:`console-pr-repo`,children:[m.owner,`/`,m.repo]}),e.branchName!==null&&(0,x.jsx)(`span`,{className:`console-pr-branch`,children:e.branchName}),p!==null&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`span`,{className:`console-pr-add`,children:[`+`,p.additions]}),(0,x.jsxs)(`span`,{className:`console-pr-del`,children:[`-`,p.deletions]}),(0,x.jsxs)(`span`,{className:`console-pr-files-count`,children:[p.changedFiles,` files`]})]})]})]}),(0,x.jsx)(Uu,{title:`Description`,children:n?(0,x.jsx)(`p`,{className:`console-pr-body-loading`,children:`Loading description...`}):(0,x.jsx)(Hu,{body:p?.body??t,buildImageProxyUrl:u,renderReferenceLink:d,repoContext:h})}),(0,x.jsx)(Uu,{title:`Changed files`,count:g,children:(0,x.jsx)(ad,{files:r,isLoading:i,error:a,buildImageProxyUrl:u,onAddInlineComment:f})}),(0,x.jsx)(Uu,{title:`Commits`,count:_,defaultCollapsed:!0,children:(0,x.jsx)(pd,{commits:o,isLoading:s,error:c,now:l})})]})},wd=({item:e,storyName:t,storyColorEnum:n,overlayStatus:r,statusOptions:i,state:a,body:o,bodyIsLoading:s,bodyError:c,comments:l,commentsAreLoading:u,commentsError:d,files:f,filesAreLoading:p,filesError:m,commits:h,commitsAreLoading:g,commitsError:_,stateError:v,pullRequestStatus:y,pullRequestStatusError:b,relatedPullRequests:S,relatedPullRequestsError:C,now:w,commentComposer:T,operationBar:ee,buildImageProxyUrl:E,renderReferenceLink:te,onAddInlineComment:D,onTitleRename:O,storyEntries:ne,agentOptions:A,onCreateIssueFromComment:j})=>{let M=a?.state??`open`,ie=a?.merged??!1,ae=!e.isPr&&M===`closed`?`Closed`:null,oe=ki(e.nameWithOwner)??void 0,N=fe(n),P=r===null?e.status===null?null:{name:e.status,color:i.find(t=>t.name===e.status)?.color??`GRAY`}:r,se=P===null?null:fe(P.color),ce=p||m!==null?null:f.length,le=u||d!==null?null:l.length,ue=g||_!==null?null:h.length,de=!u&&d===null&&l.length>0,pe=e=>{let t=Oi(e);return t===null?e:`PR #${t.number}`},me=[{section:`item state`,message:v},{section:`pull request status`,message:e.isPr?b:null},{section:`description`,message:c},{section:`comments`,message:d},{section:`changed files`,message:e.isPr?m:null},{section:`commits`,message:e.isPr?_:null},{section:`related pull requests`,message:e.isPr?null:C},...S.flatMap(e=>[{section:`changed files of ${pe(e.pullRequest.url)}`,message:e.filesError},{section:`commits of ${pe(e.pullRequest.url)}`,message:e.commitsError}])].flatMap(e=>e.message===null?[]:[{section:e.section,message:e.message}]),F=e.isPr&&y?.found?[{url:e.url,mergeableStatus:y.mergeableStatus}]:[];return(0,x.jsxs)(`article`,{className:`console-detail`,children:[(0,x.jsxs)(`div`,{className:`console-detail-header`,children:[(0,x.jsxs)(`h2`,{className:`console-detail-title`,children:[(0,x.jsx)(ke,{isPr:e.isPr,state:M,merged:ie,isDraft:!1,stateReason:``}),O==null?(0,x.jsx)(`span`,{className:`console-detail-title-text`,children:e.title}):(0,x.jsx)(vd,{title:e.title,onTitleRename:O}),(0,x.jsx)(`span`,{className:`console-detail-number`,children:e.isPr?`PR #${e.number}`:`#${e.number}`})]}),(0,x.jsxs)(`div`,{className:`console-detail-topline`,children:[P!==null&&se!==null&&(0,x.jsx)(`span`,{className:`console-detail-status-chip`,style:{color:se.fg,borderColor:se.border,backgroundColor:se.bg},children:P.name}),e.agent!==null&&e.agent!==``&&(0,x.jsx)(`span`,{className:`console-detail-agent-chip`,children:e.agent}),t!==null&&(0,x.jsxs)(`span`,{className:`console-storytag`,children:[(0,x.jsx)(`span`,{className:`console-story-dot`,style:{backgroundColor:N.dot}}),t]}),e.isPr&&y?.found&&(0,x.jsx)(Sd,{isPassedAllCiJob:y.isPassedAllCiJob,isCiStateSuccess:y.isCiStateSuccess,isBranchOutOfDate:y.isBranchOutOfDate,missingRequiredCheckNames:y.missingRequiredCheckNames}),!e.isPr&&S.map(e=>(0,x.jsxs)(`span`,{className:`console-related-pr-group`,children:[S.length>1&&(0,x.jsx)(`span`,{className:`console-related-pr-label`,children:pe(e.pullRequest.url)}),(0,x.jsx)(Sd,{isPassedAllCiJob:e.pullRequest.isPassedAllCiJob,isCiStateSuccess:e.pullRequest.isCiStateSuccess,isBranchOutOfDate:e.pullRequest.isBranchOutOfDate,missingRequiredCheckNames:e.pullRequest.missingRequiredCheckNames}),(0,x.jsx)(bd,{mergeableStatus:e.pullRequest.mergeableStatus})]},e.pullRequest.url)),F.map(e=>(0,x.jsx)(bd,{mergeableStatus:e.mergeableStatus},e.url)),ae!==null&&(0,x.jsx)(`span`,{className:`console-detail-closed-label`,children:ae})]}),(0,x.jsx)(_d,{failures:me}),(0,x.jsxs)(`div`,{className:`console-detail-subbar`,children:[(0,x.jsxs)(`a`,{href:e.url,className:`console-detail-link`,target:`_blank`,rel:`noopener noreferrer`,children:[`#`,e.number]}),(0,x.jsx)(`span`,{className:`console-detail-repo`,children:e.repo}),(0,x.jsxs)(`span`,{className:`console-detail-createdat`,title:re(e.createdAt),children:[`opened `,k(e.createdAt,w)]}),(0,x.jsx)(md,{url:e.url}),e.labels.map(e=>(0,x.jsx)(`span`,{className:`console-label-chip`,children:e},e))]})]}),(0,x.jsxs)(`div`,{className:`console-detail-body`,children:[(0,x.jsx)(Uu,{title:`Description`,defaultCollapsed:de,headerAction:(0,x.jsx)(`a`,{href:e.url,className:`console-panel-open-link`,target:`_blank`,rel:`noopener noreferrer`,children:`open`}),children:c===null?s?(0,x.jsx)(`p`,{className:`console-detail-body-loading`,children:`Loading description...`}):(0,x.jsx)(Hu,{body:o,buildImageProxyUrl:E,renderReferenceLink:te,repoContext:oe}):(0,x.jsx)(`p`,{className:`console-detail-body-notloaded`,children:`Not loaded.`})},de?`desc-collapsed`:`desc-open`),e.isPr&&(0,x.jsx)(Uu,{title:`Changed files`,count:ce,children:(0,x.jsx)(ad,{files:f,isLoading:p,error:m,onAddInlineComment:D})}),(0,x.jsx)(Uu,{title:`Comments`,count:le,children:(0,x.jsx)(ud,{comments:l,isLoading:u,error:d,now:w,buildImageProxyUrl:E,renderReferenceLink:te,repoContext:oe,persistenceKey:e.url,issueUrl:e.url,issueTitle:e.title,storyEntries:ne,agentOptions:A,onCreateIssueFromComment:j})}),e.isPr&&(0,x.jsx)(Uu,{title:`Commits`,count:ue,defaultCollapsed:!0,children:(0,x.jsx)(pd,{commits:h,isLoading:g,error:_,now:w})}),!e.isPr&&S.map(e=>(0,x.jsx)(Cd,{pullRequest:e.pullRequest,body:e.pullRequest.summary?.body??``,bodyIsLoading:!1,files:e.files,filesAreLoading:e.filesAreLoading,filesError:e.filesError,commits:e.commits,commitsAreLoading:e.commitsAreLoading,commitsError:e.commitsError,now:w,buildImageProxyUrl:E,renderReferenceLink:te,onAddInlineComment:D},e.pullRequest.url))]}),(0,x.jsxs)(`div`,{className:`console-detail-dock`,children:[(0,x.jsx)(`div`,{className:`console-detail-dock-composer`,children:T}),(0,x.jsx)(`div`,{className:`console-actionbar`,children:ee})]})]})},Td=({className:e,ariaLabel:t,placeholder:n,currentOption:r,options:i,onSelect:a})=>{let o=(0,y.useRef)({ready:!1,currentOptionId:r?.id??null});return(0,y.useLayoutEffect)(()=>{o.current.ready=!0,o.current.currentOptionId=r?.id??null}),(0,x.jsxs)(`select`,{className:e,defaultValue:r?.id??``,onChange:e=>{if(!o.current.ready||e.target.value===(o.current.currentOptionId??``))return;let t=i.find(t=>t.id===e.target.value);t!==void 0&&a(t)},"aria-label":t,children:[(0,x.jsx)(`option`,{value:``,children:n}),i.map(e=>(0,x.jsx)(`option`,{value:e.id,children:e.name},e.id))]})},Ed=({agentOptions:e,currentAgentName:t,currentAgentOptionId:n,onSetAgent:r})=>{if(e.length===0)return null;let i=n==null?t===null?null:e.find(e=>e.name===t)??null:e.find(e=>e.id===n)??null;return(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(Td,{className:`console-agent-select`,ariaLabel:`Set agent`,placeholder:`— agent —`,currentOption:i,options:e,onSelect:r},i?.id??`none`)})},Dd=({onClose:e,onCommentAndClose:t,onOkAndClose:n,isDraftEmpty:r})=>{let[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(null),c=async e=>{if(!(e===void 0||i)){a(!0),s(null);try{await e()}catch(e){s(e instanceof Error?e.message:`failed to post`)}finally{a(!1)}}};return(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>e(`close_not_planned`),children:`Close as not planned`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>e(`close`),children:`Close`}),n!==void 0&&(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,disabled:i,onClick:()=>{c(n)},children:`OK & Close`}),t!==void 0&&(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,disabled:i||r===!0,onClick:()=>{c(t)},children:`Comment & Close`}),o!==null&&(0,x.jsx)(`span`,{role:`alert`,className:`console-op-comment-close-error`,children:o})]})},Od=({onDeleteAllComments:e,onDeleteStory:t,storyNameForDeletion:n})=>{let[r,i]=(0,y.useState)(!1),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(!1),[l,u]=(0,y.useState)(null),d=()=>{e(),i(!1)},f=()=>{o(!0),u(null)},p=async e=>{if(t){c(!0),u(null);try{await t(e)}catch(e){u(e instanceof Error?e.message:String(e)),c(!1)}}};return(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>i(e=>!e),children:`⚠`}),r&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:d,children:`Delete All Comments`}),t!=null&&(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:f,disabled:a,children:`Delete Story`})]}),a&&(0,x.jsxs)(`div`,{className:`console-story-delete-confirm`,role:`dialog`,"aria-modal":`true`,"aria-label":`Confirm story deletion`,children:[(0,x.jsxs)(`p`,{className:`console-story-delete-confirm-message`,children:[`Delete story option "`,n,`" from the GitHub custom field?`]}),l!==null&&(0,x.jsx)(`p`,{role:`alert`,className:`console-list-error`,children:l}),(0,x.jsxs)(`div`,{className:`console-story-delete-confirm-actions`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>void p(!0),disabled:s,children:s?`Deleting…`:`Delete with child tasks`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>void p(!1),disabled:s,children:s?`Deleting…`:`Keep child tasks`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>{o(!1),u(null)},disabled:s,children:`Cancel`})]})]})]})},kd=({isManualTriage:e,onSetNextActionDate:t})=>(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1hour`),children:`+1h`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_3hours`),children:`+3h`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_6hours`),children:`+6h`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1day`),children:`+1d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_2days`),children:`+2d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_3days`),children:`+3d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_5days`),children:`+5d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1week`),children:e?`+1w skip`:`+1w`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1month`),children:`+1mo`})]}),Ad=[{action:`unnecessary`,label:`Unnecessary`,variant:`unneeded`},{action:`totally_wrong`,label:`Totally wrong`,variant:`wrong`},{action:`request_changes`,label:`Reject`,variant:`reject`},{action:`approve_and_merge`,label:`Approve & Merge`,variant:`approve`}],jd=`Reject needs an inline comment on the diff.`,Md=({onReview:e,rejectEnabled:t})=>(0,x.jsxs)(`div`,{className:`console-op-group console-op-group-review`,children:[!t&&(0,x.jsx)(`p`,{className:`console-op-requirement`,children:jd}),Ad.map(n=>{let r=n.action===`request_changes`&&!t;return(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-${n.variant}`,disabled:r,onClick:()=>e(n.action),children:n.label},n.action)})]}),Nd=({onSetDependedIssueUrl:e})=>{let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(``),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(null);return(0,x.jsxs)(`div`,{className:`console-op-group console-op-group-rare-actions`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>{n(e=>!e),c(null)},title:`Rare actions`,children:`⋯`}),t&&e!==null&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`input`,{type:`url`,className:`console-settings-modal-input`,placeholder:`Depended issue URL`,value:r,onChange:e=>i(e.target.value),disabled:a}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:async()=>{if(e!==null&&r.trim()!==``){o(!0),c(null);try{await e(r.trim()),i(``),n(!1)}catch(e){c(e instanceof Error?e.message:`Failed to set depended issue URL`)}finally{o(!1)}}},disabled:a||r.trim()===``,children:a?`...`:`Set Depended Issue`})]}),s!==null&&(0,x.jsx)(`p`,{className:`console-settings-modal-error`,children:s})]})},Pd=(e,t)=>{let n=t.toLowerCase();return e.find(e=>e.name.toLowerCase()===n)??null},Fd=({statusOptions:e,onSetStatus:t,onSetInTmuxByHuman:n})=>{let r=we.map(t=>({name:t,option:Pd(e,t)})).filter(e=>e.option!==null);return r.length===0?null:(0,x.jsx)(`div`,{className:`console-op-group`,children:r.map(({name:e,option:r})=>{let i=fe(r.color),a=e===Se;return(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,style:{color:i.fg,borderColor:i.border,backgroundColor:i.bg},onClick:()=>a?n(r):t(r),children:r.name},r.id)})})},Id=({storyOptions:e,currentStoryName:t,currentStoryOptionId:n,onSetStory:r})=>{if(e.length===0)return null;let i=n===null?t===null?null:e.find(e=>e.name===t)??null:e.find(e=>e.id===n)??null;return(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(Td,{className:`console-story-select`,ariaLabel:`Set story`,placeholder:`— story —`,currentOption:i,options:e,onSelect:r},i?.id??`none`)})},Ld=({tab:e,hasPullRequest:t,rejectEnabled:n,statusOptions:r,storyOptions:i,currentStoryName:a,currentStoryOptionId:o,agentOptions:s,currentAgentName:c,currentAgentOptionId:l,handlers:u,storyNameForDeletion:d,onCommentAndClose:f,onOkAndClose:p,isDraftEmpty:m})=>{let[h,g]=(0,y.useState)(!1);return(0,x.jsxs)(`div`,{className:`console-operation-bar`,children:[t&&(0,x.jsx)(Md,{onReview:u.onReview,rejectEnabled:n}),(0,x.jsx)(kd,{isManualTriage:Te(e),onSetNextActionDate:u.onSetNextActionDate}),(0,x.jsx)(Fd,{statusOptions:r,onSetStatus:u.onSetStatus,onSetInTmuxByHuman:u.onSetInTmuxByHuman}),h&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Id,{storyOptions:i,currentStoryName:a,currentStoryOptionId:o,onSetStory:u.onSetStory}),(0,x.jsx)(Ed,{agentOptions:s,currentAgentName:c,currentAgentOptionId:l,onSetAgent:u.onSetAgent})]}),(0,x.jsxs)(`div`,{className:`console-op-group-bottom-row`,children:[(0,x.jsxs)(`div`,{className:`console-op-group-left-pair`,children:[(i.length>0||s.length>0)&&(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>g(e=>!e),title:`Change agent or story`,children:`⚙`})}),(0,x.jsx)(Nd,{onSetDependedIssueUrl:u.onSetDependedIssueUrl}),(0,x.jsx)(Od,{onDeleteAllComments:u.onDeleteAllComments,onDeleteStory:u.onDeleteStory,storyNameForDeletion:d})]}),(0,x.jsx)(Dd,{onClose:u.onClose,onCommentAndClose:f,onOkAndClose:p,isDraftEmpty:m})]})]})},Rd=(e,t,n,r)=>{let i=t===null?void 0:e.peek(t),[a,o]=(0,y.useState)(i??r),[s,c]=(0,y.useState)(t!==null&&i===void 0),[l,u]=(0,y.useState)(null);return(0,y.useEffect)(()=>{if(t===null||n===null)return;let r=e.peek(t);if(r!==void 0){o(r),c(!1),u(null);return}let i=!1;return c(!0),u(null),e.load(t,n).then(e=>{i||(o(e),c(!1))}).catch(e=>{i||(u(e instanceof Error?e.message:String(e)),c(!1))}),()=>{i=!0}},[e,t,n]),{data:a,isLoading:s,error:l}},zd=[],Bd=[],Vd=[],Hd=[],Ud={state:`open`,merged:!1,isPullRequest:!1,title:``},Wd={found:!1,isConflicted:!1,mergeableStatus:`UNKNOWN`,isPassedAllCiJob:!1,isCiStateSuccess:!1,isBranchOutOfDate:!1,missingRequiredCheckNames:[]},Gd=(e,t,n)=>{let r=t===null?null:`${t.repo}#${t.number}`,i=t===null?null:t.url,a=t?.isPr??!1,o=Rd(e.body,r,i,``),s=Rd(e.state,r,i,Ud),c=Rd(e.comments,r,i,zd),l=Rd(e.files,a?r:null,a?i:null,Bd),u=Rd(e.commits,a?r:null,a?i:null,Vd),d=Rd(e.prStatus,a?r:null,a?i:null,Wd),f=!a&&((t?.relatedOpenPullRequestUrls.length??0)>0||n===`prs`),p=Rd(e.relatedPrs,f?r:null,f?i:null,Hd),[m,h]=(0,y.useState)([]);return(0,y.useEffect)(()=>{if(a||p.data.length===0){h([]);return}let t=!1,n=p.data.map(e=>({pullRequest:e,files:Bd,filesAreLoading:!0,filesError:null,commits:Vd,commitsAreLoading:!0,commitsError:null}));h(n);let r=(e,n)=>{t||h(t=>t.map(t=>t.pullRequest.url===e?{...t,...n}:t))};for(let t of p.data){let n=t.url;e.files.load(n,t.url).then(e=>r(t.url,{files:e,filesAreLoading:!1})).catch(e=>r(t.url,{filesAreLoading:!1,filesError:e instanceof Error?e.message:String(e)})),e.commits.load(n,t.url).then(e=>r(t.url,{commits:e,commitsAreLoading:!1})).catch(e=>r(t.url,{commitsAreLoading:!1,commitsError:e instanceof Error?e.message:String(e)}))}return()=>{t=!0}},[e,a,p.data]),{state:s.data,body:o.data,bodyIsLoading:o.isLoading,bodyError:o.error,comments:c.data,commentsAreLoading:c.isLoading,commentsError:c.error,files:l.data,filesAreLoading:l.isLoading,filesError:l.error,commits:u.data,commitsAreLoading:u.isLoading,commitsError:u.error,stateError:s.error,pullRequestStatus:a?d.data:null,pullRequestStatusError:a?d.error:null,relatedPullRequests:m,relatedPullRequestsError:a?null:p.error}},Kd=e=>JSON.stringify([e.author,e.createdAt,e.body]),qd=(e,t)=>{let n=new Set(e.map(Kd));return[...e,...t.filter(e=>!n.has(Kd(e)))]},Jd=({href:e,fallbackText:t,state:n})=>{if(n===null||n.title.trim()===``)return(0,x.jsx)(`a`,{className:`console-markdown-reference console-markdown-reference-plain`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:t});let r=Oi(e);return(0,x.jsxs)(`a`,{className:`console-markdown-reference`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:[(0,x.jsx)(ke,{...Ai(n)}),(0,x.jsx)(`span`,{className:`console-markdown-reference-title`,children:n.title}),r!==null&&(0,x.jsxs)(`span`,{className:`console-markdown-reference-number`,children:[`#`,r.number]})]})},Yd=(e,t)=>{let[n,r]=(0,y.useState)(()=>e.peek(t)??null);return(0,y.useEffect)(()=>{let n=e.peek(t);if(n!==void 0){r(n);return}let i=!1;return r(null),e.load(t,t).then(e=>{i||r(e)}).catch(()=>{i||r(null)}),()=>{i=!0}},[e,t]),n},Xd=({cache:e,href:t,fallbackText:n})=>{let r=Yd(e,t);return(0,x.jsx)(Jd,{href:t,fallbackText:n,state:r})},Zd=e=>({itemUrl:e.url,projectItemId:e.projectItemId,itemNumber:e.number,repo:e.repo,isPr:e.isPr}),Qd=(e,t,n,r,i)=>({...Zd(t),apiPath:Ar,requestBody:Nr(e,t,n,r,i)}),$d=(e,t,n,r)=>({...Zd(t),apiPath:jr,requestBody:Pr(e,t,n,r)}),ef=(e,t)=>({...Zd(t),apiPath:Mr,requestBody:Fr(e,t)}),tf=(e,t,n)=>{e===void 0?console.error(t,n):e(t,String(n))},nf=({tab:e,item:t,caches:n,operations:r,pjcode:i,statusOptions:a,storyOptions:o,agentOptions:s,storyColors:c,storyName:l,storyOptionId:u,overlayStatus:d,now:f,initialCommentDraft:p,onCommentDraftChange:m,onQueueAction:h,onCommentError:g,onDeleteStory:_,storyNameForDeletion:v,storyEntries:b,onCreateIssueFromComment:S})=>{let C=Gd(n,t,e),w=(0,y.useCallback)(e=>Ni(e,t.url),[t.url]),T=(0,y.useCallback)((e,t)=>(0,x.jsx)(Xd,{cache:n.state,href:e,fallbackText:t}),[n.state]),ee=t.isPr||t.relatedOpenPullRequestUrls.length>0||C.relatedPullRequests.length>0,[E,te]=(0,y.useState)([]),D=(0,y.useCallback)(async(e,t,n,r)=>{te(i=>[...i,{path:e,line:t,side:n,body:r}])},[]),[O,k]=(0,y.useState)([]),ne=(0,y.useCallback)(async e=>{let n=await r.addComment(t,e);return k(e=>[...e,n]),n},[t,r]),re={onReview:e=>{let n=t.isPr?t.url:C.relatedPullRequests[0]?.pullRequest.url??t.relatedOpenPullRequestUrls[0]??t.url,a=e===`request_changes`?E:[];h({kind:{type:`review`,action:e},item:t,commit:()=>r.reviewPullRequest(t,n,e,a),offline:i==null?void 0:Qd(i,t,n,e,a),overlayPatch:{done:!0}})},onSetNextActionDate:e=>{h({kind:{type:`next_action_date`,action:e},item:t,commit:()=>r.setNextActionDate(t,e),offline:i==null?void 0:$d(i,t,e),overlayPatch:{done:!0}})},onSetStory:e=>{h({kind:{type:`set_story`,optionName:e.name},item:t,commit:()=>r.setStory(t,e),offline:i==null?void 0:$d(i,t,`set_story`,{storyOptionId:e.id}),overlayPatch:{done:!0,story:{id:e.id,name:e.name,color:e.color}}})},onSetAgent:e=>{h({kind:{type:`set_agent`,optionName:e.name},item:t,commit:()=>r.setAgent(t,e),offline:i==null?void 0:$d(i,t,`set_agent`,{agentOptionId:e.id}),overlayPatch:{done:!0}})},onSetStatus:e=>{h({kind:{type:`set_status`,optionName:e.name},item:t,commit:()=>r.setStatus(t,e),offline:i==null?void 0:$d(i,t,`set_status`,{statusName:e.name}),overlayPatch:{done:!0,status:{name:e.name,color:e.color}}})},onSetInTmuxByHuman:e=>{h({kind:{type:`set_in_tmux_by_human`,optionName:e.name},item:t,commit:()=>r.setInTmuxByHuman(t,e),offline:i==null?void 0:ef(i,t),overlayPatch:{done:!0,status:{name:e.name,color:e.color}}})},onClose:e=>{h({kind:{type:`close`,action:e},item:t,commit:()=>r.closeIssue(t,e),offline:i==null?void 0:$d(i,t,e),overlayPatch:{done:!0}})},onOkAndAwaitingWorkspace:e=>{h({kind:{type:`ok_and_awaiting_workspace`},item:t,commit:()=>r.okAndMoveToAwaitingWorkspace(t,e),overlayPatch:{done:!0,status:{name:e.name,color:e.color}}})},onDeleteAllComments:()=>{h({kind:{type:`delete_all_comments`},item:t,commit:()=>r.deleteAllComments(t)})},onDeleteStory:_??null,onSetDependedIssueUrl:i==null?null:async e=>{await r.setDependedIssueUrl(t,e)}},A=(0,y.useCallback)(async e=>{await r.issueRename(t,e)},[t,r]),j=a.find(e=>e.name===`Awaiting Workspace`)??null,M=j===null?void 0:async e=>(m?.(``),await new Promise((n,i)=>{let a=!1,o=(e,t)=>{throw tf(g,e,t),i(t),t};h({kind:{type:`set_status`,optionName:j.name},item:t,commit:async()=>{if(a){try{await r.setStatus(t,j)}catch(e){o(`Comment already posted, but retrying the move to Awaiting Workspace status failed: ${String(e)}`,e)}try{await r.onAfterMoveToAwaitingWorkspace?.()}catch(e){tf(g,`Comment posted and status set to Awaiting Workspace, but a post-success refresh action failed: ${String(e)}`,e)}return}try{let i=await r.addCommentAndMoveToAwaitingWorkspace(t,e,j);k(e=>[...e,i]),n(i)}catch(e){a=!0,o(`Comment may already be posted; moving to Awaiting Workspace status failed: ${String(e)}`,e)}},overlayPatch:{done:!0,status:{name:j.name,color:j.color}}})})),ie=(0,y.useRef)(``),[ae,oe]=(0,y.useState)((p??``).trim().length===0),N=(0,y.useCallback)(e=>{ie.current=e,oe(e.trim().length===0),m?.(e)},[m]),P=async e=>{await ne(e),re.onClose(`close`)},se=async()=>{let e=ie.current.trim();e.length!==0&&await P(e)},ce=async()=>{h({kind:{type:`ok_and_close`},item:t,commit:async()=>{await r.addComment(t,`ok`),await r.closeIssue(t,`close`)},offline:i==null?void 0:$d(i,t,`close`),overlayPatch:{done:!0}})},le=l??(t.story.trim()===``?null:t.story),ue=u==null?null:I(c,u),de=u??t.storyOptionId??null;return(0,x.jsx)(wd,{item:t,storyName:le,storyColorEnum:ue,overlayStatus:d,statusOptions:a,state:C.state,stateError:C.stateError,body:C.body,bodyIsLoading:C.bodyIsLoading,bodyError:C.bodyError,comments:qd(C.comments,O),commentsAreLoading:C.commentsAreLoading,commentsError:C.commentsError,files:C.files,filesAreLoading:C.filesAreLoading,filesError:C.filesError,commits:C.commits,commitsAreLoading:C.commitsAreLoading,commitsError:C.commitsError,pullRequestStatus:C.pullRequestStatus,pullRequestStatusError:C.pullRequestStatusError,relatedPullRequests:C.relatedPullRequests,relatedPullRequestsError:C.relatedPullRequestsError,now:f,buildImageProxyUrl:w,renderReferenceLink:T,onAddInlineComment:D,onTitleRename:A,storyEntries:b,agentOptions:s,onCreateIssueFromComment:S,commentComposer:(0,x.jsx)(Ei,{initiallyOpen:!0,initialDraft:p,onSubmit:ne,onDraftChange:N,onOkAndAwaitingWorkspace:j===null?void 0:()=>re.onOkAndAwaitingWorkspace(j),onSubmitAndMoveToAwaitingWorkspace:M,onUploadFile:e=>r.uploadAttachment(t,e)}),operationBar:(0,x.jsx)(Ld,{tab:e,item:t,hasPullRequest:ee,rejectEnabled:E.length>0,statusOptions:a,storyOptions:o,currentStoryName:le,currentStoryOptionId:de,agentOptions:s,currentAgentName:t.agent,currentAgentOptionId:t.agentOptionId??null,handlers:re,storyNameForDeletion:v,onCommentAndClose:se,onOkAndClose:ce,isDraftEmpty:ae})})},rf=()=>{let e={};for(let t of A)e[t.name]=0;return e},af=`console`,of=async(e,t,{title:n,storyName:r,agentOptionId:i,body:a,files:o})=>{let s=await $t({pjcode:e,title:n,storyName:r??``,nameWithOwner:t,agentOptionId:i??null,body:a??null});if(o.length>0){let t=await H({pjcode:e,url:s,body:(await Promise.all(o.map(async t=>{let n=Wt(new Uint8Array(await t.arrayBuffer()));return Gt({pjcode:e,url:s,fileName:t.name,contentBase64:n})}))).join(`
|
|
91
|
+
`)[0],pd=({commits:e,isLoading:t,error:n,now:r})=>n===null?t?(0,x.jsx)(`p`,{className:`console-commits-loading`,children:`Loading commits...`}):e.length===0?(0,x.jsx)(`p`,{className:`console-commits-empty`,children:`No commits.`}):(0,x.jsx)(`ul`,{className:`console-commits`,children:e.map(e=>(0,x.jsxs)(`li`,{className:`console-commit`,children:[(0,x.jsx)(`span`,{className:`console-commit-message`,children:fd(e.message)}),(0,x.jsx)(`span`,{className:`console-commit-sha`,children:dd(e.sha)}),(0,x.jsx)(`span`,{className:`console-commit-author`,children:e.author}),(0,x.jsx)(`span`,{className:`console-commit-time`,children:k(e.authoredAt,r)})]},e.sha))}):(0,x.jsx)(`p`,{className:`console-commits-notloaded`,children:`Not loaded.`}),md=({url:e,label:t=`Copy URL`})=>(0,x.jsx)(xu,{value:e,idleText:`Copy URL`,idleAriaLabel:t,copiedAriaLabel:`URL copied to clipboard`,className:`console-copy-url-button`}),hd=e=>{let t=new Map;for(let n of e){let e=t.get(n.message);if(e===void 0){t.set(n.message,[n.section]);continue}e.push(n.section)}return Array.from(t,([e,t])=>({message:e,sections:t}))},gd=e=>e.length<=1?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`,_d=({failures:e})=>e.length===0?null:(0,x.jsx)(`div`,{role:`alert`,className:`console-detail-fetch-error`,children:hd(e).map(e=>(0,x.jsxs)(`p`,{className:`console-detail-fetch-error-line`,children:[`Failed to load `,gd(e.sections),`:`,` `,e.message]},e.message))}),vd=({title:e,onTitleRename:t})=>{let[n,r]=(0,y.useState)(e),[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(e),[c,l]=(0,y.useState)(!1),[u,d]=(0,y.useState)(null),f=(0,y.useRef)(e);(0,y.useEffect)(()=>{let t=e!==f.current;f.current=e,!i&&t&&r(e)},[e,i]);let p=()=>{s(n),d(null),a(!0)},m=()=>{a(!1),d(null)},h=async()=>{let e=o.trim();if(e===``||e===n){a(!1);return}l(!0),d(null);try{await t(e),r(e),a(!1)}catch(e){d(e instanceof Error?e.message:`Failed to rename`)}finally{l(!1)}};return i?(0,x.jsxs)(`span`,{className:`console-detail-title-text console-detail-title-text--editing`,children:[(0,x.jsx)(`input`,{type:`text`,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{e.key===`Enter`?h():e.key===`Escape`&&m()},disabled:c,className:`console-detail-title-input`,"aria-label":`Edit title`}),(0,x.jsx)(`button`,{type:`button`,onClick:()=>void h(),disabled:c,className:`console-detail-title-save`,children:`Save`}),(0,x.jsx)(`button`,{type:`button`,onClick:m,disabled:c,className:`console-detail-title-cancel`,children:`Cancel`}),u!==null&&(0,x.jsx)(`span`,{className:`console-detail-title-error`,role:`alert`,children:u})]}):(0,x.jsxs)(`span`,{className:`console-detail-title-text`,children:[n,(0,x.jsx)(`button`,{type:`button`,onClick:p,className:`console-detail-title-edit`,"aria-label":`Edit title`,children:`Edit`})]})},yd={MERGEABLE:{color:`GREEN`,label:`No conflict`,title:`This pull request has no merge conflicts`,modifier:`console-detail-mergeable-chip-ok`},CONFLICTING:{color:`RED`,label:`Conflict`,title:`This pull request has merge conflicts`,modifier:`console-detail-mergeable-chip-conflict`},UNKNOWN:{color:`GRAY`,label:`Checking merge status`,title:`GitHub has not finished computing the merge status yet`,modifier:`console-detail-mergeable-chip-unknown`}},bd=({mergeableStatus:e})=>{let t=yd[e],n=fe(t.color);return(0,x.jsx)(`span`,{className:`console-detail-status-chip console-detail-mergeable-chip ${t.modifier}`,style:{color:n.fg,borderColor:n.border,backgroundColor:n.bg},title:t.title,children:t.label})},xd=e=>{let t=fe(e);return{color:t.fg,borderColor:t.border,backgroundColor:t.bg}},Sd=({isPassedAllCiJob:e,isCiStateSuccess:t,isBranchOutOfDate:n,missingRequiredCheckNames:r})=>{let i=e&&t,a=i?`GREEN`:`RED`,o=i?`CI passing`:`CI failing`,s=!i&&r.length>0?`missing: ${r.join(`, `)}`:null;return(0,x.jsxs)(`span`,{className:`console-detail-pr-status`,children:[(0,x.jsxs)(`span`,{className:`console-detail-status-chip console-detail-ci-chip`,style:xd(a),title:s??o,children:[o,s!==null&&(0,x.jsxs)(`span`,{className:`console-detail-ci-missing`,children:[` `,`(`,s,`)`]})]}),n&&(0,x.jsx)(`span`,{className:`console-detail-status-chip console-detail-outofdate-chip`,style:xd(`YELLOW`),title:`This branch is out of date with the base branch`,children:`Out of date`})]})},Cd=({pullRequest:e,body:t,bodyIsLoading:n,files:r,filesAreLoading:i,filesError:a,commits:o,commitsAreLoading:s,commitsError:c,now:l,buildImageProxyUrl:u,renderReferenceLink:d,onAddInlineComment:f})=>{let p=e.summary,m=Oi(e.url),h=m===null?void 0:{owner:m.owner,repo:m.repo},g=i||a!==null?null:r.length,_=s||c!==null?null:o.length;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`console-pr-header`,children:[(0,x.jsx)(`a`,{href:e.url,className:`console-pr-section-title`,target:`_blank`,rel:`noopener noreferrer`,children:p?.title??e.url}),e.isDraft&&(0,x.jsx)(`span`,{className:`console-pr-section-state`,children:`draft`}),(0,x.jsx)(bd,{mergeableStatus:e.mergeableStatus}),(0,x.jsx)(Sd,{isPassedAllCiJob:e.isPassedAllCiJob,isCiStateSuccess:e.isCiStateSuccess,isBranchOutOfDate:e.isBranchOutOfDate,missingRequiredCheckNames:e.missingRequiredCheckNames}),(0,x.jsx)(`a`,{href:e.url,className:`console-panel-open-link`,target:`_blank`,rel:`noopener noreferrer`,children:`open`}),(0,x.jsx)(md,{url:e.url,label:`Copy PR URL`}),(0,x.jsxs)(`div`,{className:`console-pr-statbar`,children:[m!==null&&(0,x.jsxs)(`span`,{className:`console-pr-repo`,children:[m.owner,`/`,m.repo]}),e.branchName!==null&&(0,x.jsx)(`span`,{className:`console-pr-branch`,children:e.branchName}),p!==null&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`span`,{className:`console-pr-add`,children:[`+`,p.additions]}),(0,x.jsxs)(`span`,{className:`console-pr-del`,children:[`-`,p.deletions]}),(0,x.jsxs)(`span`,{className:`console-pr-files-count`,children:[p.changedFiles,` files`]})]})]})]}),(0,x.jsx)(Uu,{title:`Description`,children:n?(0,x.jsx)(`p`,{className:`console-pr-body-loading`,children:`Loading description...`}):(0,x.jsx)(Hu,{body:p?.body??t,buildImageProxyUrl:u,renderReferenceLink:d,repoContext:h})}),(0,x.jsx)(Uu,{title:`Changed files`,count:g,children:(0,x.jsx)(ad,{files:r,isLoading:i,error:a,buildImageProxyUrl:u,onAddInlineComment:f})}),(0,x.jsx)(Uu,{title:`Commits`,count:_,defaultCollapsed:!0,children:(0,x.jsx)(pd,{commits:o,isLoading:s,error:c,now:l})})]})},wd=({item:e,storyName:t,storyColorEnum:n,overlayStatus:r,statusOptions:i,state:a,body:o,bodyIsLoading:s,bodyError:c,comments:l,commentsAreLoading:u,commentsError:d,files:f,filesAreLoading:p,filesError:m,commits:h,commitsAreLoading:g,commitsError:_,stateError:v,pullRequestStatus:y,pullRequestStatusError:b,relatedPullRequests:S,relatedPullRequestsError:C,now:w,commentComposer:T,operationBar:ee,buildImageProxyUrl:E,renderReferenceLink:te,onAddInlineComment:D,onTitleRename:O,storyEntries:ne,agentOptions:A,onCreateIssueFromComment:j})=>{let M=a?.state??`open`,ie=a?.merged??!1,ae=!e.isPr&&M===`closed`?`Closed`:null,oe=ki(e.nameWithOwner)??void 0,N=fe(n),P=r===null?e.status===null?null:{name:e.status,color:i.find(t=>t.name===e.status)?.color??`GRAY`}:r,se=P===null?null:fe(P.color),ce=p||m!==null?null:f.length,le=u||d!==null?null:l.length,ue=g||_!==null?null:h.length,de=!u&&d===null&&l.length>0,pe=(e,t)=>{let n=Oi(e);return n===null?e:`${t}#${n.number}`},me=e=>pe(e,`PR `),F=[],I=new Map;for(let t of e.dependedIssueUrls){let e=I.get(t)??0;I.set(t,e+1),F.push({url:t,occurrenceKey:`${t}#${e}`})}let L=[{section:`item state`,message:v},{section:`pull request status`,message:e.isPr?b:null},{section:`description`,message:c},{section:`comments`,message:d},{section:`changed files`,message:e.isPr?m:null},{section:`commits`,message:e.isPr?_:null},{section:`related pull requests`,message:e.isPr?null:C},...S.flatMap(e=>[{section:`changed files of ${me(e.pullRequest.url)}`,message:e.filesError},{section:`commits of ${me(e.pullRequest.url)}`,message:e.commitsError}])].flatMap(e=>e.message===null?[]:[{section:e.section,message:e.message}]),he=e.isPr&&y?.found?[{url:e.url,mergeableStatus:y.mergeableStatus}]:[];return(0,x.jsxs)(`article`,{className:`console-detail`,children:[(0,x.jsxs)(`div`,{className:`console-detail-header`,children:[(0,x.jsxs)(`h2`,{className:`console-detail-title`,children:[(0,x.jsx)(ke,{isPr:e.isPr,state:M,merged:ie,isDraft:!1,stateReason:``}),O==null?(0,x.jsx)(`span`,{className:`console-detail-title-text`,children:e.title}):(0,x.jsx)(vd,{title:e.title,onTitleRename:O}),(0,x.jsx)(`span`,{className:`console-detail-number`,children:e.isPr?`PR #${e.number}`:`#${e.number}`})]}),(0,x.jsxs)(`div`,{className:`console-detail-topline`,children:[P!==null&&se!==null&&(0,x.jsx)(`span`,{className:`console-detail-status-chip`,style:{color:se.fg,borderColor:se.border,backgroundColor:se.bg},children:P.name}),e.agent!==null&&e.agent!==``&&(0,x.jsx)(`span`,{className:`console-detail-agent-chip`,children:e.agent}),t!==null&&(0,x.jsxs)(`span`,{className:`console-storytag`,children:[(0,x.jsx)(`span`,{className:`console-story-dot`,style:{backgroundColor:N.dot}}),t]}),e.isPr&&y?.found&&(0,x.jsx)(Sd,{isPassedAllCiJob:y.isPassedAllCiJob,isCiStateSuccess:y.isCiStateSuccess,isBranchOutOfDate:y.isBranchOutOfDate,missingRequiredCheckNames:y.missingRequiredCheckNames}),!e.isPr&&S.map(e=>(0,x.jsxs)(`span`,{className:`console-related-pr-group`,children:[S.length>1&&(0,x.jsx)(`span`,{className:`console-related-pr-label`,children:me(e.pullRequest.url)}),(0,x.jsx)(Sd,{isPassedAllCiJob:e.pullRequest.isPassedAllCiJob,isCiStateSuccess:e.pullRequest.isCiStateSuccess,isBranchOutOfDate:e.pullRequest.isBranchOutOfDate,missingRequiredCheckNames:e.pullRequest.missingRequiredCheckNames}),(0,x.jsx)(bd,{mergeableStatus:e.pullRequest.mergeableStatus})]},e.pullRequest.url)),he.map(e=>(0,x.jsx)(bd,{mergeableStatus:e.mergeableStatus},e.url)),ae!==null&&(0,x.jsx)(`span`,{className:`console-detail-closed-label`,children:ae})]}),e.dependedIssueUrls.length>0&&(0,x.jsxs)(`div`,{className:`console-detail-depended-issue-url`,children:[(0,x.jsx)(`span`,{className:`console-detail-depended-issue-url-label`,children:`Depended Issue URL`}),F.map(({url:e,occurrenceKey:t})=>{let n=pe(e,``);return(0,x.jsx)(`span`,{className:`console-detail-depended-issue-url-link`,children:te?.(e,n)??(0,x.jsx)(`a`,{className:`console-markdown-reference console-markdown-reference-plain`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:n})},t)})]}),(0,x.jsx)(_d,{failures:L}),(0,x.jsxs)(`div`,{className:`console-detail-subbar`,children:[(0,x.jsxs)(`a`,{href:e.url,className:`console-detail-link`,target:`_blank`,rel:`noopener noreferrer`,children:[`#`,e.number]}),(0,x.jsx)(`span`,{className:`console-detail-repo`,children:e.repo}),(0,x.jsxs)(`span`,{className:`console-detail-createdat`,title:re(e.createdAt),children:[`opened `,k(e.createdAt,w)]}),(0,x.jsx)(md,{url:e.url}),e.labels.map(e=>(0,x.jsx)(`span`,{className:`console-label-chip`,children:e},e))]})]}),(0,x.jsxs)(`div`,{className:`console-detail-body`,children:[(0,x.jsx)(Uu,{title:`Description`,defaultCollapsed:de,headerAction:(0,x.jsx)(`a`,{href:e.url,className:`console-panel-open-link`,target:`_blank`,rel:`noopener noreferrer`,children:`open`}),children:c===null?s?(0,x.jsx)(`p`,{className:`console-detail-body-loading`,children:`Loading description...`}):(0,x.jsx)(Hu,{body:o,buildImageProxyUrl:E,renderReferenceLink:te,repoContext:oe}):(0,x.jsx)(`p`,{className:`console-detail-body-notloaded`,children:`Not loaded.`})},de?`desc-collapsed`:`desc-open`),e.isPr&&(0,x.jsx)(Uu,{title:`Changed files`,count:ce,children:(0,x.jsx)(ad,{files:f,isLoading:p,error:m,onAddInlineComment:D})}),(0,x.jsx)(Uu,{title:`Comments`,count:le,children:(0,x.jsx)(ud,{comments:l,isLoading:u,error:d,now:w,buildImageProxyUrl:E,renderReferenceLink:te,repoContext:oe,persistenceKey:e.url,issueUrl:e.url,issueTitle:e.title,storyEntries:ne,agentOptions:A,onCreateIssueFromComment:j})}),e.isPr&&(0,x.jsx)(Uu,{title:`Commits`,count:ue,defaultCollapsed:!0,children:(0,x.jsx)(pd,{commits:h,isLoading:g,error:_,now:w})}),!e.isPr&&S.map(e=>(0,x.jsx)(Cd,{pullRequest:e.pullRequest,body:e.pullRequest.summary?.body??``,bodyIsLoading:!1,files:e.files,filesAreLoading:e.filesAreLoading,filesError:e.filesError,commits:e.commits,commitsAreLoading:e.commitsAreLoading,commitsError:e.commitsError,now:w,buildImageProxyUrl:E,renderReferenceLink:te,onAddInlineComment:D},e.pullRequest.url))]}),(0,x.jsxs)(`div`,{className:`console-detail-dock`,children:[(0,x.jsx)(`div`,{className:`console-detail-dock-composer`,children:T}),(0,x.jsx)(`div`,{className:`console-actionbar`,children:ee})]})]})},Td=({className:e,ariaLabel:t,placeholder:n,currentOption:r,options:i,onSelect:a})=>{let o=(0,y.useRef)({ready:!1,currentOptionId:r?.id??null});return(0,y.useLayoutEffect)(()=>{o.current.ready=!0,o.current.currentOptionId=r?.id??null}),(0,x.jsxs)(`select`,{className:e,defaultValue:r?.id??``,onChange:e=>{if(!o.current.ready||e.target.value===(o.current.currentOptionId??``))return;let t=i.find(t=>t.id===e.target.value);t!==void 0&&a(t)},"aria-label":t,children:[(0,x.jsx)(`option`,{value:``,children:n}),i.map(e=>(0,x.jsx)(`option`,{value:e.id,children:e.name},e.id))]})},Ed=({agentOptions:e,currentAgentName:t,currentAgentOptionId:n,onSetAgent:r})=>{if(e.length===0)return null;let i=n==null?t===null?null:e.find(e=>e.name===t)??null:e.find(e=>e.id===n)??null;return(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(Td,{className:`console-agent-select`,ariaLabel:`Set agent`,placeholder:`— agent —`,currentOption:i,options:e,onSelect:r},i?.id??`none`)})},Dd=({onClose:e,onCommentAndClose:t,onOkAndClose:n,isDraftEmpty:r})=>{let[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(null),c=async e=>{if(!(e===void 0||i)){a(!0),s(null);try{await e()}catch(e){s(e instanceof Error?e.message:`failed to post`)}finally{a(!1)}}};return(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>e(`close_not_planned`),children:`Close as not planned`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>e(`close`),children:`Close`}),n!==void 0&&(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,disabled:i,onClick:()=>{c(n)},children:`OK & Close`}),t!==void 0&&(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,disabled:i||r===!0,onClick:()=>{c(t)},children:`Comment & Close`}),o!==null&&(0,x.jsx)(`span`,{role:`alert`,className:`console-op-comment-close-error`,children:o})]})},Od=({onDeleteAllComments:e,onDeleteStory:t,storyNameForDeletion:n})=>{let[r,i]=(0,y.useState)(!1),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(!1),[l,u]=(0,y.useState)(null),d=()=>{e(),i(!1)},f=()=>{o(!0),u(null)},p=async e=>{if(t){c(!0),u(null);try{await t(e)}catch(e){u(e instanceof Error?e.message:String(e)),c(!1)}}};return(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>i(e=>!e),children:`⚠`}),r&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:d,children:`Delete All Comments`}),t!=null&&(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:f,disabled:a,children:`Delete Story`})]}),a&&(0,x.jsxs)(`div`,{className:`console-story-delete-confirm`,role:`dialog`,"aria-modal":`true`,"aria-label":`Confirm story deletion`,children:[(0,x.jsxs)(`p`,{className:`console-story-delete-confirm-message`,children:[`Delete story option "`,n,`" from the GitHub custom field?`]}),l!==null&&(0,x.jsx)(`p`,{role:`alert`,className:`console-list-error`,children:l}),(0,x.jsxs)(`div`,{className:`console-story-delete-confirm-actions`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>void p(!0),disabled:s,children:s?`Deleting…`:`Delete with child tasks`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>void p(!1),disabled:s,children:s?`Deleting…`:`Keep child tasks`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>{o(!1),u(null)},disabled:s,children:`Cancel`})]})]})]})},kd=({isManualTriage:e,onSetNextActionDate:t})=>(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1hour`),children:`+1h`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_3hours`),children:`+3h`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_6hours`),children:`+6h`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1day`),children:`+1d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_2days`),children:`+2d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_3days`),children:`+3d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_5days`),children:`+5d`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1week`),children:e?`+1w skip`:`+1w`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1month`),children:`+1mo`})]}),Ad=[{action:`unnecessary`,label:`Unnecessary`,variant:`unneeded`},{action:`totally_wrong`,label:`Totally wrong`,variant:`wrong`},{action:`request_changes`,label:`Reject`,variant:`reject`},{action:`approve_and_merge`,label:`Approve & Merge`,variant:`approve`}],jd=`Reject needs an inline comment on the diff.`,Md=({onReview:e,rejectEnabled:t})=>(0,x.jsxs)(`div`,{className:`console-op-group console-op-group-review`,children:[!t&&(0,x.jsx)(`p`,{className:`console-op-requirement`,children:jd}),Ad.map(n=>{let r=n.action===`request_changes`&&!t;return(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-${n.variant}`,disabled:r,onClick:()=>e(n.action),children:n.label},n.action)})]}),Nd=({onSetDependedIssueUrl:e})=>{let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(``),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(null);return(0,x.jsxs)(`div`,{className:`console-op-group console-op-group-rare-actions`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>{n(e=>!e),c(null)},title:`Rare actions`,children:`⋯`}),t&&e!==null&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`input`,{type:`url`,className:`console-settings-modal-input`,placeholder:`Depended issue URL`,value:r,onChange:e=>i(e.target.value),disabled:a}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:async()=>{if(e!==null&&r.trim()!==``){o(!0),c(null);try{await e(r.trim()),i(``),n(!1)}catch(e){c(e instanceof Error?e.message:`Failed to set depended issue URL`)}finally{o(!1)}}},disabled:a||r.trim()===``,children:a?`...`:`Set Depended Issue`})]}),s!==null&&(0,x.jsx)(`p`,{className:`console-settings-modal-error`,children:s})]})},Pd=(e,t)=>{let n=t.toLowerCase();return e.find(e=>e.name.toLowerCase()===n)??null},Fd=({statusOptions:e,onSetStatus:t,onSetInTmuxByHuman:n})=>{let r=we.map(t=>({name:t,option:Pd(e,t)})).filter(e=>e.option!==null);return r.length===0?null:(0,x.jsx)(`div`,{className:`console-op-group`,children:r.map(({name:e,option:r})=>{let i=fe(r.color),a=e===Se;return(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,style:{color:i.fg,borderColor:i.border,backgroundColor:i.bg},onClick:()=>a?n(r):t(r),children:r.name},r.id)})})},Id=({storyOptions:e,currentStoryName:t,currentStoryOptionId:n,onSetStory:r})=>{if(e.length===0)return null;let i=n===null?t===null?null:e.find(e=>e.name===t)??null:e.find(e=>e.id===n)??null;return(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(Td,{className:`console-story-select`,ariaLabel:`Set story`,placeholder:`— story —`,currentOption:i,options:e,onSelect:r},i?.id??`none`)})},Ld=({tab:e,hasPullRequest:t,rejectEnabled:n,statusOptions:r,storyOptions:i,currentStoryName:a,currentStoryOptionId:o,agentOptions:s,currentAgentName:c,currentAgentOptionId:l,handlers:u,storyNameForDeletion:d,onCommentAndClose:f,onOkAndClose:p,isDraftEmpty:m})=>{let[h,g]=(0,y.useState)(!1);return(0,x.jsxs)(`div`,{className:`console-operation-bar`,children:[t&&(0,x.jsx)(Md,{onReview:u.onReview,rejectEnabled:n}),(0,x.jsx)(kd,{isManualTriage:Te(e),onSetNextActionDate:u.onSetNextActionDate}),(0,x.jsx)(Fd,{statusOptions:r,onSetStatus:u.onSetStatus,onSetInTmuxByHuman:u.onSetInTmuxByHuman}),h&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(Id,{storyOptions:i,currentStoryName:a,currentStoryOptionId:o,onSetStory:u.onSetStory}),(0,x.jsx)(Ed,{agentOptions:s,currentAgentName:c,currentAgentOptionId:l,onSetAgent:u.onSetAgent})]}),(0,x.jsxs)(`div`,{className:`console-op-group-bottom-row`,children:[(0,x.jsxs)(`div`,{className:`console-op-group-left-pair`,children:[(i.length>0||s.length>0)&&(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>g(e=>!e),title:`Change agent or story`,children:`⚙`})}),(0,x.jsx)(Nd,{onSetDependedIssueUrl:u.onSetDependedIssueUrl}),(0,x.jsx)(Od,{onDeleteAllComments:u.onDeleteAllComments,onDeleteStory:u.onDeleteStory,storyNameForDeletion:d})]}),(0,x.jsx)(Dd,{onClose:u.onClose,onCommentAndClose:f,onOkAndClose:p,isDraftEmpty:m})]})]})},Rd=(e,t,n,r)=>{let i=t===null?void 0:e.peek(t),[a,o]=(0,y.useState)(i??r),[s,c]=(0,y.useState)(t!==null&&i===void 0),[l,u]=(0,y.useState)(null);return(0,y.useEffect)(()=>{if(t===null||n===null)return;let r=e.peek(t);if(r!==void 0){o(r),c(!1),u(null);return}let i=!1;return c(!0),u(null),e.load(t,n).then(e=>{i||(o(e),c(!1))}).catch(e=>{i||(u(e instanceof Error?e.message:String(e)),c(!1))}),()=>{i=!0}},[e,t,n]),{data:a,isLoading:s,error:l}},zd=[],Bd=[],Vd=[],Hd=[],Ud={state:`open`,merged:!1,isPullRequest:!1,title:``},Wd={found:!1,isConflicted:!1,mergeableStatus:`UNKNOWN`,isPassedAllCiJob:!1,isCiStateSuccess:!1,isBranchOutOfDate:!1,missingRequiredCheckNames:[]},Gd=(e,t,n)=>{let r=t===null?null:`${t.repo}#${t.number}`,i=t===null?null:t.url,a=t?.isPr??!1,o=Rd(e.body,r,i,``),s=Rd(e.state,r,i,Ud),c=Rd(e.comments,r,i,zd),l=Rd(e.files,a?r:null,a?i:null,Bd),u=Rd(e.commits,a?r:null,a?i:null,Vd),d=Rd(e.prStatus,a?r:null,a?i:null,Wd),f=!a&&((t?.relatedOpenPullRequestUrls.length??0)>0||n===`prs`),p=Rd(e.relatedPrs,f?r:null,f?i:null,Hd),[m,h]=(0,y.useState)([]);return(0,y.useEffect)(()=>{if(a||p.data.length===0){h([]);return}let t=!1,n=p.data.map(e=>({pullRequest:e,files:Bd,filesAreLoading:!0,filesError:null,commits:Vd,commitsAreLoading:!0,commitsError:null}));h(n);let r=(e,n)=>{t||h(t=>t.map(t=>t.pullRequest.url===e?{...t,...n}:t))};for(let t of p.data){let n=t.url;e.files.load(n,t.url).then(e=>r(t.url,{files:e,filesAreLoading:!1})).catch(e=>r(t.url,{filesAreLoading:!1,filesError:e instanceof Error?e.message:String(e)})),e.commits.load(n,t.url).then(e=>r(t.url,{commits:e,commitsAreLoading:!1})).catch(e=>r(t.url,{commitsAreLoading:!1,commitsError:e instanceof Error?e.message:String(e)}))}return()=>{t=!0}},[e,a,p.data]),{state:s.data,body:o.data,bodyIsLoading:o.isLoading,bodyError:o.error,comments:c.data,commentsAreLoading:c.isLoading,commentsError:c.error,files:l.data,filesAreLoading:l.isLoading,filesError:l.error,commits:u.data,commitsAreLoading:u.isLoading,commitsError:u.error,stateError:s.error,pullRequestStatus:a?d.data:null,pullRequestStatusError:a?d.error:null,relatedPullRequests:m,relatedPullRequestsError:a?null:p.error}},Kd=e=>JSON.stringify([e.author,e.createdAt,e.body]),qd=(e,t)=>{let n=new Set(e.map(Kd));return[...e,...t.filter(e=>!n.has(Kd(e)))]},Jd=({href:e,fallbackText:t,state:n})=>{if(n===null||n.title.trim()===``)return(0,x.jsx)(`a`,{className:`console-markdown-reference console-markdown-reference-plain`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:t});let r=Oi(e);return(0,x.jsxs)(`a`,{className:`console-markdown-reference`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:[(0,x.jsx)(ke,{...Ai(n)}),(0,x.jsx)(`span`,{className:`console-markdown-reference-title`,children:n.title}),r!==null&&(0,x.jsxs)(`span`,{className:`console-markdown-reference-number`,children:[`#`,r.number]})]})},Yd=(e,t)=>{let[n,r]=(0,y.useState)(()=>e.peek(t)??null);return(0,y.useEffect)(()=>{let n=e.peek(t);if(n!==void 0){r(n);return}let i=!1;return r(null),e.load(t,t).then(e=>{i||r(e)}).catch(()=>{i||r(null)}),()=>{i=!0}},[e,t]),n},Xd=({cache:e,href:t,fallbackText:n})=>{let r=Yd(e,t);return(0,x.jsx)(Jd,{href:t,fallbackText:n,state:r})},Zd=e=>({itemUrl:e.url,projectItemId:e.projectItemId,itemNumber:e.number,repo:e.repo,isPr:e.isPr}),Qd=(e,t,n,r,i)=>({...Zd(t),apiPath:Ar,requestBody:Nr(e,t,n,r,i)}),$d=(e,t,n,r)=>({...Zd(t),apiPath:jr,requestBody:Pr(e,t,n,r)}),ef=(e,t)=>({...Zd(t),apiPath:Mr,requestBody:Fr(e,t)}),tf=(e,t,n)=>{e===void 0?console.error(t,n):e(t,String(n))},nf=({tab:e,item:t,caches:n,operations:r,pjcode:i,statusOptions:a,storyOptions:o,agentOptions:s,storyColors:c,storyName:l,storyOptionId:u,overlayStatus:d,now:f,initialCommentDraft:p,onCommentDraftChange:m,onQueueAction:h,onCommentError:g,onDeleteStory:_,storyNameForDeletion:v,storyEntries:b,onCreateIssueFromComment:S})=>{let C=Gd(n,t,e),w=(0,y.useCallback)(e=>Ni(e,t.url),[t.url]),T=(0,y.useCallback)((e,t)=>(0,x.jsx)(Xd,{cache:n.state,href:e,fallbackText:t}),[n.state]),ee=t.isPr||t.relatedOpenPullRequestUrls.length>0||C.relatedPullRequests.length>0,[E,te]=(0,y.useState)([]),D=(0,y.useCallback)(async(e,t,n,r)=>{te(i=>[...i,{path:e,line:t,side:n,body:r}])},[]),[O,k]=(0,y.useState)([]),ne=(0,y.useCallback)(async e=>{let n=await r.addComment(t,e);return k(e=>[...e,n]),n},[t,r]),re={onReview:e=>{let n=t.isPr?t.url:C.relatedPullRequests[0]?.pullRequest.url??t.relatedOpenPullRequestUrls[0]??t.url,a=e===`request_changes`?E:[];h({kind:{type:`review`,action:e},item:t,commit:()=>r.reviewPullRequest(t,n,e,a),offline:i==null?void 0:Qd(i,t,n,e,a),overlayPatch:{done:!0}})},onSetNextActionDate:e=>{h({kind:{type:`next_action_date`,action:e},item:t,commit:()=>r.setNextActionDate(t,e),offline:i==null?void 0:$d(i,t,e),overlayPatch:{done:!0}})},onSetStory:e=>{h({kind:{type:`set_story`,optionName:e.name},item:t,commit:()=>r.setStory(t,e),offline:i==null?void 0:$d(i,t,`set_story`,{storyOptionId:e.id}),overlayPatch:{done:!0,story:{id:e.id,name:e.name,color:e.color}}})},onSetAgent:e=>{h({kind:{type:`set_agent`,optionName:e.name},item:t,commit:()=>r.setAgent(t,e),offline:i==null?void 0:$d(i,t,`set_agent`,{agentOptionId:e.id}),overlayPatch:{done:!0}})},onSetStatus:e=>{h({kind:{type:`set_status`,optionName:e.name},item:t,commit:()=>r.setStatus(t,e),offline:i==null?void 0:$d(i,t,`set_status`,{statusName:e.name}),overlayPatch:{done:!0,status:{name:e.name,color:e.color}}})},onSetInTmuxByHuman:e=>{h({kind:{type:`set_in_tmux_by_human`,optionName:e.name},item:t,commit:()=>r.setInTmuxByHuman(t,e),offline:i==null?void 0:ef(i,t),overlayPatch:{done:!0,status:{name:e.name,color:e.color}}})},onClose:e=>{h({kind:{type:`close`,action:e},item:t,commit:()=>r.closeIssue(t,e),offline:i==null?void 0:$d(i,t,e),overlayPatch:{done:!0}})},onOkAndAwaitingWorkspace:e=>{h({kind:{type:`ok_and_awaiting_workspace`},item:t,commit:()=>r.okAndMoveToAwaitingWorkspace(t,e),overlayPatch:{done:!0,status:{name:e.name,color:e.color}}})},onDeleteAllComments:()=>{h({kind:{type:`delete_all_comments`},item:t,commit:()=>r.deleteAllComments(t)})},onDeleteStory:_??null,onSetDependedIssueUrl:i==null?null:async e=>{await r.setDependedIssueUrl(t,e)}},A=(0,y.useCallback)(async e=>{await r.issueRename(t,e)},[t,r]),j=a.find(e=>e.name===`Awaiting Workspace`)??null,M=j===null?void 0:async e=>(m?.(``),await new Promise((n,i)=>{let a=!1,o=(e,t)=>{throw tf(g,e,t),i(t),t};h({kind:{type:`set_status`,optionName:j.name},item:t,commit:async()=>{if(a){try{await r.setStatus(t,j)}catch(e){o(`Comment already posted, but retrying the move to Awaiting Workspace status failed: ${String(e)}`,e)}try{await r.onAfterMoveToAwaitingWorkspace?.()}catch(e){tf(g,`Comment posted and status set to Awaiting Workspace, but a post-success refresh action failed: ${String(e)}`,e)}return}try{let i=await r.addCommentAndMoveToAwaitingWorkspace(t,e,j);k(e=>[...e,i]),n(i)}catch(e){a=!0,o(`Comment may already be posted; moving to Awaiting Workspace status failed: ${String(e)}`,e)}},overlayPatch:{done:!0,status:{name:j.name,color:j.color}}})})),ie=(0,y.useRef)(``),[ae,oe]=(0,y.useState)((p??``).trim().length===0),N=(0,y.useCallback)(e=>{ie.current=e,oe(e.trim().length===0),m?.(e)},[m]),P=async e=>{await ne(e),re.onClose(`close`)},se=async()=>{let e=ie.current.trim();e.length!==0&&await P(e)},ce=async()=>{h({kind:{type:`ok_and_close`},item:t,commit:async()=>{await r.addComment(t,`ok`),await r.closeIssue(t,`close`)},offline:i==null?void 0:$d(i,t,`close`),overlayPatch:{done:!0}})},le=l??(t.story.trim()===``?null:t.story),ue=u==null?null:I(c,u),de=u??t.storyOptionId??null;return(0,x.jsx)(wd,{item:t,storyName:le,storyColorEnum:ue,overlayStatus:d,statusOptions:a,state:C.state,stateError:C.stateError,body:C.body,bodyIsLoading:C.bodyIsLoading,bodyError:C.bodyError,comments:qd(C.comments,O),commentsAreLoading:C.commentsAreLoading,commentsError:C.commentsError,files:C.files,filesAreLoading:C.filesAreLoading,filesError:C.filesError,commits:C.commits,commitsAreLoading:C.commitsAreLoading,commitsError:C.commitsError,pullRequestStatus:C.pullRequestStatus,pullRequestStatusError:C.pullRequestStatusError,relatedPullRequests:C.relatedPullRequests,relatedPullRequestsError:C.relatedPullRequestsError,now:f,buildImageProxyUrl:w,renderReferenceLink:T,onAddInlineComment:D,onTitleRename:A,storyEntries:b,agentOptions:s,onCreateIssueFromComment:S,commentComposer:(0,x.jsx)(Ei,{initiallyOpen:!0,initialDraft:p,onSubmit:ne,onDraftChange:N,onOkAndAwaitingWorkspace:j===null?void 0:()=>re.onOkAndAwaitingWorkspace(j),onSubmitAndMoveToAwaitingWorkspace:M,onUploadFile:e=>r.uploadAttachment(t,e)}),operationBar:(0,x.jsx)(Ld,{tab:e,item:t,hasPullRequest:ee,rejectEnabled:E.length>0,statusOptions:a,storyOptions:o,currentStoryName:le,currentStoryOptionId:de,agentOptions:s,currentAgentName:t.agent,currentAgentOptionId:t.agentOptionId??null,handlers:re,storyNameForDeletion:v,onCommentAndClose:se,onOkAndClose:ce,isDraftEmpty:ae})})},rf=()=>{let e={};for(let t of A)e[t.name]=0;return e},af=`console`,of=async(e,t,{title:n,storyName:r,agentOptionId:i,body:a,files:o})=>{let s=await $t({pjcode:e,title:n,storyName:r??``,nameWithOwner:t,agentOptionId:i??null,body:a??null});if(o.length>0){let t=await H({pjcode:e,url:s,body:(await Promise.all(o.map(async t=>{let n=Wt(new Uint8Array(await t.arrayBuffer()));return Gt({pjcode:e,url:s,fileName:t.name,contentBase64:n})}))).join(`
|
|
92
92
|
|
|
93
93
|
`)});if(!t.posted)throw Error(t.error)}},sf=()=>{let e=$r(),t=Sr(),n=Ct(),r=n.status===`on`?n.snapshot:null,{snapshots:i,isLoading:a,error:o,refreshSingleTab:s}=cr(e,r),{timerMode:c,projectMinutes:l,isOpen:u,draftTimerMode:d,draftProjectMinutes:f,openSettings:p,closeSettings:m,saveSettings:h,toggleDraftTimerMode:g,changeDraftMinutes:_}=vi(),{pjcodes:v,projectUrls:b,fleetTaskCreateUrl:C,nameWithOwnerByPjcode:w,disabledPjcodes:ee,isLoading:E}=ei(),{isTimerExpired:te}=ii(e),D=Zr(e??af),O=ri(v),k=(0,y.useMemo)(()=>qr(D.overlay,i),[D.overlay,i]),ne=(0,y.useMemo)(()=>{let e=rf();for(let t of A){let n=i[t.name];n!==null&&(t.name===`stories`?e[t.name]=n.stories.filter(e=>e.color!==`GRAY`).length:e[t.name]=Hr(n.items,k,t.name))}return e},[i,k]),re=kr(e,ne,(0,y.useMemo)(()=>{let e=new Set;for(let t of A){let n=i[t.name];n!==null&&!n.fromCache&&e.add(t.name)}return e},[i]),(0,y.useMemo)(()=>{let e=rf();for(let t of A){let n=i[t.name];n!==null&&(e[t.name]=t.name===`stories`?n.stories.filter(e=>e.color!==`GRAY`).length:n.items.length)}return e},[i])),{activeTab:j,selectedItemKey:M,openItem:oe,closeItem:N}=re,P=gi(re.selectTab),{explicitlySelectedPjcode:se,notifyExplicitSelection:ce}=br(e),le=ti((0,y.useCallback)(e=>{ce(e),Hn(`/projects/${e}`)},[ce]));lr(e,j,v,a,c&&r===null);let de=(0,y.useRef)(new Map),fe=(0,y.useCallback)(e=>{M!==null&&(e?de.current.set(M,e):de.current.delete(M))},[M]),pe=pr(r),F=Rr(e,pe,(0,y.useCallback)(()=>s(`queued`),[s])),I=Vn(),[ge,_e]=(0,y.useState)(()=>Date.now());(0,y.useEffect)(()=>{let e=setInterval(()=>{_e(Date.now())},1e3);return()=>{clearInterval(e)}},[]);let[ye,R]=(0,y.useState)(!1),[be,xe]=(0,y.useState)(!1),[Se,Ce]=(0,y.useState)({title:``,body:null,storyName:null,agentOptionId:null}),[we,Te]=(0,y.useState)({title:``,body:null,storyName:null,agentOptionId:null}),[Ee,De]=(0,y.useState)(()=>navigator.onLine);(0,y.useEffect)(()=>{let e=()=>De(!0),t=()=>De(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,t),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,t)}},[]);let[Oe,ke]=(0,y.useState)(new Map),[Ae,je]=(0,y.useState)(new Map),[Pe,Fe]=(0,y.useState)(new Set);(0,y.useEffect)(()=>{if(Ee&&I.offlineActions.length!==0)for(let e of I.offlineActions)Oe.has(e.id)||Pe.has(e.id)||(ke(t=>new Map(t).set(e.id,null)),pe.client.fetchIssueState(e.itemUrl).then(t=>{ke(n=>new Map(n).set(e.id,t)),e.isPr&&(je(t=>new Map(t).set(e.id,null)),pe.client.fetchPullRequestStatus(e.itemUrl).then(t=>{je(n=>new Map(n).set(e.id,t))}).catch(e=>{console.warn(`Failed to fetch PR status for offline action:`,e)}))}).catch(t=>{console.warn(`Failed to fetch current state for offline action:`,t),Fe(t=>new Set(t).add(e.id))}))},[Ee,I.offlineActions,pe.client,Oe,Pe]);let[Le,Re]=(0,y.useState)(!1),ze=(0,y.useCallback)(async e=>{Re(!0);try{await I.confirmOfflineAction(e)}finally{Re(!1)}},[I]),Be=(0,y.useMemo)(()=>I.offlineActions.map(e=>{let t=Oe.get(e.id)??null,n=Ae.get(e.id)??null,r=Pe.has(e.id);return{id:e.id,message:e.message,color:e.color,itemNumber:e.itemNumber,isPr:e.isPr,currentTitle:r?null:t?.title??null,currentState:r||t===null?null:t.merged?`closed`:t.state,currentPrStatus:n,fetchError:r}}),[I.offlineActions,Oe,Ae,Pe]),Ve=i[j],He=(0,y.useMemo)(()=>Ve===null?[]:Ur(Ve.items,k,j),[Ve,k,j]),[Ue,We]=(0,y.useState)(null),Ke=(0,y.useMemo)(()=>{if(j!==`prs`)return{};let e={};for(let t of He)t.agent!==null&&t.agent!==``&&(e[t.agent]=(e[t.agent]??0)+1);return e},[He,j]);(0,y.useEffect)(()=>{j===`prs`&&Ue!==null&&(Ke[Ue]??0)===0&&We(null)},[Ke,Ue,j]);let qe=(0,y.useMemo)(()=>j!==`prs`||Ue===null?He:He.filter(e=>e.agent===Ue),[He,j,Ue]),Je=(0,y.useMemo)(()=>qe.map(e=>Br(e)),[qe]),Ye=Ve?.storyOrder??[],$e=(0,y.useMemo)(()=>ve(qe,D.overlay,Ye,Ve?.generatedAt??null),[qe,D.overlay,Ye,Ve]),et=Ve?.storyColors??{},tt=Ve?.statusOptions??[],nt=Ve?.agentOptions??[],rt=Ve?.storyOptions??[],it=Ve?.generatedAt??null,at=Ve?.fromCache??!1,[ot,st]=(0,y.useState)(null),z=(0,y.useMemo)(()=>M===null||Ve===null?null:Ve.items.find(e=>e.projectItemId===M)??null,[M,Ve]);yr(pe,z,He),(0,y.useEffect)(()=>{M!==null&&window.scrollTo({top:0})},[M]),(0,y.useEffect)(()=>{if(e===null&&c&&v.length>0){let e=ae(v,null,l);e!==null&&Un(`/projects/${e}/todo-by-human`)}},[e,c,v,l]);let ct=I.pending!==null,lt=(0,y.useMemo)(()=>ct?{status:`unconfirmed`,attempt:I.writeState.attempt}:I.writeState,[ct,I.writeState]);Wn(c,te,ne.prs,ne[`todo-by-human`],e,v,l,i.prs!==null,i[`todo-by-human`]!==null,i.prs?.fromCache??!1,i[`todo-by-human`]?.fromCache??!1,se,lt),_i(c,e,qe,M,re.openItem);let ut=ne[j],dt=(0,y.useRef)({tab:j,count:ut});(0,y.useEffect)(()=>{let e=dt.current;if(dt.current={tab:j,count:ut},e.tab===j&&e.count>0&&ut===0){let e=Cr(j,ne);e!==null&&(P(e),N())}},[j,ut,ne,P,N]);let ft=z===null?null:Wr(D.overlay,z,i[j]?.generatedAt??null),pt=z===null?null:L(z,D.overlay,i[j]?.generatedAt??null),mt=z===null?null:he(z,D.overlay,i[j]?.generatedAt??null),ht=(0,y.useCallback)(e=>{let t=yi(Je,e);t===null?N():oe(t)},[Je,oe,N]),gt=(0,y.useCallback)(e=>{if(n.status===`on`){I.showError(`Airplane mode`,`This action requires a network connection. Turn off airplane mode and try again.`);return}let t=Br(e.item),r=e.overlayPatch;I.enqueue({message:En(e.kind,e.item,j),color:wn(e.kind),commit:e.commit,offline:e.offline,revertAdvance:e.revertAdvance,optimistic:r===void 0?void 0:()=>D.patchOverlay(t,r,j),revertOptimistic:r===void 0?void 0:()=>D.revertOverlayEntry(t),advance:()=>{e.onAdvance?.(),!e.skipAdvance&&Tn(e.kind,j)&&ht(t)}})},[I,j,ht,n.status,D]),_t=hi((0,y.useCallback)(e=>{if(M===null||e===null)return;let t=e===`next`?bi(Je,M):xi(Je,M);t!==null&&oe(t)},[M,Je,oe])),[vt,yt]=(0,y.useState)(()=>localStorage.getItem(`console-story-show-gray`)===`true`),bt=(0,y.useCallback)(()=>{yt(e=>{let t=!e;return localStorage.setItem(`console-story-show-gray`,String(t)),t})},[]),B=i.stories,xt=B?.stories??[],St=ot!==null&&ot.generatedAt===B?.generatedAt?ot.stories:xt,V=B?.defaultNameWithOwner??null,wt=V===null?null:`https://github.com/${V}/issues/new`,Tt=(0,y.useMemo)(()=>z===null||!z.labels.includes(`story`)?null:St.find(e=>e.storyName===z.story)??null,[z,St]),Et=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);if(V===null)throw Error(`No repository configured for this project.`);await $t({pjcode:e,title:n,storyName:t,nameWithOwner:V})},[e,V]),Dt=(0,y.useCallback)(({storyName:t,agentOptionId:n,title:r,body:i,files:a})=>{if(e===null||V===null)return Promise.resolve();let o=e,s=V,c={title:r,storyName:t,agentOptionId:n,body:i,files:a};return I.enqueue({message:`Task created — "${r}"`,color:`blue`,commit:()=>of(o,s,c),advance:()=>{}}),Te({title:``,body:null,storyName:null,agentOptionId:null}),Promise.resolve()},[e,V,I]),Ot=(0,y.useCallback)(({title:t,body:n,storyName:r,agentOptionId:i,files:a})=>{if(C===null||e===null)return Promise.resolve();let o=C.match(/github\.com\/([^/]+\/[^/]+)/);if(o===null)return Promise.resolve();let s=o[1],c=e,l={title:t,storyName:r,agentOptionId:i,body:n,files:a};return I.enqueue({message:`Task created — "${t}"`,color:`blue`,commit:()=>of(c,s,l),advance:()=>{}}),Ce({title:``,body:null,storyName:null,agentOptionId:null}),Promise.resolve()},[C,e,I]),kt=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);await tn({pjcode:e,storyOptionId:t,direction:n});let r=St.findIndex(e=>e.storyOptionId===t);if(r!==-1){let e=r+(n===`up`?-1:1);if(e>=0&&e<St.length){let t=[...St],n=t[r];t[r]=t[e],t[e]=n,st({generatedAt:B?.generatedAt,stories:t})}}},[e,St,B?.generatedAt]),At=(0,y.useCallback)(async t=>{if(e===null)throw Error(`No project specified in the URL path.`);let n=await qt({pjcode:e,storyName:t});if(n.length>0){let e=n.map(e=>{let t=St.find(t=>t.storyOptionId===e.id);return{storyOptionId:e.id,storyName:e.name,color:e.color,description:t?.description??``,openItemCount:t?.openItemCount??0,storyViewUrl:t?.storyViewUrl??null,items:t?.items??[]}});st({generatedAt:B?.generatedAt,stories:e})}},[e,St,B?.generatedAt]),jt=(0,y.useCallback)((e,t)=>{Te({title:t,body:null,storyName:e,agentOptionId:null}),R(!0)},[]),[Mt,Nt]=(0,y.useState)({}),[Pt,Ft]=(0,y.useState)(null),[It,Lt]=(0,y.useState)({}),Rt=(0,y.useCallback)((t,n)=>{let r=St.find(e=>e.storyOptionId===t)?.color;if(Ft(t),Nt(e=>({...e,[t]:n})),Lt(e=>{let n={...e};return delete n[t],n}),e===null||V===null){Nt(e=>r===void 0?e:{...e,[t]:r}),Lt(e=>({...e,[t]:`No project or repository configured.`})),Ft(e=>e===t?null:e);return}Qt({pjcode:e,storyOptionId:t,newColor:n,nameWithOwner:V}).catch(e=>{Nt(e=>r===void 0?e:{...e,[t]:r}),Lt(n=>({...n,[t]:e instanceof Error?e.message:String(e)}))}).finally(()=>{Ft(e=>e===t?null:e)})},[e,V,St]),zt=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);await on({pjcode:e,storyOptionId:t,deleteChildTasks:n}),st({generatedAt:B?.generatedAt,stories:St.filter(e=>e.storyOptionId!==t)})},[e,St,B?.generatedAt]),Bt=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);await cn({pjcode:e,storyOptionId:t,newName:n});let r=St.map(e=>e.storyOptionId===t?{...e,storyName:n}:e);st({generatedAt:B?.generatedAt,stories:r})},[e,St,B?.generatedAt]),Vt=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);await un({pjcode:e,storyOptionId:t,description:n});let r=St.map(e=>e.storyOptionId===t?{...e,description:n}:e);st({generatedAt:B?.generatedAt,stories:r})},[e,St,B?.generatedAt]),Ht=di(He,pe.comments,j===`prs`),H=(0,y.useCallback)((e,t)=>{gt({kind:{type:`ok_and_awaiting_workspace`},item:e,commit:()=>F.okAndMoveToAwaitingWorkspace(e,t),skipAdvance:!0,overlayPatch:{done:!0,status:{name:t.name,color:t.color}}})},[gt,F]);return(0,x.jsxs)(`main`,{className:`console-app`,children:[I.pending!==null&&(0,x.jsx)(Ze,{message:I.pending.message,color:I.pending.color,remainingSeconds:I.pending.remainingSeconds,progress:I.pending.progress,onUndo:I.undo,onDismiss:I.dismiss}),I.error!==null&&(0,x.jsx)(Qe,{title:I.error.message,message:`Operation failed: ${I.error.reason}`,onDismiss:I.dismissError,onRetry:I.error.retry===void 0?void 0:()=>{I.dismissError(),I.error?.retry?.()}}),(0,x.jsx)(Xe,{actions:Be,isOnline:Ee,isConfirming:Le,onConfirm:ze,onDiscard:I.discardOfflineAction}),O.isOpen&&(0,x.jsx)(S,{pjcodes:v,inputValues:O.inputValues,onChangeInput:O.changeInput,isLoading:O.isLoading,isSaving:O.isSaving,error:O.error,nameWithOwnerByPjcode:w,onSave:O.save,onClose:O.close}),(0,x.jsx)(ie,{activeTab:j,counts:ne,pjcode:e,pjcodes:v,disabledPjcodes:ee,generatedAt:it,fromCache:at,tabHref:re.tabHref,onSelectTab:P,onSelectProject:le,settingsButton:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ue,{isOpen:u,isTimerActive:c,timerMode:d,projectMinutes:f,pjcodes:v,isLoadingPjcodes:E,onOpen:p,onToggleTimerMode:g,onChangeMinutes:_,onSave:h,onClose:m}),(0,x.jsx)(`button`,{type:`button`,className:`console-tab-settings-button`,"aria-label":`Open max settings`,onClick:O.open,children:`⚙`}),e!==null&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`button`,{type:`button`,className:`console-task-create-button`,disabled:V===null||St.length===0,onClick:()=>R(!0),"aria-label":`Create new task`,title:`Create new task`,children:(0,x.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,x.jsx)(`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),(0,x.jsx)(`path`,{d:`M18.375 2.625a2.121 2.121 0 0 1 3 3L7 18l-4 1 1-4Z`})]})}),ye&&(0,x.jsx)(me,{storyEntries:St,agentOptions:nt,onSubmit:Dt,onClose:()=>R(!1),initialDraft:we,onDraftChange:Te,fleetTaskCreateUrl:C,newIssueUrl:wt})]})]}),airplaneModeEnabled:t.airplaneMode,airplaneModeStatus:n.status,airplaneModeProgress:n.progress,airplaneModeCapturedAt:r?.capturedAt??null,airplaneModeFailures:n.failures,onAirplaneModeStartSync:n.startSync,onAirplaneModeTurnOff:n.turnOff,onAirplaneModeRetryFailed:n.retryFailed,projectUrl:e===null?null:b?.[e]??null,onFleetTaskCreate:C===null?null:()=>xe(!0),now:ge}),be&&(0,x.jsx)(me,{storyEntries:St,agentOptions:nt,initialDraft:Se,onDraftChange:Ce,onSubmit:Ot,onClose:()=>xe(!1),containerClassName:`console-fleet-task-create-dialog-container`}),(0,x.jsx)(T,{timerEndsAt:Ve?.timerEndsAt??null,timerTotalSeconds:Ve?.timerTotalSeconds??null,now:ge}),j===`stories`?(0,x.jsx)(`div`,{className:`console-list-screen`,children:(0,x.jsx)(Ge,{stories:St,isLoading:a,error:o,showGray:vt,onCreateIssue:Et,onAddStory:At,onSelectColor:Rt,onToggleGray:bt,onReorderStory:kt,onDeleteStory:zt,onRenameStory:Bt,onUpdateDescription:Vt,onStoryTaskCreateEdit:jt,optimisticColors:Mt,colorChangeInFlight:Pt,colorErrors:It})}):z===null?j===`queued`?(0,x.jsx)(`div`,{className:`console-list-screen`,children:(0,x.jsx)(Ie,{rows:$e,storyColors:et,statusOptions:tt,agentOptions:nt,activeItemId:null,isLoading:a,error:o,onSelectItem:e=>re.openItem(e.projectItemId)})}):j===`prs`?(0,x.jsxs)(`div`,{className:`console-list-screen`,children:[(0,x.jsx)(Ne,{agentOptions:nt,agentCounts:Ke,selectedAgent:Ue,onAgentChange:We}),(0,x.jsx)(Me,{rows:$e,storyColors:et,statusOptions:tt,activeItemId:null,now:ge,isLoading:a,error:o,onSelectItem:e=>re.openItem(e.projectItemId),executiveSummaries:Ht,onOkAndAwaitingWorkspace:H})]}):(0,x.jsx)(`div`,{className:`console-list-screen`,children:(0,x.jsx)(Me,{rows:$e,storyColors:et,statusOptions:tt,activeItemId:null,now:ge,isLoading:a,error:o,onSelectItem:e=>re.openItem(e.projectItemId)})}):(0,x.jsx)(`div`,{className:`console-detail-screen`,ref:_t,children:(0,x.jsx)(nf,{tab:j,item:z,caches:pe,operations:F,pjcode:e,statusOptions:tt,storyOptions:rt,agentOptions:nt,storyEntries:St,storyColors:et,storyName:pt,storyOptionId:mt,overlayStatus:ft,now:ge,initialCommentDraft:de.current.get(z.projectItemId)??``,onCommentDraftChange:fe,onQueueAction:gt,onCommentError:(e,t)=>I.showError(e,t),onDeleteStory:Tt===null?null:async e=>{await zt(Tt.storyOptionId,e),M!==null&&ht(M)},storyNameForDeletion:Tt?.storyName??null,onCreateIssueFromComment:C===null?void 0:Ot},z.projectItemId)})]})};`serviceWorker`in navigator&&navigator.serviceWorker.register(`/sw.js`).catch(e=>{console.warn(`Service worker registration failed:`,e)});var cf=document.getElementById(`root`);if(cf===null)throw Error(`Root container #root not found`);(0,b.createRoot)(cf).render((0,x.jsx)(y.StrictMode,{children:(0,x.jsx)(sf,{})}));
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<title>TDPM Console</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Tada7EPq.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B1XFeyWN.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
@@ -230,16 +230,27 @@ class GitHubIssueCommentRepository {
|
|
|
230
230
|
throw new githubRateLimitRetry_1.GitHubRateLimitError(`GitHub secondary rate limit is active until ${new Date(breaker.resetTimeMs).toISOString()}`, new Date(breaker.resetTimeMs).toISOString());
|
|
231
231
|
}
|
|
232
232
|
const commentUrl = `https://api.github.com/repos/${owner}/${repo}/issues/comments/${commentId}`;
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
233
|
+
const startMs = Date.now();
|
|
234
|
+
let attempt = 0;
|
|
235
|
+
for (;;) {
|
|
236
|
+
const response = await fetch(commentUrl, {
|
|
237
|
+
method: 'PATCH',
|
|
238
|
+
headers: {
|
|
239
|
+
Authorization: `Bearer ${this.token}`,
|
|
240
|
+
Accept: 'application/vnd.github+json',
|
|
241
|
+
'Content-Type': 'application/json',
|
|
242
|
+
},
|
|
243
|
+
body: JSON.stringify({ body: commentContent }),
|
|
244
|
+
});
|
|
245
|
+
if (response.ok) {
|
|
246
|
+
(0, githubRestClient_1.logGithubRestRateLimit)({
|
|
247
|
+
headers: response.headers,
|
|
248
|
+
method: 'PATCH',
|
|
249
|
+
path: (0, githubRestClient_1.sanitizeRestPath)(commentUrl),
|
|
250
|
+
caller,
|
|
251
|
+
});
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
243
254
|
const bodyText = await response.text().catch(() => '');
|
|
244
255
|
const nowMs = Date.now();
|
|
245
256
|
if ((0, githubRateLimitRetry_1.isSecondaryRateLimit)(response.headers, bodyText)) {
|
|
@@ -247,14 +258,18 @@ class GitHubIssueCommentRepository {
|
|
|
247
258
|
(0, githubSecondaryRateLimitBreaker_1.writeSecondaryRateLimitState)(nowMs + backoffMs, nowMs, stateFilePath);
|
|
248
259
|
throw new githubRateLimitRetry_1.GitHubRateLimitError(`HTTP ${response.status} GitHub API secondary rate limit exceeded`, new Date(nowMs + backoffMs).toISOString());
|
|
249
260
|
}
|
|
261
|
+
if ((0, githubRateLimitRetry_1.isTransientServerErrorStatus)(response.status) &&
|
|
262
|
+
attempt < githubRateLimitRetry_1.RATE_LIMIT_MAX_RETRIES) {
|
|
263
|
+
const elapsedMs = nowMs - startMs;
|
|
264
|
+
const backoffMs = (0, githubRateLimitRetry_1.computeBoundedBackoffMs)(response.headers, attempt, elapsedMs);
|
|
265
|
+
if (backoffMs > 0) {
|
|
266
|
+
await this.sleep(backoffMs);
|
|
267
|
+
}
|
|
268
|
+
attempt++;
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
250
271
|
throw new Error(`Failed to update comment via GitHub REST API: ${response.status} ${response.statusText}`);
|
|
251
272
|
}
|
|
252
|
-
(0, githubRestClient_1.logGithubRestRateLimit)({
|
|
253
|
-
headers: response.headers,
|
|
254
|
-
method: 'PATCH',
|
|
255
|
-
path: (0, githubRestClient_1.sanitizeRestPath)(commentUrl),
|
|
256
|
-
caller,
|
|
257
|
-
});
|
|
258
273
|
}
|
|
259
274
|
}
|
|
260
275
|
exports.GitHubIssueCommentRepository = GitHubIssueCommentRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubIssueCommentRepository.js","sourceRoot":"","sources":["../../../src/adapter/repositories/GitHubIssueCommentRepository.ts"],"names":[],"mappings":";;;AAAA,yDAI4B;AAI5B,6FAIiD;AACjD,uEAMsC;AAEzB,QAAA,0CAA0C,GAAG,CAAC,CAAC;AAC/C,QAAA,8CAA8C,GAAG,IAAI,CAAC;AAEnE,MAAa,2BAA4B,SAAQ,KAAK;IAIpD,YAAY,UAAkB,EAAE,OAAe;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,SAAI,GAAG,6BAA6B,CAAC;QAK5C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;A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,IAAA,yCAAsB,EAAC;YACrB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,IAAA,mCAAgB,EAAC,UAAU,CAAC;YAClC,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF;AA3SD,oEA2SC"}
|
|
1
|
+
{"version":3,"file":"GitHubIssueCommentRepository.js","sourceRoot":"","sources":["../../../src/adapter/repositories/GitHubIssueCommentRepository.ts"],"names":[],"mappings":";;;AAAA,yDAI4B;AAI5B,6FAIiD;AACjD,uEASsC;AAEzB,QAAA,0CAA0C,GAAG,CAAC,CAAC;AAC/C,QAAA,8CAA8C,GAAG,IAAI,CAAC;AAEnE,MAAa,2BAA4B,SAAQ,KAAK;IAIpD,YAAY,UAAkB,EAAE,OAAe;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,SAAI,GAAG,6BAA6B,CAAC;QAK5C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AARD,kEAQC;AAED,MAAa,4BAA6B,SAAQ,KAAK;IAIrD,YAAY,UAAkB,EAAE,OAAe;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,SAAI,GAAG,8BAA8B,CAAC;QAK7C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AARD,oEAQC;AAiCD,SAAS,yBAAyB,CAChC,KAAc;IAEd,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACxC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAc;IACtC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC9D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACv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I,KAAK,CACb,iDAAiD,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,UAAU,EAAE,CAC1F,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAnUD,oEAmUC"}
|
|
@@ -39,6 +39,7 @@ const BaseGitHubRepository_1 = require("../BaseGitHubRepository");
|
|
|
39
39
|
const githubRateLimitRetry_1 = require("./githubRateLimitRetry");
|
|
40
40
|
const githubSecondaryRateLimitBreaker_1 = require("./githubSecondaryRateLimitBreaker");
|
|
41
41
|
const NotifyFinishedIssuePreparationUseCase_1 = require("../../../domain/usecases/NotifyFinishedIssuePreparationUseCase");
|
|
42
|
+
const GitHubIssueCommentRepository_1 = require("../GitHubIssueCommentRepository");
|
|
42
43
|
class RestIssueRepository extends BaseGitHubRepository_1.BaseGitHubRepository {
|
|
43
44
|
constructor() {
|
|
44
45
|
super(...arguments);
|
|
@@ -69,6 +70,7 @@ class RestIssueRepository extends BaseGitHubRepository_1.BaseGitHubRepository {
|
|
|
69
70
|
if ((0, githubRateLimitRetry_1.hasRateLimitSignals)(e.response.status, e.response.headers, bodyText)) {
|
|
70
71
|
throw new githubRateLimitRetry_1.GitHubRateLimitError(`HTTP ${e.response.status} GitHub API rate limit exceeded`, (0, githubRateLimitRetry_1.computeRateLimitResetIso)(e.response.headers));
|
|
71
72
|
}
|
|
73
|
+
throw new GitHubIssueCommentRepository_1.GitHubCommentCreateHttpError(e.response.status, `Failed to create comment via GitHub REST API: ${e.response.status} ${e.response.statusText}`);
|
|
72
74
|
}
|
|
73
75
|
throw e;
|
|
74
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RestIssueRepository.js","sourceRoot":"","sources":["../../../../src/adapter/repositories/issue/RestIssueRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAmC;AACnC,kEAA+D;AAQ/D,iEAOgC;AAChC,uFAI2C;AAC3C,0HAAyG;AAczG,MAAa,mBACX,SA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AC;IACH,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,iCAAiC,CAAC,CAAU;QACxD,IAAI,CAAC,CAAC,CAAC,YAAY,cAAS,CAAC;YAAE,OAAO;QACtC,IAAI,QAAQ,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC;YACH,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC;QAC7C,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;QAC9C,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,IAAA,2CAAoB,EAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;YAAE,OAAO;QAChE,MAAM,SAAS,GAAG,IAAA,yDAAkC,EAClD,CAAC,CAAC,QAAQ,CAAC,OAAO,EAClB,KAAK,CACN,CAAC;QACF,IAAA,8DAA4B,EAAC,KAAK,GAAG,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3E,MAAM,IAAI,2CAAoB,CAC5B,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,2CAA2C,EACpE,IAAI,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,WAAW,EAAE,CAC1C,CAAC;IACJ,CAAC;CA2ZF;AAjdD,kDAidC"}
|
|
1
|
+
{"version":3,"file":"RestIssueRepository.js","sourceRoot":"","sources":["../../../../src/adapter/repositories/issue/RestIssueRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAmC;AACnC,kEAA+D;AAQ/D,iEAOgC;AAChC,uFAI2C;AAC3C,0HAAyG;AACzG,kFAA+E;AAc/E,MAAa,mBACX,SAAQ,2CAAoB;IAD9B;;QAwDE,kBAAa,GAAG,KAAK,EACnB,QAAgB,EAChB,OAAe,EAMd,EAAE;YACH,MAAM,EAAE,KAAK,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,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAC5C,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,iCAAiC,CAAC,CAAU;QACxD,IAAI,CAAC,CAAC,CAAC,YAAY,cAAS,CAAC;YAAE,OAAO;QACtC,IAAI,QAAQ,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC;YACH,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC;QAC7C,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;QAC9C,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,IAAA,2CAAoB,EAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;YAAE,OAAO;QAChE,MAAM,SAAS,GAAG,IAAA,yDAAkC,EAClD,CAAC,CAAC,QAAQ,CAAC,OAAO,EAClB,KAAK,CACN,CAAC;QACF,IAAA,8DAA4B,EAAC,KAAK,GAAG,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3E,MAAM,IAAI,2CAAoB,CAC5B,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,2CAA2C,EACpE,IAAI,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,WAAW,EAAE,CAC1C,CAAC;IACJ,CAAC;CA+ZF;AArdD,kDAqdC"}
|
|
@@ -16,10 +16,10 @@ const isRetryableCommentCreateError = (error) => error instanceof Error &&
|
|
|
16
16
|
'statusCode' in error &&
|
|
17
17
|
typeof error.statusCode === 'number' &&
|
|
18
18
|
exports.RETRYABLE_STATUS_CODES.has(error.statusCode);
|
|
19
|
-
async function commentCreateWithDedupRetry(commentBody, fetchExisting, postComment, clock, sleep) {
|
|
19
|
+
async function commentCreateWithDedupRetry(commentBody, fetchExisting, postComment, clock, sleep, windowMs) {
|
|
20
20
|
const isDuplicateNow = async () => {
|
|
21
21
|
const existing = await fetchExisting();
|
|
22
|
-
return (0, commentDeduplication_1.isDuplicateWithinWindow)(commentBody, existing, clock());
|
|
22
|
+
return (0, commentDeduplication_1.isDuplicateWithinWindow)(commentBody, existing, clock(), windowMs);
|
|
23
23
|
};
|
|
24
24
|
if (await isDuplicateNow()) {
|
|
25
25
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commentCreateWithDedupRetry.js","sourceRoot":"","sources":["../../../src/domain/services/commentCreateWithDedupRetry.ts"],"names":[],"mappings":";;;AAsBA,
|
|
1
|
+
{"version":3,"file":"commentCreateWithDedupRetry.js","sourceRoot":"","sources":["../../../src/domain/services/commentCreateWithDedupRetry.ts"],"names":[],"mappings":";;;AAsBA,kEAyCC;AA/DD,iEAAiE;AAI1D,MAAM,SAAS,GAAU,CAAC,YAAY,EAAE,EAAE,CAC/C,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;AADjD,QAAA,SAAS,aACwC;AAEjD,QAAA,sBAAsB,GAAwB,IAAI,GAAG,CAAC;IACjE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACnB,CAAC,CAAC;AAEU,QAAA,gCAAgC,GAAG,CAAC,CAAC;AACrC,QAAA,oCAAoC,GAAG,GAAG,CAAC;AAC3C,QAAA,yCAAyC,GAAG,IAAI,CAAC;AAE9D,MAAM,6BAA6B,GAAG,CAAC,KAAc,EAAW,EAAE,CAChE,KAAK,YAAY,KAAK;IACtB,KAAK,CAAC,IAAI,KAAK,8BAA8B;IAC7C,YAAY,IAAI,KAAK;IACrB,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ;IACpC,8BAAsB,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAExC,KAAK,UAAU,2BAA2B,CAC/C,WAAmB,EACnB,aAEC,EACD,WAAgC,EA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