@lambdacurry/arbor 0.24.12 → 0.24.14
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 +49 -1
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -646,7 +646,7 @@ function dispositionFilename(value) {
|
|
|
646
646
|
// package.json
|
|
647
647
|
var package_default = {
|
|
648
648
|
name: "@lambdacurry/arbor",
|
|
649
|
-
version: "0.24.
|
|
649
|
+
version: "0.24.14",
|
|
650
650
|
description: "The Arbor CLI — a shared workspace for people and agents. The human + headless-agent write path over Arbor's guarded operation surface.",
|
|
651
651
|
keywords: [
|
|
652
652
|
"agents",
|
|
@@ -8559,6 +8559,7 @@ var computerRuns = sqliteTable("computer_runs", {
|
|
|
8559
8559
|
execution: text("isolation").$type().notNull(),
|
|
8560
8560
|
workspaceDir: text("workspace_dir").notNull(),
|
|
8561
8561
|
baseSnapshotId: text("base_snapshot_id"),
|
|
8562
|
+
sourceRunId: text("source_run_id"),
|
|
8562
8563
|
currentSnapshotId: text("current_snapshot_id"),
|
|
8563
8564
|
runtimeState: text("runtime_state").$type().notNull().default("shared"),
|
|
8564
8565
|
runtimeUpdatedAt: ts("runtime_updated_at"),
|
|
@@ -8755,6 +8756,8 @@ var computerRunStarts = sqliteTable("computer_run_starts", {
|
|
|
8755
8756
|
checkpointParentSnapshotId: text("checkpoint_parent_snapshot_id").references(() => computerSnapshots.id),
|
|
8756
8757
|
snapshotId: text("snapshot_id").references(() => computerSnapshots.id),
|
|
8757
8758
|
runId: text("run_id").references(() => computerRuns.id),
|
|
8759
|
+
sourceRunId: text("source_run_id").references(() => computerRuns.id),
|
|
8760
|
+
sourceSnapshotId: text("source_snapshot_id").references(() => computerSnapshots.id),
|
|
8758
8761
|
createdAt: ts("created_at").notNull(),
|
|
8759
8762
|
updatedAt: ts("updated_at").notNull()
|
|
8760
8763
|
}, (t) => ({
|
|
@@ -10378,6 +10381,7 @@ function buildOutputSchemas() {
|
|
|
10378
10381
|
repositories: computerRunGitStartRepositories.describe("the inherited base's repositories before any requested revision was checked out"),
|
|
10379
10382
|
materialized: looseObject({ repositories: computerRunGitStartRepositories }).optional().describe("the workspace as admitted, at each requested revision; read this, when present, for what the Run started on")
|
|
10380
10383
|
});
|
|
10384
|
+
const computerRunSource = object({ runId: id, snapshotId: id.nullable() }).optional().describe("this Run began at source.runId's durable checkpoint snapshotId");
|
|
10381
10385
|
const computerRun = looseObject({
|
|
10382
10386
|
runId: id,
|
|
10383
10387
|
computerId: id,
|
|
@@ -10389,6 +10393,7 @@ function buildOutputSchemas() {
|
|
|
10389
10393
|
execution: _enum(["shared", "isolated"]),
|
|
10390
10394
|
workspaceDir: string2(),
|
|
10391
10395
|
baseSnapshotId: id.nullable(),
|
|
10396
|
+
source: computerRunSource,
|
|
10392
10397
|
currentSnapshotId: id.nullable().optional(),
|
|
10393
10398
|
runtime: computerRunRuntime,
|
|
10394
10399
|
gitStart: computerRunGitStart.nullable().optional(),
|
|
@@ -10446,6 +10451,7 @@ function buildOutputSchemas() {
|
|
|
10446
10451
|
execution: _enum(["shared", "isolated"]),
|
|
10447
10452
|
workspace: looseObject({ dir: string2() }),
|
|
10448
10453
|
baseSnapshotId: id.nullable(),
|
|
10454
|
+
source: computerRunSource,
|
|
10449
10455
|
runtime: computerRunRuntime,
|
|
10450
10456
|
gitStart: computerRunGitStart.nullable().optional(),
|
|
10451
10457
|
durability: computerRunDurability,
|
|
@@ -11703,6 +11709,7 @@ function buildOutputSchemas() {
|
|
|
11703
11709
|
runId: id,
|
|
11704
11710
|
replayed: boolean2(),
|
|
11705
11711
|
execution: _enum(["shared", "isolated"]),
|
|
11712
|
+
source: computerRunSource,
|
|
11706
11713
|
durability: computerRunDurabilitySummary,
|
|
11707
11714
|
status: string2()
|
|
11708
11715
|
}),
|
|
@@ -11714,6 +11721,16 @@ function buildOutputSchemas() {
|
|
|
11714
11721
|
parentCheckpoint: string2().optional(),
|
|
11715
11722
|
parentAsleep: boolean2().optional()
|
|
11716
11723
|
}),
|
|
11724
|
+
computer_run_promote: looseObject({
|
|
11725
|
+
snapshotId: id,
|
|
11726
|
+
previousSnapshotId: id,
|
|
11727
|
+
computerId: id,
|
|
11728
|
+
generation: number2(),
|
|
11729
|
+
sourceRunId: id,
|
|
11730
|
+
sourceSnapshotId: id,
|
|
11731
|
+
promotedAt: string2(),
|
|
11732
|
+
replayed: boolean2()
|
|
11733
|
+
}),
|
|
11717
11734
|
computer_run_finish: looseObject({
|
|
11718
11735
|
runId: id,
|
|
11719
11736
|
status: string2(),
|
|
@@ -12318,6 +12335,7 @@ var OUTPUT_SHAPERS = {
|
|
|
12318
12335
|
["runId", run.runId],
|
|
12319
12336
|
["replayed", result.replayed],
|
|
12320
12337
|
["execution", run.execution],
|
|
12338
|
+
["source", selected(run.source, ["runId", "snapshotId"])],
|
|
12321
12339
|
[
|
|
12322
12340
|
"durability",
|
|
12323
12341
|
defined([
|
|
@@ -12341,6 +12359,19 @@ var OUTPUT_SHAPERS = {
|
|
|
12341
12359
|
["parentAsleep", result.parentAsleep]
|
|
12342
12360
|
]);
|
|
12343
12361
|
},
|
|
12362
|
+
computer_run_promote: (result) => {
|
|
12363
|
+
const promotion = record2(result.promotion) ?? {};
|
|
12364
|
+
return defined([
|
|
12365
|
+
["snapshotId", promotion.snapshotId],
|
|
12366
|
+
["previousSnapshotId", promotion.previousSnapshotId],
|
|
12367
|
+
["computerId", promotion.computerId],
|
|
12368
|
+
["generation", promotion.generation],
|
|
12369
|
+
["sourceRunId", promotion.sourceRunId],
|
|
12370
|
+
["sourceSnapshotId", promotion.sourceSnapshotId],
|
|
12371
|
+
["promotedAt", promotion.promotedAt],
|
|
12372
|
+
["replayed", result.replayed]
|
|
12373
|
+
]);
|
|
12374
|
+
},
|
|
12344
12375
|
computer_run_finish: (result) => {
|
|
12345
12376
|
const run = record2(result.run) ?? {};
|
|
12346
12377
|
return defined([
|
|
@@ -12577,6 +12608,7 @@ var MCP_TOOL_ANNOTATIONS = {
|
|
|
12577
12608
|
computer_reprovision: destructiveIdempotent,
|
|
12578
12609
|
computer_run_start: idempotent,
|
|
12579
12610
|
computer_run_suspend: idempotent,
|
|
12611
|
+
computer_run_promote: idempotent,
|
|
12580
12612
|
computer_repo_work_status: readOnly,
|
|
12581
12613
|
computer_run_finish: idempotent,
|
|
12582
12614
|
computer_run_receipt: readOnly,
|
|
@@ -13767,6 +13799,8 @@ var ACTION_DEFINITIONS = [
|
|
|
13767
13799
|
repository: string2().describe("configured GitHub repository as canonical owner/name"),
|
|
13768
13800
|
head: string2().regex(/^[0-9a-fA-F]{40}(?:[0-9a-fA-F]{24})?$/).describe("exact 40- or 64-hex Git object id required before caller work")
|
|
13769
13801
|
})).max(32).optional().describe("optional exact repository revisions the isolated workspace must prove before caller work"),
|
|
13802
|
+
sourceRunId: string2().optional().describe("fork: a new isolated write Run restored from YOUR same-Thread Run's last durable checkpoint (its last suspend or admission; edits since are not included), run_…; active, suspended, or ended within 14 days or Keep; requires threadId; the source Run is never changed"),
|
|
13803
|
+
sourceSnapshotId: string2().optional().describe("with sourceRunId: the exact checkpoint you expect (the source receipt's runtime.currentSnapshotId), cps_…; refused if it moved"),
|
|
13770
13804
|
idempotencyKey: string2().min(1).max(200).describe("stable key for this ONE logical Run-start request; reuse it unchanged for retries")
|
|
13771
13805
|
},
|
|
13772
13806
|
surfaces: ["computer-mcp", "computer-cli"],
|
|
@@ -13784,6 +13818,20 @@ var ACTION_DEFINITIONS = [
|
|
|
13784
13818
|
toolset: "loop",
|
|
13785
13819
|
run: forward("computer_runtime.run_suspend")
|
|
13786
13820
|
},
|
|
13821
|
+
{
|
|
13822
|
+
name: "computer_run_promote",
|
|
13823
|
+
title: "Promote a Run checkpoint",
|
|
13824
|
+
description: "Make YOUR active isolated Run's last saved checkpoint (not later edits) the shared Thread Computer's next head, fast-forward only; default new isolated Runs and the parent's next wake start from it. Refused with nothing changed unless the Run started from expectedHeadSnapshotId, the head is unmoved, and the shared Computer is asleep with no open shared Run or pending work; never merges.",
|
|
13825
|
+
inputSchema: {
|
|
13826
|
+
runId: string2().describe("YOUR active isolated WRITE Run whose checkpoint to promote, run_…"),
|
|
13827
|
+
sourceSnapshotId: string2().describe("the exact checkpoint you expect to promote (the Run receipt's runtime.currentSnapshotId), cps_…; refused if it moved"),
|
|
13828
|
+
expectedHeadSnapshotId: string2().describe("the shared checkpoint head this Run started from and will replace (the Run's baseSnapshotId), cps_…; refused if the head moved"),
|
|
13829
|
+
idempotencyKey: string2().min(1).max(200).describe("stable key for this ONE logical promotion; a retry with the same inputs returns the original result")
|
|
13830
|
+
},
|
|
13831
|
+
surfaces: ["computer-mcp", "computer-cli"],
|
|
13832
|
+
toolset: "loop",
|
|
13833
|
+
run: forward("computer_runtime.run_promote")
|
|
13834
|
+
},
|
|
13787
13835
|
{
|
|
13788
13836
|
name: "computer_repo_work_status",
|
|
13789
13837
|
title: "Inspect repository finish state",
|
package/package.json
CHANGED