-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tools to fetch from web, improved conversation logging, smoother edges #15
Merged
Conversation
This file contains 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
commit a34fe0dd0a81ffdb3a16389c6b43beabbddf76db Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 16:08:09 2024 +1000 Changed and Todo commit 24dc32773e9750e36598c9581242c22e816b3d9f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 16:02:00 2024 +1000 Implement repoInfo persistence and add task tool Applied patches from BBai to 1 file Files modified: - TODO.md commit 100f529d2971d181971ffa58b7107ef1802c3550 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:59:01 2024 +1000 All the manual effort commit b245106387f673dbe9cd6fffc970da9306ead1de Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:49:51 2024 +1000 Added `answer` and `assistantThinking` properties to `ConversationResponse` object. Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit 03adbdefe9de3164108a605a3d3a64abef81da80 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:49:38 2024 +1000 Extracted answer and assistant thinking from response and logged them for debugging Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit d2c0fcfde0cf8f54f1877c34a3b9926c66a9603d Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:48:55 2024 +1000 Extracted answer and assistant thinking from message response and added them to the ConversationResponse object. Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit 1226f6066e7cbdec1ff3747ea383eb2fec196d49 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:30:54 2024 +1000 Refactored `extractThinkingContent` to handle changes in `LLMProviderMessageResponse` structure Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit 4bfa8b668be859c8ab181a9c1820a1eacecf6450 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:30:28 2024 +1000 Refactored `extractThinkingContent` function to handle edge cases and return an empty string if the response content is invalid. Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit e3a1d584e6c1a4d2de48d33df44464c332b8d15a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:29:54 2024 +1000 Added tests for extractThinkingContent method in OrchestratorController Applied patches from BBai to 1 file Files modified: - api/tests/t/controllers/orchestratorController.test.ts commit 0e8e53a3749a149848d3973db29a655c4669b3fd Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:29:31 2024 +1000 Added logic to extract thinking content from LLM provider response Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit ee431a36958c179f2a9833463adfdd762768744e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:23:24 2024 +1000 Added unit tests for `extractThinkingContent` method in `OrchestratorController` Applied patches from BBai to 1 file Files modified: - api/tests/t/controllers/orchestratorController.test.ts commit e28721f26f74c6c92a72dfc4275f8d38711abf23 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:22:54 2024 +1000 Added thinking content to the orchestrator controller's tool handling logic Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit c50053f0593381bbb57e071904432a10ea228af5 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:22:30 2024 +1000 Improved logic to extract thinking content from LLMProviderMessageResponse Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit 7d2383c9e60c8d04c25eea8e2374efd8b8fc56ff Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:22:17 2024 +1000 Added thinking content extraction to handleToolUse method Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit ba338f061e9fa66237f5dd21bb230eea9df8cb36 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:21:43 2024 +1000 Added a method to extract thinking content from LLMProviderMessageResponse Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit 06025d6ec8cd9cf72160db65162f1c4c5195f300 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:06:39 2024 +1000 Added event listener management and cleanup for WebSocket connections Applied patches from BBai to 1 file Files modified: - api/src/routes/api/websocket.handlers.ts commit bcd2bd2e107f951b256cbbbc844d091dd926c63b Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:02:56 2024 +1000 Removed unnecessary callback function in event listener removal Applied patches from BBai to 1 file Files modified: - api/src/routes/api/websocket.handlers.ts commit ae4f68fce4779e659bc50259c38970a2ff126699 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:02:28 2024 +1000 Added optional callback parameter to `off` method and added logic to remove all listeners for an event and conversation ID when the callback is not provided. Applied patches from BBai to 1 file Files modified: - src/shared/events/eventManager.ts commit 526b8dd8ef6e0f8803a16ce682d6eddcc8d1336d Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 15:02:10 2024 +1000 Added logging to the `off` method in `eventManager.ts` to help with debugging event listener removal. Applied patches from BBai to 1 file Files modified: - src/shared/events/eventManager.ts commit e7fcc18ebdb4b96180336218fa8c94ada5a962c3 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 14:58:17 2024 +1000 Refactored event listener removal to use a static constant array Removed hardcoded event names and replaced with a static constant array to improve maintainability and readability of the code. Applied patches from BBai to 1 file Files modified: - api/src/routes/api/websocket.handlers.ts commit 89a29c3439aca0fd76f4bab7ee990ef5eca79e45 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 14:57:56 2024 +1000 Improved event listener removal in websocket handlers Applied patches from BBai to 1 file Files modified: - api/src/routes/api/websocket.handlers.ts commit 4e912b42859c39598a91d7031af3cd65a4070f17 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 14:50:32 2024 +1000 Wrapped handleConnection and handleMessage methods in try-catch blocks to handle errors and close WebSocket connections on failure. Applied patches from BBai to 1 file Files modified: - api/src/routes/api/websocket.handlers.ts commit 10b8c9a987d27094f64458a51dcb4412824a4efa Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 14:50:16 2024 +1000 Added a map to track active WebSocket connections and implemented logic to handle multiple connections for the same conversation ID. Applied patches from BBai to 1 file Files modified: - api/src/routes/api/websocket.handlers.ts commit 9b80c2623f025ed8c11b1f0af8139d7e6f167ea8 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 14:49:59 2024 +1000 Added event listener removal to prevent memory leaks when removing WebSocket connections. Applied patches from BBai to 1 file Files modified: - api/src/routes/api/websocket.handlers.ts commit bdcb941d1be6590d786ee51a86861ca1c65399e0 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 14:42:28 2024 +1000 Added a method to remove existing WebSocket event listeners before setting up new ones to prevent memory leaks. Applied patches from BBai to 1 file Files modified: - cli/src/utils/websocketManager.ts commit b2f305c70aaeba3e4101130e1bbfe2d3381b2d44 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 14:01:39 2024 +1000 Added base64 encoding utility and used it to encode screenshot data Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebScreenshotTool.ts commit 6d5c72424fd8132268f261ffc9bc41b6d109044c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 12:16:16 2024 +1000 Replaced `String.fromCharCode.apply(null, screenshotUint8Array)` with `new TextDecoder().decode(screenshotUint8Array)` to improve readability and maintainability of the screenshot conversion code. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebScreenshotTool.ts commit 9889924a1b615d62b5e7f3c17a1e6d14440f5459 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 12:15:54 2024 +1000 Changed screenshot fetch to return Uint8Array and updated error type Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebScreenshotTool.ts commit 70b55578f122623ce15b1bd931ef34037ee61cf3 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 12:15:27 2024 +1000 Added web page fetching and screenshot features to README Applied patches from BBai to 1 file Files modified: - README.md commit 1117a1c91ef5a45ed317cb833da333ada2db485b Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 12:15:15 2024 +1000 Added LLMToolFetchWebScreenshot and registered it in the LLMToolManager Applied patches from BBai to 1 file Files modified: - api/src/llms/llmToolManager.ts commit 209d9ed6572433b5092c45b48af85234f466555c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 12:15:03 2024 +1000 Added unit tests for the `LLMToolFetchWebScreenshot` class, covering successful screenshot fetching, invalid URL, and non-existent page scenarios. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/fetchWebScreenshotTool.test.ts commit 93b59b3738348e8e7d1cd77769f7d28c69270264 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 12:14:44 2024 +1000 Added a new LLMTool class for fetching web page screenshots. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebScreenshotTool.ts commit 9efc89ad557b56c741d8765b60e80b35610df76e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:27:16 2024 +1000 CONVENTIONS are important commit 2b0d8adf47ef0ee5d2f6740a62f492c78f8eba16 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:26:20 2024 +1000 Updated docs with instructions for writing tests commit cd9643afc7d38ac30eb9246759ada624f8098538 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:23:56 2024 +1000 Added unit tests for FetchWebPageTool Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/fetchWebPageTool.test.ts commit eb4c8cadfec9166bcffb4cbd4fb5a6a8f31cd064 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:23:37 2024 +1000 docs: update testing guidelines for new tools Applied patches from BBai to 1 file Files modified: - TESTING.md commit b3cc3465bcd9ae9416a2510ee5dcad1a83191409 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:23:05 2024 +1000 Updated testing instructions and implementation guidelines for new tool Applied patches from BBai to 1 file Files modified: - NEW_TOOL.md commit 9437dce6d33bc48adc5317980a903ec18f52ea2d Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:22:42 2024 +1000 Added documentation for testing new tools Applied patches from BBai to 1 file Files modified: - NEW_TOOL.md commit c9e6aff694afb18ce80833fe6eb906147d047ef3 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:22:29 2024 +1000 Added guidelines for implementing new tools in the project, including recommendations for using class methods, applying appropriate types, and following existing patterns. Applied patches from BBai to 1 file Files modified: - NEW_TOOL.md commit 1b137314b03d884fa74fbb8232ffd4112907d58f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:16:39 2024 +1000 Refactored FetchWebPageTool import in test file Applied patches from BBai to 1 file Files modified: - api/tests/llms/tools/fetchWebPageTool.test.ts commit 44e0c4ea6bb4e1c46a6cee5d6c3b8b03c9ae5fc0 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:16:20 2024 +1000 Simplified imports in fetchWebPageTool.test.ts Applied patches from BBai to 1 file Files modified: - api/tests/llms/tools/fetchWebPageTool.test.ts commit 47773cb2e76870a7f6812a8715d9576f20c9cb5a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:16:01 2024 +1000 Added unit tests for the FetchWebPageTool class Applied patches from BBai to 1 file Files modified: - api/tests/llms/tools/fetchWebPageTool.test.ts commit 5724dd9786370ea7a95092eff6ac8e6a01ef9658 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 10:05:10 2024 +1000 Tools, tests and logging commit daf4b239080192cb75ca484e82717bfaa8fbe1ee Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:10:51 2024 +1000 Implemented FetchWebPageTool to fetch web page content and extract text Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebPageTool.ts commit dd210ac6becc9041e73218d53eda2e139832086c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:10:13 2024 +1000 Added unit tests for FetchWebPageTool to ensure successful fetch, invalid URL, and non-existent page scenarios. Applied patches from BBai to 1 file Files modified: - api/tests/llms/tools/fetchWebPageTool.test.ts commit e148fbea4a52f9d58c45b0054f93d15ed9b9ead5 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:09:57 2024 +1000 Implemented FetchWebPageTool to fetch and extract text content from web pages Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebPageTool.ts commit f7c53b45ecb802ffaeea1d8c611cc6460c75ac7d Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:09:31 2024 +1000 Implemented FetchWebPageTool to fetch web page content and extract text Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebPageTool.ts commit d2bed85fda2917bf28a7a2dea6d2c1a4ee5102e2 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:09:06 2024 +1000 Added `assert` import to `fetchWebPageTool.test.ts` Applied patches from BBai to 1 file Files modified: - api/tests/llms/tools/fetchWebPageTool.test.ts commit b7416b94f715e75a3acf56f038905dcc09855252 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:08:59 2024 +1000 Refactored imports and added constructor to FetchWebPageTool class Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebPageTool.ts commit 54be291e1ac8a1f67954f6bf2944d929f4ebf06f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:08:38 2024 +1000 Added web page fetching feature to README Applied patches from BBai to 1 file Files modified: - README.md commit 72ff6022a3b73c6b3fbcdc4f14cb749e2d7fef3c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:08:18 2024 +1000 Added unit tests for FetchWebPageTool class Applied patches from BBai to 1 file Files modified: - api/tests/llms/tools/fetchWebPageTool.test.ts commit 9533ef25e7cfd7f56c7ed2696e6d96808b124b46 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:08:04 2024 +1000 Added FetchWebPageTool to LLMToolManager Applied patches from BBai to 1 file Files modified: - api/src/llms/llmToolManager.ts commit 1027dd13bbe4d19826d8405e44144d0595248301 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 02:07:42 2024 +1000 Implemented a web page fetching tool with error handling and text extraction from HTML. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/fetchWebPageTool.ts commit 272e780b4ba18799d2906cbcc7c8f8f32b934bd1 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 01:52:28 2024 +1000 Updated test case to handle patch failure scenario Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/applyPatchTool.test.ts commit ead66a1cc5029b8557b6e329afcd3901c3c5659a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 01:51:51 2024 +1000 Added verification of unchanged file content after failed patch application Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/applyPatchTool.test.ts commit 4bf0949b28f2cefd7cff17a7f5143e3cf95892ae Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 01:23:24 2024 +1000 Improved ApplyPatchTool test to provide more detailed feedback on patch application Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/applyPatchTool.test.ts commit 9738aac45e0973f4ce71d614e829b69763027665 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 01:22:47 2024 +1000 Applied patch to files in the project Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/applyPatchTool.ts commit a68cb3473d3c459c35ee153a40da2cacdf9ab620 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 01:21:27 2024 +1000 Added a new Deno test case for ApplyPatchTool that verifies the tool's ability to apply a patch affecting multiple files. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/applyPatchTool.test.ts commit 23bc11e617fdc0297ea7b13046a1b5c8fd371962 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 01:21:03 2024 +1000 Added a new Deno test case for the ApplyPatchTool with a complex patch that includes multiple changes. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/applyPatchTool.test.ts commit fddc0206b0ffa9de3b7facb29547a050621325d0 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 01:20:39 2024 +1000 Added unit tests for the ApplyPatchTool class, covering basic functionality, creating a new file, attempting to patch a file outside the project root, and handling a failed patch application. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/applyPatchTool.test.ts commit 7f67705cb502a5e0ac0e33faaa301a32a020dfcd Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:13:09 2024 +1000 Improved the SearchAndReplaceTool test for Unicode characters The changes in this commit improve the SearchAndReplaceTool test for handling Unicode characters. The test now checks that the tool correctly applies search and replace operations on a file containing Unicode characters, and verifies the expected output in the tool's response and the modified file content. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit 0e18004374f89d9157de385098e73c287892e2aa Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:12:30 2024 +1000 Improved test for SearchAndReplaceTool with overlapping replacements The changes in this commit improve the test for the SearchAndReplaceTool by adding more detailed assertions to verify the expected behavior when handling overlapping replacements. The test now checks the structure and content of the `toolResults` array to ensure that the individual operations are correctly reported as successful. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit 54e9749fc1e243c7682c15f43406ced161c0355f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:11:53 2024 +1000 Improved test case for SearchAndReplaceTool with multiple replacements The changes in this commit improve the test case for the SearchAndReplaceTool by: - Verifying that the toolResults array has the expected number of elements (3) - Checking the contents of each operation result in the toolResults array Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit 93194d9268b2e8aee2be60c15c45b79936f022e9 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:11:17 2024 +1000 Improved test case for SearchAndReplaceTool to verify multiple non-overlapping replacements Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit cd467cb7398d295175ef6b97648b6f8211741719 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:10:40 2024 +1000 Improved test case for SearchAndReplaceTool with multiple operations on a new file Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit 4cfc5f3c09a41b909b138a0336fd4346b412acc9 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:10:01 2024 +1000 Added detailed test case for SearchAndReplaceTool Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit 27c7cfeb9b38f7199429b72646b04ac4f06e8bf1 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:06:40 2024 +1000 Added test case for Rewrite File Tool to create a new file Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/rewriteFileTool.test.ts commit 3ba042e340443caa7f9d015428925434e2863073 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sun Aug 18 00:05:29 2024 +1000 Added a second result to the tool response to indicate the operation was completed successfully. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/rewriteFileTool.test.ts commit 96269058689bd24da43f8700e4a8d028ff00de1f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:51:01 2024 +1000 Added test case for checking tool results in rewrite file tool test Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/rewriteFileTool.test.ts commit 792e4352a2d9a4590e52057ed51450301d970ce4 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:50:14 2024 +1000 Improved error handling for invalid search patterns in SearchProjectTool test Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchProjectTool.test.ts commit 8b53d6c6b707a1050647ec3988e5317da80deeba Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:49:50 2024 +1000 Added assertions to check the structure and content of the `toolResults` in the `SearchProjectTool - Search with no results` test. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchProjectTool.test.ts commit 76e158371cbe70db452133604bcde0d6d6b6c326 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:49:23 2024 +1000 Improved test case for SearchProjectTool to check the structure of the `toolResults` property. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchProjectTool.test.ts commit 878f7e5a3ba0ea173acab8d08f1fc1ef9b7f0029 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:49:00 2024 +1000 Improved test for SearchProjectTool by adding more assertions on the toolResults property. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchProjectTool.test.ts commit 2249ac167888d97548393be01e01ca06e1990da6 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:48:07 2024 +1000 Added test cases to verify the `toolResults` property of the `runTool` method in the `RunCommandTool` class. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/runCommandTool.test.ts commit 37c321ee871bd954c9692d81c5f5c1cace008b91 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:47:42 2024 +1000 Added assertions to check the contents of the `toolResults` array in the `RunCommandTool - Execute allowed command: deno task tool:format` test. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/runCommandTool.test.ts commit 41617cd0ea8406ad69adfa52e7a3f168c66fb0b9 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:47:18 2024 +1000 Added logging for tool results in RunCommandTool test Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/runCommandTool.test.ts commit 9f1821df5adecf729e28d27c3012795816bfc8cf Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:46:55 2024 +1000 Added assertions to check the `toolResults` property of the `runTool` method response. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/runCommandTool.test.ts commit a7e23cd8d932478673dc7e51d4528820455c1e62 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:45:55 2024 +1000 Implemented test for ForgetFilesTool to handle mix of existing and non-existent files Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/forgetFilesTool.test.ts commit 4294f8f531dc68ed5b3cfb18cc786bcdad2148b5 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:45:10 2024 +1000 Added assertions to check the structure of the `toolResults` in the `ForgetFilesTool` test. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/forgetFilesTool.test.ts commit f96ae065ab91f146488ac1175498d194490223c2 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:44:36 2024 +1000 Added detailed toolResponse and toolResults to ForgetFilesTool test Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/forgetFilesTool.test.ts commit 3b27c76199f71dd5cdc8cf21e64ed1c5d807d161 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:43:35 2024 +1000 Added tests for RequestFilesTool to verify that it handles requests for files outside the project root correctly. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/requestFilesTool.test.ts commit 9535b56824e4a665950e3d48f26c9417a0dc0ccc Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:42:59 2024 +1000 Added toolResults validation to RequestFilesTool test Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/requestFilesTool.test.ts commit fc9ffaca3984018b053dad74d7c2253c0250498f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:42:31 2024 +1000 Added assertions to verify the tool response and tool results for the RequestFilesTool test. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/requestFilesTool.test.ts commit 15dbc76ed72714e81cd6040b7d7c2fab2aa1bf7f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:41:41 2024 +1000 Added tests for the SearchAndReplaceTool, including cases for replacing with an empty string, case-sensitive search, multiple non-overlapping replacements, and overlapping replacements. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit 6c611fc5922fd8c2d942b673893e24944a9f5afc Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:40:28 2024 +1000 Added tests for SearchAndReplaceTool, including creating a new file, performing multiline search and replace, and case-insensitive search and replace. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit 20f57ef473af94fe9cabff72863841bf21abed10 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:39:36 2024 +1000 Added tests for SearchAndReplaceTool handling multiple operations on a new file and Unicode characters Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit f07b2da2c22af2440094f5f126cb9c95e95ed335 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 23:38:56 2024 +1000 Added test case for SearchAndReplaceTool's basic functionality Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/searchAndReplaceTool.test.ts commit da68eaf00b1b0e340e44e455bd68cb189b826afb Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 19:39:55 2024 +1000 Added a new guide for creating tools in the BBai project. Applied patches from BBai to 1 file Files modified: - NEW_TOOL.md commit 41a52e440e4d4c60f57e6b7936784960b221a37c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 17:44:43 2024 +1000 Improved search and replace tool result formatting to handle different result types Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 00c2501de5f06ad71bdabcd850107fe107b1e5fb Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 17:18:36 2024 +1000 Improved the patch application result formatting to provide more detailed information about the changes. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/applyPatchTool.ts commit f0168e68d09bc648f2d0888a4b27194c51d6cb83 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 17:10:58 2024 +1000 Improved search and replace tool output formatting Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit f81335d5702338f3399ba2d6fec9bdad0f9bdc85 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 16:42:00 2024 +1000 Implemented search and replace tool with support for creating missing files and handling partial operation success Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 08545ea67a750cf8148a33fcdf5a5c3c3ae337ce Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 15:46:05 2024 +1000 Improved search and replace tool handling by tracking operation success and failure, and returning tool response details. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit a8f3506daa64bb5bf7f4bcb5948f36e5bf4b13c1 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 15:45:36 2024 +1000 Refactored search and replace tool to track operation status and provide detailed results Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 32525d1f6a0df7cd34bcd7bd5665ccc548b4cba3 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 15:31:00 2024 +1000 Added input and result formatters to LLMToolRewriteFile class Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/rewriteFileTool.ts commit 8b25ca7f20fd4769326297ce4df28437bc6b07ef Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 15:29:10 2024 +1000 Added input and output formatters for LLMToolRunCommand. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/runCommandTool.ts commit 0a14e20cf84d1c765086ab3510ac158963dc869e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 15:25:51 2024 +1000 Added input and result formatters to the LLMToolSearchProject class Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchProjectTool.ts commit 97a62b9f61e9b674c7db3dd3b7413db650643fcc Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 15:19:17 2024 +1000 Added input and result formatters to LLMToolApplyPatch class Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/applyPatchTool.ts commit 39426e064fb6bdfc78b17e301a652bdbb4a5178e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 14:01:51 2024 +1000 Refactored input and result formatting in forgetFilesTool.ts Refactored the input and result formatting in the forgetFilesTool.ts file to use more generic ToolInputFormatter and ToolResultFormatter types, and simplified the formatting logic. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/forgetFilesTool.ts commit fa8580927c0b925a275916043d44a02a1725c983 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 14:01:38 2024 +1000 refactor(requestFilesTool): update input and result formatters Refactored the `requestFilesTool` module to use the new `ToolInputFormatter` and `ToolResultFormatter` interfaces, improving the flexibility and maintainability of the tool's input and output formatting. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/requestFilesTool.ts commit fffc95b5f7d98a66c746b0a0e31d3befd52af3fe Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 12:04:15 2024 +1000 Refactored websocket setup process, removed unnecessary flag, and added greeting message Applied patches from BBai to 1 file Files modified: - cli/src/utils/websocketManager.ts commit c6280ee72cb4a424bb4433d25fb46e09d89845ae Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 11:54:20 2024 +1000 Refactored WebSocket setup logic to improve reliability and simplify event listener management. Applied patches from BBai to 1 file Files modified: - cli/src/utils/websocketManager.ts commit 15dcad9f508b5284e90e6e02bb8bfecb3b2dd60c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 11:48:20 2024 +1000 Moved event listener setup before WebSocket connection, added logging for WebSocket open event, and removed unnecessary check in event listener setup. Applied patches from BBai to 1 file Files modified: - cli/src/utils/websocketManager.ts commit 1646198614cb9bfb4984890bc14e7baa6078f075 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 11:40:09 2024 +1000 Refactored WebsocketManager to separate event listener setup and message handling logic Applied patches from BBai to 1 file Files modified: - cli/src/utils/websocketManager.ts commit 77f712b1dc9bd02050a7ee6921ba27b7b4aba66c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 00:18:32 2024 +1000 Improved formatting and styling of the ForgetFilesTool input and output for console and browser environments. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/forgetFilesTool.ts commit 312f61b752a52c60177e726df2406dd2c1e3080e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 00:18:21 2024 +1000 Enhance requestFilesTool.ts with improved input and result formatting for console and browser environments. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/requestFilesTool.ts commit 72d5e08c512d6d4001d67d22186fb3178c3d1361 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Sat Aug 17 00:17:59 2024 +1000 prettier tool use and result commit b339bef93b1bd5c48ca7109bb9a07d2c05ad4950 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 23:23:33 2024 +1000 Added support for console and browser formatting in searchAndReplaceTool.ts Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 0f0a1156b013d9aab84c4df87bc1b7d1627d5144 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 22:48:35 2024 +1000 Improved input and result formatting in searchAndReplaceTool.ts Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 22f24b5766af0d5b00c590759c40a3ae41627ca6 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 22:47:16 2024 +1000 Added support for custom formatting options in the forgetFilesTool Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/forgetFilesTool.ts commit b8dedd63f0e36135c8d4777567c91ef9e8a72d2a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 22:47:08 2024 +1000 Added optional format parameter to inputFormatter and resultFormatter functions to support console and JSON output formats. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/requestFilesTool.ts commit c3da4b05fc3b7a60052eb54a5240f07a974507c3 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 22:47:01 2024 +1000 Added optional format parameter to input and result formatters in searchAndReplaceTool.ts Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 8eec7ef6587c322bcbe875cc1bbe4e002071fa24 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 22:42:33 2024 +1000 Added input and result formatters to LLMToolForgetFiles class Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/forgetFilesTool.ts commit 749f48853a3dd7680cb5f8a8cfe06fd784aa06c0 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 22:24:58 2024 +1000 Added input and result formatters to the LLMToolRequestFiles class. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/requestFilesTool.ts commit ebd4f4bc05e2e140de67b752185234673bc8c96a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 22:20:55 2024 +1000 Added input and result formatters to LLMToolSearchAndReplace class Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 6412622bf88ac62a26217a4a3ef54104673faa90 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 21:18:47 2024 +1000 Added optional formatters for tool input and result in conversationLogger.utils.ts Applied patches from BBai to 1 file Files modified: - src/shared/utils/conversationLogger.utils.ts commit b426cb2ef936fcacdc2d4a65a361f7c9511d4907 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 19:05:24 2024 +1000 Refactored log viewing functionality to use shared utility functions and handle conversation and API logs differently. Applied patches from BBai to 1 file Files modified: - cli/src/commands/viewLogs.ts commit 5c03b6bdd0ac0dbc85ad551a440b65ec937755b0 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 19:05:05 2024 +1000 Refactored API log following functionality to use shared log viewer utility Applied patches from BBai to 1 file Files modified: - cli/src/utils/apiControl.utils.ts commit 224d26a499fbbb863e84b2c780b38f9533f1ac77 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 19:04:51 2024 +1000 Implemented log viewer utilities for watching and viewing log files Applied patches from BBai to 1 file Files modified: - src/shared/utils/logViewer.utils.ts commit 37ab135a4b94c623ff166964b5f3d75151e3c2e2 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 19:03:56 2024 +1000 logs commit 0424c2ddfbd28921c52c8337eedbb50053202299 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:52:41 2024 +1000 Added logic to return the PID and log file path when the API server is already running. Applied patches from BBai to 1 file Files modified: - cli/src/utils/apiControl.utils.ts commit a56b1fd25965e0548a531c75b8e0823516153f2a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:50:25 2024 +1000 Added startDir parameter to followApiLogs function call in apiStart command Applied patches from BBai to 1 file Files modified: - cli/src/commands/apiStart.ts commit 3a3a601f25de928ba96858cd0837971aec27fcb2 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:50:17 2024 +1000 Added SIGINT (Ctrl+C) handler to stop API server when following logs Applied patches from BBai to 1 file Files modified: - cli/src/utils/apiControl.utils.ts commit 6908a4cc33278a2e62dab965558c5d8424a44894 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:45:16 2024 +1000 Added follow option to startApiServer and implemented followApiLogs function to continuously stream API logs Applied patches from BBai to 1 file Files modified: - cli/src/utils/apiControl.utils.ts commit 4a293874fcbb7ce7cf5025b753000a15793356cb Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:45:05 2024 +1000 Added a '--follow' option to the 'api start' command to allow following the API logs without detaching the process. Applied patches from BBai to 1 file Files modified: - cli/src/commands/apiStart.ts commit dc478e92498b57a51e70db6ff0ee0cfd6d6dabe5 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:26:27 2024 +1000 format commit f0a7573a16fc0fb727d41511871a58ac095aba96 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:25:49 2024 +1000 Test stubs for tools, logging cleanup commit 2b014bc758483b0de45a1677353d5a156c7462e3 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:12:15 2024 +1000 Improved error handling in `terminalHandler.utils.ts` by accepting a more flexible `data` parameter and extracting the error message appropriately. Applied patches from BBai to 1 file Files modified: - cli/src/utils/terminalHandler.utils.ts commit 385c2a19e9bd1e6a3fae8eee4bf9904b0a3ae7ee Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:11:18 2024 +1000 Improved error handling in conversationStart command Applied patches from BBai to 1 file Files modified: - cli/src/commands/conversationStart.ts commit 01d8b48bde3e72d50d131be2728685c32f8f106c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:06:14 2024 +1000 Added type check for error data in 'cli:conversationError' event handler Applied patches from BBai to 1 file Files modified: - cli/src/commands/conversationStart.ts commit 7337b6abdd06612d50c91ea9a43ad785067ecceb Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 18:02:55 2024 +1000 Added a new `displayError` method to the `TerminalHandler` utility to display error messages in a formatted box. Applied patches from BBai to 1 file Files modified: - cli/src/utils/terminalHandler.utils.ts commit f73e6c63f840866e3aa9e6af1efe5099f002fbd9 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 15:54:36 2024 +1000 Refactored orchestrator controller stub creation using a helper function Applied patches from BBai to 1 file Files modified: - api/tests/lib/stubs.ts commit 30de0b329b89d036e4cbc8ba98a0eef82a962387 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 15:51:19 2024 +1000 Refactored the `makeOrchestratorControllerStub` function to return a function that creates the `orchestratorController` object, improving the function's readability and maintainability. Applied patches from BBai to 1 file Files modified: - api/tests/lib/stubs.ts commit 62ab0463f65fd6535e9e073b761368ca348b4243 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 14:26:18 2024 +1000 Refactored conversation persistence logic in search and replace tool Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/searchAndReplaceTool.ts commit 3f5bc8e822d1aeb28537381a16083d69917d0547 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 14:25:57 2024 +1000 Added error handling and persistence for patched files in the orchestratorController Applied patches from BBai to 1 file Files modified: - api/src/controllers/orchestratorController.ts commit 8e2a04067955a9ff927ccd1a616aa9ea96027009 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 01:16:43 2024 +1000 version bump commit 442dd8e30ec628288a5af177b63d8530b1b805c9 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 01:14:53 2024 +1000 hotfix for console logging; started custom log formatters for tools commit df5bd2070f1242dea6be6fcf5d7b71bae5e5dbf8 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 01:05:40 2024 +1000 Wrote test message to confirm tool use is working as expected Applied patches from BBai to 1 file Files modified: - test_tool_use.txt commit 8f60ba1169abbdd0f2e7aa32059a883d60ba014e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:59:55 2024 +1000 Added left padding to conversation start display for better readability Applied patches from BBai to 1 file Files modified: - cli/src/utils/terminalHandler.utils.ts commit 33a5a2b9c9be1a6dee0173d309fd0ecc5156255e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:56:54 2024 +1000 Refactored conversation start display to use a more compact format for narrow consoles Applied patches from BBai to 1 file Files modified: - cli/src/utils/terminalHandler.utils.ts commit 814d834965f48e22fc56e346c364b9eb595db73a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:45:10 2024 +1000 Updated test file to trigger tool use logging Applied patches from BBai to 1 file Files modified: - test_tool_use.txt commit 886c46f62a23cfde50f61cc46806ac32eaee67b1 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:45:00 2024 +1000 Added logging and error handling to the `logEntry` method in `conversationLogger.utils.ts`. Applied patches from BBai to 1 file Files modified: - src/shared/utils/conversationLogger.utils.ts commit 2d8fbf75358242e8d3f548bfa29fe3e81071a211 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:40:20 2024 +1000 Added test file to trigger tool use logging. Applied patches from BBai to 1 file Files modified: - test_tool_use.txt commit 9fe8651e9c89e83a7bfa1938a2927e510e2f4300 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:38:07 2024 +1000 Improved logging in conversationLogger.utils.ts Applied patches from BBai to 1 file Files modified: - src/shared/utils/conversationLogger.utils.ts commit 6dbd6d22b8cc5fed2222e165185ce0bdcd15742a Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:28:23 2024 +1000 Updated API documentation with new endpoints and details Applied patches from BBai to 1 file Files modified: - API.md commit 7236ce26e34a26df8ff165d900cc786767c3496b Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:22:10 2024 +1000 Refactored git utility imports and usage in projectEditor.ts Applied patches from BBai to 1 file Files modified: - api/src/editor/projectEditor.ts commit 4791ba1715df730a927165bb5f05f5466ba8074e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:22:03 2024 +1000 Added method to get last commit hash for a file Applied patches from BBai to 1 file Files modified: - src/shared/utils/git.utils.ts commit 46291952ac57706a2a467f69cd707e73a8f7e94c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Fri Aug 16 00:17:26 2024 +1000 Added last commit information to file metadata in `prepareFilesForConversation` function. Applied patches from BBai to 1 file Files modified: - api/src/editor/projectEditor.ts commit 1b8b3703a7edeb7158066d78d61175fc52f28bfe Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:37:14 2024 +1000 Implemented RequestFilesToolFormatter and LLMToolRequestFiles to handle file requests in LLM conversations Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/requestFilesTool.ts commit 1c58a9d7391b1a581504ea73f481257b5b7c2860 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:36:54 2024 +1000 Implemented LLMToolManager class with tool loading, registration, and handling of tool usage Applied patches from BBai to 1 file Files modified: - api/src/llms/llmToolManager.ts commit 0f3692fa495c2a00d4047345ab8b43b9d3be0864 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:13:34 2024 +1000 Registered RequestFilesTool formatter and added static formatter property Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/requestFilesTool.ts commit 6eb12f1eecc62d84bdea7c2ecba9535c4b68acad Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:08:32 2024 +1000 Added error handling to `logToolUse` and `logToolResult` functions in `conversationLogger.utils.ts` to gracefully handle errors when formatting tool use and result messages. Applied patches from BBai to 1 file Files modified: - src/shared/utils/conversationLogger.utils.ts commit 23fc03d4bde5d91803df02945c5e1233192cd4ee Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:06:33 2024 +1000 Added RequestFilesToolFormatter and registered it with LLMToolManager Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/requestFilesTool.ts commit 9784fb7b8baf32b5ff68360c6e9aa590d671411f Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:06:20 2024 +1000 Added tool formatter support to conversation logger Applied patches from BBai to 1 file Files modified: - src/shared/utils/conversationLogger.utils.ts commit 497471319d92d81d321a9f99e73bb6f9a346fbdf Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:05:58 2024 +1000 Added tool formatter registration and retrieval functionality to LLMToolManager. Applied patches from BBai to 1 file Files modified: - api/src/llms/llmToolManager.ts commit ce2dd54385156c19ef85b1595c39e4afe4f6b4f3 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 23:05:50 2024 +1000 Added LLMToolRunResultContent, LLMToolFinalizeResult, and ToolFormatter interfaces to llmTool.ts. Applied patches from BBai to 1 file Files modified: - api/src/llms/llmTool.ts commit 6dd17a31ff7e851c1452c965f174b1e3028dba1c Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 22:48:00 2024 +1000 Fixes for rewrite file tool commit 6a5dd0b08ab4a0565798ad1a36a0b8f9bf96f422 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:38:30 2024 +1000 Refactored conversation logger to handle missing conversation metrics and token usage data Applied patches from BBai to 1 file Files modified: - src/shared/utils/conversationLogger.utils.ts commit f50022ed19cd4674197302681ca4e54d74e603ba Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:38:10 2024 +1000 Refactored the `rewriteFileTool` to accept an `LLMConversationInteraction`, `LLMAnswerToolUse`, and `ProjectEditor` instead of just file path and content. Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/rewriteFileTool.ts commit 5361fe4e9776c18dc316a4898c29441bf17e01c4 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:37:48 2024 +1000 Added ConversationTokenUsage type to conversationLogger.utils.ts Applied patches from BBai to 1 file Files modified: - src/shared/utils/conversationLogger.utils.ts commit 7a0777df914be5b828be928da837727dfdd1addd Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:37:20 2024 +1000 Refactored RewriteFileTool to use async/await and updated input schema Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/rewriteFileTool.ts commit 5da3a778b8d8441fb22d184b3607585f11684c00 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:37:03 2024 +1000 Updated import paths for Deno standard library modules Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/rewriteFileTool.ts commit 0cbd46ab1af7c49d2454dc68406d1846d01615b9 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:36:51 2024 +1000 Updated imports to use fully qualified URLs for Deno standard library modules. Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/rewriteFileTool.test.ts commit e50e2f3595a91f71f075c08cf63685e19ef60564 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:36:34 2024 +1000 Added unit tests for the RewriteFileTool class Applied patches from BBai to 1 file Files modified: - api/tests/t/llms/tools/rewriteFileTool.test.ts commit 4d81be18073b8401e30c98e6edcea745b701efc5 Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:36:15 2024 +1000 Added RewriteFileTool to the list of registered tools in LLMToolManager Applied patches from BBai to 1 file Files modified: - api/src/llms/llmToolManager.ts commit 154272275907c3d6f50c90b1f5e65a6a80db5f7e Author: Charlie Garrison <charlie-github@garrison.com.au> Date: Thu Aug 15 21:35:46 2024 +1000 Implemented RewriteFileTool class to rewrite or create files within the project directory Applied patches from BBai to 1 file Files modified: - api/src/llms/tools/rewriteFileTool.ts
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.
This release is also a beta candidate - time to evolve out of alpha