@zhn2605/topo 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ .react-flow{--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:#ffffff80;--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:#f0f0f099;--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:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #00000014;--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:#0059dc14;--xy-selection-border-default:1px dotted #0059dccc;--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 #00000014;--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;direction:ltr}.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:#96969640;--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:#3c3c3c99;--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:#555;--xy-background-pattern-lines-color-default:#333;--xy-background-pattern-cross-color-default:#333;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #ffffff14;--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:#c8c8dc14;--xy-selection-border-default:1px dotted #c8c8dccc;--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 #00000014;--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{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.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{pointer-events:none;position:absolute;overflow:visible}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.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;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:.5s linear infinite dashdraw}svg.react-flow__connectionline{z-index:1001;position:absolute;overflow:visible}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.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:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;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%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:0;left:50%;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{z-index:5;margin:15px;position:absolute}.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{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__viewport-portal{-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.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{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));flex-direction:column;display:flex}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)));width:26px;height:26px;color:var(--xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default)));cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;display:flex}.react-flow__controls-button svg{fill:currentColor;width:100%;max-width:12px;max-height:12px}.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{border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));width:150px;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));padding:10px;font-size:12px}.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{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;width:5px;height:5px;translate:-50% -50%}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.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-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}:root{--bg:#f5f6f8;--panel:#fff;--panel-2:#eceef3;--fg:#15171c;--muted:#5b606b;--faint:#9aa0ab;--border:#e1e4ea;--accent:#4f5bd5;--accent-fg:#fff;--accent-soft:#e4e7fb;--sage:#9aa3d8;--shadow:0 1px 2px #1418280f, 0 6px 20px #14182812;--shadow-lg:0 2px 6px #14182814, 0 18px 48px #14182824;--group:#505a780d;--group-border:#d5d9e2;--leaf:#fff;--added:#16a34a;--modified:#d97706;--deleted:#dc2626;--signature:#7c3aed;--added-bg:#dcfce7;--modified-bg:#fef3c7;--deleted-bg:#fee2e2;--signature-bg:#ede9fe;--blast-1:#dfe3fb;--blast-2:#e9ecfc;--blast-3:#f1f3fd;--edge:#9aa0ab;--dots:#d9dce3;--radius:14px;--tok-keyword:#7b3b6c;--tok-string:#4a6a2c;--tok-number:#8a5410;--tok-comment:#6f6a62;--tok-regex:#2c6466;--tok-type:#8b4a26;--tok-function:#2d5a78;--tok-property:#8f3a3a;--tok-operator:#2c6466;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0f1013;--panel:#16171b;--panel-2:#1f2127;--fg:#eceef3;--muted:#a3a7b2;--faint:#6b6f7a;--border:#2a2d35;--accent:#8b97ff;--accent-fg:#0d0f1a;--accent-soft:#262b4d;--sage:#5d67a8;--shadow:0 1px 2px #0000004d, 0 6px 20px #00000040;--shadow-lg:0 2px 6px #00000059, 0 18px 48px #00000073;--group:#a0aac80a;--group-border:#31343d;--leaf:#1a1c21;--added:#4ade80;--modified:#fbbf24;--deleted:#f87171;--signature:#c4a1ff;--added-bg:#12301e;--modified-bg:#3a2d0e;--deleted-bg:#3b1717;--signature-bg:#2d1f47;--blast-1:#27305c;--blast-2:#202748;--blast-3:#1a1f36;--edge:#5d6170;--dots:#24262d;--tok-keyword:#d49ac4;--tok-string:#a9c98a;--tok-number:#ddb27a;--tok-comment:#8f897f;--tok-regex:#7cc2c0;--tok-type:#e2b48c;--tok-function:#8cb8dc;--tok-property:#e59a94;--tok-operator:#7cc2c0;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--fg);-webkit-font-smoothing:antialiased;font:13px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}code,kbd,.code{font-family:JetBrains Mono,ui-monospace,SF Mono,Menlo,monospace;font-size:12px}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0}button:disabled{opacity:.35;cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.icon{flex:none}.loading{height:100%;color:var(--muted);justify-content:center;align-items:center;gap:10px;display:flex}.loading .mark{color:var(--accent);animation:1.6s ease-in-out infinite breathe}@keyframes breathe{50%{opacity:.4}}.eyebrow{letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0;font-size:10.5px;font-weight:600}.count{color:var(--faint);letter-spacing:0;font-weight:500}.btn{border:1px solid var(--border);background:var(--panel);border-radius:999px;align-items:center;gap:6px;height:32px;padding:0 14px;font-weight:500;transition:background .15s,border-color .15s;display:inline-flex}.btn:hover:not(:disabled){border-color:var(--sage)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.btn.primary:hover{filter:brightness(1.06)}.btn.ghost{color:var(--muted);background:0 0}.icon-btn{width:32px;height:32px;color:var(--muted);border-radius:999px;place-items:center;transition:background .15s,color .15s;display:inline-grid}.icon-btn:hover:not(:disabled),.icon-btn.on{background:var(--panel-2);color:var(--fg)}.tabs{border:1px solid var(--border);background:var(--panel);box-shadow:var(--shadow);border-radius:999px;margin:0;padding:3px;display:flex}.tabs button{height:30px;color:var(--muted);border-radius:999px;align-items:center;gap:6px;padding:0 16px;font-weight:500;transition:background .2s,color .2s;display:inline-flex}.tabs button:hover:not(:disabled):not(.on){color:var(--fg)}.tabs button.on{background:var(--accent);color:var(--accent-fg)}.tabs.small{box-shadow:none;align-self:flex-start;padding:2px}.tabs.small button{height:26px;padding:0 12px;font-size:12px}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--border);height:26px;color:var(--muted);border-radius:999px;padding:0 11px;font-size:12px}.chip.on{background:var(--accent-soft);color:var(--fg);border-color:#0000}.popover{z-index:30;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);position:absolute}.empty{color:var(--muted);margin:12px 0}.mock-tag{background:var(--modified-bg);color:var(--modified);border-radius:999px;padding:2px 8px;font-size:11px}.app{grid-template-columns:48px var(--left-w,0px) 1fr var(--right-w,0px);grid-template-rows:60px 1fr;grid-template-areas:"bar top top top""bar leftdock graph rightdock";height:100%;transition:grid-template-columns .15s;display:grid}.topbar{grid-area:top;grid-template-columns:auto 1fr;align-items:center;gap:16px;padding:0 16px;display:grid;position:relative}.brand{align-items:center;gap:10px;min-width:0;display:flex}.mark{color:var(--accent);flex:none}.wordmark{letter-spacing:.06em;font-size:15px;font-weight:600}.repo{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.repo:before{content:"/";color:var(--faint);margin-right:10px}.refs{color:var(--muted);background:var(--panel-2);white-space:nowrap;border-radius:999px;padding:3px 8px;font-size:11px}.tools{justify-content:flex-end;align-items:center;gap:8px;display:flex}.search{border:1px solid var(--border);background:var(--panel);width:260px;height:36px;color:var(--muted);box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:8px;padding:0 10px 0 14px;display:flex;position:relative}.search:focus-within{border-color:var(--sage)}.search input{min-width:0;color:var(--fg);font:inherit;background:0 0;border:0;outline:0;flex:1}.search input::placeholder{color:var(--faint)}.search kbd{border:1px solid var(--border);color:var(--faint);border-radius:6px;padding:0 6px;font-size:11px}.hits{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);width:380px;box-shadow:var(--shadow-lg);z-index:40;margin:0;padding:6px;list-style:none;position:absolute;top:42px;right:0}.hits button{text-align:left;width:100%;color:var(--fg);border-radius:10px;grid-template-columns:auto 1fr;gap:0 10px;padding:7px 10px;display:grid}.hits button .loc{grid-column:2}.hits button.on,.hits button:hover{background:var(--panel-2)}.hit-name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.adjust{border-top:1px solid var(--border);flex-direction:column;gap:14px;padding-top:12px;display:flex}.pop-head{justify-content:space-between;align-items:center;margin:-4px -6px -4px 0;display:flex}.field{flex-direction:column;gap:8px;display:flex}.field>span{color:var(--muted);font-size:12px}.field b{color:var(--fg);font-weight:600}.field input[type=range]{accent-color:var(--accent);width:100%}.paths{color:var(--muted);word-break:break-all}.adjust .btn{border:0;align-self:flex-start;height:24px;padding:0 4px;font-size:12px}.queue{padding:4px 0 0;overflow:auto}.queue .eyebrow{padding:8px 4px 10px}.queue ol{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.card{border:1px solid #0000;border-radius:12px;transition:background .15s,border-color .15s,box-shadow .15s}.card:hover{background:var(--panel)}.card.on{background:var(--panel);border-color:var(--border);box-shadow:var(--shadow)}.card.is-file{opacity:.7}.card[class*=chg-edge-]{box-shadow:inset 3px 0 0 var(--edge-color,transparent)}.card.on[class*=chg-edge-]{box-shadow:inset 3px 0 0 var(--edge-color,transparent), var(--shadow)}.chg-edge-added{--edge-color:var(--added)}.chg-edge-modified{--edge-color:var(--modified)}.chg-edge-deleted{--edge-color:var(--deleted)}.chg-edge-signature_changed{--edge-color:var(--signature)}.row{text-align:left;flex-direction:column;gap:2px;width:100%;padding:9px 12px;display:flex}.row-top{align-items:center;gap:8px;min-width:0;display:flex}.row-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:500;overflow:hidden}.loc{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;overflow:hidden}.reason{color:var(--faint);font-size:11.5px}.reasons{color:var(--muted);margin:4px 0 0;padding:0;font-size:12px;list-style:none}.reasons li:before{content:"·";color:var(--faint);margin-right:6px}.risk{text-align:center;font-variant-numeric:tabular-nums;border-radius:999px;flex:none;min-width:26px;padding:1px 7px;font-size:11px;font-weight:600}.risk-high{background:var(--deleted-bg);color:var(--deleted)}.risk-mid{background:var(--modified-bg);color:var(--modified)}.risk-low{background:var(--panel-2);color:var(--muted)}.badge{border-radius:999px;padding:2px 9px;font-size:11px;font-weight:600}.badge.chg-added{background:var(--added-bg);color:var(--added)}.badge.chg-modified{background:var(--modified-bg);color:var(--modified)}.badge.chg-deleted{background:var(--deleted-bg);color:var(--deleted)}.badge.chg-signature_changed{background:var(--signature-bg);color:var(--signature)}.graph{border:1px solid var(--border);background:var(--panel);box-shadow:var(--shadow);border-radius:20px;grid-area:graph;margin:0 0 12px;position:relative;overflow:hidden}.app.has-right .graph{margin-right:0}.app:not(.has-right) .graph{margin-right:12px}.graph .react-flow{background:0 0}.react-flow__background{color:var(--dots)}.react-flow__background circle{fill:var(--dots)}.crumbs{z-index:10;border:1px solid var(--border);background:color-mix(in srgb, var(--panel) 88%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);max-width:calc(100% - 24px);box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:2px;padding:3px;display:flex;position:absolute;top:12px;left:12px}.crumbs .icon-btn{width:28px;height:28px}.crumb{height:28px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;border-radius:999px;max-width:180px;padding:0 10px;overflow:hidden}.crumb:hover{color:var(--fg)}.crumb.on{background:var(--panel-2);color:var(--fg);font-weight:500}.error{z-index:10;background:var(--deleted-bg);color:var(--deleted);border-radius:10px;padding:8px 12px;position:absolute;top:60px;left:12px}.map-corner{z-index:10;gap:8px;display:flex;position:absolute;bottom:12px;right:12px}.map-btn{border:1px solid var(--border);background:var(--panel);height:30px;color:var(--muted);box-shadow:var(--shadow);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:0 14px;font-size:12px;display:flex}.map-btn.on,.map-btn:hover{color:var(--fg);border-color:var(--accent)}.view-pop{flex-direction:column;gap:14px;width:320px;max-height:calc(100vh - 200px);padding:14px 16px 12px;display:flex;bottom:40px;right:0;overflow:auto}.legend{width:260px;color:var(--muted);flex-direction:column;gap:7px;padding:14px 16px;font-size:12px;display:flex;bottom:50px;right:12px}.legend>span{align-items:center;gap:6px;display:flex}.legend .eyebrow{margin-bottom:2px}.legend .hint{border-top:1px solid var(--border);color:var(--faint);margin-top:4px;padding-top:8px}.sw{border:1.5px solid #0000;border-radius:4px;width:12px;height:12px;display:inline-block}.sw.round{border-radius:999px}.sw.chg-added{border-color:var(--added);background:var(--added-bg)}.sw.chg-modified{border-color:var(--modified);background:var(--modified-bg)}.sw.chg-deleted{border-color:var(--deleted);background:var(--deleted-bg)}.sw.chg-signature_changed{border-color:var(--signature);background:var(--signature-bg)}.ln{border-top:2px solid var(--edge);width:22px;display:inline-block}.ln.dashed{border-top-style:dashed}.ln.new{border-top:3px solid var(--added)}.ln.removed{border-top:2px dashed var(--deleted)}.graph .react-flow__controls{box-shadow:var(--shadow);border:1px solid var(--border);border-radius:12px;overflow:hidden}.graph .react-flow__controls-button{background:var(--panel);border-bottom-color:var(--border);fill:var(--muted);width:28px;height:28px}.graph .react-flow__controls-button:hover{background:var(--panel-2)}.block{border-radius:11px;width:100%;height:100%;font-size:12.5px;transition:box-shadow .15s,border-color .15s}.block.is-leaf{background:var(--leaf);border:1px solid var(--border);cursor:grab;align-items:center;padding:0 10px;display:flex;box-shadow:0 1px 2px #1418280f}.block.is-leaf:hover{box-shadow:var(--shadow)}.react-flow__node.dragging .block{cursor:grabbing;box-shadow:var(--shadow-lg)}.block-head{align-items:center;gap:7px;width:100%;min-width:0;display:flex}.block.is-group{background:var(--group);border:1px solid var(--group-border);border-radius:16px}.block.is-group .block-head{color:var(--muted);letter-spacing:.02em;cursor:grab;padding:8px 12px;font-size:11px}.block-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:500;overflow:hidden}.block.is-group .block-name{font-weight:600}.block.chg{border-width:1.5px}.block.chg-added{border-color:var(--added);background:var(--added-bg)}.block.chg-modified{border-color:var(--modified);background:var(--modified-bg)}.block.chg-deleted{border-color:var(--deleted);background:var(--deleted-bg)}.block.chg-signature_changed{border-color:var(--signature);background:var(--signature-bg)}.block.is-group.chg{background:var(--group);border-style:dashed}.block.is-leaf.blast-1{background:var(--blast-1)}.block.is-leaf.blast-2{background:var(--blast-2)}.block.is-leaf.blast-3{background:var(--blast-3)}.sw.blast-1{background:var(--blast-1)}.sw.blast-2{background:var(--blast-2)}.sw.blast-3{background:var(--blast-3)}.block.ghost{opacity:.55;border-style:dashed}.block.ghost .block-name{text-decoration:line-through}.block.is-root{box-shadow:0 0 0 3px var(--accent-soft), 0 1px 2px #1418280f}.block.is-selected{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow)}.block .react-flow__handle{opacity:0;width:4px;min-width:0;height:4px;min-height:0}.kind{background:var(--panel-2);width:18px;height:18px;color:var(--muted);border-radius:6px;flex:none;place-items:center;font-size:10.5px;font-weight:600;display:inline-grid}.kind-class,.kind-interface{background:var(--accent-soft);color:var(--accent)}.kind-function,.kind-method{font-style:italic}.block.flow-node{background:var(--leaf);border:1px solid var(--border);cursor:grab;flex-direction:column;justify-content:center;gap:2px;padding:0 12px;display:flex;box-shadow:0 1px 2px #1418280f}.block.flow-node:hover{box-shadow:var(--shadow)}.block.flow-node.is-selected{border-color:var(--accent)}.mod-dot{background:var(--mod);border-radius:999px;flex:none;width:8px;height:8px}.flow-file{color:var(--faint);text-overflow:ellipsis;white-space:nowrap;padding-left:15px;font-size:10.5px;overflow:hidden}.flow-rec{color:var(--muted)}.block.more-node{border:1px dashed var(--group-border);color:var(--muted);cursor:pointer;align-items:center;padding:0 14px;font-size:12px;display:flex}.block.more-node:hover{border-color:var(--sage);color:var(--fg)}.react-flow__edge-path{stroke:var(--edge);stroke-width:1.3px}.edge-new .react-flow__edge-path{stroke:var(--added);stroke-width:2.6px}.edge-removed .react-flow__edge-path{stroke:var(--deleted);stroke-width:1.8px}.edge-back .react-flow__edge-path{stroke:var(--modified);opacity:.7}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:hover .react-flow__edge-path{stroke:var(--accent)}.react-flow__edge-text{fill:var(--muted);font-size:10px}.edge-new .react-flow__edge-text{fill:var(--added);font-weight:600}.edge-removed .react-flow__edge-text{fill:var(--deleted);font-weight:600}.edge-inferred .react-flow__edge-text{font-style:italic}.react-flow__edge-textbg{fill:var(--panel)}.hovercard{z-index:50;border:1px solid var(--border);background:var(--panel);box-shadow:var(--shadow-lg);pointer-events:none;border-radius:12px;flex-direction:column;gap:6px;padding:12px 14px;display:flex;position:fixed}.hc-head{align-items:center;gap:8px;display:flex}.hc-kind{color:var(--faint);margin-left:auto;font-size:11px}.hc-doc{white-space:pre-wrap;color:var(--fg);font-size:12.5px}.hc-sig{color:var(--muted);word-break:break-word}.hc-none{color:var(--faint);font-style:italic}.drawer{flex-direction:column;gap:12px;padding:4px 16px 24px;animation:.2s slide-in;display:flex}@keyframes slide-in{0%{opacity:0;transform:translate(12px)}}.d-head{align-items:center;gap:10px;margin-bottom:-8px;display:flex}.d-head h2{letter-spacing:-.01em;text-overflow:ellipsis;flex:1;margin:0;font-size:18px;font-weight:600;overflow:hidden}.d-head .kind{border-radius:8px;width:24px;height:24px;font-size:12px}.change{background:var(--panel);border:1px solid var(--border);box-shadow:inset 3px 0 0 var(--edge-color,transparent);border-radius:12px;padding:12px 14px}.change .row-top{gap:8px}.change .risk{margin-left:auto}.sigs{flex-direction:column;gap:4px;margin-top:8px;display:flex}code.old{color:var(--deleted);text-decoration:line-through}code.new{color:var(--added)}.doc{white-space:pre-wrap;color:var(--fg);margin:0;line-height:1.55}.uses{color:var(--muted);flex-wrap:wrap;align-items:center;gap:5px;font-size:11.5px;display:flex}.uses code{background:var(--panel-2);border-radius:999px;padding:1px 7px;font-size:11px}.actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.spacer{flex:1}.fold{border-top:1px solid var(--border);padding-top:10px}.fold summary{cursor:pointer;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-size:10.5px;font-weight:600;list-style:none}.fold summary::-webkit-details-marker{display:none}.fold summary:before{content:"›";width:12px;transition:transform .15s;display:inline-block}.fold[open] summary:before{transform:rotate(90deg)}.edges{margin:8px 0 0;padding:0;list-style:none}.edges button{text-align:left;border-radius:8px;align-items:center;gap:8px;width:100%;padding:5px 8px;display:flex}.edges button:hover{background:var(--panel)}.ekind{width:70px;color:var(--faint);font-size:11px}.ekind.new{color:var(--added);font-weight:600}.ekind.removed{color:var(--deleted);text-decoration:line-through}.ename{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.conf{color:var(--faint);font-variant-numeric:tabular-nums;font-size:11px}.conf.low{color:var(--modified)}dl{grid-template-columns:90px 1fr;gap:6px 10px;margin:10px 0 0;font-size:12px;display:grid}dt{color:var(--muted)}dd{word-break:break-word;min-width:0;margin:0}.source{flex-direction:column;gap:8px;display:flex}.code{border:1px solid var(--border);background:var(--panel);border-radius:12px;max-height:46vh;font-size:11.5px;line-height:1.6;overflow:auto}.code-inner{min-width:100%;padding:8px 0;display:inline-block}.cl{display:flex}.cl.ctx{opacity:.45}.cl-head{background:color-mix(in srgb, var(--added) 15%, transparent);box-shadow:inset 3px 0 var(--added)}.cl-base{background:color-mix(in srgb, var(--deleted) 15%, transparent);box-shadow:inset 3px 0 var(--deleted)}.cl-no{text-align:right;width:44px;color:var(--faint);-webkit-user-select:none;user-select:none;flex:none;padding-right:12px}.cl-text{white-space:pre;padding-right:14px}.tok-keyword{color:var(--tok-keyword)}.tok-string{color:var(--tok-string)}.tok-number{color:var(--tok-number)}.tok-comment{color:var(--tok-comment);font-style:italic}.tok-regex{color:var(--tok-regex)}.tok-type{color:var(--tok-type)}.tok-function{color:var(--tok-function)}.tok-property{color:var(--tok-property)}.tok-operator{color:var(--tok-operator)}.node-id{-webkit-user-select:all;user-select:all;word-break:break-all}.live-pill{background:var(--panel-2);color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:2px 9px 2px 8px;font-size:11px;display:inline-flex}.live-pill:before{content:"";background:var(--faint);border-radius:999px;width:7px;height:7px}.live-pill.live:before{background:var(--added)}.live-pill.indexing:before{background:var(--modified);animation:1s ease-in-out infinite breathe}.live-pill.error:before,.live-pill.offline:before{background:var(--deleted)}.block.has-agent{box-shadow:0 0 0 2px var(--agent), 0 0 14px color-mix(in srgb, var(--agent) 35%, transparent)}.agent-dot{background:var(--agent);border-radius:999px;flex:none;width:8px;height:8px;animation:1.6s ease-in-out 3 breathe}.agents{z-index:10;border:1px solid var(--border);background:color-mix(in srgb, var(--panel) 88%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:var(--shadow);color:var(--muted);border-radius:999px;gap:10px;padding:6px 12px;font-size:12px;display:flex;position:absolute;top:12px;right:12px}.agents span{align-items:center;gap:6px;display:flex}.agents i{border-radius:999px;width:8px;height:8px}.react-flow__node{animation:.25s appear}@keyframes appear{0%{opacity:0}}.activity{border-bottom:1px solid var(--border);margin-bottom:14px;padding-bottom:10px}.activity-head{justify-content:space-between;align-items:center;padding:8px 4px 10px;display:flex}.activity-head .eyebrow{flex:1;padding:0}.activity-head{gap:6px}.activity .empty{margin:0 4px 6px;font-size:12px}.agent-swatch{border-radius:999px;flex:none;width:8px;height:8px}.ago{color:var(--faint);font-variant-numeric:tabular-nums;flex:none;font-size:11px}.block.in-territory{outline:2px solid var(--territory);outline-offset:1px}.outside-dot{background:var(--deleted);border-radius:999px;flex:none;width:7px;height:7px}.outside-log{flex-direction:column;gap:4px;margin:0 4px 8px;padding:0;list-style:none;display:flex}.outside-log li{color:var(--deleted);align-items:center;gap:6px;font-size:11.5px;display:flex}.field input,.field select,.territory-form input,.territory-form select{border:1px solid var(--border);background:var(--panel);height:32px;color:var(--fg);font:inherit;border-radius:8px;padding:0 10px}.territory-bar{z-index:15;flex-direction:column;align-items:center;gap:8px;display:flex;position:absolute;top:12px;left:50%;transform:translate(-50%)}.chip-row{border:1px solid var(--border);background:color-mix(in srgb, var(--panel) 92%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:6px;padding:4px 6px;display:flex}.count-pill{color:var(--muted);white-space:nowrap;padding:0 6px;font-size:11px}.territory-form{flex-direction:column;gap:10px;width:260px;padding:14px 16px;display:flex;position:static}.territory-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.territory-list li{border:1px solid var(--border);background:var(--panel-2);border-radius:10px;flex-direction:column;gap:6px;padding:10px;display:flex}.territory-row{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.territory-row select{text-overflow:ellipsis;flex:120px;width:0;min-width:0;max-width:100%}.territory-row .row-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:500;overflow:hidden}.territory-note-field,.territory-reply{width:100%;color:var(--muted);font:inherit;resize:vertical;background:0 0;border:1px solid #0000;border-radius:8px;padding:4px 8px;font-size:12px}.territory-note-field:hover,.territory-note-field:focus,.territory-reply{border-color:var(--border);background:var(--panel);color:var(--fg)}.territory-reply{flex:1;height:28px}.toast{z-index:20;border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);width:320px;box-shadow:var(--shadow-lg);padding:12px 14px;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.toast p{margin:0;font-size:12.5px}.toast-note{color:var(--added)}.toast p.toast-reason{color:var(--muted);margin:4px 0 0;font-size:12px}.toast-actions{justify-content:flex-end;gap:6px;margin-top:10px;display:flex}.dock{flex-direction:column;min-width:0;min-height:0;padding:10px 12px 12px;display:flex;position:relative;overflow:hidden}.dock-left{grid-area:leftdock}.dock-right{grid-area:rightdock}.dock-resize{z-index:5;cursor:col-resize;width:8px;position:absolute;top:0;bottom:0}.dock-resize-left{right:-4px}.dock-resize-right{left:-4px}.dock-panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;min-height:60px;display:flex;overflow:hidden}.dock-panel-head{border-bottom:1px solid var(--border);color:var(--muted);align-items:center;gap:7px;padding:10px 12px;display:flex}.dock-panel.folded .dock-panel-head{border-bottom:0}.dock-panel-body{contain:inline-size;padding:4px 12px 12px}.dock-panel-head,.fold-btn{min-width:0}.fold-btn .eyebrow{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dock-panel-head .eyebrow{padding:0}.dock-badge{background:var(--deleted);min-width:16px;color:var(--accent-fg);text-align:center;border-radius:999px;padding:0 5px;font-size:10px;font-weight:700;line-height:16px}.dock-panel-body{flex:1;min-height:0;overflow:auto}.dock-split{cursor:row-resize;flex:none;place-items:center;height:10px;display:grid}.dock-split.fixed{cursor:default}.dock-split:after{content:"";background:var(--border);opacity:0;border-radius:2px;width:32px;height:3px;transition:opacity .15s}.dock-split:not(.fixed):hover:after{opacity:1}.panel-menu{position:relative}.panel-menu-pop{flex-direction:column;gap:2px;min-width:140px;margin-top:4px;padding:6px;display:flex;top:100%;right:0}.popover.panel-menu-pop button{text-align:left;border-radius:8px;padding:7px 10px;font-size:12px}.popover.panel-menu-pop button:hover{background:var(--panel-2)}.panels-pop{flex-direction:column;gap:10px;width:280px;padding:14px 16px 12px;display:flex;top:56px;right:16px}.command{z-index:12;flex-direction:column;gap:6px;width:min(640px,100% - 460px);min-width:0;display:flex;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.command.folded{align-items:center;width:auto}.command-fab{border:1px solid var(--border);background:var(--accent);width:40px;height:40px;color:var(--accent-fg);box-shadow:var(--shadow-lg);cursor:pointer;border-radius:999px;place-items:center;display:grid}.command-fab:hover{transform:scale(1.06)}.command-bar{border:1px solid var(--border);background:var(--panel);height:36px;color:var(--muted);box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:8px;padding:0 10px 0 14px;display:flex}.command-bar:focus-within{border-color:var(--sage)}.command-bar input{min-width:0;color:var(--fg);font:inherit;background:0 0;border:0;outline:0;flex:1}.command-bar input::placeholder{color:var(--faint);text-overflow:ellipsis;overflow:hidden}.command-bar kbd{border:1px solid var(--border);color:var(--faint);border-radius:6px;padding:0 6px;font-size:11px}.command-progress{background:var(--panel);max-width:100%;box-shadow:var(--shadow);color:var(--muted);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;align-self:center;margin:0;padding:4px 12px;font-size:11.5px;animation:.2s fade-in;overflow:hidden}.command-progress.done{color:var(--faint)}@keyframes fade-in{0%{opacity:0}}.inbox-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.inbox-row{border-radius:12px}.inbox-row:hover{background:var(--panel)}.inbox-row.permission{box-shadow:inset 3px 0 0 var(--modified);background:var(--modified-bg)}.inbox-actions{gap:6px;padding:0 12px 9px;display:flex}.inbox-decided{margin-top:10px}.inbox-decided .inbox-list{margin-top:8px}.status-chip{color:var(--muted);background:var(--panel-2);border-radius:999px;padding:1px 8px;font-size:10.5px;font-weight:600}.status-chip.status-proposed{border:1px dashed var(--faint);background:0 0}.status-chip.status-review{background:var(--modified-bg);color:var(--modified)}.status-chip.status-done{background:var(--added-bg);color:var(--added)}.territory-outcome{color:var(--muted);margin:0;font-size:11.5px}.run-row{color:var(--muted);align-items:center;gap:8px;font-size:11.5px;display:flex}.run-status{background:var(--panel-2);border-radius:999px;padding:1px 8px;font-size:10.5px}.run-status.run-running,.run-status.run-starting{color:var(--modified)}.run-status.run-done{color:var(--added)}.run-status.run-failed,.run-status.run-stopped{color:var(--deleted)}.run-cost{font-variant-numeric:tabular-nums}.run-summary{flex-basis:100%}.run-summary p{color:var(--fg);margin:4px 0 0}.rationale{color:var(--fg);margin:8px 0 0;font-size:12px}.reasons li.outside-reason{color:var(--deleted)}.block.in-territory.territory-proposed{outline-style:dashed}.block.shelf-node{border:1px dashed var(--group-border);color:var(--muted);cursor:pointer;justify-content:center;align-items:center;padding:0 10px;font-size:12px;display:flex}.block.shelf-node:hover{border-color:var(--sage);color:var(--fg)}.block.shelf-node.open{justify-content:flex-start;align-items:flex-start;padding:6px}.shelf-grid{flex-wrap:wrap;gap:6px;width:100%;display:flex}.shelf-chip{background:var(--panel-2);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;border-radius:999px;max-width:100px;padding:3px 8px;font-size:11px;overflow:hidden}.activity-bar{border-right:1px solid var(--border);background:var(--bg);flex-direction:column;grid-area:bar;align-items:center;gap:4px;padding-bottom:8px;display:flex}.activity-logo{height:60px;color:var(--accent);place-items:center;display:grid}.activity-btn{width:48px;height:44px;color:var(--faint);cursor:pointer;background:0 0;border:none;place-items:center;transition:color .15s;display:grid;position:relative}.activity-btn:hover{color:var(--fg)}.activity-btn.on{color:var(--accent)}.activity-btn:before{content:"";background:var(--accent);border-radius:0 2px 2px 0;width:2px;transition:transform .18s;position:absolute;top:10px;bottom:10px;left:0;transform:scaleY(0)}.activity-btn.on:before{transform:scaleY(1)}.activity-badge{background:var(--accent);min-width:16px;height:16px;color:var(--accent-fg);text-align:center;border-radius:8px;padding:0 4px;font-size:10px;line-height:16px;position:absolute;top:2px;right:2px}.fold-btn{color:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:0;display:flex}.dock-panel.folded{flex:none}.check{cursor:pointer;align-items:center;gap:8px;font-size:13px;display:flex}.check input{accent-color:var(--accent)}.block.is-territory .kind{display:none}.block.is-group.is-territory{border:1.5px dashed var(--accent);background:color-mix(in srgb, var(--accent) 6%, transparent)}.fold-btn[draggable=true]:active{cursor:grabbing}.drop-zone{z-index:60;border-radius:var(--radius);color:#0000;border:2px dashed #0000;place-items:center;margin:10px;font-size:13px;transition:background .15s,border-color .15s,color .15s;display:grid;position:fixed;top:60px;bottom:0}.drop-left{left:48px}.drop-right{right:0}.drop-zone.over{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 14%, transparent);color:var(--accent)}.territory-row select{border:1px solid var(--border);background:var(--panel-2);height:30px;color:var(--fg);font:inherit;border-radius:8px;padding:0 8px;font-size:12px}@keyframes pop-in{0%{opacity:0;transform:translateY(4px)scale(.98)}}@keyframes unfold{0%{opacity:0;transform:translateY(-4px)}}@keyframes expand-bar{0%{opacity:0;transform:scaleX(.3)}}.popover{animation:.16s ease-out pop-in}.dock-panel{transition:flex .22s;animation:.2s ease-out pop-in}.dock-panel-body{animation:.18s ease-out unfold}.fold-btn svg:first-child{transition:transform .18s}.command:not(.folded) .command-bar{transform-origin:50%;animation:.2s cubic-bezier(.2,.9,.3,1.1) expand-bar}.command-fab{transition:transform .15s,box-shadow .15s}.map-btn,.chip,.btn,.icon-btn{transition:color .15s,background .15s,border-color .15s}.react-flow__node{transition:opacity .2s}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.territory-list li{min-width:0}.danger-pill{border:1px solid var(--deleted);background:var(--deleted-bg);color:var(--deleted);white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:12px}.review-bar{border-top:1px solid var(--border);flex-direction:column;gap:8px;margin-top:10px;padding-top:10px;display:flex}.verdict{font-size:12px;font-weight:600}.verdict.ok{color:var(--added)}.verdict.ask{color:var(--modified)}.review-ask{flex-wrap:wrap;gap:8px;display:flex}.review-ask textarea{border:1px solid var(--border);background:var(--panel-2);color:var(--fg);font:inherit;resize:vertical;border-radius:8px;flex-basis:100%;padding:6px 8px;font-size:12px}
@@ -0,0 +1 @@
1
+ var e=`review`,t=[{nodeId:`src/main.ts#main`,score:.95,reasons:[`package.json bin`,`top-level call main()`]},{nodeId:`src/server/routes.ts#handleCheckout`,score:.6,reasons:[`HTTP route POST /api/checkout`]},{nodeId:`src/checkout.test.ts#testBuy`,score:.3,reasons:[`test entry`]}],n=`acme/shop`,r=JSON.parse('{"nodes":[{"id":"src/main.ts","kind":"file","name":"main.ts","file":"src/main.ts","range":{"startLine":1,"endLine":20},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full"},{"id":"src/store.ts","kind":"file","name":"store.ts","file":"src/store.ts","range":{"startLine":1,"endLine":55},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full"},{"id":"src/products.ts","kind":"file","name":"products.ts","file":"src/products.ts","range":{"startLine":1,"endLine":70},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full"},{"id":"src/checkout.ts","kind":"file","name":"checkout.ts","file":"src/checkout.ts","range":{"startLine":1,"endLine":90},"doc":"Checkout flow: turns a cart into a charged Receipt.\\n\\nPricing is per-currency (see ProductCatalog.price); payment goes through a PaymentGateway so tests can swap in a fake.","exported":true,"language":"typescript","tags":[],"mappingStatus":"full"},{"id":"src/utils/format.ts","kind":"file","name":"format.ts","file":"src/utils/format.ts","range":{"startLine":1,"endLine":15},"doc":"Display helpers for money values. Pure functions, no I/O.","exported":true,"language":"typescript","tags":["util"],"mappingStatus":"full"},{"id":"src/checkout.test.ts","kind":"file","name":"checkout.test.ts","file":"src/checkout.test.ts","range":{"startLine":1,"endLine":30},"exported":false,"language":"typescript","tags":["test"],"mappingStatus":"full"},{"id":"src/main.ts#main","kind":"function","name":"main","parentId":"src/main.ts","file":"src/main.ts","range":{"startLine":5,"endLine":18},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"main(): Promise<void>","doc":"Boots the shop: loads the catalog, wires the Stripe gateway and starts the HTTP server on $PORT (default 3000)."},{"id":"src/store.ts#Store","kind":"class","name":"Store","parentId":"src/store.ts","file":"src/store.ts","range":{"startLine":3,"endLine":44},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"class Store","doc":"In-memory cart for a single session.\\n\\nNot thread-safe; one Store per request handler."},{"id":"src/store.ts#Store.addToCart","kind":"method","name":"addToCart","parentId":"src/store.ts#Store","file":"src/store.ts","range":{"startLine":10,"endLine":22},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"addToCart(productId: string, qty: number): void"},{"id":"src/store.ts#Store.getCart","kind":"method","name":"getCart","parentId":"src/store.ts#Store","file":"src/store.ts","range":{"startLine":24,"endLine":30},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"getCart(): CartLine[]"},{"id":"src/products.ts#Product","kind":"interface","name":"Product","parentId":"src/products.ts","file":"src/products.ts","range":{"startLine":1,"endLine":6},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full"},{"id":"src/products.ts#ProductCatalog","kind":"class","name":"ProductCatalog","parentId":"src/products.ts","file":"src/products.ts","range":{"startLine":8,"endLine":58},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"class ProductCatalog"},{"id":"src/products.ts#ProductCatalog.find","kind":"method","name":"find","parentId":"src/products.ts#ProductCatalog","file":"src/products.ts","range":{"startLine":12,"endLine":20},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"find(id: string): Product | undefined"},{"id":"src/products.ts#ProductCatalog.price","kind":"method","name":"price","parentId":"src/products.ts#ProductCatalog","file":"src/products.ts","range":{"startLine":22,"endLine":34},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"price(id: string, currency: Currency): Money","doc":"Price of one unit of a product in the given currency.\\n\\n@param id - product id, as in Product.id\\n@param currency - target currency; must have an exchange rate loaded\\n@returns integer cents in `currency`\\n@throws if the product or the exchange rate is unknown"},{"id":"src/checkout.ts#PaymentGateway","kind":"interface","name":"PaymentGateway","parentId":"src/checkout.ts","file":"src/checkout.ts","range":{"startLine":3,"endLine":6},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full"},{"id":"src/checkout.ts#StripeGateway","kind":"class","name":"StripeGateway","parentId":"src/checkout.ts","file":"src/checkout.ts","range":{"startLine":8,"endLine":20},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"class StripeGateway implements PaymentGateway"},{"id":"src/checkout.ts#Checkout","kind":"class","name":"Checkout","parentId":"src/checkout.ts","file":"src/checkout.ts","range":{"startLine":22,"endLine":88},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"class Checkout"},{"id":"src/checkout.ts#Checkout.buy","kind":"method","name":"buy","parentId":"src/checkout.ts#Checkout","file":"src/checkout.ts","range":{"startLine":30,"endLine":58},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"buy(cart: CartLine[], currency: Currency): Promise<Receipt>","doc":"Charges the cart total and returns a receipt.\\n\\nApplies the session discount code, then charges once via the gateway using an idempotency key derived from the cart, so retries are safe. Clears the cart only after a successful charge.\\n@throws PaymentError when the gateway declines.\\n@throws Error on an empty cart."},{"id":"src/checkout.ts#Checkout.applyDiscount","kind":"method","name":"applyDiscount","parentId":"src/checkout.ts#Checkout","file":"src/checkout.ts","range":{"startLine":60,"endLine":72},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"applyDiscount(total: Money, code?: string): Money","doc":"Applies a discount code to a total. Unknown codes are ignored (with a warning) rather than rejected."},{"id":"src/utils/format.ts#formatPrice","kind":"function","name":"formatPrice","parentId":"src/utils/format.ts","file":"src/utils/format.ts","range":{"startLine":1,"endLine":12},"exported":true,"language":"typescript","tags":["util"],"mappingStatus":"partial","signature":"formatPrice(m: Money): string","doc":"Formats money for display using the currency\'s locale, e.g. { cents: 1999, currency: \\"EUR\\" } → \\"19,99 €\\". Negative amounts are shown in parentheses."},{"id":"src/checkout.test.ts#testBuy","kind":"function","name":"testBuy","parentId":"src/checkout.test.ts","file":"src/checkout.test.ts","range":{"startLine":5,"endLine":28},"exported":false,"language":"typescript","tags":["test"],"mappingStatus":"full","signature":"testBuy(): void"},{"id":"src/products.ts#loadCatalog","kind":"function","name":"loadCatalog","file":"src/products.ts","range":{"startLine":60,"endLine":68},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"loadCatalog(path: string): Promise<ProductCatalog>","parentId":"src/products.ts","doc":"Reads products.json and the exchange-rate table into a ProductCatalog."},{"id":"src/store.ts#openStore","kind":"function","name":"openStore","file":"src/store.ts","range":{"startLine":46,"endLine":53},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"openStore(catalog: ProductCatalog): Store","parentId":"src/store.ts","doc":"Creates the session Store bound to a catalog."},{"id":"src/ui/App.tsx","kind":"file","name":"App.tsx","file":"src/ui/App.tsx","range":{"startLine":1,"endLine":40},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","doc":"Storefront UI: product list, cart and checkout button."},{"id":"src/ui/App.tsx#App","kind":"function","name":"App","file":"src/ui/App.tsx","range":{"startLine":6,"endLine":38},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"App(): JSX.Element","parentId":"src/ui/App.tsx","doc":"Storefront root component; posts the cart to /api/checkout."},{"id":"src/server/routes.ts","kind":"file","name":"routes.ts","file":"src/server/routes.ts","range":{"startLine":1,"endLine":30},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","doc":"HTTP routes for the storefront."},{"id":"src/server/routes.ts#handleCheckout","kind":"function","name":"handleCheckout","file":"src/server/routes.ts","range":{"startLine":5,"endLine":24},"exported":true,"language":"typescript","tags":[],"mappingStatus":"full","signature":"handleCheckout(req: Request): Promise<Response>","parentId":"src/server/routes.ts","doc":"POST /api/checkout: runs Checkout.buy for the posted cart."}],"edges":[{"id":"src/main.ts#main->calls->src/store.ts#Store.addToCart","from":"src/main.ts#main","to":"src/store.ts#Store.addToCart","kind":"calls","evidence":["static"],"confidence":1,"line":9,"inLoop":true},{"id":"src/main.ts#main->calls->src/checkout.ts#Checkout.buy","from":"src/main.ts#main","to":"src/checkout.ts#Checkout.buy","kind":"calls","evidence":["static"],"confidence":1,"line":11},{"id":"src/main.ts->imports->src/store.ts","from":"src/main.ts","to":"src/store.ts","kind":"imports","evidence":["static"],"confidence":1},{"id":"src/main.ts->imports->src/checkout.ts","from":"src/main.ts","to":"src/checkout.ts","kind":"imports","evidence":["static"],"confidence":1},{"id":"src/store.ts#Store.addToCart->calls->src/products.ts#ProductCatalog.find","from":"src/store.ts#Store.addToCart","to":"src/products.ts#ProductCatalog.find","kind":"calls","evidence":["static","semantic"],"confidence":0.95,"line":12},{"id":"src/store.ts#Store.addToCart->calls->src/products.ts#ProductCatalog.price","from":"src/store.ts#Store.addToCart","to":"src/products.ts#ProductCatalog.price","kind":"calls","evidence":["inferred"],"confidence":0.5,"line":15},{"id":"src/store.ts#Store.getCart->references->src/products.ts#Product","from":"src/store.ts#Store.getCart","to":"src/products.ts#Product","kind":"references","evidence":["static"],"confidence":0.9,"line":26},{"id":"src/store.ts->imports->src/products.ts","from":"src/store.ts","to":"src/products.ts","kind":"imports","evidence":["static"],"confidence":1},{"id":"src/products.ts#ProductCatalog.find->references->src/products.ts#Product","from":"src/products.ts#ProductCatalog.find","to":"src/products.ts#Product","kind":"references","evidence":["static"],"confidence":1,"line":14},{"id":"src/products.ts#ProductCatalog.price->calls->src/utils/format.ts#formatPrice","from":"src/products.ts#ProductCatalog.price","to":"src/utils/format.ts#formatPrice","kind":"calls","evidence":["static"],"confidence":1,"line":32},{"id":"src/products.ts->imports->src/utils/format.ts","from":"src/products.ts","to":"src/utils/format.ts","kind":"imports","evidence":["static"],"confidence":1},{"id":"src/checkout.ts#Checkout.buy->calls->src/products.ts#ProductCatalog.price","from":"src/checkout.ts#Checkout.buy","to":"src/products.ts#ProductCatalog.price","kind":"calls","evidence":["static","semantic"],"confidence":0.95,"line":36,"inLoop":true},{"id":"src/checkout.ts#Checkout.buy->calls->src/store.ts#Store.getCart","from":"src/checkout.ts#Checkout.buy","to":"src/store.ts#Store.getCart","kind":"calls","evidence":["semantic"],"confidence":0.85,"line":31},{"id":"src/checkout.ts#Checkout.buy->references->src/checkout.ts#PaymentGateway","from":"src/checkout.ts#Checkout.buy","to":"src/checkout.ts#PaymentGateway","kind":"references","evidence":["inferred"],"confidence":0.7,"line":41},{"id":"src/checkout.ts#Checkout.buy->calls->src/utils/format.ts#formatPrice","from":"src/checkout.ts#Checkout.buy","to":"src/utils/format.ts#formatPrice","kind":"calls","evidence":["inferred"],"confidence":0.6,"line":55},{"id":"src/checkout.ts#StripeGateway->implements->src/checkout.ts#PaymentGateway","from":"src/checkout.ts#StripeGateway","to":"src/checkout.ts#PaymentGateway","kind":"implements","evidence":["static"],"confidence":1},{"id":"src/checkout.ts->imports->src/products.ts","from":"src/checkout.ts","to":"src/products.ts","kind":"imports","evidence":["static"],"confidence":1},{"id":"src/checkout.ts->imports->src/store.ts","from":"src/checkout.ts","to":"src/store.ts","kind":"imports","evidence":["static"],"confidence":1},{"id":"src/checkout.test.ts#testBuy->calls->src/checkout.ts#Checkout.buy","from":"src/checkout.test.ts#testBuy","to":"src/checkout.ts#Checkout.buy","kind":"calls","evidence":["static"],"confidence":1,"line":12},{"id":"src/checkout.test.ts->imports->src/checkout.ts","from":"src/checkout.test.ts","to":"src/checkout.ts","kind":"imports","evidence":["static"],"confidence":1},{"id":"src/checkout.ts#Checkout.buy->calls->src/checkout.ts#Checkout.applyDiscount","from":"src/checkout.ts#Checkout.buy","to":"src/checkout.ts#Checkout.applyDiscount","kind":"calls","evidence":["static"],"confidence":1,"line":39},{"id":"src/checkout.ts#Checkout.applyDiscount->calls->src/products.ts#ProductCatalog.price","from":"src/checkout.ts#Checkout.applyDiscount","to":"src/products.ts#ProductCatalog.price","kind":"calls","evidence":["static","semantic"],"confidence":0.9,"line":64},{"id":"src/main.ts#main->calls->src/products.ts#loadCatalog","from":"src/main.ts#main","to":"src/products.ts#loadCatalog","kind":"calls","evidence":["static"],"confidence":1.0,"line":6},{"id":"src/main.ts#main->calls->src/store.ts#openStore","from":"src/main.ts#main","to":"src/store.ts#openStore","kind":"calls","evidence":["static"],"confidence":1.0,"line":7},{"id":"src/main.ts#main->references->src/ui/App.tsx#App","from":"src/main.ts#main","to":"src/ui/App.tsx#App","kind":"references","evidence":["inferred"],"confidence":0.6,"line":15,"via":"JSX <App>"},{"id":"src/ui/App.tsx#App->calls->src/server/routes.ts#handleCheckout","from":"src/ui/App.tsx#App","to":"src/server/routes.ts#handleCheckout","kind":"calls","evidence":["inferred"],"confidence":0.5,"line":21,"via":"HTTP POST /api/checkout"},{"id":"src/server/routes.ts#handleCheckout->calls->src/checkout.ts#Checkout.buy","from":"src/server/routes.ts#handleCheckout","to":"src/checkout.ts#Checkout.buy","kind":"calls","evidence":["static","semantic"],"confidence":0.95,"line":12},{"id":"src/products.ts#loadCatalog->references->src/products.ts#ProductCatalog","from":"src/products.ts#loadCatalog","to":"src/products.ts#ProductCatalog","kind":"references","evidence":["static"],"confidence":1.0,"line":66}]}'),i=[{id:`src/checkout.ts#Checkout.legacyTotal`,kind:`method`,name:`legacyTotal`,parentId:`src/checkout.ts#Checkout`,file:`src/checkout.ts`,range:{startLine:74,endLine:86},exported:!0,language:`typescript`,tags:[],mappingStatus:`full`,signature:`legacyTotal(cart: CartLine[]): number`,doc:`@deprecated Sums the cart in USD dollars as a float. Use buy(), which prices per currency in integer cents.`}],a={id:`cs-mock-1`,baseRef:`main`,baseSha:`3f9c2a17e0b4`,headRef:`WORKTREE`,blocks:[{nodeId:`src/products.ts#ProductCatalog.price`,changeType:`signature_changed`,edgesAdded:[`src/checkout.ts#Checkout.applyDiscount->calls->src/products.ts#ProductCatalog.price`],edgesRemoved:[`src/checkout.ts#Checkout.legacyTotal->calls->src/products.ts#ProductCatalog.price`],dependents:5,riskScore:82,riskReasons:[`public signature changed`,`5 transitive dependents`,`called with low confidence (0.50) from Store.addToCart`,`outside its assigned territory`],outOfTerritory:!0,annotationViolations:[],review:`pending`,oldSignature:`price(id: string): number`,newSignature:`price(id: string, currency: Currency): Money`,rationale:`Needed the discount logic here too; didn't want to duplicate it in checkout.`},{nodeId:`src/checkout.ts#Checkout.buy`,changeType:`modified`,edgesAdded:[`src/checkout.ts#Checkout.buy->calls->src/checkout.ts#Checkout.applyDiscount`],edgesRemoved:[`src/checkout.ts#Checkout.buy->calls->src/checkout.ts#Checkout.legacyTotal`],dependents:3,riskScore:64,riskReasons:[`called from entry point main()`,`calls changed: +1 / -1`,`no test changed alongside`],outOfTerritory:!1,annotationViolations:[],review:`pending`,rationale:`Switched to the new discount pipeline so totals match the product page.`},{nodeId:`src/checkout.ts#Checkout.legacyTotal`,changeType:`deleted`,edgesAdded:[],edgesRemoved:[`src/checkout.ts#Checkout.buy->calls->src/checkout.ts#Checkout.legacyTotal`,`src/checkout.ts#Checkout.legacyTotal->calls->src/products.ts#ProductCatalog.price`],dependents:0,riskScore:55,riskReasons:[`deleted method had a caller (Checkout.buy)`,`2 edges removed`],outOfTerritory:!1,annotationViolations:[],review:`pending`},{nodeId:`src/checkout.ts#Checkout.applyDiscount`,changeType:`added`,edgesAdded:[`src/checkout.ts#Checkout.applyDiscount->calls->src/products.ts#ProductCatalog.price`],edgesRemoved:[],dependents:2,riskScore:31,riskReasons:[`new public method`,`calls a changed block (ProductCatalog.price)`],outOfTerritory:!1,annotationViolations:[],review:`pending`},{nodeId:`src/utils/format.ts#formatPrice`,changeType:`modified`,edgesAdded:[],edgesRemoved:[],dependents:3,riskScore:18,riskReasons:[`utility with 2 direct callers`],outOfTerritory:!1,annotationViolations:[],review:`pending`}],edgesAdded:[{id:`src/checkout.ts#Checkout.buy->calls->src/checkout.ts#Checkout.applyDiscount`,from:`src/checkout.ts#Checkout.buy`,to:`src/checkout.ts#Checkout.applyDiscount`,kind:`calls`,evidence:[`static`],confidence:1},{id:`src/checkout.ts#Checkout.applyDiscount->calls->src/products.ts#ProductCatalog.price`,from:`src/checkout.ts#Checkout.applyDiscount`,to:`src/products.ts#ProductCatalog.price`,kind:`calls`,evidence:[`static`,`semantic`],confidence:.9}],edgesRemoved:[{id:`src/checkout.ts#Checkout.buy->calls->src/checkout.ts#Checkout.legacyTotal`,from:`src/checkout.ts#Checkout.buy`,to:`src/checkout.ts#Checkout.legacyTotal`,kind:`calls`,evidence:[`static`],confidence:1},{id:`src/checkout.ts#Checkout.legacyTotal->calls->src/products.ts#ProductCatalog.price`,from:`src/checkout.ts#Checkout.legacyTotal`,to:`src/products.ts#ProductCatalog.price`,kind:`calls`,evidence:[`static`,`semantic`],confidence:.95}],createdAt:`2026-10-07T12:00:00Z`,agentId:`claude`},o={"src/products.ts#ProductCatalog.price":0,"src/checkout.ts#Checkout.buy":0,"src/checkout.ts#Checkout.applyDiscount":0,"src/utils/format.ts#formatPrice":0,"src/store.ts#Store.addToCart":1,"src/main.ts#main":1,"src/checkout.test.ts#testBuy":1,"src/main.ts":2,"src/checkout.test.ts":2,"src/store.ts":2},s=`code -g {file}:{line}`,c=[{id:`checkout`,label:`Checkout`,nodeIds:[`src/checkout.ts`],agent:`claude`,note:`the checkout rewrite`,status:`review`}],l=`agent`,u=[{id:`inbox-1`,kind:`permission`,at:173e10,title:`Claude wants to delete src/checkout.ts#legacyTotal`,detail:`Unused after the discount rewrite; 0 callers left.`,agent:`claude`,label:`Claude · checkout`,territoryId:`checkout`,nodeIds:[`src/checkout.ts#Checkout.legacyTotal`],actions:[`approve`,`deny`,`dismiss`],status:`open`},{id:`inbox-2`,kind:`lens`,at:172999999e4,title:`Claude proposes a view: Discount flow`,detail:`Rooted at ProductCatalog.price, following callees only.`,agent:`claude`,label:`Claude · checkout`,nodeIds:[`src/products.ts#ProductCatalog.price`],lens:{name:`discount-flow`,label:`Discount flow`,description:`ProductCatalog.price and what it calls`,mode:`flow`,roots:[`src/products.ts#ProductCatalog.price`],view:{globalDepth:3,direction:`out`,hopKinds:[`calls`]}},actions:[`approve`,`dismiss`],status:`open`},{id:`inbox-3`,kind:`out_of_territory`,at:17299999e5,title:`Claude edited outside Checkout`,detail:`ProductCatalog.price isn't in the checkout territory.`,agent:`claude`,label:`Claude · checkout`,territoryId:`checkout`,nodeIds:[`src/products.ts#ProductCatalog.price`],actions:[`dismiss`],status:`open`},{id:`inbox-4`,kind:`finished`,at:1729999e6,title:`Claude finished the checkout rewrite`,detail:`5 blocks changed, 1 outside the territory.`,agent:`claude`,label:`Claude · checkout`,runId:`run-1`,territoryId:`checkout`,nodeIds:[`src/checkout.ts#Checkout.buy`],actions:[`dismiss`],status:`approved`}],d=[{id:`run-1`,role:`worker`,territoryId:`checkout`,agent:`claude`,label:`Claude · checkout`,status:`done`,startedAt:1729998e6,endedAt:1729999e6,summary:`Replaced the legacy flat discount with ProductCatalog.price's tiered pricing; left legacyTotal in place pending removal.`,costUsd:.42}],f={mode:e,entryPoints:t,repo:n,head:r,deletedNodes:i,changeSet:a,blastRadius:o,editorCommand:s,territories:c,commandBar:l,inbox:u,runs:d};export{o as blastRadius,a as changeSet,l as commandBar,f as default,i as deletedNodes,s as editorCommand,t as entryPoints,r as head,u as inbox,e as mode,n as repo,d as runs,c as territories};
@@ -0,0 +1,127 @@
1
+ import e from"./review-DZrsjPg6.js";var t=/(\/\/.*)|("(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`)|\b(\d[\d_.]*n?)\b|\b(as|async|await|break|case|catch|class|const|continue|default|else|export|extends|false|for|from|function|if|import|in|interface|let|new|null|of|private|return|this|throw|true|try|type|typeof|undefined|void|while)\b/g,n=[`comment`,`string`,`number`,`keyword`];function r(e){return e.map(e=>[...e.matchAll(t)].map(e=>{let t=n[e.slice(1).findIndex(e=>e!==void 0)];return[e.index,e.index+e[0].length,t]}))}var i=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n),a={"head src/products.ts#ProductCatalog.price":{start:22,pre:` }
2
+ `,body:` price(id: string, currency: Currency): Money {
3
+ const product = this.find(id);
4
+ if (!product) {
5
+ throw new Error(\`Unknown product: \${id}\`);
6
+ }
7
+ const rate = this.rates.get(currency);
8
+ if (rate === undefined) {
9
+ throw new Error(\`No exchange rate for \${currency} (loaded: \${[...this.rates.keys()].join(", ")})\`);
10
+ }
11
+ // Prices are stored in USD cents; convert and round half-up.
12
+ const cents = Math.round(product.priceCents * rate);
13
+ return { cents, currency };
14
+ }`,post:`
15
+ listAll(): Product[] {`,changed:[0,...i(5,11)]},"base src/products.ts#ProductCatalog.price":{start:22,pre:` }
16
+ `,body:` price(id: string): number {
17
+ const product = this.find(id);
18
+ if (!product) {
19
+ throw new Error(\`Unknown product: \${id}\`);
20
+ }
21
+ return product.priceCents / 100;
22
+ }`,post:`
23
+ listAll(): Product[] {`,changed:[0,5]},"head src/checkout.ts#Checkout.buy":{start:30,pre:` }
24
+ `,body:` async buy(cart: CartLine[], currency: Currency): Promise<Receipt> {
25
+ if (cart.length === 0) {
26
+ throw new Error("Cannot check out an empty cart");
27
+ }
28
+ let total: Money = { cents: 0, currency };
29
+ for (const line of cart) {
30
+ const unit = this.catalog.price(line.productId, currency);
31
+ total = { cents: total.cents + unit.cents * line.qty, currency };
32
+ }
33
+ total = this.applyDiscount(total, this.discountCode);
34
+
35
+ const charge = await this.gateway.charge({
36
+ amount: total.cents,
37
+ currency: total.currency,
38
+ idempotencyKey: this.idempotencyKey(cart),
39
+ });
40
+ if (charge.status !== "succeeded") {
41
+ throw new PaymentError(charge.failureReason ?? "Payment declined");
42
+ }
43
+
44
+ const receipt: Receipt = {
45
+ id: charge.id,
46
+ lines: cart,
47
+ total,
48
+ paidAt: new Date().toISOString(),
49
+ };
50
+ this.store.clearCart();
51
+ return receipt;
52
+ }`,post:`
53
+ applyDiscount(total: Money, code?: string): Money {`,changed:[...i(4,9),14]},"base src/checkout.ts#Checkout.buy":{start:30,pre:` }
54
+ `,body:` async buy(cart: CartLine[], currency: Currency): Promise<Receipt> {
55
+ if (cart.length === 0) {
56
+ throw new Error("Cannot check out an empty cart");
57
+ }
58
+ const amount = this.legacyTotal(cart);
59
+ const total: Money = { cents: Math.round(amount * 100), currency };
60
+
61
+ const charge = await this.gateway.charge({
62
+ amount: total.cents,
63
+ currency: total.currency,
64
+ });
65
+ if (charge.status !== "succeeded") {
66
+ throw new PaymentError(charge.failureReason ?? "Payment declined");
67
+ }
68
+
69
+ const receipt: Receipt = {
70
+ id: charge.id,
71
+ lines: cart,
72
+ total,
73
+ paidAt: new Date().toISOString(),
74
+ };
75
+ this.store.clearCart();
76
+ return receipt;
77
+ }`,post:`
78
+ legacyTotal(cart: CartLine[]): number {`,changed:[4,5]},"head src/checkout.ts#Checkout.applyDiscount":{start:60,pre:` }
79
+ `,body:` applyDiscount(total: Money, code?: string): Money {
80
+ if (!code) {
81
+ return total;
82
+ }
83
+ const pct = DISCOUNTS[code.toUpperCase()];
84
+ if (pct === undefined) {
85
+ console.warn(\`Ignoring unknown discount code \${code}\`);
86
+ return total;
87
+ }
88
+ // Round in the customer's favour so totals never exceed the quote.
89
+ const cents = Math.floor(total.cents * (1 - pct / 100));
90
+ return { cents, currency: total.currency };
91
+ }`,post:`
92
+ private idempotencyKey(cart: CartLine[]): string {`,changed:i(0,12)},"base src/checkout.ts#Checkout.legacyTotal":{start:74,pre:` }
93
+ `,body:` legacyTotal(cart: CartLine[]): number {
94
+ let sum = 0;
95
+ for (const line of cart) {
96
+ const unit = this.catalog.price(line.productId);
97
+ if (unit === undefined) continue;
98
+ sum += unit * line.qty;
99
+ }
100
+ if (this.discountCode === "WELCOME10") {
101
+ sum *= 0.9;
102
+ }
103
+ // Float dollars; callers multiply by 100 again.
104
+ return Math.round(sum * 100) / 100;
105
+ }`,post:`}`,changed:i(0,12)},"head src/utils/format.ts#formatPrice":{start:1,body:`export function formatPrice(m: Money): string {
106
+ const fmt = new Intl.NumberFormat(LOCALES[m.currency] ?? "en-US", {
107
+ style: "currency",
108
+ currency: m.currency,
109
+ minimumFractionDigits: 2,
110
+ });
111
+ const text = fmt.format(Math.abs(m.cents) / 100);
112
+ if (m.cents < 0) {
113
+ return \`(\${text})\`;
114
+ }
115
+ return text;
116
+ }`,post:`
117
+ const LOCALES: Partial<Record<Currency, string>> = {`,changed:i(1,10)},"base src/utils/format.ts#formatPrice":{start:1,body:`export function formatPrice(m: Money): string {
118
+ const sign = m.cents < 0 ? "-" : "";
119
+ const abs = Math.abs(m.cents);
120
+ const units = Math.floor(abs / 100);
121
+ const cents = String(abs % 100).padStart(2, "0");
122
+ return \`\${sign}\${m.currency} \${units}.\${cents}\`;
123
+ }`,post:``,changed:i(1,5)}},o=e,s=new Map([...o.head.nodes,...o.deletedNodes].map(e=>[e.id,e])),c=e=>e.kind===`function`?`export function ${e.signature??`${e.name}()`}`:e.kind===`method`?` ${e.signature??`${e.name}()`}`:`export ${e.signature??`${e.kind} ${e.name}`}`;function l(e){if(e.kind===`file`){let t=o.head.nodes.filter(t=>t.parentId===e.id).map(e=>`${c(e)} { … }`).join(`
124
+ `);return{start:e.range.startLine,body:t||`// (empty module)`,changed:[]}}let t=e.kind===`method`?` `:``;return{start:e.range.startLine,body:`${c(e)} {\n${t} // …`,changed:[]}}function u(e,t){let n=s.get(e);if(!n)return null;let i=a[`${t} ${e}`]??(t===`head`?l(n):null);if(!i)return null;let o=i.pre?i.pre.split(`
125
+ `):[],c=i.body.split(`
126
+ `),u=a[`${t} ${e}`]?i.start+c.length-1:n.range.endLine,d=[...o,...c,...i.post?i.post.split(`
127
+ `):[]];return{nodeId:e,side:t,file:n.file,startLine:i.start-o.length,lines:d,block:{startLine:i.start,endLine:u},changedLines:i.changed.map(e=>i.start+e),tokens:r(d)}}export{u as mockSource};
@@ -0,0 +1 @@
1
+ function e(e,t){let n=new Map(e.head.nodes.map(e=>[e.id,e])),r=e=>e.tags.some(e=>t.hiddenTags.includes(e)),i=new Map,a=(e,t)=>i.set(e,[...i.get(e)??[],t]);for(let n of e.head.edges)t.hopKinds.includes(n.kind)&&(t.direction!==`in`&&a(n.from,n.to),t.direction!==`out`&&a(n.to,n.from));let o={},s=new Map,c=t.rootNodeIds.filter(e=>n.has(e)).map(e=>[e,t.branchOverrides[e]??t.globalDepth,0]);for(;c.length;){let[e,a,l]=c.shift();if((s.get(e)??-1)>=a&&e in o)continue;s.set(e,a),o[e]=Math.min(o[e]??l,l);let u=t.branchOverrides[e]??a;if(!(u<=0))for(let a of i.get(e)??[]){let e=n.get(a);e&&!r(e)&&c.push([a,t.branchOverrides[a]??u-1,l+1])}}let l=new Set(Object.keys(o));for(let e of[...l])for(let t=n.get(e)?.parentId;t;t=n.get(t)?.parentId)l.add(t);return{nodes:e.head.nodes.filter(e=>l.has(e.id)),edges:e.head.edges.filter(e=>l.has(e.from)&&l.has(e.to)&&t.hopKinds.includes(e.kind)),distance:o}}export{e as mockView};
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Topo review</title>
7
+ <script type="module" crossorigin src="/assets/index-Bx25CC1b.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-CJ5z47qU.css">
9
+ </head>
10
+ <body>
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>