-
Notifications
You must be signed in to change notification settings - Fork 29
Nitro #12
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
Open
techwithanirudh
wants to merge
53
commits into
vercel-labs:main
Choose a base branch
from
techwithanirudh:nitro
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Nitro #12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ariables and providers
- Removed unnecessary "paths" configuration from tsconfig.json. - Changed import statements in chat.ts and webhook.ts to use 'import type' for better clarity and performance.
…date types and OpenAPI specs - Renamed PostMessageData to SendMessageData and updated related types. - Refactored response types for sending messages and editing messages. - Updated OpenAPI specifications to reflect changes in message sending and editing endpoints. - Adjusted utility functions to use the new sendMessage method. - Cleaned up unused types and errors in the Zod validation schemas. - Enhanced response structures for better clarity and consistency.
- Updated generateResponse to include bot creator information. - Modified handle-app-mention to utilize GetSessionResponse for user identification. - Enhanced handle-messages to check for keywords and direct messages before processing. - Refactored slack-utils to accept GetSessionResponse for user identification in getThread. - Updated OpenAPI specifications to remove unnecessary required fields and improve response descriptions. - Adjusted package.json build script to streamline the build process. - Made profile_background_upload_url optional in User interface for better flexibility.
- Removed unused imports of zod and zGetSessionResponse from handle-app-mention.ts, handle-messages.ts, and slack-utils.ts. - Commented out zod plugin and validator in openapi-ts.config.ts. - Added new error response codes (400, 403, 429, 500) to openapi.json for improved API documentation.
…ce in message handling; enable zod validation in OpenAPI config; add server restart script
…scourse; enhance package scripts for linting and checking
- Updated import statements in `chat.ts`, `discourse.ts`, `index.ts`, and `webhook.ts` to use single quotes for consistency. - Removed trailing commas in `tsconfig.json` and adjusted the `exclude` and `include` arrays for clarity. - Ensured all type definitions in `webhook.ts` are properly formatted and aligned for better readability.
…d API definitions
…tching thread details and messages
… integrate env-core package
…nt variables - Created API endpoint that returns "Hello World!" - Added configuration file with keywords, location, and speed settings - Implemented environment variable management using zod for validation - Developed AI response generation logic with weather fetching capability - Handled app mentions and message processing for AI interactions - Introduced utility functions for Slack message handling and verification - Defined types for chat and webhook interactions - Updated TypeScript configuration for improved compatibility - Removed obsolete Vercel configuration file
…event and status utilities
…dMessages functions
- Updated import paths in events.post.ts for consistency. - Removed deprecated ai/providers.ts file. - Added prompts.ts to define various AI prompts for response generation. - Reintroduced providers.ts with updated structure for AI model integration. - Created discourse-utils.ts for handling Discourse API interactions. - Implemented generate-response.ts to manage AI response generation logic. - Added handle-app-mention.ts to process app mentions and generate responses. - Created handle-messages.ts to manage incoming chat messages and trigger AI responses.
…tions and chat messages - Deleted the run.sh script that was used to start the Bun server in a loop. - Added a new API endpoint at server/api/events/index.post.ts to handle incoming events from Discourse, including app mentions and chat messages. - Updated tsconfig.json to enable strict null checks for better type safety.
- Updated nitro.config.ts to set esbuild target to "esnext". - Added new dependencies in package.json for date-fns and compromise. - Implemented a logger using pino for better logging in various modules. - Created prompts for AI responses in server/lib/ai/prompts.ts. - Added AI provider configurations in server/lib/ai/providers.ts. - Refactored event handling to use the new logger in server/api/events/index.post.ts. - Updated discourse utility functions to log signature validation and HMAC comparison. - Enhanced message handling with logging in server/utils/handle-app-mention.ts and server/utils/handle-messages.ts. - Introduced utility functions for time zone handling in server/utils/time.ts. - Added message tokenization functions in server/utils/tokenize-messages.ts.
…hat messages and notifications
…sage and notification processing
…message formatting in getMessages
…and logging configuration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.