usebeeline 0.1.158 → 0.1.160

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.
@@ -20591,16 +20591,12 @@ async function* memberStream(session2, token, signal, opened = () => {
20591
20591
  if (next.done)
20592
20592
  break;
20593
20593
  buffered += decoder.decode(next.value, { stream: true });
20594
- if (Buffer.byteLength(buffered) > 2 * 256 * 1024)
20595
- throw new Error("Beeline stream frame exceeds capacity");
20596
20594
  let end;
20597
20595
  while ((end = buffered.indexOf("\n")) >= 0) {
20598
20596
  const line = buffered.slice(0, end);
20599
20597
  buffered = buffered.slice(end + 1);
20600
20598
  if (!line)
20601
20599
  continue;
20602
- if (Buffer.byteLength(line) > 256 * 1024)
20603
- throw new Error("Beeline stream frame exceeds capacity");
20604
20600
  yield JSON.parse(line);
20605
20601
  }
20606
20602
  }
@@ -23567,8 +23563,8 @@ var init_external_agent_rules = __esm({
23567
23563
  },
23568
23564
  {
23569
23565
  id: "orders",
23570
- mcp: "For orders under wakes, pass their id as commandId on tool calls; finish with report at that address, not a plain message. Match status and text prefix: done:, blocked:, failed:, needs-decision:.",
23571
- session: "An order is private work from your commander. Pass its id as commandId on tool calls; finish with the delivered report command, not a plain reply. Match status and text prefix: done:, blocked:, failed:, needs-decision:."
23566
+ mcp: "For orders under wakes, pass their id as commandId on tool calls; finish with report at that address, not a plain message. Choose the terminal status and provide the report body as text; the server adds its status prefix.",
23567
+ session: "An order is private work from your commander. Pass its id as commandId on tool calls; finish with the delivered report command, not a plain reply. Choose the terminal status and provide the report body as text; the server adds its status prefix."
23572
23568
  },
23573
23569
  {
23574
23570
  id: "wakes",
@@ -23672,10 +23668,10 @@ function memberStreamFrame(value) {
23672
23668
  throw new Error("Invalid Beeline mention cursor");
23673
23669
  if (value.type === "checkpoint" && object(value.cursor) && typeof value.cursor.epoch === "string" && /^[a-f0-9]{32}$/.test(value.cursor.epoch) && Number.isSafeInteger(value.cursor.through) && Number(value.cursor.through) >= 0)
23674
23670
  return value;
23675
- if (value.type !== "delivery" || typeof value.deliveryId !== "string" || !value.deliveryId || value.deliveryId.length > 256 || !Array.isArray(value.mentions) || !Array.isArray(value.wakes) || value.mentions.length + value.wakes.length > 30)
23671
+ if (value.type !== "delivery" || typeof value.deliveryId !== "string" || !value.deliveryId || value.deliveryId.length > 256 || !Array.isArray(value.mentions) || !Array.isArray(value.wakes))
23676
23672
  throw new Error("Invalid Beeline delivery");
23677
23673
  for (const mention of value.mentions)
23678
- if (!object(mention) || typeof mention.id !== "string" || typeof mention.room_id !== "string" || typeof mention.text !== "string" || mention.text.length > 64e3)
23674
+ if (!object(mention) || typeof mention.id !== "string" || typeof mention.room_id !== "string" || typeof mention.text !== "string")
23679
23675
  throw new Error("Invalid Beeline mention");
23680
23676
  for (const wake of value.wakes)
23681
23677
  if (!object(wake) || typeof wake.id !== "string" || typeof wake.address !== "string" || typeof wake.reason !== "string" || typeof wake.createdAt !== "string" || wake.text !== void 0 && typeof wake.text !== "string")
@@ -24116,7 +24112,7 @@ function renderWake(w, joined2, runner2) {
24116
24112
  ...header,
24117
24113
  `Report the outcome to whoever ordered you (a plain post does not report): ${command(runner2, joined2, `tool report '{"address":"${w.address}","commandId":"${w.id}","status":"done","text":"done: <result>"}'`)}`,
24118
24114
  `Pass commandId ${w.id} on other Beeline tool calls for this order.`,
24119
- "status is done, blocked, failed or needs_decision, and text starts with the matching done:, blocked:, failed: or needs-decision:.",
24115
+ "status is done, blocked, failed or needs_decision; provide the report body as text and the server adds its status prefix.",
24120
24116
  `Other Beeline tools: ${command(runner2, joined2, `tool <name> '<json arguments>'`)}`
24121
24117
  ].join("\n");
24122
24118
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usebeeline",
3
- "version": "0.1.158",
3
+ "version": "0.1.160",
4
4
  "description": "Connect an AI coding agent to Beeline with one command.",
5
5
  "homepage": "https://usebeeline.app",
6
6
  "bugs": {