@codebolt/codeboltjs 2.2.1 → 2.2.2

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.
Files changed (70) hide show
  1. package/Readme.md +3 -0
  2. package/dist/core/Codebolt.d.ts +179 -166
  3. package/dist/core/Codebolt.js +224 -7
  4. package/dist/core/websocket.js +9 -11
  5. package/dist/index.d.ts +1 -1
  6. package/dist/modules/agent.d.ts +2 -16
  7. package/dist/modules/agent.js +15 -33
  8. package/dist/modules/browser.d.ts +1 -1
  9. package/dist/modules/browser.js +52 -51
  10. package/dist/modules/chat.d.ts +2 -2
  11. package/dist/modules/chat.js +20 -18
  12. package/dist/modules/codeutils.d.ts +1 -9
  13. package/dist/modules/codeutils.js +13 -111
  14. package/dist/modules/dbmemory.d.ts +3 -3
  15. package/dist/modules/dbmemory.js +8 -7
  16. package/dist/modules/debug.d.ts +1 -1
  17. package/dist/modules/fs.d.ts +59 -28
  18. package/dist/modules/fs.js +86 -45
  19. package/dist/modules/git.d.ts +1 -1
  20. package/dist/modules/git.js +31 -30
  21. package/dist/modules/history.d.ts +1 -1
  22. package/dist/modules/history.js +7 -6
  23. package/dist/modules/llm.d.ts +13 -20
  24. package/dist/modules/llm.js +16 -15
  25. package/dist/modules/mcp.d.ts +4 -4
  26. package/dist/modules/mcp.js +25 -25
  27. package/dist/modules/outputparsers.d.ts +22 -22
  28. package/dist/modules/outputparsers.js +7 -5
  29. package/dist/modules/project.d.ts +1 -1
  30. package/dist/modules/project.js +15 -13
  31. package/dist/modules/state.d.ts +1 -1
  32. package/dist/modules/state.js +16 -15
  33. package/dist/modules/task.d.ts +1 -138
  34. package/dist/modules/task.js +555 -287
  35. package/dist/modules/terminal.d.ts +1 -1
  36. package/dist/modules/terminal.js +12 -11
  37. package/dist/modules/tokenizer.d.ts +1 -1
  38. package/dist/modules/tokenizer.js +7 -6
  39. package/dist/modules/user-message-manager.d.ts +165 -0
  40. package/dist/modules/user-message-manager.js +308 -0
  41. package/dist/modules/user-message-utilities.d.ts +111 -0
  42. package/dist/modules/user-message-utilities.js +115 -0
  43. package/dist/modules/utils.d.ts +1 -1
  44. package/dist/modules/utils.js +4 -3
  45. package/dist/modules/vectordb.d.ts +1 -1
  46. package/dist/modules/vectordb.js +13 -12
  47. package/dist/notificationfunctions/agent.js +7 -6
  48. package/dist/notificationfunctions/browser.js +9 -8
  49. package/dist/notificationfunctions/chat.js +9 -8
  50. package/dist/notificationfunctions/codeutils.js +9 -8
  51. package/dist/notificationfunctions/crawler.js +9 -8
  52. package/dist/notificationfunctions/dbmemory.js +9 -8
  53. package/dist/notificationfunctions/fs.js +45 -44
  54. package/dist/notificationfunctions/git.d.ts +2 -2
  55. package/dist/notificationfunctions/git.js +111 -51
  56. package/dist/notificationfunctions/history.js +9 -8
  57. package/dist/notificationfunctions/llm.js +9 -8
  58. package/dist/notificationfunctions/mcp.js +17 -16
  59. package/dist/notificationfunctions/search.js +13 -12
  60. package/dist/notificationfunctions/system.js +5 -4
  61. package/dist/notificationfunctions/terminal.js +5 -4
  62. package/dist/notificationfunctions/todo.js +13 -12
  63. package/dist/types/commonTypes.d.ts +4 -0
  64. package/dist/types/index.d.ts +1 -1
  65. package/dist/types/libFunctionTypes.d.ts +918 -29
  66. package/dist/types/libFunctionTypes.js +33 -0
  67. package/dist/types/notificationFunctions/git.d.ts +40 -1
  68. package/dist/types/notificationFunctions/index.d.ts +1 -0
  69. package/dist/types/notificationFunctions/index.js +1 -0
  70. package/package.json +4 -12
@@ -1,138 +1 @@
1
- import type { Task, SubTask, TaskResponse, TaskCreateOptions, TaskUpdateOptions, AddSubTaskOptions, UpdateSubTaskOptions, TaskFilterOptions, TaskMarkdownImportOptions, TaskMarkdownExportOptions } from '../types';
2
- /**
3
- * Enhanced task planner with agent-based organization and comprehensive task management.
4
- */
5
- declare const taskplaner: {
6
- /**
7
- * Adds a new task with enhanced parameters.
8
- * @param {TaskCreateOptions} params - The task parameters including title, agentId, description, etc.
9
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the add task event.
10
- */
11
- addTask: (params: TaskCreateOptions) => Promise<TaskResponse>;
12
- /**
13
- * Adds a task using simple string parameter (legacy support).
14
- * @param {string} task - The task title.
15
- * @param {string} agentId - The agent ID (optional, defaults to 'default-agent').
16
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the add task event.
17
- */
18
- addSimpleTask: (task: string, agentId?: string) => Promise<TaskResponse>;
19
- /**
20
- * Retrieves all tasks with optional filtering.
21
- * @param {TaskFilterOptions} filters - Optional filters for agentId, category, phase, etc.
22
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the get tasks event.
23
- */
24
- getTasks: (filters?: TaskFilterOptions) => Promise<TaskResponse>;
25
- /**
26
- * Retrieves tasks for a specific agent.
27
- * @param {string} agentId - The agent ID.
28
- * @returns {Promise<TaskResponse>} A promise that resolves with tasks for the specified agent.
29
- */
30
- getTasksByAgent: (agentId: string) => Promise<TaskResponse>;
31
- /**
32
- * Retrieves tasks by category.
33
- * @param {string} category - The category name.
34
- * @returns {Promise<TaskResponse>} A promise that resolves with tasks in the specified category.
35
- */
36
- getTasksByCategory: (category: string) => Promise<TaskResponse>;
37
- /**
38
- * Retrieves all available agents.
39
- * @returns {Promise<TaskResponse>} A promise that resolves with the list of all agents.
40
- */
41
- getAllAgents: () => Promise<TaskResponse>;
42
- /**
43
- * Updates an existing task.
44
- * @param {TaskUpdateOptions} params - The task update parameters.
45
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update task event.
46
- */
47
- updateTask: (params: TaskUpdateOptions) => Promise<TaskResponse>;
48
- /**
49
- * Updates an existing task using legacy string parameter.
50
- * @param {string} taskId - The task ID.
51
- * @param {string} task - The updated task information.
52
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update task event.
53
- */
54
- updateSimpleTask: (taskId: string, task: string) => Promise<TaskResponse>;
55
- /**
56
- * Deletes a task.
57
- * @param {string} taskId - The task ID to delete.
58
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the delete task event.
59
- */
60
- deleteTask: (taskId: string) => Promise<TaskResponse>;
61
- /**
62
- * Adds a subtask to an existing task.
63
- * @param {AddSubTaskOptions} params - The subtask parameters.
64
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the add subtask event.
65
- */
66
- addSubTask: (params: AddSubTaskOptions) => Promise<TaskResponse>;
67
- /**
68
- * Updates an existing subtask.
69
- * @param {UpdateSubTaskOptions} params - The subtask update parameters.
70
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update subtask event.
71
- */
72
- updateSubTask: (params: UpdateSubTaskOptions) => Promise<TaskResponse>;
73
- /**
74
- * Deletes a subtask.
75
- * @param {string} taskId - The parent task ID.
76
- * @param {string} subtaskId - The subtask ID to delete.
77
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the delete subtask event.
78
- */
79
- deleteSubTask: (taskId: string, subtaskId: string) => Promise<TaskResponse>;
80
- /**
81
- * Creates tasks from markdown content.
82
- * @param {TaskMarkdownImportOptions} params - The markdown parameters including content, agentId, phase, and category.
83
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the create tasks from markdown event.
84
- */
85
- createTasksFromMarkdown: (params: TaskMarkdownImportOptions) => Promise<TaskResponse>;
86
- /**
87
- * Exports tasks to markdown format.
88
- * @param {TaskMarkdownExportOptions} params - The export parameters including optional phase, agentId, and category filters.
89
- * @returns {Promise<TaskResponse>} A promise that resolves with the markdown content.
90
- */
91
- exportTasksToMarkdown: (params?: TaskMarkdownExportOptions) => Promise<TaskResponse>;
92
- /**
93
- * Utility function to toggle task completion status.
94
- * @param {string} taskId - The task ID.
95
- * @param {boolean} completed - The new completion status.
96
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update task event.
97
- */
98
- toggleTaskCompletion: (taskId: string, completed: boolean) => Promise<TaskResponse>;
99
- /**
100
- * Utility function to toggle subtask completion status.
101
- * @param {string} taskId - The parent task ID.
102
- * @param {string} subtaskId - The subtask ID.
103
- * @param {boolean} completed - The new completion status.
104
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update subtask event.
105
- */
106
- toggleSubTaskCompletion: (taskId: string, subtaskId: string, completed: boolean) => Promise<TaskResponse>;
107
- /**
108
- * Utility function to move a task to a different agent.
109
- * @param {string} taskId - The task ID.
110
- * @param {string} newAgentId - The new agent ID.
111
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update task event.
112
- */
113
- moveTaskToAgent: (taskId: string, newAgentId: string) => Promise<TaskResponse>;
114
- /**
115
- * Utility function to set task priority.
116
- * @param {string} taskId - The task ID.
117
- * @param {'low' | 'medium' | 'high'} priority - The priority level.
118
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update task event.
119
- */
120
- setTaskPriority: (taskId: string, priority: "low" | "medium" | "high") => Promise<TaskResponse>;
121
- /**
122
- * Utility function to add tags to a task.
123
- * @param {string} taskId - The task ID.
124
- * @param {string[]} tags - The tags to add.
125
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the update task event.
126
- */
127
- addTaskTags: (taskId: string, tags: string[]) => Promise<TaskResponse>;
128
- /**
129
- * Utility function to create a quick task with minimal parameters.
130
- * @param {string} title - The task title.
131
- * @param {string} agentId - The agent ID (optional, defaults to 'default-agent').
132
- * @param {string} category - The category (optional).
133
- * @returns {Promise<TaskResponse>} A promise that resolves with the response from the add task event.
134
- */
135
- createQuickTask: (title: string, agentId?: string, category?: string) => Promise<TaskResponse>;
136
- };
137
- export type { Task, SubTask, TaskResponse, TaskCreateOptions, TaskUpdateOptions, AddSubTaskOptions, UpdateSubTaskOptions, TaskFilterOptions, TaskMarkdownImportOptions, TaskMarkdownExportOptions };
138
- export default taskplaner;
1
+ export {};