Skip to content

Conversation

techwithanirudh
Copy link

No description provided.

- 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.
…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
- 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.
techwithanirudh and others added 23 commits May 24, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant