clustr-ai 0.1.14 → 0.1.15
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.
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap";.agent-list{display:flex;flex-direction:column;height:100%}.agent-list-header{padding:14px 20px 10px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted)}.agent-list-empty{padding:32px 20px;color:var(--text-muted);font-size:12px;text-align:center;line-height:1.6}.agent-item{padding:10px 20px;cursor:pointer;border-left:2px solid transparent;position:relative;transition:background var(--transition)}.agent-item:hover{background:var(--bg-tertiary)}.agent-item.selected{background:var(--bg-tertiary);border-left-color:var(--white)}.agent-item-header{display:flex;align-items:center;gap:10px}.status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.agent-name{font-weight:500;font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.agent-status{font-size:10px;font-family:var(--font-mono);color:var(--text-muted);text-transform:lowercase;letter-spacing:.02em}.agent-task{font-size:11px;color:var(--text-muted);margin-top:3px;padding-left:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.agent-running-actions{display:flex;gap:4px;padding-left:16px;max-height:0;overflow:hidden;opacity:0;transition:max-height .2s ease,opacity .15s ease,margin .2s ease;margin-top:0}.agent-item:hover .agent-running-actions{max-height:30px;opacity:1;margin-top:6px}.stop-btn{padding:3px 10px;font-size:10px;background:#f871711a;color:var(--red);border:1px solid rgba(248,113,113,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.stop-btn:hover{background:#f8717133;color:var(--red);border-color:#f8717180}.agent-item:hover .remove-btn{opacity:1}.remove-btn{position:absolute;right:12px;top:10px;padding:3px 10px;font-size:10px;opacity:0;background:#f871711a;color:var(--red);border:1px solid rgba(248,113,113,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.remove-btn:hover{background:#f8717133;color:var(--red);border-color:#f8717180}.agent-done-actions{display:flex;gap:4px;padding-left:16px;max-height:0;overflow:hidden;opacity:0;transition:max-height .2s ease,opacity .15s ease,margin .2s ease;margin-top:0}.agent-item:hover .agent-done-actions{max-height:30px;opacity:1;margin-top:6px}.agent-done-actions .remove-btn,.agent-done-actions .rollback-btn,.agent-done-actions .restart-btn{position:static;opacity:1;flex-shrink:0}.restart-btn{padding:3px 10px;font-size:10px;background:#4ade801a;color:var(--green);border:1px solid rgba(74,222,128,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.restart-btn:hover{background:#4ade8033;color:var(--green);border-color:#4ade8080}.rollback-btn{padding:3px 10px;font-size:10px;background:#fbbf241a;color:#fbbf24;border:1px solid rgba(251,191,36,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.rollback-btn:hover{background:#fbbf2433;color:#fbbf24;border-color:#fbbf2480}.agent-cost{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);margin-left:auto;flex-shrink:0}.agent-service-badge{font-size:9px;font-weight:600;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;padding:1px 5px;border-radius:3px;flex-shrink:0}.agent-service-badge.service-claude{color:#c4a67a;background:#c4a67a1f}.agent-service-badge.service-codex{color:#10b981;background:#10b9811f}@media(max-width:767px){.agent-item{padding:10px 14px}.agent-running-actions,.agent-done-actions{max-height:30px;opacity:1;margin-top:6px}.remove-btn{opacity:1}.stop-btn,.restart-btn,.rollback-btn,.remove-btn{min-height:32px;padding:5px 12px;font-size:11px}.agent-list-header{padding:12px 14px 8px}}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/**
|
|
2
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
+
* https://github.com/chjj/term.js
|
|
5
|
+
* @license MIT
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* Originally forked from (with the author's permission):
|
|
26
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
+
* http://bellard.org/jslinux/
|
|
28
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
+
* The original design remains. The terminal itself
|
|
30
|
+
* has been extended to include xterm CSI codes, among
|
|
31
|
+
* other features.
|
|
32
|
+
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.multi-term-container{display:flex;flex-direction:row;height:100%;width:100%;background:#1a1a1a;overflow:hidden}.multi-term-pane{display:flex;flex-direction:column;background:#0a0a0a;overflow:hidden;min-width:100px;min-height:0;border:1px solid transparent;transition:border-color .15s ease;flex-shrink:0;flex-grow:0}.multi-term-divider{flex-shrink:0;background:#1a1a1a;transition:background .15s ease}.multi-term-divider.horizontal{width:4px;cursor:col-resize}.multi-term-divider.vertical{height:4px;cursor:row-resize}.multi-term-divider:hover{background:#4ade80}.multi-term-pane.focused{border-color:#333}.multi-term-pane-header{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#111;border-bottom:1px solid #1a1a1a;min-height:26px;cursor:pointer;-webkit-user-select:none;user-select:none}.multi-term-pane.focused .multi-term-pane-header{background:#161616;border-bottom-color:#222}.multi-term-status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.multi-term-pane-name{font-size:11px;font-weight:600;color:#ccc;font-family:var(--font-mono, "JetBrains Mono", monospace);white-space:nowrap;flex-shrink:0}.multi-term-pane.focused .multi-term-pane-name{color:#fff}.multi-term-pane-task{font-size:10px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.multi-term-pane-body{flex:1;overflow:hidden;min-height:0;padding:2px}.multi-term-pane-body .xterm{height:100%}.multi-term-pane-body .xterm-viewport{overflow-y:auto!important}.multi-term-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:12px;color:#333}.multi-term-empty-icon{font-size:28px;font-family:JetBrains Mono,monospace;font-weight:400;letter-spacing:.05em}.multi-term-empty-text{font-size:12px;color:#444;font-family:DM Sans,sans-serif;letter-spacing:.02em}@media(max-width:767px){.multi-term-container{flex-direction:column;overflow-y:auto;-webkit-overflow-scrolling:touch}.multi-term-pane{min-width:0;min-height:200px;flex-shrink:0;flex-grow:0;width:100%!important;height:250px!important}.multi-term-divider.horizontal{width:100%;height:4px;cursor:row-resize}.multi-term-pane-header{padding:6px 10px;min-height:32px}.multi-term-pane-name{font-size:12px}}.message-feed{display:flex;flex-direction:column;height:100%}.message-feed-header{padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted);display:flex;align-items:center;justify-content:space-between}.clear-messages-btn{font-size:10px;padding:3px 10px;background:#f871711a;color:var(--red);border:1px solid rgba(248,113,113,.3);border-radius:4px;cursor:pointer;text-transform:none;letter-spacing:normal;font-weight:500}.clear-messages-btn:hover{background:#f8717133;color:var(--red);border-color:#f8717180}.message-feed-list{flex:1;overflow-y:auto;padding:4px 0}.message-feed-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.message-item{padding:10px 20px;border-bottom:1px solid var(--border-subtle);transition:background var(--transition)}.message-item:hover{background:var(--bg-tertiary)}.message-meta{font-size:11px;margin-bottom:4px;display:flex;align-items:center;gap:4px}.message-from{color:var(--green);font-weight:600;font-family:var(--font-mono);font-size:11px}.message-arrow{color:var(--text-secondary);font-size:10px}.message-to{color:#60a5fa;font-weight:600;font-family:var(--font-mono);font-size:11px}.message-time{color:var(--text-secondary);margin-left:auto;font-size:10px;font-family:var(--font-mono)}.message-content{font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word;color:var(--text);padding-left:0}@media(max-width:767px){.message-feed-header,.message-item{padding:10px 14px}.message-meta{flex-wrap:wrap;gap:4px}.message-time{width:100%;margin-left:0;margin-top:2px}}.context-viewer{height:100%;overflow-y:auto}.context-header{padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted)}.context-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.context-table{width:100%;border-collapse:collapse;font-size:12px}.context-table th{text-align:left;padding:10px 20px;border-bottom:1px solid var(--border);color:var(--text-muted);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.context-table td{padding:10px 20px;border-bottom:1px solid var(--border-subtle);vertical-align:top}.context-table tr{transition:background var(--transition)}.context-table tbody tr:hover{background:var(--bg-tertiary)}.context-key{color:var(--text);font-family:var(--font-mono);font-size:11px;white-space:nowrap}.context-value{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word;color:var(--text-secondary);font-size:12px}.context-time{color:var(--text-muted);white-space:nowrap;font-size:11px;font-family:var(--font-mono)}.context-remove-btn{background:none;border:1px solid transparent;border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;padding:2px 6px;font-size:10px;opacity:0;transition:all var(--transition)}.context-table tr:hover .context-remove-btn{opacity:1}.context-remove-btn:hover{background:#1a0808;color:var(--red);border-color:#3a1515}@media(max-width:767px){.context-header{padding:10px 14px}.context-table th,.context-table td{padding:8px 12px;font-size:11px}.context-value{max-width:200px;font-size:11px}.context-remove-btn{opacity:1}}.diff-viewer{background:#0a0a0a;border:1px solid var(--border);border-radius:6px;overflow:hidden}.diff-filename{padding:8px 14px;font-size:11px;font-family:var(--font-mono);color:var(--text-secondary);background:#111;border-bottom:1px solid var(--border)}.diff-content{margin:0;padding:8px 0;font-family:var(--font-mono);font-size:12px;line-height:1.5;overflow-x:auto}.diff-line{padding:0 14px;white-space:pre;min-height:18px}.diff-add{background:#4ade801a;color:#4ade80}.diff-del{background:#f871711a;color:#f87171}.diff-hunk{color:#93c5fd;padding-top:4px;padding-bottom:4px}.diff-meta{color:var(--text-muted);font-style:italic}@media(max-width:767px){.diff-content{font-size:11px}.diff-line{padding:0 10px}.diff-filename{padding:6px 10px;font-size:10px}}.file-changes{display:flex;flex-direction:column;height:100%}.file-changes-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted)}.file-changes-clear-btn{font-size:10px;padding:2px 8px;background:var(--bg-tertiary);color:var(--text-muted);border:1px solid var(--border);border-radius:4px;cursor:pointer;text-transform:none;letter-spacing:normal;font-weight:400}.file-changes-clear-btn:hover{background:var(--red);color:#fff;border-color:var(--red)}.file-changes-list{flex:1;overflow-y:auto;padding:4px 0}.file-changes-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.file-change-item{border-bottom:1px solid var(--border-subtle)}.file-change-row{display:flex;align-items:center;gap:10px;padding:8px 20px;cursor:pointer;transition:background .1s ease}.file-change-row:hover{background:var(--bg-tertiary)}.file-change-type{font-family:var(--font-mono);font-size:11px;font-weight:600;width:14px;text-align:center;flex-shrink:0}.file-change-path{font-family:var(--font-mono);font-size:12px;color:var(--text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-change-agent{font-family:var(--font-mono);font-size:10px;color:#4ade80;background:#4ade8014;border:1px solid rgba(74,222,128,.15);border-radius:4px;padding:1px 6px;flex-shrink:0;white-space:nowrap}.file-change-time{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.file-change-expand{font-size:9px;color:var(--text-muted);width:12px;text-align:center}@media(max-width:767px){.file-changes-header{padding:10px 14px}.file-change-row{padding:8px 14px;gap:8px;flex-wrap:wrap}.file-change-path{font-size:11px;min-width:0}.file-change-agent{order:5}.file-change-time{order:6}}.prs-tab{display:flex;flex-direction:column;height:100%}.prs-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted)}.prs-header-left{display:flex;align-items:center;gap:12px}.prs-filter{font-size:11px;padding:2px 6px;background:var(--bg-tertiary);color:var(--text);border:1px solid var(--border);border-radius:4px;text-transform:none;letter-spacing:normal;font-weight:400;cursor:pointer}.prs-repo-link{font-size:11px;color:var(--text-muted);text-decoration:none;text-transform:none;letter-spacing:normal;font-weight:400;font-family:var(--font-mono)}.prs-repo-link:hover{color:var(--blue)}.prs-list{flex:1;overflow-y:auto;padding:4px 0}.prs-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.prs-unavailable{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px;line-height:1.6}.prs-unavailable code{background:var(--bg-tertiary);padding:2px 6px;border-radius:4px;font-family:var(--font-mono);font-size:11px}.pr-item{border-bottom:1px solid var(--border-subtle)}.pr-row{display:flex;align-items:center;gap:10px;padding:8px 20px;cursor:pointer;transition:background .1s ease}.pr-row:hover{background:var(--bg-tertiary)}.pr-status-badge{width:8px;height:8px;border-radius:50%;flex-shrink:0}.pr-status-badge.open{background:#4ade80}.pr-status-badge.merged{background:#a78bfa}.pr-status-badge.closed{background:#f87171}.pr-status-badge.draft{background:#666}.pr-number{font-family:var(--font-mono);font-size:12px;color:var(--text-muted);flex-shrink:0;min-width:40px}.pr-title{font-size:12px;color:var(--text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-author{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.pr-branch{font-family:var(--font-mono);font-size:10px;color:#4ade80;background:#4ade8014;border:1px solid rgba(74,222,128,.15);border-radius:4px;padding:1px 6px;flex-shrink:0;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-ci{flex-shrink:0;font-size:12px;width:16px;text-align:center}.pr-review{flex-shrink:0;font-size:10px;font-family:var(--font-mono);padding:1px 6px;border-radius:4px}.pr-review.approved{color:#4ade80;background:#4ade8014;border:1px solid rgba(74,222,128,.15)}.pr-review.changes_requested{color:#f87171;background:#f8717114;border:1px solid rgba(248,113,113,.15)}.pr-review.review_required{color:#fbbf24;background:#fbbf2414;border:1px solid rgba(251,191,36,.15)}.pr-time{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.pr-link-btn{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:12px;padding:2px 4px;flex-shrink:0}.pr-link-btn:hover{color:var(--blue)}.pr-expand{font-size:9px;color:var(--text-muted);width:12px;text-align:center}.pr-detail{padding:12px 20px 12px 52px;border-top:1px solid var(--border-subtle);background:var(--bg-secondary)}.pr-detail-loading{color:var(--text-muted);font-size:11px}.pr-detail-body{font-size:12px;color:var(--text);line-height:1.5;white-space:pre-wrap;word-break:break-word;margin-bottom:12px;max-height:200px;overflow-y:auto}.pr-detail-section-title{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);margin:12px 0 6px}.pr-detail-checks{display:flex;flex-wrap:wrap;gap:6px}.pr-check{font-family:var(--font-mono);font-size:10px;padding:2px 8px;border-radius:4px;background:var(--bg-tertiary);border:1px solid var(--border)}.pr-check.success{color:#4ade80;border-color:#4ade804d}.pr-check.failure{color:#f87171;border-color:#f871714d}.pr-check.pending{color:#fbbf24;border-color:#fbbf244d}.pr-comment{padding:8px 0;border-bottom:1px solid var(--border-subtle)}.pr-comment:last-child{border-bottom:none}.pr-comment-header{font-size:10px;color:var(--text-muted);margin-bottom:4px}.pr-comment-header strong{color:var(--text)}.pr-comment-body{font-size:12px;color:var(--text);line-height:1.4;white-space:pre-wrap;word-break:break-word}.branches-section{border-top:1px solid var(--border)}.branches-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none}.branches-header:hover{background:var(--bg-tertiary)}.branches-toggle{font-size:9px}.branches-list{padding:4px 0}.branch-item{display:flex;align-items:center;gap:10px;padding:6px 20px}.branch-item.current{background:#4ade800a}.branch-current-marker{color:#4ade80;font-size:10px;width:8px;flex-shrink:0}.branch-name{font-family:var(--font-mono);font-size:12px;color:var(--text);flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-name.current{color:#4ade80}.branch-message{font-size:11px;color:var(--text-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-author{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.branch-ahead-behind{display:flex;gap:4px;flex-shrink:0}.branch-badge{font-family:var(--font-mono);font-size:9px;padding:1px 5px;border-radius:3px;background:var(--bg-tertiary);border:1px solid var(--border)}.branch-badge.ahead{color:#4ade80}.branch-badge.behind{color:#f87171}.branch-time{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}@media(max-width:767px){.prs-header{padding:10px 14px;flex-wrap:wrap;gap:6px}.pr-row{padding:8px 14px;gap:6px;flex-wrap:wrap}.pr-branch,.pr-author,.pr-time{display:none}.pr-title{flex-basis:100%;order:2;white-space:normal;margin-top:2px;font-size:12px}.pr-detail{padding:12px 14px}.branch-item{padding:6px 14px;flex-wrap:wrap;gap:6px}.branch-message,.branch-author,.branch-time{display:none}}.crewmd-editor{display:flex;flex-direction:column;height:100%;background:#0a0a0a}.crewmd-header{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-bottom:1px solid var(--border);background:var(--bg-secondary);min-height:40px}.crewmd-title{font-size:12px;font-weight:600;color:var(--text);font-family:var(--font-mono, "JetBrains Mono", monospace);display:flex;align-items:center;gap:10px}.crewmd-path{font-size:10px;font-weight:400;color:var(--text-muted)}.crewmd-actions{display:flex;align-items:center;gap:10px}.crewmd-dirty{font-size:10px;color:#fbbf24;font-style:italic}.crewmd-save-btn{font-size:11px;padding:4px 14px;background:var(--bg-tertiary);color:var(--text-secondary);border:1px solid var(--border);border-radius:4px;cursor:pointer;transition:all .15s ease}.crewmd-save-btn:hover:not(:disabled){background:#4ade80;color:#000;border-color:#4ade80}.crewmd-save-btn:disabled{opacity:.4;cursor:default}.crewmd-textarea{flex:1;background:#0a0a0a;color:#c8c8c8;border:none;outline:none;resize:none;padding:20px;font-family:var(--font-mono, "JetBrains Mono", monospace);font-size:13px;line-height:1.6;-moz-tab-size:2;tab-size:2;white-space:pre;overflow:auto}.crewmd-textarea::placeholder{color:#333}.crewmd-textarea::-webkit-scrollbar{width:6px}.crewmd-textarea::-webkit-scrollbar-track{background:transparent}.crewmd-textarea::-webkit-scrollbar-thumb{background:#222;border-radius:3px}@media(max-width:767px){.crewmd-header{padding:8px 14px;flex-wrap:wrap;gap:6px}.crewmd-title{font-size:11px;flex-wrap:wrap}.crewmd-textarea{padding:14px;font-size:14px}}.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:100;animation:overlay-in .2s ease-out}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.dialog{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px;width:460px;max-width:90vw;animation:dialog-in .25s cubic-bezier(.16,1,.3,1)}.dialog h2{font-size:15px;font-weight:500;margin-bottom:20px;color:var(--text)}.dialog-mode-tabs{display:flex;gap:0;margin-bottom:24px;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden}.dialog-mode-tab{flex:1;border:none;border-radius:0;padding:9px 16px;font-size:12px;font-weight:500;background:var(--bg);color:var(--text-muted);cursor:pointer;transition:all var(--transition);letter-spacing:.02em}.dialog-mode-tab:hover{background:var(--bg-tertiary);color:var(--text-secondary)}.dialog-mode-tab.active{background:var(--white);color:#000}.dialog label{display:block;font-size:11px;font-weight:500;color:var(--text-muted);margin-bottom:16px;text-transform:uppercase;letter-spacing:.06em}.dialog label .optional{font-weight:400;opacity:.5;text-transform:none;letter-spacing:0}.dialog label input,.dialog label textarea{display:block;width:100%;margin-top:6px;text-transform:none;letter-spacing:-.01em}.dialog textarea{resize:vertical;font-family:var(--font-body);line-height:1.5}.browse-row{display:flex;gap:6px;margin-top:6px}.browse-row input{flex:1;margin-top:0!important}.browse-btn{flex-shrink:0;padding:7px 14px;font-size:12px;background:var(--bg-tertiary);color:var(--text-secondary);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .15s ease;white-space:nowrap}.browse-btn:hover:not(:disabled){background:var(--white);color:#000;border-color:var(--white)}.browse-btn:disabled{opacity:.5;cursor:default}.service-selector{display:flex;gap:0;margin-top:6px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.service-btn{flex:1;border:none;border-radius:0;padding:7px 14px;font-size:12px;font-weight:500;background:var(--bg);color:var(--text-muted);cursor:pointer;transition:all var(--transition)}.service-btn:hover{background:var(--bg-tertiary);color:var(--text-secondary)}.service-btn.active{background:var(--white);color:#000}.dialog-error{color:#ff6b6b;background:#ff6b6b1a;border:1px solid rgba(255,107,107,.3);border-radius:6px;padding:8px 12px;font-size:13px;margin-top:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}@media(max-width:767px){.dialog-overlay{align-items:flex-end;padding:0}.dialog{width:100%;max-width:100%;border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:20px 16px;max-height:90vh;overflow-y:auto}.dialog h2{font-size:14px}.dialog-mode-tab,.service-btn{padding:10px 12px}.browse-row{flex-direction:column}.browse-btn{width:100%}.dialog-actions{flex-direction:column}.dialog-actions button{width:100%;justify-content:center}}.app{display:flex;flex-direction:column;height:100%;background:var(--bg)}.app-header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;min-height:52px;border-bottom:1px solid var(--border);background:var(--bg)}.header-brand{display:flex;align-items:center;gap:10px;color:var(--text)}.app-header h1{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text)}.header-total-cost{font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);padding:4px 10px;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:4px}.header-actions{display:flex;gap:8px}.app-body{display:flex;flex:1;overflow:hidden}.sidebar{width:260px;min-width:260px;border-right:1px solid var(--border);background:var(--bg-secondary);overflow-y:auto;display:flex;flex-direction:column;position:relative;transition:width .2s ease,min-width .2s ease}.sidebar.collapsed{width:36px;min-width:36px;overflow:hidden}.sidebar-toggle{position:absolute;top:8px;right:8px;width:22px;height:22px;border:1px solid var(--border);border-radius:4px;background:var(--bg-tertiary);color:var(--text-secondary);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;padding:0;line-height:1;transition:all .15s ease}.sidebar.collapsed .sidebar-toggle{right:auto;left:7px}.sidebar-toggle:hover{background:var(--bg);color:var(--text);border-color:#444}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);background:var(--bg);padding:0 16px;height:40px;min-height:40px;align-items:stretch}.tab{border:none;border-bottom:2px solid transparent;border-radius:0;background:none;padding:0 16px;font-size:12px;font-weight:500;color:var(--text-secondary);letter-spacing:.04em;text-transform:uppercase;transition:all var(--transition);display:flex;align-items:center}.tab:hover{color:var(--text);background:#ffffff0a}.tab.active{color:var(--white);border-bottom-color:var(--white);font-weight:600}.terminal-view-toggle{display:flex;align-items:center;gap:2px;margin-left:auto;padding-right:4px}.view-toggle-btn{border:none;border-radius:4px;background:none;color:var(--text-muted);font-size:15px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:all .15s ease;line-height:1}.view-toggle-btn:hover{color:var(--text-secondary);background:var(--bg-tertiary)}.view-toggle-btn.active{color:var(--text);background:var(--bg-tertiary)}.tab-content{flex:1;overflow:hidden;position:relative;background:#000}.app-footer{display:flex;gap:8px;padding:10px 20px;border-top:1px solid var(--border);background:var(--bg-secondary);align-items:center}.app-footer select{background:var(--bg);border:1px solid var(--border);color:var(--text-secondary);padding:7px 10px;border-radius:var(--radius-sm);font-size:12px;font-family:var(--font-body);min-width:140px;cursor:pointer}.app-footer select:hover{border-color:#333}.app-footer input{flex:1;background:var(--bg)}.header-hamburger{display:none;border:none;background:none;color:var(--text-secondary);font-size:18px;padding:4px 8px;cursor:pointer;line-height:1;min-height:unset}.header-connect-phone{border:1px solid var(--border);background:transparent;font-size:13px;padding:6px 12px;cursor:pointer;border-radius:6px;color:var(--text);opacity:.8}.header-connect-phone:hover{opacity:1;background:var(--surface);border-color:var(--border)}.pair-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px}.pair-modal{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px 24px 24px;width:100%;max-width:400px;display:flex;flex-direction:column;align-items:center;gap:16px}.pair-modal-header{width:100%;display:flex;align-items:center;justify-content:space-between}.pair-modal-header h2{font-size:14px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text)}.pair-modal-close{border:none;background:none;color:var(--text-muted);font-size:14px;padding:4px;min-height:unset;line-height:1}.pair-modal-close:hover{color:var(--text);background:none;border-color:transparent}.pair-modal-hint{font-size:12px;color:var(--text-muted);text-align:center}.pair-modal-loading{font-size:12px;color:var(--text-muted);padding:24px 0}.pair-modal-error{font-size:12px;color:#f87171;padding:24px 0}.pair-qr{width:200px;height:200px;background:#000;border-radius:var(--radius-md);padding:12px}.pair-urls{width:100%;display:flex;flex-direction:column;gap:8px}.pair-url-row{display:flex;align-items:center;gap:8px;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px}.pair-url-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);min-width:44px}.pair-url-text{flex:1;font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pair-tunnel-hint{font-size:11px;color:var(--text-muted);text-align:center;line-height:1.5}.pair-tunnel-hint code{font-family:var(--font-mono);background:var(--bg-tertiary);padding:1px 5px;border-radius:3px;color:var(--text-secondary)}.sidebar-backdrop{display:none}@media(max-width:767px){.header-hamburger{display:flex;align-items:center}.sidebar-toggle{display:none}.sidebar{position:fixed;top:0;left:0;height:100%;z-index:200;transform:translate(-100%);transition:transform .25s ease,width .2s ease,min-width .2s ease;width:85vw;max-width:320px;min-width:260px}.sidebar:not(.collapsed){transform:translate(0)}.sidebar.collapsed{transform:translate(-100%);width:85vw;max-width:320px;min-width:260px;overflow:hidden}.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:199}.app-header{padding:0 10px;gap:6px;height:48px;min-height:48px}.app-header h1{font-size:13px}.header-brand{gap:6px}.header-total-cost,.header-connect-phone{display:none}.header-actions{gap:6px}.header-actions button{padding:6px 10px;font-size:11px;min-height:34px}.tabs{padding:0 6px;height:36px;min-height:36px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{white-space:nowrap;flex-shrink:0;padding:0 10px;font-size:11px}.terminal-view-toggle{display:none}.app-footer{flex-direction:row;flex-wrap:wrap;padding:8px 10px;gap:6px;align-items:center}.app-footer select{width:auto;min-width:100px;flex-shrink:0;padding:6px 8px;font-size:12px;min-height:36px}.app-footer input{flex:1;min-width:0;font-size:14px;padding:8px 10px;min-height:36px}.app-footer button{min-height:36px;padding:6px 14px}.pair-modal{max-width:100%;border-radius:var(--radius-lg) var(--radius-lg) 0 0;position:fixed;bottom:0;left:0;right:0;margin:0}.pair-modal-overlay{align-items:flex-end;padding:0}}*{margin:0;padding:0;box-sizing:border-box}:root{--bg: #000000;--bg-secondary: #0a0a0a;--bg-tertiary: #151515;--bg-elevated: #1a1a1a;--border: #2a2a2a;--border-subtle: #1c1c1c;--text: #eeeeee;--text-secondary: #b0b0b0;--text-muted: #707070;--white: #ffffff;--accent: #ffffff;--green: #4ade80;--yellow: #fbbf24;--red: #f87171;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;--font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;--transition: .18s cubic-bezier(.4, 0, .2, 1)}html,body,#root{height:100%;width:100%;overflow:hidden;overscroll-behavior:none}body{font-family:var(--font-body);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:13px;letter-spacing:-.01em}button{cursor:pointer;border:1px solid var(--border);background:var(--bg-tertiary);color:var(--text-secondary);padding:7px 14px;border-radius:var(--radius-sm);font-size:12px;font-family:var(--font-body);font-weight:500;letter-spacing:.02em;transition:all var(--transition)}button:hover{color:var(--text);border-color:#444;background:var(--bg-elevated)}button.primary{background:var(--white);border-color:var(--white);color:#000}button.primary:hover{background:#d4d4d4;border-color:#d4d4d4}button.primary:disabled{background:#333;border-color:#333;color:#666;cursor:not-allowed}button.danger{background:transparent;border-color:#3a1515;color:var(--red)}button.danger:hover{background:#1a0808;border-color:var(--red)}button:disabled{opacity:.35;cursor:not-allowed}input,textarea,select{background:var(--bg);border:1px solid var(--border);color:var(--text);padding:8px 12px;border-radius:var(--radius-sm);font-size:13px;font-family:var(--font-body);outline:none;transition:border-color var(--transition)}input:focus,textarea:focus,select:focus{border-color:#444}input::placeholder,textarea::placeholder{color:var(--text-muted)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#222;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#333}::selection{background:#ffffff1f}.react-flow__controls{background:#0a0a0a!important;border:1px solid var(--border)!important;border-radius:6px!important;overflow:hidden}.react-flow__controls-button{background:#0a0a0a!important;border:none!important;border-bottom:1px solid #1c1c1c!important;fill:#888!important;width:28px!important;height:28px!important}.react-flow__controls-button:hover{background:#1a1a1a!important;fill:#eee!important}.react-flow__controls-button:last-child{border-bottom:none!important}.react-flow__controls-button svg{fill:inherit!important}@media(max-width:767px){html,body,#root{overflow:hidden;overscroll-behavior:none;-webkit-overflow-scrolling:touch}body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}input,textarea,select{font-size:16px}button{min-height:36px}.react-flow__controls-button{width:40px!important;height:40px!important}::-webkit-scrollbar{width:3px;height:3px}}.xterm{background:#000!important}.xterm-viewport{background-color:#000!important;overscroll-behavior:contain!important}.xterm-screen{background:#000!important}
|
|
@@ -106,4 +106,4 @@ WARNING: This link could potentially be dangerous`)){const p=window.open();if(p)
|
|
|
106
106
|
`)):M.write(`\r
|
|
107
107
|
\x1B[31mFailed to upload image\x1B[0m\r
|
|
108
108
|
`)},T=G=>{var ie;const Z=(ie=G.clipboardData)==null?void 0:ie.items;if(Z){for(const ae of Z)if(ae.type.startsWith("image/")){G.preventDefault(),G.stopPropagation();const X=ae.getAsFile();X&&V(X);return}}},B=G=>{var Z,ie;(ie=(Z=G.dataTransfer)==null?void 0:Z.types)!=null&&ie.includes("Files")&&(G.preventDefault(),G.stopPropagation())},P=G=>{var ie;const Z=(ie=G.dataTransfer)==null?void 0:ie.files;if(!(!Z||Z.length===0)){for(const ae of Z)if(ae.type.startsWith("image/")){G.preventDefault(),G.stopPropagation(),V(ae);return}}};U==null||U.addEventListener("paste",T,!0),U==null||U.addEventListener("dragover",B,!0),U==null||U.addEventListener("drop",P,!0);const F=()=>{d.off(j,N),I.dispose(),q.disconnect(),U==null||U.removeEventListener("paste",T,!0),U==null||U.removeEventListener("dragover",B,!0),U==null||U.removeEventListener("drop",P,!0)};w.set(D.id,{term:M,fit:W,cleanup:F})}return()=>{var D;for(const[,k]of w)(D=k.cleanup)==null||D.call(k),k.term.dispose();w.clear()}},[c.map(d=>d.id).join(","),r.current]);const b=J.useCallback(d=>{a(d.id);const u=o.current.get(d.id);u&&u.term.focus(),i==null||i(d)},[i]),x=J.useCallback((d,u)=>{if(!S.current)return;const w=S.current.offsetWidth,L=u/w*100;_(R=>{const D=[...R],k=10,M=D[d]+L,W=D[d+1]-L;return M>=k&&W>=k&&(D[d]=M,D[d+1]=W),D})},[]),f=c.length;if(f===0)return O.jsxs("div",{className:"multi-term-empty",children:[O.jsx("div",{className:"multi-term-empty-icon",children:"_"}),O.jsx("div",{className:"multi-term-empty-text",children:"No running agents"})]});const p=l.length===f?l:Array(f).fill(100/f);return O.jsx("div",{className:"multi-term-container",ref:S,children:c.map((d,u)=>O.jsxs(Hu.Fragment,{children:[O.jsxs("div",{className:`multi-term-pane ${y===d.id?"focused":""}`,style:{flexBasis:`${p[u]}%`},onClick:()=>b(d),children:[O.jsxs("div",{className:"multi-term-pane-header",children:[O.jsx("span",{className:"multi-term-status-dot",style:{background:Ub(d.status)}}),O.jsx("span",{className:"multi-term-pane-name",children:d.name}),O.jsx("span",{className:"multi-term-pane-task",children:d.task})]}),O.jsx("div",{className:"multi-term-pane-body",ref:C(d.id)})]}),u<f-1&&O.jsx(Vb,{orientation:"horizontal",onDrag:w=>x(u,w)})]},d.id))})}function Kb({messages:e,agents:r,selectedAgentId:i,onClear:o}){const h=J.useRef(null),S=J.useMemo(()=>{const a={user:"User"};return r.forEach(l=>{a[l.id]=l.name}),a},[r]),y=J.useMemo(()=>i?e.filter(a=>a.from_agent===i||a.to_agent===i):e,[e,i]);return J.useEffect(()=>{var a;(a=h.current)==null||a.scrollIntoView({behavior:"smooth"})},[y]),O.jsxs("div",{className:"message-feed",children:[O.jsxs("div",{className:"message-feed-header",children:[O.jsx("span",{children:i?`Messages for ${S[i]||i}`:"All Messages"}),y.length>0&&O.jsx("button",{className:"clear-messages-btn",onClick:o,children:"Clear All"})]}),O.jsxs("div",{className:"message-feed-list",children:[y.length===0&&O.jsx("div",{className:"message-feed-empty",children:"No messages yet"}),[...y].reverse().map(a=>O.jsxs("div",{className:"message-item",children:[O.jsxs("div",{className:"message-meta",children:[O.jsx("span",{className:"message-from",children:S[a.from_agent]||a.from_agent.slice(0,8)}),O.jsx("span",{className:"message-arrow",children:" → "}),O.jsx("span",{className:"message-to",children:a.to_agent==="all"?"All":S[a.to_agent]||a.to_agent.slice(0,8)}),O.jsx("span",{className:"message-time",children:new Date(a.created_at).toLocaleTimeString()})]}),O.jsx("div",{className:"message-content",children:a.content})]},a.id)),O.jsx("div",{ref:h})]})]})}function Xb({entries:e,onRemove:r}){return O.jsxs("div",{className:"context-viewer",children:[O.jsx("div",{className:"context-header",children:"Shared Context"}),e.length===0&&O.jsx("div",{className:"context-empty",children:"No context entries yet"}),O.jsxs("table",{className:"context-table",children:[O.jsx("thead",{children:O.jsxs("tr",{children:[O.jsx("th",{children:"Key"}),O.jsx("th",{children:"Value"}),O.jsx("th",{children:"Updated By"}),O.jsx("th",{children:"Updated At"}),O.jsx("th",{})]})}),O.jsx("tbody",{children:e.map(i=>O.jsxs("tr",{children:[O.jsx("td",{className:"context-key",children:i.key}),O.jsx("td",{className:"context-value",children:i.value}),O.jsx("td",{children:i.updated_by||"—"}),O.jsx("td",{className:"context-time",children:i.updated_at?new Date(i.updated_at).toLocaleTimeString():"—"}),O.jsx("td",{children:O.jsx("button",{className:"context-remove-btn",onClick:()=>r(i.key),title:`Remove "${i.key}"`,children:"✕"})})]},i.key))})]})]})}function Yb({diff:e,fileName:r}){const i=e.split(`
|
|
109
|
-
`);return O.jsxs("div",{className:"diff-viewer",children:[r&&O.jsx("div",{className:"diff-filename",children:r}),O.jsx("pre",{className:"diff-content",children:i.map((o,h)=>{let S="diff-line";return o.startsWith("+")&&!o.startsWith("+++")?S+=" diff-add":o.startsWith("-")&&!o.startsWith("---")?S+=" diff-del":o.startsWith("@@")?S+=" diff-hunk":o.startsWith("\\")&&(S+=" diff-meta"),O.jsx("div",{className:S,children:o},h)})})]})}function Gb(e){switch(e){case"add":return"A";case"change":return"M";case"unlink":return"D";default:return"?"}}function Qb(e){switch(e){case"add":return"#4ade80";case"change":return"#fbbf24";case"unlink":return"#f87171";default:return"#666"}}function Jb({changes:e,agents:r,onClear:i}){const[o,h]=J.useState(null),S=J.useMemo(()=>{const y=new Map;for(const a of r)y.set(a.id,a.name);return y},[r]);return O.jsxs("div",{className:"file-changes",children:[O.jsxs("div",{className:"file-changes-header",children:[O.jsxs("span",{children:["File Changes (",e.length,")"]}),e.length>0&&O.jsx("button",{className:"file-changes-clear-btn",onClick:i,children:"Clear"})]}),O.jsxs("div",{className:"file-changes-list",children:[e.length===0&&O.jsx("div",{className:"file-changes-empty",children:"No file changes detected yet. Changes will appear here as agents edit files."}),e.map(y=>{const a=y.agent_id?S.get(y.agent_id):null;return O.jsxs("div",{className:"file-change-item",children:[O.jsxs("div",{className:"file-change-row",onClick:()=>h(o===y.id?null:y.id),children:[O.jsx("span",{className:"file-change-type",style:{color:Qb(y.change_type)},children:Gb(y.change_type)}),O.jsx("span",{className:"file-change-path",children:y.file_path}),a&&O.jsx("span",{className:"file-change-agent",title:"Agent that made this change",children:a}),O.jsx("span",{className:"file-change-time",children:new Date(y.created_at).toLocaleTimeString()}),O.jsx("span",{className:"file-change-expand",children:y.diff_text?o===y.id?"▼":"▶":""})]}),o===y.id&&y.diff_text&&O.jsx(Yb,{diff:y.diff_text})]},y.id)})]})]})}function la(e){const r=Date.now()-new Date(e).getTime(),i=Math.floor(r/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);if(o<24)return`${o}h ago`;const h=Math.floor(o/24);return h<30?`${h}d ago`:`${Math.floor(h/30)}mo ago`}function Zb(e){return!e||e.length===0?{icon:"",cls:""}:e.some(o=>o.conclusion==="FAILURE"||o.conclusion==="failure")?{icon:"✗",cls:"failure"}:e.some(o=>!o.conclusion||o.status==="IN_PROGRESS"||o.status==="QUEUED")?{icon:"○",cls:"pending"}:{icon:"✓",cls:"success"}}function eE(e){switch(e){case"APPROVED":return{text:"Approved",cls:"approved"};case"CHANGES_REQUESTED":return{text:"Changes",cls:"changes_requested"};case"REVIEW_REQUIRED":return{text:"Review",cls:"review_required"};default:return null}}function tE({prs:e,branches:r,currentBranch:i,ghAvailable:o,repoInfo:h,agents:S,fetchPRDetail:y}){const[a,l]=J.useState("all"),[_,v]=J.useState(null),[c,m]=J.useState(null),[C,b]=J.useState(!1),[x,f]=J.useState(!0),p=J.useMemo(()=>a==="all"?e:e.filter(L=>L.state.toUpperCase()===a.toUpperCase()),[e,a]),d=J.useMemo(()=>new Set(S.map(L=>L.name.toLowerCase())),[S]),u=async L=>{if(_===L){v(null),m(null);return}v(L),m(null),b(!0);const R=await y(L);m(R),b(!1)},w=L=>{const R=L.name.toLowerCase();for(const k of d)if(R.includes(k))return k;const D=L.author.toLowerCase();for(const k of d)if(D.includes(k))return k;return null};return O.jsxs("div",{className:"prs-tab",children:[O.jsxs("div",{className:"prs-header",children:[O.jsxs("div",{className:"prs-header-left",children:[O.jsxs("span",{children:["Pull Requests (",p.length,")"]}),O.jsxs("select",{className:"prs-filter",value:a,onChange:L=>l(L.target.value),children:[O.jsx("option",{value:"all",children:"All"}),O.jsx("option",{value:"open",children:"Open"}),O.jsx("option",{value:"closed",children:"Closed"}),O.jsx("option",{value:"merged",children:"Merged"})]})]}),h&&O.jsx("a",{className:"prs-repo-link",href:h.url,target:"_blank",rel:"noopener noreferrer",onClick:L=>{L.preventDefault(),window.open(h.url,"_blank")},children:h.nameWithOwner})]}),O.jsxs("div",{className:"prs-list",children:[o===!1&&O.jsxs("div",{className:"prs-unavailable",children:["GitHub CLI not available.",O.jsx("br",{}),"Install ",O.jsx("code",{children:"gh"})," and run ",O.jsx("code",{children:"gh auth login"})," to see PRs."]}),o!==!1&&p.length===0&&O.jsx("div",{className:"prs-empty",children:"No pull requests found."}),p.map(L=>{const R=L.isDraft?"draft":L.state.toLowerCase(),D=Zb(L.statusCheckRollup),k=eE(L.reviewDecision),M=_===L.number;return O.jsxs("div",{className:"pr-item",children:[O.jsxs("div",{className:"pr-row",onClick:()=>u(L.number),children:[O.jsx("span",{className:"pr-expand",children:M?"▼":"▶"}),O.jsx("span",{className:`pr-status-badge ${R}`}),O.jsxs("span",{className:"pr-number",children:["#",L.number]}),O.jsx("span",{className:"pr-title",children:L.title}),k&&O.jsx("span",{className:`pr-review ${k.cls}`,children:k.text}),D.icon&&O.jsx("span",{className:`pr-ci ${D.cls}`,children:D.icon}),O.jsx("span",{className:"pr-branch",title:L.headRefName,children:L.headRefName}),O.jsx("span",{className:"pr-author",children:L.author.login}),O.jsx("span",{className:"pr-time",children:la(L.createdAt)}),O.jsx("button",{className:"pr-link-btn",title:"Open in GitHub",onClick:W=>{W.stopPropagation(),window.open(L.url,"_blank")},children:"↗"})]}),M&&O.jsxs("div",{className:"pr-detail",children:[C&&O.jsx("div",{className:"pr-detail-loading",children:"Loading..."}),c&&c.number===L.number&&O.jsxs(O.Fragment,{children:[c.body&&O.jsx("div",{className:"pr-detail-body",children:c.body}),c.statusCheckRollup&&c.statusCheckRollup.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pr-detail-section-title",children:"Checks"}),O.jsx("div",{className:"pr-detail-checks",children:c.statusCheckRollup.map((W,z)=>{var j,N,I,q;return O.jsxs("span",{className:`pr-check ${((j=W.conclusion)==null?void 0:j.toLowerCase())==="success"?"success":((N=W.conclusion)==null?void 0:N.toLowerCase())==="failure"?"failure":"pending"}`,children:[((I=W.conclusion)==null?void 0:I.toLowerCase())==="success"?"✓":((q=W.conclusion)==null?void 0:q.toLowerCase())==="failure"?"✗":"○"," ",W.name]},z)})})]}),c.reviews&&c.reviews.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pr-detail-section-title",children:"Reviews"}),c.reviews.map((W,z)=>O.jsxs("div",{className:"pr-comment",children:[O.jsxs("div",{className:"pr-comment-header",children:[O.jsx("strong",{children:W.author.login})," ",W.state.toLowerCase().replace("_"," ")," ",la(W.submittedAt)]}),W.body&&O.jsx("div",{className:"pr-comment-body",children:W.body})]},z))]}),c.comments&&c.comments.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pr-detail-section-title",children:"Comments"}),c.comments.map((W,z)=>O.jsxs("div",{className:"pr-comment",children:[O.jsxs("div",{className:"pr-comment-header",children:[O.jsx("strong",{children:W.author.login})," ",la(W.createdAt)]}),O.jsx("div",{className:"pr-comment-body",children:W.body})]},z))]}),(!c.reviews||c.reviews.length===0)&&(!c.comments||c.comments.length===0)&&!c.body&&O.jsx("div",{className:"pr-detail-loading",children:"No details available."})]})]})]},L.number)})]}),O.jsxs("div",{className:"branches-section",children:[O.jsxs("div",{className:"branches-header",onClick:()=>f(L=>!L),children:[O.jsxs("span",{children:["Branches (",r.length,")",i?` — ${i}`:""]}),O.jsx("span",{className:"branches-toggle",children:x?"▼":"▶"})]}),x&&O.jsxs("div",{className:"branches-list",children:[r.length===0&&O.jsx("div",{className:"prs-empty",children:"No branches found."}),r.map(L=>{const R=w(L);return O.jsxs("div",{className:`branch-item ${L.isCurrent?"current":""}`,children:[O.jsx("span",{className:"branch-current-marker",children:L.isCurrent?"●":""}),O.jsx("span",{className:`branch-name ${L.isCurrent?"current":""}`,title:L.name,children:L.name}),O.jsx("span",{className:"branch-message",children:L.lastCommitMessage}),R&&O.jsx("span",{className:"pr-branch",children:R}),O.jsx("span",{className:"branch-author",children:L.author}),O.jsxs("div",{className:"branch-ahead-behind",children:[L.ahead>0&&O.jsxs("span",{className:"branch-badge ahead",children:[L.ahead,"\\u2191"]}),L.behind>0&&O.jsxs("span",{className:"branch-badge behind",children:[L.behind,"\\u2193"]})]}),O.jsx("span",{className:"branch-time",children:L.lastCommitDate?la(L.lastCommitDate):""})]},L.name)})]})]})]})}function rE({content:e,onChange:r}){const[i,o]=J.useState(e),[h,S]=J.useState(!1),[y,a]=J.useState(!1),l=J.useRef(null);J.useEffect(()=>{y||o(e)},[e,y]);const _=m=>{o(m),a(!0)},v=async()=>{S(!0);try{await fetch("/api/crewmd",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})}),r(i),a(!1)}catch{}S(!1)},c=m=>{(m.metaKey||m.ctrlKey)&&m.key==="s"&&(m.preventDefault(),y&&v())};return O.jsxs("div",{className:"crewmd-editor",children:[O.jsxs("div",{className:"crewmd-header",children:[O.jsx("span",{className:"crewmd-title",children:"Rules"}),O.jsxs("div",{className:"crewmd-actions",children:[y&&O.jsx("span",{className:"crewmd-dirty",children:"unsaved"}),O.jsx("button",{className:"crewmd-save-btn",onClick:v,disabled:!y||h,children:h?"Saving...":"Save"})]})]}),O.jsx("textarea",{ref:l,className:"crewmd-textarea",value:i,onChange:m=>_(m.target.value),onKeyDown:c,spellCheck:!1,placeholder:"Write global instructions for all agents..."})]})}function nE(e){const[r,i]=J.useState([]),[o,h]=J.useState([]),[S,y]=J.useState(""),[a,l]=J.useState(null),[_,v]=J.useState(null),[c,m]=J.useState(!0);J.useEffect(()=>{fetch("/api/github/status").then(b=>b.json()).then(b=>{l(b.available),v(b.repo||null)}).catch(()=>l(!1)),fetch("/api/github/prs?state=all").then(b=>b.json()).then(b=>{Array.isArray(b)&&i(b)}).catch(()=>{}),fetch("/api/git/branches").then(b=>b.json()).then(b=>{b.current&&y(b.current),Array.isArray(b.branches)&&h(b.branches)}).catch(()=>{}).finally(()=>m(!1))},[]),J.useEffect(()=>{const b=e.current;if(!b)return;const x=p=>{Array.isArray(p)&&i(p)},f=p=>{p.current&&y(p.current),Array.isArray(p.branches)&&h(p.branches)};return b.on("github:prs:updated",x),b.on("git:branches:updated",f),()=>{b.off("github:prs:updated",x),b.off("git:branches:updated",f)}},[e]);const C=J.useCallback(async b=>{try{const x=await fetch(`/api/github/prs/${b}`);return x.ok?await x.json():null}catch{return null}},[]);return{prs:r,branches:o,currentBranch:S,ghAvailable:a,repoInfo:_,loading:c,fetchPRDetail:C}}function iE({onSpawn:e,onClose:r,initialMode:i="spawn",error:o}){const[h,S]=J.useState(i),[y,a]=J.useState(""),[l,_]=J.useState(""),[v,c]=J.useState(""),[m,C]=J.useState("claude"),[b,x]=J.useState(!1),f=async()=>{x(!0);try{const u=await(await fetch("/api/pick-folder",{method:"POST"})).json();u.path&&c(u.path)}catch{}x(!1)},p=()=>{if(h==="open"){if(!v.trim())return;const d=v.trim().split("/").filter(Boolean).pop()||"project";e(y.trim()||d,l.trim()||`Work on the project at ${v.trim()}. Explore the codebase and wait for instructions.`,v.trim(),m)}else{if(!y.trim()||!l.trim())return;e(y.trim(),l.trim(),v.trim()||void 0,m)}};return O.jsx("div",{className:"dialog-overlay",onClick:r,children:O.jsxs("div",{className:"dialog",onClick:d=>d.stopPropagation(),children:[O.jsxs("div",{className:"dialog-mode-tabs",children:[O.jsx("button",{className:`dialog-mode-tab ${h==="spawn"?"active":""}`,onClick:()=>S("spawn"),children:"Spawn Agent"}),O.jsx("button",{className:`dialog-mode-tab ${h==="open"?"active":""}`,onClick:()=>S("open"),children:"Open Project"})]}),O.jsxs("label",{children:["Agent Service",O.jsxs("div",{className:"service-selector",children:[O.jsx("button",{type:"button",className:`service-btn ${m==="claude"?"active":""}`,onClick:()=>C("claude"),children:"Claude"}),O.jsx("button",{type:"button",className:`service-btn ${m==="codex"?"active":""}`,onClick:()=>C("codex"),children:"Codex"})]})]}),h==="open"?O.jsxs(O.Fragment,{children:[O.jsxs("label",{children:["Project Directory",O.jsxs("div",{className:"browse-row",children:[O.jsx("input",{type:"text",value:v,onChange:d=>c(d.target.value),placeholder:"/Users/you/your-project",autoFocus:!0}),O.jsx("button",{type:"button",className:"browse-btn",onClick:f,disabled:b,children:b?"...":"Browse"})]})]}),O.jsxs("label",{children:["Agent Name ",O.jsx("span",{className:"optional",children:"(optional)"}),O.jsx("input",{type:"text",value:y,onChange:d=>a(d.target.value),placeholder:"Auto-detected from path"})]}),O.jsxs("label",{children:["Initial Task ",O.jsx("span",{className:"optional",children:"(optional)"}),O.jsx("textarea",{value:l,onChange:d=>_(d.target.value),placeholder:"Explore the codebase and wait for instructions...",rows:3})]})]}):O.jsxs(O.Fragment,{children:[O.jsxs("label",{children:["Name",O.jsx("input",{type:"text",value:y,onChange:d=>a(d.target.value),placeholder:"e.g. researcher",autoFocus:!0})]}),O.jsxs("label",{children:["Task",O.jsx("textarea",{value:l,onChange:d=>_(d.target.value),placeholder:"Describe what this agent should do...",rows:4})]}),O.jsxs("label",{children:["Working Directory ",O.jsx("span",{className:"optional",children:"(optional)"}),O.jsxs("div",{className:"browse-row",children:[O.jsx("input",{type:"text",value:v,onChange:d=>c(d.target.value),placeholder:"e.g. /Users/you/project (leave blank for server cwd)"}),O.jsx("button",{type:"button",className:"browse-btn",onClick:f,disabled:b,children:b?"...":"Browse"})]})]})]}),o&&O.jsx("div",{className:"dialog-error",children:o}),O.jsxs("div",{className:"dialog-actions",children:[O.jsx("button",{onClick:r,children:"Cancel"}),O.jsx("button",{className:"primary",onClick:p,children:h==="open"?"Open":"Spawn"})]})]})})}function sE({size:e=28}){return O.jsxs("svg",{width:e,height:e,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M50 5 A45 45 0 1 1 15 75",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",fill:"none"}),O.jsx("path",{d:"M30 18 Q55 45 78 30",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",fill:"none"}),O.jsx("path",{d:"M20 55 Q50 35 75 65",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",fill:"none"}),O.jsx("path",{d:"M22 72 Q50 60 50 90",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",fill:"none"}),O.jsx("circle",{cx:"30",cy:"18",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"78",cy:"30",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"75",cy:"65",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"22",cy:"72",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"50",cy:"90",r:"5.5",fill:"currentColor"})]})}function oE(){var be;const{socket:e,agents:r,messages:i,contextEntries:o,crewMd:h,setCrewMd:S,fileChanges:y}=Yv(),{prs:a,branches:l,currentBranch:_,ghAvailable:v,repoInfo:c,fetchPRDetail:m}=nE(e),[C,b]=J.useState(null),x=r.find(ue=>ue.id===C)??null,[f,p]=J.useState("graph"),[d,u]=J.useState(!1),[w,L]=J.useState("spawn"),[R,D]=J.useState(""),[k,M]=J.useState("all"),[W,z]=J.useState("multi"),[j,N]=J.useState(!0),[I,q]=J.useState(!1),[U,K]=J.useState(null),[V,T]=J.useState(null),B=J.useCallback(async()=>{q(!0),T(null);try{const ue=await fetch("/api/pair");if(!ue.ok){const Re=await ue.text();T(Re||`Error ${ue.status}`);return}const ge=await ue.json();K(ge)}catch(ue){T(ue.message||"Failed to load pairing info")}},[]),[P,F]=J.useState(null),G=J.useCallback(async(ue,ge,Re,Ie)=>{F(null);try{const ze=await Jr("/api/spawn",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ue,task:ge,cwd:Re,service:Ie||"claude"})}),Qe=await ze.json();if(!ze.ok){F(Qe.error||"Unknown error");return}u(!1),F(null)}catch(ze){F(ze.message||"Failed to connect to server")}},[]),Z=J.useCallback(async ue=>{await fetch(`/api/agents/${ue}`,{method:"DELETE"})},[]),ie=J.useCallback(async ue=>{await fetch(`/api/agents/${ue}/remove`,{method:"DELETE"}),C===ue&&b(null)},[C]),ae=J.useCallback(async ue=>{await fetch(`/api/agents/${ue}/rollback`,{method:"POST"})},[]),X=J.useCallback(async ue=>{await fetch(`/api/agents/${ue.id}/remove`,{method:"DELETE"});const Re=await(await Jr("/api/spawn",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ue.name,task:ue.task,cwd:ue.agent_cwd||void 0,service:ue.service||"claude"})})).json();Re.id&&(b(Re.id),p("terminal"))},[]),H=J.useCallback(async ue=>{await fetch(`/api/context/${encodeURIComponent(ue)}`,{method:"DELETE"})},[]),re=J.useCallback(async()=>{if(!R.trim())return;const ue=k,ge=R;if(D(""),ue!=="all")await fetch(`/api/agents/${ue}/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:ge})}).catch(()=>{}),await Jr("/api/messages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:"user",to:ue,content:ge})});else{const Re=r.filter(Ie=>Ie.status==="running");await Promise.all(Re.map(Ie=>fetch(`/api/agents/${Ie.id}/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:ge})}).catch(()=>{}))),await Jr("/api/messages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:"user",to:"all",content:ge})})}},[R,k,r]),te=J.useCallback(async()=>{await Jr("/api/messages",{method:"DELETE"})},[]),ce=J.useCallback(async()=>{await Jr("/api/file-changes",{method:"DELETE"})},[]),le=J.useCallback(ue=>{b(ue.id),p("terminal")},[]),pe=J.useCallback(ue=>{L(ue),u(!0)},[]);J.useEffect(()=>{const ue=["graph","terminal","files","prs","messages","context","crewmd"],ge=Re=>{const Ie=Re.target,ze=Ie.tagName==="INPUT"||Ie.tagName==="TEXTAREA"||Ie.tagName==="SELECT",Qe=Ie.closest(".xterm"),ut=Re.metaKey||Re.ctrlKey;if(Re.key==="Escape"){u(!1);return}const qe=ut&&(Re.key==="["||Re.key==="]"||Re.key==="\\");if(Qe&&qe)Re.stopPropagation();else if(ze||Qe)return;if(!ut)return;const pt=parseInt(Re.key);if(pt>=1&&pt<=ue.length){Re.preventDefault(),p(ue[pt-1]);return}switch(Re.key){case"n":Re.preventDefault(),L("spawn"),u(!0);break;case"o":Re.preventDefault(),L("open"),u(!0);break;case"[":{Re.preventDefault();const Ne=r.filter($e=>$e.status!=="dead");if(Ne.length===0)break;const Je=Ne.findIndex($e=>$e.id===C),ht=Je<=0?Ne.length-1:Je-1;b(Ne[ht].id),p("terminal");break}case"]":{Re.preventDefault();const Ne=r.filter($e=>$e.status!=="dead");if(Ne.length===0)break;const Je=Ne.findIndex($e=>$e.id===C),ht=Je>=Ne.length-1?0:Je+1;b(Ne[ht].id),p("terminal");break}case"\\":Re.preventDefault(),z(Ne=>Ne==="multi"?"single":"multi");break}};return document.addEventListener("keydown",ge,!0),()=>document.removeEventListener("keydown",ge,!0)},[r,C]);const Se=[{key:"graph",label:"Graph"},{key:"terminal",label:"Terminal"},{key:"files",label:"Files"},{key:"prs",label:"PRs"},{key:"messages",label:"Messages"},{key:"context",label:"Context"},{key:"crewmd",label:"Rules"}];return O.jsxs("div",{className:"app",children:[O.jsxs("header",{className:"app-header",children:[O.jsx("button",{className:"header-hamburger",onClick:()=>N(ue=>!ue),title:"Toggle sidebar",children:"☰"}),O.jsxs("div",{className:"header-brand",children:[O.jsx(sE,{size:26}),O.jsx("h1",{children:"Clustr"})]}),(()=>{const ue=r.reduce((ge,Re)=>ge+(Re.total_cost||0),0);return ue>0?O.jsxs("span",{className:"header-total-cost",children:["Total: $",ue.toFixed(4)]}):null})(),O.jsxs("div",{className:"header-actions",children:[window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?O.jsx("button",{className:"header-connect-phone",onClick:B,title:"Connect phone",children:"Connect Phone"}):null,O.jsx("button",{onClick:()=>pe("open"),children:"Open Project"}),O.jsx("button",{className:"primary",onClick:()=>pe("spawn"),children:"New Agent"})]})]}),O.jsxs("div",{className:"app-body",children:[j&&O.jsx("div",{className:"sidebar-backdrop",onClick:()=>N(!1)}),O.jsxs("aside",{className:`sidebar ${j?"":"collapsed"}`,children:[O.jsx("button",{className:"sidebar-toggle",onClick:()=>N(ue=>!ue),title:j?"Collapse sidebar":"Expand sidebar",children:j?"‹":"›"}),j&&O.jsx(Qv,{agents:r,selectedId:C,onSelect:ue=>{b(ue.id),p("terminal")},onKill:Z,onRemove:ie,onRollback:ae,onRestart:X})]}),O.jsxs("main",{className:"main-content",children:[O.jsxs("nav",{className:"tabs",children:[Se.map(ue=>O.jsx("button",{className:f===ue.key?"tab active":"tab",onClick:()=>p(ue.key),children:ue.label},ue.key)),f==="terminal"&&O.jsxs("div",{className:"terminal-view-toggle",children:[O.jsx("button",{className:`view-toggle-btn ${W==="multi"?"active":""}`,onClick:()=>z("multi"),title:"Split view — all agents",children:"⊞"}),O.jsx("button",{className:`view-toggle-btn ${W==="single"?"active":""}`,onClick:()=>z("single"),title:"Single view — selected agent",children:"☐"})]})]}),O.jsxs("div",{className:"tab-content",children:[f==="graph"&&O.jsx(ob,{agents:r,messages:i,onSelectAgent:le}),f==="terminal"&&W==="multi"&&O.jsx(qb,{agents:r,socket:e,onSelectAgent:ue=>b(ue.id)}),f==="terminal"&&W==="single"&&O.jsx(zb,{agent:x,socket:e}),f==="messages"&&O.jsx(Kb,{messages:i,agents:r,selectedAgentId:(x==null?void 0:x.id)??null,onClear:te}),f==="context"&&O.jsx(Xb,{entries:o,onRemove:H}),f==="files"&&O.jsx(Jb,{changes:y,agents:r,onClear:ce}),f==="prs"&&O.jsx(tE,{prs:a,branches:l,currentBranch:_,ghAvailable:v,repoInfo:c,agents:r,fetchPRDetail:m}),f==="crewmd"&&O.jsx(rE,{content:h,onChange:S})]})]})]}),O.jsxs("footer",{className:"app-footer",children:[O.jsxs("select",{value:k,onChange:ue=>M(ue.target.value),children:[O.jsx("option",{value:"all",children:"All Agents"}),r.filter(ue=>ue.status==="running").map(ue=>O.jsx("option",{value:ue.id,children:ue.name},ue.id))]}),O.jsx("input",{type:"text",placeholder:k==="all"?"Broadcast message to all agents...":`Send message to ${((be=r.find(ue=>ue.id===k))==null?void 0:be.name)||"agent"}...`,value:R,onChange:ue=>D(ue.target.value),onKeyDown:ue=>ue.key==="Enter"&&re()}),O.jsx("button",{className:"primary",onClick:re,disabled:!R.trim(),children:"Send"})]}),d&&O.jsx(iE,{onSpawn:G,onClose:()=>{u(!1),F(null)},initialMode:w,error:P}),I&&O.jsx("div",{className:"pair-modal-overlay",onClick:()=>q(!1),children:O.jsxs("div",{className:"pair-modal",onClick:ue=>ue.stopPropagation(),children:[O.jsxs("div",{className:"pair-modal-header",children:[O.jsx("h2",{children:"Connect Phone"}),O.jsx("button",{className:"pair-modal-close",onClick:()=>q(!1),children:"✕"})]}),V?O.jsx("p",{className:"pair-modal-error",children:V}):U?O.jsxs(O.Fragment,{children:[O.jsx("p",{className:"pair-modal-hint",children:"Scan to open Clustr on your phone's browser"}),O.jsx("img",{className:"pair-qr",src:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(U.qrSvg)}`,alt:"QR code to connect phone"}),O.jsxs("div",{className:"pair-urls",children:[O.jsxs("div",{className:"pair-url-row",children:[O.jsx("span",{className:"pair-url-label",children:"Local"}),O.jsxs("span",{className:"pair-url-text",children:[U.localUrl,"?token=…"]}),O.jsx("button",{onClick:()=>navigator.clipboard.writeText(`${U.localUrl}?token=${U.token}`),children:"Copy"})]}),U.remoteUrl&&O.jsxs("div",{className:"pair-url-row",children:[O.jsx("span",{className:"pair-url-label",children:"Remote"}),O.jsxs("span",{className:"pair-url-text",children:[U.remoteUrl,"?token=…"]}),O.jsx("button",{onClick:()=>navigator.clipboard.writeText(`${U.remoteUrl}?token=${U.token}`),children:"Copy"})]}),!U.remoteUrl&&O.jsxs("p",{className:"pair-tunnel-hint",children:["Set ",O.jsx("code",{children:"CLUSTR_TUNNEL=1"})," to enable remote access via Cloudflare Tunnel."]})]})]}):O.jsx("p",{className:"pair-modal-loading",children:"Loading pairing info…"})]})})]})}tv.createRoot(document.getElementById("root")).render(O.jsx(Hu.StrictMode,{children:O.jsx(oE,{})}));
|
|
109
|
+
`);return O.jsxs("div",{className:"diff-viewer",children:[r&&O.jsx("div",{className:"diff-filename",children:r}),O.jsx("pre",{className:"diff-content",children:i.map((o,h)=>{let S="diff-line";return o.startsWith("+")&&!o.startsWith("+++")?S+=" diff-add":o.startsWith("-")&&!o.startsWith("---")?S+=" diff-del":o.startsWith("@@")?S+=" diff-hunk":o.startsWith("\\")&&(S+=" diff-meta"),O.jsx("div",{className:S,children:o},h)})})]})}function Gb(e){switch(e){case"add":return"A";case"change":return"M";case"unlink":return"D";default:return"?"}}function Qb(e){switch(e){case"add":return"#4ade80";case"change":return"#fbbf24";case"unlink":return"#f87171";default:return"#666"}}function Jb({changes:e,agents:r,onClear:i}){const[o,h]=J.useState(null),S=J.useMemo(()=>{const y=new Map;for(const a of r)y.set(a.id,a.name);return y},[r]);return O.jsxs("div",{className:"file-changes",children:[O.jsxs("div",{className:"file-changes-header",children:[O.jsxs("span",{children:["File Changes (",e.length,")"]}),e.length>0&&O.jsx("button",{className:"file-changes-clear-btn",onClick:i,children:"Clear"})]}),O.jsxs("div",{className:"file-changes-list",children:[e.length===0&&O.jsx("div",{className:"file-changes-empty",children:"No file changes detected yet. Changes will appear here as agents edit files."}),e.map(y=>{const a=y.agent_id?S.get(y.agent_id):null;return O.jsxs("div",{className:"file-change-item",children:[O.jsxs("div",{className:"file-change-row",onClick:()=>h(o===y.id?null:y.id),children:[O.jsx("span",{className:"file-change-type",style:{color:Qb(y.change_type)},children:Gb(y.change_type)}),O.jsx("span",{className:"file-change-path",children:y.file_path}),a&&O.jsx("span",{className:"file-change-agent",title:"Agent that made this change",children:a}),O.jsx("span",{className:"file-change-time",children:new Date(y.created_at).toLocaleTimeString()}),O.jsx("span",{className:"file-change-expand",children:y.diff_text?o===y.id?"▼":"▶":""})]}),o===y.id&&y.diff_text&&O.jsx(Yb,{diff:y.diff_text})]},y.id)})]})]})}function la(e){const r=Date.now()-new Date(e).getTime(),i=Math.floor(r/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);if(o<24)return`${o}h ago`;const h=Math.floor(o/24);return h<30?`${h}d ago`:`${Math.floor(h/30)}mo ago`}function Zb(e){return!e||e.length===0?{icon:"",cls:""}:e.some(o=>o.conclusion==="FAILURE"||o.conclusion==="failure")?{icon:"✗",cls:"failure"}:e.some(o=>!o.conclusion||o.status==="IN_PROGRESS"||o.status==="QUEUED")?{icon:"○",cls:"pending"}:{icon:"✓",cls:"success"}}function eE(e){switch(e){case"APPROVED":return{text:"Approved",cls:"approved"};case"CHANGES_REQUESTED":return{text:"Changes",cls:"changes_requested"};case"REVIEW_REQUIRED":return{text:"Review",cls:"review_required"};default:return null}}function tE({prs:e,branches:r,currentBranch:i,ghAvailable:o,repoInfo:h,agents:S,fetchPRDetail:y}){const[a,l]=J.useState("all"),[_,v]=J.useState(null),[c,m]=J.useState(null),[C,b]=J.useState(!1),[x,f]=J.useState(!0),p=J.useMemo(()=>a==="all"?e:e.filter(L=>L.state.toUpperCase()===a.toUpperCase()),[e,a]),d=J.useMemo(()=>new Set(S.map(L=>L.name.toLowerCase())),[S]),u=async L=>{if(_===L){v(null),m(null);return}v(L),m(null),b(!0);const R=await y(L);m(R),b(!1)},w=L=>{const R=L.name.toLowerCase();for(const k of d)if(R.includes(k))return k;const D=L.author.toLowerCase();for(const k of d)if(D.includes(k))return k;return null};return O.jsxs("div",{className:"prs-tab",children:[O.jsxs("div",{className:"prs-header",children:[O.jsxs("div",{className:"prs-header-left",children:[O.jsxs("span",{children:["Pull Requests (",p.length,")"]}),O.jsxs("select",{className:"prs-filter",value:a,onChange:L=>l(L.target.value),children:[O.jsx("option",{value:"all",children:"All"}),O.jsx("option",{value:"open",children:"Open"}),O.jsx("option",{value:"closed",children:"Closed"}),O.jsx("option",{value:"merged",children:"Merged"})]})]}),h&&O.jsx("a",{className:"prs-repo-link",href:h.url,target:"_blank",rel:"noopener noreferrer",onClick:L=>{L.preventDefault(),window.open(h.url,"_blank")},children:h.nameWithOwner})]}),O.jsxs("div",{className:"prs-list",children:[o===!1&&O.jsxs("div",{className:"prs-unavailable",children:["GitHub CLI not available.",O.jsx("br",{}),"Install ",O.jsx("code",{children:"gh"})," and run ",O.jsx("code",{children:"gh auth login"})," to see PRs."]}),o!==!1&&p.length===0&&O.jsx("div",{className:"prs-empty",children:"No pull requests found."}),p.map(L=>{const R=L.isDraft?"draft":L.state.toLowerCase(),D=Zb(L.statusCheckRollup),k=eE(L.reviewDecision),M=_===L.number;return O.jsxs("div",{className:"pr-item",children:[O.jsxs("div",{className:"pr-row",onClick:()=>u(L.number),children:[O.jsx("span",{className:"pr-expand",children:M?"▼":"▶"}),O.jsx("span",{className:`pr-status-badge ${R}`}),O.jsxs("span",{className:"pr-number",children:["#",L.number]}),O.jsx("span",{className:"pr-title",children:L.title}),k&&O.jsx("span",{className:`pr-review ${k.cls}`,children:k.text}),D.icon&&O.jsx("span",{className:`pr-ci ${D.cls}`,children:D.icon}),O.jsx("span",{className:"pr-branch",title:L.headRefName,children:L.headRefName}),O.jsx("span",{className:"pr-author",children:L.author.login}),O.jsx("span",{className:"pr-time",children:la(L.createdAt)}),O.jsx("button",{className:"pr-link-btn",title:"Open in GitHub",onClick:W=>{W.stopPropagation(),window.open(L.url,"_blank")},children:"↗"})]}),M&&O.jsxs("div",{className:"pr-detail",children:[C&&O.jsx("div",{className:"pr-detail-loading",children:"Loading..."}),c&&c.number===L.number&&O.jsxs(O.Fragment,{children:[c.body&&O.jsx("div",{className:"pr-detail-body",children:c.body}),c.statusCheckRollup&&c.statusCheckRollup.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pr-detail-section-title",children:"Checks"}),O.jsx("div",{className:"pr-detail-checks",children:c.statusCheckRollup.map((W,z)=>{var j,N,I,q;return O.jsxs("span",{className:`pr-check ${((j=W.conclusion)==null?void 0:j.toLowerCase())==="success"?"success":((N=W.conclusion)==null?void 0:N.toLowerCase())==="failure"?"failure":"pending"}`,children:[((I=W.conclusion)==null?void 0:I.toLowerCase())==="success"?"✓":((q=W.conclusion)==null?void 0:q.toLowerCase())==="failure"?"✗":"○"," ",W.name]},z)})})]}),c.reviews&&c.reviews.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pr-detail-section-title",children:"Reviews"}),c.reviews.map((W,z)=>O.jsxs("div",{className:"pr-comment",children:[O.jsxs("div",{className:"pr-comment-header",children:[O.jsx("strong",{children:W.author.login})," ",W.state.toLowerCase().replace("_"," ")," ",la(W.submittedAt)]}),W.body&&O.jsx("div",{className:"pr-comment-body",children:W.body})]},z))]}),c.comments&&c.comments.length>0&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pr-detail-section-title",children:"Comments"}),c.comments.map((W,z)=>O.jsxs("div",{className:"pr-comment",children:[O.jsxs("div",{className:"pr-comment-header",children:[O.jsx("strong",{children:W.author.login})," ",la(W.createdAt)]}),O.jsx("div",{className:"pr-comment-body",children:W.body})]},z))]}),(!c.reviews||c.reviews.length===0)&&(!c.comments||c.comments.length===0)&&!c.body&&O.jsx("div",{className:"pr-detail-loading",children:"No details available."})]})]})]},L.number)})]}),O.jsxs("div",{className:"branches-section",children:[O.jsxs("div",{className:"branches-header",onClick:()=>f(L=>!L),children:[O.jsxs("span",{children:["Branches (",r.length,")",i?` — ${i}`:""]}),O.jsx("span",{className:"branches-toggle",children:x?"▼":"▶"})]}),x&&O.jsxs("div",{className:"branches-list",children:[r.length===0&&O.jsx("div",{className:"prs-empty",children:"No branches found."}),r.map(L=>{const R=w(L);return O.jsxs("div",{className:`branch-item ${L.isCurrent?"current":""}`,children:[O.jsx("span",{className:"branch-current-marker",children:L.isCurrent?"●":""}),O.jsx("span",{className:`branch-name ${L.isCurrent?"current":""}`,title:L.name,children:L.name}),O.jsx("span",{className:"branch-message",children:L.lastCommitMessage}),R&&O.jsx("span",{className:"pr-branch",children:R}),O.jsx("span",{className:"branch-author",children:L.author}),O.jsxs("div",{className:"branch-ahead-behind",children:[L.ahead>0&&O.jsxs("span",{className:"branch-badge ahead",children:[L.ahead,"\\u2191"]}),L.behind>0&&O.jsxs("span",{className:"branch-badge behind",children:[L.behind,"\\u2193"]})]}),O.jsx("span",{className:"branch-time",children:L.lastCommitDate?la(L.lastCommitDate):""})]},L.name)})]})]})]})}function rE({content:e,onChange:r}){const[i,o]=J.useState(e),[h,S]=J.useState(!1),[y,a]=J.useState(!1),l=J.useRef(null);J.useEffect(()=>{y||o(e)},[e,y]);const _=m=>{o(m),a(!0)},v=async()=>{S(!0);try{await fetch("/api/crewmd",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})}),r(i),a(!1)}catch{}S(!1)},c=m=>{(m.metaKey||m.ctrlKey)&&m.key==="s"&&(m.preventDefault(),y&&v())};return O.jsxs("div",{className:"crewmd-editor",children:[O.jsxs("div",{className:"crewmd-header",children:[O.jsx("span",{className:"crewmd-title",children:"Rules"}),O.jsxs("div",{className:"crewmd-actions",children:[y&&O.jsx("span",{className:"crewmd-dirty",children:"unsaved"}),O.jsx("button",{className:"crewmd-save-btn",onClick:v,disabled:!y||h,children:h?"Saving...":"Save"})]})]}),O.jsx("textarea",{ref:l,className:"crewmd-textarea",value:i,onChange:m=>_(m.target.value),onKeyDown:c,spellCheck:!1,placeholder:"Write global instructions for all agents..."})]})}function nE(e){const[r,i]=J.useState([]),[o,h]=J.useState([]),[S,y]=J.useState(""),[a,l]=J.useState(null),[_,v]=J.useState(null),[c,m]=J.useState(!0);J.useEffect(()=>{fetch("/api/github/status").then(b=>b.json()).then(b=>{l(b.available),v(b.repo||null)}).catch(()=>l(!1)),fetch("/api/github/prs?state=all").then(b=>b.json()).then(b=>{Array.isArray(b)&&i(b)}).catch(()=>{}),fetch("/api/git/branches").then(b=>b.json()).then(b=>{b.current&&y(b.current),Array.isArray(b.branches)&&h(b.branches)}).catch(()=>{}).finally(()=>m(!1))},[]),J.useEffect(()=>{const b=e.current;if(!b)return;const x=p=>{Array.isArray(p)&&i(p)},f=p=>{p.current&&y(p.current),Array.isArray(p.branches)&&h(p.branches)};return b.on("github:prs:updated",x),b.on("git:branches:updated",f),()=>{b.off("github:prs:updated",x),b.off("git:branches:updated",f)}},[e]);const C=J.useCallback(async b=>{try{const x=await fetch(`/api/github/prs/${b}`);return x.ok?await x.json():null}catch{return null}},[]);return{prs:r,branches:o,currentBranch:S,ghAvailable:a,repoInfo:_,loading:c,fetchPRDetail:C}}function iE({onSpawn:e,onClose:r,initialMode:i="spawn",error:o}){const[h,S]=J.useState(i),[y,a]=J.useState(""),[l,_]=J.useState(""),[v,c]=J.useState(""),[m,C]=J.useState("claude"),[b,x]=J.useState(!1),f=async()=>{x(!0);try{const u=await(await fetch("/api/pick-folder",{method:"POST"})).json();u.path&&c(u.path)}catch{}x(!1)},p=()=>{if(h==="open"){if(!v.trim())return;const d=v.trim().split("/").filter(Boolean).pop()||"project";e(y.trim()||d,l.trim()||`Work on the project at ${v.trim()}. Explore the codebase and wait for instructions.`,v.trim(),m)}else{if(!y.trim()||!l.trim())return;e(y.trim(),l.trim(),v.trim()||void 0,m)}};return O.jsx("div",{className:"dialog-overlay",onClick:r,children:O.jsxs("div",{className:"dialog",onClick:d=>d.stopPropagation(),children:[O.jsxs("div",{className:"dialog-mode-tabs",children:[O.jsx("button",{className:`dialog-mode-tab ${h==="spawn"?"active":""}`,onClick:()=>S("spawn"),children:"Spawn Agent"}),O.jsx("button",{className:`dialog-mode-tab ${h==="open"?"active":""}`,onClick:()=>S("open"),children:"Open Project"})]}),O.jsxs("label",{children:["Agent Service",O.jsxs("div",{className:"service-selector",children:[O.jsx("button",{type:"button",className:`service-btn ${m==="claude"?"active":""}`,onClick:()=>C("claude"),children:"Claude"}),O.jsx("button",{type:"button",className:`service-btn ${m==="codex"?"active":""}`,onClick:()=>C("codex"),children:"Codex"})]})]}),h==="open"?O.jsxs(O.Fragment,{children:[O.jsxs("label",{children:["Project Directory",O.jsxs("div",{className:"browse-row",children:[O.jsx("input",{type:"text",value:v,onChange:d=>c(d.target.value),placeholder:"/Users/you/your-project",autoFocus:!0}),O.jsx("button",{type:"button",className:"browse-btn",onClick:f,disabled:b,children:b?"...":"Browse"})]})]}),O.jsxs("label",{children:["Agent Name ",O.jsx("span",{className:"optional",children:"(optional)"}),O.jsx("input",{type:"text",value:y,onChange:d=>a(d.target.value),placeholder:"Auto-detected from path"})]}),O.jsxs("label",{children:["Initial Task ",O.jsx("span",{className:"optional",children:"(optional)"}),O.jsx("textarea",{value:l,onChange:d=>_(d.target.value),placeholder:"Explore the codebase and wait for instructions...",rows:3})]})]}):O.jsxs(O.Fragment,{children:[O.jsxs("label",{children:["Name",O.jsx("input",{type:"text",value:y,onChange:d=>a(d.target.value),placeholder:"e.g. researcher",autoFocus:!0})]}),O.jsxs("label",{children:["Task",O.jsx("textarea",{value:l,onChange:d=>_(d.target.value),placeholder:"Describe what this agent should do...",rows:4})]}),O.jsxs("label",{children:["Working Directory ",O.jsx("span",{className:"optional",children:"(optional)"}),O.jsxs("div",{className:"browse-row",children:[O.jsx("input",{type:"text",value:v,onChange:d=>c(d.target.value),placeholder:"e.g. /Users/you/project (leave blank for server cwd)"}),O.jsx("button",{type:"button",className:"browse-btn",onClick:f,disabled:b,children:b?"...":"Browse"})]})]})]}),o&&O.jsx("div",{className:"dialog-error",children:o}),O.jsxs("div",{className:"dialog-actions",children:[O.jsx("button",{onClick:r,children:"Cancel"}),O.jsx("button",{className:"primary",onClick:p,children:h==="open"?"Open":"Spawn"})]})]})})}function sE({size:e=28}){return O.jsxs("svg",{width:e,height:e,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M50 5 A45 45 0 1 1 15 75",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",fill:"none"}),O.jsx("path",{d:"M30 18 Q55 45 78 30",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",fill:"none"}),O.jsx("path",{d:"M20 55 Q50 35 75 65",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",fill:"none"}),O.jsx("path",{d:"M22 72 Q50 60 50 90",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",fill:"none"}),O.jsx("circle",{cx:"30",cy:"18",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"78",cy:"30",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"75",cy:"65",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"22",cy:"72",r:"6",fill:"currentColor"}),O.jsx("circle",{cx:"50",cy:"90",r:"5.5",fill:"currentColor"})]})}function oE(){var be;const{socket:e,agents:r,messages:i,contextEntries:o,crewMd:h,setCrewMd:S,fileChanges:y}=Yv(),{prs:a,branches:l,currentBranch:_,ghAvailable:v,repoInfo:c,fetchPRDetail:m}=nE(e),[C,b]=J.useState(null),x=r.find(ue=>ue.id===C)??null,[f,p]=J.useState("graph"),[d,u]=J.useState(!1),[w,L]=J.useState("spawn"),[R,D]=J.useState(""),[k,M]=J.useState("all"),[W,z]=J.useState("multi"),[j,N]=J.useState(()=>window.innerWidth>=768),[I,q]=J.useState(!1),[U,K]=J.useState(null),[V,T]=J.useState(null),B=J.useCallback(async()=>{q(!0),T(null);try{const ue=await fetch("/api/pair");if(!ue.ok){const Re=await ue.text();T(Re||`Error ${ue.status}`);return}const ge=await ue.json();K(ge)}catch(ue){T(ue.message||"Failed to load pairing info")}},[]),[P,F]=J.useState(null),G=J.useCallback(async(ue,ge,Re,Ie)=>{F(null);try{const ze=await Jr("/api/spawn",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ue,task:ge,cwd:Re,service:Ie||"claude"})}),Qe=await ze.json();if(!ze.ok){F(Qe.error||"Unknown error");return}u(!1),F(null)}catch(ze){F(ze.message||"Failed to connect to server")}},[]),Z=J.useCallback(async ue=>{await fetch(`/api/agents/${ue}`,{method:"DELETE"})},[]),ie=J.useCallback(async ue=>{await fetch(`/api/agents/${ue}/remove`,{method:"DELETE"}),C===ue&&b(null)},[C]),ae=J.useCallback(async ue=>{await fetch(`/api/agents/${ue}/rollback`,{method:"POST"})},[]),X=J.useCallback(async ue=>{await fetch(`/api/agents/${ue.id}/remove`,{method:"DELETE"});const Re=await(await Jr("/api/spawn",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ue.name,task:ue.task,cwd:ue.agent_cwd||void 0,service:ue.service||"claude"})})).json();Re.id&&(b(Re.id),p("terminal"))},[]),H=J.useCallback(async ue=>{await fetch(`/api/context/${encodeURIComponent(ue)}`,{method:"DELETE"})},[]),re=J.useCallback(async()=>{if(!R.trim())return;const ue=k,ge=R;if(D(""),ue!=="all")await fetch(`/api/agents/${ue}/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:ge})}).catch(()=>{}),await Jr("/api/messages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:"user",to:ue,content:ge})});else{const Re=r.filter(Ie=>Ie.status==="running");await Promise.all(Re.map(Ie=>fetch(`/api/agents/${Ie.id}/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:ge})}).catch(()=>{}))),await Jr("/api/messages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:"user",to:"all",content:ge})})}},[R,k,r]),te=J.useCallback(async()=>{await Jr("/api/messages",{method:"DELETE"})},[]),ce=J.useCallback(async()=>{await Jr("/api/file-changes",{method:"DELETE"})},[]),le=J.useCallback(ue=>{b(ue.id),p("terminal")},[]),pe=J.useCallback(ue=>{L(ue),u(!0)},[]);J.useEffect(()=>{const ue=["graph","terminal","files","prs","messages","context","crewmd"],ge=Re=>{const Ie=Re.target,ze=Ie.tagName==="INPUT"||Ie.tagName==="TEXTAREA"||Ie.tagName==="SELECT",Qe=Ie.closest(".xterm"),ut=Re.metaKey||Re.ctrlKey;if(Re.key==="Escape"){u(!1);return}const qe=ut&&(Re.key==="["||Re.key==="]"||Re.key==="\\");if(Qe&&qe)Re.stopPropagation();else if(ze||Qe)return;if(!ut)return;const pt=parseInt(Re.key);if(pt>=1&&pt<=ue.length){Re.preventDefault(),p(ue[pt-1]);return}switch(Re.key){case"n":Re.preventDefault(),L("spawn"),u(!0);break;case"o":Re.preventDefault(),L("open"),u(!0);break;case"[":{Re.preventDefault();const Ne=r.filter($e=>$e.status!=="dead");if(Ne.length===0)break;const Je=Ne.findIndex($e=>$e.id===C),ht=Je<=0?Ne.length-1:Je-1;b(Ne[ht].id),p("terminal");break}case"]":{Re.preventDefault();const Ne=r.filter($e=>$e.status!=="dead");if(Ne.length===0)break;const Je=Ne.findIndex($e=>$e.id===C),ht=Je>=Ne.length-1?0:Je+1;b(Ne[ht].id),p("terminal");break}case"\\":Re.preventDefault(),z(Ne=>Ne==="multi"?"single":"multi");break}};return document.addEventListener("keydown",ge,!0),()=>document.removeEventListener("keydown",ge,!0)},[r,C]);const Se=[{key:"graph",label:"Graph"},{key:"terminal",label:"Terminal"},{key:"files",label:"Files"},{key:"prs",label:"PRs"},{key:"messages",label:"Messages"},{key:"context",label:"Context"},{key:"crewmd",label:"Rules"}];return O.jsxs("div",{className:"app",children:[O.jsxs("header",{className:"app-header",children:[O.jsx("button",{className:"header-hamburger",onClick:()=>N(ue=>!ue),title:"Toggle sidebar",children:"☰"}),O.jsxs("div",{className:"header-brand",children:[O.jsx(sE,{size:26}),O.jsx("h1",{children:"Clustr"})]}),(()=>{const ue=r.reduce((ge,Re)=>ge+(Re.total_cost||0),0);return ue>0?O.jsxs("span",{className:"header-total-cost",children:["Total: $",ue.toFixed(4)]}):null})(),O.jsxs("div",{className:"header-actions",children:[window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?O.jsx("button",{className:"header-connect-phone",onClick:B,title:"Connect phone",children:"Connect Phone"}):null,O.jsx("button",{onClick:()=>pe("open"),children:"Open Project"}),O.jsx("button",{className:"primary",onClick:()=>pe("spawn"),children:"New Agent"})]})]}),O.jsxs("div",{className:"app-body",children:[j&&O.jsx("div",{className:"sidebar-backdrop",onClick:()=>N(!1)}),O.jsxs("aside",{className:`sidebar ${j?"":"collapsed"}`,children:[O.jsx("button",{className:"sidebar-toggle",onClick:()=>N(ue=>!ue),title:j?"Collapse sidebar":"Expand sidebar",children:j?"‹":"›"}),j&&O.jsx(Qv,{agents:r,selectedId:C,onSelect:ue=>{b(ue.id),p("terminal"),window.innerWidth<768&&N(!1)},onKill:Z,onRemove:ie,onRollback:ae,onRestart:X})]}),O.jsxs("main",{className:"main-content",children:[O.jsxs("nav",{className:"tabs",children:[Se.map(ue=>O.jsx("button",{className:f===ue.key?"tab active":"tab",onClick:()=>p(ue.key),children:ue.label},ue.key)),f==="terminal"&&O.jsxs("div",{className:"terminal-view-toggle",children:[O.jsx("button",{className:`view-toggle-btn ${W==="multi"?"active":""}`,onClick:()=>z("multi"),title:"Split view — all agents",children:"⊞"}),O.jsx("button",{className:`view-toggle-btn ${W==="single"?"active":""}`,onClick:()=>z("single"),title:"Single view — selected agent",children:"☐"})]})]}),O.jsxs("div",{className:"tab-content",children:[f==="graph"&&O.jsx(ob,{agents:r,messages:i,onSelectAgent:le}),f==="terminal"&&W==="multi"&&O.jsx(qb,{agents:r,socket:e,onSelectAgent:ue=>b(ue.id)}),f==="terminal"&&W==="single"&&O.jsx(zb,{agent:x,socket:e}),f==="messages"&&O.jsx(Kb,{messages:i,agents:r,selectedAgentId:(x==null?void 0:x.id)??null,onClear:te}),f==="context"&&O.jsx(Xb,{entries:o,onRemove:H}),f==="files"&&O.jsx(Jb,{changes:y,agents:r,onClear:ce}),f==="prs"&&O.jsx(tE,{prs:a,branches:l,currentBranch:_,ghAvailable:v,repoInfo:c,agents:r,fetchPRDetail:m}),f==="crewmd"&&O.jsx(rE,{content:h,onChange:S})]})]})]}),O.jsxs("footer",{className:"app-footer",children:[O.jsxs("select",{value:k,onChange:ue=>M(ue.target.value),children:[O.jsx("option",{value:"all",children:"All Agents"}),r.filter(ue=>ue.status==="running").map(ue=>O.jsx("option",{value:ue.id,children:ue.name},ue.id))]}),O.jsx("input",{type:"text",placeholder:k==="all"?"Broadcast message to all agents...":`Send message to ${((be=r.find(ue=>ue.id===k))==null?void 0:be.name)||"agent"}...`,value:R,onChange:ue=>D(ue.target.value),onKeyDown:ue=>ue.key==="Enter"&&re()}),O.jsx("button",{className:"primary",onClick:re,disabled:!R.trim(),children:"Send"})]}),d&&O.jsx(iE,{onSpawn:G,onClose:()=>{u(!1),F(null)},initialMode:w,error:P}),I&&O.jsx("div",{className:"pair-modal-overlay",onClick:()=>q(!1),children:O.jsxs("div",{className:"pair-modal",onClick:ue=>ue.stopPropagation(),children:[O.jsxs("div",{className:"pair-modal-header",children:[O.jsx("h2",{children:"Connect Phone"}),O.jsx("button",{className:"pair-modal-close",onClick:()=>q(!1),children:"✕"})]}),V?O.jsx("p",{className:"pair-modal-error",children:V}):U?O.jsxs(O.Fragment,{children:[O.jsx("p",{className:"pair-modal-hint",children:"Scan to open Clustr on your phone's browser"}),O.jsx("img",{className:"pair-qr",src:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(U.qrSvg)}`,alt:"QR code to connect phone"}),O.jsxs("div",{className:"pair-urls",children:[O.jsxs("div",{className:"pair-url-row",children:[O.jsx("span",{className:"pair-url-label",children:"Local"}),O.jsxs("span",{className:"pair-url-text",children:[U.localUrl,"?token=…"]}),O.jsx("button",{onClick:()=>navigator.clipboard.writeText(`${U.localUrl}?token=${U.token}`),children:"Copy"})]}),U.remoteUrl&&O.jsxs("div",{className:"pair-url-row",children:[O.jsx("span",{className:"pair-url-label",children:"Remote"}),O.jsxs("span",{className:"pair-url-text",children:[U.remoteUrl,"?token=…"]}),O.jsx("button",{onClick:()=>navigator.clipboard.writeText(`${U.remoteUrl}?token=${U.token}`),children:"Copy"})]}),!U.remoteUrl&&O.jsxs("p",{className:"pair-tunnel-hint",children:["Set ",O.jsx("code",{children:"CLUSTR_TUNNEL=1"})," to enable remote access via Cloudflare Tunnel."]})]})]}):O.jsx("p",{className:"pair-modal-loading",children:"Loading pairing info…"})]})})]})}tv.createRoot(document.getElementById("root")).render(O.jsx(Hu.StrictMode,{children:O.jsx(oE,{})}));
|
package/dist/client/index.html
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<link rel="manifest" href="/manifest.json" />
|
|
8
8
|
<meta name="theme-color" content="#000000" />
|
|
9
9
|
<title>Clustr</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-DB8s2JgK.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CW63oPzm.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root">
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap";.agent-list{display:flex;flex-direction:column;height:100%}.agent-list-header{padding:14px 20px 10px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted)}.agent-list-empty{padding:32px 20px;color:var(--text-muted);font-size:12px;text-align:center;line-height:1.6}.agent-item{padding:10px 20px;cursor:pointer;border-left:2px solid transparent;position:relative;transition:background var(--transition)}.agent-item:hover{background:var(--bg-tertiary)}.agent-item.selected{background:var(--bg-tertiary);border-left-color:var(--white)}.agent-item-header{display:flex;align-items:center;gap:10px}.status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.agent-name{font-weight:500;font-size:13px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.agent-status{font-size:10px;font-family:var(--font-mono);color:var(--text-muted);text-transform:lowercase;letter-spacing:.02em}.agent-task{font-size:11px;color:var(--text-muted);margin-top:3px;padding-left:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.agent-running-actions{display:flex;gap:4px;padding-left:16px;max-height:0;overflow:hidden;opacity:0;transition:max-height .2s ease,opacity .15s ease,margin .2s ease;margin-top:0}.agent-item:hover .agent-running-actions{max-height:30px;opacity:1;margin-top:6px}.stop-btn{padding:3px 10px;font-size:10px;background:#f871711a;color:var(--red);border:1px solid rgba(248,113,113,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.stop-btn:hover{background:#f8717133;color:var(--red);border-color:#f8717180}.agent-item:hover .remove-btn{opacity:1}.remove-btn{position:absolute;right:12px;top:10px;padding:3px 10px;font-size:10px;opacity:0;background:#f871711a;color:var(--red);border:1px solid rgba(248,113,113,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.remove-btn:hover{background:#f8717133;color:var(--red);border-color:#f8717180}.agent-done-actions{display:flex;gap:4px;padding-left:16px;max-height:0;overflow:hidden;opacity:0;transition:max-height .2s ease,opacity .15s ease,margin .2s ease;margin-top:0}.agent-item:hover .agent-done-actions{max-height:30px;opacity:1;margin-top:6px}.agent-done-actions .remove-btn,.agent-done-actions .rollback-btn,.agent-done-actions .restart-btn{position:static;opacity:1;flex-shrink:0}.restart-btn{padding:3px 10px;font-size:10px;background:#4ade801a;color:var(--green);border:1px solid rgba(74,222,128,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.restart-btn:hover{background:#4ade8033;color:var(--green);border-color:#4ade8080}.rollback-btn{padding:3px 10px;font-size:10px;background:#fbbf241a;color:#fbbf24;border:1px solid rgba(251,191,36,.3);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);font-weight:500}.rollback-btn:hover{background:#fbbf2433;color:#fbbf24;border-color:#fbbf2480}.agent-cost{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);margin-left:auto;flex-shrink:0}.agent-service-badge{font-size:9px;font-weight:600;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;padding:1px 5px;border-radius:3px;flex-shrink:0}.agent-service-badge.service-claude{color:#c4a67a;background:#c4a67a1f}.agent-service-badge.service-codex{color:#10b981;background:#10b9811f}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}/**
|
|
2
|
-
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
-
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
-
* https://github.com/chjj/term.js
|
|
5
|
-
* @license MIT
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in
|
|
15
|
-
* all copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
* THE SOFTWARE.
|
|
24
|
-
*
|
|
25
|
-
* Originally forked from (with the author's permission):
|
|
26
|
-
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
-
* http://bellard.org/jslinux/
|
|
28
|
-
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
-
* The original design remains. The terminal itself
|
|
30
|
-
* has been extended to include xterm CSI codes, among
|
|
31
|
-
* other features.
|
|
32
|
-
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.multi-term-container{display:flex;flex-direction:row;height:100%;width:100%;background:#1a1a1a;overflow:hidden}.multi-term-pane{display:flex;flex-direction:column;background:#0a0a0a;overflow:hidden;min-width:100px;min-height:0;border:1px solid transparent;transition:border-color .15s ease;flex-shrink:0;flex-grow:0}.multi-term-divider{flex-shrink:0;background:#1a1a1a;transition:background .15s ease}.multi-term-divider.horizontal{width:4px;cursor:col-resize}.multi-term-divider.vertical{height:4px;cursor:row-resize}.multi-term-divider:hover{background:#4ade80}.multi-term-pane.focused{border-color:#333}.multi-term-pane-header{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#111;border-bottom:1px solid #1a1a1a;min-height:26px;cursor:pointer;-webkit-user-select:none;user-select:none}.multi-term-pane.focused .multi-term-pane-header{background:#161616;border-bottom-color:#222}.multi-term-status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.multi-term-pane-name{font-size:11px;font-weight:600;color:#ccc;font-family:var(--font-mono, "JetBrains Mono", monospace);white-space:nowrap;flex-shrink:0}.multi-term-pane.focused .multi-term-pane-name{color:#fff}.multi-term-pane-task{font-size:10px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.multi-term-pane-body{flex:1;overflow:hidden;min-height:0;padding:2px}.multi-term-pane-body .xterm{height:100%}.multi-term-pane-body .xterm-viewport{overflow-y:auto!important}.multi-term-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:12px;color:#333}.multi-term-empty-icon{font-size:28px;font-family:JetBrains Mono,monospace;font-weight:400;letter-spacing:.05em}.multi-term-empty-text{font-size:12px;color:#444;font-family:DM Sans,sans-serif;letter-spacing:.02em}.message-feed{display:flex;flex-direction:column;height:100%}.message-feed-header{padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted);display:flex;align-items:center;justify-content:space-between}.clear-messages-btn{font-size:10px;padding:3px 10px;background:#f871711a;color:var(--red);border:1px solid rgba(248,113,113,.3);border-radius:4px;cursor:pointer;text-transform:none;letter-spacing:normal;font-weight:500}.clear-messages-btn:hover{background:#f8717133;color:var(--red);border-color:#f8717180}.message-feed-list{flex:1;overflow-y:auto;padding:4px 0}.message-feed-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.message-item{padding:10px 20px;border-bottom:1px solid var(--border-subtle);transition:background var(--transition)}.message-item:hover{background:var(--bg-tertiary)}.message-meta{font-size:11px;margin-bottom:4px;display:flex;align-items:center;gap:4px}.message-from{color:var(--green);font-weight:600;font-family:var(--font-mono);font-size:11px}.message-arrow{color:var(--text-secondary);font-size:10px}.message-to{color:#60a5fa;font-weight:600;font-family:var(--font-mono);font-size:11px}.message-time{color:var(--text-secondary);margin-left:auto;font-size:10px;font-family:var(--font-mono)}.message-content{font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word;color:var(--text);padding-left:0}.context-viewer{height:100%;overflow-y:auto}.context-header{padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted)}.context-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.context-table{width:100%;border-collapse:collapse;font-size:12px}.context-table th{text-align:left;padding:10px 20px;border-bottom:1px solid var(--border);color:var(--text-muted);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.context-table td{padding:10px 20px;border-bottom:1px solid var(--border-subtle);vertical-align:top}.context-table tr{transition:background var(--transition)}.context-table tbody tr:hover{background:var(--bg-tertiary)}.context-key{color:var(--text);font-family:var(--font-mono);font-size:11px;white-space:nowrap}.context-value{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word;color:var(--text-secondary);font-size:12px}.context-time{color:var(--text-muted);white-space:nowrap;font-size:11px;font-family:var(--font-mono)}.context-remove-btn{background:none;border:1px solid transparent;border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;padding:2px 6px;font-size:10px;opacity:0;transition:all var(--transition)}.context-table tr:hover .context-remove-btn{opacity:1}.context-remove-btn:hover{background:#1a0808;color:var(--red);border-color:#3a1515}.diff-viewer{background:#0a0a0a;border:1px solid var(--border);border-radius:6px;overflow:hidden}.diff-filename{padding:8px 14px;font-size:11px;font-family:var(--font-mono);color:var(--text-secondary);background:#111;border-bottom:1px solid var(--border)}.diff-content{margin:0;padding:8px 0;font-family:var(--font-mono);font-size:12px;line-height:1.5;overflow-x:auto}.diff-line{padding:0 14px;white-space:pre;min-height:18px}.diff-add{background:#4ade801a;color:#4ade80}.diff-del{background:#f871711a;color:#f87171}.diff-hunk{color:#93c5fd;padding-top:4px;padding-bottom:4px}.diff-meta{color:var(--text-muted);font-style:italic}.file-changes{display:flex;flex-direction:column;height:100%}.file-changes-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted)}.file-changes-clear-btn{font-size:10px;padding:2px 8px;background:var(--bg-tertiary);color:var(--text-muted);border:1px solid var(--border);border-radius:4px;cursor:pointer;text-transform:none;letter-spacing:normal;font-weight:400}.file-changes-clear-btn:hover{background:var(--red);color:#fff;border-color:var(--red)}.file-changes-list{flex:1;overflow-y:auto;padding:4px 0}.file-changes-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.file-change-item{border-bottom:1px solid var(--border-subtle)}.file-change-row{display:flex;align-items:center;gap:10px;padding:8px 20px;cursor:pointer;transition:background .1s ease}.file-change-row:hover{background:var(--bg-tertiary)}.file-change-type{font-family:var(--font-mono);font-size:11px;font-weight:600;width:14px;text-align:center;flex-shrink:0}.file-change-path{font-family:var(--font-mono);font-size:12px;color:var(--text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-change-agent{font-family:var(--font-mono);font-size:10px;color:#4ade80;background:#4ade8014;border:1px solid rgba(74,222,128,.15);border-radius:4px;padding:1px 6px;flex-shrink:0;white-space:nowrap}.file-change-time{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.file-change-expand{font-size:9px;color:var(--text-muted);width:12px;text-align:center}.prs-tab{display:flex;flex-direction:column;height:100%}.prs-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--border);color:var(--text-muted)}.prs-header-left{display:flex;align-items:center;gap:12px}.prs-filter{font-size:11px;padding:2px 6px;background:var(--bg-tertiary);color:var(--text);border:1px solid var(--border);border-radius:4px;text-transform:none;letter-spacing:normal;font-weight:400;cursor:pointer}.prs-repo-link{font-size:11px;color:var(--text-muted);text-decoration:none;text-transform:none;letter-spacing:normal;font-weight:400;font-family:var(--font-mono)}.prs-repo-link:hover{color:var(--blue)}.prs-list{flex:1;overflow-y:auto;padding:4px 0}.prs-empty{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px}.prs-unavailable{text-align:center;color:var(--text-muted);padding:48px 24px;font-size:12px;line-height:1.6}.prs-unavailable code{background:var(--bg-tertiary);padding:2px 6px;border-radius:4px;font-family:var(--font-mono);font-size:11px}.pr-item{border-bottom:1px solid var(--border-subtle)}.pr-row{display:flex;align-items:center;gap:10px;padding:8px 20px;cursor:pointer;transition:background .1s ease}.pr-row:hover{background:var(--bg-tertiary)}.pr-status-badge{width:8px;height:8px;border-radius:50%;flex-shrink:0}.pr-status-badge.open{background:#4ade80}.pr-status-badge.merged{background:#a78bfa}.pr-status-badge.closed{background:#f87171}.pr-status-badge.draft{background:#666}.pr-number{font-family:var(--font-mono);font-size:12px;color:var(--text-muted);flex-shrink:0;min-width:40px}.pr-title{font-size:12px;color:var(--text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-author{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.pr-branch{font-family:var(--font-mono);font-size:10px;color:#4ade80;background:#4ade8014;border:1px solid rgba(74,222,128,.15);border-radius:4px;padding:1px 6px;flex-shrink:0;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-ci{flex-shrink:0;font-size:12px;width:16px;text-align:center}.pr-review{flex-shrink:0;font-size:10px;font-family:var(--font-mono);padding:1px 6px;border-radius:4px}.pr-review.approved{color:#4ade80;background:#4ade8014;border:1px solid rgba(74,222,128,.15)}.pr-review.changes_requested{color:#f87171;background:#f8717114;border:1px solid rgba(248,113,113,.15)}.pr-review.review_required{color:#fbbf24;background:#fbbf2414;border:1px solid rgba(251,191,36,.15)}.pr-time{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.pr-link-btn{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:12px;padding:2px 4px;flex-shrink:0}.pr-link-btn:hover{color:var(--blue)}.pr-expand{font-size:9px;color:var(--text-muted);width:12px;text-align:center}.pr-detail{padding:12px 20px 12px 52px;border-top:1px solid var(--border-subtle);background:var(--bg-secondary)}.pr-detail-loading{color:var(--text-muted);font-size:11px}.pr-detail-body{font-size:12px;color:var(--text);line-height:1.5;white-space:pre-wrap;word-break:break-word;margin-bottom:12px;max-height:200px;overflow-y:auto}.pr-detail-section-title{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);margin:12px 0 6px}.pr-detail-checks{display:flex;flex-wrap:wrap;gap:6px}.pr-check{font-family:var(--font-mono);font-size:10px;padding:2px 8px;border-radius:4px;background:var(--bg-tertiary);border:1px solid var(--border)}.pr-check.success{color:#4ade80;border-color:#4ade804d}.pr-check.failure{color:#f87171;border-color:#f871714d}.pr-check.pending{color:#fbbf24;border-color:#fbbf244d}.pr-comment{padding:8px 0;border-bottom:1px solid var(--border-subtle)}.pr-comment:last-child{border-bottom:none}.pr-comment-header{font-size:10px;color:var(--text-muted);margin-bottom:4px}.pr-comment-header strong{color:var(--text)}.pr-comment-body{font-size:12px;color:var(--text);line-height:1.4;white-space:pre-wrap;word-break:break-word}.branches-section{border-top:1px solid var(--border)}.branches-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none}.branches-header:hover{background:var(--bg-tertiary)}.branches-toggle{font-size:9px}.branches-list{padding:4px 0}.branch-item{display:flex;align-items:center;gap:10px;padding:6px 20px}.branch-item.current{background:#4ade800a}.branch-current-marker{color:#4ade80;font-size:10px;width:8px;flex-shrink:0}.branch-name{font-family:var(--font-mono);font-size:12px;color:var(--text);flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-name.current{color:#4ade80}.branch-message{font-size:11px;color:var(--text-muted);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-author{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.branch-ahead-behind{display:flex;gap:4px;flex-shrink:0}.branch-badge{font-family:var(--font-mono);font-size:9px;padding:1px 5px;border-radius:3px;background:var(--bg-tertiary);border:1px solid var(--border)}.branch-badge.ahead{color:#4ade80}.branch-badge.behind{color:#f87171}.branch-time{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);flex-shrink:0}.crewmd-editor{display:flex;flex-direction:column;height:100%;background:#0a0a0a}.crewmd-header{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-bottom:1px solid var(--border);background:var(--bg-secondary);min-height:40px}.crewmd-title{font-size:12px;font-weight:600;color:var(--text);font-family:var(--font-mono, "JetBrains Mono", monospace);display:flex;align-items:center;gap:10px}.crewmd-path{font-size:10px;font-weight:400;color:var(--text-muted)}.crewmd-actions{display:flex;align-items:center;gap:10px}.crewmd-dirty{font-size:10px;color:#fbbf24;font-style:italic}.crewmd-save-btn{font-size:11px;padding:4px 14px;background:var(--bg-tertiary);color:var(--text-secondary);border:1px solid var(--border);border-radius:4px;cursor:pointer;transition:all .15s ease}.crewmd-save-btn:hover:not(:disabled){background:#4ade80;color:#000;border-color:#4ade80}.crewmd-save-btn:disabled{opacity:.4;cursor:default}.crewmd-textarea{flex:1;background:#0a0a0a;color:#c8c8c8;border:none;outline:none;resize:none;padding:20px;font-family:var(--font-mono, "JetBrains Mono", monospace);font-size:13px;line-height:1.6;-moz-tab-size:2;tab-size:2;white-space:pre;overflow:auto}.crewmd-textarea::placeholder{color:#333}.crewmd-textarea::-webkit-scrollbar{width:6px}.crewmd-textarea::-webkit-scrollbar-track{background:transparent}.crewmd-textarea::-webkit-scrollbar-thumb{background:#222;border-radius:3px}.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:100;animation:overlay-in .2s ease-out}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.dialog{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px;width:460px;max-width:90vw;animation:dialog-in .25s cubic-bezier(.16,1,.3,1)}.dialog h2{font-size:15px;font-weight:500;margin-bottom:20px;color:var(--text)}.dialog-mode-tabs{display:flex;gap:0;margin-bottom:24px;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden}.dialog-mode-tab{flex:1;border:none;border-radius:0;padding:9px 16px;font-size:12px;font-weight:500;background:var(--bg);color:var(--text-muted);cursor:pointer;transition:all var(--transition);letter-spacing:.02em}.dialog-mode-tab:hover{background:var(--bg-tertiary);color:var(--text-secondary)}.dialog-mode-tab.active{background:var(--white);color:#000}.dialog label{display:block;font-size:11px;font-weight:500;color:var(--text-muted);margin-bottom:16px;text-transform:uppercase;letter-spacing:.06em}.dialog label .optional{font-weight:400;opacity:.5;text-transform:none;letter-spacing:0}.dialog label input,.dialog label textarea{display:block;width:100%;margin-top:6px;text-transform:none;letter-spacing:-.01em}.dialog textarea{resize:vertical;font-family:var(--font-body);line-height:1.5}.browse-row{display:flex;gap:6px;margin-top:6px}.browse-row input{flex:1;margin-top:0!important}.browse-btn{flex-shrink:0;padding:7px 14px;font-size:12px;background:var(--bg-tertiary);color:var(--text-secondary);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .15s ease;white-space:nowrap}.browse-btn:hover:not(:disabled){background:var(--white);color:#000;border-color:var(--white)}.browse-btn:disabled{opacity:.5;cursor:default}.service-selector{display:flex;gap:0;margin-top:6px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.service-btn{flex:1;border:none;border-radius:0;padding:7px 14px;font-size:12px;font-weight:500;background:var(--bg);color:var(--text-muted);cursor:pointer;transition:all var(--transition)}.service-btn:hover{background:var(--bg-tertiary);color:var(--text-secondary)}.service-btn.active{background:var(--white);color:#000}.dialog-error{color:#ff6b6b;background:#ff6b6b1a;border:1px solid rgba(255,107,107,.3);border-radius:6px;padding:8px 12px;font-size:13px;margin-top:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.app{display:flex;flex-direction:column;height:100%;background:var(--bg)}.app-header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;min-height:52px;border-bottom:1px solid var(--border);background:var(--bg)}.header-brand{display:flex;align-items:center;gap:10px;color:var(--text)}.app-header h1{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text)}.header-total-cost{font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);padding:4px 10px;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:4px}.header-actions{display:flex;gap:8px}.app-body{display:flex;flex:1;overflow:hidden}.sidebar{width:260px;min-width:260px;border-right:1px solid var(--border);background:var(--bg-secondary);overflow-y:auto;display:flex;flex-direction:column;position:relative;transition:width .2s ease,min-width .2s ease}.sidebar.collapsed{width:36px;min-width:36px;overflow:hidden}.sidebar-toggle{position:absolute;top:8px;right:8px;width:22px;height:22px;border:1px solid var(--border);border-radius:4px;background:var(--bg-tertiary);color:var(--text-secondary);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;padding:0;line-height:1;transition:all .15s ease}.sidebar.collapsed .sidebar-toggle{right:auto;left:7px}.sidebar-toggle:hover{background:var(--bg);color:var(--text);border-color:#444}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);background:var(--bg);padding:0 16px;height:40px;min-height:40px;align-items:stretch}.tab{border:none;border-bottom:2px solid transparent;border-radius:0;background:none;padding:0 16px;font-size:12px;font-weight:500;color:var(--text-secondary);letter-spacing:.04em;text-transform:uppercase;transition:all var(--transition);display:flex;align-items:center}.tab:hover{color:var(--text);background:#ffffff0a}.tab.active{color:var(--white);border-bottom-color:var(--white);font-weight:600}.terminal-view-toggle{display:flex;align-items:center;gap:2px;margin-left:auto;padding-right:4px}.view-toggle-btn{border:none;border-radius:4px;background:none;color:var(--text-muted);font-size:15px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:all .15s ease;line-height:1}.view-toggle-btn:hover{color:var(--text-secondary);background:var(--bg-tertiary)}.view-toggle-btn.active{color:var(--text);background:var(--bg-tertiary)}.tab-content{flex:1;overflow:hidden;position:relative;background:#000}.app-footer{display:flex;gap:8px;padding:10px 20px;border-top:1px solid var(--border);background:var(--bg-secondary);align-items:center}.app-footer select{background:var(--bg);border:1px solid var(--border);color:var(--text-secondary);padding:7px 10px;border-radius:var(--radius-sm);font-size:12px;font-family:var(--font-body);min-width:140px;cursor:pointer}.app-footer select:hover{border-color:#333}.app-footer input{flex:1;background:var(--bg)}.header-hamburger{display:none;border:none;background:none;color:var(--text-secondary);font-size:18px;padding:4px 8px;cursor:pointer;line-height:1;min-height:unset}.header-connect-phone{border:1px solid var(--border);background:transparent;font-size:13px;padding:6px 12px;cursor:pointer;border-radius:6px;color:var(--text);opacity:.8}.header-connect-phone:hover{opacity:1;background:var(--surface);border-color:var(--border)}.pair-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px}.pair-modal{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px 24px 24px;width:100%;max-width:400px;display:flex;flex-direction:column;align-items:center;gap:16px}.pair-modal-header{width:100%;display:flex;align-items:center;justify-content:space-between}.pair-modal-header h2{font-size:14px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text)}.pair-modal-close{border:none;background:none;color:var(--text-muted);font-size:14px;padding:4px;min-height:unset;line-height:1}.pair-modal-close:hover{color:var(--text);background:none;border-color:transparent}.pair-modal-hint{font-size:12px;color:var(--text-muted);text-align:center}.pair-modal-loading{font-size:12px;color:var(--text-muted);padding:24px 0}.pair-modal-error{font-size:12px;color:#f87171;padding:24px 0}.pair-qr{width:200px;height:200px;background:#000;border-radius:var(--radius-md);padding:12px}.pair-urls{width:100%;display:flex;flex-direction:column;gap:8px}.pair-url-row{display:flex;align-items:center;gap:8px;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px}.pair-url-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);min-width:44px}.pair-url-text{flex:1;font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pair-tunnel-hint{font-size:11px;color:var(--text-muted);text-align:center;line-height:1.5}.pair-tunnel-hint code{font-family:var(--font-mono);background:var(--bg-tertiary);padding:1px 5px;border-radius:3px;color:var(--text-secondary)}.sidebar-backdrop{display:none}@media(max-width:767px){.header-hamburger{display:flex;align-items:center}.sidebar-toggle{display:none}.sidebar{position:fixed;top:0;left:0;height:100%;z-index:200;transform:translate(-100%);transition:transform .25s ease,width .2s ease,min-width .2s ease;width:280px;min-width:280px}.sidebar:not(.collapsed){transform:translate(0)}.sidebar.collapsed{transform:translate(-100%);width:280px;min-width:280px;overflow:hidden}.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:199}.app-header{padding:0 12px;gap:8px}.header-total-cost{display:none}.tabs{padding:0 8px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{white-space:nowrap;flex-shrink:0;padding:0 12px}.app-footer{flex-direction:column;padding:8px 12px;gap:6px;align-items:stretch}.app-footer select{width:100%;min-width:unset}.pair-modal{max-width:100%;border-radius:var(--radius-lg) var(--radius-lg) 0 0;position:fixed;bottom:0;left:0;right:0;margin:0}.pair-modal-overlay{align-items:flex-end;padding:0}}*{margin:0;padding:0;box-sizing:border-box}:root{--bg: #000000;--bg-secondary: #0a0a0a;--bg-tertiary: #151515;--bg-elevated: #1a1a1a;--border: #2a2a2a;--border-subtle: #1c1c1c;--text: #eeeeee;--text-secondary: #b0b0b0;--text-muted: #707070;--white: #ffffff;--accent: #ffffff;--green: #4ade80;--yellow: #fbbf24;--red: #f87171;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;--font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;--transition: .18s cubic-bezier(.4, 0, .2, 1)}html,body,#root{height:100%;width:100%;overflow:hidden;overscroll-behavior:none}body{font-family:var(--font-body);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:13px;letter-spacing:-.01em}button{cursor:pointer;border:1px solid var(--border);background:var(--bg-tertiary);color:var(--text-secondary);padding:7px 14px;border-radius:var(--radius-sm);font-size:12px;font-family:var(--font-body);font-weight:500;letter-spacing:.02em;transition:all var(--transition)}button:hover{color:var(--text);border-color:#444;background:var(--bg-elevated)}button.primary{background:var(--white);border-color:var(--white);color:#000}button.primary:hover{background:#d4d4d4;border-color:#d4d4d4}button.primary:disabled{background:#333;border-color:#333;color:#666;cursor:not-allowed}button.danger{background:transparent;border-color:#3a1515;color:var(--red)}button.danger:hover{background:#1a0808;border-color:var(--red)}button:disabled{opacity:.35;cursor:not-allowed}input,textarea,select{background:var(--bg);border:1px solid var(--border);color:var(--text);padding:8px 12px;border-radius:var(--radius-sm);font-size:13px;font-family:var(--font-body);outline:none;transition:border-color var(--transition)}input:focus,textarea:focus,select:focus{border-color:#444}input::placeholder,textarea::placeholder{color:var(--text-muted)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#222;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#333}::selection{background:#ffffff1f}.react-flow__controls{background:#0a0a0a!important;border:1px solid var(--border)!important;border-radius:6px!important;overflow:hidden}.react-flow__controls-button{background:#0a0a0a!important;border:none!important;border-bottom:1px solid #1c1c1c!important;fill:#888!important;width:28px!important;height:28px!important}.react-flow__controls-button:hover{background:#1a1a1a!important;fill:#eee!important}.react-flow__controls-button:last-child{border-bottom:none!important}.react-flow__controls-button svg{fill:inherit!important}@media(max-width:767px){input,textarea,select{font-size:16px}button{min-height:40px}.react-flow__controls-button{width:40px!important;height:40px!important}}.xterm{background:#000!important}.xterm-viewport{background-color:#000!important;overscroll-behavior:contain!important}.xterm-screen{background:#000!important}
|