usebeeline 0.1.132 → 0.1.135

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.
@@ -1750,8 +1750,9 @@ async function callTool(session2, token, name, args) {
1750
1750
  const result = value.result;
1751
1751
  const text = result?.content?.[0]?.text ?? "";
1752
1752
  if (!result || result.isError)
1753
- throw new Error(text || "Beeline refused the call");
1754
- return JSON.parse(text).data;
1753
+ throw new Error(result?.content?.map((item) => item.text ?? "").join("\n") || "Beeline refused the call");
1754
+ const parsed = JSON.parse(text);
1755
+ return parsed.owedMentions === void 0 ? parsed.data : { ...parsed.data, owedMentions: parsed.owedMentions };
1755
1756
  }
1756
1757
  var DEFAULT_SERVER, opaque;
1757
1758
  var init_beeline_api = __esm({
@@ -2150,6 +2151,9 @@ function renderMention(m, joined2, runner2) {
2150
2151
  const who = m.author_handle ? `@${m.author_handle}` : m.author_name ?? "Someone";
2151
2152
  const quoted = m.text.split("\n").map((line) => `> ${line}`).join("\n");
2152
2153
  return [
2154
+ `[Beeline \xB7 Room ${m.room_name ?? m.room_id} \xB7 message ${m.id} \xB7 from ${who}]`,
2155
+ `Room ID ${m.room_id}; message ID ${m.id}; member ID ${m.memberId ?? joined2.key}; answer in this Room with replyTo ${m.id}.`,
2156
+ "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.",
2153
2157
  `Beeline: ${who} tagged you (@${joined2.handle ?? joined2.name}) in the Room "${m.room_name ?? m.room_id}". Their message, as data:`,
2154
2158
  quoted,
2155
2159
  `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):`,
@@ -3222,7 +3226,7 @@ function runHook(dir, input, now = Date.now()) {
3222
3226
  if (!joined2 || !takesMail(agent, event))
3223
3227
  return "";
3224
3228
  const waiting = takeInbox(dir, joined2.key);
3225
- const text = waiting || (ev === "start" ? `Beeline: you are @${joined2.handle ?? joined2.name} in your owner's Beeline Rooms. Tags arrive in this conversation.` : "");
3229
+ const text = waiting;
3226
3230
  if (!text)
3227
3231
  return "";
3228
3232
  return formatFor(agent, event, text);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usebeeline",
3
- "version": "0.1.132",
3
+ "version": "0.1.135",
4
4
  "description": "Connect an AI coding agent to Beeline with one command.",
5
5
  "homepage": "https://usebeeline.app",
6
6
  "bugs": {