feat(KB-635): add Mission system integration across CLI, engine, and dashboard
- Add mission CLI commands: create, list, show, delete, activate-slice - Add pi extension tools for mission management - Add MissionStore helper methods and Mission types - Add scheduler mission awareness for automatic slice activation - Add engine integration wiring for mission-aware task execution - Add dashboard mission routes and API endpoints - Link tasks to missions via sliceId field with autoAdvance support
This commit is contained in:
@@ -1675,14 +1675,14 @@ describe("buildExecutionPrompt", () => {
|
||||
});
|
||||
|
||||
it("includes only the 10 most recent comments", () => {
|
||||
const allComments = Array.from({ length: 15 }, (_, i) => ({
|
||||
const comments = Array.from({ length: 15 }, (_, i) => ({
|
||||
id: `${i}`,
|
||||
text: `Comment ${i}`,
|
||||
createdAt: new Date().toISOString(),
|
||||
author: "user",
|
||||
}));
|
||||
|
||||
const task = createMockTaskDetail({ comments: allComments });
|
||||
const task = createMockTaskDetail({ comments });
|
||||
const result = buildExecutionPrompt(task);
|
||||
|
||||
// Should include comments 5-14 (the 10 most recent), not 0-4
|
||||
|
||||
Reference in New Issue
Block a user