Commit Graph
584 Commits
Author SHA1 Message Date
hy 4cd96edddf feat(ai): add PDF reading skill 2026-07-16 19:16:08 +08:00
hy 5e0ab0fa36 refactor(ai): centralize run resource cleanup 2026-07-16 19:04:45 +08:00
hy aa9d8c101c feat: Enhance evidence reference handling and access status resolution
- Introduced access status for internal reference links in markdown, allowing for differentiation between accessible and unavailable references.
- Implemented a new utility to resolve evidence reference access for both file and web resources, checking their availability and updating the access status accordingly.
- Updated the schema to include access status in evidence references, ensuring compatibility with the new resolution logic.
- Modified the markdown renderer to display unavailable references as muted text without clickable actions, improving user experience.
- Refactored related tests to cover new access status scenarios and ensure proper functionality of the evidence reference resolution.
2026-07-16 18:59:22 +08:00
hy dca6e11273 feat: remove currentTerminalPath from tool history whitelist and update related tests 2026-07-16 17:31:43 +08:00
hy 832b7397d7 feat: enhance assistant execution summary with natural language for browser actions and wait states 2026-07-16 17:22:49 +08:00
hy 83ee9aacb9 feat: enhance local environment JSON structure with current time and terminal state details 2026-07-16 17:03:15 +08:00
hy 39fac37cd4 feat: enhance AI run context with user and assistant message IDs, and add drag region for resource tab bar 2026-07-16 16:56:50 +08:00
hy bdda60b3f0 feat: update workspace guidance in reference scope text to remove legacy cwd instructions 2026-07-16 16:27:13 +08:00
hy d90f2f3a96 Merge main right panel updates into terminal refactor 2026-07-16 15:47:40 +08:00
hy 7a1db10048 Merge main and integrate persistent terminal sessions 2026-07-16 15:00:48 +08:00
hy 47e983870e feat: enhance right panel functionality and visual consistency 2026-07-16 14:21:07 +08:00
hy ccb02ce7b2 feat: enhance file change tracking and UI components
- Introduced new fileChangeGroups.ts for grouping file change records.
- Updated types to include 'deleted' and 'renamed' operations for better tracking.
- Removed unused content panel collapsed storage key from constants.
- Simplified content panel state management in ChatPage.
- Added user manual link in SettingsPage with corresponding tests.
- Enhanced workspace file explorer to handle file changes more effectively.
- Improved e2e tests for settings help entry and workspace file explorer.
- Updated chat run service to manage workspace paths correctly.
- Added unit tests for file change grouping and workspace file explorer functionality.
2026-07-16 13:44:35 +08:00
hy b8c6de42b7 Refactor terminal command handling and enhance test coverage
- Updated TerminalRunCommandResult type to use 'output' instead of 'stdout' and 'stderr'.
- Modified terminal tests to accommodate the new output structure.
- Introduced TerminalSessionManager for better session management in terminal commands.
- Enhanced e2e tests for terminal background service flow and browser interactions.
- Improved workspace setup functions to support IPC binding mode.
- Added new unit tests for workbench process copy and terminal session management.
- Ensured all tool specs provide schema-valid examples and improved prompt contracts.
2026-07-16 10:18:43 +08:00
hy 347b0eb8b1 feat: enhance right panel layout and tab functionality
- Added a restore button for the collapsed content panel with hover effects.
- Updated the WorkbenchBrowserPanel to use a Popover for zoom controls instead of a Dropdown.
- Improved the WorkbenchTabBar to support horizontal scrolling and added a collapse button for the right panel.
- Refactored the WorkbenchContentPanel to handle collapsing and restoring of the content panel.
- Enhanced the WorkspaceFileExplorer to display change count badges for modified files.
- Updated selectors for better testability and added new tests for right panel layout and tab interactions.
- Adjusted various components to ensure consistent styling and functionality across the workbench.
2026-07-16 10:15:44 +08:00
hy 0acfd07d33 feat: enhance workspace and browser tab functionalities
- Added ListWorkspaceDirectoryRequest and WorkspaceDirectoryListResponse interfaces for improved directory listing.
- Introduced afterLines property in TextFileDiffArtifact to support expandable unchanged regions.
- Updated AiFileChangeRecord to include isSessionAggregate property.
- Created BuildSessionFileDiffRequest and BuildSessionFileDiffResponse interfaces for session-specific file diffs.
- Refactored BrowserPanelState to BrowserTabState and updated related types for better clarity.
- Implemented BrowserTabListRequest and BrowserTabListResponse for managing browser tabs.
- Added BrowserTabCreateRequest and BrowserTabMutationRequest for tab management operations.
- Updated tests to reflect changes in file handling, directory scanning, and browser tab functionalities.
- Adjusted e2e tests to verify new behaviors and properties related to document preview modes and browser interactions.
2026-07-15 18:29:19 +08:00
hy 9055793d29 Merge branch 'codex/optmize-auto-update-ui' 2026-07-15 17:31:46 +08:00
hy 5e4d1cd98c refactor: remove app update settings and integrate sidebar update control
- Removed app update section from settings and related constants.
- Introduced SidebarUpdateControl component for managing app updates in the sidebar.
- Updated AppUpdateContext and AppUpdateProvider to handle update logic.
- Added IPC channels for downloading updates and modified service contract tests.
- Updated E2E tests to reflect changes in app update handling and UI.
2026-07-15 17:31:34 +08:00
hy bce519c455 feat(workbench): implement resource tab management and enhance file preview functionality
- Introduced new types for WorkbenchResourceTab and WorkbenchTabWorkspaceState to manage resource tabs.
- Added functionality to open, activate, and close resource tabs within the ChatPage component.
- Enhanced file preview actions to utilize resource tabs for better user experience.
- Updated selectors to include resource tab elements for testing.
- Improved test coverage for file rendering and browser interactions in the workbench.
- Refactored existing code to accommodate the new tab management system and ensure smooth transitions between tabs.
2026-07-15 16:34:49 +08:00
hy d49fbb3c33 feat: Implement text file read/write capabilities and integrate diff viewer
- Updated WorkbenchContentPanel to support AiFileChangeRecord instead of DocxApplyRecord.
- Introduced TextFileDiffViewer for displaying text file diffs.
- Enhanced types to include text file capabilities and operations.
- Added utility functions for handling text file changes and diffs.
- Created tests for text file read/write operations and diff previews.
- Updated selectors to include text diff viewer.
- Modified ChatPage to handle AiFileChangeRecord directly.
- Implemented end-to-end tests for text file apply, preview, and revert functionalities.
2026-07-15 13:51:00 +08:00
hy 1da8269b56 Merge branch 'codex/stagehanduiai-2' 2026-07-15 11:23:43 +08:00
hy 749ee4f05e fix: update attachment paths to use runtime directory 2026-07-15 10:45:01 +08:00
hy 9c8c4ff090 feat: implement BrowserActionVisualizer for enhanced cursor interactions 2026-07-15 10:37:26 +08:00
hy cbb6a04fb3 Merge branch 'main' of github.com:Yoan98/Ncurator-Desktop 2026-07-15 10:34:10 +08:00
Yoan 1ab186717d feat: implement local Windows release management and inspection scripts
- Add `release-doctor.mjs` for inspecting local Windows release environment.
- Enhance `release-environment.mjs` to resolve AWS CLI executable on Windows.
- Create `release-status.mjs` for checking public release status across platforms.
- Introduce `release-windows-local.mjs` for building and uploading Windows releases locally.
- Implement `route-windows-release.mjs` to route release processes between local and GitHub Actions.
- Add `windows-release-common.mjs` for shared functions related to Windows releases.
- Update preload scripts to remove E2E fixture mode for app updates.
- Adjust CSS for draggable regions in Windows titlebars.
- Remove outdated E2E tests related to app updates.
- Update tests to reflect new local-first Windows release strategy and ensure proper handling of update scenarios.
2026-07-14 22:41:09 +08:00
hy 03d6151d78 feat: add user takeover functionality to AI run process
- Introduced `pending_user_takeover_json` field in `AiRunRow` and updated related database schema.
- Enhanced `AiRunStatus` to include `waiting_user_takeover` state.
- Implemented `UserTakeoverPanel` component for user interaction during takeover events.
- Updated event handling in `ChatPage` to manage user takeover requests and confirmations.
- Added API methods for confirming user takeover and integrated them into the existing workflow.
- Created tests for user takeover functionality, ensuring proper event emission and state management.
- Updated selectors for testing user takeover components.
2026-07-14 18:28:49 +08:00
hy 65665c6867 Refactor tests for AI human live backend and docx tools
- Enhanced scoring mechanisms in human-docx-positioned-structural-edit-fallback-live.test.ts to evaluate completion based on multiple criteria.
- Updated human-kb-guided-docx-comparison-draft-live.test.ts to include additional allowed tools and refined delivery satisfaction checks with scoring.
- Improved human-risk-report-draft-live.test.ts by implementing a scoring system for draft creation and risk assessment.
- Removed obsolete docx-history-and-rollback.test.ts and docx-read-then-history-upgrades-to-replay-session.test.ts files.
- Adjusted docx-positioned-layout-read-only-contract.test.ts to utilize replay sessions for failure handling.
- Streamlined docx-precondition-guard.test.ts to ensure invalid source paths do not pollute runtime state.
- Updated unit tests in docx-tool-contract.test.ts to reflect changes in tool specifications and ensure proper exposure of tools.
- Modified workspace-related e2e tests to improve workspace removal and refresh logic.
- Refined test utility functions for better clarity and maintainability.
2026-07-14 14:49:26 +08:00
hy 2df8a09486 feat: enhance chat session management with unread completion tracking and viewing functionality 2026-07-14 12:22:42 +08:00
hy cb506b1bf5 Refactor live test cases and improve assertions
- Removed redundant semantic checks in human conversation memory tests.
- Updated model configuration handling in various live test cases.
- Enhanced assertions for document processing and web crawling tests.
- Improved readability by restructuring multiline statements and normalizing text.
- Added new test for macOS signing identity requirements in app update configuration.
- Adjusted workspace knowledge base seeding to include source preparation.
2026-07-14 11:51:42 +08:00
hy 9bd424cd1c refactor: remove obsolete tests and improve existing test coverage
- Deleted the `missing-llm-notification-startup.e2e.test.ts` file as it is no longer needed.
- Enhanced `send-guard-mode-switch-and-preferences.e2e.test.ts` to include checks for missing model notifications.
- Removed `browser-use-deepseek-financing-search.e2e.test.ts` due to redundancy.
- Cleaned up `chat-run-service-contract.test.ts` by removing performance tests that are no longer relevant.
- Updated `aiLiveTestData.ts` to remove unused constants and types related to risk reports.
- Removed `aiToolHarness.ts` function for writing sample documents as it is no longer utilized.
- Updated `llmConfig.ts` to infer LLM provider kind from environment variables.
- Cleaned up `cache-summary.ts` by removing unused JSON conversion functions.
- Deleted `browserLlmConfig.ts` as it was redundant.
- Enhanced `settings.ts` to support new application settings and improved HTTP server response handling.
- Removed unused functions from `workbench.ts` related to waiting for assistant answers.
2026-07-14 10:49:58 +08:00
hy bc264319eb refactor: rename workspace index worker to prepare worker and update related types
- Renamed constants and types related to the workspace index worker to reflect its new role as a prepare worker.
- Removed the old workspace index worker implementation and created a new prepare worker implementation.
- Updated the client for the prepare worker to handle requests and responses appropriately.
- Adjusted tests to accommodate the changes in worker functionality and ensure proper handling of document preparation.
- Introduced new tests for embedding runtime to ensure serial execution of inference requests.
2026-07-13 18:02:05 +08:00
hy 1468c36323 feat: implement workbench mode context and provider, update notification center and chat page to use new context 2026-07-13 15:15:17 +08:00
hy c3c69f82e8 feat: add manual help button to ChatPage and update selectors 2026-07-13 10:30:37 +08:00
Yoan 3bd93c0684 feat: add file_path support to document handling and related tests 2026-07-12 14:39:38 +08:00
Yoan 4b28bb37fb fix: update local sources preference messages for clarity and accuracy 2026-07-12 14:21:36 +08:00
Yoan 8f936dfc6e fix: refine local sources preference messages for clarity and consistency 2026-07-12 14:20:10 +08:00
Yoan 37a616c59e feat: add source_type and source_url fields to various components and tests for enhanced document handling 2026-07-12 14:18:23 +08:00
Yoan e5cb6a52f3 feat: enhance chat session handling with running state and update related types and components 2026-07-12 14:08:02 +08:00
Yoan 95b588f901 feat: update WorkbenchComposer and WorkbenchSelect components with new icons and improved trailing icon handling 2026-07-12 13:58:39 +08:00
Yoan 42a8b1a906 feat: update AI preference handling to support local sources and enhance WorkbenchSelect component with submenu functionality 2026-07-12 13:55:50 +08:00
Yoan 55adae5b26 feat: enhance WorkbenchSelect component with improved trailing icon handling 2026-07-12 13:01:07 +08:00
Yoan 75a37c848c feat: add AI preference handling and UI integration for workbench 2026-07-12 12:54:27 +08:00
Yoan b64ecffb15 feat: disable modal closing on mask click for settings panels 2026-07-12 12:02:56 +08:00
Yoan da4f59c42e feat(storage): add LlmStrategyPreferenceStore for managing LLM strategy preferences
- Introduced LlmStrategyPreferenceStore to handle user preferences for LLM strategies.
- Updated StorageService to include the new LlmStrategyPreferenceStore.
- Modified LlmConfigStore to validate provider kinds using isLlmProviderKind.
- Enhanced SQLite migration scripts to create llm_strategy_preference table.
- Updated structured output handling to support new strategy preferences in various components.
- Refactored tests to accommodate changes in structured output strategy handling.
2026-07-12 11:52:40 +08:00
Yoan 98132b5d3c feat: implement browser use tool enhancements with new output schema and error handling 2026-07-12 11:17:44 +08:00
Yoan 86201d3080 feat: add end-to-end test for browser use tool with DeepSeek financing search 2026-07-12 09:53:44 +08:00
Yoan 7d595af918 refactor: update default model context window tokens to 200k and adjust related calculations 2026-07-12 09:30:54 +08:00
Yoan 4aad621683 refactor: update description for browser use tool specification to clarify usage context 2026-07-12 09:17:15 +08:00
Yoan 87e910b652 refactor: update description for browser use tool specification to clarify usage 2026-07-12 09:12:59 +08:00
Yoan 7f57e03d85 feat: enhance markdown reference handling and improve error messaging in file previews 2026-07-11 18:37:39 +08:00
Yoan ee66a5e932 refactor: consolidate ncurator reference handling and improve workspace indexing
- Moved ncurator reference building and parsing logic to a shared module for better reusability.
- Updated WorkspaceKnowledgePrepareService to handle both file and web sources, enhancing flexibility in document processing.
- Introduced new types for web input handling in workspace knowledge preparation.
- Enhanced caching mechanisms for indexed documents to improve performance.
- Updated tests to cover new functionality and ensure compatibility with changes in ncurator reference handling.
- Improved user data path handling for different platforms, ensuring consistent behavior across environments.
- Added end-to-end tests for workspace root binding through IPC for non-macOS platforms.
2026-07-11 15:10:17 +08:00