@vibe-forge/mcp 3.1.3 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,40 +0,0 @@
1
- import type { TaskInfo } from './manager'
2
- import { DEFAULT_TASK_LOG_LIMIT, serializeTaskInfo } from './presentation'
3
- import type { TaskLogsOrder } from './presentation'
4
-
5
- interface TextContent {
6
- type: 'text'
7
- text: string
8
- }
9
-
10
- export const createTextContent = (text: string): TextContent[] => [{
11
- type: 'text',
12
- text
13
- }]
14
-
15
- export const createSerializedTaskInfoContent = (params: {
16
- taskId: string
17
- info?: TaskInfo
18
- logLimit?: number
19
- logOrder?: TaskLogsOrder
20
- }) =>
21
- createTextContent(JSON.stringify([serializeTaskInfo({
22
- taskId: params.taskId,
23
- info: params.info,
24
- logLimit: params.logLimit ?? DEFAULT_TASK_LOG_LIMIT,
25
- logOrder: params.logOrder ?? 'desc'
26
- })]))
27
-
28
- export const createSerializedTaskListContent = (
29
- tasks: TaskInfo[],
30
- logLimit: number,
31
- logOrder: TaskLogsOrder
32
- ) =>
33
- createTextContent(JSON.stringify(tasks.map(task =>
34
- serializeTaskInfo({
35
- taskId: task.taskId,
36
- info: task,
37
- logLimit,
38
- logOrder
39
- })
40
- )))