@runappsai/agent 0.1.1 → 0.1.3
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 +58 -58
- package/dist/chat.js +1 -1
- package/dist/ui.cjs +5 -4
- package/dist/vlist.js +8 -4
- package/package.json +1 -1
package/dist/chat.js
CHANGED
|
@@ -428,7 +428,7 @@ const CSS = tokenCSS() + `
|
|
|
428
428
|
.ra-queue .ra-qlist .ra-qr{padding-left:14px}
|
|
429
429
|
.ra-box{position:relative;border:1px solid var(--ra-border);border-radius:12px;padding:8px 10px 6px;background:var(--ra-panel);box-shadow:var(--ra-shadow)}
|
|
430
430
|
.ra-box:focus-within{border-color:color-mix(in srgb,var(--ra-fg) 28%,transparent)}
|
|
431
|
-
.ra-box textarea{resize:none;height:
|
|
431
|
+
.ra-box textarea{resize:none;height:calc(3em + 8px);overflow-y:auto;padding:2px 4px;line-height:1.5;display:block}
|
|
432
432
|
/* A host's generic focus rule (textarea:focus-visible{outline…}) must not draw a square inside the rounded box: the box shows focus. */
|
|
433
433
|
.ra-chat .ra-box textarea:focus,.ra-chat .ra-box textarea:focus-visible{outline:none;box-shadow:none;background:transparent}
|
|
434
434
|
.ra-chat[data-asking="1"] .ra-box textarea,.ra-chat[data-short="1"] .ra-box textarea{height:1.6em}
|
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
|
}
|
|
@@ -2776,7 +2777,7 @@ var CSS = tokenCSS() + `
|
|
|
2776
2777
|
.ra-queue .ra-qlist .ra-qr{padding-left:14px}
|
|
2777
2778
|
.ra-box{position:relative;border:1px solid var(--ra-border);border-radius:12px;padding:8px 10px 6px;background:var(--ra-panel);box-shadow:var(--ra-shadow)}
|
|
2778
2779
|
.ra-box:focus-within{border-color:color-mix(in srgb,var(--ra-fg) 28%,transparent)}
|
|
2779
|
-
.ra-box textarea{resize:none;height:
|
|
2780
|
+
.ra-box textarea{resize:none;height:calc(3em + 8px);overflow-y:auto;padding:2px 4px;line-height:1.5;display:block}
|
|
2780
2781
|
/* A host's generic focus rule (textarea:focus-visible{outline\u2026}) must not draw a square inside the rounded box: the box shows focus. */
|
|
2781
2782
|
.ra-chat .ra-box textarea:focus,.ra-chat .ra-box textarea:focus-visible{outline:none;box-shadow:none;background:transparent}
|
|
2782
2783
|
.ra-chat[data-asking="1"] .ra-box textarea,.ra-chat[data-short="1"] .ra-box textarea{height:1.6em}
|
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.3",
|
|
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",
|