usebeeline 0.1.249-rc.5 → 0.1.249-rc.6
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.
- package/dist/usebeeline.mjs +56 -42
- package/package.json +1 -1
package/dist/usebeeline.mjs
CHANGED
|
@@ -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
|
-
|
|
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"() {
|
|
@@ -4759,53 +4768,16 @@ var init_sidebar_preview = __esm({
|
|
|
4759
4768
|
}
|
|
4760
4769
|
});
|
|
4761
4770
|
|
|
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
4771
|
// packages/api-contract/dist/external-agent-rules.js
|
|
4801
4772
|
function externalAgentRules(surface, tool = "the session tool command each Beeline message names") {
|
|
4802
4773
|
return EXTERNAL_AGENT_RULES.map((rule) => `- ${surface === "mcp" ? rule.mcp : rule.session.replace("{tool}", tool)}`).join("\n");
|
|
4803
4774
|
}
|
|
4804
|
-
var reviewRule, EXTERNAL_AGENT_RULES;
|
|
4775
|
+
var reviewRule, EXTERNAL_AGENT_TAG_RULE, EXTERNAL_AGENT_RULES;
|
|
4805
4776
|
var init_external_agent_rules = __esm({
|
|
4806
4777
|
"packages/api-contract/dist/external-agent-rules.js"() {
|
|
4807
4778
|
"use strict";
|
|
4808
4779
|
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.";
|
|
4780
|
+
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
4781
|
EXTERNAL_AGENT_RULES = [
|
|
4810
4782
|
{
|
|
4811
4783
|
id: "data",
|
|
@@ -4819,8 +4791,8 @@ var init_external_agent_rules = __esm({
|
|
|
4819
4791
|
},
|
|
4820
4792
|
{
|
|
4821
4793
|
id: "tags",
|
|
4822
|
-
mcp:
|
|
4823
|
-
session:
|
|
4794
|
+
mcp: EXTERNAL_AGENT_TAG_RULE,
|
|
4795
|
+
session: EXTERNAL_AGENT_TAG_RULE
|
|
4824
4796
|
},
|
|
4825
4797
|
{
|
|
4826
4798
|
id: "messages",
|
|
@@ -4861,6 +4833,46 @@ var init_external_agent_rules = __esm({
|
|
|
4861
4833
|
}
|
|
4862
4834
|
});
|
|
4863
4835
|
|
|
4836
|
+
// packages/api-contract/dist/mcp-starter-routine.js
|
|
4837
|
+
var MCP_JOIN_ROUTINE, MCP_WORK_ROUTINE, MCP_STARTER_ROUTINE;
|
|
4838
|
+
var init_mcp_starter_routine = __esm({
|
|
4839
|
+
"packages/api-contract/dist/mcp-starter-routine.js"() {
|
|
4840
|
+
"use strict";
|
|
4841
|
+
init_external_agent_rules();
|
|
4842
|
+
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.
|
|
4843
|
+
First confirm that Beeline chats is connected in this conversation: call list_chats and confirm your name, @handle and chats.
|
|
4844
|
+
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.
|
|
4845
|
+
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.
|
|
4846
|
+
Mention events and list_mentions cover this connected member across all its chats, not a typed handle or one chosen chat.
|
|
4847
|
+
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.
|
|
4848
|
+
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.`;
|
|
4849
|
+
MCP_WORK_ROUTINE = `Read the chat first.
|
|
4850
|
+
Answer with reply(id,text,ask?) using the delivery\u2019s messageId or commandId. New messages use message(address,to:{agent,place},text,ask?).
|
|
4851
|
+
Replies wake only their recorded sender in the recorded place. Never add a tag to route a reply.
|
|
4852
|
+
Answer task outcomes with reply(id,text,ask?); the task sender remains your commander.
|
|
4853
|
+
Skip your own posts.
|
|
4854
|
+
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.
|
|
4855
|
+
If a task is blocked or fails, reply to its message id with the exact error.`;
|
|
4856
|
+
MCP_STARTER_ROUTINE = `${MCP_JOIN_ROUTINE}
|
|
4857
|
+
${EXTERNAL_AGENT_TAG_RULE}
|
|
4858
|
+
${MCP_WORK_ROUTINE}`;
|
|
4859
|
+
}
|
|
4860
|
+
});
|
|
4861
|
+
|
|
4862
|
+
// packages/api-contract/dist/router-command.js
|
|
4863
|
+
var init_router_command = __esm({
|
|
4864
|
+
"packages/api-contract/dist/router-command.js"() {
|
|
4865
|
+
"use strict";
|
|
4866
|
+
}
|
|
4867
|
+
});
|
|
4868
|
+
|
|
4869
|
+
// packages/api-contract/dist/media-metadata.js
|
|
4870
|
+
var init_media_metadata = __esm({
|
|
4871
|
+
"packages/api-contract/dist/media-metadata.js"() {
|
|
4872
|
+
"use strict";
|
|
4873
|
+
}
|
|
4874
|
+
});
|
|
4875
|
+
|
|
4864
4876
|
// packages/api-contract/dist/mcp-muse-recipe.js
|
|
4865
4877
|
var init_mcp_muse_recipe = __esm({
|
|
4866
4878
|
"packages/api-contract/dist/mcp-muse-recipe.js"() {
|
|
@@ -4872,6 +4884,7 @@ var init_mcp_muse_recipe = __esm({
|
|
|
4872
4884
|
var init_phone = __esm({
|
|
4873
4885
|
"packages/api-contract/dist/phone.js"() {
|
|
4874
4886
|
"use strict";
|
|
4887
|
+
init_activity_item();
|
|
4875
4888
|
init_phone_types();
|
|
4876
4889
|
init_model_choice();
|
|
4877
4890
|
init_voice();
|
|
@@ -24447,6 +24460,7 @@ var init_agent_message_page = __esm({
|
|
|
24447
24460
|
var init_daemon = __esm({
|
|
24448
24461
|
"packages/api-contract/dist/daemon.js"() {
|
|
24449
24462
|
"use strict";
|
|
24463
|
+
init_activity_item();
|
|
24450
24464
|
init_daemon_operations();
|
|
24451
24465
|
init_vault_save();
|
|
24452
24466
|
init_reply_context();
|