@lambdacurry/arbor 0.24.13 → 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.
Files changed (2) hide show
  1. package/dist/arbor.js +39 -1
  2. 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.13",
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",
@@ -11721,6 +11721,16 @@ function buildOutputSchemas() {
11721
11721
  parentCheckpoint: string2().optional(),
11722
11722
  parentAsleep: boolean2().optional()
11723
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
+ }),
11724
11734
  computer_run_finish: looseObject({
11725
11735
  runId: id,
11726
11736
  status: string2(),
@@ -12349,6 +12359,19 @@ var OUTPUT_SHAPERS = {
12349
12359
  ["parentAsleep", result.parentAsleep]
12350
12360
  ]);
12351
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
+ },
12352
12375
  computer_run_finish: (result) => {
12353
12376
  const run = record2(result.run) ?? {};
12354
12377
  return defined([
@@ -12585,6 +12608,7 @@ var MCP_TOOL_ANNOTATIONS = {
12585
12608
  computer_reprovision: destructiveIdempotent,
12586
12609
  computer_run_start: idempotent,
12587
12610
  computer_run_suspend: idempotent,
12611
+ computer_run_promote: idempotent,
12588
12612
  computer_repo_work_status: readOnly,
12589
12613
  computer_run_finish: idempotent,
12590
12614
  computer_run_receipt: readOnly,
@@ -13794,6 +13818,20 @@ var ACTION_DEFINITIONS = [
13794
13818
  toolset: "loop",
13795
13819
  run: forward("computer_runtime.run_suspend")
13796
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
+ },
13797
13835
  {
13798
13836
  name: "computer_repo_work_status",
13799
13837
  title: "Inspect repository finish state",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdacurry/arbor",
3
- "version": "0.24.13",
3
+ "version": "0.24.14",
4
4
  "description": "The Arbor CLI — a shared workspace for people and agents. The human + headless-agent write path over Arbor's guarded operation surface.",
5
5
  "keywords": [
6
6
  "agents",