Spaces:
Running
Running
ultimate-bankml-ui 0.1.5: only verified answers are read aloud
Browse filesFrom cryptoAGI ultimate-bankml-ui 00a525f (ultimate-input-field 0829c33). An answer whose receipt does not match is shown with 🔇 and not spoken. made with luv.pythai.net
- README.md +1 -1
- dist/assets/{index-DDMZwa9X.js → index-CY_pj4Qw.js} +0 -0
- dist/assets/{index-CD4-FA0k.css → index-Cwmqv8lO.css} +1 -1
- dist/index.html +2 -2
- package.json +1 -1
- src/App.tsx +4 -2
- src/components/OutputField.tsx +5 -0
- src/components/UIFContext.tsx +1 -1
- src/components/UltimateInputField.tsx +12 -4
- src/styles/UltimateInputField.css +2 -0
- src/types.ts +7 -0
README.md
CHANGED
|
@@ -97,7 +97,7 @@ Every command is also a button. Hold a button to move it anywhere on the screen,
|
|
| 97 |
- **bankML on other monitors and devices:**
|
| 98 |
- `spawn notes --screen 2` opens a conversation on monitor 2; run `screens` once to allow it.
|
| 99 |
- `--present` shows it on another display or a cast device.
|
| 100 |
-
- `--speak` reads
|
| 101 |
|
| 102 |
## Source
|
| 103 |
|
|
|
|
| 97 |
- **bankML on other monitors and devices:**
|
| 98 |
- `spawn notes --screen 2` opens a conversation on monitor 2; run `screens` once to allow it.
|
| 99 |
- `--present` shows it on another display or a cast device.
|
| 100 |
+
- `--speak` reads bankML's answers aloud, **only those whose receipt matched**. An answer with ✗ (or no receipt), and every Hugging Face provider answer (never bankML, never a receipt), is shown with 🔇 and not spoken.
|
| 101 |
|
| 102 |
## Source
|
| 103 |
|
dist/assets/{index-DDMZwa9X.js → index-CY_pj4Qw.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/{index-CD4-FA0k.css → index-Cwmqv8lO.css}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
:root{--uif-k-background: 0 0% 100%;--uif-k-foreground: 222.2 84% 4.9%;--uif-k-primary: 222.2 47.4% 11.2%;--uif-k-primary-foreground: 210 40% 98%;--uif-k-secondary: 210 40% 96%;--uif-k-secondary-foreground: 222.2 84% 4.9%;--uif-k-muted: 210 40% 96%;--uif-k-muted-foreground: 215.4 16.3% 46.9%;--uif-k-accent: 210 40% 96%;--uif-k-accent-foreground: 222.2 84% 4.9%;--uif-k-destructive: 0 84.2% 60.2%;--uif-k-destructive-foreground: 210 40% 98%;--uif-k-border: 214.3 31.8% 91.4%;--uif-k-input: 214.3 31.8% 91.4%;--uif-k-ring: 222.2 84% 4.9%}.dark{--uif-k-background: 222.2 84% 4.9%;--uif-k-foreground: 210 40% 98%;--uif-k-primary: 210 40% 98%;--uif-k-primary-foreground: 222.2 47.4% 11.2%;--uif-k-secondary: 217.2 32.6% 17.5%;--uif-k-secondary-foreground: 210 40% 98%;--uif-k-muted: 217.2 32.6% 17.5%;--uif-k-muted-foreground: 215 20.2% 65.1%;--uif-k-accent: 217.2 32.6% 17.5%;--uif-k-accent-foreground: 210 40% 98%;--uif-k-destructive: 0 62.8% 30.6%;--uif-k-destructive-foreground: 210 40% 98%;--uif-k-border: 217.2 32.6% 17.5%;--uif-k-input: 217.2 32.6% 17.5%;--uif-k-ring: 212.7 26.8% 83.9%}@keyframes glow{0%{box-shadow:0 0 5px #4ade8000;transform:scale(1)}50%{box-shadow:0 0 20px #4ade8080,0 0 30px #4ade804d;transform:scale(1.02)}to{box-shadow:0 0 5px #4ade8000;transform:scale(1)}}.animate-glow{animation:glow .5s ease-in-out;box-shadow:0 0 20px #4ade8080}.drag-handle{height:6px;cursor:move;background:transparent;border-radius:3px;margin-bottom:2px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;opacity:0}.drag-handle:hover,.drag-handle.dragging,.drag-handle:focus-visible{background:#9ca3af4d;opacity:1}.drag-handle .drag-indicator{width:20px;height:2px;background:#9ca3af99;border-radius:1px;transition:all .2s ease}.drag-handle:hover .drag-indicator,.drag-handle.dragging .drag-indicator{background:#9ca3afcc;width:24px}.backdrop-blur{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.glass-effect{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.terminal-glass{background:#000c;border:1px solid rgba(16,185,129,.3);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.ultimate-input-field{position:fixed;z-index:1000;display:flex;flex-direction:column;gap:.5rem;padding:.5rem;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.ultimate-textarea{width:100%;resize:none;background:transparent;padding:.5rem 1rem;border:none;outline:none;border-radius:.375rem;transition:all .2s ease;font-family:inherit}.ultimate-textarea:focus{outline:none;box-shadow:0 0 0 2px hsl(var(--uif-k-ring)),0 0 0 4px hsl(var(--uif-k-ring) / .2)}.ultimate-textarea.text-mode{font-family:system-ui,-apple-system,sans-serif;color:hsl(var(--uif-k-foreground))}.ultimate-textarea.text-mode::placeholder{color:hsl(var(--uif-k-muted-foreground))}.ultimate-textarea.terminal-mode{font-family:Courier New,monospace;color:#10b981}.ultimate-textarea.terminal-mode::placeholder{color:#10b98180}.ultimate-textarea.pointer-events-none{pointer-events:none}.ultimate-controls{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem}.ultimate-controls-left{display:flex;align-items:center;gap:.5rem}.ultimate-menu{position:absolute;top:100%;left:0;margin-top:.5rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:.375rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:.5rem;z-index:1001;min-width:150px}.ultimate-menu-content{display:flex;flex-direction:column;gap:.25rem}.ultimate-menu-divider{border-top:1px solid rgba(255,255,255,.2);margin:.25rem 0}.transition-all{transition:all .3s ease-out}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ultimate-input-field{--uif-accent: #6366f1;--uif-term: #10b981;--uif-text: hsl(var(--uif-k-foreground));--uif-dim: hsl(var(--uif-k-muted-foreground));--uif-surface: rgba(17, 24, 39, .92);--uif-line: rgba(148, 163, 184, .25);color:var(--uif-text);box-sizing:border-box}.ultimate-input-field *,.uif-output *,.uif-palette *,.uif-window,.uif-window *,.uif-isolated-bar,.uif-isolated-bar *,.uif-action-floating,.uif-trash,.uif-beacon{box-sizing:border-box}.ultimate-input-field.is-terminal{--uif-text: #d1fae5}.uif-row{flex:1;min-height:0;display:flex;gap:.5rem}.uif-core{flex:1;min-width:0;display:flex;flex-direction:column;gap:.375rem}.uif-modules{display:flex;flex-direction:column;justify-content:center;gap:.375rem;padding:0 .25rem;border-color:var(--uif-line);border-style:solid;border-width:0}.uif-modules-left{border-right-width:1px;padding-right:.5rem}.uif-modules-right{border-left-width:1px;padding-left:.5rem}.uif-prompt{flex:1;min-height:0;display:flex;align-items:flex-start}.uif-prompt .ultimate-textarea{height:100%}.uif-prompt-sigil{font-family:Courier New,monospace;color:var(--uif-term);padding:.5rem 0 0 .5rem;font-weight:700}.ultimate-controls{gap:.5rem;padding:0 .25rem;min-width:0}.ultimate-controls-left{min-width:0;flex:1}.uif-mode-toggle,.uif-windows-toggle,.uif-send{flex:none;width:2rem;height:2rem;padding:0;border-radius:.375rem;border:1px solid var(--uif-line);background:transparent;color:inherit;cursor:pointer}.uif-mode-toggle:hover,.uif-windows-toggle:hover{background:#94a3b826}.uif-mode-toggle.is-terminal{border-color:var(--uif-term)}.uif-send{background:var(--uif-accent);border-color:transparent;color:#fff}.uif-send:disabled{opacity:.4;cursor:not-allowed}.uif-status{font-size:.75rem;color:var(--uif-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40%}.uif-status.is-err{color:#f87171}.ultimate-input-field.is-docked{border-radius:0}.uif-termlog{position:absolute;left:0;right:0;bottom:calc(100% + 6px);max-height:240px;overflow-y:auto;padding:.5rem .75rem;border-radius:.5rem;background:#000000d9;border:1px solid rgba(16,185,129,.3);font:12px/1.5 Courier New,monospace;color:#a7f3d0}.docked-top .uif-termlog{bottom:auto;top:calc(100% + 6px)}.uif-termline{white-space:pre-wrap;word-break:break-word}.uif-termline.is-cmd{color:var(--uif-term)}.uif-termline.is-err{color:#f87171}.uif-termline.is-dim{color:#a7f3d080}.uif-actionbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;min-width:0}.uif-action{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .375rem;border-radius:.375rem;border:1px solid transparent;background:#94a3b81f;color:inherit;font-size:.95rem;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;transition:background .15s ease,border-color .15s ease,transform .15s ease}.uif-action:hover{background:#94a3b840}.uif-action:focus-visible{outline:2px solid var(--uif-accent);outline-offset:1px}.uif-action.is-pressed{border-color:var(--uif-accent);background:#6366f140}.uif-action-icon{line-height:1}.uif-action.is-arranging{cursor:grab;border-color:#6366f199;animation:uif-wiggle .35s ease-in-out infinite alternate}.uif-action.is-arranging:nth-child(2n){animation-delay:-.17s}.uif-action.is-dragged{display:none}.uif-action-slot{display:inline-block;height:2rem;border-radius:.375rem;border:1px dashed var(--uif-accent);background:#6366f11a}.uif-action-ghost{position:fixed;z-index:3000;pointer-events:none;cursor:grabbing;background:#6366f1;color:#fff;box-shadow:0 8px 20px #00000059;transform:scale(1.12)}.uif-action-ghost.is-removing{background:#ef4444;opacity:.8}.uif-action-add{font-weight:700;color:var(--uif-dim);background:transparent;border:1px dashed var(--uif-line)}.uif-action-done{background:var(--uif-accent);color:#fff;font-size:.75rem;padding:0 .625rem}.uif-arrange-hint{position:absolute;left:0;top:calc(100% + 2px);font-size:.7rem;color:var(--uif-dim);white-space:nowrap;pointer-events:none}@keyframes uif-wiggle{0%{transform:rotate(-3deg)}to{transform:rotate(3deg)}}@media (prefers-reduced-motion: reduce){.uif-action.is-arranging{animation:none}}.uif-palette{position:absolute;left:0;bottom:calc(100% + .5rem);z-index:1002;width:300px;max-height:420px;overflow-y:auto;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;border-radius:.5rem;background:#111827f5;border:1px solid rgba(148,163,184,.3);box-shadow:0 12px 30px #0006;color:#e5e7eb;font-size:.8125rem}.docked-top .uif-palette{bottom:auto;top:calc(100% + .5rem)}.uif-palette-row{display:flex;justify-content:space-between;align-items:center}.uif-palette-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.uif-palette-list li{display:flex;align-items:center;gap:.25rem}.uif-palette-item{flex:1;display:flex;align-items:center;gap:.5rem;padding:.3rem .4rem;border:0;border-radius:.25rem;background:transparent;color:inherit;text-align:left;cursor:pointer}.uif-palette-item:hover{background:#94a3b826}.uif-palette-item code{margin-left:auto;color:#94a3b8;font-size:.75rem}.uif-palette-note{margin:0;color:#94a3b8}.uif-palette-form{display:flex;flex-direction:column;gap:.375rem;border-top:1px solid rgba(148,163,184,.2);padding-top:.5rem}.uif-palette-fields{display:flex;gap:.375rem}.uif-input{flex:1;min-width:0;padding:.3rem .45rem;border-radius:.25rem;border:1px solid rgba(148,163,184,.3);background:#0000004d;color:inherit;font:inherit}.uif-input-icon{flex:0 0 2.5rem;text-align:center}.uif-button{padding:.35rem .6rem;border:0;border-radius:.25rem;background:#6366f1;color:#fff;font:inherit;cursor:pointer}.uif-button:disabled{opacity:.45;cursor:not-allowed}.uif-link{border:0;background:none;color:#a5b4fc;cursor:pointer;font:inherit;padding:.15rem .3rem}.uif-output{--uif-color: #22d3ee;position:fixed;z-index:990;display:flex;flex-direction:column;border-radius:.5rem;background:#111827eb;border:1px solid rgba(148,163,184,.25);border-top:3px solid var(--uif-color);box-shadow:0 10px 25px #00000059;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#e5e7eb;font:.875rem/1.45 system-ui,-apple-system,sans-serif}.uif-output.is-active{box-shadow:0 0 0 1px var(--uif-color),0 10px 25px #00000059}.uif-output.is-dragging{opacity:.9}.uif-output-window{position:fixed;top:0;right:0;bottom:0;left:0;border-radius:0}.uif-output-header{display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;cursor:move;-webkit-user-select:none;user-select:none;border-bottom:1px solid rgba(148,163,184,.15);touch-action:none}.uif-output-window .uif-output-header{cursor:default}.uif-output-dot{width:.625rem;height:.625rem;border-radius:50%;flex:none}.uif-output-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uif-output-badge{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:var(--uif-color)}.uif-output-buttons{margin-left:auto;display:flex;gap:.125rem}.uif-output-buttons button{border:0;background:transparent;color:#94a3b8;cursor:pointer;width:1.5rem;height:1.5rem;border-radius:.25rem}.uif-output-buttons button:hover{background:#94a3b833;color:#fff}.uif-output-body{flex:1;overflow-y:auto;padding:.5rem;display:flex;flex-direction:column;gap:.375rem}.uif-output-empty{color:#64748b;padding:.5rem}.uif-msg{white-space:pre-wrap;word-break:break-word;padding:.375rem .5rem;border-radius:.375rem;max-width:92%}.uif-msg-user{align-self:flex-end;background:#6366f14d}.uif-msg-assistant{align-self:flex-start;background:#94a3b81f}.uif-msg-system{align-self:center;color:#94a3b8;font-size:.8rem}.uif-caret{animation:uif-blink 1s steps(1) infinite;color:var(--uif-color)}.uif-flash{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border-radius:inherit;animation:uif-flash 1.2s ease-out}@keyframes uif-flash{0%,40%{box-shadow:inset 0 0 0 3px var(--uif-color),0 0 40px var(--uif-color);background:color-mix(in srgb,var(--uif-color) 18%,transparent)}20%,60%{box-shadow:inset 0 0 0 1px var(--uif-color);background:transparent}to{box-shadow:none;background:transparent}}@keyframes uif-blink{50%{opacity:0}}.uif-tethers{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:980}.uif-tether{fill:none;stroke-width:2;opacity:.75;filter:drop-shadow(0 0 3px currentColor)}.uif-tether.is-remote{opacity:.55;animation:uif-dash 1s linear infinite}@keyframes uif-dash{to{stroke-dashoffset:-12}}.uif-beacon{--uif-color: #22d3ee;position:fixed;z-index:2500;transform:translate(-50%,-50%);display:flex;align-items:center;gap:.375rem;padding:.25rem .5rem .25rem .375rem;border-radius:999px;border:1px solid var(--uif-color);background:#111827eb;color:#e5e7eb;font:600 .75rem system-ui,sans-serif;cursor:pointer;box-shadow:0 0 12px var(--uif-color);animation:uif-pulse 1.6s ease-in-out infinite}.uif-beacon-arrow{color:var(--uif-color);display:inline-block}.uif-beacon-label{max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes uif-pulse{50%{box-shadow:0 0 2px var(--uif-color)}}@media (prefers-reduced-motion: reduce){.uif-beacon,.uif-tether.is-remote,.uif-flash{animation:none}}.uif-corner{--uif-grip: 18px;--uif-grip-color: rgba(99, 102, 241, .9);position:absolute;z-index:10;width:var(--uif-grip);height:var(--uif-grip);touch-action:none;opacity:0;transition:opacity .15s ease}.uif-corner:after{content:"";position:absolute;width:10px;height:10px;border:0 solid var(--uif-grip-color);transition:width .15s ease,height .15s ease,border-color .15s ease}.uif-corner.tl{top:-4px;left:-4px;cursor:nwse-resize}.uif-corner.tr{top:-4px;right:-4px;cursor:nesw-resize}.uif-corner.bl{bottom:-4px;left:-4px;cursor:nesw-resize}.uif-corner.br{bottom:-4px;right:-4px;cursor:nwse-resize}.uif-corner.tl:after{top:3px;left:3px;border-top-width:2px;border-left-width:2px;border-top-left-radius:4px}.uif-corner.tr:after{top:3px;right:3px;border-top-width:2px;border-right-width:2px;border-top-right-radius:4px}.uif-corner.bl:after{bottom:3px;left:3px;border-bottom-width:2px;border-left-width:2px;border-bottom-left-radius:4px}.uif-corner.br:after{bottom:3px;right:3px;border-bottom-width:2px;border-right-width:2px;border-bottom-right-radius:4px}.ultimate-input-field:hover>.uif-corner,.uif-output:hover>.uif-corner,.uif-corner:active{opacity:1}.uif-corner:hover:after,.uif-corner:active:after{width:14px;height:14px;border-color:#818cf8}.uif-output>.uif-corner{--uif-grip-color: var(--uif-color)}@media (pointer: coarse){.uif-corner{--uif-grip: 28px;opacity:.8}}.drag-handle:focus-visible,.uif-output-header:focus-visible{outline:2px solid #818cf8;outline-offset:-2px}.uif-output-rename{flex:1;min-width:0;padding:.1rem .3rem;border:1px solid var(--uif-color);border-radius:.25rem;background:#00000059;color:inherit;font:inherit;font-weight:600}.uif-output-reply{display:flex;gap:.25rem;padding:.375rem;border-top:1px solid rgba(148,163,184,.15)}.uif-output-reply-input{flex:1;min-width:0;padding:.3rem .5rem;border:1px solid rgba(148,163,184,.25);border-radius:.375rem;background:#0000004d;color:inherit;font:inherit}.uif-output-reply-input:focus{outline:none;border-color:var(--uif-color)}.uif-output-reply button{flex:none;width:2rem;border:0;border-radius:.375rem;background:var(--uif-color);color:#0b1120;cursor:pointer}.uif-output-reply button:disabled{opacity:.35;cursor:not-allowed}.uif-action-floating{position:fixed;width:36px;height:36px;color:#e5e7eb;background:#111827e6;border:1px solid rgba(148,163,184,.35);box-shadow:0 6px 16px #00000059;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.uif-action-floating:hover{background:#1e293bf2}.uif-action-floating.is-moving{cursor:grabbing;transform:scale(1.12);transition:none;animation:none}.uif-action-floating.is-removing{background:#ef4444}.uif-action-floating.is-docking,.uif-action-floating.is-pressed{border-color:#6366f1}.uif-action-ghost.is-placing{background:#4f46e5;opacity:.9}.uif-actionbar.is-drop-target{outline:2px dashed #6366f1;outline-offset:3px;border-radius:.375rem}.uif-trash{position:fixed;top:12px;left:50%;transform:translate(-50%);padding:.6rem 1.1rem;border-radius:999px;border:1px dashed rgba(248,113,113,.7);background:#111827eb;color:#fca5a5;font:600 .8125rem system-ui,sans-serif;box-shadow:0 8px 20px #00000059;transition:background .15s ease,transform .15s ease}.uif-trash.is-hot{background:#ef4444;color:#fff;transform:translate(-50%) scale(1.08)}.uif-palette-layout{display:flex;flex-direction:column;gap:.375rem}.uif-palette-active{color:#94a3b8;font-size:.75rem}.uif-palette-list li.is-active .uif-palette-item{color:#a5b4fc}.uif-button.is-quiet{background:#94a3b826;color:#e5e7eb;flex:1}.uif-palette-note.is-error{color:#f87171}.uif-palette-tabs{display:flex;gap:.25rem;border-bottom:1px solid rgba(148,163,184,.2);padding-bottom:.375rem}.uif-palette-tab{flex:1;padding:.3rem .4rem;border:0;border-radius:.25rem;background:transparent;color:#94a3b8;font:inherit;font-weight:600;cursor:pointer}.uif-palette-tab:hover{background:#94a3b81f;color:#e5e7eb}.uif-palette-tab.is-active{background:#6366f140;color:#e5e7eb}.uif-palette-panel{display:flex;flex-direction:column;gap:.5rem}.uif-palette-panel .uif-palette-form{border-top:0;padding-top:0}.uif-windows-menu{position:relative;flex:none}.uif-windows-toggle.is-open{border-color:#6366f1;background:#6366f133}.uif-windows-list{position:absolute;left:0;bottom:calc(100% + .5rem);z-index:1002;min-width:260px;padding:.375rem;display:flex;flex-direction:column;gap:2px;border-radius:.5rem;background:#111827f5;border:1px solid rgba(148,163,184,.3);box-shadow:0 12px 30px #0006;color:#e5e7eb;font:.8125rem system-ui,sans-serif}.docked-top .uif-windows-list{bottom:auto;top:calc(100% + .5rem)}.uif-windows-item{display:grid;grid-template-columns:1.25rem auto 1fr .75rem;align-items:center;gap:.5rem;padding:.4rem .5rem;border:0;border-radius:.3rem;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.uif-windows-item:hover,.uif-windows-item:focus-visible{background:#94a3b826;outline:none}.uif-windows-file{font-family:ui-monospace,monospace;font-weight:600}.uif-windows-detail{color:#94a3b8;font-size:.75rem;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uif-windows-check{color:#818cf8;font-size:.6rem}.uif-window{position:fixed;display:flex;flex-direction:column;border-radius:.5rem;background:#0f172af2;border:1px solid rgba(148,163,184,.3);box-shadow:0 16px 40px #00000073;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#e5e7eb;font:.8125rem/1.45 system-ui,-apple-system,sans-serif}.uif-window.is-dragging{opacity:.92}.uif-window:hover>.uif-corner,.uif-window>.uif-corner:active{opacity:1}.uif-window-title{display:flex;align-items:center;gap:.5rem;padding:.45rem .5rem .45rem .65rem;border-bottom:1px solid rgba(148,163,184,.18);cursor:move;-webkit-user-select:none;user-select:none;touch-action:none}.uif-window-title:focus-visible{outline:2px solid #818cf8;outline-offset:-2px}.uif-window-icon{color:#a5b4fc}.uif-window-name{font-family:ui-monospace,monospace;font-weight:700}.uif-window-summary{color:#94a3b8;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.uif-window-tools{display:flex;gap:.125rem}.uif-window-tools button{width:1.6rem;height:1.6rem;border:0;border-radius:.25rem;background:transparent;color:#94a3b8;cursor:pointer}.uif-window-tools button:hover{background:#94a3b833;color:#fff}.uif-window-body{flex:1;min-height:0;overflow:auto;padding:.6rem;display:flex;flex-direction:column;gap:.5rem}.uif-window-stack{display:flex;flex-direction:column;gap:.5rem;flex:1;min-height:0}.uif-window-row{display:flex;gap:.375rem;align-items:center}.uif-window-row.is-end{justify-content:flex-end}.uif-window-row.is-end .uif-window-hint{margin-right:auto}.uif-window-empty{color:#64748b;margin:.25rem 0}.uif-window-hint{color:#94a3b8;font-size:.75rem;margin:0}.uif-window-note{margin:0;font-size:.75rem;color:#a7f3d0}.uif-window-note.is-error,.uif-window-hint .is-error{color:#f87171}.uif-window-text{flex:1;min-height:6rem;resize:none;font:inherit;line-height:1.5}.uif-window-text.is-code{font-family:ui-monospace,monospace;font-size:.75rem}.uif-window-text.is-invalid{border-color:#f87171}.uif-window-preview{margin:0;max-height:10rem;overflow:auto;padding:.5rem;border-radius:.375rem;background:#00000059;white-space:pre-wrap;font:.72rem/1.45 ui-monospace,monospace;color:#cbd5e1}.uif-window-choice{border:1px solid rgba(148,163,184,.2);border-radius:.375rem;padding:.35rem .6rem;display:flex;gap:1rem;flex-wrap:wrap}.uif-window-choice legend{color:#94a3b8;font-size:.72rem;padding:0 .25rem}.uif-window-choice label{display:flex;align-items:center;gap:.3rem;cursor:pointer}.uif-window-commit{color:#94a3b8;font-size:.72rem;border-top:1px solid rgba(148,163,184,.15);padding-top:.4rem}.uif-window-commit code{color:#cbd5e1}.uif-link.is-left{align-self:flex-start;padding-left:0}.uif-button.is-danger{background:#dc2626;color:#fff}.uif-history{list-style:none;margin:0;padding:0;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem}.uif-history-item{display:flex;flex-direction:column;gap:.25rem}.uif-history-meta{color:#64748b;font-size:.7rem}.uif-history-receipt{color:#86efac;cursor:help}.uif-memory{list-style:none;margin:0;padding:0;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.3rem}.uif-memory-item{display:flex;align-items:flex-start;gap:.4rem;padding:.35rem .45rem;border-radius:.3rem;background:#94a3b814}.uif-memory-kind{color:#a5b4fc;flex:none}.uif-memory-text{flex:1;white-space:pre-wrap;word-break:break-word}.uif-persona-card{padding:.5rem .6rem;border-radius:.375rem;background:#6366f11f;border:1px solid rgba(99,102,241,.3)}.uif-persona-card p{margin:.25rem 0 0}.uif-persona-role{margin-left:.5rem;color:#a5b4fc;font-size:.75rem}.uif-persona-line{color:#cbd5e1;font-size:.75rem}.uif-model-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem .6rem}.uif-model-grid label{display:flex;flex-direction:column;gap:.2rem;color:#94a3b8;font-size:.72rem;font-family:ui-monospace,monospace}.uif-model-grid label.uif-model-pin{flex-direction:row;align-items:center;gap:.35rem;align-self:end}.uif-msg-row{display:flex;align-items:flex-end;gap:.25rem;align-self:flex-start;max-width:92%}.uif-msg-row>.uif-msg{max-width:100%}.uif-msg-keep{flex:none;border:0;background:none;color:#64748b;cursor:pointer;font-size:.8rem;opacity:0;transition:opacity .15s ease}.uif-msg-row:hover .uif-msg-keep,.uif-msg-keep:focus-visible,.uif-msg-keep.is-kept{opacity:1}.uif-msg-keep:hover{color:#a5b4fc}.uif-msg-keep.is-kept{color:#818cf8;cursor:default}@media (pointer: coarse){.uif-msg-keep{opacity:.7}}.ultimate-input-field{--uif-bar-h: 2.25rem}.is-stacked .uif-prompt{min-height:var(--uif-bar-h)}.is-stacked .uif-prompt .ultimate-textarea{min-height:var(--uif-bar-h);padding-top:.4rem;padding-bottom:.4rem}.ultimate-controls{min-height:var(--uif-bar-h);flex:none}.uif-actionbar{flex-wrap:nowrap;min-width:0}.uif-actionbar-items{display:flex;align-items:center;gap:.25rem;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior:contain}.uif-actionbar-items>*{flex:none}.uif-bar-slot{display:flex;min-width:0;flex:1}.is-sideways .uif-core{flex-direction:row;align-items:center}.is-sideways .uif-prompt{flex:1 1 40%;min-width:7rem;min-height:var(--uif-bar-h);height:var(--uif-bar-h);align-self:center}.is-sideways .uif-prompt .ultimate-textarea{height:var(--uif-bar-h);padding:.45rem .75rem;white-space:nowrap;overflow:hidden}.is-sideways .ultimate-controls{flex:0 1 auto;max-width:60%}.is-sideways .drag-handle{height:4px;margin-bottom:0}.is-sideways .uif-modules{display:none}.uif-bar-grip{flex:none;width:1.1rem;height:var(--uif-bar-h, 2.25rem);padding:0;border:0;border-radius:.25rem;background:transparent;color:var(--uif-dim, #94a3b8);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.uif-bar-grip:hover,.uif-bar-grip:focus-visible{background:#94a3b826;color:#e5e7eb;outline:none}.uif-bar-grip.is-dragging{cursor:grabbing}.uif-bar-ghost{position:fixed;z-index:3000;height:2.25rem;display:flex;align-items:center;padding:0 .75rem;border:2px dashed #6366f1;border-radius:.5rem;background:#6366f126;color:#c7d2fe;font:600 .75rem system-ui,sans-serif;pointer-events:none}.uif-isolated-bar{position:fixed;display:flex;align-items:center;gap:.25rem;padding:.3rem .4rem;border-radius:.6rem;background:#111827f0;border:1px solid rgba(148,163,184,.3);box-shadow:0 10px 28px #0006;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#e5e7eb;max-width:calc(100vw - 8px)}.uif-isolated-bar.is-dragging{opacity:.85}.uif-isolated-tools{display:flex;align-items:center;gap:.125rem;flex:none}.uif-bar-tool{width:1.6rem;height:1.6rem;border:0;border-radius:.25rem;background:transparent;color:#94a3b8;cursor:pointer}.uif-bar-tool:hover{background:#94a3b833;color:#fff}.uif-isolated-bar .uif-bar-grip{cursor:move;height:1.8rem}.uif-isolated-bar.is-vertical{flex-direction:column;max-height:calc(100vh - 8px);max-width:none}.uif-isolated-bar.is-vertical .uif-isolated-tools,.uif-actionbar.is-vertical{flex-direction:column}.uif-actionbar.is-vertical .uif-actionbar-items{flex-direction:column;overflow-x:hidden;overflow-y:auto;flex:1 1 auto;min-height:0}.uif-isolated-bar.is-vertical>.uif-actionbar{flex:1 1 auto;min-height:0}.uif-actionbar.is-vertical .uif-palette{bottom:auto;top:0;left:calc(100% + .5rem)}.is-handheld{--uif-bar-h: 2.75rem}.is-handheld.docked-bottom,.is-handheld.docked-top{left:0!important;right:0!important;width:auto!important;max-width:none!important;transform:none!important;border-radius:.75rem .75rem 0 0;padding-bottom:max(.5rem,env(safe-area-inset-bottom))}.is-handheld.docked-top{border-radius:0 0 .75rem .75rem;padding-top:max(.5rem,env(safe-area-inset-top))}.is-handheld .ultimate-textarea{font-size:16px}.is-handheld .uif-action,.is-handheld .uif-mode-toggle,.is-handheld .uif-windows-toggle,.is-handheld .uif-send{min-width:2.75rem;height:2.75rem}.is-handheld .uif-bar-grip{width:1.6rem}.is-handheld .uif-palette,.is-handheld .uif-windows-list{position:fixed;left:8px;right:8px;bottom:calc(var(--uif-bar-h) * 2 + 2rem);width:auto}@media (max-width: 640px){.uif-output,.uif-window{max-width:calc(100vw - 16px)}.uif-termlog{max-height:40vh}}.uif-output-buttons button.is-on{color:var(--uif-color)}.ultimate-input-field{container-type:inline-size;container-name:uif}.uif-bar-slot{min-width:4.75rem}@container uif (max-width: 460px){.uif-modules,.uif-status{display:none}}@container uif (max-width: 300px){.uif-windows-toggle{width:1.75rem}}html,body{margin:0;height:100%}body{background:radial-gradient(circle at 30% 15%,#10231f,#0b0f14 70%);color:#e5e7eb;font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.dark{color-scheme:dark}.bk-page{min-height:100vh}.bk-head{display:flex;align-items:baseline;gap:14px;padding:14px clamp(16px,4vw,40px);border-bottom:1px solid #1f2933}.bk-mark{font-weight:650;font-size:19px;letter-spacing:-.01em}.bk-mantra{flex:1;color:#94a3b8;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bk-link{color:#5eead4;font-size:13px;text-decoration:none}.bk-link:hover{text-decoration:underline}.bk-intro{max-width:720px;margin:0 auto;padding:28px 16px 220px;color:#cbd5e1;font-size:15px}.bk-intro h1{font-size:22px;font-weight:600;letter-spacing:-.01em;color:#f1f5f9;margin:0 0 14px}.bk-intro pre{font:12.5px/1.5 ui-monospace,Menlo,Consolas,monospace;background:#111820;border:1px solid #1f2933;border-radius:10px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#a7f3d0}.bk-intro code{color:#a7f3d0}.bk-keys{color:#94a3b8;font-size:14px}.bk-pill{font:600 12px ui-monospace,monospace;color:#cbd5e1;background:none;border:1px solid #334155;border-radius:999px;padding:3px 10px;white-space:nowrap}button.bk-pill{cursor:pointer}.bk-pill.ok{color:#4ade80;border-color:#166534}.bk-pill.bad{color:#f87171;border-color:#7f1d1d}.bk-pill.warn{color:#fbbf24;border-color:#78350f}@media (max-width: 640px){.bk-mantra{display:none}}
|
|
|
|
| 1 |
+
:root{--uif-k-background: 0 0% 100%;--uif-k-foreground: 222.2 84% 4.9%;--uif-k-primary: 222.2 47.4% 11.2%;--uif-k-primary-foreground: 210 40% 98%;--uif-k-secondary: 210 40% 96%;--uif-k-secondary-foreground: 222.2 84% 4.9%;--uif-k-muted: 210 40% 96%;--uif-k-muted-foreground: 215.4 16.3% 46.9%;--uif-k-accent: 210 40% 96%;--uif-k-accent-foreground: 222.2 84% 4.9%;--uif-k-destructive: 0 84.2% 60.2%;--uif-k-destructive-foreground: 210 40% 98%;--uif-k-border: 214.3 31.8% 91.4%;--uif-k-input: 214.3 31.8% 91.4%;--uif-k-ring: 222.2 84% 4.9%}.dark{--uif-k-background: 222.2 84% 4.9%;--uif-k-foreground: 210 40% 98%;--uif-k-primary: 210 40% 98%;--uif-k-primary-foreground: 222.2 47.4% 11.2%;--uif-k-secondary: 217.2 32.6% 17.5%;--uif-k-secondary-foreground: 210 40% 98%;--uif-k-muted: 217.2 32.6% 17.5%;--uif-k-muted-foreground: 215 20.2% 65.1%;--uif-k-accent: 217.2 32.6% 17.5%;--uif-k-accent-foreground: 210 40% 98%;--uif-k-destructive: 0 62.8% 30.6%;--uif-k-destructive-foreground: 210 40% 98%;--uif-k-border: 217.2 32.6% 17.5%;--uif-k-input: 217.2 32.6% 17.5%;--uif-k-ring: 212.7 26.8% 83.9%}@keyframes glow{0%{box-shadow:0 0 5px #4ade8000;transform:scale(1)}50%{box-shadow:0 0 20px #4ade8080,0 0 30px #4ade804d;transform:scale(1.02)}to{box-shadow:0 0 5px #4ade8000;transform:scale(1)}}.animate-glow{animation:glow .5s ease-in-out;box-shadow:0 0 20px #4ade8080}.drag-handle{height:6px;cursor:move;background:transparent;border-radius:3px;margin-bottom:2px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;opacity:0}.drag-handle:hover,.drag-handle.dragging,.drag-handle:focus-visible{background:#9ca3af4d;opacity:1}.drag-handle .drag-indicator{width:20px;height:2px;background:#9ca3af99;border-radius:1px;transition:all .2s ease}.drag-handle:hover .drag-indicator,.drag-handle.dragging .drag-indicator{background:#9ca3afcc;width:24px}.backdrop-blur{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.glass-effect{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.terminal-glass{background:#000c;border:1px solid rgba(16,185,129,.3);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.ultimate-input-field{position:fixed;z-index:1000;display:flex;flex-direction:column;gap:.5rem;padding:.5rem;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.ultimate-textarea{width:100%;resize:none;background:transparent;padding:.5rem 1rem;border:none;outline:none;border-radius:.375rem;transition:all .2s ease;font-family:inherit}.ultimate-textarea:focus{outline:none;box-shadow:0 0 0 2px hsl(var(--uif-k-ring)),0 0 0 4px hsl(var(--uif-k-ring) / .2)}.ultimate-textarea.text-mode{font-family:system-ui,-apple-system,sans-serif;color:hsl(var(--uif-k-foreground))}.ultimate-textarea.text-mode::placeholder{color:hsl(var(--uif-k-muted-foreground))}.ultimate-textarea.terminal-mode{font-family:Courier New,monospace;color:#10b981}.ultimate-textarea.terminal-mode::placeholder{color:#10b98180}.ultimate-textarea.pointer-events-none{pointer-events:none}.ultimate-controls{display:flex;align-items:center;justify-content:space-between;padding:0 .5rem}.ultimate-controls-left{display:flex;align-items:center;gap:.5rem}.ultimate-menu{position:absolute;top:100%;left:0;margin-top:.5rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:.375rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:.5rem;z-index:1001;min-width:150px}.ultimate-menu-content{display:flex;flex-direction:column;gap:.25rem}.ultimate-menu-divider{border-top:1px solid rgba(255,255,255,.2);margin:.25rem 0}.transition-all{transition:all .3s ease-out}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.ultimate-input-field{--uif-accent: #6366f1;--uif-term: #10b981;--uif-text: hsl(var(--uif-k-foreground));--uif-dim: hsl(var(--uif-k-muted-foreground));--uif-surface: rgba(17, 24, 39, .92);--uif-line: rgba(148, 163, 184, .25);color:var(--uif-text);box-sizing:border-box}.ultimate-input-field *,.uif-output *,.uif-palette *,.uif-window,.uif-window *,.uif-isolated-bar,.uif-isolated-bar *,.uif-action-floating,.uif-trash,.uif-beacon{box-sizing:border-box}.ultimate-input-field.is-terminal{--uif-text: #d1fae5}.uif-row{flex:1;min-height:0;display:flex;gap:.5rem}.uif-core{flex:1;min-width:0;display:flex;flex-direction:column;gap:.375rem}.uif-modules{display:flex;flex-direction:column;justify-content:center;gap:.375rem;padding:0 .25rem;border-color:var(--uif-line);border-style:solid;border-width:0}.uif-modules-left{border-right-width:1px;padding-right:.5rem}.uif-modules-right{border-left-width:1px;padding-left:.5rem}.uif-prompt{flex:1;min-height:0;display:flex;align-items:flex-start}.uif-prompt .ultimate-textarea{height:100%}.uif-prompt-sigil{font-family:Courier New,monospace;color:var(--uif-term);padding:.5rem 0 0 .5rem;font-weight:700}.ultimate-controls{gap:.5rem;padding:0 .25rem;min-width:0}.ultimate-controls-left{min-width:0;flex:1}.uif-mode-toggle,.uif-windows-toggle,.uif-send{flex:none;width:2rem;height:2rem;padding:0;border-radius:.375rem;border:1px solid var(--uif-line);background:transparent;color:inherit;cursor:pointer}.uif-mode-toggle:hover,.uif-windows-toggle:hover{background:#94a3b826}.uif-mode-toggle.is-terminal{border-color:var(--uif-term)}.uif-send{background:var(--uif-accent);border-color:transparent;color:#fff}.uif-send:disabled{opacity:.4;cursor:not-allowed}.uif-status{font-size:.75rem;color:var(--uif-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40%}.uif-status.is-err{color:#f87171}.ultimate-input-field.is-docked{border-radius:0}.uif-termlog{position:absolute;left:0;right:0;bottom:calc(100% + 6px);max-height:240px;overflow-y:auto;padding:.5rem .75rem;border-radius:.5rem;background:#000000d9;border:1px solid rgba(16,185,129,.3);font:12px/1.5 Courier New,monospace;color:#a7f3d0}.docked-top .uif-termlog{bottom:auto;top:calc(100% + 6px)}.uif-termline{white-space:pre-wrap;word-break:break-word}.uif-termline.is-cmd{color:var(--uif-term)}.uif-termline.is-err{color:#f87171}.uif-termline.is-dim{color:#a7f3d080}.uif-actionbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;min-width:0}.uif-action{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .375rem;border-radius:.375rem;border:1px solid transparent;background:#94a3b81f;color:inherit;font-size:.95rem;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;transition:background .15s ease,border-color .15s ease,transform .15s ease}.uif-action:hover{background:#94a3b840}.uif-action:focus-visible{outline:2px solid var(--uif-accent);outline-offset:1px}.uif-action.is-pressed{border-color:var(--uif-accent);background:#6366f140}.uif-action-icon{line-height:1}.uif-action.is-arranging{cursor:grab;border-color:#6366f199;animation:uif-wiggle .35s ease-in-out infinite alternate}.uif-action.is-arranging:nth-child(2n){animation-delay:-.17s}.uif-action.is-dragged{display:none}.uif-action-slot{display:inline-block;height:2rem;border-radius:.375rem;border:1px dashed var(--uif-accent);background:#6366f11a}.uif-action-ghost{position:fixed;z-index:3000;pointer-events:none;cursor:grabbing;background:#6366f1;color:#fff;box-shadow:0 8px 20px #00000059;transform:scale(1.12)}.uif-action-ghost.is-removing{background:#ef4444;opacity:.8}.uif-action-add{font-weight:700;color:var(--uif-dim);background:transparent;border:1px dashed var(--uif-line)}.uif-action-done{background:var(--uif-accent);color:#fff;font-size:.75rem;padding:0 .625rem}.uif-arrange-hint{position:absolute;left:0;top:calc(100% + 2px);font-size:.7rem;color:var(--uif-dim);white-space:nowrap;pointer-events:none}@keyframes uif-wiggle{0%{transform:rotate(-3deg)}to{transform:rotate(3deg)}}@media (prefers-reduced-motion: reduce){.uif-action.is-arranging{animation:none}}.uif-palette{position:absolute;left:0;bottom:calc(100% + .5rem);z-index:1002;width:300px;max-height:420px;overflow-y:auto;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;border-radius:.5rem;background:#111827f5;border:1px solid rgba(148,163,184,.3);box-shadow:0 12px 30px #0006;color:#e5e7eb;font-size:.8125rem}.docked-top .uif-palette{bottom:auto;top:calc(100% + .5rem)}.uif-palette-row{display:flex;justify-content:space-between;align-items:center}.uif-palette-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.uif-palette-list li{display:flex;align-items:center;gap:.25rem}.uif-palette-item{flex:1;display:flex;align-items:center;gap:.5rem;padding:.3rem .4rem;border:0;border-radius:.25rem;background:transparent;color:inherit;text-align:left;cursor:pointer}.uif-palette-item:hover{background:#94a3b826}.uif-palette-item code{margin-left:auto;color:#94a3b8;font-size:.75rem}.uif-palette-note{margin:0;color:#94a3b8}.uif-palette-form{display:flex;flex-direction:column;gap:.375rem;border-top:1px solid rgba(148,163,184,.2);padding-top:.5rem}.uif-palette-fields{display:flex;gap:.375rem}.uif-input{flex:1;min-width:0;padding:.3rem .45rem;border-radius:.25rem;border:1px solid rgba(148,163,184,.3);background:#0000004d;color:inherit;font:inherit}.uif-input-icon{flex:0 0 2.5rem;text-align:center}.uif-button{padding:.35rem .6rem;border:0;border-radius:.25rem;background:#6366f1;color:#fff;font:inherit;cursor:pointer}.uif-button:disabled{opacity:.45;cursor:not-allowed}.uif-link{border:0;background:none;color:#a5b4fc;cursor:pointer;font:inherit;padding:.15rem .3rem}.uif-output{--uif-color: #22d3ee;position:fixed;z-index:990;display:flex;flex-direction:column;border-radius:.5rem;background:#111827eb;border:1px solid rgba(148,163,184,.25);border-top:3px solid var(--uif-color);box-shadow:0 10px 25px #00000059;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#e5e7eb;font:.875rem/1.45 system-ui,-apple-system,sans-serif}.uif-output.is-active{box-shadow:0 0 0 1px var(--uif-color),0 10px 25px #00000059}.uif-output.is-dragging{opacity:.9}.uif-output-window{position:fixed;top:0;right:0;bottom:0;left:0;border-radius:0}.uif-output-header{display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;cursor:move;-webkit-user-select:none;user-select:none;border-bottom:1px solid rgba(148,163,184,.15);touch-action:none}.uif-output-window .uif-output-header{cursor:default}.uif-output-dot{width:.625rem;height:.625rem;border-radius:50%;flex:none}.uif-output-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uif-output-badge{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:var(--uif-color)}.uif-output-buttons{margin-left:auto;display:flex;gap:.125rem}.uif-output-buttons button{border:0;background:transparent;color:#94a3b8;cursor:pointer;width:1.5rem;height:1.5rem;border-radius:.25rem}.uif-output-buttons button:hover{background:#94a3b833;color:#fff}.uif-output-body{flex:1;overflow-y:auto;padding:.5rem;display:flex;flex-direction:column;gap:.375rem}.uif-output-empty{color:#64748b;padding:.5rem}.uif-msg{white-space:pre-wrap;word-break:break-word;padding:.375rem .5rem;border-radius:.375rem;max-width:92%}.uif-msg-user{align-self:flex-end;background:#6366f14d}.uif-msg-assistant{align-self:flex-start;background:#94a3b81f}.uif-msg-system{align-self:center;color:#94a3b8;font-size:.8rem}.uif-caret{animation:uif-blink 1s steps(1) infinite;color:var(--uif-color)}.uif-flash{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border-radius:inherit;animation:uif-flash 1.2s ease-out}@keyframes uif-flash{0%,40%{box-shadow:inset 0 0 0 3px var(--uif-color),0 0 40px var(--uif-color);background:color-mix(in srgb,var(--uif-color) 18%,transparent)}20%,60%{box-shadow:inset 0 0 0 1px var(--uif-color);background:transparent}to{box-shadow:none;background:transparent}}@keyframes uif-blink{50%{opacity:0}}.uif-tethers{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:980}.uif-tether{fill:none;stroke-width:2;opacity:.75;filter:drop-shadow(0 0 3px currentColor)}.uif-tether.is-remote{opacity:.55;animation:uif-dash 1s linear infinite}@keyframes uif-dash{to{stroke-dashoffset:-12}}.uif-beacon{--uif-color: #22d3ee;position:fixed;z-index:2500;transform:translate(-50%,-50%);display:flex;align-items:center;gap:.375rem;padding:.25rem .5rem .25rem .375rem;border-radius:999px;border:1px solid var(--uif-color);background:#111827eb;color:#e5e7eb;font:600 .75rem system-ui,sans-serif;cursor:pointer;box-shadow:0 0 12px var(--uif-color);animation:uif-pulse 1.6s ease-in-out infinite}.uif-beacon-arrow{color:var(--uif-color);display:inline-block}.uif-beacon-label{max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes uif-pulse{50%{box-shadow:0 0 2px var(--uif-color)}}@media (prefers-reduced-motion: reduce){.uif-beacon,.uif-tether.is-remote,.uif-flash{animation:none}}.uif-corner{--uif-grip: 18px;--uif-grip-color: rgba(99, 102, 241, .9);position:absolute;z-index:10;width:var(--uif-grip);height:var(--uif-grip);touch-action:none;opacity:0;transition:opacity .15s ease}.uif-corner:after{content:"";position:absolute;width:10px;height:10px;border:0 solid var(--uif-grip-color);transition:width .15s ease,height .15s ease,border-color .15s ease}.uif-corner.tl{top:-4px;left:-4px;cursor:nwse-resize}.uif-corner.tr{top:-4px;right:-4px;cursor:nesw-resize}.uif-corner.bl{bottom:-4px;left:-4px;cursor:nesw-resize}.uif-corner.br{bottom:-4px;right:-4px;cursor:nwse-resize}.uif-corner.tl:after{top:3px;left:3px;border-top-width:2px;border-left-width:2px;border-top-left-radius:4px}.uif-corner.tr:after{top:3px;right:3px;border-top-width:2px;border-right-width:2px;border-top-right-radius:4px}.uif-corner.bl:after{bottom:3px;left:3px;border-bottom-width:2px;border-left-width:2px;border-bottom-left-radius:4px}.uif-corner.br:after{bottom:3px;right:3px;border-bottom-width:2px;border-right-width:2px;border-bottom-right-radius:4px}.ultimate-input-field:hover>.uif-corner,.uif-output:hover>.uif-corner,.uif-corner:active{opacity:1}.uif-corner:hover:after,.uif-corner:active:after{width:14px;height:14px;border-color:#818cf8}.uif-output>.uif-corner{--uif-grip-color: var(--uif-color)}@media (pointer: coarse){.uif-corner{--uif-grip: 28px;opacity:.8}}.drag-handle:focus-visible,.uif-output-header:focus-visible{outline:2px solid #818cf8;outline-offset:-2px}.uif-output-rename{flex:1;min-width:0;padding:.1rem .3rem;border:1px solid var(--uif-color);border-radius:.25rem;background:#00000059;color:inherit;font:inherit;font-weight:600}.uif-output-reply{display:flex;gap:.25rem;padding:.375rem;border-top:1px solid rgba(148,163,184,.15)}.uif-output-reply-input{flex:1;min-width:0;padding:.3rem .5rem;border:1px solid rgba(148,163,184,.25);border-radius:.375rem;background:#0000004d;color:inherit;font:inherit}.uif-output-reply-input:focus{outline:none;border-color:var(--uif-color)}.uif-output-reply button{flex:none;width:2rem;border:0;border-radius:.375rem;background:var(--uif-color);color:#0b1120;cursor:pointer}.uif-output-reply button:disabled{opacity:.35;cursor:not-allowed}.uif-action-floating{position:fixed;width:36px;height:36px;color:#e5e7eb;background:#111827e6;border:1px solid rgba(148,163,184,.35);box-shadow:0 6px 16px #00000059;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.uif-action-floating:hover{background:#1e293bf2}.uif-action-floating.is-moving{cursor:grabbing;transform:scale(1.12);transition:none;animation:none}.uif-action-floating.is-removing{background:#ef4444}.uif-action-floating.is-docking,.uif-action-floating.is-pressed{border-color:#6366f1}.uif-action-ghost.is-placing{background:#4f46e5;opacity:.9}.uif-actionbar.is-drop-target{outline:2px dashed #6366f1;outline-offset:3px;border-radius:.375rem}.uif-trash{position:fixed;top:12px;left:50%;transform:translate(-50%);padding:.6rem 1.1rem;border-radius:999px;border:1px dashed rgba(248,113,113,.7);background:#111827eb;color:#fca5a5;font:600 .8125rem system-ui,sans-serif;box-shadow:0 8px 20px #00000059;transition:background .15s ease,transform .15s ease}.uif-trash.is-hot{background:#ef4444;color:#fff;transform:translate(-50%) scale(1.08)}.uif-palette-layout{display:flex;flex-direction:column;gap:.375rem}.uif-palette-active{color:#94a3b8;font-size:.75rem}.uif-palette-list li.is-active .uif-palette-item{color:#a5b4fc}.uif-button.is-quiet{background:#94a3b826;color:#e5e7eb;flex:1}.uif-palette-note.is-error{color:#f87171}.uif-palette-tabs{display:flex;gap:.25rem;border-bottom:1px solid rgba(148,163,184,.2);padding-bottom:.375rem}.uif-palette-tab{flex:1;padding:.3rem .4rem;border:0;border-radius:.25rem;background:transparent;color:#94a3b8;font:inherit;font-weight:600;cursor:pointer}.uif-palette-tab:hover{background:#94a3b81f;color:#e5e7eb}.uif-palette-tab.is-active{background:#6366f140;color:#e5e7eb}.uif-palette-panel{display:flex;flex-direction:column;gap:.5rem}.uif-palette-panel .uif-palette-form{border-top:0;padding-top:0}.uif-windows-menu{position:relative;flex:none}.uif-windows-toggle.is-open{border-color:#6366f1;background:#6366f133}.uif-windows-list{position:absolute;left:0;bottom:calc(100% + .5rem);z-index:1002;min-width:260px;padding:.375rem;display:flex;flex-direction:column;gap:2px;border-radius:.5rem;background:#111827f5;border:1px solid rgba(148,163,184,.3);box-shadow:0 12px 30px #0006;color:#e5e7eb;font:.8125rem system-ui,sans-serif}.docked-top .uif-windows-list{bottom:auto;top:calc(100% + .5rem)}.uif-windows-item{display:grid;grid-template-columns:1.25rem auto 1fr .75rem;align-items:center;gap:.5rem;padding:.4rem .5rem;border:0;border-radius:.3rem;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.uif-windows-item:hover,.uif-windows-item:focus-visible{background:#94a3b826;outline:none}.uif-windows-file{font-family:ui-monospace,monospace;font-weight:600}.uif-windows-detail{color:#94a3b8;font-size:.75rem;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uif-windows-check{color:#818cf8;font-size:.6rem}.uif-window{position:fixed;display:flex;flex-direction:column;border-radius:.5rem;background:#0f172af2;border:1px solid rgba(148,163,184,.3);box-shadow:0 16px 40px #00000073;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#e5e7eb;font:.8125rem/1.45 system-ui,-apple-system,sans-serif}.uif-window.is-dragging{opacity:.92}.uif-window:hover>.uif-corner,.uif-window>.uif-corner:active{opacity:1}.uif-window-title{display:flex;align-items:center;gap:.5rem;padding:.45rem .5rem .45rem .65rem;border-bottom:1px solid rgba(148,163,184,.18);cursor:move;-webkit-user-select:none;user-select:none;touch-action:none}.uif-window-title:focus-visible{outline:2px solid #818cf8;outline-offset:-2px}.uif-window-icon{color:#a5b4fc}.uif-window-name{font-family:ui-monospace,monospace;font-weight:700}.uif-window-summary{color:#94a3b8;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.uif-window-tools{display:flex;gap:.125rem}.uif-window-tools button{width:1.6rem;height:1.6rem;border:0;border-radius:.25rem;background:transparent;color:#94a3b8;cursor:pointer}.uif-window-tools button:hover{background:#94a3b833;color:#fff}.uif-window-body{flex:1;min-height:0;overflow:auto;padding:.6rem;display:flex;flex-direction:column;gap:.5rem}.uif-window-stack{display:flex;flex-direction:column;gap:.5rem;flex:1;min-height:0}.uif-window-row{display:flex;gap:.375rem;align-items:center}.uif-window-row.is-end{justify-content:flex-end}.uif-window-row.is-end .uif-window-hint{margin-right:auto}.uif-window-empty{color:#64748b;margin:.25rem 0}.uif-window-hint{color:#94a3b8;font-size:.75rem;margin:0}.uif-window-note{margin:0;font-size:.75rem;color:#a7f3d0}.uif-window-note.is-error,.uif-window-hint .is-error{color:#f87171}.uif-window-text{flex:1;min-height:6rem;resize:none;font:inherit;line-height:1.5}.uif-window-text.is-code{font-family:ui-monospace,monospace;font-size:.75rem}.uif-window-text.is-invalid{border-color:#f87171}.uif-window-preview{margin:0;max-height:10rem;overflow:auto;padding:.5rem;border-radius:.375rem;background:#00000059;white-space:pre-wrap;font:.72rem/1.45 ui-monospace,monospace;color:#cbd5e1}.uif-window-choice{border:1px solid rgba(148,163,184,.2);border-radius:.375rem;padding:.35rem .6rem;display:flex;gap:1rem;flex-wrap:wrap}.uif-window-choice legend{color:#94a3b8;font-size:.72rem;padding:0 .25rem}.uif-window-choice label{display:flex;align-items:center;gap:.3rem;cursor:pointer}.uif-window-commit{color:#94a3b8;font-size:.72rem;border-top:1px solid rgba(148,163,184,.15);padding-top:.4rem}.uif-window-commit code{color:#cbd5e1}.uif-link.is-left{align-self:flex-start;padding-left:0}.uif-button.is-danger{background:#dc2626;color:#fff}.uif-history{list-style:none;margin:0;padding:0;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem}.uif-history-item{display:flex;flex-direction:column;gap:.25rem}.uif-history-meta{color:#64748b;font-size:.7rem}.uif-history-receipt{color:#86efac;cursor:help}.uif-memory{list-style:none;margin:0;padding:0;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.3rem}.uif-memory-item{display:flex;align-items:flex-start;gap:.4rem;padding:.35rem .45rem;border-radius:.3rem;background:#94a3b814}.uif-memory-kind{color:#a5b4fc;flex:none}.uif-memory-text{flex:1;white-space:pre-wrap;word-break:break-word}.uif-persona-card{padding:.5rem .6rem;border-radius:.375rem;background:#6366f11f;border:1px solid rgba(99,102,241,.3)}.uif-persona-card p{margin:.25rem 0 0}.uif-persona-role{margin-left:.5rem;color:#a5b4fc;font-size:.75rem}.uif-persona-line{color:#cbd5e1;font-size:.75rem}.uif-model-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem .6rem}.uif-model-grid label{display:flex;flex-direction:column;gap:.2rem;color:#94a3b8;font-size:.72rem;font-family:ui-monospace,monospace}.uif-model-grid label.uif-model-pin{flex-direction:row;align-items:center;gap:.35rem;align-self:end}.uif-msg-row{display:flex;align-items:flex-end;gap:.25rem;align-self:flex-start;max-width:92%}.uif-msg-row>.uif-msg{max-width:100%}.uif-msg-keep{flex:none;border:0;background:none;color:#64748b;cursor:pointer;font-size:.8rem;opacity:0;transition:opacity .15s ease}.uif-msg-row:hover .uif-msg-keep,.uif-msg-keep:focus-visible,.uif-msg-keep.is-kept{opacity:1}.uif-msg-keep:hover{color:#a5b4fc}.uif-msg-keep.is-kept{color:#818cf8;cursor:default}@media (pointer: coarse){.uif-msg-keep{opacity:.7}}.ultimate-input-field{--uif-bar-h: 2.25rem}.is-stacked .uif-prompt{min-height:var(--uif-bar-h)}.is-stacked .uif-prompt .ultimate-textarea{min-height:var(--uif-bar-h);padding-top:.4rem;padding-bottom:.4rem}.ultimate-controls{min-height:var(--uif-bar-h);flex:none}.uif-actionbar{flex-wrap:nowrap;min-width:0}.uif-actionbar-items{display:flex;align-items:center;gap:.25rem;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior:contain}.uif-actionbar-items>*{flex:none}.uif-bar-slot{display:flex;min-width:0;flex:1}.is-sideways .uif-core{flex-direction:row;align-items:center}.is-sideways .uif-prompt{flex:1 1 40%;min-width:7rem;min-height:var(--uif-bar-h);height:var(--uif-bar-h);align-self:center}.is-sideways .uif-prompt .ultimate-textarea{height:var(--uif-bar-h);padding:.45rem .75rem;white-space:nowrap;overflow:hidden}.is-sideways .ultimate-controls{flex:0 1 auto;max-width:60%}.is-sideways .drag-handle{height:4px;margin-bottom:0}.is-sideways .uif-modules{display:none}.uif-bar-grip{flex:none;width:1.1rem;height:var(--uif-bar-h, 2.25rem);padding:0;border:0;border-radius:.25rem;background:transparent;color:var(--uif-dim, #94a3b8);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.uif-bar-grip:hover,.uif-bar-grip:focus-visible{background:#94a3b826;color:#e5e7eb;outline:none}.uif-bar-grip.is-dragging{cursor:grabbing}.uif-bar-ghost{position:fixed;z-index:3000;height:2.25rem;display:flex;align-items:center;padding:0 .75rem;border:2px dashed #6366f1;border-radius:.5rem;background:#6366f126;color:#c7d2fe;font:600 .75rem system-ui,sans-serif;pointer-events:none}.uif-isolated-bar{position:fixed;display:flex;align-items:center;gap:.25rem;padding:.3rem .4rem;border-radius:.6rem;background:#111827f0;border:1px solid rgba(148,163,184,.3);box-shadow:0 10px 28px #0006;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#e5e7eb;max-width:calc(100vw - 8px)}.uif-isolated-bar.is-dragging{opacity:.85}.uif-isolated-tools{display:flex;align-items:center;gap:.125rem;flex:none}.uif-bar-tool{width:1.6rem;height:1.6rem;border:0;border-radius:.25rem;background:transparent;color:#94a3b8;cursor:pointer}.uif-bar-tool:hover{background:#94a3b833;color:#fff}.uif-isolated-bar .uif-bar-grip{cursor:move;height:1.8rem}.uif-isolated-bar.is-vertical{flex-direction:column;max-height:calc(100vh - 8px);max-width:none}.uif-isolated-bar.is-vertical .uif-isolated-tools,.uif-actionbar.is-vertical{flex-direction:column}.uif-actionbar.is-vertical .uif-actionbar-items{flex-direction:column;overflow-x:hidden;overflow-y:auto;flex:1 1 auto;min-height:0}.uif-isolated-bar.is-vertical>.uif-actionbar{flex:1 1 auto;min-height:0}.uif-actionbar.is-vertical .uif-palette{bottom:auto;top:0;left:calc(100% + .5rem)}.is-handheld{--uif-bar-h: 2.75rem}.is-handheld.docked-bottom,.is-handheld.docked-top{left:0!important;right:0!important;width:auto!important;max-width:none!important;transform:none!important;border-radius:.75rem .75rem 0 0;padding-bottom:max(.5rem,env(safe-area-inset-bottom))}.is-handheld.docked-top{border-radius:0 0 .75rem .75rem;padding-top:max(.5rem,env(safe-area-inset-top))}.is-handheld .ultimate-textarea{font-size:16px}.is-handheld .uif-action,.is-handheld .uif-mode-toggle,.is-handheld .uif-windows-toggle,.is-handheld .uif-send{min-width:2.75rem;height:2.75rem}.is-handheld .uif-bar-grip{width:1.6rem}.is-handheld .uif-palette,.is-handheld .uif-windows-list{position:fixed;left:8px;right:8px;bottom:calc(var(--uif-bar-h) * 2 + 2rem);width:auto}@media (max-width: 640px){.uif-output,.uif-window{max-width:calc(100vw - 16px)}.uif-termlog{max-height:40vh}}.uif-output-buttons button.is-on{color:var(--uif-color)}.ultimate-input-field{container-type:inline-size;container-name:uif}.uif-bar-slot{min-width:4.75rem}@container uif (max-width: 460px){.uif-modules,.uif-status{display:none}}@container uif (max-width: 300px){.uif-windows-toggle{width:1.75rem}}.uif-msg-silent{font-size:.75rem;opacity:.7;cursor:help}html,body{margin:0;height:100%}body{background:radial-gradient(circle at 30% 15%,#10231f,#0b0f14 70%);color:#e5e7eb;font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.dark{color-scheme:dark}.bk-page{min-height:100vh}.bk-head{display:flex;align-items:baseline;gap:14px;padding:14px clamp(16px,4vw,40px);border-bottom:1px solid #1f2933}.bk-mark{font-weight:650;font-size:19px;letter-spacing:-.01em}.bk-mantra{flex:1;color:#94a3b8;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bk-link{color:#5eead4;font-size:13px;text-decoration:none}.bk-link:hover{text-decoration:underline}.bk-intro{max-width:720px;margin:0 auto;padding:28px 16px 220px;color:#cbd5e1;font-size:15px}.bk-intro h1{font-size:22px;font-weight:600;letter-spacing:-.01em;color:#f1f5f9;margin:0 0 14px}.bk-intro pre{font:12.5px/1.5 ui-monospace,Menlo,Consolas,monospace;background:#111820;border:1px solid #1f2933;border-radius:10px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#a7f3d0}.bk-intro code{color:#a7f3d0}.bk-keys{color:#94a3b8;font-size:14px}.bk-pill{font:600 12px ui-monospace,monospace;color:#cbd5e1;background:none;border:1px solid #334155;border-radius:999px;padding:3px 10px;white-space:nowrap}button.bk-pill{cursor:pointer}.bk-pill.ok{color:#4ade80;border-color:#166534}.bk-pill.bad{color:#f87171;border-color:#7f1d1d}.bk-pill.warn{color:#fbbf24;border-color:#78350f}@media (max-width: 640px){.bk-mantra{display:none}}
|
dist/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
| 6 |
<meta name="description" content="bankML behind the ultimate input field: verified 1-bit and ternary models on your own CPU, a receipt on every answer." />
|
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 8 |
<title>ultimate bankML UI</title>
|
| 9 |
-
<script type="module" crossorigin src="./assets/index-
|
| 10 |
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
| 11 |
</head>
|
| 12 |
<body>
|
| 13 |
<div id="root"></div>
|
|
|
|
| 6 |
<meta name="description" content="bankML behind the ultimate input field: verified 1-bit and ternary models on your own CPU, a receipt on every answer." />
|
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 8 |
<title>ultimate bankML UI</title>
|
| 9 |
+
<script type="module" crossorigin src="./assets/index-CY_pj4Qw.js"></script>
|
| 10 |
+
<link rel="stylesheet" crossorigin href="./assets/index-Cwmqv8lO.css">
|
| 11 |
</head>
|
| 12 |
<body>
|
| 13 |
<div id="root"></div>
|
package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "ultimate-bankml-ui",
|
| 3 |
-
"version": "0.1.
|
| 4 |
"description": "bankML behind the ultimate input field: verified 1-bit and ternary models on your own CPU, a receipt on every answer",
|
| 5 |
"scripts": {
|
| 6 |
"build": "tsup",
|
|
|
|
| 1 |
{
|
| 2 |
"name": "ultimate-bankml-ui",
|
| 3 |
+
"version": "0.1.5",
|
| 4 |
"description": "bankML behind the ultimate input field: verified 1-bit and ternary models on your own CPU, a receipt on every answer",
|
| 5 |
"scripts": {
|
| 6 |
"build": "tsup",
|
src/App.tsx
CHANGED
|
@@ -95,11 +95,13 @@ export function App() {
|
|
| 95 |
]);
|
| 96 |
|
| 97 |
const onSend = (text: string, meta: SendMeta) => {
|
| 98 |
-
const { outputId, context, annotate } = meta;
|
| 99 |
const p = P.current, o = A.current;
|
| 100 |
const settle = (engine: string, model: string) => (v: Verdict) => {
|
| 101 |
setLast(v);
|
| 102 |
uif.current?.outputs.append(outputId, { role: 'system', text: v.line });
|
|
|
|
|
|
|
| 103 |
// the receipt lives with the exchange in .history, as in Savante's savante.history
|
| 104 |
annotate({ engine, model, receipt: v.receipt ?? null, verified: v.ok, ...(v.usage ? { usage: v.usage } : {}), ...(v.sent !== undefined && v.sent !== text ? { sent: v.sent } : {}) });
|
| 105 |
};
|
|
@@ -234,7 +236,7 @@ export function App() {
|
|
| 234 |
<code>receipt</code>, <code>new notes</code>, <code>popout 1</code>, <code>strings on</code>, <code>help</code>. Hold a
|
| 235 |
button to move it anywhere, or drop it on the trash; drag the field anywhere, dock it, resize it from any corner.
|
| 236 |
Squeezed, it goes sideways; hold the ⠿ grip to float the buttons on their own. <code>spawn notes --speak</code>{' '}
|
| 237 |
-
reads bankML's answers aloud, <code>--screen 2</code> opens on another monitor, <code>--present</code> on a display.
|
| 238 |
</p>
|
| 239 |
<p className="bk-keys">
|
| 240 |
The <b>▤</b> windows are what bankML is told: <code>.persona</code> (bankml.persona; import another to change
|
|
|
|
| 95 |
]);
|
| 96 |
|
| 97 |
const onSend = (text: string, meta: SendMeta) => {
|
| 98 |
+
const { outputId, context, annotate, markReply } = meta;
|
| 99 |
const p = P.current, o = A.current;
|
| 100 |
const settle = (engine: string, model: string) => (v: Verdict) => {
|
| 101 |
setLast(v);
|
| 102 |
uif.current?.outputs.append(outputId, { role: 'system', text: v.line });
|
| 103 |
+
// only an answer whose receipt matched is read aloud (a provider's answer has no receipt: never spoken)
|
| 104 |
+
if (!v.ok) markReply({ silent: true });
|
| 105 |
// the receipt lives with the exchange in .history, as in Savante's savante.history
|
| 106 |
annotate({ engine, model, receipt: v.receipt ?? null, verified: v.ok, ...(v.usage ? { usage: v.usage } : {}), ...(v.sent !== undefined && v.sent !== text ? { sent: v.sent } : {}) });
|
| 107 |
};
|
|
|
|
| 236 |
<code>receipt</code>, <code>new notes</code>, <code>popout 1</code>, <code>strings on</code>, <code>help</code>. Hold a
|
| 237 |
button to move it anywhere, or drop it on the trash; drag the field anywhere, dock it, resize it from any corner.
|
| 238 |
Squeezed, it goes sideways; hold the ⠿ grip to float the buttons on their own. <code>spawn notes --speak</code>{' '}
|
| 239 |
+
reads bankML's verified answers aloud, <code>--screen 2</code> opens on another monitor, <code>--present</code> on a display.
|
| 240 |
</p>
|
| 241 |
<p className="bk-keys">
|
| 242 |
The <b>▤</b> windows are what bankML is told: <code>.persona</code> (bankml.persona; import another to change
|
src/components/OutputField.tsx
CHANGED
|
@@ -130,6 +130,11 @@ export function OutputView({
|
|
| 130 |
<div key={m.id} className={`uif-msg uif-msg-${m.role}`}>
|
| 131 |
{m.text}
|
| 132 |
{m.pending && <span className="uif-caret">▍</span>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
</div>
|
| 134 |
);
|
| 135 |
if (!keep) return msg;
|
|
|
|
| 130 |
<div key={m.id} className={`uif-msg uif-msg-${m.role}`}>
|
| 131 |
{m.text}
|
| 132 |
{m.pending && <span className="uif-caret">▍</span>}
|
| 133 |
+
{m.silent && field.speak && (
|
| 134 |
+
<span className="uif-msg-silent" title="Not read aloud: the engine did not vouch for this reply" aria-label="not read aloud">
|
| 135 |
+
{' '}🔇
|
| 136 |
+
</span>
|
| 137 |
+
)}
|
| 138 |
</div>
|
| 139 |
);
|
| 140 |
if (!keep) return msg;
|
src/components/UIFContext.tsx
CHANGED
|
@@ -657,7 +657,7 @@ export function UIFProvider({
|
|
| 657 |
for (const f of fields) {
|
| 658 |
if (!f.speak) continue;
|
| 659 |
for (const m of f.messages) {
|
| 660 |
-
if (m.role !== 'assistant' || m.pending || !m.text.trim() || spoken.current.has(m.id)) continue;
|
| 661 |
spoken.current.add(m.id);
|
| 662 |
synth.speak(new SpeechSynthesisUtterance(m.text));
|
| 663 |
}
|
|
|
|
| 657 |
for (const f of fields) {
|
| 658 |
if (!f.speak) continue;
|
| 659 |
for (const m of f.messages) {
|
| 660 |
+
if (m.role !== 'assistant' || m.pending || m.silent || !m.text.trim() || spoken.current.has(m.id)) continue;
|
| 661 |
spoken.current.add(m.id);
|
| 662 |
synth.speak(new SpeechSynthesisUtterance(m.text));
|
| 663 |
}
|
src/components/UltimateInputField.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
| 2 |
-
import type { ActionContext, DockEdge, LogKind, UIFMode, UltimateInputFieldProps } from '../types';
|
| 3 |
import type { Action } from '../core/actions';
|
| 4 |
import { parseCommand } from '../core/commands';
|
| 5 |
import { KEYBOARD_HINT, useDragResize } from '../hooks/useDragResize';
|
|
@@ -251,14 +251,22 @@ const HubField: React.FC<UltimateInputFieldProps> = ({
|
|
| 251 |
model: modelLabel(context.model),
|
| 252 |
...extra,
|
| 253 |
});
|
| 254 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
if (result === undefined) return;
|
| 256 |
if (typeof result === 'string') {
|
| 257 |
-
outputs.append(id, { role: 'assistant', text: result });
|
| 258 |
record(result);
|
| 259 |
return;
|
| 260 |
}
|
| 261 |
-
const mid = outputs.append(id, { role: 'assistant', text: '', pending: true });
|
|
|
|
| 262 |
setBusy(true);
|
| 263 |
try {
|
| 264 |
if (isAsyncIterable(result)) {
|
|
|
|
| 1 |
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
| 2 |
+
import type { ActionContext, DockEdge, LogKind, OutputMessage, UIFMode, UltimateInputFieldProps } from '../types';
|
| 3 |
import type { Action } from '../core/actions';
|
| 4 |
import { parseCommand } from '../core/commands';
|
| 5 |
import { KEYBOARD_HINT, useDragResize } from '../hooks/useDragResize';
|
|
|
|
| 251 |
model: modelLabel(context.model),
|
| 252 |
...extra,
|
| 253 |
});
|
| 254 |
+
// what the engine says about its own reply (e.g. silent), applied when the reply message exists
|
| 255 |
+
const replyMarks: Pick<Partial<OutputMessage>, 'silent'> = {};
|
| 256 |
+
let replyId: string | null = null;
|
| 257 |
+
const markReply = (patch: Pick<Partial<OutputMessage>, 'silent'>) => {
|
| 258 |
+
Object.assign(replyMarks, patch);
|
| 259 |
+
if (replyId) outputs.update(outputId, replyId, patch);
|
| 260 |
+
};
|
| 261 |
+
const result = onSend?.(text, { outputId: id, context, annotate: fields => Object.assign(extra, fields), markReply });
|
| 262 |
if (result === undefined) return;
|
| 263 |
if (typeof result === 'string') {
|
| 264 |
+
outputs.append(id, { role: 'assistant', text: result, ...replyMarks });
|
| 265 |
record(result);
|
| 266 |
return;
|
| 267 |
}
|
| 268 |
+
const mid = outputs.append(id, { role: 'assistant', text: '', pending: true, ...replyMarks });
|
| 269 |
+
replyId = mid;
|
| 270 |
setBusy(true);
|
| 271 |
try {
|
| 272 |
if (isAsyncIterable(result)) {
|
src/styles/UltimateInputField.css
CHANGED
|
@@ -1113,3 +1113,5 @@
|
|
| 1113 |
@container uif (max-width: 300px) {
|
| 1114 |
.uif-windows-toggle { width: 1.75rem; }
|
| 1115 |
}
|
|
|
|
|
|
|
|
|
| 1113 |
@container uif (max-width: 300px) {
|
| 1114 |
.uif-windows-toggle { width: 1.75rem; }
|
| 1115 |
}
|
| 1116 |
+
|
| 1117 |
+
.uif-msg-silent { font-size: 0.75rem; opacity: 0.7; cursor: help; }
|
src/types.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface OutputMessage {
|
|
| 19 |
role: 'user' | 'assistant' | 'system';
|
| 20 |
text: string;
|
| 21 |
pending?: boolean;
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
|
| 24 |
export interface OutputField {
|
|
@@ -152,6 +154,11 @@ export interface SendMeta {
|
|
| 152 |
* calls merge; a field named like a standard one (model, prompt) replaces it.
|
| 153 |
*/
|
| 154 |
annotate(fields: Record<string, unknown>): void;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
}
|
| 156 |
|
| 157 |
export type SendResult = void | string | Promise<string | void> | AsyncIterable<string>;
|
|
|
|
| 19 |
role: 'user' | 'assistant' | 'system';
|
| 20 |
text: string;
|
| 21 |
pending?: boolean;
|
| 22 |
+
/** Never read aloud, even in an output with speak on (an engine marks a reply it does not vouch for). */
|
| 23 |
+
silent?: boolean;
|
| 24 |
}
|
| 25 |
|
| 26 |
export interface OutputField {
|
|
|
|
| 154 |
* calls merge; a field named like a standard one (model, prompt) replaces it.
|
| 155 |
*/
|
| 156 |
annotate(fields: Record<string, unknown>): void;
|
| 157 |
+
/**
|
| 158 |
+
* Change this exchange's reply message while (or after) it streams, e.g. `{ silent: true }` so an output with
|
| 159 |
+
* speak on does not read a reply the engine could not verify. Calls before the reply exists are kept for it.
|
| 160 |
+
*/
|
| 161 |
+
markReply(patch: Pick<Partial<OutputMessage>, 'silent'>): void;
|
| 162 |
}
|
| 163 |
|
| 164 |
export type SendResult = void | string | Promise<string | void> | AsyncIterable<string>;
|