Commit Graph

27 Commits

Author SHA1 Message Date
Pawan Osman d47e978be7 Enhance semantic indexing and UI status display
- Updated the `semanticIndex` module to support GPU acceleration with ONNX Runtime, improving performance on compatible devices.
- Introduced new functions to determine preferred embedding devices and handle device status, enhancing the flexibility of the embedding process.
- Expanded the `IndexStatus` interface to include backend type, device information, and runtime details for better tracking of indexing status.
- Enhanced the UI in the settings panel to display runtime and device information, providing users with clearer insights into the indexing process and model usage.
2026-07-15 15:37:43 +03:00
Pawan Osman a3d917d1b5 Enhance file indexing and exclusion logic for improved performance
- Updated the `indexWatch` module to refine the criteria for skipping non-source directories and files, including a comprehensive list of ignored paths.
- Enhanced the `semanticIndex` module with additional file extensions and directory segments to ensure only relevant source files are indexed.
- Introduced new utility functions to determine indexable paths, improving the accuracy of the indexing process and reducing unnecessary overhead.
- Expanded the `IGNORE` set in the `shared` module to include more build and cache directories, streamlining the file walking process.
2026-07-15 15:28:56 +03:00
Pawan Osman 205c6cd1b7 Implement per-tool timeout configuration in settings
- Added support for per-tool timeout overrides in seconds, allowing users to customize tool execution limits.
- Introduced `setToolTimeoutOverrides` function to apply user-defined timeout settings.
- Updated the `FeatureConfig` interface and default settings to include `toolTimeoutsSec`.
- Enhanced the settings UI to display and manage tool timeout values, ensuring a better user experience for configuring tool behavior.
2026-07-15 15:25:24 +03:00
Pawan Osman 3b246ec787 Implement per-tool timeout and abort signal handling for agent tools
- Introduced a timeout mechanism for various tools (e.g., Grep, Glob, Shell) to prevent blocking the agent loop due to hung processes.
- Enhanced the `walk` function to accept an optional AbortSignal, allowing for graceful cancellation of directory traversals.
- Updated the `runAgent` function to utilize the new timeout and abort handling, ensuring tools can be aborted without affecting the overall agent execution.
- Refactored the `grepTool`, `globTool`, and `fileSearchTool` to incorporate abort signal handling, improving responsiveness during long-running operations.
- Added utility functions for managing tool timeouts and signal handling across the agent's tools.
2026-07-15 15:19:38 +03:00
Pawan Osman 75955a8033 Enhance context management and UI components in agent and sidebar
- Updated the `runAgent` function to improve context handling for subagents, ensuring isolated execution and clearer event emission.
- Refactored context budget logic to optimize summarization at 80% usage, enhancing performance during agent runs.
- Introduced a new `ContextPicker` component in the sidebar for selecting context sizes, improving user interaction with model options.
- Added styling for context chips and dropdowns to enhance the UI experience in the sidebar.
2026-07-15 14:24:16 +03:00
Pawan Osman 268b0e28de Enhance agent context handling and feature store options
- Updated the `runAgent` function to include additional parameters for context management, ensuring isolated execution for subagents.
- Introduced a new `parseContextLabel` function to convert context size labels into token counts, improving flexibility for model configurations.
- Enhanced the `optionsFor` method in `FeatureStore` to ensure every model has a context window option, providing a fallback for models without preset context values.
- Refactored sidebar provider logic to utilize the new context parsing function, streamlining context size handling across the application.
2026-07-15 14:21:53 +03:00
Pawan Osman 1baa6f8c58 Refactor agent run logic and enhance cancellation handling
- Improved the `runAgent` function to handle parent and child abort signals more robustly, ensuring proper cleanup and cancellation of subagents.
- Introduced a new `raceAbort` function to manage timeouts and abort conditions for running promises, preventing hangs during execution.
- Enhanced the `forceSettleOpenWork` function to mark open tools and subagents as cancelled or closed, improving the user experience during interruptions.
- Updated the UI components to reflect the new cancellation logic, ensuring that the status of ongoing operations is accurately communicated to users.
- Refactored various sections of the codebase to streamline the handling of agent runs and their associated states.
2026-07-15 14:14:50 +03:00
Pawan Osman 3da6b8675b Enhance background subagent handling in runAgent function
- Introduced a new function `awaitPendingBg` to manage background subagents more effectively, ensuring that the main agent waits for all unreported subagents to settle before proceeding.
- Updated the logic to handle in-flight background tasks, preventing premature model calls while background work is still ongoing.
- Improved status notifications to inform users about the waiting state for background subagents.
- Refactored existing code to streamline the handling of background tasks and their results.
2026-07-15 14:05:32 +03:00
Pawan Osman 2f04612e8d Implement incremental indexing and file watching for semantic updates
- Introduced a new `indexWatch` module to handle debounced file watching for incremental updates to the semantic index.
- Updated `activate` function to initialize the index watcher and replace the previous build index call with a warm disk and incremental sync.
- Enhanced the `semanticIndex` module to support enabling/disabling indexing and improved index path normalization.
- Modified the settings panel and UI components to include an option for enabling/disabling indexing, reflecting changes in the feature store.
- Ensured that indexing operations respect the new `indexingEnabled` flag across various functionalities, including search and document indexing.
2026-07-15 13:56:26 +03:00
Pawan Osman 72cbd0b120 Add VS Code configuration files for extension development
- Created .vscode/extensions.json to recommend essential extensions.
- Added .vscode/launch.json for launch configurations to run the extension.
- Introduced .vscode/settings.json to customize workspace settings, including file exclusion.
- Implemented .vscode/tasks.json to define build and watch tasks for TypeScript and esbuild.
2026-07-15 13:48:55 +03:00
Pawan Osman f8ea587099 Update CHANGELOG for version 0.0.2 and implement workspace-specific conversation storage
- Added per-workspace conversations with automatic migration from global conversations.
- Implemented auto-loading of GGUF models with a loading card in chat.
- Enhanced llama.cpp server to use random free ports with retry on bind failure.
- Improved composer dropdown positioning and shared model selection across composers.
- Fixed production error related to missing '@huggingface/hub' package.
- Removed MCP tool marketplace.
- Updated version in package.json to 0.0.2.
2026-07-05 23:30:49 +03:00
Pawan Osman 7bb5801a8c Rewrite project as OpenCursor, a VS Code AI coding agent extension
Replace the ChatGPT reverse proxy (Docker/proxy server) entirely with
OpenCursor: a Cursor-like agentic coding extension for VS Code.

- Remove proxy server, Dockerfiles, docker-compose setups, and CI workflows
- Add agent loop with tools (files, shell, search, web, MCP), multi-provider
  LLM support (OpenAI-compatible, Ollama, llama.cpp) with OAuth
- Add semantic indexing, workspace context, and @-mentions
- Add sidebar chat + settings webview UI (React), inline review, personas,
  hooks, and approval policies
- Switch to pnpm, esbuild bundling, and VS Code extension packaging
2026-07-05 22:07:25 +03:00
Pawan Osman 46043c6851 Update error response and logs 2024-04-22 14:01:24 +03:00
Pawan Osman 4d10b10d9e Add: verification client api_key access function
set API_KEY in .env file to enable this function
Unsetting or setting API_KEY to null will keep the default of allowing anonymous access.

Changes to be committed:
	modified:   .env.example
	modified:   src/app.ts
2024-04-21 16:26:11 +08:00
Pawan Osman deacb3b418 Comment error logs 2024-04-20 22:44:07 +03:00
Pawan Osman e8a7f795dd Fix: adding proof-token header to bypass the new OpenAI request validation 2024-04-20 22:39:21 +03:00
Pawan Osman da84287823 Add: more error handling 2024-04-20 02:58:18 +03:00
MahdeenSky 6a536cf10b fixed file error now works locally 2024-04-18 18:38:15 -04:00
Pawan Osman 9235d190c6 Add: cloudflared tunnel 2024-04-14 21:05:48 +03:00
Crescent617 05ce427362 fix: created should be in seconds, https://github.com/openai/openai-openapi/blob/master/openapi.yaml\#L6972 2024-04-14 17:39:34 +08:00
Pawan Osman b74c115311 Add: HTTP Proxy option, which can be configured using the .env file. 2024-04-11 15:43:08 +03:00
Pawan Osman b2e81e6e9b Update app.ts 2024-04-10 09:53:51 +03:00
Pawan Osman 282509ca10 Update error message to include the requested endpoint in app.ts 2024-04-10 07:11:33 +03:00
Pawan Osman 4c68f7107c Fix finish_reason and usage values 2024-04-08 01:00:03 +03:00
cliouo f4fd7cd10f fix: 🐛 Heartbeat data skipped every 15
Fix axios library does not support http2 heartbeat data causing errors, manually skip the time string of heartbeat data
2024-04-08 04:39:16 +08:00
Alioth 5e2c7bf669 feat: update the chagpt apiUrl. 2024-04-08 01:00:06 +08:00
Pawan Osman 7b78e3a1ca Rewrite the project 2024-04-02 12:01:37 +03:00