@thedevlabs-io/labd 0.6.0 → 0.6.1
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/labd.js +3 -4
- package/dist/labd.js.map +2 -2
- package/package.json +1 -1
package/dist/labd.js
CHANGED
|
@@ -3391,7 +3391,6 @@ function wrap2(text, width, first, rest) {
|
|
|
3391
3391
|
}
|
|
3392
3392
|
|
|
3393
3393
|
// packages/tui/src/transcript.ts
|
|
3394
|
-
var MAX_PROSE_WIDTH = 100;
|
|
3395
3394
|
var LIVE_LINES = 8;
|
|
3396
3395
|
var Transcript = class {
|
|
3397
3396
|
entries = [];
|
|
@@ -3493,7 +3492,7 @@ function splitStreaming(text) {
|
|
|
3493
3492
|
return { complete: complete2.join("\n"), tail };
|
|
3494
3493
|
}
|
|
3495
3494
|
function proseWidth(width) {
|
|
3496
|
-
return Math.max(20,
|
|
3495
|
+
return Math.max(20, width - 2);
|
|
3497
3496
|
}
|
|
3498
3497
|
function renderBlock(block, width) {
|
|
3499
3498
|
const inner = proseWidth(width);
|
|
@@ -3502,7 +3501,7 @@ function renderBlock(block, width) {
|
|
|
3502
3501
|
return block.text.split("\n").flatMap(
|
|
3503
3502
|
(line, i) => wrapPlain(line, inner - 2).map((piece, j) => {
|
|
3504
3503
|
const text = i === 0 && j === 0 ? `${paint.accent(">")} ${piece}` : ` ${piece}`;
|
|
3505
|
-
return band(text, visibleWidth(text),
|
|
3504
|
+
return band(text, visibleWidth(text), width);
|
|
3506
3505
|
})
|
|
3507
3506
|
);
|
|
3508
3507
|
case "assistant":
|
|
@@ -6154,7 +6153,7 @@ async function runRpc(runtime) {
|
|
|
6154
6153
|
}
|
|
6155
6154
|
|
|
6156
6155
|
// packages/cli/src/index.ts
|
|
6157
|
-
var VERSION = true ? "0.6.
|
|
6156
|
+
var VERSION = true ? "0.6.1" : "0.0.0-dev";
|
|
6158
6157
|
async function main(argv) {
|
|
6159
6158
|
const args = parse(argv);
|
|
6160
6159
|
if (args.color !== void 0) setColor(args.color);
|