@runappsai/agent 0.1.1 → 0.1.2
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/dist/agent-core.umd.js +1 -1
- package/dist/agent.umd.js +57 -57
- package/dist/ui.cjs +4 -3
- package/dist/vlist.js +8 -4
- package/package.json +1 -1
package/dist/ui.cjs
CHANGED
|
@@ -496,6 +496,7 @@ var VirtualList = class {
|
|
|
496
496
|
return;
|
|
497
497
|
}
|
|
498
498
|
const view = s.clientHeight || 600;
|
|
499
|
+
const end = () => Math.max(0, s.scrollHeight - s.clientHeight);
|
|
499
500
|
for (let pass = 0; pass < 4; pass++) {
|
|
500
501
|
const total = this.computeOffsets();
|
|
501
502
|
const scrollTop = this.follow ? Math.max(0, total - view) : s.scrollTop;
|
|
@@ -528,11 +529,11 @@ var VirtualList = class {
|
|
|
528
529
|
}
|
|
529
530
|
}
|
|
530
531
|
if (changed) {
|
|
531
|
-
|
|
532
|
-
this.setTop(this.follow ?
|
|
532
|
+
this.computeOffsets();
|
|
533
|
+
this.setTop(this.follow ? end() : Math.max(0, this.offsets[anchor] - anchorDelta));
|
|
533
534
|
continue;
|
|
534
535
|
}
|
|
535
|
-
if (this.follow && Math.abs(s.scrollTop -
|
|
536
|
+
if (this.follow && Math.abs(s.scrollTop - end()) > 1) this.setTop(end());
|
|
536
537
|
return;
|
|
537
538
|
}
|
|
538
539
|
}
|
package/dist/vlist.js
CHANGED
|
@@ -228,6 +228,10 @@ export class VirtualList {
|
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
230
|
const view = s.clientHeight || 600;
|
|
231
|
+
// The scroller's real end. The rows' total leaves out what surrounds them in `inner` (its padding), so
|
|
232
|
+
// following to `total - view` stopped short of the end: scrolling the last pixels then set "at the
|
|
233
|
+
// bottom → follow", and following pulled the view back up, on every wheel tick.
|
|
234
|
+
const end = () => Math.max(0, s.scrollHeight - s.clientHeight);
|
|
231
235
|
for (let pass = 0; pass < 4; pass++) {
|
|
232
236
|
const total = this.computeOffsets();
|
|
233
237
|
// Keep the row at the top of the viewport where it is unless following the end.
|
|
@@ -265,12 +269,12 @@ export class VirtualList {
|
|
|
265
269
|
}
|
|
266
270
|
}
|
|
267
271
|
if (changed) {
|
|
268
|
-
|
|
269
|
-
this.setTop(this.follow ?
|
|
272
|
+
this.computeOffsets();
|
|
273
|
+
this.setTop(this.follow ? end() : Math.max(0, this.offsets[anchor] - anchorDelta));
|
|
270
274
|
continue;
|
|
271
275
|
}
|
|
272
|
-
if (this.follow && Math.abs(s.scrollTop -
|
|
273
|
-
this.setTop(
|
|
276
|
+
if (this.follow && Math.abs(s.scrollTop - end()) > 1)
|
|
277
|
+
this.setTop(end());
|
|
274
278
|
return;
|
|
275
279
|
}
|
|
276
280
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runappsai/agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Agent harness: the model ↔ tool loop with a workspace, skills, sessions, compaction, a sandbox and a chat UI. Bring any OpenAI-compatible model provider (RunApps included); no runtime dependencies.",
|
|
6
6
|
"license": "MIT",
|