43 Commits

Author SHA1 Message Date
simlarsen
4a7f27a372 chore: npm audit fix 2026-01-27 02:04:49 +00:00
simlarsen
1928244a8e chore: npm audit fix 2026-01-24 01:54:38 +00:00
simlarsen
d3d0dedfee chore: npm audit fix 2026-01-21 02:01:12 +00:00
simlarsen
79b36c5b27 chore: npm audit fix 2026-01-15 01:57:09 +00:00
Nawaz Dhandala
c1efcf578f feat(migration): Refactor MigrationName1767979448478 for improved readability and structure
- Updated migration script to enhance code clarity and maintainability.
- Reformatted SQL queries for better readability.
- Added comments to clarify migration steps.
- Ensured consistent use of async/await syntax.
- Updated index file to include the new migration.
- Adjusted TelemetryUsageBillingService and other components for better code style and consistency.
2026-01-09 19:36:10 +00:00
Nawaz Dhandala
57f36d75b3 refactor: Update telemetryService references to service in FixExceptionTaskHandler for consistency 2026-01-09 18:46:07 +00:00
Nawaz Dhandala
165976608d refactor: Replace telemetryServiceId with serviceId in FixException metadata and related services for consistency 2026-01-09 18:43:39 +00:00
Nawaz Dhandala
e7089e9e85 Refactor TelemetryService to Service across the application
- Replaced all instances of TelemetryService with Service in components, pages, and utilities.
- Updated related imports and state management to reflect the new Service model.
- Removed the TelemetryServices view and associated routes, as it is no longer needed.
- Adjusted breadcrumb and route mappings to remove references to Telemetry Services.
- Ensured that all relevant functionality, such as logs and metrics, now utilize the Service model.
2026-01-09 15:49:52 +00:00
Nawaz Dhandala
65fa365d06 Refactor comments in OpenCodeAgent and AIAgentDataAPI for clarity; remove unused sections in NavBarMenu and NavBarMenuItem 2026-01-08 14:25:17 +00:00
Nawaz Dhandala
bbfe8dcf7e Add backup and restoration for opencode.json in OpenCodeAgent 2026-01-08 13:39:40 +00:00
Nawaz Dhandala
5342317d57 Enhance OpenCodeAgent to pass prompt via stdin, improving handling of long prompts 2026-01-08 12:00:23 +00:00
Nawaz Dhandala
6d919920f7 Enhance OpenCodeAgent to use CLI mode flags for improved logging and output handling 2026-01-08 11:47:19 +00:00
Nawaz Dhandala
6153e8b450 fix: Simplify error logging in metrics queue-size endpoint 2025-12-30 18:09:49 +00:00
Nawaz Dhandala
a0a31e9e25 feat: Implement KEDA autoscaling for AI Agent with metrics endpoint and configuration 2025-12-29 19:28:00 +00:00
Nawaz Dhandala
051641339a style: Improve code formatting for better readability in PullRequestCreator 2025-12-29 15:19:25 +00:00
Nawaz Dhandala
43947932f2 style: Update type definition for API response to include HTTPErrorResponse in PullRequestCreator 2025-12-29 15:18:21 +00:00
Simon Larsen
0cf556efde Merge pull request #2205 from OneUptime/ai-agent-tasks
Ai agent tasks
2025-12-29 14:29:22 +00:00
Nawaz Dhandala
c381c51957 style: Refactor type definitions and improve error handling across multiple files 2025-12-29 14:28:52 +00:00
Nawaz Dhandala
8ab088ace0 style: Improve code formatting and add comments for clarity across multiple files 2025-12-29 14:13:05 +00:00
Nawaz Dhandala
f96c0404bc style: Enhance logging in OpenCodeAgent to stream output to console and task logger immediately 2025-12-29 14:04:18 +00:00
Nawaz Dhandala
347e0cdd2f style: Modify log flushing to send each log entry separately for better granularity 2025-12-29 13:59:15 +00:00
Nawaz Dhandala
629890b118 style: Add OpenCode AI to PATH in Dockerfile for easier access 2025-12-29 13:26:57 +00:00
Nawaz Dhandala
3633e376bc fix: Change log severity from warning to error for telemetry and repository issues in FixExceptionTaskHandler 2025-12-29 12:45:26 +00:00
Nawaz Dhandala
6726dd9a6d fix: Update URL handling in BackendAPI methods to use URL.fromURL for consistency 2025-12-29 12:35:12 +00:00
Nawaz Dhandala
660c800166 feat: Update error handling in FixExceptionTaskHandler to mark failures as actual errors 2025-12-29 11:48:57 +00:00
Nawaz Dhandala
39de2ebb87 feat: Replace UUID with ObjectID for unique workspace identification in WorkspaceManager 2025-12-29 11:44:57 +00:00
Nawaz Dhandala
afe072f5e7 feat: Refactor task ID handling to use ObjectID for improved type safety in task processing 2025-12-29 11:38:47 +00:00
Nawaz Dhandala
16fb097c55 feat: Enhance task handling and API response types for AI Agent functionality 2025-12-29 11:33:36 +00:00
Nawaz Dhandala
122a4b7b0a feat: Implement RepositoryManager, TaskLogger, and WorkspaceManager for AI Agent functionality
- Added RepositoryManager for handling git operations including cloning, branching, committing, and pushing changes.
- Introduced TaskLogger for structured logging of AI Agent tasks with automatic flushing and context management.
- Created WorkspaceManager to manage temporary workspaces for tasks, including creation, deletion, and file operations.
- Integrated AIAgentDataAPI to facilitate data fetching and logging for AI Agent tasks, including LLM configuration and pull request recording.
- Updated BaseAPI to include new AIAgentDataAPI routes for enhanced AI Agent capabilities.
2025-12-29 11:20:34 +00:00
simlarsen
e72a0d2b16 chore: npm audit fix 2025-12-29 02:03:34 +00:00
Nawaz Dhandala
3fa6f9e7b1 feat: install OpenCode AI coding assistant in Dockerfile 2025-12-28 20:22:14 +00:00
Nawaz Dhandala
6689aaa8b8 feat: add Dockerfile for OneUptime-AIAgent with environment setup and dependency installation 2025-12-28 20:19:38 +00:00
Nawaz Dhandala
8bd5916d14 fix: remove unused dependencies from package.json 2025-12-28 19:54:41 +00:00
Nawaz Dhandala
1f28f0191d fix: update package-lock.json to include peer dependency and improve query prop handling in AIAgentTaskTable 2025-12-28 19:36:12 +00:00
Nawaz Dhandala
45a1748d50 feat: Implement logging for AI Agent task execution lifecycle 2025-12-28 12:33:46 +00:00
Nawaz Dhandala
05607d0487 fix: Refactor task processing logic by renaming and updating the task processing loop implementation 2025-12-26 12:03:39 +00:00
Nawaz Dhandala
7da6584c48 feat: Add ProcessScheduledTasks job and AIAgentTaskAPI for task management 2025-12-25 21:09:16 +00:00
Nawaz Dhandala
c711316097 Implement feature X to enhance user experience and optimize performance 2025-12-25 19:38:06 +00:00
Nawaz Dhandala
79c3cf981f fix(ai-agent): Improve error handling during AI Agent registration 2025-12-24 18:48:41 +00:00
Nawaz Dhandala
f519520966 feat(ai-agent): Enhance AI Agent registration with name and description fields 2025-12-24 17:29:54 +00:00
Nawaz Dhandala
583d86bbc9 refactor: Standardize formatting for alive URL construction in InitJob and Register classes 2025-12-24 15:39:26 +00:00
Nawaz Dhandala
19f8dc8b19 feat(ai-agent): Update AI Agent API routes and remove deprecated ingest feature 2025-12-24 15:29:24 +00:00
Nawaz Dhandala
1a2acbf12d feat(ai-agent): Implement AI Agent service with configuration, registration, and health check functionality 2025-12-24 15:24:47 +00:00