Commit Graph
166 Commits
Author SHA1 Message Date
hy 4022e82621 Refine human handoff delivery and context evidence flow 2026-03-24 11:08:01 +08:00
hy 181e8be258 Refactor AI runtime contracts and state transitions 2026-03-24 09:38:20 +08:00
hy ca40828cbd Refactor AI state schemas and human step rendering 2026-03-23 18:15:52 +08:00
hy dd9f81b47c Refactor AI state, tool catalog, and draft review flow 2026-03-23 17:19:43 +08:00
hy d8d44bbff0 Refactor AI runtime structure and add backend regression tests 2026-03-23 16:16:28 +08:00
hy 6c3412e2bb Rename AI orchestrator from main to director 2026-03-23 15:09:22 +08:00
huangyuan 8140150405 Add backend artifact contracts and runtime propagation 2026-03-21 20:34:37 +08:00
huangyuan e2cf16c4a2 Align AI context evidence and brain prompt contracts 2026-03-21 19:58:53 +08:00
huangyuan 171c4fd16c Align AI delivery modes and mouth result contracts 2026-03-21 17:47:09 +08:00
hy b85d3c2f50 Refactor AI structured output and tool family loading 2026-03-20 18:59:21 +08:00
hy 16e2fe0194 Refactor AI human and main flows to the new design 2026-03-20 17:18:45 +08:00
hy e06f5aade0 Reorganize AI prompt and memory module structure 2026-03-20 10:49:29 +08:00
hy 4042bfd793 Reorganize AI modules and co-locate internal types 2026-03-20 10:29:57 +08:00
hy d21754ba10 Refactor human runtime into structured execution modules 2026-03-19 17:19:53 +08:00
hy c53c1491a8 Simplify human state routing and tool derivation 2026-03-18 18:30:40 +08:00
hy b17d75632c Restructure human tool prompts and tighten live bridge tests 2026-03-18 18:09:59 +08:00
hy bb3a374b61 Advance human live tests and simplify report evidence 2026-03-18 16:26:54 +08:00
hy fe04c06fe3 Refine live model baseline and normalize OpenAI base URLs 2026-03-17 14:49:31 +08:00
hy 19c8f995f9 Add partial delivery coverage for blocked human flows 2026-03-17 12:25:08 +08:00
hy fb1dec8757 Expand AI backend tests and add human test harnesses 2026-03-17 12:11:08 +08:00
huangyuan 8247f9cf81 实施测试日志契约v2改造方案」} ओली? need Chinese 2026-03-14 15:38:03 +08:00
hy 5f6beebe21 Start new openspec change process 2026-03-13 16:44:14 +08:00
hy 5f4582b734 Update human-led delivery docs 2026-03-13 12:52:09 +08:00
hy 7382ce612c Document main runtime baseline 2026-03-13 09:23:34 +08:00
hy 354ed9a3fe Update human test P3 status 2026-03-12 19:09:01 +08:00
hy eb51ae835b 继续推进 human 测试计划}collectionWeights 2026-03-12 18:49:05 +08:00
hy f7aa26ba01 Archive improve-human-test-eval 2026-03-12 17:48:11 +08:00
hy f73f4b86dd Clean renderer warning noise on UI 2026-03-12 14:02:55 +08:00
hy b9deb51925 Rename human-live naming 2026-03-12 10:26:01 +08:00
hy f7de58edd4 Add doc/test directory docs 2026-03-11 17:24:54 +08:00
hy 8991a16319 Migrate ai directory structure 2026-03-11 14:21:35 +08:00
huangyuan fa228c680b new workspace 2026-03-10 18:31:29 +08:00
hy f34995966d Implement brain-driven skill activat 2026-03-06 18:57:26 +08:00
hy 4f0c9a9e00 设计 brain 驱动 skill 加载方案 2026-03-06 18:34:55 +08:00
hy ae8ec9a460 refactor: unify AI prompt management and enhance human execution flow
- Introduced a centralized AI prompt registry to consolidate main, human, and memory prompts, improving maintainability and auditability.
- Enhanced human execution strategy to allow for progressive exploration in case of recoverable failures, preventing premature task blocking.
- Removed the `HumanTaskInput.mode` field, simplifying the input contract to `taskId` and `objective`, reducing coupling and complexity.
- Updated relevant documentation and specifications to reflect architectural changes and ensure consistency across the system.
- Implemented structured prompt building interfaces to enforce output contracts and improve prompt quality.
- Ensured backward compatibility by maintaining existing event semantics while transitioning to the new prompt management system.
2026-03-05 15:02:11 +08:00
hy 3e6763fcaa refactor: centralize AI prompt management and enhance human execution flow
- Introduced a unified prompt registry for main, human, and memory prompts to improve maintainability and reduce duplication.
- Replaced inline prompts in various nodes with calls to the new prompt registry.
- Enhanced the human execution model to allow for progressive exploration after recoverable failures, rather than immediate blocking.
- Removed the `mode` field from `HumanTaskInput`, simplifying the input contract to just `taskId` and `objective`.
- Updated documentation to reflect changes in architecture and prompt management.
- Added structured prompt building functions to ensure consistent output contracts across the system.
2026-03-05 14:06:27 +08:00
hy bbb33f514e feat(docx): expand docx tool capabilities and implement worker for document processing
- Updated the docx tool capabilities to include new actions: 'docx_open', 'docx_outline', 'docx_get_block', 'docx_search', 'docx_apply_ops', 'docx_render_preview', 'docx_save', and 'docx_validate'.
- Introduced a new types file for docx-related types, including specifications for text runs, paragraphs, tables, and operations.
- Created a worker for handling document processing tasks, including opening documents, outlining, searching, applying operations, rendering previews, and saving.
- Implemented a client for the docx worker to manage requests and responses.
- Added protocol definitions for communication between the main thread and the worker.
- Enhanced the ChatPage component to support document previews for artifacts.
2026-03-04 16:54:22 +08:00
hy c1139a33d9 feat: Update AI architecture and node structure to enhance task execution flow and state management 2026-03-04 15:34:01 +08:00
hy e212b5b9e4 Refactor AI Node Structure: Remove Slot Commit and Human Init Nodes, Simplify Tool Execution Flow
- Deleted `initNode.ts` and `slotCommitNode.ts` to streamline the human node structure.
- Updated `toolExecNode.ts` to remove unnecessary phases and simplify the tool execution logic.
- Adjusted `types.ts` to reflect the removal of phases and state properties related to slot management.
- Modified `contextDispatchNode.ts` and `dispatchNode.ts` to align with the new flow and removed references to slot states.
- Introduced `intentNode.ts` to handle intent decisions and context enrichment.
- Updated state schemas to remove slot-related properties and adjust the main stage flow.
- Cleaned up unused imports and types across various files to enhance code clarity and maintainability.
2026-03-04 14:08:03 +08:00
hy 39afff090c feat: add docx and local knowledge base retrieval capabilities
- Implemented docx capability tools including inspection, editing, and saving functionalities.
- Added local knowledge base retrieval tools for hybrid, vector, and FTS searches.
- Created a registry to manage capability tools and their configurations.
- Developed terminal execution capabilities with command risk assessment and workspace boundary checks.
- Introduced artifact management for terminal commands, including file creation and updates.
- Enhanced error handling and event emission for better tracking of tool execution states.
2026-03-03 18:23:34 +08:00
hy b7c87ad3e4 feat: add contextTaskObjective to state schema and update context handling in nodes 2026-03-03 17:57:27 +08:00
hy 179a631b9a feat: implement human task execution and context management nodes
- Added `toolExecNode.ts` for executing tools in human tasks, handling tool responses, and managing task states.
- Introduced `types.ts` to define types related to human run states and phases.
- Created `contextDispatchNode.ts` for dispatching context enrichment tasks.
- Developed `contextGateNode.ts` to manage context decision-making and transitions.
- Implemented `dispatchNode.ts` for handling task dispatching and state updates.
- Added `finalizeNode.ts` to generate final answers based on task outcomes.
- Created helper functions in `helpers.ts` for managing context evidence and task planning.
- Implemented `planNode.ts` for generating task plans based on user input and context.
- Updated `types.ts` to include new types for human tasks and context management.
- Refactored utility functions in `aiCapabilityUtils.ts` to streamline task handling.
- Enhanced `ChatPage.tsx` to support new event types and display human step tracking.
- Updated shared types to include new event stages and task definitions.
2026-03-03 17:20:17 +08:00
hy d08b30865b feat: implement host action executor and tools for AI capabilities
- Add hostActionExecutor.ts to manage execution of host actions including context retrieval, plan creation, and final answers.
- Introduce hostActionTools.ts for defining and validating host action schemas.
- Create hostNode.ts to handle decision-making and task execution logic for the AI host.
- Implement hostPrompt.ts to generate prompts for host decision-making based on current state and context evidence.
- Enhance runtime.ts to include local instructions in the AI run context.
- Update types.ts to define new types for host actions and events.
- Modify ChatPage.tsx to handle internal events and improve user feedback on task execution and approval processes.
- Ensure proper handling of internal events in the UI to avoid unnecessary user notifications.
2026-03-02 17:21:36 +08:00
hy 6ebab8bd00 feat: implement host decision loop with context enrichment and tool actions 2026-03-02 16:35:52 +08:00
hy 3a747294a1 feat: add terminal execution capability with boundary checks and risk classification
- Implemented terminal command execution with safety checks and approval gating.
- Added tools for running commands and marking completion.
- Introduced policies for workspace boundary checks and command risk classification.
- Enhanced artifact tracking for file operations resulting from terminal commands.
- Created utility functions for managing task execution and event emissions.
- Developed a local knowledge base retrieval system with hybrid, vector, and FTS search capabilities.
2026-03-02 15:07:31 +08:00
hy be56ac1f4e fix: correct import paths for capability tools in graph.ts 2026-03-02 14:24:08 +08:00
hy 9d7cfed144 feat: implement terminal execution capabilities with safety checks and artifact management
- Added terminalExec.ts for running shell commands with timeout and output management.
- Introduced terminalPolicy.ts for workspace boundary checks and command risk classification.
- Developed terminalTools.ts to handle command execution, artifact detection, and event emission.
- Removed outdated test files related to previous implementations.
- Added utility functions for bounded loops and file artifact event emission.
2026-03-02 14:23:57 +08:00
hy b4c49ca782 feat: add terminal capability tools and file artifact management
- Implemented `emitFileArtifactEvent` for emitting file artifact events.
- Created `TerminalCapabilityTools` for executing terminal commands with workspace boundary checks and risk classification.
- Added `checkWorkspaceBoundary` and `classifyCommandRisk` functions for command validation.
- Introduced `terminalPolicy` for managing terminal command policies.
- Enhanced `ChatPage` to display file artifacts and provide options to open or reveal paths.
- Updated shared types to include artifact-related types and events.
- Added utility functions for grouping artifact events by task.
2026-02-28 18:41:59 +08:00
hy 34c9fa3155 Refactor AI graph processing and utility functions
- Introduced utility functions for handling carrier content and tool calls in `graph.ts`.
- Simplified task mapping logic by creating a dedicated `toPlannedTask` function.
- Enhanced error handling in `ModelService` and `EmbeddingService` for better clarity.
- Added new utility functions in `decoder.ts` for type-safe conversions.
- Improved document handling in `DocumentsStore` with better type checks and normalization.
- Updated preload API to streamline communication between renderer and main process.
- Enhanced type definitions for better clarity and maintainability in global types.
- Refactored components to improve type safety and reduce TypeScript errors.
2026-02-28 17:57:39 +08:00
hy 537915d067 refactor: remove deprecated writing workflow types and methods
- Removed WritingFolderRecord, WritingDocumentRecord, and related methods from global types.
- Cleaned up legacy writing workflow types and events from shared types.
- Updated serialization utility to improve type safety for IPC results.
- Changed input and output types in AiRunEvent to use 'unknown' for better type handling.
2026-02-28 17:09:35 +08:00