feat(KB-034): add task archive/unarchive functionality

- Add 'archived' column to task store with archiveTask and unarchiveTask methods
- Add CLI commands: kb task archive <id> and kb task unarchive <id>
- Add pi extension tools for archive and unarchive operations
- Add dashboard API endpoints POST /api/tasks/:id/archive and /unarchive
- Add Archived column to board UI with archive/unarchive buttons
- Prevent drag-drop into archived column, add visual distinction
- Include duplicateTask from concurrent branch in merge resolution
This commit is contained in:
gsxdsm
2026-03-29 20:03:43 -07:00
parent 6c151b6591
commit 37afb24d60
22 changed files with 793 additions and 58 deletions

View File

@@ -296,6 +296,24 @@ export async function runTaskDuplicate(id: string) {
console.log();
}
export async function runTaskArchive(id: string) {
const store = await getStore();
const task = await store.archiveTask(id);
console.log();
console.log(` ✓ Archived ${task.id}${COLUMN_LABELS[task.column]}`);
console.log();
}
export async function runTaskUnarchive(id: string) {
const store = await getStore();
const task = await store.unarchiveTask(id);
console.log();
console.log(` ✓ Unarchived ${task.id}${COLUMN_LABELS[task.column]}`);
console.log();
}
export async function runTaskImportGitHubInteractive(
ownerRepo: string,
options: TaskImportOptions = {}