usebeeline 0.1.249-rc.5 → 0.1.249-rc.7

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/usebeeline.mjs +80 -48
  2. package/package.json +1 -1
@@ -1742,7 +1742,9 @@ function privateSocketPath(key) {
1742
1742
  async function preparePrivateSocketDirectory(path) {
1743
1743
  const directory = dirname4(path);
1744
1744
  await mkdir3(directory, { recursive: true, mode: 448 });
1745
- const entry = await lstat4(directory);
1745
+ assertPrivateSocketDirectory(directory, await lstat4(directory));
1746
+ }
1747
+ function assertPrivateSocketDirectory(directory, entry) {
1746
1748
  if (!entry.isDirectory() || entry.uid !== process.getuid() || (entry.mode & 63) !== 0)
1747
1749
  throw new Error(`expected a private helper control directory: ${directory}`);
1748
1750
  }
@@ -2321,6 +2323,13 @@ var init_agent_access = __esm({
2321
2323
  }
2322
2324
  });
2323
2325
 
2326
+ // packages/api-contract/dist/activity-item.js
2327
+ var init_activity_item = __esm({
2328
+ "packages/api-contract/dist/activity-item.js"() {
2329
+ "use strict";
2330
+ }
2331
+ });
2332
+
2324
2333
  // packages/api-contract/dist/phone-types-room-live-delta.js
2325
2334
  var init_phone_types_room_live_delta = __esm({
2326
2335
  "packages/api-contract/dist/phone-types-room-live-delta.js"() {
@@ -2886,10 +2895,6 @@ var init_system_message_catalog_daemon_service = __esm({
2886
2895
  parts: ["a Stripe payment"],
2887
2896
  variables: []
2888
2897
  },
2889
- "repository-onboarding.suggested-work": {
2890
- parts: ["suggested work"],
2891
- variables: []
2892
- },
2893
2898
  "repository-onboarding.offered-a-repository": {
2894
2899
  parts: ["offered a repository"],
2895
2900
  variables: []
@@ -2926,6 +2931,26 @@ var init_system_message_catalog_daemon_service = __esm({
2926
2931
  parts: ["reopened pull request"],
2927
2932
  variables: []
2928
2933
  },
2934
+ "repository-subscription-line.pushed-to": {
2935
+ parts: ["pushed to"],
2936
+ variables: []
2937
+ },
2938
+ "repository-subscription-line.completed-workflow": {
2939
+ parts: ["completed workflow"],
2940
+ variables: []
2941
+ },
2942
+ "repository-subscription-line.completed-check-suite": {
2943
+ parts: ["completed check suite"],
2944
+ variables: []
2945
+ },
2946
+ "repository-subscription-line.completed-check": {
2947
+ parts: ["completed check"],
2948
+ variables: []
2949
+ },
2950
+ "repository-subscription-line.published-release": {
2951
+ parts: ["published release"],
2952
+ variables: []
2953
+ },
2929
2954
  "repository-subscription-line.starred": {
2930
2955
  parts: ["starred"],
2931
2956
  variables: []
@@ -3997,7 +4022,7 @@ var init_vault_save = __esm({
3997
4022
  function isPerItemEventKind(value) {
3998
4023
  return PER_ITEM_EVENT_KINDS.includes(value);
3999
4024
  }
4000
- var SYSTEM_LINE_SEPARATOR, SERVER_EVENT_KINDS, PER_ITEM_EVENT_KINDS, SUBSCRIBABLE_EVENT_KINDS, AGENT_EVENT_SLUG_MAX_LENGTH, AGENT_KIND;
4025
+ var SYSTEM_LINE_SEPARATOR, SERVER_EVENT_KINDS, PER_ITEM_EVENT_KINDS, SUBSCRIBABLE_EVENT_KINDS, ROOM_EVENT_REPLACEMENT_KINDS, AGENT_EVENT_SLUG_MAX_LENGTH, AGENT_KIND;
4001
4026
  var init_system_events = __esm({
4002
4027
  "packages/api-contract/dist/system-events.js"() {
4003
4028
  "use strict";
@@ -4008,6 +4033,7 @@ var init_system_events = __esm({
4008
4033
  "left",
4009
4034
  "schedule-ran",
4010
4035
  "corner-opened",
4036
+ "corner-closed",
4011
4037
  "check-passed",
4012
4038
  "check-failed",
4013
4039
  "merged",
@@ -4033,7 +4059,8 @@ var init_system_events = __esm({
4033
4059
  "subscription-fired",
4034
4060
  "computer-session-activity"
4035
4061
  ];
4036
- SUBSCRIBABLE_EVENT_KINDS = SERVER_EVENT_KINDS.filter((kind) => !isPerItemEventKind(kind) && kind !== "merged");
4062
+ SUBSCRIBABLE_EVENT_KINDS = SERVER_EVENT_KINDS.filter((kind) => !isPerItemEventKind(kind));
4063
+ ROOM_EVENT_REPLACEMENT_KINDS = SUBSCRIBABLE_EVENT_KINDS.filter((kind) => kind !== "merged" && kind !== "corner-closed");
4037
4064
  AGENT_EVENT_SLUG_MAX_LENGTH = 40;
4038
4065
  AGENT_KIND = new RegExp(`^agent:[a-z0-9-]{1,${AGENT_EVENT_SLUG_MAX_LENGTH}}$`);
4039
4066
  }
@@ -4759,53 +4786,16 @@ var init_sidebar_preview = __esm({
4759
4786
  }
4760
4787
  });
4761
4788
 
4762
- // packages/api-contract/dist/mcp-starter-routine.js
4763
- var MCP_JOIN_ROUTINE, MCP_WORK_ROUTINE, MCP_STARTER_ROUTINE;
4764
- var init_mcp_starter_routine = __esm({
4765
- "packages/api-contract/dist/mcp-starter-routine.js"() {
4766
- "use strict";
4767
- MCP_JOIN_ROUTINE = `In your first reply after connection, do the following checks yourself; never ask the person to type tool names or run delivery setup. Ask them only to send a small tagged task in Beeline once you are ready.
4768
- First confirm that Beeline chats is connected in this conversation: call list_chats and confirm your name, @handle and chats.
4769
- Use the same sign-in provider as your existing Beeline account. GitHub and Google sign-in can lead to different Beeline accounts; verify the owner returned by list_chats before proceeding.
4770
- Use the member id and @handle returned in you by list_chats; do not invent a handle or assume another member with the same name is you. Confirm the returned owner @handle and intended chat with the person. If either differs, explain the mismatch and correct the connection or membership before claiming setup is complete. Renaming a profile does not change its owner or chat access.
4771
- Mention events and list_mentions cover this connected member across all its chats, not a typed handle or one chosen chat.
4772
- Continue this join by calling setup_delivery for this same member in the actual host surface and conversation. Locally running Codex, Claude Code and Antigravity App use its companion command to install the existing bridge; run it in the intended conversation. ChatGPT Work/Cloud and dots ask the host app to monitor Beeline's mention event and answer tags in their chat. The host handles MCP Events discovery, subscription and callback verification; events/list and events/subscribe are protocol methods, not tools for you to call. Do not invent a webhook URL.
4773
- Cursor and Grok use a webhook-triggered routine in the actual host, then set_webhook and setup_delivery with that same member. Never invent a receiver. Use only one delivery path. A joined member is connecting until a join probe arrives through that path and this host turn calls confirm_delivery with its nonce, generation and actual conversation id. An HTTP challenge or queue acceptance is not a host receipt. If the host has no inbound trigger, bind on_demand with setup_delivery and explain that it is reached on an on-demand visit, or through a schedule its owner already configured. For Meta Muse, ask your user to set up the Muse-owned one-minute task, saved-cursor/deduped queue, runtime credentials and event hook described at https://join.usebeeline.app/#muse-recipe. Beeline runs no polling process. Other hosts must not add recurring mention checks or automatic resends. Claude.ai in a browser cannot be woken there; give your user the Claude app or Claude Code join steps at https://join.usebeeline.app and complete delivery setup in that receiving app.`;
4774
- MCP_WORK_ROUTINE = `Read the chat first.
4775
- Answer with reply(id,text,ask?) using the delivery\u2019s messageId or commandId. New messages use message(address,to:{agent,place},text,ask?).
4776
- Replies wake only their recorded sender in the recorded place. Never add a tag to route a reply.
4777
- Answer task outcomes with reply(id,text,ask?); the task sender remains your commander.
4778
- Skip your own posts.
4779
- Act only on your own tags and wakes from list_mentions. Read other messages for context only; never reply to, acknowledge or claim work addressed to another member.
4780
- If a task is blocked or fails, reply to its message id with the exact error.`;
4781
- MCP_STARTER_ROUTINE = `${MCP_JOIN_ROUTINE}
4782
- ${MCP_WORK_ROUTINE}`;
4783
- }
4784
- });
4785
-
4786
- // packages/api-contract/dist/router-command.js
4787
- var init_router_command = __esm({
4788
- "packages/api-contract/dist/router-command.js"() {
4789
- "use strict";
4790
- }
4791
- });
4792
-
4793
- // packages/api-contract/dist/media-metadata.js
4794
- var init_media_metadata = __esm({
4795
- "packages/api-contract/dist/media-metadata.js"() {
4796
- "use strict";
4797
- }
4798
- });
4799
-
4800
4789
  // packages/api-contract/dist/external-agent-rules.js
4801
4790
  function externalAgentRules(surface, tool = "the session tool command each Beeline message names") {
4802
4791
  return EXTERNAL_AGENT_RULES.map((rule) => `- ${surface === "mcp" ? rule.mcp : rule.session.replace("{tool}", tool)}`).join("\n");
4803
4792
  }
4804
- var reviewRule, EXTERNAL_AGENT_RULES;
4793
+ var reviewRule, EXTERNAL_AGENT_TAG_RULE, EXTERNAL_AGENT_RULES;
4805
4794
  var init_external_agent_rules = __esm({
4806
4795
  "packages/api-contract/dist/external-agent-rules.js"() {
4807
4796
  "use strict";
4808
4797
  reviewRule = "As reviewer, read facets brief, pr and checks and include your findings in the verdict. To approve, call approve_merge on the exact head SHA with the review wake\u2019s address, commandId and verdict text. To request changes, use post once with the review wake\u2019s address and commandId. The server wakes the implementer with the result. The server requests review; never tag the reviewer. Never review work you implemented or authored.";
4798
+ EXTERNAL_AGENT_TAG_RULE = "Your Beeline owner is the person who added you. Their Allow is standing approval to answer a person who tags your exact @handle or sends you a direct message. If you can answer now, reply once with reply(id,text,ask?) to the recorded sender and place. If your own rules require another approval before you can answer a tag, reply once right away, for example \u201CGot it \u2014 checking with my owner.\u201D The acknowledgement authorizes no work. Reply again when you have an answer.";
4809
4799
  EXTERNAL_AGENT_RULES = [
4810
4800
  {
4811
4801
  id: "data",
@@ -4819,8 +4809,8 @@ var init_external_agent_rules = __esm({
4819
4809
  },
4820
4810
  {
4821
4811
  id: "tags",
4822
- mcp: "A person's message that tags your exact @handle is a request; your owner's Allow is standing approval to answer it. Answer once with reply(id,text,ask?), which returns to its recorded sender and place. A direct message to you is a request too.",
4823
- session: "A person's message that tags your exact @handle is a request; your owner's Allow is standing approval to answer it. Answer once with reply(id,text,ask?), which returns to its recorded sender and place. A direct message to you is a request too."
4812
+ mcp: EXTERNAL_AGENT_TAG_RULE,
4813
+ session: EXTERNAL_AGENT_TAG_RULE
4824
4814
  },
4825
4815
  {
4826
4816
  id: "messages",
@@ -4861,6 +4851,46 @@ var init_external_agent_rules = __esm({
4861
4851
  }
4862
4852
  });
4863
4853
 
4854
+ // packages/api-contract/dist/mcp-starter-routine.js
4855
+ var MCP_JOIN_ROUTINE, MCP_WORK_ROUTINE, MCP_STARTER_ROUTINE;
4856
+ var init_mcp_starter_routine = __esm({
4857
+ "packages/api-contract/dist/mcp-starter-routine.js"() {
4858
+ "use strict";
4859
+ init_external_agent_rules();
4860
+ MCP_JOIN_ROUTINE = `In your first reply after connection, do the following checks yourself; never ask the person to type tool names or run delivery setup. Ask them only to send a small tagged task in Beeline once you are ready.
4861
+ First confirm that Beeline chats is connected in this conversation: call list_chats and confirm your name, @handle and chats.
4862
+ Use the same sign-in provider as your existing Beeline account. GitHub and Google sign-in can lead to different Beeline accounts; verify the owner returned by list_chats before proceeding.
4863
+ Use the member id and @handle returned in you by list_chats; do not invent a handle or assume another member with the same name is you. Confirm the returned owner @handle and intended chat with the person. If either differs, explain the mismatch and correct the connection or membership before claiming setup is complete. Renaming a profile does not change its owner or chat access.
4864
+ Mention events and list_mentions cover this connected member across all its chats, not a typed handle or one chosen chat.
4865
+ Continue this join by calling setup_delivery for this same member in the actual host surface and conversation. Locally running Codex, Claude Code and Antigravity App use its companion command to install the existing bridge; run it in the intended conversation. ChatGPT Work/Cloud and dots ask the host app to monitor Beeline's mention event and answer tags in their chat. The host handles MCP Events discovery, subscription and callback verification; events/list and events/subscribe are protocol methods, not tools for you to call. Do not invent a webhook URL.
4866
+ Cursor and Grok use a webhook-triggered routine in the actual host, then set_webhook and setup_delivery with that same member. Never invent a receiver. Use only one delivery path. A joined member is connecting until a join probe arrives through that path and this host turn calls confirm_delivery with its nonce, generation and actual conversation id. An HTTP challenge or queue acceptance is not a host receipt. If the host has no inbound trigger, bind on_demand with setup_delivery and explain that it is reached on an on-demand visit, or through a schedule its owner already configured. For Meta Muse, ask your user to set up the Muse-owned one-minute task, saved-cursor/deduped queue, runtime credentials and event hook described at https://join.usebeeline.app/#muse-recipe. Beeline runs no polling process. Other hosts must not add recurring mention checks or automatic resends. Claude.ai in a browser cannot be woken there; give your user the Claude app or Claude Code join steps at https://join.usebeeline.app and complete delivery setup in that receiving app.`;
4867
+ MCP_WORK_ROUTINE = `Read the chat first.
4868
+ Answer with reply(id,text,ask?) using the delivery\u2019s messageId or commandId. New messages use message(address,to:{agent,place},text,ask?).
4869
+ Replies wake only their recorded sender in the recorded place. Never add a tag to route a reply.
4870
+ Answer task outcomes with reply(id,text,ask?); the task sender remains your commander.
4871
+ Skip your own posts.
4872
+ Act only on your own tags and wakes from list_mentions. Read other messages for context only; never reply to, acknowledge or claim work addressed to another member.
4873
+ If a task is blocked or fails, reply to its message id with the exact error.`;
4874
+ MCP_STARTER_ROUTINE = `${MCP_JOIN_ROUTINE}
4875
+ ${EXTERNAL_AGENT_TAG_RULE}
4876
+ ${MCP_WORK_ROUTINE}`;
4877
+ }
4878
+ });
4879
+
4880
+ // packages/api-contract/dist/router-command.js
4881
+ var init_router_command = __esm({
4882
+ "packages/api-contract/dist/router-command.js"() {
4883
+ "use strict";
4884
+ }
4885
+ });
4886
+
4887
+ // packages/api-contract/dist/media-metadata.js
4888
+ var init_media_metadata = __esm({
4889
+ "packages/api-contract/dist/media-metadata.js"() {
4890
+ "use strict";
4891
+ }
4892
+ });
4893
+
4864
4894
  // packages/api-contract/dist/mcp-muse-recipe.js
4865
4895
  var init_mcp_muse_recipe = __esm({
4866
4896
  "packages/api-contract/dist/mcp-muse-recipe.js"() {
@@ -4872,6 +4902,7 @@ var init_mcp_muse_recipe = __esm({
4872
4902
  var init_phone = __esm({
4873
4903
  "packages/api-contract/dist/phone.js"() {
4874
4904
  "use strict";
4905
+ init_activity_item();
4875
4906
  init_phone_types();
4876
4907
  init_model_choice();
4877
4908
  init_voice();
@@ -24447,6 +24478,7 @@ var init_agent_message_page = __esm({
24447
24478
  var init_daemon = __esm({
24448
24479
  "packages/api-contract/dist/daemon.js"() {
24449
24480
  "use strict";
24481
+ init_activity_item();
24450
24482
  init_daemon_operations();
24451
24483
  init_vault_save();
24452
24484
  init_reply_context();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usebeeline",
3
- "version": "0.1.249-rc.5",
3
+ "version": "0.1.249-rc.7",
4
4
  "description": "Connect an AI coding agent to Beeline with one command.",
5
5
  "homepage": "https://usebeeline.app",
6
6
  "bugs": {