From 6848b70beebfdc1412494921211c11609551b416 Mon Sep 17 00:00:00 2001 From: danielcampagnolitg <138441775+danielcampagnolitg@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:51:38 +0800 Subject: [PATCH] 0.4.0 (#40) * UI and logging updates * Add agent force stop route * Add Groq Llama 3.3 70b * Improve repo summary index generation * Add Jira.createIssue * Default the setTracer checkForcedStoppedFunc for tests * Add Google Cloud security command center function * Add Gemini Flash 2.0 support --- CONVENTIONS.md | 18 - .../agent-details.component.html | 6 +- .../agent-details/agent-details.component.ts | 5 +- .../agent-function-calls.component.ts | 16 +- .../agents/new-agent/new-agent.component.ts | 2 +- src/CONVENTIONS.md | 19 + src/agent/cachingCodeGenAgentRunner.ts | 2 +- src/agent/codeGenAgentRunner.ts | 16 +- src/agent/forceStopAgent.ts | 52 +++ src/cache/cacheRetry.ts | 4 +- src/cli/gaia.ts | 7 +- src/cli/gen.ts | 6 +- src/cli/query.ts | 1 - src/cli/swebench.ts | 1 - src/cli/watch.ts | 10 +- src/fastify/trace-init/trace-init.ts | 5 +- src/functionRegistry.ts | 2 +- .../cloud/{ => google}/google-cloud.ts | 0 .../cloud/google/security-command-center.ts | 83 ++++ src/functions/jira.ts | 442 ++++++++++++++++++ src/functions/jiraIssueType.ts | 35 ++ src/functions/storage/fileSystemService.ts | 5 + src/llm/base-llm.test.ts | 106 +++++ src/llm/llm.ts | 6 +- src/llm/services/groq.ts | 35 +- src/llm/services/llm.int.ts | 4 +- src/llm/services/vertexai.ts | 23 +- src/modules/slack/slackChatBotService.ts | 2 +- src/o11y/trace.ts | 11 +- src/routes/agent/agent-execution-routes.ts | 20 + src/swe/documentationBuilder.ts | 80 +++- 31 files changed, 907 insertions(+), 117 deletions(-) create mode 100644 src/CONVENTIONS.md create mode 100644 src/agent/forceStopAgent.ts rename src/functions/cloud/{ => google}/google-cloud.ts (100%) create mode 100644 src/functions/cloud/google/security-command-center.ts create mode 100644 src/functions/jiraIssueType.ts create mode 100644 src/llm/base-llm.test.ts diff --git a/CONVENTIONS.md b/CONVENTIONS.md index 05376a37..c174c7f1 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -7,21 +7,3 @@ Use async/await where possible Test exceptional cases first and return/throw early. Never edit files name CONVENTIONS.md or .cursorrules - -# Test code standards - -Unit test files should be in the same directory as the source file. - -Any usage of chai-as-promised should use async/await -``` -it('should work well with async/await', async () => { - (await Promise.resolve(42)).should.equal(42) - await Promise.reject(new Error()).should.be.rejectedWith(Error); -}); -``` - -# Tool/function classes - -Function classes with the @funcClass(__filename) must only have the default constructor. - -Always use the Filesystem class in src/functions/storage/filesystem.ts to read/search/write to the local filesystem. diff --git a/frontend/src/app/modules/agents/agent/agent-details/agent-details.component.html b/frontend/src/app/modules/agents/agent/agent-details/agent-details.component.html index 9ef1529a..ea273789 100644 --- a/frontend/src/app/modules/agents/agent/agent-details/agent-details.component.html +++ b/frontend/src/app/modules/agents/agent/agent-details/agent-details.component.html @@ -1,7 +1,7 @@ @if(agentDetails) {
- Feedback Requested + Feedback Requested - Agent Error + Agent Error @@ -75,7 +75,7 @@ - Human In Loop check + Human In Loop check