expxagents 0.13.0 → 0.14.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.
- package/assets/core/solution-architect.agent.md +3 -0
- package/dist/core/squad-loader.js +2 -8
- package/dist/dashboard/assets/{BufferResource-D9aUIz5c.js → BufferResource-IVUoAbNS.js} +1 -1
- package/dist/dashboard/assets/{CanvasRenderer-DfAInYD0.js → CanvasRenderer-ZlhtzexK.js} +1 -1
- package/dist/dashboard/assets/{JarvisView-D78mY8i-.js → JarvisView-Bkn01kRk.js} +1 -1
- package/dist/dashboard/assets/{RenderTargetSystem-DZo6ujA0.js → RenderTargetSystem-ukD3tT30.js} +1 -1
- package/dist/dashboard/assets/{WebGLRenderer-BKreDG7Z.js → WebGLRenderer-B0gX63D6.js} +1 -1
- package/dist/dashboard/assets/{WebGPURenderer-DeKuexG2.js → WebGPURenderer-CU_7qyko.js} +1 -1
- package/dist/dashboard/assets/{browserAll-3U5O7dnB.js → browserAll-CHvE8-zd.js} +1 -1
- package/dist/dashboard/assets/index-CV6VSNbn.js +400 -0
- package/dist/dashboard/assets/{index-DHu3wE8e.css → index-ClyttaJh.css} +1 -1
- package/dist/dashboard/assets/{webworkerAll-CBlDUJVW.js → webworkerAll-D1p-kqY5.js} +1 -1
- package/dist/dashboard/index.html +2 -2
- package/dist/data/opensquad.db-shm +0 -0
- package/dist/data/opensquad.db-wal +0 -0
- package/dist/server/api/__tests__/files-routes.test.d.ts +2 -0
- package/dist/server/api/__tests__/files-routes.test.d.ts.map +1 -0
- package/dist/server/api/__tests__/files-routes.test.js +85 -0
- package/dist/server/api/__tests__/files-routes.test.js.map +1 -0
- package/dist/server/api/__tests__/graph-routes.test.d.ts +2 -0
- package/dist/server/api/__tests__/graph-routes.test.d.ts.map +1 -0
- package/dist/server/api/__tests__/graph-routes.test.js +105 -0
- package/dist/server/api/__tests__/graph-routes.test.js.map +1 -0
- package/dist/server/api/__tests__/kanban-routes.test.d.ts +2 -0
- package/dist/server/api/__tests__/kanban-routes.test.d.ts.map +1 -0
- package/dist/server/api/__tests__/kanban-routes.test.js +227 -0
- package/dist/server/api/__tests__/kanban-routes.test.js.map +1 -0
- package/dist/server/api/files-routes.d.ts +5 -0
- package/dist/server/api/files-routes.d.ts.map +1 -0
- package/dist/server/api/files-routes.js +92 -0
- package/dist/server/api/files-routes.js.map +1 -0
- package/dist/server/api/graph-routes.d.ts +24 -0
- package/dist/server/api/graph-routes.d.ts.map +1 -0
- package/dist/server/api/graph-routes.js +189 -0
- package/dist/server/api/graph-routes.js.map +1 -0
- package/dist/server/api/kanban-routes.d.ts +8 -0
- package/dist/server/api/kanban-routes.d.ts.map +1 -0
- package/dist/server/api/kanban-routes.js +104 -0
- package/dist/server/api/kanban-routes.js.map +1 -0
- package/dist/server/app.d.ts.map +1 -1
- package/dist/server/app.js +6 -0
- package/dist/server/app.js.map +1 -1
- package/dist/server/db/migrations.d.ts.map +1 -1
- package/dist/server/db/migrations.js +10 -0
- package/dist/server/db/migrations.js.map +1 -1
- package/dist/server/db/schema.d.ts +1 -1
- package/dist/server/db/schema.d.ts.map +1 -1
- package/dist/server/db/schema.js +17 -0
- package/dist/server/db/schema.js.map +1 -1
- package/dist/server/scheduler/__tests__/scheduler-routes.test.js +65 -0
- package/dist/server/scheduler/__tests__/scheduler-routes.test.js.map +1 -1
- package/dist/server/scheduler/__tests__/scheduler-service.test.js +33 -0
- package/dist/server/scheduler/__tests__/scheduler-service.test.js.map +1 -1
- package/dist/server/scheduler/scheduler-routes.d.ts.map +1 -1
- package/dist/server/scheduler/scheduler-routes.js +44 -0
- package/dist/server/scheduler/scheduler-routes.js.map +1 -1
- package/dist/server/scheduler/scheduler-service.d.ts +8 -0
- package/dist/server/scheduler/scheduler-service.d.ts.map +1 -1
- package/dist/server/scheduler/scheduler-service.js +49 -0
- package/dist/server/scheduler/scheduler-service.js.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard/assets/index-CahtAeF7.js +0 -400
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap";:root{--surface-0: #07080e;--surface-1: #0c0e18;--surface-2: #121425;--surface-3: #1a1d35;--surface-4: #232745;--border-subtle: rgba(100, 120, 200, .08);--border-default: rgba(100, 120, 200, .15);--border-strong: rgba(100, 120, 200, .25);--border-glow: rgba(0, 200, 255, .3);--text-primary: #e8ecf4;--text-secondary: #8b93a8;--text-muted: #555d73;--text-inverse: #07080e;--accent: #00c8ff;--accent-dim: #0090b8;--accent-glow: rgba(0, 200, 255, .15);--accent-glow-strong: rgba(0, 200, 255, .35);--status-active: #00e68a;--status-active-glow: rgba(0, 230, 138, .15);--status-warning: #ffb020;--status-warning-glow: rgba(255, 176, 32, .15);--status-error: #ff4070;--status-error-glow: rgba(255, 64, 112, .15);--status-idle: #555d73;--user-bubble: #1a3a6a;--agent-bubble: var(--surface-3);--font-display: "Outfit", sans-serif;--font-mono: "JetBrains Mono", monospace;--radius-xs: 4px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-xl: 20px;--radius-full: 9999px;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);--shadow-md: 0 4px 16px rgba(0, 0, 0, .5);--shadow-lg: 0 8px 32px rgba(0, 0, 0, .6);--shadow-glow: 0 0 20px rgba(0, 200, 255, .1);--shadow-glow-strong: 0 0 40px rgba(0, 200, 255, .2);--ease-out: cubic-bezier(.16, 1, .3, 1);--ease-spring: cubic-bezier(.34, 1.56, .64, 1);--duration-fast: .15s;--duration-normal: .25s;--duration-slow: .4s;--sp-1: 4px;--sp-2: 8px;--sp-3: 12px;--sp-4: 16px;--sp-5: 20px;--sp-6: 24px;--sp-8: 32px;--sp-10: 40px;--sp-12: 48px;--sidebar-width: 220px;--sidebar-collapsed: 56px;--header-height: 52px;--statusbar-height: 36px}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html{font-size:14px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{font-family:var(--font-display);font-weight:400;background:var(--surface-0);color:var(--text-primary);line-height:1.5;overflow:hidden}code,pre,.mono{font-family:var(--font-mono)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}::selection{background:var(--accent-glow-strong);color:var(--text-primary)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-16px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:translate(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes glow{0%,to{box-shadow:0 0 8px #00c8ff33}50%{box-shadow:0 0 20px #00c8ff66}}@keyframes statusPulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.4);opacity:.6}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes gridMove{0%{background-position:0 0}to{background-position:40px 40px}}.noise-bg:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;opacity:.025;pointer-events:none;z-index:9999;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-repeat:repeat;background-size:256px 256px}.grid-bg{background-image:linear-gradient(rgba(100,120,200,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(100,120,200,.03) 1px,transparent 1px);background-size:40px 40px}.glass{background:#0c0e18b3;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border-subtle)}.glow-border{border:1px solid var(--border-glow);box-shadow:var(--shadow-glow)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-4);font-family:var(--font-display);font-size:.85rem;font-weight:500;border-radius:var(--radius-sm);border:1px solid var(--border-default);background:var(--surface-3);color:var(--text-primary);cursor:pointer;transition:all var(--duration-fast) var(--ease-out);white-space:nowrap}.btn:hover{background:var(--surface-4);border-color:var(--border-strong);transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn-accent{background:var(--accent);color:var(--text-inverse);border-color:var(--accent);font-weight:600}.btn-accent:hover{background:#00d4ff;border-color:#00d4ff;box-shadow:var(--shadow-glow-strong)}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-secondary)}.btn-ghost:hover{background:var(--surface-3);color:var(--text-primary)}.btn-danger{border-color:var(--status-error);color:var(--status-error);background:#ff407014}.btn-danger:hover{background:#ff40702e;box-shadow:0 0 16px #ff407026}.btn-sm{padding:var(--sp-1) var(--sp-3);font-size:.78rem}.input{width:100%;padding:var(--sp-2) var(--sp-3);font-family:var(--font-display);font-size:.9rem;color:var(--text-primary);background:var(--surface-2);border:1px solid var(--border-default);border-radius:var(--radius-sm);transition:border-color var(--duration-fast) var(--ease-out),box-shadow var(--duration-fast) var(--ease-out)}.input::placeholder{color:var(--text-muted)}.input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.card{background:var(--surface-2);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:var(--sp-4);transition:border-color var(--duration-normal) var(--ease-out),box-shadow var(--duration-normal) var(--ease-out)}.card:hover{border-color:var(--border-default)}.card-interactive:hover{border-color:var(--accent-dim);box-shadow:var(--shadow-glow);cursor:pointer}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;border-radius:var(--radius-full);border:1px solid transparent}.stagger-1{animation-delay:50ms}.stagger-2{animation-delay:.1s}.stagger-3{animation-delay:.15s}.stagger-4{animation-delay:.2s}.stagger-5{animation-delay:.25s}.stagger-6{animation-delay:.3s}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.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))}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap";:root{--surface-0: #07080e;--surface-1: #0c0e18;--surface-2: #121425;--surface-3: #1a1d35;--surface-4: #232745;--border-subtle: rgba(100, 120, 200, .08);--border-default: rgba(100, 120, 200, .15);--border-strong: rgba(100, 120, 200, .25);--border-glow: rgba(0, 200, 255, .3);--text-primary: #e8ecf4;--text-secondary: #8b93a8;--text-muted: #555d73;--text-inverse: #07080e;--accent: #00c8ff;--accent-dim: #0090b8;--accent-glow: rgba(0, 200, 255, .15);--accent-glow-strong: rgba(0, 200, 255, .35);--status-active: #00e68a;--status-active-glow: rgba(0, 230, 138, .15);--status-warning: #ffb020;--status-warning-glow: rgba(255, 176, 32, .15);--status-error: #ff4070;--status-error-glow: rgba(255, 64, 112, .15);--status-idle: #555d73;--user-bubble: #1a3a6a;--agent-bubble: var(--surface-3);--font-display: "Outfit", sans-serif;--font-mono: "JetBrains Mono", monospace;--radius-xs: 4px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-xl: 20px;--radius-full: 9999px;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);--shadow-md: 0 4px 16px rgba(0, 0, 0, .5);--shadow-lg: 0 8px 32px rgba(0, 0, 0, .6);--shadow-glow: 0 0 20px rgba(0, 200, 255, .1);--shadow-glow-strong: 0 0 40px rgba(0, 200, 255, .2);--ease-out: cubic-bezier(.16, 1, .3, 1);--ease-spring: cubic-bezier(.34, 1.56, .64, 1);--duration-fast: .15s;--duration-normal: .25s;--duration-slow: .4s;--sp-1: 4px;--sp-2: 8px;--sp-3: 12px;--sp-4: 16px;--sp-5: 20px;--sp-6: 24px;--sp-8: 32px;--sp-10: 40px;--sp-12: 48px;--sidebar-width: 220px;--sidebar-collapsed: 56px;--header-height: 52px;--statusbar-height: 36px}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{font-family:var(--font-display);font-weight:400;background:var(--surface-0);color:var(--text-primary);line-height:1.5;overflow:hidden}code,pre,.mono{font-family:var(--font-mono)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--border-strong)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}::selection{background:var(--accent-glow-strong);color:var(--text-primary)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-16px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:translate(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes glow{0%,to{box-shadow:0 0 8px #00c8ff33}50%{box-shadow:0 0 20px #00c8ff66}}@keyframes statusPulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.4);opacity:.6}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes gridMove{0%{background-position:0 0}to{background-position:40px 40px}}.noise-bg:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;opacity:.025;pointer-events:none;z-index:9999;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-repeat:repeat;background-size:256px 256px}.grid-bg{background-image:linear-gradient(rgba(100,120,200,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(100,120,200,.03) 1px,transparent 1px);background-size:40px 40px}.glass{background:#0c0e18b3;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border-subtle)}.glow-border{border:1px solid var(--border-glow);box-shadow:var(--shadow-glow)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-4);font-family:var(--font-display);font-size:.85rem;font-weight:500;border-radius:var(--radius-sm);border:1px solid var(--border-default);background:var(--surface-3);color:var(--text-primary);cursor:pointer;transition:all var(--duration-fast) var(--ease-out);white-space:nowrap}.btn:hover{background:var(--surface-4);border-color:var(--border-strong);transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn-accent{background:var(--accent);color:var(--text-inverse);border-color:var(--accent);font-weight:600}.btn-accent:hover{background:#00d4ff;border-color:#00d4ff;box-shadow:var(--shadow-glow-strong)}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-secondary)}.btn-ghost:hover{background:var(--surface-3);color:var(--text-primary)}.btn-danger{border-color:var(--status-error);color:var(--status-error);background:#ff407014}.btn-danger:hover{background:#ff40702e;box-shadow:0 0 16px #ff407026}.btn-sm{padding:var(--sp-1) var(--sp-3);font-size:.78rem}.input{width:100%;padding:var(--sp-2) var(--sp-3);font-family:var(--font-display);font-size:.9rem;color:var(--text-primary);background:var(--surface-2);border:1px solid var(--border-default);border-radius:var(--radius-sm);transition:border-color var(--duration-fast) var(--ease-out),box-shadow var(--duration-fast) var(--ease-out)}.input::placeholder{color:var(--text-muted)}.input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.card{background:var(--surface-2);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:var(--sp-4);transition:border-color var(--duration-normal) var(--ease-out),box-shadow var(--duration-normal) var(--ease-out)}.card:hover{border-color:var(--border-default)}.card-interactive:hover{border-color:var(--accent-dim);box-shadow:var(--shadow-glow);cursor:pointer}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;border-radius:var(--radius-full);border:1px solid transparent}.stagger-1{animation-delay:50ms}.stagger-2{animation-delay:.1s}.stagger-3{animation-delay:.15s}.stagger-4{animation-delay:.2s}.stagger-5{animation-delay:.25s}.stagger-6{animation-delay:.3s}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.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))}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a0 as G,a2 as I,a3 as B,k as _,M as k,V as O,L as A,a8 as m,T as v,ar as C,R as E,w as z,a7 as U,t as w}from"./index-
|
|
1
|
+
import{a0 as G,a2 as I,a3 as B,k as _,M as k,V as O,L as A,a8 as m,T as v,ar as C,R as E,w as z,a7 as U,t as w}from"./index-CV6VSNbn.js";var M=`in vec2 aPosition;
|
|
2
2
|
out vec2 vTextureCoord;
|
|
3
3
|
|
|
4
4
|
uniform vec4 uInputSize;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>ExpxAgents — Mission Control</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-CV6VSNbn.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-ClyttaJh.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files-routes.test.d.ts","sourceRoot":"","sources":["../../../src/api/__tests__/files-routes.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
|
|
2
|
+
import { buildApp } from '../../app.js';
|
|
3
|
+
describe('files routes', () => {
|
|
4
|
+
let app;
|
|
5
|
+
let cookie;
|
|
6
|
+
beforeAll(async () => {
|
|
7
|
+
app = await buildApp({ config: { jwtSecret: 'test-secret-files' } });
|
|
8
|
+
await app.ready();
|
|
9
|
+
const loginRes = await app.inject({
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/api/auth/login',
|
|
12
|
+
payload: { username: 'admin', password: 'admin' },
|
|
13
|
+
});
|
|
14
|
+
const cookies = loginRes.cookies;
|
|
15
|
+
const access = cookies.find((c) => c.name === 'access_token');
|
|
16
|
+
const refresh = cookies.find((c) => c.name === 'refresh_token');
|
|
17
|
+
cookie = `access_token=${access.value}; refresh_token=${refresh.value}`;
|
|
18
|
+
});
|
|
19
|
+
afterAll(async () => {
|
|
20
|
+
await app.close();
|
|
21
|
+
});
|
|
22
|
+
it('GET /api/files — returns file list', async () => {
|
|
23
|
+
const res = await app.inject({
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/api/files',
|
|
26
|
+
headers: { cookie },
|
|
27
|
+
});
|
|
28
|
+
expect(res.statusCode).toBe(200);
|
|
29
|
+
const body = res.json();
|
|
30
|
+
expect(body).toBeInstanceOf(Array);
|
|
31
|
+
expect(body.length).toBeGreaterThanOrEqual(1);
|
|
32
|
+
// Each entry should have squad, file, path
|
|
33
|
+
const entry = body[0];
|
|
34
|
+
expect(entry).toHaveProperty('squad');
|
|
35
|
+
expect(entry).toHaveProperty('file');
|
|
36
|
+
expect(entry).toHaveProperty('path');
|
|
37
|
+
});
|
|
38
|
+
it('GET /api/files/:squad/:path — reads a file', async () => {
|
|
39
|
+
const res = await app.inject({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: '/api/files/sample-squad/squad.yaml',
|
|
42
|
+
headers: { cookie },
|
|
43
|
+
});
|
|
44
|
+
expect(res.statusCode).toBe(200);
|
|
45
|
+
const body = res.json();
|
|
46
|
+
expect(body).toHaveProperty('content');
|
|
47
|
+
expect(body.content).toContain('sample-squad');
|
|
48
|
+
});
|
|
49
|
+
it('GET /api/files/:squad/:path — reads memory file', async () => {
|
|
50
|
+
const res = await app.inject({
|
|
51
|
+
method: 'GET',
|
|
52
|
+
url: '/api/files/sample-squad/_memory/memories.md',
|
|
53
|
+
headers: { cookie },
|
|
54
|
+
});
|
|
55
|
+
expect(res.statusCode).toBe(200);
|
|
56
|
+
const body = res.json();
|
|
57
|
+
expect(body).toHaveProperty('content');
|
|
58
|
+
});
|
|
59
|
+
it('returns 404 for non-existent file', async () => {
|
|
60
|
+
const res = await app.inject({
|
|
61
|
+
method: 'GET',
|
|
62
|
+
url: '/api/files/sample-squad/nonexistent.md',
|
|
63
|
+
headers: { cookie },
|
|
64
|
+
});
|
|
65
|
+
expect(res.statusCode).toBe(404);
|
|
66
|
+
});
|
|
67
|
+
it('rejects unauthenticated requests', async () => {
|
|
68
|
+
const res = await app.inject({
|
|
69
|
+
method: 'GET',
|
|
70
|
+
url: '/api/files',
|
|
71
|
+
});
|
|
72
|
+
expect(res.statusCode).toBe(401);
|
|
73
|
+
});
|
|
74
|
+
it('prevents directory traversal', async () => {
|
|
75
|
+
// Fastify normalizes URLs, so ../../ gets resolved before reaching the handler.
|
|
76
|
+
// Either returns 403 (handler catches it) or 404 (route doesn't match).
|
|
77
|
+
const res = await app.inject({
|
|
78
|
+
method: 'GET',
|
|
79
|
+
url: '/api/files/sample-squad/../../package.json',
|
|
80
|
+
headers: { cookie },
|
|
81
|
+
});
|
|
82
|
+
expect([403, 404]).toContain(res.statusCode);
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=files-routes.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files-routes.test.js","sourceRoot":"","sources":["../../../src/api/__tests__/files-routes.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,GAAoB,CAAC;IACzB,IAAI,MAAc,CAAC;IAEnB,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,GAAG,GAAG,MAAM,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;QACrE,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAElB,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC;YAChC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,iBAAiB;YACtB,OAAO,EAAE,EAA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,EAAE,EAAE,MAAM,EAAE;SACpB,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAChD,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC;YAC3B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,YAAY;SAClB,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,gFAAgF;QAChF,wEAAwE;QACxE,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC;YAC3B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4CAA4C;YACjD,OAAO,EAAE,EAAE,MAAM,EAAE;SACpB,CAAC,CAAC;QACH,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-routes.test.d.ts","sourceRoot":"","sources":["../../../src/api/__tests__/graph-routes.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
|
|
2
|
+
import { buildApp } from '../../app.js';
|
|
3
|
+
describe('graph routes', () => {
|
|
4
|
+
let app;
|
|
5
|
+
let cookie;
|
|
6
|
+
beforeAll(async () => {
|
|
7
|
+
app = await buildApp({ config: { jwtSecret: 'test-secret-graph' } });
|
|
8
|
+
await app.ready();
|
|
9
|
+
const loginRes = await app.inject({
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/api/auth/login',
|
|
12
|
+
payload: { username: 'admin', password: 'admin' },
|
|
13
|
+
});
|
|
14
|
+
const cookies = loginRes.cookies;
|
|
15
|
+
const access = cookies.find((c) => c.name === 'access_token');
|
|
16
|
+
const refresh = cookies.find((c) => c.name === 'refresh_token');
|
|
17
|
+
cookie = `access_token=${access.value}; refresh_token=${refresh.value}`;
|
|
18
|
+
});
|
|
19
|
+
afterAll(async () => {
|
|
20
|
+
await app.close();
|
|
21
|
+
});
|
|
22
|
+
it('GET /api/graph — returns graph with nodes and edges', async () => {
|
|
23
|
+
const res = await app.inject({
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/api/graph',
|
|
26
|
+
headers: { cookie },
|
|
27
|
+
});
|
|
28
|
+
expect(res.statusCode).toBe(200);
|
|
29
|
+
const body = res.json();
|
|
30
|
+
expect(body.nodes).toBeInstanceOf(Array);
|
|
31
|
+
expect(body.edges).toBeInstanceOf(Array);
|
|
32
|
+
// Should have at least the sample-squad
|
|
33
|
+
expect(body.nodes.length).toBeGreaterThanOrEqual(1);
|
|
34
|
+
});
|
|
35
|
+
it('GET /api/graph — includes squad nodes', async () => {
|
|
36
|
+
const res = await app.inject({
|
|
37
|
+
method: 'GET',
|
|
38
|
+
url: '/api/graph',
|
|
39
|
+
headers: { cookie },
|
|
40
|
+
});
|
|
41
|
+
const body = res.json();
|
|
42
|
+
const squads = body.nodes.filter((n) => n.type === 'squad');
|
|
43
|
+
expect(squads.length).toBeGreaterThanOrEqual(1);
|
|
44
|
+
const sampleSquad = squads.find((n) => n.id === 'squad:sample-squad');
|
|
45
|
+
expect(sampleSquad).toBeDefined();
|
|
46
|
+
expect(sampleSquad.label).toBe('Sample Squad');
|
|
47
|
+
});
|
|
48
|
+
it('GET /api/graph — includes agent nodes with squad ref', async () => {
|
|
49
|
+
const res = await app.inject({
|
|
50
|
+
method: 'GET',
|
|
51
|
+
url: '/api/graph',
|
|
52
|
+
headers: { cookie },
|
|
53
|
+
});
|
|
54
|
+
const body = res.json();
|
|
55
|
+
const agents = body.nodes.filter((n) => n.type === 'agent');
|
|
56
|
+
expect(agents.length).toBeGreaterThanOrEqual(1);
|
|
57
|
+
const researcher = agents.find((n) => n.id === 'agent:sample-squad/researcher');
|
|
58
|
+
expect(researcher).toBeDefined();
|
|
59
|
+
expect(researcher.squad).toBe('sample-squad');
|
|
60
|
+
});
|
|
61
|
+
it('GET /api/graph — includes contains edges', async () => {
|
|
62
|
+
const res = await app.inject({
|
|
63
|
+
method: 'GET',
|
|
64
|
+
url: '/api/graph',
|
|
65
|
+
headers: { cookie },
|
|
66
|
+
});
|
|
67
|
+
const body = res.json();
|
|
68
|
+
const containsEdges = body.edges.filter((e) => e.type === 'contains');
|
|
69
|
+
expect(containsEdges.length).toBeGreaterThanOrEqual(1);
|
|
70
|
+
const squadToAgent = containsEdges.find((e) => e.source === 'squad:sample-squad' && e.target === 'agent:sample-squad/researcher');
|
|
71
|
+
expect(squadToAgent).toBeDefined();
|
|
72
|
+
});
|
|
73
|
+
it('GET /api/graph — includes pipeline edges for deliverFrom', async () => {
|
|
74
|
+
const res = await app.inject({
|
|
75
|
+
method: 'GET',
|
|
76
|
+
url: '/api/graph',
|
|
77
|
+
headers: { cookie },
|
|
78
|
+
});
|
|
79
|
+
const body = res.json();
|
|
80
|
+
const delivers = body.edges.filter((e) => e.type === 'delivers');
|
|
81
|
+
// sample-squad has deliverFrom: researcher in writer step
|
|
82
|
+
const delivery = delivers.find((e) => e.source === 'agent:sample-squad/researcher' && e.target === 'agent:sample-squad/writer');
|
|
83
|
+
expect(delivery).toBeDefined();
|
|
84
|
+
});
|
|
85
|
+
it('GET /api/graph — includes skill nodes', async () => {
|
|
86
|
+
const res = await app.inject({
|
|
87
|
+
method: 'GET',
|
|
88
|
+
url: '/api/graph',
|
|
89
|
+
headers: { cookie },
|
|
90
|
+
});
|
|
91
|
+
const body = res.json();
|
|
92
|
+
const skills = body.nodes.filter((n) => n.type === 'skill');
|
|
93
|
+
expect(skills.length).toBeGreaterThanOrEqual(1);
|
|
94
|
+
const webSearch = skills.find((n) => n.id === 'skill:web_search');
|
|
95
|
+
expect(webSearch).toBeDefined();
|
|
96
|
+
});
|
|
97
|
+
it('rejects unauthenticated requests', async () => {
|
|
98
|
+
const res = await app.inject({
|
|
99
|
+
method: 'GET',
|
|
100
|
+
url: '/api/graph',
|
|
101
|
+
});
|
|
102
|
+
expect(res.statusCode).toBe(401);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=graph-routes.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-routes.test.js","sourceRoot":"","sources":["../../../src/api/__tests__/graph-routes.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,GAAoB,CAAC;IACzB,IAAI,MAAc,CAAC;IAEnB,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,GAAG,GAAG,MAAM,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAAC;QACrE,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAElB,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC;YAChC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,iBAAiB;YACtB,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;SAClD,CAAC,CAAC;QACH,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAiD,CAAC;QAC3E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,C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/api/__tests__/kanban-routes.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
|
|
2
|
+
import { buildApp } from '../../app.js';
|
|
3
|
+
describe('kanban routes', () => {
|
|
4
|
+
let app;
|
|
5
|
+
let cookie;
|
|
6
|
+
beforeAll(async () => {
|
|
7
|
+
app = await buildApp({ config: { jwtSecret: 'test-secret-kanban' } });
|
|
8
|
+
await app.ready();
|
|
9
|
+
// Clean up any leftover kanban tasks from previous runs
|
|
10
|
+
app.db.prepare('DELETE FROM kanban_tasks').run();
|
|
11
|
+
const loginRes = await app.inject({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
url: '/api/auth/login',
|
|
14
|
+
payload: { username: 'admin', password: 'admin' },
|
|
15
|
+
});
|
|
16
|
+
const cookies = loginRes.cookies;
|
|
17
|
+
const access = cookies.find((c) => c.name === 'access_token');
|
|
18
|
+
const refresh = cookies.find((c) => c.name === 'refresh_token');
|
|
19
|
+
cookie = `access_token=${access.value}; refresh_token=${refresh.value}`;
|
|
20
|
+
});
|
|
21
|
+
afterAll(async () => {
|
|
22
|
+
await app.close();
|
|
23
|
+
});
|
|
24
|
+
it('GET /api/kanban/:squad/tasks — returns empty array initially', async () => {
|
|
25
|
+
const res = await app.inject({
|
|
26
|
+
method: 'GET',
|
|
27
|
+
url: '/api/kanban/test-squad/tasks',
|
|
28
|
+
headers: { cookie },
|
|
29
|
+
});
|
|
30
|
+
expect(res.statusCode).toBe(200);
|
|
31
|
+
expect(res.json()).toEqual([]);
|
|
32
|
+
});
|
|
33
|
+
it('POST /api/kanban/:squad/tasks — creates a task', async () => {
|
|
34
|
+
const res = await app.inject({
|
|
35
|
+
method: 'POST',
|
|
36
|
+
url: '/api/kanban/test-squad/tasks',
|
|
37
|
+
headers: { cookie },
|
|
38
|
+
payload: { title: 'Research competitors', description: 'Analyze top 5' },
|
|
39
|
+
});
|
|
40
|
+
expect(res.statusCode).toBe(201);
|
|
41
|
+
const task = res.json();
|
|
42
|
+
expect(task.title).toBe('Research competitors');
|
|
43
|
+
expect(task.description).toBe('Analyze top 5');
|
|
44
|
+
expect(task.status).toBe('planned');
|
|
45
|
+
expect(task.squad_code).toBe('test-squad');
|
|
46
|
+
expect(task.id).toBeDefined();
|
|
47
|
+
});
|
|
48
|
+
it('POST rejects empty title', async () => {
|
|
49
|
+
const res = await app.inject({
|
|
50
|
+
method: 'POST',
|
|
51
|
+
url: '/api/kanban/test-squad/tasks',
|
|
52
|
+
headers: { cookie },
|
|
53
|
+
payload: { title: ' ' },
|
|
54
|
+
});
|
|
55
|
+
expect(res.statusCode).toBe(400);
|
|
56
|
+
});
|
|
57
|
+
it('POST rejects invalid status', async () => {
|
|
58
|
+
const res = await app.inject({
|
|
59
|
+
method: 'POST',
|
|
60
|
+
url: '/api/kanban/test-squad/tasks',
|
|
61
|
+
headers: { cookie },
|
|
62
|
+
payload: { title: 'Task', status: 'invalid' },
|
|
63
|
+
});
|
|
64
|
+
expect(res.statusCode).toBe(400);
|
|
65
|
+
});
|
|
66
|
+
it('GET returns created tasks', async () => {
|
|
67
|
+
const res = await app.inject({
|
|
68
|
+
method: 'GET',
|
|
69
|
+
url: '/api/kanban/test-squad/tasks',
|
|
70
|
+
headers: { cookie },
|
|
71
|
+
});
|
|
72
|
+
expect(res.statusCode).toBe(200);
|
|
73
|
+
const tasks = res.json();
|
|
74
|
+
expect(tasks.length).toBeGreaterThanOrEqual(1);
|
|
75
|
+
expect(tasks[0]).toHaveProperty('title');
|
|
76
|
+
expect(tasks[0]).toHaveProperty('status');
|
|
77
|
+
});
|
|
78
|
+
it('PATCH /api/kanban/:squad/tasks/:id — updates status with timestamps', async () => {
|
|
79
|
+
// Create a task
|
|
80
|
+
const createRes = await app.inject({
|
|
81
|
+
method: 'POST',
|
|
82
|
+
url: '/api/kanban/test-squad/tasks',
|
|
83
|
+
headers: { cookie },
|
|
84
|
+
payload: { title: 'Write report' },
|
|
85
|
+
});
|
|
86
|
+
const task = createRes.json();
|
|
87
|
+
expect(task.started_at).toBeNull();
|
|
88
|
+
// Move to executing — started_at should be set
|
|
89
|
+
const execRes = await app.inject({
|
|
90
|
+
method: 'PATCH',
|
|
91
|
+
url: `/api/kanban/test-squad/tasks/${task.id}`,
|
|
92
|
+
headers: { cookie },
|
|
93
|
+
payload: { status: 'executing' },
|
|
94
|
+
});
|
|
95
|
+
expect(execRes.statusCode).toBe(200);
|
|
96
|
+
const executing = execRes.json();
|
|
97
|
+
expect(executing.status).toBe('executing');
|
|
98
|
+
expect(executing.started_at).toBeTruthy();
|
|
99
|
+
expect(executing.finished_at).toBeNull();
|
|
100
|
+
// Move to done — finished_at should be set
|
|
101
|
+
const doneRes = await app.inject({
|
|
102
|
+
method: 'PATCH',
|
|
103
|
+
url: `/api/kanban/test-squad/tasks/${task.id}`,
|
|
104
|
+
headers: { cookie },
|
|
105
|
+
payload: { status: 'done' },
|
|
106
|
+
});
|
|
107
|
+
const done = doneRes.json();
|
|
108
|
+
expect(done.status).toBe('done');
|
|
109
|
+
expect(done.started_at).toBeTruthy();
|
|
110
|
+
expect(done.finished_at).toBeTruthy();
|
|
111
|
+
});
|
|
112
|
+
it('PATCH stores result text', async () => {
|
|
113
|
+
const createRes = await app.inject({
|
|
114
|
+
method: 'POST',
|
|
115
|
+
url: '/api/kanban/test-squad/tasks',
|
|
116
|
+
headers: { cookie },
|
|
117
|
+
payload: { title: 'Task with result' },
|
|
118
|
+
});
|
|
119
|
+
const task = createRes.json();
|
|
120
|
+
const patchRes = await app.inject({
|
|
121
|
+
method: 'PATCH',
|
|
122
|
+
url: `/api/kanban/test-squad/tasks/${task.id}`,
|
|
123
|
+
headers: { cookie },
|
|
124
|
+
payload: { status: 'done', result: 'Report generated with 5 pages' },
|
|
125
|
+
});
|
|
126
|
+
const updated = patchRes.json();
|
|
127
|
+
expect(updated.result).toBe('Report generated with 5 pages');
|
|
128
|
+
});
|
|
129
|
+
it('GET /api/kanban/:squad/tasks/:id — returns single task', async () => {
|
|
130
|
+
const createRes = await app.inject({
|
|
131
|
+
method: 'POST',
|
|
132
|
+
url: '/api/kanban/test-squad/tasks',
|
|
133
|
+
headers: { cookie },
|
|
134
|
+
payload: { title: 'Single fetch task', description: 'Detail test' },
|
|
135
|
+
});
|
|
136
|
+
const task = createRes.json();
|
|
137
|
+
const getRes = await app.inject({
|
|
138
|
+
method: 'GET',
|
|
139
|
+
url: `/api/kanban/test-squad/tasks/${task.id}`,
|
|
140
|
+
headers: { cookie },
|
|
141
|
+
});
|
|
142
|
+
expect(getRes.statusCode).toBe(200);
|
|
143
|
+
const fetched = getRes.json();
|
|
144
|
+
expect(fetched.title).toBe('Single fetch task');
|
|
145
|
+
expect(fetched.description).toBe('Detail test');
|
|
146
|
+
});
|
|
147
|
+
it('PATCH returns 404 for non-existent task', async () => {
|
|
148
|
+
const res = await app.inject({
|
|
149
|
+
method: 'PATCH',
|
|
150
|
+
url: '/api/kanban/test-squad/tasks/nonexistent-id',
|
|
151
|
+
headers: { cookie },
|
|
152
|
+
payload: { status: 'done' },
|
|
153
|
+
});
|
|
154
|
+
expect(res.statusCode).toBe(404);
|
|
155
|
+
});
|
|
156
|
+
it('PATCH rejects invalid status', async () => {
|
|
157
|
+
const createRes = await app.inject({
|
|
158
|
+
method: 'POST',
|
|
159
|
+
url: '/api/kanban/test-squad/tasks',
|
|
160
|
+
headers: { cookie },
|
|
161
|
+
payload: { title: 'Temp task' },
|
|
162
|
+
});
|
|
163
|
+
const task = createRes.json();
|
|
164
|
+
const res = await app.inject({
|
|
165
|
+
method: 'PATCH',
|
|
166
|
+
url: `/api/kanban/test-squad/tasks/${task.id}`,
|
|
167
|
+
headers: { cookie },
|
|
168
|
+
payload: { status: 'invalid' },
|
|
169
|
+
});
|
|
170
|
+
expect(res.statusCode).toBe(400);
|
|
171
|
+
});
|
|
172
|
+
it('DELETE /api/kanban/:squad/tasks/:id — removes a task', async () => {
|
|
173
|
+
const createRes = await app.inject({
|
|
174
|
+
method: 'POST',
|
|
175
|
+
url: '/api/kanban/test-squad/tasks',
|
|
176
|
+
headers: { cookie },
|
|
177
|
+
payload: { title: 'To be deleted' },
|
|
178
|
+
});
|
|
179
|
+
const task = createRes.json();
|
|
180
|
+
const deleteRes = await app.inject({
|
|
181
|
+
method: 'DELETE',
|
|
182
|
+
url: `/api/kanban/test-squad/tasks/${task.id}`,
|
|
183
|
+
headers: { cookie },
|
|
184
|
+
});
|
|
185
|
+
expect(deleteRes.statusCode).toBe(204);
|
|
186
|
+
// Verify it's gone
|
|
187
|
+
const getRes = await app.inject({
|
|
188
|
+
method: 'GET',
|
|
189
|
+
url: '/api/kanban/test-squad/tasks',
|
|
190
|
+
headers: { cookie },
|
|
191
|
+
});
|
|
192
|
+
const tasks = getRes.json();
|
|
193
|
+
expect(tasks.find((t) => t.id === task.id)).toBeUndefined();
|
|
194
|
+
});
|
|
195
|
+
it('DELETE returns 404 for non-existent task', async () => {
|
|
196
|
+
const res = await app.inject({
|
|
197
|
+
method: 'DELETE',
|
|
198
|
+
url: '/api/kanban/test-squad/tasks/nonexistent',
|
|
199
|
+
headers: { cookie },
|
|
200
|
+
});
|
|
201
|
+
expect(res.statusCode).toBe(404);
|
|
202
|
+
});
|
|
203
|
+
it('rejects unauthenticated requests', async () => {
|
|
204
|
+
const res = await app.inject({
|
|
205
|
+
method: 'GET',
|
|
206
|
+
url: '/api/kanban/test-squad/tasks',
|
|
207
|
+
});
|
|
208
|
+
expect(res.statusCode).toBe(401);
|
|
209
|
+
});
|
|
210
|
+
it('tasks are scoped per squad', async () => {
|
|
211
|
+
// Create task in squad-a
|
|
212
|
+
await app.inject({
|
|
213
|
+
method: 'POST',
|
|
214
|
+
url: '/api/kanban/squad-a/tasks',
|
|
215
|
+
headers: { cookie },
|
|
216
|
+
payload: { title: 'Squad A task' },
|
|
217
|
+
});
|
|
218
|
+
// squad-b should have no tasks
|
|
219
|
+
const res = await app.inject({
|
|
220
|
+
method: 'GET',
|
|
221
|
+
url: '/api/kanban/squad-b/tasks',
|
|
222
|
+
headers: { cookie },
|
|
223
|
+
});
|
|
224
|
+
expect(res.json()).toEqual([]);
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
//# sourceMappingURL=kanban-routes.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kanban-routes.test.js","sourceRoot":"","sources":["../../../src/api/__tests__/kanban-routes.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,GAAoB,CAAC;IACzB,IAAI,MAAc,CAAC;IAEnB,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,GAAG,GAAG,MAAM,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,EAAE,CAAC,CAAC;QACtE,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAElB,wDAAwD;QACvD,GAAW,CAAC,EAAE,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,GAAG,EAAE,CAAC;QAE1D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC;YAChC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,iBAAiB;YACtB,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;SAClD,CAAC,CAAC;QACH,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAiD,CAAC;QAC3E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC;QAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA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