@lambdacurry/arbor 0.22.19 → 0.22.20
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 +9 -4
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// package.json
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "@lambdacurry/arbor",
|
|
5
|
-
version: "0.22.
|
|
5
|
+
version: "0.22.20",
|
|
6
6
|
description: "The Arbor CLI — a shared workspace for people and agents. The human + headless-agent write path over Arbor's guarded operation surface.",
|
|
7
7
|
keywords: [
|
|
8
8
|
"agents",
|
|
@@ -9153,6 +9153,8 @@ var MCP_OUTPUT_SCHEMAS = {
|
|
|
9153
9153
|
exitCode: number2().optional(),
|
|
9154
9154
|
processId: string2().optional(),
|
|
9155
9155
|
status: string2().optional(),
|
|
9156
|
+
truncated: boolean2().optional().describe("true when returned stdout/stderr is partial and more output remains"),
|
|
9157
|
+
nextCursor: string2().optional().describe("opaque cursor for continuing partial output with computer_process_read"),
|
|
9156
9158
|
cwd: string2().optional(),
|
|
9157
9159
|
execution: _enum(["completed", "running"]).optional(),
|
|
9158
9160
|
nextAction: literal("computer_process_read").optional()
|
|
@@ -9549,6 +9551,8 @@ var OUTPUT_SHAPERS = {
|
|
|
9549
9551
|
["exitCode", omitNull(result.exitCode)],
|
|
9550
9552
|
["processId", omitNull(result.processId)],
|
|
9551
9553
|
["status", omitNull(result.status)],
|
|
9554
|
+
["truncated", omitNull(result.truncated)],
|
|
9555
|
+
["nextCursor", omitNull(result.nextCursor)],
|
|
9552
9556
|
["execution", omitProviderNativeExecution(result.execution)],
|
|
9553
9557
|
["nextAction", omitNull(result.nextAction)],
|
|
9554
9558
|
["cwd", input.cwd === undefined ? omitNull(result.cwd) : undefined]
|
|
@@ -10765,7 +10769,7 @@ var ACTION_DEFINITIONS = [
|
|
|
10765
10769
|
{
|
|
10766
10770
|
name: "computer_exec",
|
|
10767
10771
|
title: "Run a command",
|
|
10768
|
-
description: "Run one bounded shell operation in a Run (pass runId) with ambient GitHub authorization
|
|
10772
|
+
description: "Run one bounded shell operation in a Run (pass runId) with ambient GitHub authorization; timeout kills the process. If the command is running or a truncated output page is returned, use processId with computer_process_read and nextCursor when present; after a missed isolated response use computer_run_receipt.operations[].operationId with computer_process_read instead of repeating the mutation.",
|
|
10769
10773
|
inputSchema: {
|
|
10770
10774
|
computerSessionId: string2().optional().describe("legacy alternative to runId: a computerSessionId on that Computer, cms_…; required unless runId is supplied"),
|
|
10771
10775
|
command: string2().min(1).describe("the shell command to run"),
|
|
@@ -13537,7 +13541,7 @@ function sleep(ms) {
|
|
|
13537
13541
|
}
|
|
13538
13542
|
function isComputerExecHandle(value) {
|
|
13539
13543
|
const rec = record3(value);
|
|
13540
|
-
return Boolean(rec && typeof rec.processId === "string" && isRunning(rec));
|
|
13544
|
+
return Boolean(rec && typeof rec.processId === "string" && (isRunning(rec) || rec.truncated === true));
|
|
13541
13545
|
}
|
|
13542
13546
|
async function waitForComputerExec(executor, input, value, ctx) {
|
|
13543
13547
|
if (!processRead || !isComputerExecHandle(value))
|
|
@@ -13549,7 +13553,8 @@ async function waitForComputerExec(executor, input, value, ctx) {
|
|
|
13549
13553
|
if (stdoutPages)
|
|
13550
13554
|
advise(stdoutPages, ctx);
|
|
13551
13555
|
const deadline = Date.now() + (typeof input.timeout === "number" && Number.isFinite(input.timeout) ? input.timeout : DEFAULT_PROCESS_DEADLINE_MS);
|
|
13552
|
-
advise(`Process ${String(latest.processId)} is still running; polling computer_process_read.
|
|
13556
|
+
advise(isRunning(latest) ? `Process ${String(latest.processId)} is still running; polling computer_process_read.
|
|
13557
|
+
` : `Process ${String(latest.processId)} has unread output; polling computer_process_read.
|
|
13553
13558
|
`, ctx);
|
|
13554
13559
|
while ((isRunning(latest) || latest.truncated === true) && Date.now() < deadline) {
|
|
13555
13560
|
await sleep(POLL_MS);
|
package/package.json
CHANGED