@lambdacurry/arbor 0.21.52 → 0.21.54
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/arbor.js +10 -3
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -16,7 +16,7 @@ var __export = (target, all) => {
|
|
|
16
16
|
// package.json
|
|
17
17
|
var package_default = {
|
|
18
18
|
name: "@lambdacurry/arbor",
|
|
19
|
-
version: "0.21.
|
|
19
|
+
version: "0.21.54",
|
|
20
20
|
description: "The Arbor CLI — a shared workspace for people and agents. The human + headless-agent write path over Arbor's guarded operation surface.",
|
|
21
21
|
keywords: [
|
|
22
22
|
"agents",
|
|
@@ -22557,10 +22557,14 @@ async function waitForComputerExec(executor, input, value, ctx) {
|
|
|
22557
22557
|
return value;
|
|
22558
22558
|
let latest = value;
|
|
22559
22559
|
let cursor = typeof latest.nextCursor === "string" && latest.nextCursor ? latest.nextCursor : undefined;
|
|
22560
|
+
let stdoutPages = typeof latest.stdout === "string" ? latest.stdout : "";
|
|
22561
|
+
let stderrPages = typeof latest.stderr === "string" ? latest.stderr : "";
|
|
22562
|
+
if (stdoutPages)
|
|
22563
|
+
advise(stdoutPages, ctx);
|
|
22560
22564
|
const deadline = Date.now() + (typeof input.timeout === "number" && Number.isFinite(input.timeout) ? input.timeout : DEFAULT_PROCESS_DEADLINE_MS);
|
|
22561
22565
|
advise(`Process ${String(latest.processId)} is still running; polling computer_process_read.
|
|
22562
22566
|
`, ctx);
|
|
22563
|
-
while (isRunning(latest) && Date.now() < deadline) {
|
|
22567
|
+
while ((isRunning(latest) || latest.truncated === true) && Date.now() < deadline) {
|
|
22564
22568
|
await sleep(POLL_MS);
|
|
22565
22569
|
const read = record3(await processRead.run(executor, {
|
|
22566
22570
|
processId: latest.processId,
|
|
@@ -22575,12 +22579,15 @@ async function waitForComputerExec(executor, input, value, ctx) {
|
|
|
22575
22579
|
if (typeof read.nextCursor === "string" && read.nextCursor)
|
|
22576
22580
|
cursor = read.nextCursor;
|
|
22577
22581
|
const stdout = typeof latest.stdout === "string" ? latest.stdout : "";
|
|
22582
|
+
const stderr = typeof latest.stderr === "string" ? latest.stderr : "";
|
|
22578
22583
|
if (stdout)
|
|
22579
22584
|
advise(stdout, ctx);
|
|
22585
|
+
stdoutPages += stdout;
|
|
22586
|
+
stderrPages += stderr;
|
|
22580
22587
|
if (latest.recovery)
|
|
22581
22588
|
break;
|
|
22582
22589
|
}
|
|
22583
|
-
return latest;
|
|
22590
|
+
return { ...latest, stdout: stdoutPages, stderr: stderrPages };
|
|
22584
22591
|
}
|
|
22585
22592
|
|
|
22586
22593
|
// src/schema.ts
|
package/package.json
CHANGED