@william_jin/autobrowse 0.8.15 → 0.8.16
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.
|
@@ -465,6 +465,11 @@ function rects(n, W = stage.clientWidth, H = stage.clientHeight) {
|
|
|
465
465
|
}
|
|
466
466
|
return out;
|
|
467
467
|
}
|
|
468
|
+
/** a cell in px: each edge rounds once, so neighbours share it and every gap is exactly `gap` */
|
|
469
|
+
function boxOf([x, y, w, h], W, H, gap) {
|
|
470
|
+
const l = Math.round(x * W), t = Math.round(y * H), r = Math.round((x + w) * W), b = Math.round((y + h) * H);
|
|
471
|
+
return [l + gap, t + gap, r - l - gap * (x + w >= .999 ? 2 : 1), b - t - gap * (y + h >= .999 ? 2 : 1)];
|
|
472
|
+
}
|
|
468
473
|
/** what a pane's viewer needs: tiles scale frames; one full pane sets the viewport; a narrow first pane zooms out */
|
|
469
474
|
function embedOf(key) {
|
|
470
475
|
const i = cells.indexOf(key), single = max ? i === cur : cells.length === 1 && layout === 'focus';
|
|
@@ -590,12 +595,8 @@ function render() {
|
|
|
590
595
|
const hidden = max && i !== cur;
|
|
591
596
|
p.el.classList.toggle('off', hidden);
|
|
592
597
|
p.el.querySelector('[data-a=max]').innerHTML = icon(max ? 'min' : 'max');
|
|
593
|
-
const [
|
|
594
|
-
Object.assign(p.el.style, {
|
|
595
|
-
left: `${Math.round(x * W + gap)}px`, top: `${Math.round(y * H + gap)}px`,
|
|
596
|
-
width: `${Math.round(w * W - gap * (x + w >= .999 ? 2 : 1))}px`, height: `${Math.round(h * H - gap * (y + h >= .999 ? 2 : 1))}px`,
|
|
597
|
-
zIndex: i === cur ? 1 : 0,
|
|
598
|
-
});
|
|
598
|
+
const [left, top, width, height] = boxOf(max ? [0, 0, 1, 1] : R[i], W, H, gap);
|
|
599
|
+
Object.assign(p.el.style, { left: `${left}px`, top: `${top}px`, width: `${width}px`, height: `${height}px`, zIndex: i === cur ? 1 : 0 });
|
|
599
600
|
});
|
|
600
601
|
// panes out of the layout: hidden and off screen, the oldest go
|
|
601
602
|
const out = [...panes.entries()].filter(([k]) => !cells.includes(k)).sort((a, b) => b[1].at - a[1].at);
|
|
Binary file
|
|
Binary file
|
package/dist/llms.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Signed-in browser and site-API automation for agents: stored logins, official APIs behind one facade, and a journaled browser whose acts compile into workflows.
|
|
4
4
|
|
|
5
|
-
Version 0.8.
|
|
5
|
+
Version 0.8.16. Every command takes `--help --json`; `autobrowse list <words> --json` finds a route, flow or workflow. Errors are one JSON shape: `{code, message, hint, retryable, outcome?, artifact?}`.
|
|
6
6
|
|
|
7
7
|
## Skill
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@william_jin/autobrowse",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.16",
|
|
4
4
|
"description": "Browser and account automation: recorded flows where no API exists, official API shapes where one does, a person in the loop for money, accounts and consent.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|