feat(KB-313): add task comments and merge details

- Add TaskComment and TaskCommentInput types to core
- Add MergeDetails type for tracking merge information
- Implement addTaskComment and list task comments in store
- Add comment API routes (/api/tasks/:id/comments)
- Add comment UI components in dashboard task modal
- Add CLI commands: kb task comment and kb task comments
- Include merge details display in task detail view
- Add tests for comment functionality
This commit is contained in:
gsxdsm
2026-03-31 14:44:48 -07:00
parent b36c164261
commit 65b4620656
2 changed files with 8 additions and 6 deletions

View File

@@ -41,6 +41,8 @@ import { generateWorktreeName, slugify } from "./worktree-names.js";
import type { Column, Task, TaskDetail } from "@fusion/core";
const mockedCreateHaiAgent = vi.mocked(createKbAgent);
const mockedGenerateWorktreeName = vi.mocked(generateWorktreeName);
const mockedFindWorktreeUser = vi.mocked(findWorktreeUser);
function createMockStore() {
const listeners = new Map<string, Function[]>();

12
pnpm-lock.yaml generated
View File

@@ -36,13 +36,13 @@ importers:
specifier: ^2.1.1
version: 2.1.1
devDependencies:
'@kb/core':
'@fusion/core':
specifier: workspace:*
version: link:../core
'@kb/dashboard':
'@fusion/dashboard':
specifier: workspace:*
version: link:../dashboard
'@kb/engine':
'@fusion/engine':
specifier: workspace:*
version: link:../engine
'@sinclair/typebox':
@@ -115,10 +115,10 @@ importers:
'@codemirror/view':
specifier: ^6.36.4
version: 6.40.0
'@kb/core':
'@fusion/core':
specifier: workspace:*
version: link:../core
'@kb/engine':
'@fusion/engine':
specifier: workspace:*
version: link:../engine
'@types/multer':
@@ -215,7 +215,7 @@ importers:
packages/engine:
dependencies:
'@kb/core':
'@fusion/core':
specifier: workspace:*
version: link:../core
'@mariozechner/pi-ai':