@lambdacurry/arbor 0.22.24 → 0.22.26

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 +26 -5
  2. 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.24",
5
+ version: "0.22.26",
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",
@@ -6636,6 +6636,7 @@ var computerRuns = sqliteTable("computer_runs", {
6636
6636
  runtimeState: text("runtime_state").$type().notNull().default("shared"),
6637
6637
  runtimeUpdatedAt: ts("runtime_updated_at"),
6638
6638
  gitStart: text("git_start", { mode: "json" }).$type(),
6639
+ finishRequest: text("finish_request", { mode: "json" }).$type(),
6639
6640
  status: text("status").$type().notNull().default("active"),
6640
6641
  label: text("label"),
6641
6642
  reason: text("reason"),
@@ -7976,6 +7977,21 @@ var computerRun = looseObject({
7976
7977
  startedAt: string2(),
7977
7978
  endedAt: string2().nullable()
7978
7979
  });
7980
+ var computerRunFinishRequest = looseObject({
7981
+ intentId: id,
7982
+ outcome: _enum(["finished", "failed", "cancelled"]),
7983
+ reason: string2().nullable(),
7984
+ discard: boolean2(),
7985
+ expectedCurrentSnapshotId: id,
7986
+ requestedAt: timestamp,
7987
+ updatedAt: timestamp,
7988
+ state: _enum(["pending", "rejected", "completed"]),
7989
+ phase: _enum(["quiescence", "git", "checkpoint", "release", "rejected"]),
7990
+ reasonCode: string2().nullable(),
7991
+ finishAssessment: computerRunFinishAssessment.nullable(),
7992
+ providerGeneration: number2().int().nonnegative().nullable(),
7993
+ releasedSnapshotId: id.nullable()
7994
+ });
7979
7995
  var computerRunReceipt2 = looseObject({
7980
7996
  runId: id,
7981
7997
  threadId: id,
@@ -7995,6 +8011,7 @@ var computerRunReceipt2 = looseObject({
7995
8011
  gitStart: computerRunGitStart.nullable().optional(),
7996
8012
  durability: computerRunDurability,
7997
8013
  finishAssessment: computerRunFinishAssessment.nullable(),
8014
+ finishRequest: computerRunFinishRequest.nullable(),
7998
8015
  status: _enum(["active", "finished", "failed", "cancelled"]),
7999
8016
  outcome: _enum(["finished", "failed", "cancelled"]).nullable(),
8000
8017
  reason: string2().nullable(),
@@ -9119,10 +9136,12 @@ var MCP_OUTPUT_SCHEMAS = {
9119
9136
  parentAsleep: boolean2().optional()
9120
9137
  }),
9121
9138
  computer_run_finish: looseObject({
9139
+ runId: id,
9122
9140
  status: string2(),
9123
9141
  replayed: boolean2(),
9124
9142
  durability: computerRunDurability,
9125
9143
  finishAssessment: computerRunFinishAssessment.nullable(),
9144
+ finishRequest: computerRunFinishRequest.nullable(),
9126
9145
  parent: object({
9127
9146
  checkpoint: string2().nullable(),
9128
9147
  stopped: boolean2(),
@@ -9606,10 +9625,12 @@ var OUTPUT_SHAPERS = {
9606
9625
  computer_run_finish: (result) => {
9607
9626
  const run = record2(result.run) ?? {};
9608
9627
  return defined([
9628
+ ["runId", run.runId],
9609
9629
  ["status", run.status],
9610
9630
  ["replayed", result.replayed],
9611
9631
  ["durability", run.durability],
9612
9632
  ["finishAssessment", result.finishAssessment],
9633
+ ["finishRequest", result.finishRequest ?? null],
9613
9634
  ["parent", result.parent]
9614
9635
  ]);
9615
9636
  },
@@ -10024,8 +10045,8 @@ ${ARBOR_FEEDBACK_GUIDANCE}
10024
10045
 
10025
10046
  1. ORIENT, CONFIGURE, AND AUTHORIZE. Start with provider-free get_computer(threadId) to inspect the effective inherited recipe, repository authorization, compatibility, recoverySafety, and durable lineage without contacting execution. Use set_organization_computer, set_space_computer, set_topic_computer, or set_thread_computer only when the corresponding complete sparse layer must be replaced; use github_connect_repository with a known installed id, exact owner/name, or canonical GitHub URL, or use github_repositories when browsing, to authorize repositories at the narrowest scope that should inherit them. If github_repositories looks stale, github_refresh_installation reconciles the cached inventory from GitHub. computer_run_start(threadId, mode) is the front door: it attaches durable identity itself and starts an isolated write Run from the Thread's base snapshot without booting the parent. Each returned repository entry includes verified root instruction pointers when that repo has an AGENTS.md: read surfaced repository instructions before substantial edits or verification, then check for a nearer nested AGENTS.md once the target path is known. Repo-local instructions/scripts/config beat guessed formatter, test, lint, or build commands.
10026
10047
  2. READ THE CAPABILITIES CARD, NOT THE BACKEND. runId is the one address: every runtime tool takes it, and the computerSessionId a Run carries is legacy input. computer_status(runId) describes the live PARENT Thread Computer behind a shared Run; it does not establish isolated Run activity, so use computer_run_receipt(runId) and computer_process_read for Run-owned work. Command-line utilities, including Git and package managers, run through computer_exec; check unfamiliar binaries with command -v.
10027
- 3. ONE RUN PER TASK. A write Run defaults to an isolated execution environment with its own filesystem, processes, ports, and /tmp while preserving /workspace paths; a read Run shares the parent. Pass runId to Run-aware tools. If a response is lost, recover the durable operation/process identity from computer_run_receipt and read it before retrying. computer_process_read and computer_process_terminate settle a provider-absent current-generation process from exact evidence; computer_run_suspend performs that bounded settlement internally and never replays unknown work. A still-active process returns a retryable busy state; an unknown current-generation mutation fail-closes. An isolated local commit or Preview is not Git publication; push coherent work and prove it with computer_repo_work_status before computer_run_finish destroys the final placement. discard=true with outcome failed or cancelled is the explicit choice to abandon unknown or proven non-durable work without replaying it.
10028
- 4. CHECKPOINT COMPLETE UNITS THROUGH THE RUN. computer_run_suspend(runId) checkpoints an intermediate complete unit — an isolated Run publishes its exact workspace and releases its Sandbox, a shared Run advances the parent lineage — and computer_run_finish(runId) makes the final one; finishing the last active shared Run also stops the parent. An isolated Run Preview is durable review output, not adoption or a checkpoint. The internal provider-handle publication operations are not agent tools.
10048
+ 3. ONE RUN PER TASK. A write Run defaults to an isolated execution environment with its own filesystem, processes, ports, and /tmp while preserving /workspace paths; a read Run shares the parent. Pass runId to Run-aware tools. If a response is lost, recover the durable operation/process identity from computer_run_receipt and read it before retrying. computer_process_read and computer_process_terminate settle a provider-absent current-generation process from exact evidence; computer_run_suspend performs that bounded settlement internally and never replays unknown work. A still-active process returns a retryable busy state; an unknown current-generation mutation fail-closes. An isolated local commit or Preview is not Git publication; push coherent work before computer_run_finish. discard=true with outcome failed or cancelled explicitly abandons Git work only after provider work is quiescent; it never overrides active or unknown execution.
10049
+ 4. CHECKPOINT COMPLETE UNITS THROUGH THE RUN. computer_run_suspend(runId) checkpoints an intermediate complete unit — an isolated Run publishes its exact workspace and releases its Sandbox, a shared Run advances the parent lineage — and computer_run_finish(runId) requests the final release; finishing the last active shared Run also stops the parent. An accepted isolated finish may return status active with finishRequest.state pending while the lifecycle owner preserves output, verifies Git, checkpoints, and releases without caller cleanup; one request is sufficient, and computer_run_receipt is an optional observation rather than a progress trigger. An isolated Run Preview is durable review output, not adoption or a checkpoint. The internal provider-handle publication operations are not agent tools.
10029
10050
  5. GIT AND GITHUB ARE ORDINARY COMMANDS AFTER AUTHORIZATION. Clone, fetch, pull, push, and gh run through computer_exec using a connected human's just-in-time ambient GitHub identity. Credentials never enter argv, workspace files, Git config, checkpoints, Events, logs, or receipts. A restored Computer deliberately keeps the checkout age of its snapshot, so fetch/pull before trusting remote state.
10030
10051
  6. VERIFY, PREVIEW, AND EXPORT. computer_verify captures a public URL directly without opening a project runtime. computer_publish_preview preserves immutable static output from either the parent or an active isolated write Run. computer_export moves bounded files into durable Thread Attachments; for a computer:// file Artifact asleep face, export the exact locator path .tldr and a same-Thread PNG, then use artifact set_snapshot. computer_export itself does not call set_snapshot; place returned Markdown exactly where the media belongs and cite the matching attachment ids.
10031
10052
  7. PACKAGE, DEPLOY, ACTIVATE, AND OPERATE APPS HERE. computer_publish_app_bundle creates the immutable executable bundle from verified parent bytes through a shared write Run: push isolated work, computer_run_start with execution shared, pull, then publish. For short-lived public Artifact experiments use preview_app_create/get/retire; for published Space Apps use app_create, app_config_apply, app_deploy, app_deployment_get, app_activate, app_get, app_fetch/app_request, app_rollback, app_set_access, app_reset_state/app_restore_state, and app_archive as one workflow-closed release surface. First-class Organization/Profile Secrets remain on Arbor's collaboration MCP because they are broader identity-owned resources; App configuration here references existing Secret ids and never accepts or returns secret material.
@@ -10801,7 +10822,7 @@ var ACTION_DEFINITIONS = [
10801
10822
  {
10802
10823
  name: "computer_run_finish",
10803
10824
  title: "Finish a run",
10804
- description: "Finish a Run with unread terminal output preserved for 30 days without caller drain; active/unknown work, failed preservation, incomplete Git discovery, or unsafe worktrees block release. The last shared Run stops the parent; to abandon an unknown or non-durable disposable Run, pass discard=true with outcome failed or cancelled and retry safely from its receipt.",
10825
+ description: "Request final Run release with unread terminal output preserved for 30 days. An isolated Run may return status active with finishRequest pending while its lifecycle owner proves quiescence, Git durability, checkpoint, and release without caller cleanup; send once, observe the receipt optionally, and use discard=true with failed or cancelled only to abandon Git after provider quiescence.",
10805
10826
  inputSchema: {
10806
10827
  runId: string2().describe("the runId returned by computer_run_start, run_…"),
10807
10828
  outcome: _enum(["finished", "failed", "cancelled"]).optional().describe("terminal outcome; defaults to finished"),
@@ -10815,7 +10836,7 @@ var ACTION_DEFINITIONS = [
10815
10836
  {
10816
10837
  name: "computer_run_receipt",
10817
10838
  title: "Read a run receipt",
10818
- description: "Inspect one Run's durable receipt during or after execution, including its Run-owned operation/activity state and a compact providerLifecycle journal (generation, last phase, typed reason) separate from command/process activity. Use this instead of parent computer_status; it returns compact history, not transcripts, and does not rewrite terminal reasonCode.",
10839
+ description: "Observe one Run's durable receipt during or after execution, including its finishRequest, Run-owned operation/activity state, and compact providerLifecycle journal; reading it never advances a pending finish. Use this instead of parent computer_status for compact history rather than transcripts; it does not rewrite terminal reasonCode.",
10819
10840
  inputSchema: {
10820
10841
  runId: string2().describe("the run to read, run_… (from computer_run_start or computer_runs)")
10821
10842
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdacurry/arbor",
3
- "version": "0.22.24",
3
+ "version": "0.22.26",
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",