@justai/core 0.32.0 → 0.33.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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +41 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justai/core",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "The framework-free heart of the persona shell — the load-bearing behaviour (auth capture, reveal, ready) as plain strings, so Astro and Next inject the SAME logic instead of each re-writing it.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -1502,6 +1502,47 @@ export async function adoptMark(options) {
1502
1502
  if (fills > 0.05 && fills < 1) box = 20 / fills;
1503
1503
  }
1504
1504
  } catch { /* not rendered — the row's default stands */ }
1505
+
1506
+ // queries: the parent icon is bigger than the other icons · the parent mark overflows the row ·
1507
+ // navParent looks shifted · the child toolbar mark is twice the size · adoptMark overflow
1508
+ //
1509
+ // A CEILING, BECAUSE NORMALISING INK CANNOT BE ALLOWED TO BREAK THE ROW.
1510
+ //
1511
+ // The scale above equalises INK: whatever the drawing, its ink lands at 20px, so a mark with
1512
+ // generous padding is scaled up until it reads like its neighbours. That is right, and it is
1513
+ // unbounded — the more padding a drawing carries, the larger the box it asks for, with nothing
1514
+ // stopping it at the size of the slot it lives in.
1515
+ //
1516
+ // Measured on the fleet, 2026-08-06, after the founder reported the parent mark looking shifted on
1517
+ // pin.games' children and nowhere else:
1518
+ //
1519
+ // app.zone/icon.svg ink fills 73% → 27.3px, inside a 38×36 slot
1520
+ // pin.games/icon.svg ink fills 37% → 53.8px, half again the slot's height
1521
+ //
1522
+ // pin.games draws its glyph with an app icon's padding — an iOS tile, correct on a home screen and
1523
+ // twice the fleet's inset. Nothing was wrong with the file and nothing was wrong with the scale;
1524
+ // what was missing is that a row icon belongs to the ROW, so the row's box is the limit. Clamped
1525
+ // rather than skipped, so the mark still grows as far as it usefully can.
1526
+ //
1527
+ // The remaining half is the persona's: a mark clamped to the slot reads smaller than its
1528
+ // neighbours, because the drawing genuinely carries less ink. That is a drawing to redraw, not a
1529
+ // number to fudge here.
1530
+ //
1531
+ // THE CEILING IS THE SLOT AND NOT A PIXEL LESS, because the founder asked the right question —
1532
+ // *"sadece pin games için böyle oldu, şimdi diğer tüm personalar bundan olumsuz etkilenir mi?"* —
1533
+ // and the first answer was yes. A ceiling of `slot − 4` was measured against all twenty-one live
1534
+ // personas and would have shrunk THIRTEEN of them, from 33–35px down to 32, none of which was
1535
+ // overflowing anything. Computed across the fleet, 2026-08-06:
1536
+ //
1537
+ // under the slot, untouched app.zone 27.3 · justai.pro 29.4 · lendcam 30.8 · qr 34.2 ·
1538
+ // time 34.5 · sudoku 34.6 · whatismyip 35.7 · fourteen more
1539
+ // over it, clamped pin.games 53.8 · auth 38.5 · password-generator 38.5
1540
+ //
1541
+ // A rail that changes anything already inside its limit is not a rail, it is a redesign — so the
1542
+ // limit is exactly the box the mark has to live in, and a mark that fits is left alone to the pixel.
1543
+ const ceiling = Math.max(20, el.clientHeight || 36);
1544
+ if (box > ceiling) box = ceiling;
1545
+
1505
1546
  svg.style.width = box.toFixed(2) + "px";
1506
1547
  svg.style.height = box.toFixed(2) + "px";
1507
1548
  return svg;