@codebolt/codeboltjs 5.0.7 → 5.0.8
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.
- package/dist/core/Codebolt.d.ts +302 -298
- package/dist/index.d.ts +65 -29
- package/dist/index.js +121 -9
- package/dist/modules/agentDeliberation.d.ts +1 -1
- package/dist/modules/agentDeliberation.js +9 -9
- package/dist/modules/agentEventQueue.d.ts +3 -3
- package/dist/modules/agentEventQueue.js +4 -4
- package/dist/modules/autoTesting.d.ts +1 -1
- package/dist/modules/autoTesting.js +19 -19
- package/dist/modules/backgroundChildThreads.js +22 -4
- package/dist/modules/codebaseSearch.d.ts +1 -1
- package/dist/modules/codemap.d.ts +1 -1
- package/dist/modules/contextAssembly.d.ts +1 -1
- package/dist/modules/contextRuleEngine.d.ts +1 -1
- package/dist/modules/eventLog.d.ts +1 -1
- package/dist/modules/fileUpdateIntent.d.ts +1 -1
- package/dist/modules/groupFeedback.d.ts +2 -2
- package/dist/modules/groupFeedback.js +8 -8
- package/dist/modules/hook.d.ts +1 -1
- package/dist/modules/job.d.ts +1 -1
- package/dist/modules/knowledgeGraph.d.ts +1 -1
- package/dist/modules/kvStore.d.ts +1 -1
- package/dist/modules/mcp.js +3 -3
- package/dist/modules/memoryIngestion.d.ts +1 -1
- package/dist/modules/orchestrator.js +1 -1
- package/dist/modules/persistentMemory.d.ts +1 -1
- package/dist/modules/projectStructure.d.ts +1 -1
- package/dist/modules/projectStructureUpdateRequest.d.ts +1 -1
- package/dist/modules/reviewMergeRequest.d.ts +6 -2
- package/dist/modules/roadmap.d.ts +1 -1
- package/dist/modules/swarm.d.ts +2 -2
- package/dist/modules/user-message-manager.js +4 -4
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +54 -59
- package/dist/tools/requirementPlan/requirement-plan-add-section.js +1 -1
- package/dist/tools/review/review-create.js +1 -1
- package/dist/tools/reviewMergeRequest/rmr-create.js +3 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import Codebolt from './core/Codebolt';
|
|
2
2
|
export type { Message, ToolCall, Tool, UserMessage, LLMInferenceParams, APIResponse, CodeboltConfig, ProgressCallback, ErrorCallback, SuccessCallback, CompletionCallback, OpenAIMessage, OpenAITool, ConversationEntry, ToolResult, ToolDetails, UserMessageContent, CodeboltAPI, ReadFileOptions, WriteFileOptions, ListFilesOptions, SearchFilesOptions, GrepSearchOptions, BrowserNavigationOptions, BrowserScreenshotOptions, BrowserElementSelector, BrowserInstanceInfo, BrowserInstanceOptions, BrowserOperationOptions, TerminalExecuteOptions, LLMChatOptions, VectorAddOptions, VectorQueryOptions, AgentMessageHandler, AgentConfiguration, MemorySetOptions, MemoryGetOptions, TaskCreateOptions, TaskUpdateOptions, CodeAnalysisOptions, CodeParseOptions, DebugLogOptions, ProjectInfo, CrawlerOptions, MCPExecuteOptions, MCPConfigureOptions, StateUpdateOptions, ChatSendOptions, ChatHistoryOptions, NotificationOptions, PaginationOptions, FilterOptions, AsyncOperationOptions, APIEventMap } from './types/libFunctionTypes';
|
|
3
|
-
export type { GitFileStatus, StatusResult, CommitSummary, DiffResult, AgentFunction, AgentDetail, Agent, Task, VectorItem, VectorQueryResult, FileEntry, SearchMatch, SearchResult, BrowserElement, CodeIssue, CodeAnalysis, CodeMatcher, MCPTool, MCPServer, ASTNode, Notification, DeepPartial, DeepRequired, Optional, Required } from './types/commonTypes';
|
|
4
|
-
export type { Job, JobGroup, JobStatus, JobType, JobPriority, DependencyType, JobDependency, JobListFilters, CreateJobData, UpdateJobData, CreateJobGroupData, JobShowResponse, JobListResponse, JobUpdateResponse, JobCreateResponse, JobDeleteResponse, JobDeleteBulkResponse, JobDependencyResponse, JobReadyBlockedResponse, JobLabelsResponse, JobGroupCreateResponse, PheromoneType, PheromoneDeposit, PheromoneAggregation, AddPheromoneTypeData, DepositPheromoneData, JobPheromoneTypesResponse, JobPheromoneTypeResponse, JobPheromoneDepositResponse, JobPheromoneRemoveResponse, JobPheromoneListResponse, JobPheromoneAggregatedResponse, JobPheromoneSearchResponse, ProposedJob, SplitProposal, AddSplitProposalData, JobSplitProposeResponse, JobSplitDeleteResponse, JobSplitAcceptResponse, JobLock, JobLockStatus, JobLockAcquireResponse, JobLockReleaseResponse, JobLockCheckResponse, UnlockRequest, AddUnlockRequestData, JobUnlockRequestAddResponse, JobUnlockRequestApproveResponse, JobUnlockRequestRejectResponse, JobUnlockRequestDeleteResponse, JobBid, AddBidData, JobBidAddResponse, JobBidWithdrawResponse, JobBidAcceptResponse, JobBidListResponse, JobBlocker, AddBlockerData, JobBlockerAddResponse, JobBlockerRemoveResponse, JobBlockerResolveResponse } from '
|
|
5
|
-
export type { GroupFeedbackAction, GroupFeedbackResponseType, FeedbackContentType, FeedbackStatus, FeedbackAttachment, GroupFeedback, FeedbackResponse, ICreateFeedbackParams, IGetFeedbackParams, IListFeedbacksParams,
|
|
6
|
-
export type { AgentDeliberationAction, AgentDeliberationResponseType, DeliberationStatus, Deliberation, DeliberationResponse, DeliberationVote, ICreateDeliberationParams, IGetDeliberationParams, IListDeliberationsParams, IUpdateDeliberationParams, IRespondParams as IDeliberationRespondParams, IVoteParams, IGetWinnerParams, ICreateDeliberationResponse, IGetDeliberationResponse, IListDeliberationsResponse, IUpdateDeliberationResponse, IRespondResponse as IDeliberationRespondResponse, IVoteResponse, IGetWinnerResponse } from '
|
|
7
|
-
export type { AutoTestingAction, AutoTestingResponseType, TestStatus, TestRunStatus, TestStep, TestCase, TestSuite, TestRunStep, TestRunCase, TestRun, ICreateSuiteParams, IGetSuiteParams, IListSuitesParams, IUpdateSuiteParams, IDeleteSuiteParams, IAddCaseToSuiteParams, IRemoveCaseFromSuiteParams, ICreateCaseParams, IGetCaseParams, IListCasesParams, IUpdateCaseParams, IDeleteCaseParams, ICreateRunParams, IGetRunParams, IListRunsParams, IUpdateRunStatusParams, IUpdateRunCaseParams, IUpdateRunStepParams, ICreateSuiteResponse, IGetSuiteResponse, IListSuitesResponse, IUpdateSuiteResponse, IDeleteSuiteResponse, IAddCaseToSuiteResponse, IRemoveCaseFromSuiteResponse, ICreateCaseResponse, IGetCaseResponse, IListCasesResponse, IUpdateCaseResponse, IDeleteCaseResponse, ICreateRunResponse, IGetRunResponse, IListRunsResponse, IUpdateRunStatusResponse, IUpdateRunCaseResponse, IUpdateRunStepResponse } from '
|
|
3
|
+
export type { ApplicationState, GitFileStatus, StatusResult, CommitSummary, DiffResult, AgentFunction, AgentDetail, Agent, Task, SubTask, TaskResponse, VectorItem, VectorQueryResult, FileEntry, SearchMatch, SearchResult, FileStateInfo, BrowserElement, CodeIssue, CodeAnalysis, CodeMatcher, MCPTool, MCPServer, ASTNode, Notification, LogType, PendingRequest, MessageRoute, InitialUserMessage, Config, CodeboltError, DeepPartial, DeepRequired, Optional, Required } from './types/commonTypes';
|
|
4
|
+
export type { Job, JobGroup, JobStatus, JobType, JobPriority, DependencyType, JobDependency, JobListFilters, CreateJobData, UpdateJobData, CreateJobGroupData, JobShowResponse, JobListResponse, JobUpdateResponse, JobCreateResponse, JobDeleteResponse, JobDeleteBulkResponse, JobDependencyResponse, JobReadyBlockedResponse, JobLabelsResponse, JobGroupCreateResponse, PheromoneType, PheromoneDeposit, PheromoneAggregation, AddPheromoneTypeData, DepositPheromoneData, JobPheromoneTypesResponse, JobPheromoneTypeResponse, JobPheromoneDepositResponse, JobPheromoneRemoveResponse, JobPheromoneListResponse, JobPheromoneAggregatedResponse, JobPheromoneSearchResponse, ProposedJob, SplitProposal, AddSplitProposalData, JobSplitProposeResponse, JobSplitDeleteResponse, JobSplitAcceptResponse, JobLock, JobLockStatus, JobLockAcquireResponse, JobLockReleaseResponse, JobLockCheckResponse, UnlockRequest, AddUnlockRequestData, JobUnlockRequestAddResponse, JobUnlockRequestApproveResponse, JobUnlockRequestRejectResponse, JobUnlockRequestDeleteResponse, JobBid, AddBidData, JobBidAddResponse, JobBidWithdrawResponse, JobBidAcceptResponse, JobBidListResponse, JobBlocker, AddBlockerData, JobBlockerAddResponse, JobBlockerRemoveResponse, JobBlockerResolveResponse } from '@codebolt/types/lib';
|
|
5
|
+
export type { GroupFeedbackAction, GroupFeedbackResponseType, FeedbackContentType, FeedbackStatus, FeedbackAttachment, GroupFeedback, FeedbackResponse, ICreateFeedbackParams, IGetFeedbackParams, IListFeedbacksParams, IFeedbackRespondParams, IReplyParams, IUpdateSummaryParams, IUpdateStatusParams, ICreateFeedbackResponse, IGetFeedbackResponse, IListFeedbacksResponse, IFeedbackRespondResponse, IReplyResponse, IUpdateSummaryResponse, IUpdateStatusResponse } from '@codebolt/types/lib';
|
|
6
|
+
export type { AgentDeliberationAction, AgentDeliberationResponseType, DeliberationStatus, Deliberation, DeliberationResponse, DeliberationVote, ICreateDeliberationParams, IGetDeliberationParams, IListDeliberationsParams, IUpdateDeliberationParams, IRespondParams as IDeliberationRespondParams, IVoteParams, IGetWinnerParams, ICreateDeliberationResponse, IGetDeliberationResponse, IListDeliberationsResponse, IUpdateDeliberationResponse, IRespondResponse as IDeliberationRespondResponse, IVoteResponse, IGetWinnerResponse } from '@codebolt/types/lib';
|
|
7
|
+
export type { AutoTestingAction, AutoTestingResponseType, TestStatus, TestRunStatus, TestStep, TestCase, TestSuite, TestRunStep, TestRunCase, TestRun, ICreateSuiteParams, IGetSuiteParams, IListSuitesParams, IUpdateSuiteParams, IDeleteSuiteParams, IAddCaseToSuiteParams, IRemoveCaseFromSuiteParams, ICreateCaseParams, IGetCaseParams, IListCasesParams, IUpdateCaseParams, IDeleteCaseParams, ICreateRunParams, IGetRunParams, IListRunsParams, IUpdateRunStatusParams, IUpdateRunCaseParams, IUpdateRunStepParams, ICreateSuiteResponse, IGetSuiteResponse, IListSuitesResponse, IUpdateSuiteResponse, IDeleteSuiteResponse, IAddCaseToSuiteResponse, IRemoveCaseFromSuiteResponse, ICreateCaseResponse, IGetCaseResponse, IListCasesResponse, IUpdateCaseResponse, IDeleteCaseResponse, ICreateRunResponse, IGetRunResponse, IListRunsResponse, IUpdateRunStatusResponse, IUpdateRunCaseResponse, IUpdateRunStepResponse } from '@codebolt/types/lib';
|
|
8
8
|
declare const codebolt: Codebolt;
|
|
9
9
|
export default codebolt;
|
|
10
10
|
export { Codebolt };
|
|
11
11
|
export { logType } from './modules/debug';
|
|
12
12
|
export { userMessageUtilities } from './modules/user-message-utilities';
|
|
13
|
-
export declare const getCurrentUserMessage: () => import("@codebolt/types/
|
|
13
|
+
export declare const getCurrentUserMessage: () => import("@codebolt/types/lib").FlatUserMessage | undefined;
|
|
14
14
|
export declare const getUserMessageText: () => string;
|
|
15
15
|
export declare const hasCurrentUserMessage: () => boolean;
|
|
16
16
|
export declare const clearUserMessage: () => void;
|
|
@@ -25,11 +25,11 @@ export declare const getUserSessionData: (key: string) => any;
|
|
|
25
25
|
export declare const getUserMessageTimestamp: () => string | undefined;
|
|
26
26
|
export declare const getMessageId: () => string | undefined;
|
|
27
27
|
export { default as utils } from './modules/utils';
|
|
28
|
-
export declare const getVector: (key: string) => Promise<import("@codebolt/types/
|
|
29
|
-
export declare const addVectorItem: (item: any) => Promise<import("@codebolt/types/
|
|
30
|
-
export declare const queryVectorItem: (key: string) => Promise<import("@codebolt/types/
|
|
31
|
-
export declare const queryVectorItems: (items: any[], dbPath: string) => Promise<import("@codebolt/types/
|
|
32
|
-
export declare const editFileAndApplyDiff: (filePath: string, diff: string, diffIdentifier: string, prompt: string, applyModel?: string) => Promise<import("@codebolt/types/
|
|
28
|
+
export declare const getVector: (key: string) => Promise<import("@codebolt/types/lib").GetVectorResponse>;
|
|
29
|
+
export declare const addVectorItem: (item: any) => Promise<import("@codebolt/types/lib").AddVectorItemResponse>;
|
|
30
|
+
export declare const queryVectorItem: (key: string) => Promise<import("@codebolt/types/lib").QueryVectorItemResponse>;
|
|
31
|
+
export declare const queryVectorItems: (items: any[], dbPath: string) => Promise<import("@codebolt/types/lib").QueryVectorItemResponse>;
|
|
32
|
+
export declare const editFileAndApplyDiff: (filePath: string, diff: string, diffIdentifier: string, prompt: string, applyModel?: string) => Promise<import("@codebolt/types/lib").FsEditFileAndApplyDiffResponse>;
|
|
33
33
|
export declare const listBrowserInstances: () => Promise<import("./types/libFunctionTypes").BrowserInstanceInfo[]>;
|
|
34
34
|
export declare const getBrowserInstance: (instanceId: string) => Promise<import("./types/libFunctionTypes").BrowserInstanceInfo | null>;
|
|
35
35
|
export declare const setActiveBrowserInstance: (instanceId: string) => Promise<boolean>;
|
|
@@ -37,7 +37,7 @@ export declare const openNewBrowserInstance: (options?: import("./types/libFunct
|
|
|
37
37
|
instanceId: string;
|
|
38
38
|
}>;
|
|
39
39
|
export declare const closeBrowserInstance: (instanceId: string) => Promise<boolean>;
|
|
40
|
-
export declare const executeOnInstance: (instanceId: string, operation: import("@codebolt/types/
|
|
40
|
+
export declare const executeOnInstance: (instanceId: string, operation: import("@codebolt/types/lib").BrowserOperationType, params: import("@codebolt/types/lib").BrowserOperationParams) => Promise<import("@codebolt/types/lib").BrowserOperationResponse>;
|
|
41
41
|
export { agentNotifications, browserNotifications, chatNotifications, codeutilsNotifications, crawlerNotifications, dbmemoryNotifications, fsNotifications, gitNotifications, historyNotifications, llmNotifications, mcpNotifications, searchNotifications, systemNotifications, terminalNotifications, todoNotifications, notificationFunctions, type NotificationFunctions } from './notificationfunctions';
|
|
42
42
|
export { StartSubagentTaskRequestNotify, StartSubagentTaskResponseNotify, SubagentTaskCompletedNotify } from './notificationfunctions/agent';
|
|
43
43
|
export { AgentInitNotify, AgentCompletionNotify } from './notificationfunctions/system';
|
|
@@ -57,37 +57,73 @@ export { default as calendar } from './modules/calendar';
|
|
|
57
57
|
export type { CalendarEventType, CalendarRSVPStatus, CalendarCheckType, CalendarParticipantType, CalendarParticipant, CalendarEvent, CalendarResponse, ICreateEventParams, IUpdateEventParams, IDeleteEventParams, IGetEventParams, IListEventsParams, IGetEventsInRangeParams, IGetUpcomingEventsParams, IGetTriggeredEventsParams, IMarkEventCompleteParams, IMarkEventsCompleteParams, IRSVPParams, ICreateEventResponse, IUpdateEventResponse, IDeleteEventResponse, IGetEventResponse, IListEventsResponse, IGetEventsInRangeResponse, IGetUpcomingEventsResponse, IGetTriggeredEventsResponse, IMarkEventCompleteResponse, IMarkEventsCompleteResponse, IGetTriggeredEventsAndMarkCompleteResponse, IRSVPResponse, IGetStatusResponse } from './modules/calendar';
|
|
58
58
|
export { default as episodicMemory } from './modules/episodicMemory';
|
|
59
59
|
export type { EpisodicEvent, EpisodicMemory, EpisodicEventFilter, EpisodicMemoryResponse, ICreateMemoryParams, IGetMemoryParams, IAppendEventParams, IQueryEventsParams, IGetEventTypesParams, IGetTagsParams, IGetAgentsParams, IArchiveMemoryParams, IUnarchiveMemoryParams, IUpdateTitleParams, ICreateMemoryResponse, IListMemoriesResponse, IGetMemoryResponse, IAppendEventResponse, IQueryEventsResponse, IGetEventTypesResponse, IGetTagsResponse, IGetAgentsResponse, IArchiveMemoryResponse, IUnarchiveMemoryResponse, IUpdateTitleResponse } from './modules/episodicMemory';
|
|
60
|
-
export type { RoadmapCreator, FeatureStatus, IdeaStatus, ImpactLevel, DifficultyLevel, Feature, Phase, Idea, RoadmapData, CreatePhaseData, UpdatePhaseData, CreateFeatureData, UpdateFeatureData, MoveFeatureData, CreateIdeaData, UpdateIdeaData, ReviewIdeaData, MoveIdeaToRoadmapData, RoadmapGetResponse, RoadmapPhasesResponse, RoadmapPhaseResponse, RoadmapDeleteResponse, RoadmapFeaturesResponse, RoadmapFeatureResponse, RoadmapIdeasResponse, RoadmapIdeaResponse, RoadmapMoveToRoadmapResponse } from '
|
|
61
|
-
export type { CodemapStatus, CodemapSection, Codemap, CodemapInfo, CreateCodemapData, UpdateCodemapData, CodemapListResponse, CodemapGetResponse, CodemapCreateResponse, CodemapSaveResponse, CodemapUpdateResponse, CodemapDeleteResponse } from '
|
|
62
|
-
export type { HttpMethod, ApiRoute, DatabaseColumn, DatabaseTable, Dependency, RunCommand, UiRoute, DeploymentConfig, GitInfo, DesignGuidelines, FrameworkInfo, PackageMetadata, WorkspaceMetadata, CreatePackageData, UpdatePackageData, ProjectStructureMetadataResponse, ProjectStructurePackagesResponse, ProjectStructurePackageResponse, ProjectStructureDeleteResponse, ProjectStructureItemResponse, ProjectStructureUpdateResponse } from '
|
|
63
|
-
export type { CodeSearchResult, CodebaseSearchOptions, SearchMcpToolOptions, CodebaseSearchResponse, McpToolSearchResponse } from '
|
|
64
|
-
export type { IntentLevel, FileIntent, IntentStatus, FileUpdateIntent, CreateFileUpdateIntentRequest, UpdateFileUpdateIntentRequest, OverlappingIntentInfo, IntentOverlapResult, FileUpdateIntentFilters, FileUpdateIntentResponse, FileUpdateIntentListResponse, FileUpdateIntentOverlapResponse, FileUpdateIntentBlockedFilesResponse } from '
|
|
60
|
+
export type { RoadmapCreator, FeatureStatus, IdeaStatus, ImpactLevel, DifficultyLevel, Feature, Phase, Idea, RoadmapData, CreatePhaseData, UpdatePhaseData, CreateFeatureData, UpdateFeatureData, MoveFeatureData, CreateIdeaData, UpdateIdeaData, ReviewIdeaData, MoveIdeaToRoadmapData, RoadmapGetResponse, RoadmapPhasesResponse, RoadmapPhaseResponse, RoadmapDeleteResponse, RoadmapFeaturesResponse, RoadmapFeatureResponse, RoadmapIdeasResponse, RoadmapIdeaResponse, RoadmapMoveToRoadmapResponse } from '@codebolt/types/lib';
|
|
61
|
+
export type { CodemapStatus, CodemapSection, Codemap, CodemapInfo, CreateCodemapData, UpdateCodemapData, CodemapListResponse, CodemapGetResponse, CodemapCreateResponse, CodemapSaveResponse, CodemapUpdateResponse, CodemapDeleteResponse } from '@codebolt/types/lib';
|
|
62
|
+
export type { HttpMethod, ApiRoute, DatabaseColumn, DatabaseTable, Dependency, RunCommand, UiRoute, DeploymentConfig, GitInfo, DesignGuidelines, FrameworkInfo, PackageMetadata, WorkspaceMetadata, CreatePackageData, UpdatePackageData, ProjectStructureMetadataResponse, ProjectStructurePackagesResponse, ProjectStructurePackageResponse, ProjectStructureDeleteResponse, ProjectStructureItemResponse, ProjectStructureUpdateResponse } from '@codebolt/types/lib';
|
|
63
|
+
export type { CodeSearchResult, CodebaseSearchOptions, SearchMcpToolOptions, CodebaseSearchResponse, McpToolSearchResponse } from '@codebolt/types/lib';
|
|
64
|
+
export type { IntentLevel, FileIntent, IntentStatus, FileUpdateIntent, CreateFileUpdateIntentRequest, UpdateFileUpdateIntentRequest, OverlappingIntentInfo, IntentOverlapResult, FileUpdateIntentFilters, FileUpdateIntentResponse, FileUpdateIntentListResponse, FileUpdateIntentOverlapResponse, FileUpdateIntentBlockedFilesResponse } from '@codebolt/types/lib';
|
|
65
65
|
export { default as fileUpdateIntent } from './modules/fileUpdateIntent';
|
|
66
66
|
export { default as projectStructureUpdateRequest } from './modules/projectStructureUpdateRequest';
|
|
67
|
-
export type { ReviewRequestStatus, ReviewRequestType, MergeStrategy, WorktreeDetails, MergeConfig, MergeResult, ReviewFeedback, ReviewMergeRequest, CreateReviewMergeRequest, UpdateReviewMergeRequest, AddReviewFeedback, ReviewMergeRequestFilters, ReviewMergeRequestDisplaySettings } from '
|
|
67
|
+
export type { ReviewRequestStatus, ReviewRequestType, MergeStrategy, WorktreeDetails, MergeConfig, MergeResult, ReviewFeedback, ReviewMergeRequest, CreateReviewMergeRequest, UpdateReviewMergeRequest, AddReviewFeedback, ReviewMergeRequestFilters, ReviewMergeRequestDisplaySettings } from '@codebolt/types/lib';
|
|
68
68
|
export { default as reviewMergeRequest } from './modules/reviewMergeRequest';
|
|
69
|
-
export type { KVStoreBaseResponse, KVStoreInstance, KVRecord, KVQueryDSL, KVQueryCondition, KVQueryResult, CreateKVInstanceParams, UpdateKVInstanceParams, KVSetParams, KVGetParams, KVDeleteParams, KVDeleteNamespaceParams, KVInstanceResponse, KVInstanceListResponse, KVGetResponse, KVSetResponse, KVDeleteResponse, KVDeleteNamespaceResponse, KVQueryResponse, KVNamespacesResponse, KVRecordCountResponse } from '
|
|
69
|
+
export type { KVStoreBaseResponse, KVStoreInstance, KVRecord, KVQueryDSL, KVQueryCondition, KVQueryResult, CreateKVInstanceParams, UpdateKVInstanceParams, KVSetParams, KVGetParams, KVDeleteParams, KVDeleteNamespaceParams, KVInstanceResponse, KVInstanceListResponse, KVGetResponse, KVSetResponse, KVDeleteResponse, KVDeleteNamespaceResponse, KVQueryResponse, KVNamespacesResponse, KVRecordCountResponse } from '@codebolt/types/lib';
|
|
70
70
|
export { default as kvStore } from './modules/kvStore';
|
|
71
|
-
export type { PersistentMemoryBaseResponse, PersistentMemory, RetrievalConfig, ContributionConfig, PipelineExecutionIntent, PipelineExecutionResult, CreatePersistentMemoryParams, UpdatePersistentMemoryParams, ListPersistentMemoryParams, PersistentMemoryResponse, PersistentMemoryListResponse, PersistentMemoryExecuteResponse, PersistentMemoryValidateResponse, PersistentMemoryStepSpecsResponse } from '
|
|
71
|
+
export type { PersistentMemoryBaseResponse, PersistentMemory, RetrievalConfig, ContributionConfig, PipelineExecutionIntent, PipelineExecutionResult, CreatePersistentMemoryParams, UpdatePersistentMemoryParams, ListPersistentMemoryParams, PersistentMemoryResponse, PersistentMemoryListResponse, PersistentMemoryExecuteResponse, PersistentMemoryValidateResponse, PersistentMemoryStepSpecsResponse } from '@codebolt/types/lib';
|
|
72
72
|
export { default as persistentMemory } from './modules/persistentMemory';
|
|
73
73
|
export type { OrchestratorInstance, OrchestratorResponse, CreateOrchestratorParams, UpdateOrchestratorParams, UpdateOrchestratorSettingsParams } from './modules/orchestrator';
|
|
74
74
|
export { default as orchestrator } from './modules/orchestrator';
|
|
75
|
-
export type { EventLogBaseResponse, EventLogInstance, EventLogEntry, EventLogDSL, EventLogCondition, EventLogQueryResult, CreateEventLogInstanceParams, UpdateEventLogInstanceParams, AppendEventParams, AppendEventsParams, EventLogInstanceResponse, EventLogInstanceListResponse, EventLogAppendResponse, EventLogAppendMultipleResponse, EventLogQueryResponse, EventLogStatsResponse } from '
|
|
75
|
+
export type { EventLogBaseResponse, EventLogInstance, EventLogEntry, EventLogDSL, EventLogCondition, EventLogQueryResult, CreateEventLogInstanceParams, UpdateEventLogInstanceParams, AppendEventParams, AppendEventsParams, EventLogInstanceResponse, EventLogInstanceListResponse, EventLogAppendResponse, EventLogAppendMultipleResponse, EventLogQueryResponse, EventLogStatsResponse } from '@codebolt/types/lib';
|
|
76
76
|
export { default as eventLog } from './modules/eventLog';
|
|
77
|
-
export type { KGBaseResponse, KGRecordKind, KGAttributeSchema, KGEdgeType, KGInstanceTemplate, KGInstance, KGMemoryRecord, KGEdge, KGViewTemplate, KGView, CreateKGInstanceTemplateParams, CreateKGInstanceParams, CreateKGMemoryRecordParams, CreateKGEdgeParams, CreateKGViewTemplateParams, CreateKGViewParams, ListKGMemoryRecordsParams, ListKGEdgesParams, KGInstanceTemplateResponse, KGInstanceTemplateListResponse, KGInstanceResponse, KGInstanceListResponse, KGMemoryRecordResponse, KGMemoryRecordListResponse, KGEdgeResponse, KGEdgeListResponse, KGViewTemplateResponse, KGViewTemplateListResponse, KGViewResponse, KGViewListResponse, KGViewExecuteResponse, KGDeleteResponse } from '
|
|
77
|
+
export type { KGBaseResponse, KGRecordKind, KGAttributeSchema, KGEdgeType, KGInstanceTemplate, KGInstance, KGMemoryRecord, KGEdge, KGViewTemplate, KGView, CreateKGInstanceTemplateParams, CreateKGInstanceParams, CreateKGMemoryRecordParams, CreateKGEdgeParams, CreateKGViewTemplateParams, CreateKGViewParams, ListKGMemoryRecordsParams, ListKGEdgesParams, KGInstanceTemplateResponse, KGInstanceTemplateListResponse, KGInstanceResponse, KGInstanceListResponse, KGMemoryRecordResponse, KGMemoryRecordListResponse, KGEdgeResponse, KGEdgeListResponse, KGViewTemplateResponse, KGViewTemplateListResponse, KGViewResponse, KGViewListResponse, KGViewExecuteResponse, KGDeleteResponse } from '@codebolt/types/lib';
|
|
78
78
|
export { default as knowledgeGraph } from './modules/knowledgeGraph';
|
|
79
|
-
export type { HookBaseResponse, HookTrigger, HookAction, HookConfig, HookCondition, Hook, HookResponse, HookListResponse, HookInitializeResponse, HookDeleteResponse } from '
|
|
79
|
+
export type { HookBaseResponse, HookTrigger, HookAction, HookConfig, HookCondition, Hook, HookResponse, HookListResponse, HookInitializeResponse, HookDeleteResponse } from '@codebolt/types/lib';
|
|
80
80
|
export { default as hook } from './modules/hook';
|
|
81
|
-
export type { MemoryIngestionBaseResponse, IngestionTrigger, ProcessorType, RoutingDestination, IngestionProcessor, IngestionRouting, IngestionPipeline, IngestionEventData, IngestionExecutionResult, CreateIngestionPipelineParams, UpdateIngestionPipelineParams, ListIngestionPipelineParams, ExecuteIngestionParams, IngestionPipelineResponse, IngestionPipelineListResponse, IngestionExecuteResponse, IngestionValidateResponse, IngestionProcessorSpecsResponse } from '
|
|
81
|
+
export type { MemoryIngestionBaseResponse, IngestionTrigger, ProcessorType, RoutingDestination, IngestionProcessor, IngestionRouting, IngestionPipeline, IngestionEventData, IngestionExecutionResult, CreateIngestionPipelineParams, UpdateIngestionPipelineParams, ListIngestionPipelineParams, ExecuteIngestionParams, IngestionPipelineResponse, IngestionPipelineListResponse, IngestionExecuteResponse, IngestionValidateResponse, IngestionProcessorSpecsResponse } from '@codebolt/types/lib';
|
|
82
82
|
export { default as memoryIngestion } from './modules/memoryIngestion';
|
|
83
|
-
export type { ContextAssemblyBaseResponse, ContextAssemblyRequest, ContextConstraints, MemoryContribution, AssembledContext, MemoryTypeSpec, ValidationResult, RuleEvaluationResult, RequiredVariablesResult, ContextAssemblyResponse, ContextValidateResponse, MemoryTypesResponse, RuleEvaluationResponse, RequiredVariablesResponse } from '
|
|
83
|
+
export type { ContextAssemblyBaseResponse, ContextAssemblyRequest, ContextConstraints, MemoryContribution, AssembledContext, MemoryTypeSpec, ValidationResult, RuleEvaluationResult, RequiredVariablesResult, ContextAssemblyResponse, ContextValidateResponse, MemoryTypesResponse, RuleEvaluationResponse, RequiredVariablesResponse } from '@codebolt/types/lib';
|
|
84
84
|
export { default as contextAssembly } from './modules/contextAssembly';
|
|
85
|
-
export type { ContextRuleEngineBaseResponse, RuleOperator, RuleAction, RuleCondition, Rule, ContextRuleEngine, PossibleVariable, CreateContextRuleEngineParams, UpdateContextRuleEngineParams, EvaluateRulesParams, ContextRuleEngineResponse, ContextRuleEngineListResponse, ContextRuleEngineDeleteResponse, EvaluateRulesResponse, PossibleVariablesResponse } from '
|
|
85
|
+
export type { ContextRuleEngineBaseResponse, RuleOperator, RuleAction, RuleCondition, Rule, ContextRuleEngine, PossibleVariable, CreateContextRuleEngineParams, UpdateContextRuleEngineParams, EvaluateRulesParams, ContextRuleEngineResponse, ContextRuleEngineListResponse, ContextRuleEngineDeleteResponse, EvaluateRulesResponse, PossibleVariablesResponse } from '@codebolt/types/lib';
|
|
86
86
|
export { default as contextRuleEngine } from './modules/contextRuleEngine';
|
|
87
|
-
export type { AgentProfile, Talent, KarmaEntry, Testimonial, Appreciation, AgentPortfolio, AgentConversation, RankingEntry, GetPortfolioResponse, GetConversationsResponse, AddTestimonialResponse, UpdateTestimonialResponse, DeleteTestimonialResponse, AddKarmaResponse, GetKarmaHistoryResponse, AddAppreciationResponse, AddTalentResponse, EndorseTalentResponse, GetTalentsResponse, GetRankingResponse, GetPortfoliosByProjectResponse, UpdateProfileResponse } from '
|
|
87
|
+
export type { AgentProfile, Talent, KarmaEntry, Testimonial, Appreciation, AgentPortfolio, AgentConversation, RankingEntry, GetPortfolioResponse, GetConversationsResponse, AddTestimonialResponse, UpdateTestimonialResponse, DeleteTestimonialResponse, AddKarmaResponse, GetKarmaHistoryResponse, AddAppreciationResponse, AddTalentResponse, EndorseTalentResponse, GetTalentsResponse, GetRankingResponse, GetPortfoliosByProjectResponse, UpdateProfileResponse } from '@codebolt/types/lib';
|
|
88
88
|
export { default as agentPortfolio } from './modules/agentPortfolio';
|
|
89
|
-
export type { AgentEventMessage, AddEventInput, SendAgentMessageInput, AckEventInput, GetPendingEventsInput, AgentEventQueueResponse, AddEventResponseData, GetPendingEventsResponseData, QueueStatsResponseData, QueueEventHandler, AgentMessagePayload, CalendarUpdatePayload, SystemNotificationPayload, TaskUpdatePayload, CustomEventPayload, AgentEventPayload, PullEventsInput, PullEventsResponseData } from '
|
|
90
|
-
export { AgentEventType, AgentEventStatus, AgentEventPriority } from '
|
|
89
|
+
export type { AgentEventMessage, AddEventInput, SendAgentMessageInput, AckEventInput, GetPendingEventsInput, AgentEventQueueResponse, AddEventResponseData, GetPendingEventsResponseData, QueueStatsResponseData, QueueEventHandler, AgentMessagePayload, CalendarUpdatePayload, SystemNotificationPayload, TaskUpdatePayload, CustomEventPayload, AgentEventPayload, PullEventsInput, PullEventsResponseData } from '@codebolt/types/lib';
|
|
90
|
+
export { AgentEventType, AgentEventStatus, AgentEventPriority } from '@codebolt/types/lib';
|
|
91
91
|
export { default as agentEventQueue } from './modules/agentEventQueue';
|
|
92
|
+
export { default as fs } from './modules/fs';
|
|
93
|
+
export { default as git } from './modules/git';
|
|
94
|
+
export { default as llm } from './modules/llm';
|
|
95
|
+
export { default as mail } from './modules/mail';
|
|
96
|
+
export { default as groupFeedback } from './modules/groupFeedback';
|
|
97
|
+
export { default as agentDeliberation } from './modules/agentDeliberation';
|
|
98
|
+
export { default as browser } from './modules/browser';
|
|
99
|
+
export { default as chat } from './modules/chat';
|
|
100
|
+
export { default as terminal } from './modules/terminal';
|
|
101
|
+
export { default as codeutils } from './modules/codeutils';
|
|
102
|
+
export { default as crawler } from './modules/crawler';
|
|
103
|
+
export { default as search } from './modules/search';
|
|
104
|
+
export { default as knowledge } from './modules/knowledge';
|
|
105
|
+
export { default as rag } from './modules/rag';
|
|
106
|
+
export { default as outputparsers } from './modules/outputparsers';
|
|
107
|
+
export { default as project } from './modules/project';
|
|
108
|
+
export { default as dbmemory } from './modules/dbmemory';
|
|
109
|
+
export { default as state } from './modules/state';
|
|
110
|
+
export { default as task } from './modules/task';
|
|
111
|
+
export { default as thread } from './modules/thread';
|
|
112
|
+
export { default as vectordb } from './modules/vectordb';
|
|
113
|
+
export { default as debug } from './modules/debug';
|
|
114
|
+
export { default as tokenizer } from './modules/tokenizer';
|
|
115
|
+
export { chatSummary } from './modules/history';
|
|
116
|
+
export { default as mcp } from './modules/mcp';
|
|
117
|
+
export { default as agent } from './modules/agent';
|
|
118
|
+
export { default as memory } from './modules/memory';
|
|
119
|
+
export { default as actionPlan } from './modules/actionPlan';
|
|
120
|
+
export { default as todo } from './modules/todo';
|
|
121
|
+
export { default as job } from './modules/job';
|
|
122
|
+
export { default as autoTesting } from './modules/autoTesting';
|
|
123
|
+
export { default as roadmap } from './modules/roadmap';
|
|
124
|
+
export { default as codemap } from './modules/codemap';
|
|
125
|
+
export { default as projectStructure } from './modules/projectStructure';
|
|
126
|
+
export { default as codebaseSearch } from './modules/codebaseSearch';
|
|
127
|
+
export { default as backgroundChildThreads } from './modules/backgroundChildThreads';
|
|
92
128
|
export { default as tools } from './tools';
|
|
93
129
|
export { Kind, ToolErrorType, ToolConfirmationOutcome, type ToolResult as ToolFrameworkResult, type ToolLocation, type ToolInvocation, type ToolBuilder, type OpenAIToolSchema, type OpenAIFunctionCall, type ToolCallConfirmationDetails, type AnyDeclarativeTool, type AnyToolInvocation, BaseToolInvocation, DeclarativeTool, BaseDeclarativeTool, ToolRegistry, defaultRegistry, allTools, fileTools, searchTools, terminalTools, gitTools, browserTools, agentTools, threadTools, taskTools, orchestratorTools, ReadFileTool, WriteFileTool, EditTool, ListDirectoryTool, ReadManyFilesTool, GlobTool, GrepTool, SearchFilesTool, CodebaseSearchTool, SearchMcpToolTool, ListCodeDefinitionNamesTool, ExecuteCommandTool, GitInitTool, GitStatusTool, GitAddTool, GitCommitTool, GitPushTool, GitPullTool, GitCheckoutTool, GitBranchTool, GitLogsTool, GitDiffTool, GitCloneTool, BrowserNavigateTool, BrowserScreenshotTool, BrowserClickTool, BrowserTypeTool, BrowserScrollTool, BrowserGetContentTool, BrowserGetHtmlTool, BrowserGetMarkdownTool, BrowserGetUrlTool, BrowserCloseTool, BrowserEnterTool, BrowserSearchTool, TaskCreateTool, TaskUpdateTool, TaskDeleteTool, TaskListTool, TaskGetTool, TaskAssignTool, TaskExecuteTool, AgentFindTool, AgentStartTool, AgentListTool, AgentDetailsTool, ThreadCreateTool, ThreadCreateStartTool, ThreadCreateBackgroundTool, ThreadListTool, ThreadGetTool, ThreadStartTool, ThreadUpdateTool, ThreadDeleteTool, ThreadGetMessagesTool, ThreadUpdateStatusTool, OrchestratorListTool, OrchestratorGetTool, OrchestratorGetSettingsTool, OrchestratorCreateTool, OrchestratorUpdateTool, OrchestratorUpdateSettingsTool, OrchestratorDeleteTool, OrchestratorUpdateStatusTool, } from './tools';
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AgentCompletionNotify = exports.AgentInitNotify = exports.SubagentTaskCompletedNotify = exports.StartSubagentTaskResponseNotify = exports.StartSubagentTaskRequestNotify = exports.notificationFunctions = exports.todoNotifications = exports.terminalNotifications = exports.systemNotifications = exports.searchNotifications = exports.mcpNotifications = exports.llmNotifications = exports.historyNotifications = exports.gitNotifications = exports.fsNotifications = exports.dbmemoryNotifications = exports.crawlerNotifications = exports.codeutilsNotifications = exports.chatNotifications = exports.browserNotifications = exports.agentNotifications = exports.executeOnInstance = exports.closeBrowserInstance = exports.openNewBrowserInstance = exports.setActiveBrowserInstance = exports.getBrowserInstance = exports.listBrowserInstances = exports.editFileAndApplyDiff = exports.queryVectorItems = exports.queryVectorItem = exports.addVectorItem = exports.getVector = exports.utils = exports.getMessageId = exports.getUserMessageTimestamp = exports.getUserSessionData = exports.setUserSessionData = exports.getUploadedImages = exports.getRemixPrompt = exports.getSelection = exports.getCurrentFile = exports.getMentionedMCPs = exports.getMentionedFiles = exports.clearUserMessage = exports.hasCurrentUserMessage = exports.getUserMessageText = exports.getCurrentUserMessage = exports.userMessageUtilities = exports.logType = exports.Codebolt = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
7
|
+
exports.knowledge = exports.search = exports.crawler = exports.codeutils = exports.terminal = exports.chat = exports.browser = exports.agentDeliberation = exports.groupFeedback = exports.mail = exports.llm = exports.git = exports.fs = exports.agentEventQueue = exports.AgentEventPriority = exports.AgentEventStatus = exports.AgentEventType = exports.agentPortfolio = exports.contextRuleEngine = exports.contextAssembly = exports.memoryIngestion = exports.hook = exports.knowledgeGraph = exports.eventLog = exports.orchestrator = exports.persistentMemory = exports.kvStore = exports.reviewMergeRequest = exports.projectStructureUpdateRequest = exports.fileUpdateIntent = exports.episodicMemory = exports.calendar = exports.swarm = exports.requirementPlan = exports.actionBlock = exports.capability = exports.sideExecution = exports.GitStatusRequestNotify = exports.GitRemoteAddRequestNotify = exports.GitPushRequestNotify = exports.GitPullRequestNotify = exports.GitLogsRequestNotify = exports.GitInitRequestNotify = exports.GitDiffRequestNotify = exports.GitCommitRequestNotify = exports.GitCloneRequestNotify = exports.GitCheckoutRequestNotify = exports.GitBranchRequestNotify = exports.GitAddRequestNotify = exports.CommandExecutionRequestNotify = void 0;
|
|
8
|
+
exports.SearchFilesTool = exports.GrepTool = exports.GlobTool = exports.ReadManyFilesTool = exports.ListDirectoryTool = exports.EditTool = exports.WriteFileTool = exports.ReadFileTool = exports.orchestratorTools = exports.taskTools = exports.threadTools = exports.agentTools = exports.browserTools = exports.gitTools = exports.terminalTools = exports.searchTools = exports.fileTools = exports.allTools = exports.defaultRegistry = exports.ToolRegistry = exports.BaseDeclarativeTool = exports.DeclarativeTool = exports.BaseToolInvocation = exports.ToolConfirmationOutcome = exports.ToolErrorType = exports.Kind = exports.tools = exports.backgroundChildThreads = exports.codebaseSearch = exports.projectStructure = exports.codemap = exports.roadmap = exports.autoTesting = exports.job = exports.todo = exports.actionPlan = exports.memory = exports.agent = exports.mcp = exports.chatSummary = exports.tokenizer = exports.debug = exports.vectordb = exports.thread = exports.task = exports.state = exports.dbmemory = exports.project = exports.outputparsers = exports.rag = void 0;
|
|
9
|
+
exports.OrchestratorGetTool = exports.OrchestratorListTool = exports.ThreadUpdateStatusTool = exports.ThreadGetMessagesTool = exports.ThreadDeleteTool = exports.ThreadUpdateTool = exports.ThreadStartTool = exports.ThreadGetTool = exports.ThreadListTool = exports.ThreadCreateBackgroundTool = exports.ThreadCreateStartTool = exports.ThreadCreateTool = exports.AgentDetailsTool = exports.AgentListTool = exports.AgentStartTool = exports.AgentFindTool = exports.TaskExecuteTool = exports.TaskAssignTool = exports.TaskGetTool = exports.TaskListTool = exports.TaskDeleteTool = exports.TaskUpdateTool = exports.TaskCreateTool = exports.BrowserSearchTool = exports.BrowserEnterTool = exports.BrowserCloseTool = exports.BrowserGetUrlTool = exports.BrowserGetMarkdownTool = exports.BrowserGetHtmlTool = exports.BrowserGetContentTool = exports.BrowserScrollTool = exports.BrowserTypeTool = exports.BrowserClickTool = exports.BrowserScreenshotTool = exports.BrowserNavigateTool = exports.GitCloneTool = exports.GitDiffTool = exports.GitLogsTool = exports.GitBranchTool = exports.GitCheckoutTool = exports.GitPullTool = exports.GitPushTool = exports.GitCommitTool = exports.GitAddTool = exports.GitStatusTool = exports.GitInitTool = exports.ExecuteCommandTool = exports.ListCodeDefinitionNamesTool = exports.SearchMcpToolTool = exports.CodebaseSearchTool = void 0;
|
|
10
|
+
exports.OrchestratorUpdateStatusTool = exports.OrchestratorDeleteTool = exports.OrchestratorUpdateSettingsTool = exports.OrchestratorUpdateTool = exports.OrchestratorCreateTool = exports.OrchestratorGetSettingsTool = void 0;
|
|
10
11
|
const Codebolt_1 = __importDefault(require("./core/Codebolt"));
|
|
11
12
|
exports.Codebolt = Codebolt_1.default;
|
|
12
13
|
// ================================
|
|
@@ -193,13 +194,124 @@ Object.defineProperty(exports, "contextRuleEngine", { enumerable: true, get: fun
|
|
|
193
194
|
// Export agentPortfolio module
|
|
194
195
|
var agentPortfolio_1 = require("./modules/agentPortfolio");
|
|
195
196
|
Object.defineProperty(exports, "agentPortfolio", { enumerable: true, get: function () { return __importDefault(agentPortfolio_1).default; } });
|
|
196
|
-
var
|
|
197
|
-
Object.defineProperty(exports, "AgentEventType", { enumerable: true, get: function () { return
|
|
198
|
-
Object.defineProperty(exports, "AgentEventStatus", { enumerable: true, get: function () { return
|
|
199
|
-
Object.defineProperty(exports, "AgentEventPriority", { enumerable: true, get: function () { return
|
|
197
|
+
var lib_1 = require("@codebolt/types/lib");
|
|
198
|
+
Object.defineProperty(exports, "AgentEventType", { enumerable: true, get: function () { return lib_1.AgentEventType; } });
|
|
199
|
+
Object.defineProperty(exports, "AgentEventStatus", { enumerable: true, get: function () { return lib_1.AgentEventStatus; } });
|
|
200
|
+
Object.defineProperty(exports, "AgentEventPriority", { enumerable: true, get: function () { return lib_1.AgentEventPriority; } });
|
|
200
201
|
// Export agentEventQueue module
|
|
201
|
-
var
|
|
202
|
-
Object.defineProperty(exports, "agentEventQueue", { enumerable: true, get: function () { return __importDefault(
|
|
202
|
+
var agentEventQueue_1 = require("./modules/agentEventQueue");
|
|
203
|
+
Object.defineProperty(exports, "agentEventQueue", { enumerable: true, get: function () { return __importDefault(agentEventQueue_1).default; } });
|
|
204
|
+
// ================================
|
|
205
|
+
// Core Modules - Direct exports for documentation
|
|
206
|
+
// ================================
|
|
207
|
+
// File System module
|
|
208
|
+
var fs_1 = require("./modules/fs");
|
|
209
|
+
Object.defineProperty(exports, "fs", { enumerable: true, get: function () { return __importDefault(fs_1).default; } });
|
|
210
|
+
// Git module
|
|
211
|
+
var git_2 = require("./modules/git");
|
|
212
|
+
Object.defineProperty(exports, "git", { enumerable: true, get: function () { return __importDefault(git_2).default; } });
|
|
213
|
+
// LLM module
|
|
214
|
+
var llm_1 = require("./modules/llm");
|
|
215
|
+
Object.defineProperty(exports, "llm", { enumerable: true, get: function () { return __importDefault(llm_1).default; } });
|
|
216
|
+
// Mail module
|
|
217
|
+
var mail_1 = require("./modules/mail");
|
|
218
|
+
Object.defineProperty(exports, "mail", { enumerable: true, get: function () { return __importDefault(mail_1).default; } });
|
|
219
|
+
// Group Feedback module
|
|
220
|
+
var groupFeedback_1 = require("./modules/groupFeedback");
|
|
221
|
+
Object.defineProperty(exports, "groupFeedback", { enumerable: true, get: function () { return __importDefault(groupFeedback_1).default; } });
|
|
222
|
+
// Agent Deliberation module
|
|
223
|
+
var agentDeliberation_1 = require("./modules/agentDeliberation");
|
|
224
|
+
Object.defineProperty(exports, "agentDeliberation", { enumerable: true, get: function () { return __importDefault(agentDeliberation_1).default; } });
|
|
225
|
+
// Browser module
|
|
226
|
+
var browser_2 = require("./modules/browser");
|
|
227
|
+
Object.defineProperty(exports, "browser", { enumerable: true, get: function () { return __importDefault(browser_2).default; } });
|
|
228
|
+
// Chat module
|
|
229
|
+
var chat_1 = require("./modules/chat");
|
|
230
|
+
Object.defineProperty(exports, "chat", { enumerable: true, get: function () { return __importDefault(chat_1).default; } });
|
|
231
|
+
// Terminal module
|
|
232
|
+
var terminal_2 = require("./modules/terminal");
|
|
233
|
+
Object.defineProperty(exports, "terminal", { enumerable: true, get: function () { return __importDefault(terminal_2).default; } });
|
|
234
|
+
// Codeutils module
|
|
235
|
+
var codeutils_1 = require("./modules/codeutils");
|
|
236
|
+
Object.defineProperty(exports, "codeutils", { enumerable: true, get: function () { return __importDefault(codeutils_1).default; } });
|
|
237
|
+
// Crawler module
|
|
238
|
+
var crawler_1 = require("./modules/crawler");
|
|
239
|
+
Object.defineProperty(exports, "crawler", { enumerable: true, get: function () { return __importDefault(crawler_1).default; } });
|
|
240
|
+
// Search module
|
|
241
|
+
var search_1 = require("./modules/search");
|
|
242
|
+
Object.defineProperty(exports, "search", { enumerable: true, get: function () { return __importDefault(search_1).default; } });
|
|
243
|
+
// Knowledge module
|
|
244
|
+
var knowledge_1 = require("./modules/knowledge");
|
|
245
|
+
Object.defineProperty(exports, "knowledge", { enumerable: true, get: function () { return __importDefault(knowledge_1).default; } });
|
|
246
|
+
// RAG module
|
|
247
|
+
var rag_1 = require("./modules/rag");
|
|
248
|
+
Object.defineProperty(exports, "rag", { enumerable: true, get: function () { return __importDefault(rag_1).default; } });
|
|
249
|
+
// Output Parsers module
|
|
250
|
+
var outputparsers_1 = require("./modules/outputparsers");
|
|
251
|
+
Object.defineProperty(exports, "outputparsers", { enumerable: true, get: function () { return __importDefault(outputparsers_1).default; } });
|
|
252
|
+
// Project module
|
|
253
|
+
var project_1 = require("./modules/project");
|
|
254
|
+
Object.defineProperty(exports, "project", { enumerable: true, get: function () { return __importDefault(project_1).default; } });
|
|
255
|
+
// DB Memory module
|
|
256
|
+
var dbmemory_1 = require("./modules/dbmemory");
|
|
257
|
+
Object.defineProperty(exports, "dbmemory", { enumerable: true, get: function () { return __importDefault(dbmemory_1).default; } });
|
|
258
|
+
// State module
|
|
259
|
+
var state_1 = require("./modules/state");
|
|
260
|
+
Object.defineProperty(exports, "state", { enumerable: true, get: function () { return __importDefault(state_1).default; } });
|
|
261
|
+
// Task module
|
|
262
|
+
var task_1 = require("./modules/task");
|
|
263
|
+
Object.defineProperty(exports, "task", { enumerable: true, get: function () { return __importDefault(task_1).default; } });
|
|
264
|
+
// Thread module
|
|
265
|
+
var thread_1 = require("./modules/thread");
|
|
266
|
+
Object.defineProperty(exports, "thread", { enumerable: true, get: function () { return __importDefault(thread_1).default; } });
|
|
267
|
+
// VectorDB module
|
|
268
|
+
var vectordb_2 = require("./modules/vectordb");
|
|
269
|
+
Object.defineProperty(exports, "vectordb", { enumerable: true, get: function () { return __importDefault(vectordb_2).default; } });
|
|
270
|
+
// Debug module
|
|
271
|
+
var debug_2 = require("./modules/debug");
|
|
272
|
+
Object.defineProperty(exports, "debug", { enumerable: true, get: function () { return __importDefault(debug_2).default; } });
|
|
273
|
+
// Tokenizer module
|
|
274
|
+
var tokenizer_1 = require("./modules/tokenizer");
|
|
275
|
+
Object.defineProperty(exports, "tokenizer", { enumerable: true, get: function () { return __importDefault(tokenizer_1).default; } });
|
|
276
|
+
// History module (chatSummary)
|
|
277
|
+
var history_1 = require("./modules/history");
|
|
278
|
+
Object.defineProperty(exports, "chatSummary", { enumerable: true, get: function () { return history_1.chatSummary; } });
|
|
279
|
+
// MCP module
|
|
280
|
+
var mcp_1 = require("./modules/mcp");
|
|
281
|
+
Object.defineProperty(exports, "mcp", { enumerable: true, get: function () { return __importDefault(mcp_1).default; } });
|
|
282
|
+
// Agent module
|
|
283
|
+
var agent_2 = require("./modules/agent");
|
|
284
|
+
Object.defineProperty(exports, "agent", { enumerable: true, get: function () { return __importDefault(agent_2).default; } });
|
|
285
|
+
// Memory module
|
|
286
|
+
var memory_1 = require("./modules/memory");
|
|
287
|
+
Object.defineProperty(exports, "memory", { enumerable: true, get: function () { return __importDefault(memory_1).default; } });
|
|
288
|
+
// Action Plan module
|
|
289
|
+
var actionPlan_1 = require("./modules/actionPlan");
|
|
290
|
+
Object.defineProperty(exports, "actionPlan", { enumerable: true, get: function () { return __importDefault(actionPlan_1).default; } });
|
|
291
|
+
// Todo module
|
|
292
|
+
var todo_1 = require("./modules/todo");
|
|
293
|
+
Object.defineProperty(exports, "todo", { enumerable: true, get: function () { return __importDefault(todo_1).default; } });
|
|
294
|
+
// Job module
|
|
295
|
+
var job_1 = require("./modules/job");
|
|
296
|
+
Object.defineProperty(exports, "job", { enumerable: true, get: function () { return __importDefault(job_1).default; } });
|
|
297
|
+
// AutoTesting module
|
|
298
|
+
var autoTesting_1 = require("./modules/autoTesting");
|
|
299
|
+
Object.defineProperty(exports, "autoTesting", { enumerable: true, get: function () { return __importDefault(autoTesting_1).default; } });
|
|
300
|
+
// Roadmap module
|
|
301
|
+
var roadmap_1 = require("./modules/roadmap");
|
|
302
|
+
Object.defineProperty(exports, "roadmap", { enumerable: true, get: function () { return __importDefault(roadmap_1).default; } });
|
|
303
|
+
// Codemap module
|
|
304
|
+
var codemap_1 = require("./modules/codemap");
|
|
305
|
+
Object.defineProperty(exports, "codemap", { enumerable: true, get: function () { return __importDefault(codemap_1).default; } });
|
|
306
|
+
// Project Structure module
|
|
307
|
+
var projectStructure_1 = require("./modules/projectStructure");
|
|
308
|
+
Object.defineProperty(exports, "projectStructure", { enumerable: true, get: function () { return __importDefault(projectStructure_1).default; } });
|
|
309
|
+
// Codebase Search module
|
|
310
|
+
var codebaseSearch_1 = require("./modules/codebaseSearch");
|
|
311
|
+
Object.defineProperty(exports, "codebaseSearch", { enumerable: true, get: function () { return __importDefault(codebaseSearch_1).default; } });
|
|
312
|
+
// Background Child Threads module
|
|
313
|
+
var backgroundChildThreads_1 = require("./modules/backgroundChildThreads");
|
|
314
|
+
Object.defineProperty(exports, "backgroundChildThreads", { enumerable: true, get: function () { return __importDefault(backgroundChildThreads_1).default; } });
|
|
203
315
|
// ================================
|
|
204
316
|
// Tools Module - LLM-ready tool definitions
|
|
205
317
|
// ================================
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICreateDeliberationParams, ICreateDeliberationResponse, IGetDeliberationParams, IGetDeliberationResponse, IListDeliberationsParams, IListDeliberationsResponse, IUpdateDeliberationParams, IUpdateDeliberationResponse, IRespondParams, IRespondResponse, IVoteParams, IVoteResponse, IGetWinnerParams, IGetWinnerResponse, ISummaryParams, ISummaryResponse } from '
|
|
1
|
+
import { ICreateDeliberationParams, ICreateDeliberationResponse, IGetDeliberationParams, IGetDeliberationResponse, IListDeliberationsParams, IListDeliberationsResponse, IUpdateDeliberationParams, IUpdateDeliberationResponse, IRespondParams, IRespondResponse, IVoteParams, IVoteResponse, IGetWinnerParams, IGetWinnerResponse, ISummaryParams, ISummaryResponse } from '@codebolt/types/lib';
|
|
2
2
|
declare const cbagentDeliberation: {
|
|
3
3
|
create: (params: ICreateDeliberationParams) => Promise<ICreateDeliberationResponse>;
|
|
4
4
|
get: (params: IGetDeliberationParams) => Promise<IGetDeliberationResponse>;
|
|
@@ -4,31 +4,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const websocket_1 = __importDefault(require("../core/websocket"));
|
|
7
|
-
const
|
|
7
|
+
const lib_1 = require("@codebolt/types/lib");
|
|
8
8
|
const cbagentDeliberation = {
|
|
9
9
|
create: async (params) => {
|
|
10
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
10
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.CREATE, ...params }, lib_1.AgentDeliberationResponseType.CREATE_RESPONSE);
|
|
11
11
|
},
|
|
12
12
|
get: async (params) => {
|
|
13
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
13
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.GET, ...params }, lib_1.AgentDeliberationResponseType.GET_RESPONSE);
|
|
14
14
|
},
|
|
15
15
|
list: async (params) => {
|
|
16
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
16
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.LIST, ...(params || {}) }, lib_1.AgentDeliberationResponseType.LIST_RESPONSE);
|
|
17
17
|
},
|
|
18
18
|
update: async (params) => {
|
|
19
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
19
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.UPDATE, ...params }, lib_1.AgentDeliberationResponseType.UPDATE_RESPONSE);
|
|
20
20
|
},
|
|
21
21
|
respond: async (params) => {
|
|
22
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
22
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.RESPOND, ...params }, lib_1.AgentDeliberationResponseType.RESPOND_RESPONSE);
|
|
23
23
|
},
|
|
24
24
|
vote: async (params) => {
|
|
25
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
25
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.VOTE, ...params }, lib_1.AgentDeliberationResponseType.VOTE_RESPONSE);
|
|
26
26
|
},
|
|
27
27
|
getWinner: async (params) => {
|
|
28
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
28
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.WINNER, ...params }, lib_1.AgentDeliberationResponseType.WINNER_RESPONSE);
|
|
29
29
|
},
|
|
30
30
|
summary: async (params) => {
|
|
31
|
-
return websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
31
|
+
return websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AgentDeliberationAction.SUMMARY, ...params }, lib_1.AgentDeliberationResponseType.SUMMARY_RESPONSE);
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
exports.default = cbagentDeliberation;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Provides functionality for managing agent event queues with local caching,
|
|
4
4
|
* WebSocket event subscription, and acknowledgement handling.
|
|
5
5
|
*/
|
|
6
|
-
import type { AgentEventMessage, AddEventInput, SendAgentMessageInput, GetPendingEventsInput, AgentEventQueueResponse, AddEventResponseData, QueueStatsResponseData, QueueEventHandler } from '
|
|
7
|
-
export type { AgentEventMessage, AddEventInput, SendAgentMessageInput, AckEventInput, GetPendingEventsInput, AgentEventQueueResponse, AddEventResponseData, GetPendingEventsResponseData, QueueStatsResponseData, QueueEventHandler } from '
|
|
8
|
-
export { AgentEventType, AgentEventStatus, AgentEventPriority } from '
|
|
6
|
+
import type { AgentEventMessage, AddEventInput, SendAgentMessageInput, GetPendingEventsInput, AgentEventQueueResponse, AddEventResponseData, QueueStatsResponseData, QueueEventHandler } from '@codebolt/types/lib';
|
|
7
|
+
export type { AgentEventMessage, AddEventInput, SendAgentMessageInput, AckEventInput, GetPendingEventsInput, AgentEventQueueResponse, AddEventResponseData, GetPendingEventsResponseData, QueueStatsResponseData, QueueEventHandler } from '@codebolt/types/lib';
|
|
8
|
+
export { AgentEventType, AgentEventStatus, AgentEventPriority } from '@codebolt/types/lib';
|
|
9
9
|
/**
|
|
10
10
|
* Types of external events that can be received
|
|
11
11
|
*/
|
|
@@ -11,10 +11,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
exports.AgentEventPriority = exports.AgentEventStatus = exports.AgentEventType = void 0;
|
|
12
12
|
const websocket_1 = __importDefault(require("../core/websocket"));
|
|
13
13
|
const crypto_1 = require("crypto");
|
|
14
|
-
var
|
|
15
|
-
Object.defineProperty(exports, "AgentEventType", { enumerable: true, get: function () { return
|
|
16
|
-
Object.defineProperty(exports, "AgentEventStatus", { enumerable: true, get: function () { return
|
|
17
|
-
Object.defineProperty(exports, "AgentEventPriority", { enumerable: true, get: function () { return
|
|
14
|
+
var lib_1 = require("@codebolt/types/lib");
|
|
15
|
+
Object.defineProperty(exports, "AgentEventType", { enumerable: true, get: function () { return lib_1.AgentEventType; } });
|
|
16
|
+
Object.defineProperty(exports, "AgentEventStatus", { enumerable: true, get: function () { return lib_1.AgentEventStatus; } });
|
|
17
|
+
Object.defineProperty(exports, "AgentEventPriority", { enumerable: true, get: function () { return lib_1.AgentEventPriority; } });
|
|
18
18
|
// ============================================================================
|
|
19
19
|
// Local Event Cache
|
|
20
20
|
// ============================================================================
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAddCaseToSuiteParams, IAddCaseToSuiteResponse, ICreateCaseParams, ICreateCaseResponse, ICreateRunParams, ICreateRunResponse, ICreateSuiteParams, ICreateSuiteResponse, IDeleteCaseParams, IDeleteCaseResponse, IDeleteSuiteParams, IDeleteSuiteResponse, IGetCaseParams, IGetCaseResponse, IGetRunParams, IGetRunResponse, IGetSuiteParams, IGetSuiteResponse, IListCasesParams, IListCasesResponse, IListRunsParams, IListRunsResponse, IListSuitesParams, IListSuitesResponse, IRemoveCaseFromSuiteParams, IRemoveCaseFromSuiteResponse, IUpdateCaseParams, IUpdateCaseResponse, IUpdateRunCaseParams, IUpdateRunCaseResponse, IUpdateRunStatusParams, IUpdateRunStatusResponse, IUpdateRunStepParams, IUpdateRunStepResponse, IUpdateSuiteParams, IUpdateSuiteResponse } from '
|
|
1
|
+
import { IAddCaseToSuiteParams, IAddCaseToSuiteResponse, ICreateCaseParams, ICreateCaseResponse, ICreateRunParams, ICreateRunResponse, ICreateSuiteParams, ICreateSuiteResponse, IDeleteCaseParams, IDeleteCaseResponse, IDeleteSuiteParams, IDeleteSuiteResponse, IGetCaseParams, IGetCaseResponse, IGetRunParams, IGetRunResponse, IGetSuiteParams, IGetSuiteResponse, IListCasesParams, IListCasesResponse, IListRunsParams, IListRunsResponse, IListSuitesParams, IListSuitesResponse, IRemoveCaseFromSuiteParams, IRemoveCaseFromSuiteResponse, IUpdateCaseParams, IUpdateCaseResponse, IUpdateRunCaseParams, IUpdateRunCaseResponse, IUpdateRunStatusParams, IUpdateRunStatusResponse, IUpdateRunStepParams, IUpdateRunStepResponse, IUpdateSuiteParams, IUpdateSuiteResponse } from '@codebolt/types/lib';
|
|
2
2
|
declare const cbautoTesting: {
|
|
3
3
|
createSuite: (params: ICreateSuiteParams) => Promise<ICreateSuiteResponse>;
|
|
4
4
|
getSuite: (params: IGetSuiteParams) => Promise<IGetSuiteResponse>;
|
|
@@ -4,28 +4,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const websocket_1 = __importDefault(require("../core/websocket"));
|
|
7
|
-
const
|
|
7
|
+
const lib_1 = require("@codebolt/types/lib");
|
|
8
8
|
const cbautoTesting = {
|
|
9
9
|
// ---- Test Suites ----
|
|
10
|
-
createSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
11
|
-
getSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
12
|
-
listSuites: async (_params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
13
|
-
updateSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
14
|
-
deleteSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
15
|
-
addCaseToSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
16
|
-
removeCaseFromSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
10
|
+
createSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.SUITE_CREATE, ...params }, lib_1.AutoTestingResponseType.SUITE_CREATE_RESPONSE),
|
|
11
|
+
getSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.SUITE_GET, ...params }, lib_1.AutoTestingResponseType.SUITE_GET_RESPONSE),
|
|
12
|
+
listSuites: async (_params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.SUITE_LIST }, lib_1.AutoTestingResponseType.SUITE_LIST_RESPONSE),
|
|
13
|
+
updateSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.SUITE_UPDATE, ...params }, lib_1.AutoTestingResponseType.SUITE_UPDATE_RESPONSE),
|
|
14
|
+
deleteSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.SUITE_DELETE, ...params }, lib_1.AutoTestingResponseType.SUITE_DELETE_RESPONSE),
|
|
15
|
+
addCaseToSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.SUITE_CASE_ADD, ...params }, lib_1.AutoTestingResponseType.SUITE_CASE_ADD_RESPONSE),
|
|
16
|
+
removeCaseFromSuite: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.SUITE_CASE_REMOVE, ...params }, lib_1.AutoTestingResponseType.SUITE_CASE_REMOVE_RESPONSE),
|
|
17
17
|
// ---- Test Cases ----
|
|
18
|
-
createCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
19
|
-
getCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
20
|
-
listCases: async (_params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
21
|
-
updateCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
22
|
-
deleteCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
18
|
+
createCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.CASE_CREATE, ...params }, lib_1.AutoTestingResponseType.CASE_CREATE_RESPONSE),
|
|
19
|
+
getCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.CASE_GET, ...params }, lib_1.AutoTestingResponseType.CASE_GET_RESPONSE),
|
|
20
|
+
listCases: async (_params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.CASE_LIST }, lib_1.AutoTestingResponseType.CASE_LIST_RESPONSE),
|
|
21
|
+
updateCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.CASE_UPDATE, ...params }, lib_1.AutoTestingResponseType.CASE_UPDATE_RESPONSE),
|
|
22
|
+
deleteCase: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.CASE_DELETE, ...params }, lib_1.AutoTestingResponseType.CASE_DELETE_RESPONSE),
|
|
23
23
|
// ---- Test Runs ----
|
|
24
|
-
createRun: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
25
|
-
getRun: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
26
|
-
listRuns: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
27
|
-
updateRunStatus: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
28
|
-
updateRunCaseStatus: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
29
|
-
updateRunStepStatus: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type:
|
|
24
|
+
createRun: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.RUN_CREATE, ...params }, lib_1.AutoTestingResponseType.RUN_CREATE_RESPONSE),
|
|
25
|
+
getRun: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.RUN_GET, ...params }, lib_1.AutoTestingResponseType.RUN_GET_RESPONSE),
|
|
26
|
+
listRuns: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.RUN_LIST, ...(params || {}) }, lib_1.AutoTestingResponseType.RUN_LIST_RESPONSE),
|
|
27
|
+
updateRunStatus: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.RUN_UPDATE_STATUS, ...params }, lib_1.AutoTestingResponseType.RUN_UPDATE_STATUS_RESPONSE),
|
|
28
|
+
updateRunCaseStatus: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.RUN_CASE_UPDATE, ...params }, lib_1.AutoTestingResponseType.RUN_CASE_UPDATE_RESPONSE),
|
|
29
|
+
updateRunStepStatus: async (params) => websocket_1.default.messageManager.sendAndWaitForResponse({ type: lib_1.AutoTestingAction.RUN_STEP_UPDATE, ...params }, lib_1.AutoTestingResponseType.RUN_STEP_UPDATE_RESPONSE),
|
|
30
30
|
};
|
|
31
31
|
exports.default = cbautoTesting;
|
|
@@ -10,13 +10,31 @@ const runningBackgroundAgents = new Map();
|
|
|
10
10
|
const completedBackgroundAgents = new Map();
|
|
11
11
|
const groupedAgentCompletionMap = new Map();
|
|
12
12
|
const backgroundAgentGroups = new Map();
|
|
13
|
-
//
|
|
14
|
-
const
|
|
13
|
+
// Track completed agents per group for grouped completion
|
|
14
|
+
const groupCompletedAgents = new Map();
|
|
15
|
+
// Helper to cleanup group membership and check for group completion
|
|
16
|
+
const cleanupAgentGroup = (threadId, completion) => {
|
|
15
17
|
for (const [groupId, agents] of backgroundAgentGroups.entries()) {
|
|
16
18
|
if (agents.has(threadId)) {
|
|
19
|
+
// Track this completion in the group
|
|
20
|
+
if (!groupCompletedAgents.has(groupId)) {
|
|
21
|
+
groupCompletedAgents.set(groupId, []);
|
|
22
|
+
}
|
|
23
|
+
groupCompletedAgents.get(groupId).push(completion);
|
|
17
24
|
agents.delete(threadId);
|
|
25
|
+
// Check if all agents in the group have completed
|
|
18
26
|
if (agents.size === 0) {
|
|
27
|
+
// All agents in this group are done - emit grouped completion
|
|
28
|
+
const groupCompletions = groupCompletedAgents.get(groupId) || [];
|
|
29
|
+
groupedAgentSubscription.emit('message', {
|
|
30
|
+
groupId,
|
|
31
|
+
threadId, // Last completed thread
|
|
32
|
+
completions: groupCompletions,
|
|
33
|
+
success: groupCompletions.every(c => c.success !== false)
|
|
34
|
+
});
|
|
35
|
+
// Cleanup
|
|
19
36
|
backgroundAgentGroups.delete(groupId);
|
|
37
|
+
groupCompletedAgents.delete(groupId);
|
|
20
38
|
}
|
|
21
39
|
}
|
|
22
40
|
}
|
|
@@ -29,8 +47,8 @@ const handleBackgroundAgentCompletion = (message) => {
|
|
|
29
47
|
completedBackgroundAgents.set(message.threadId, message);
|
|
30
48
|
// Remove from running map since agent is now complete
|
|
31
49
|
runningBackgroundAgents.delete(message.threadId);
|
|
32
|
-
// Clean up any group associations
|
|
33
|
-
cleanupAgentGroup(message.threadId);
|
|
50
|
+
// Clean up any group associations and check for group completion
|
|
51
|
+
cleanupAgentGroup(message.threadId, message);
|
|
34
52
|
};
|
|
35
53
|
// Subscribe to background agent completion - primary message type
|
|
36
54
|
const backgroundAgentSubscription = websocket_1.default.messageManager.subscribe('startThreadResponse');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CodebaseSearchResponse, McpToolSearchResponse } from '
|
|
1
|
+
import type { CodebaseSearchResponse, McpToolSearchResponse } from '@codebolt/types/lib';
|
|
2
2
|
/**
|
|
3
3
|
* Codebase Search Module for codeboltjs
|
|
4
4
|
* Provides semantic code search functionality across the project.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Codemap, CodemapStatus, CreateCodemapData, UpdateCodemapData, CodemapListResponse, CodemapGetResponse, CodemapCreateResponse, CodemapSaveResponse, CodemapUpdateResponse, CodemapDeleteResponse } from '
|
|
1
|
+
import type { Codemap, CodemapStatus, CreateCodemapData, UpdateCodemapData, CodemapListResponse, CodemapGetResponse, CodemapCreateResponse, CodemapSaveResponse, CodemapUpdateResponse, CodemapDeleteResponse } from '@codebolt/types/lib';
|
|
2
2
|
/**
|
|
3
3
|
* Codemap Module for codeboltjs
|
|
4
4
|
* Provides functionality for managing codemaps (visual representations of code structure).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Context Assembly Module
|
|
3
3
|
* Provides context assembly engine operations for building agent context
|
|
4
4
|
*/
|
|
5
|
-
import type { ContextAssemblyResponse, ContextValidateResponse, MemoryTypesResponse, RuleEvaluationResponse, RequiredVariablesResponse, ContextAssemblyRequest } from '
|
|
5
|
+
import type { ContextAssemblyResponse, ContextValidateResponse, MemoryTypesResponse, RuleEvaluationResponse, RequiredVariablesResponse, ContextAssemblyRequest } from '@codebolt/types/lib';
|
|
6
6
|
declare const contextAssembly: {
|
|
7
7
|
/**
|
|
8
8
|
* Assemble context from various memory sources
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Context Rule Engine Module
|
|
3
3
|
* Provides context rule engine operations for conditional memory inclusion
|
|
4
4
|
*/
|
|
5
|
-
import type { ContextRuleEngineResponse, ContextRuleEngineListResponse, ContextRuleEngineDeleteResponse, EvaluateRulesResponse, PossibleVariablesResponse, CreateContextRuleEngineParams, UpdateContextRuleEngineParams, EvaluateRulesParams } from '
|
|
5
|
+
import type { ContextRuleEngineResponse, ContextRuleEngineListResponse, ContextRuleEngineDeleteResponse, EvaluateRulesResponse, PossibleVariablesResponse, CreateContextRuleEngineParams, UpdateContextRuleEngineParams, EvaluateRulesParams } from '@codebolt/types/lib';
|
|
6
6
|
declare const contextRuleEngine: {
|
|
7
7
|
/**
|
|
8
8
|
* Create a new rule engine
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Event Log Module
|
|
3
3
|
* Provides event logging operations for agent activities
|
|
4
4
|
*/
|
|
5
|
-
import type { EventLogInstanceResponse, EventLogInstanceListResponse, EventLogAppendResponse, EventLogAppendMultipleResponse, EventLogQueryResponse, EventLogStatsResponse, EventLogDSL, UpdateEventLogInstanceParams, AppendEventParams, AppendEventsParams } from '
|
|
5
|
+
import type { EventLogInstanceResponse, EventLogInstanceListResponse, EventLogAppendResponse, EventLogAppendMultipleResponse, EventLogQueryResponse, EventLogStatsResponse, EventLogDSL, UpdateEventLogInstanceParams, AppendEventParams, AppendEventsParams } from '@codebolt/types/lib';
|
|
6
6
|
declare const eventLog: {
|
|
7
7
|
/**
|
|
8
8
|
* Create a new event log instance
|