Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Inbox: a line opens where it came from, with a test; goldens after main
milind-soniea501af1ffa7
diff --git a/server/drivers/agents-catalog-goldens/profiles.json b/server/drivers/agents-catalog-goldens/profiles.jsonindex e675d1b85f..9801fe2d7b 100644--- a/server/drivers/agents-catalog-goldens/profiles.json+++ b/server/drivers/agents-catalog-goldens/profiles.json@@ -1,7 +1,7 @@{"default": {- "bytes": 58621,- "sha256": "b279aa06c646ada0fc66c23f743de64b07c8f96ac70509b823014476863694ba",+ "bytes": 59055,+ "sha256": "09d4fad87ba6d2e58dd183e901fb51e2a4e6fb97169bbce46124288ed2c92e51","tools": ["tool_result_read","list_room_targets",@@ -32,6 +32,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -50,8 +51,8 @@]},"voice": {- "bytes": 59402,- "sha256": "c6db244ddad00a7d60a90ccd3909145b5cae287d71e7c9fbe274d8a991476d5d",+ "bytes": 59836,+ "sha256": "4d552d598e80c5b46130225503bc1c2da9b4e5b8e23b4ae4e3a79b33949eb546","tools": ["tool_result_read","list_room_targets",@@ -83,6 +84,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -101,8 +103,8 @@]},"shared": {- "bytes": 60886,- "sha256": "9a071b1f63eb673918e263c254009575390a9f7315435ce6d0853a68d46d080c",+ "bytes": 61320,+ "sha256": "fcf6027e7bb024710d53609ee155a9b01ca9bd7f040c5e4b8dbd89f7d9554500","tools": ["tool_result_read","list_shared_computers",@@ -135,6 +137,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -153,8 +156,8 @@]},"shared+voice": {- "bytes": 61667,- "sha256": "7ff554c9fc07f76cffc491c20070183f2b49b6368e5371cd6b54b62655f8ed45",+ "bytes": 62101,+ "sha256": "6fd226cd0c6e4f5db64d75945cb4f5e850cb3ba1efda167e7456c0314c35fdda","tools": ["tool_result_read","list_shared_computers",@@ -188,6 +191,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -206,8 +210,8 @@]},"skills": {- "bytes": 61440,- "sha256": "7df02eaea1be351da79576114922079c85d7ec1440a15ff0c11421660823579f",+ "bytes": 61874,+ "sha256": "e610e2bb12b77deab2d2681ebcf59daef83bcc9771197aca1540b511bbf29ccd","tools": ["tool_result_read","list_room_targets",@@ -238,6 +242,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -258,8 +263,8 @@]},"skills+voice": {- "bytes": 62221,- "sha256": "841143392c57424cb8dbf56772577776768b5124e09c44c68cbfbc2ba08fd920",+ "bytes": 62655,+ "sha256": "ae6fb9156b2263c5159e11b828eed313a967da9ab9a7cbccf96e77cab58b434e","tools": ["tool_result_read","list_room_targets",@@ -291,6 +296,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -311,8 +317,8 @@]},"skills+shared": {- "bytes": 63705,- "sha256": "2acff5f29463e21f80a82b5a73faf60a8984898227bd7d0ae0433e0a48dc2abd",+ "bytes": 64139,+ "sha256": "b52509eb8a0020a624cf4baafe5873d22bb1928e328980bbf4bb8c4d6dabba76","tools": ["tool_result_read","list_shared_computers",@@ -345,6 +351,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -365,8 +372,8 @@]},"skills+shared+voice": {- "bytes": 64486,- "sha256": "b851e02dda62dbc0369536da72c5375ca8aba4d83ad4bc303454b6d3120f3e51",+ "bytes": 64920,+ "sha256": "6a0532bdec66b8bf4b2331fd3746fa1c5aa1b7b39ff09022a21c2d14037f4118","tools": ["tool_result_read","list_shared_computers",@@ -400,6 +407,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -420,8 +428,8 @@]},"non-chief": {- "bytes": 49405,- "sha256": "41ed5692486446176ae6048b18098f3d21fe42d4eebc77d464595a59057ec5e7",+ "bytes": 49839,+ "sha256": "4f3441f31213b5572ec5a480819922670523b9c73b9dfad49226faf5dacfba2d","tools": ["tool_result_read","list_room_targets",@@ -446,6 +454,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -463,8 +472,8 @@]},"voice+non-chief": {- "bytes": 50186,- "sha256": "e3fbc34cc167ca06c78091dfc2f84662bab61b2d75ad709fdbde77908db96651",+ "bytes": 50620,+ "sha256": "d2551921b91df2184d5d9b83462195e5536755766459cd18197a7de9b06a76fb","tools": ["tool_result_read","list_room_targets",@@ -490,6 +499,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -507,8 +517,8 @@]},"shared+non-chief": {- "bytes": 51670,- "sha256": "44fa4f12a4f3e57b8a6d128a3d00fba8e9466900917739f0ffa9ef5f72d1e577",+ "bytes": 52104,+ "sha256": "d5a8932d5d3269000e52915cb711c5ce3f96d64dc9c28aeadbaccdc82fd91f3a","tools": ["tool_result_read","list_shared_computers",@@ -535,6 +545,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -552,8 +563,8 @@]},"shared+voice+non-chief": {- "bytes": 52451,- "sha256": "6be0b40e3d37fec75cf3b30c909f95647bc96dca04cfa2bcbef86ba05d09812d",+ "bytes": 52885,+ "sha256": "1b97fc93d5467990ea54d9bf01cd7978db1a22e301f5c5146cceb4418d4dd55a","tools": ["tool_result_read","list_shared_computers",@@ -581,6 +592,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -598,8 +610,8 @@]},"skills+non-chief": {- "bytes": 52224,- "sha256": "5f96581a7d30ceed3acf9eafff9af545d1227cd1bfc7c2090786e8c81d0f2b7a",+ "bytes": 52658,+ "sha256": "8bce1628225b561401a37be939d50f2a8c1e017a64e6e93ebfbe27b7d9726e32","tools": ["tool_result_read","list_room_targets",@@ -624,6 +636,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -643,8 +656,8 @@]},"skills+voice+non-chief": {- "bytes": 53005,- "sha256": "c4e12a8bb0cdbdcc69fc6c5372b14ecd076320193be91935b04836aa7902449e",+ "bytes": 53439,+ "sha256": "9f904f82b9a82e20ffe346f7a0857c65ba667a0d029ff5fb6b3b7df724895ce3","tools": ["tool_result_read","list_room_targets",@@ -670,6 +683,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -689,8 +703,8 @@]},"skills+shared+non-chief": {- "bytes": 54489,- "sha256": "00002c0b2658e97091f835c82d14f87db273179e289a60c689b063907d171912",+ "bytes": 54923,+ "sha256": "91cf1cca4affce32625caff1be7c3566d8da15376bbd400a3e84e48e62e6b306","tools": ["tool_result_read","list_shared_computers",@@ -717,6 +731,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -736,8 +751,8 @@]},"skills+shared+voice+non-chief": {- "bytes": 55270,- "sha256": "6a64d1aae34d1f756cb0a71b5afa5a9e726083bd8a53e341398b1694324f9429",+ "bytes": 55704,+ "sha256": "e9480e70550e0a3ec6ded03207c87ae1231694e4e99e295af79187173e13e7c7","tools": ["tool_result_read","list_shared_computers",@@ -765,6 +780,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -784,8 +800,8 @@]},"skills+shared+voice+cloud-home": {- "bytes": 64252,- "sha256": "8108e48100409323640013bcd340208a0e6b526c95758a9f15d2c27aba7949cd",+ "bytes": 64686,+ "sha256": "c1d6de346dc6d50cae69d7ff5ca6d7405ec7f38bd14671b26bbb8814d12688ac","tools": ["tool_result_read","list_shared_computers",@@ -818,6 +834,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -839,8 +856,8 @@]},"skills+shared+voice+non-chief+cloud-home": {- "bytes": 55036,- "sha256": "0eb8789580a40b38b74928671b1ca36ec22fe3ce96f2e787a443807c34007c34",+ "bytes": 55470,+ "sha256": "e539c8bbfb5b82d60cb40068de24f7b5543d1ec772eeba25325182af7374e581","tools": ["tool_result_read","list_shared_computers",@@ -867,6 +884,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","memory_log",@@ -887,8 +905,8 @@]},"skills+shared+voice+escalations": {- "bytes": 65316,- "sha256": "cc4f6d10936c02cb28310e1870be3de7f2c56196a6fe23eb42c81361218cd8f2",+ "bytes": 65750,+ "sha256": "8ea7394d2227fe971a8160d4529a00cd1b9e45f4874a963b8510b6a444256bad","tools": ["tool_result_read","list_shared_computers",@@ -923,6 +941,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -943,8 +962,8 @@]},"skills+shared+voice+escalations+x": {- "bytes": 69155,- "sha256": "5e2fda297b2ce62ee238cde94612a5021dcbdf33d0f5cb6946fa965aa00e9d58",+ "bytes": 69589,+ "sha256": "dce5eb930845fe65c80aa9125a525ac371b503a11ef57e96a6111dc4e056f049","tools": ["tool_result_read","list_shared_computers",@@ -983,6 +1002,7 @@"research_call","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -1003,8 +1023,8 @@]},"skills+shared+voice+escalations+x+team": {- "bytes": 69787,- "sha256": "d88b85a85a38d86b121f0f6b26653fe43630b4a64122fd69e609efae636d7326",+ "bytes": 69589,+ "sha256": "dce5eb930845fe65c80aa9125a525ac371b503a11ef57e96a6111dc4e056f049","tools": ["tool_result_read","list_shared_computers",@@ -1064,8 +1084,8 @@]},"default+legacy-switches": {- "bytes": 58621,- "sha256": "b279aa06c646ada0fc66c23f743de64b07c8f96ac70509b823014476863694ba",+ "bytes": 59055,+ "sha256": "09d4fad87ba6d2e58dd183e901fb51e2a4e6fb97169bbce46124288ed2c92e51","tools": ["tool_result_read","list_room_targets",@@ -1096,6 +1116,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -1114,8 +1135,8 @@]},"default+mausbot": {- "bytes": 59272,- "sha256": "ef0471cff21fe974013fb01b11caf353fe34cd5d24adc4dbe0ee101403bb4033",+ "bytes": 59706,+ "sha256": "df7b9798cd060c60174a8d6870df43fd8b88c0848fe9239134329eada9c66fdf","tools": ["tool_result_read","list_room_targets",@@ -1146,6 +1167,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -1166,8 +1188,8 @@]},"skills+shared+voice+mausbot": {- "bytes": 65137,- "sha256": "c2447a27197dde714f9d7b30d729a93ab53ac7cacb75788a478cfeb64d262fdd",+ "bytes": 65571,+ "sha256": "1fe04f9a7504670abad85375b875d21774aca7001a923e114539af4891ac1c00","tools": ["tool_result_read","list_shared_computers",@@ -1201,6 +1223,7 @@"send_voice_note","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -1223,8 +1246,8 @@]},"default+no-computer-pick": {- "bytes": 57409,- "sha256": "b3cdd284624eb996dc5c4fe1aef0c387bafe3b0afba81e1cc4ebedf53297c7de",+ "bytes": 57843,+ "sha256": "157baeb3e6179fe4c04b8336f19e9f4672f278ab8ac73a5bf306203586f90999","tools": ["tool_result_read","list_room_targets",@@ -1254,6 +1277,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -1272,8 +1296,8 @@]},"default+room": {- "bytes": 50279,- "sha256": "81c95f17de75b178b06d88400c68d3e3a4e6e1b7cd74629b79b7b5002c1b3fb8",+ "bytes": 50713,+ "sha256": "7a125fd68b39be2298796adaa19419774e3c98839e314030cd043c7559d745f8","tools": ["tool_result_read","list_room_targets",@@ -1301,6 +1325,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","retry_thread",@@ -1316,8 +1341,8 @@]},"non-chief+room": {- "bytes": 41063,- "sha256": "86fe9bf6cd4a4fb003f88ebbb0c3339d986a93b381be5b1c3ac80c9b14edc639",+ "bytes": 41497,+ "sha256": "77f72dc980037ea2c2118f1a958058f1fe92b26450dec6ae8118d4275db27390","tools": ["tool_result_read","list_room_targets",@@ -1339,6 +1364,7 @@"fill_login","decide","extract",+ "message_person","report_bug","memory_update","memory_log",diff --git a/src/components/inbox/InboxEverywhere.dom.test.ts b/src/components/inbox/InboxEverywhere.dom.test.tsindex 4c79ed8117..3a59c13c35 100644--- a/src/components/inbox/InboxEverywhere.dom.test.ts+++ b/src/components/inbox/InboxEverywhere.dom.test.ts@@ -214,6 +214,22 @@ describe("a place's inbox in the panel", () => {}});+ it("opens a line where it came from: that bot, that thread and that message, from its row or read in full", async () => {+ const eli = bot({ tasks: [{ threadId: "eli-pricing", title: "Pricing work", createdAt: 1 }, { threadId: "eli-launch", title: "Launch work", createdAt: 2 }] as Bot["tasks"] });+ const noa = bot({ id: "noa", name: "Noa", threadId: "noa-main", tasks: [{ threadId: "noa-main", title: "Noa", createdAt: 1 }] as Bot["tasks"] });+ await panel([question, news], [eli, noa]);+ await click('[data-inbox-row="line-n"] [data-inbox-action="open"]');+ expect(dispatch).toHaveBeenCalledWith({ type: "revealThread", threadId: "noa-main" });+ expect(dispatch).toHaveBeenCalledWith({ type: "focusMessage", threadId: "noa-main", messageId: "line-n" });+ dispatch.mockClear();+ await act(async () => { readInboxLine("card-q"); });+ await mount(createElement(InboxPanel), [eli, noa]);+ await click('[data-inbox-reading] [data-inbox-action="open"]');+ expect(dispatch).toHaveBeenCalledWith({ type: "revealThread", threadId: "eli-launch" });+ expect(dispatch).toHaveBeenCalledWith({ type: "focusMessage", threadId: "eli-launch", messageId: "card-q" });+ expect(dispatch.mock.calls.map(([action]) => action.threadId).filter(Boolean).every((threadId) => threadId === "eli-launch"), "nothing opens another of the bot's threads").toBe(true);+ });+it("lists the conversations at work with a jump to each and the pin, leaving out what the inbox already asks", async () => {const working = { threadId: "eli-work", title: "Writing the page", createdAt: 1, busy: true, activity: "working" as const };const asking = { threadId: "eli-pricing", title: "Pricing work", createdAt: 2, activity: "waiting-on-you" as const };