@lambdacurry/arbor 0.22.38 → 0.22.40

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 +25 -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.38",
5
+ version: "0.22.40",
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",
@@ -6685,6 +6685,7 @@ var computerRuns = sqliteTable("computer_runs", {
6685
6685
  runtimeState: text("runtime_state").$type().notNull().default("shared"),
6686
6686
  runtimeUpdatedAt: ts("runtime_updated_at"),
6687
6687
  gitStart: text("git_start", { mode: "json" }).$type(),
6688
+ f1Authority: text("f1_authority", { mode: "json" }).$type(),
6688
6689
  finishRequest: text("finish_request", { mode: "json" }).$type(),
6689
6690
  status: text("status").$type().notNull().default("active"),
6690
6691
  label: text("label"),
@@ -7609,6 +7610,15 @@ var ORG_ADMIN_CONTAINMENT_PERMISSIONS = new Set([
7609
7610
 
7610
7611
  // ../core/src/ops/computer-run.ts
7611
7612
  var COMPUTER_RUN_START_CHECKPOINT_RESERVATION_STALE_MS = 12 * 60 * 1000;
7613
+ var COMPUTER_RUN_F1_FINAL_FAILURE_CODES = new Set([
7614
+ "run.provision.lifecycle_capacity_blocked",
7615
+ "run.provision.capacity_blocked",
7616
+ "run.provision.attempts_exhausted",
7617
+ "run.provision.preflight_failed",
7618
+ "run.provision.reconciliation_failed",
7619
+ "run.provision.owner_unavailable",
7620
+ "run.provision.provider_unavailable"
7621
+ ]);
7612
7622
  var TERMINAL = new Set(["finished", "failed", "cancelled"]);
7613
7623
  var RUN_LIFECYCLE_TYPES = new Set(["run.started", "run.finished", "run.failed", "run.cancelled"]);
7614
7624
  var COMPUTER_RUN_ACTIVITY_LABEL_MAX = 120;
@@ -9314,7 +9324,16 @@ var MCP_OUTPUT_SCHEMAS = {
9314
9324
  })
9315
9325
  }),
9316
9326
  computer_run_receipt: looseObject({
9317
- receipt: computerRunReceipt2
9327
+ receipt: union([
9328
+ computerRunReceipt2,
9329
+ object({
9330
+ runStartId: id,
9331
+ runId: id,
9332
+ runCreated: literal(false),
9333
+ status: literal("provisioning"),
9334
+ phase: literal("run.admission")
9335
+ })
9336
+ ])
9318
9337
  }),
9319
9338
  computer_runs: looseObject({
9320
9339
  computerId: id,
@@ -10985,7 +11004,7 @@ var ACTION_DEFINITIONS = [
10985
11004
  {
10986
11005
  name: "computer_run_start",
10987
11006
  title: "Start a run",
10988
- description: `Start one bounded unit of work by threadId: write defaults to an isolated Run from the Thread snapshot without booting the parent; shared/read Runs use the live parent; idempotencyKey recovers zero-or-one Run after response loss, and failures return runId for computer_run_receipt. First use: read the Computer guide at ${AGENT_GUIDE_URLS.computer}.`,
11007
+ description: `Start an isolated write Run or shared/read Run with one idempotencyKey; a pending admission returns runStartId for receipt observation while the lifecycle owner continues independently, and caller work waits for admission. First use: read the Computer guide at ${AGENT_GUIDE_URLS.computer}.`,
10989
11008
  inputSchema: {
10990
11009
  threadId: string2().optional().describe("the Thread whose Computer this Run works in, thr_…; the canonical Run-first front door"),
10991
11010
  computerSessionId: string2().optional().describe("legacy compatibility alternative to threadId: an existing parent computerSessionId, cms_…"),
@@ -11041,9 +11060,10 @@ var ACTION_DEFINITIONS = [
11041
11060
  {
11042
11061
  name: "computer_run_receipt",
11043
11062
  title: "Read a run receipt",
11044
- description: "Read a Run's durable receipt, including finishRequest, derived finishContinuation, Run-owned operation/activity state, and compact providerLifecycle. A verified pending continuation names the stage the existing owner is retrying with callerAction none; reads never advance finish or rewrite terminal reasonCode, so use this instead of parent computer_status for compact history.",
11063
+ description: "Read with exactly one of runId or runStartId: observe pending admission, finish continuation, Run-owned operation/activity state, and providerLifecycle instead of parent computer_status. Reads never drive admission or finish; the existing lifecycle owner continues independently.",
11045
11064
  inputSchema: {
11046
- runId: string2().describe("the run to read, run_ (from computer_run_start or computer_runs)")
11065
+ runId: string2().optional().describe("the Run to read, run_…; provide exactly one of runId or runStartId"),
11066
+ runStartId: string2().optional().describe("the pending or linked RunStart to read, rsr_…; alternative to runId")
11047
11067
  },
11048
11068
  surfaces: ["computer-mcp", "computer-cli"],
11049
11069
  toolset: "loop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdacurry/arbor",
3
- "version": "0.22.38",
3
+ "version": "0.22.40",
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",