mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
1348532068
* Update docs - Slack Assistants API, App Home tab, Stream stop blocks * Update README.md * Update package readmes, fix readme integration test * Add npm badges to all package READMEs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add test coverage to all packages * Create CODE_OF_CONDUCT.md * Create pull_request_template.md * Create issue templates * Create config.yml * Add unit tests for errors, singleton, logger, message, modals, gchat utils, and teams markdown Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add a vitest:workspace command * Misc URL fixes * Update CONTRIBUTING.md * Misc fixes, upgrade workflow/serde * Replace PII in integration test data --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
11 KiB
11 KiB
message log
[chat-sdk:slack] Slack webhook raw body {
body: '{"token":"xAbCdEfGhIjKlMnOpQrStUvW","team_id":"T00FAKE00AA","context_team_id":"T00FAKE00AA","context_enterprise_id":null,"api_app_id":"A00FAKEAPP01","event":{"type":"message","user":"U00FAKEUSER1","ts":"1766458026.240809","client_msg_id":"66cc9473-12a2-4934-bd57-301917883ae3","text":"<@U00FAKEBOT01> 1","team":"T00FAKE00AA","blocks":[{"type":"rich_text","block_id":"jEztr","elements":[{"type":"rich_text_section","elements":[{"type":"user","user_id":"U00FAKEBOT01"},{"type":"text","text":" 1"}]}]}],"channel":"C00FAKECHAN1","event_ts":"1766458026.240809","channel_type":"channel"},"type":"event_callback","event_id":"Ev0A4QA0FC8P","event_time":1766458026,"authorizations":[{"enterprise_id":null,"team_id":"T00FAKE00AA","user_id":"U00FAKEBOT01","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDNTSDdHMDFHVSIsImFpZCI6IkEwQTVGVVhQMUVEIiwiY2lkIjoiQzBBNTExTUJDVVcifQ"}'
}
[chat-sdk:slack] Slack webhook raw body {
body: '{"token":"xAbCdEfGhIjKlMnOpQrStUvW","team_id":"T00FAKE00AA","api_app_id":"A00FAKEAPP01","event":{"type":"app_mention","user":"U00FAKEUSER1","ts":"1766458026.240809","client_msg_id":"66cc9473-12a2-4934-bd57-301917883ae3","text":"<@U00FAKEBOT01> 1","team":"T00FAKE00AA","blocks":[{"type":"rich_text","block_id":"jEztr","elements":[{"type":"rich_text_section","elements":[{"type":"user","user_id":"U00FAKEBOT01"},{"type":"text","text":" 1"}]}]}],"channel":"C00FAKECHAN1","event_ts":"1766458026.240809"},"type":"event_callback","event_id":"Ev0A602NNCQG","event_time":1766458026,"authorizations":[{"enterprise_id":null,"team_id":"T00FAKE00AA","user_id":"U00FAKEBOT01","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"4-eyJldCI6ImFwcF9tZW50aW9uIiwidGlkIjoiVDAzU0g3RzAxR1UiLCJhaWQiOiJBMEE1RlVYUDFFRCIsImNpZCI6IkMwQTUxMU1CQ1VXIn0"}'
}
[chat-sdk:slack] Slack webhook raw body {
body: `{"token":"xAbCdEfGhIjKlMnOpQrStUvW","team_id":"T00FAKE00AA","context_team_id":"T00FAKE00AA","context_enterprise_id":null,"api_app_id":"A00FAKEAPP01","event":{"type":"message","user":"U00FAKEBOT01","ts":"1766458029.244159","bot_id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","text":"Thanks for mentioning me! I'm now listening to this thread.\\n\\n_Connected via slack_","team":"T00FAKE00AA","bot_profile":{"id":"B00FAKEBOT01","deleted":false,"name":"Chat SDK ExampleBot","updated":1766422444,"app_id":"A00FAKEAPP01","user_id":"U00FAKEBOT01","icons":{"image_36":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_36.png","image_48":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_48.png","image_72":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/service_72.png"},"team_id":"T00FAKE00AA"},"thread_ts":"1766458026.240809","parent_user_id":"U00FAKEUSER1","blocks":[{"type":"rich_text","block_id":"X+Z","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"Thanks for mentioning me! I'm now listening to this thread.\\n\\n"},{"type":"text","text":"Connected via slack","style":{"italic":true}}]}]}],"channel":"C00FAKECHAN1","event_ts":"1766458029.244159","channel_type":"channel"},"type":"event_callback","event_id":"Ev0A52AALLMB","event_time":1766458029,"authorizations":[{"enterprise_id":null,"team_id":"T00FAKE00AA","user_id":"U00FAKEBOT01","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDNTSDdHMDFHVSIsImFpZCI6IkEwQTVGVVhQMUVEIiwiY2lkIjoiQzBBNTExTUJDVVcifQ"}`
}
[chat-sdk:slack] Slack webhook raw body {
body: '{"token":"xAbCdEfGhIjKlMnOpQrStUvW","team_id":"T00FAKE00AA","context_team_id":"T00FAKE00AA","context_enterprise_id":null,"api_app_id":"A00FAKEAPP01","event":{"type":"message","user":"U00FAKEUSER1","ts":"1766458031.859009","client_msg_id":"5c2a0202-609a-4fcb-ad51-926b1d18c012","text":"2","team":"T00FAKE00AA","thread_ts":"1766458026.240809","parent_user_id":"U00FAKEUSER1","blocks":[{"type":"rich_text","block_id":"HiD03","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"2"}]}]}],"channel":"C00FAKECHAN1","event_ts":"1766458031.859009","channel_type":"channel"},"type":"event_callback","event_id":"Ev0A55NTKU2W","event_time":1766458031,"authorizations":[{"enterprise_id":null,"team_id":"T00FAKE00AA","user_id":"U00FAKEBOT01","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDNTSDdHMDFHVSIsImFpZCI6IkEwQTVGVVhQMUVEIiwiY2lkIjoiQzBBNTExTUJDVVcifQ"}'
}
[chat-sdk:slack] Slack webhook raw body {
body: '{"token":"xAbCdEfGhIjKlMnOpQrStUvW","team_id":"T00FAKE00AA","context_team_id":"T00FAKE00AA","context_enterprise_id":null,"api_app_id":"A00FAKEAPP01","event":{"type":"message","user":"U00FAKEBOT01","ts":"1766458031.632339","bot_id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","text":"Processing...","team":"T00FAKE00AA","bot_profile":{"id":"B00FAKEBOT01","deleted":false,"name":"Chat SDK ExampleBot","updated":1766422444,"app_id":"A00FAKEAPP01","user_id":"U00FAKEBOT01","icons":{"image_36":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_36.png","image_48":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_48.png","image_72":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/service_72.png"},"team_id":"T00FAKE00AA"},"thread_ts":"1766458026.240809","parent_user_id":"U00FAKEUSER1","blocks":[{"type":"rich_text","block_id":"OR9","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"Processing..."}]}]}],"channel":"C00FAKECHAN1","event_ts":"1766458031.632339","channel_type":"channel"},"type":"event_callback","event_id":"Ev0A55NTR8M8","event_time":1766458031,"authorizations":[{"enterprise_id":null,"team_id":"T00FAKE00AA","user_id":"U00FAKEBOT01","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDNTSDdHMDFHVSIsImFpZCI6IkEwQTVGVVhQMUVEIiwiY2lkIjoiQzBBNTExTUJDVVcifQ"}'
}
[chat-sdk:slack] Slack webhook raw body {
body: '{"token":"xAbCdEfGhIjKlMnOpQrStUvW","team_id":"T00FAKE00AA","context_team_id":"T00FAKE00AA","context_enterprise_id":null,"api_app_id":"A00FAKEAPP01","event":{"type":"message","subtype":"message_changed","message":{"user":"U00FAKEBOT01","type":"message","edited":{"user":"B00FAKEBOT01","ts":"1766458033.000000"},"bot_id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","text":"Just a little bit...","team":"T00FAKE00AA","bot_profile":{"id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","user_id":"U00FAKEBOT01","name":"Chat SDK ExampleBot","icons":{"image_36":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_36.png","image_48":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_48.png","image_72":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/service_72.png"},"deleted":false,"updated":1766422444,"team_id":"T00FAKE00AA"},"thread_ts":"1766458026.240809","parent_user_id":"U00FAKEUSER1","blocks":[{"type":"rich_text","block_id":"LuPA","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"Just a little bit..."}]}]}],"ts":"1766458031.632339","source_team":"T00FAKE00AA","user_team":"T00FAKE00AA"},"previous_message":{"user":"U00FAKEBOT01","type":"message","ts":"1766458031.632339","bot_id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","text":"Processing...","team":"T00FAKE00AA","bot_profile":{"id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","user_id":"U00FAKEBOT01","name":"Chat SDK ExampleBot","icons":{"image_36":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_36.png","image_48":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_48.png","image_72":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/service_72.png"},"deleted":false,"updated":1766422444,"team_id":"T00FAKE00AA"},"thread_ts":"1766458026.240809","parent_user_id":"U00FAKEUSER1","blocks":[{"type":"rich_text","block_id":"ViZZ","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"Processing..."}]}]}]},"channel":"C00FAKECHAN1","hidden":true,"ts":"1766458033.001300","event_ts":"1766458033.001300","channel_type":"channel"},"type":"event_callback","event_id":"Ev0A53MVM13Q","event_time":1766458033,"authorizations":[{"enterprise_id":null,"team_id":"T00FAKE00AA","user_id":"U00FAKEBOT01","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDNTSDdHMDFHVSIsImFpZCI6IkEwQTVGVVhQMUVEIiwiY2lkIjoiQzBBNTExTUJDVVcifQ"}'
}
[chat-sdk:slack] Slack webhook raw body {
body: '{"token":"xAbCdEfGhIjKlMnOpQrStUvW","team_id":"T00FAKE00AA","context_team_id":"T00FAKE00AA","context_enterprise_id":null,"api_app_id":"A00FAKEAPP01","event":{"type":"message","subtype":"message_changed","message":{"user":"U00FAKEBOT01","type":"message","edited":{"user":"B00FAKEBOT01","ts":"1766458034.000000"},"bot_id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","text":"Thanks for your message","team":"T00FAKE00AA","bot_profile":{"id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","user_id":"U00FAKEBOT01","name":"Chat SDK ExampleBot","icons":{"image_36":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_36.png","image_48":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_48.png","image_72":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/service_72.png"},"deleted":false,"updated":1766422444,"team_id":"T00FAKE00AA"},"thread_ts":"1766458026.240809","parent_user_id":"U00FAKEUSER1","blocks":[{"type":"rich_text","block_id":"fFdi","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"Thanks for your message"}]}]}],"ts":"1766458031.632339","source_team":"T00FAKE00AA","user_team":"T00FAKE00AA"},"previous_message":{"user":"U00FAKEBOT01","type":"message","ts":"1766458031.632339","edited":{"user":"B00FAKEBOT01","ts":"1766458033.000000"},"bot_id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","text":"Just a little bit...","team":"T00FAKE00AA","bot_profile":{"id":"B00FAKEBOT01","app_id":"A00FAKEAPP01","user_id":"U00FAKEBOT01","name":"Chat SDK ExampleBot","icons":{"image_36":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_36.png","image_48":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/bot_48.png","image_72":"https:\\/\\/a.slack-edge.com\\/80588\\/img\\/plugins\\/app\\/service_72.png"},"deleted":false,"updated":1766422444,"team_id":"T00FAKE00AA"},"thread_ts":"1766458026.240809","parent_user_id":"U00FAKEUSER1","blocks":[{"type":"rich_text","block_id":"Vh6","elements":[{"type":"rich_text_section","elements":[{"type":"text","text":"Just a little bit..."}]}]}]},"channel":"C00FAKECHAN1","hidden":true,"ts":"1766458034.001400","event_ts":"1766458034.001400","channel_type":"channel"},"type":"event_callback","event_id":"Ev0A4QA0SJSK","event_time":1766458034,"authorizations":[{"enterprise_id":null,"team_id":"T00FAKE00AA","user_id":"U00FAKEBOT01","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDNTSDdHMDFHVSIsImFpZCI6IkEwQTVGVVhQMUVEIiwiY2lkIjoiQzBBNTExTUJDVVcifQ"}'
}