-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add teams runtime #1095
add teams runtime #1095
Conversation
Caution Missing semicolon in the teams-message option description: "Posts a message to the teams channel" (docs/src/content/docs/reference/cli/commands.md#L41 missing_semi) Caution Missing opening code block for the text following this line, which introduces the Syntax section improperly. (docs/src/content/docs/reference/scripts/parameters.mdx#L34 missing_code_block) Caution Missing semicolon in .option for teams-message description. (packages/cli/src/cli.ts#L149 missing_semi) Caution The variable Caution The variable Caution Missing parameter description in the teamsChannel method documentation. (packages/core/src/types/prompt_template.d.ts#L4337 missing_param_doc) Caution Unnecessary commented-out code should be removed for better readability. (packages/sample/genaisrc/teams.genai.mts#L1 unnecessary_imports)
|
Summary of Changes
✨ Microsoft Teams Integration: Added functionality to post messages and upload files to Microsoft Teams channels using the Microsoft Graph API.
-tm, --teams-message
to post messages to Teams channels.runScriptInternal
.microsoftTeamsChannelPostMessage
andmicrosoftTeamsChannelUploadFile
for handling messages and file uploads.MicrosoftTeamsChannelClient
to interact with Teams channels programmatically.🛠️ Markdown to Teams HTML Conversion: Added a utility to convert Markdown into Teams-compatible HTML for message formatting. Includes handling for headers, lists, bold, italic, and more.
✅ Unit Tests: Added tests for the Markdown-to-Teams HTML conversion to ensure proper formatting of messages.
🔑 Token Management: Enhanced
NodeHost
andTestHost
to supportmicrosoftGraphToken
for authenticating with the Microsoft Graph API.🗂️ File Handling Enhancements: Updated
resolveFileBytes
to support handling files with additional metadata (e.g., descriptions).📖 Documentation Updates:
--teams-message
option to the CLI documentation.🌟 Sample Script: Updated the Teams example script to demonstrate posting messages and attaching files to a Teams channel.
These changes introduce robust Microsoft Teams integration, enabling seamless communication and file sharing directly from the CLI. 🚀