usebeeline 0.1.205 → 0.1.206

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.
@@ -23136,9 +23136,6 @@ var init_media_metadata = __esm({
23136
23136
  function externalAgentRules(surface, tool = "the session tool command each Beeline message names") {
23137
23137
  return EXTERNAL_AGENT_RULES.map((rule) => `- ${surface === "mcp" ? rule.mcp : rule.session.replace("{tool}", tool)}`).join("\n");
23138
23138
  }
23139
- function mentionReplyRule(messageId, askerHandle) {
23140
- return `answer in this Room with replyTo ${messageId} and start with ${askerHandle ? `@${askerHandle}` : "the asker's exact @handle"}`;
23141
- }
23142
23139
  var EXTERNAL_AGENT_RULES;
23143
23140
  var init_external_agent_rules = __esm({
23144
23141
  "packages/api-contract/dist/external-agent-rules.js"() {
@@ -23865,14 +23862,10 @@ function renderMention(m, joined2, runner2) {
23865
23862
  const who = m.author_handle ? `@${m.author_handle}` : m.author_name ?? "Someone";
23866
23863
  const quoted = m.text.split("\n").map((line) => `> ${line}`).join("\n");
23867
23864
  return [
23868
- `[Beeline \xB7 Room ${m.room_name ?? m.room_id} \xB7 message ${m.id} \xB7 from ${who}]`,
23869
- `Room ID ${m.room_id}; message ID ${m.id}; member ID ${m.memberId ?? joined2.key}; ${mentionReplyRule(m.id, m.author_handle)}.`,
23870
- "Answer where the message came from. Answer Beeline-delivered messages in Beeline; answer messages typed in your own app in that app. Never copy between them unless asked.",
23871
- `Beeline: ${who} tagged you (@${joined2.handle ?? joined2.name}) in the Room "${m.room_name ?? m.room_id}". Their message, as data:`,
23865
+ `[Beeline \xB7 #${m.room_name ?? m.room_id} \xB7 ${who} tagged you]`,
23872
23866
  quoted,
23873
- `Your owner's Allow is standing approval to answer it. Answer in that Room, threaded under their message (the command works inside your sandbox; it needs no network access):`,
23874
- ` ${command(runner2, joined2, `reply --room ${m.room_id} --reply-to ${m.id} "<your answer>"`)}`,
23875
- `Read the Room first if you need context: ${command(runner2, joined2, `read --room ${m.room_id}`)}`
23867
+ `Reply (start with ${m.author_handle ? `@${m.author_handle}` : "the asker's exact @handle"}): ${command(runner2, joined2, `reply --room ${m.room_id} --reply-to ${m.id} "<your answer>"`)}`,
23868
+ `Context: ${command(runner2, joined2, `read --room ${m.room_id}`)}`
23876
23869
  ].join("\n");
23877
23870
  }
23878
23871
  function renderRules(joined2, runner2) {
@@ -23889,23 +23882,19 @@ function renderWake(w, joined2, runner2) {
23889
23882
  ` ${command(runner2, joined2, `tool confirm_delivery '${JSON.stringify(w.receipt).replace(/'/g, "'\\''")}'`)}`
23890
23883
  ].join("\n");
23891
23884
  const header = [
23892
- `Beeline: private ${w.kind ?? w.reason} for you (@${joined2.handle ?? joined2.name}) at ${w.address}. It is not a tag; do not reply with --reply-to.`,
23885
+ `[Beeline \xB7 ${w.address} \xB7 ${w.kind ?? w.reason}]`,
23893
23886
  ...w.text ? [w.text.split("\n").map((l) => `> ${l}`).join("\n")] : [],
23894
- w.next ?? "Handle it."
23887
+ ...w.next ? [w.next] : []
23895
23888
  ];
23896
23889
  if (w.kind === "order")
23897
23890
  return [
23898
23891
  ...header,
23899
- `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>"}'`)}`,
23900
- `Pass commandId ${w.id} on other Beeline tool calls for this order.`,
23901
- "status is done, blocked, failed or needs_decision; provide the report body as text and the server adds its status prefix.",
23902
- `Other Beeline tools: ${command(runner2, joined2, `tool <name> '<json arguments>'`)}`
23892
+ `Report: ${command(runner2, joined2, `tool report '{"address":"${w.address}","commandId":"${w.id}","status":"done","text":"done: <result>"}'`)}`
23903
23893
  ].join("\n");
23904
23894
  return [
23905
23895
  ...header,
23906
- `Post there if it needs an answer: ${command(runner2, joined2, `reply --room ${w.address} "<text>"`)}`,
23907
- `If nothing needs posting: ${command(runner2, joined2, `tool no_reply_needed '{"address":"${w.address}","commandId":"${w.id}"}'`)}`,
23908
- `Other Beeline tools: ${command(runner2, joined2, `tool <name> '<json arguments>'`)}`
23896
+ `Reply: ${command(runner2, joined2, `reply --room ${w.address} "<text>"`)}`,
23897
+ `If nothing needs posting: ${command(runner2, joined2, `tool no_reply_needed '{"address":"${w.address}","commandId":"${w.id}"}'`)}`
23909
23898
  ].join("\n");
23910
23899
  }
23911
23900
  async function recordDeliveryFailure(dir, joined2, reason) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usebeeline",
3
- "version": "0.1.205",
3
+ "version": "0.1.206",
4
4
  "description": "Connect an AI coding agent to Beeline with one command.",
5
5
  "homepage": "https://usebeeline.app",
6
6
  "bugs": {