koneck 2.94.0 → 2.96.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.
Files changed (41) hide show
  1. package/dist/browser.d.ts +3 -0
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +27 -1
  4. package/dist/browser.js.map +1 -1
  5. package/dist/capability-claims.d.ts +63 -0
  6. package/dist/capability-claims.d.ts.map +1 -0
  7. package/dist/capability-claims.js +171 -0
  8. package/dist/capability-claims.js.map +1 -0
  9. package/dist/config-store.d.ts +1 -0
  10. package/dist/config-store.d.ts.map +1 -1
  11. package/dist/config-store.js +10 -1
  12. package/dist/config-store.js.map +1 -1
  13. package/dist/context-limit.d.ts +14 -2
  14. package/dist/context-limit.d.ts.map +1 -1
  15. package/dist/context-limit.js +121 -11
  16. package/dist/context-limit.js.map +1 -1
  17. package/dist/engine.d.ts +1 -1
  18. package/dist/engine.d.ts.map +1 -1
  19. package/dist/engine.js +82 -14
  20. package/dist/engine.js.map +1 -1
  21. package/dist/providers.d.ts +1 -0
  22. package/dist/providers.d.ts.map +1 -1
  23. package/dist/providers.js +35 -4
  24. package/dist/providers.js.map +1 -1
  25. package/dist/tools.js +4 -1
  26. package/dist/tools.js.map +1 -1
  27. package/dist/types.d.ts +7 -0
  28. package/dist/types.d.ts.map +1 -1
  29. package/dist/web/api.d.ts.map +1 -1
  30. package/dist/web/api.js +9 -0
  31. package/dist/web/api.js.map +1 -1
  32. package/dist/web/sessions.d.ts.map +1 -1
  33. package/dist/web/sessions.js +3 -0
  34. package/dist/web/sessions.js.map +1 -1
  35. package/dist/web/ui-client.d.ts.map +1 -1
  36. package/dist/web/ui-client.js +37 -6
  37. package/dist/web/ui-client.js.map +1 -1
  38. package/dist/web/ui-css.d.ts.map +1 -1
  39. package/dist/web/ui-css.js +52 -3
  40. package/dist/web/ui-css.js.map +1 -1
  41. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ui-css.d.ts","sourceRoot":"","sources":["../../src/web/ui-css.ts"],"names":[],"mappings":"AA8CA,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAk2C3C"}
1
+ {"version":3,"file":"ui-css.d.ts","sourceRoot":"","sources":["../../src/web/ui-css.ts"],"names":[],"mappings":"AA8CA,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAm5C3C"}
@@ -803,9 +803,57 @@ textarea.big{width:100%;min-height:220px;padding:11px 13px;border-radius:8px;
803
803
  line-height:1.5;resize:vertical}
804
804
 
805
805
  dialog{border:1px solid var(--line);background:var(--panel);color:var(--ink);
806
- border-radius:var(--radius);padding:0;max-width:450px;width:92%;box-shadow:var(--shadow)}
806
+ border-radius:var(--radius);padding:0;max-width:450px;width:92%;box-shadow:var(--shadow);
807
+ /* Capped here, and the form inside is what scrolls. Two nested scrollers means a wheel gesture
808
+ moves whichever one the pointer happens to be over. */
809
+ max-height:calc(100dvh - 28px)}
810
+ /*
811
+ * [open], not bare dialog: a closed dialog is hidden by the browser's own display:none, and
812
+ * setting display here unconditionally would put every dialog on the page at once.
813
+ */
814
+ dialog[open]{display:flex;flex-direction:column}
807
815
  dialog::backdrop{background:rgba(0,0,0,.5)}
808
- .dlg{padding:18px}
816
+ /*
817
+ * A dialog that fits the window it is in, with its buttons always on screen.
818
+ *
819
+ * Measured with the model dialog at three window heights: at 813px of viewport it fits with the
820
+ * Switch button visible. At 533px the dialog is 499px tall with content overflowing it, and Switch
821
+ * sits below the fold — reachable only by scrolling the dialog, which nothing on screen suggests
822
+ * you can do. At 393px it is 357px of scrolling to get to it. And that was with the list empty; a
823
+ * provider serving four hundred models is worse.
824
+ *
825
+ * So the form is a column that scrolls, and the action row sticks to the bottom of it. The buttons
826
+ * are then in the same place whatever the window is doing, which is the only thing about this
827
+ * dialog that must never move: it is how you say yes.
828
+ *
829
+ * dvh rather than vh, because on a phone vh is the height the window has when the browser's own
830
+ * chrome is hidden, so a dialog sized in vh is taller than the space it is in.
831
+ */
832
+ /*
833
+ * min-height:0 is what makes this scroll at all.
834
+ *
835
+ * A flex child's floor is its content by default, so a form full of content simply grew past the
836
+ * dialog's cap and the dialog scrolled instead — which put the sticky action row inside a box that
837
+ * was not the scroller, so it stuck to nothing and went below the fold exactly as before.
838
+ */
839
+ .dlg{padding:18px;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;
840
+ overflow-y:auto;overscroll-behavior:contain}
841
+ /*
842
+ * Nothing shrinks except the list.
843
+ *
844
+ * A flex column shrinks its children by default, and the model list is the one that gives — at a
845
+ * 393px window it was squeezed to two pixels: four hundred models present, none of them visible,
846
+ * while the heading and the labels kept every pixel they asked for. So the fixed parts stay fixed,
847
+ * the list takes what is left, and it never goes below a few rows: a list too short to read is the
848
+ * same as no list, and the dialog scrolling is the better trade.
849
+ */
850
+ .dlg > *{flex:0 0 auto}
851
+ .dlg > .mlist{flex:1 1 auto;min-height:120px}
852
+ .dlg > .row{position:sticky;bottom:-18px;z-index:1;margin-top:auto;
853
+ padding:12px 0 0;background:var(--panel)}
854
+ /* Enough of a fade that content scrolling under the buttons reads as going behind them. */
855
+ .dlg > .row::before{content:'';position:absolute;left:0;right:0;top:-14px;height:14px;
856
+ background:linear-gradient(to bottom,rgba(0,0,0,0),var(--panel));pointer-events:none}
809
857
  .dlg h3{margin:0 0 5px;font-size:calc(var(--ui) * 1.0714)}
810
858
  .dlg p{margin:0 0 14px;color:var(--muted);font-size:calc(var(--ui) * 0.8929)}
811
859
  .dlg label{display:block;font-size:calc(var(--ui) * 0.75);letter-spacing:.09em;color:var(--dim);
@@ -846,7 +894,8 @@ dialog:has(.dlg.wide){max-width:560px}
846
894
  .linkish:hover{color:var(--fg)}
847
895
  .linkish:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;border-radius:3px}
848
896
  .perr{font-size:calc(var(--ui) * 0.8571);color:var(--red);margin:0 0 10px;line-height:1.5}
849
- .mlist{max-height:270px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;
897
+ /* The list gives up space on a short window rather than pushing the rest of the dialog off it. */
898
+ .mlist{max-height:min(270px,38dvh);overflow-y:auto;border:1px solid var(--line);border-radius:8px;
850
899
  background:var(--panel-2);margin-bottom:13px}
851
900
  .mlist:empty{display:none}
852
901
  .mgroup{padding:6px 11px;font-size:calc(var(--ui) * 0.7143);letter-spacing:.09em;text-transform:uppercase;
@@ -1 +1 @@
1
- {"version":3,"file":"ui-css.js","sourceRoot":"","sources":["../../src/web/ui-css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;;GAYG;AACH,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;CAkBZ,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAe;IACjC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;gBAyBO,OAAO;;;oCAGa,IAAI;;2BAEb,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAm3C9B,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koneck",
3
- "version": "2.94.0",
3
+ "version": "2.96.0",
4
4
  "description": "Kinetically Orchestrated Neural Execution Engine for Code",
5
5
  "type": "module",
6
6
  "bin": {