@lambdacurry/arbor 0.22.31 → 0.22.32

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 +17 -4
  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.31",
5
+ version: "0.22.32",
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",
@@ -9981,6 +9981,11 @@ var update = object({
9981
9981
  var shapeIds = array(shapeId).min(1).max(TLDRAW_EXEC_MAX_OPERATIONS);
9982
9982
  var diagramKey = string2().min(1).max(80).describe("caller-meaningful node key; returned as the alias for its generated tldraw shape id");
9983
9983
  var diagramLabel = string2().min(1).max(160);
9984
+ var connect = object({
9985
+ op: literal("connect"),
9986
+ sourceId: shapeId.describe("existing native shape to bind the arrow start to"),
9987
+ targetId: shapeId.describe("existing native shape to bind the arrow end to")
9988
+ }).strict();
9984
9989
  var diagram = object({
9985
9990
  op: literal("diagram"),
9986
9991
  direction: _enum(["LR", "RL", "TB", "BT"]).describe("graph reading direction: left/right or top/bottom"),
@@ -10013,6 +10018,7 @@ var TLDRAW_EXEC_OPERATION_SCHEMA = discriminatedUnion("op", [
10013
10018
  ids: shapeIds.min(2),
10014
10019
  groupId: shapeId.optional()
10015
10020
  }).strict(),
10021
+ connect,
10016
10022
  diagram
10017
10023
  ]);
10018
10024
  var TLDRAW_EXEC_OPERATIONS_SCHEMA = array(TLDRAW_EXEC_OPERATION_SCHEMA).min(1).max(TLDRAW_EXEC_MAX_OPERATIONS).superRefine((operations, ctx) => {
@@ -10044,6 +10050,13 @@ var TLDRAW_EXEC_OPERATIONS_SCHEMA = array(TLDRAW_EXEC_OPERATION_SCHEMA).min(1).m
10044
10050
  seen.add(id);
10045
10051
  });
10046
10052
  }
10053
+ if (operation.op === "connect" && operation.sourceId === operation.targetId) {
10054
+ ctx.addIssue({
10055
+ code: "custom",
10056
+ message: "connect self-loops are not supported",
10057
+ path: [index, "targetId"]
10058
+ });
10059
+ }
10047
10060
  if (operation.op === "diagram") {
10048
10061
  const previousNodeTotal = totalDiagramNodes;
10049
10062
  const previousEdgeTotal = totalDiagramEdges;
@@ -12345,7 +12358,7 @@ var ACTION_DEFINITIONS = [
12345
12358
  {
12346
12359
  name: "tldraw_exec",
12347
12360
  title: "Run a one-shot tldraw program",
12348
- description: `Modify the current live tldraw board with preferred declarative operations or bounded JavaScript, including a graph-scoped diagram operation that lays out keyed nodes and native bound edges without caller-supplied coordinates, then return a durable execution receipt; use IDs from a fresh observe, reacquire this current schema after compaction, and never replay an unknown result. First use: read the tldraw guide at ${AGENT_GUIDE_URLS.tldraw}.`,
12361
+ description: `Modify the current live tldraw board with preferred declarative operations or bounded JavaScript, including graph-scoped diagram layout and safe native bound connect between shape IDs without caller-supplied connector geometry, then return a durable execution receipt; use IDs from a fresh observe, reacquire this current schema after compaction, and never replay an unknown result. First use: read the tldraw guide at ${AGENT_GUIDE_URLS.tldraw}.`,
12349
12362
  inputSchema: {
12350
12363
  artifactId: string2().describe("the tldraw Artifact, art_…"),
12351
12364
  code: string2().min(1).max(1e5).optional().describe("advanced script source; mutually exclusive with operations"),
@@ -14288,7 +14301,7 @@ function bareConnectUrl(apiUrl, returnedUrl) {
14288
14301
  return fallback;
14289
14302
  }
14290
14303
  }
14291
- async function connect(opts) {
14304
+ async function connect2(opts) {
14292
14305
  if (defaultConfigOverwriteBlocked()) {
14293
14306
  throw new Error(DEFAULT_TOKEN_OVERWRITE_REFUSAL);
14294
14307
  }
@@ -14615,7 +14628,7 @@ async function main() {
14615
14628
  const key = positionals[1];
14616
14629
  if (!key)
14617
14630
  throw new UsageError("usage: arbor connect <pairing-key> [--url <api-url>]");
14618
- await connect({ pairingKey: key, url: stringFlag(flags.url, "url") });
14631
+ await connect2({ pairingKey: key, url: stringFlag(flags.url, "url") });
14619
14632
  advise(`
14620
14633
  ✓ Connected (${getConfigPath()}).
14621
14634
  `, ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdacurry/arbor",
3
- "version": "0.22.31",
3
+ "version": "0.22.32",
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",