Skip to content

Commit e505999

Browse files
committed
2 parents ef466e4 + 3f29d80 commit e505999

27 files changed

+49780
-47326
lines changed

docs/api/cbstate/addToAgentState.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
name: addToAgentState
33
cbbaseinfo:
4-
description: ' '
4+
description: Adds a key-value pair to the agent's state on the server via WebSocket.
55
cbparameters:
66
parameters:
77
- name: key
88
typeName: string
9-
description: ''
9+
description: The key to add to the agent's state.
1010
- name: value
1111
typeName: string
12-
description: ''
12+
description: The value associated with the key.
1313
returns:
1414
signatureTypeName: Promise
15-
description: ' '
15+
description: A promise that resolves with the response to the addition request.
1616
typeArgs:
17-
- type: intrinsic
18-
name: void
17+
- type: reference
18+
name: AddToAgentStateResponse
1919
data:
2020
name: addToAgentState
2121
category: cbstate

docs/api/cbstate/cb_index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
cbapicategory:
33
- name: addToAgentState
44
link: addToAgentState
5-
description: ' '
5+
description: Adds a key-value pair to the agent's state on the server via WebSocket.
66
- name: getAgentState
77
link: getAgentState
8-
description: ' '
8+
description: Retrieves the current state of the agent from the server via WebSocket.
99
- name: getApplicationState
1010
link: getApplicationState
11-
description: ' '
11+
description: Retrieves the current application state from the server via WebSocket.
1212

1313
---
1414
# cbstate

docs/api/cbstate/getAgentState.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
name: getAgentState
33
cbbaseinfo:
4-
description: ' '
4+
description: Retrieves the current state of the agent from the server via WebSocket.
55
cbparameters:
66
parameters: []
77
returns:
88
signatureTypeName: Promise
9-
description: ' '
9+
description: A promise that resolves with the agent's state.
1010
typeArgs:
11-
- type: intrinsic
12-
name: any
11+
- type: reference
12+
name: GetAgentStateResponse
1313
data:
1414
name: getAgentState
1515
category: cbstate

docs/api/cbstate/getApplicationState.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
name: getApplicationState
33
cbbaseinfo:
4-
description: ' '
4+
description: Retrieves the current application state from the server via WebSocket.
55
cbparameters:
66
parameters: []
77
returns:
88
signatureTypeName: Promise
9-
description: ' '
9+
description: A promise that resolves with the application state.
1010
typeArgs:
11-
- type: intrinsic
12-
name: any
11+
- type: reference
12+
name: ApplicationState
1313
data:
1414
name: getApplicationState
1515
category: cbstate

docs/api/chat/cb_index.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,27 @@ cbapicategory:
66
- name: getChatHistory
77
link: getChatHistory
88
description: Retrieves the chat history from the server.
9+
- name: processStarted
10+
link: processStarted
11+
description: >-
12+
Notifies the server that a process has started and sets up an event
13+
listener for stopProcessClicked events.
914
- name: sendMessage
1015
link: sendMessage
1116
description: Sends a message through the WebSocket connection.
1217
- name: stopProcess
1318
link: stopProcess
14-
description: ' '
19+
description: |-
20+
Stops the ongoing process.
21+
Sends a specific message to the server to stop the process.
1522
- name: userMessageListener
1623
link: userMessageListener
17-
description: ' '
24+
description: >-
25+
Sets up a listener for incoming WebSocket messages and emits a custom
26+
event when a message is received.
1827
- name: waitforReply
1928
link: waitforReply
2029
description: Waits for a reply to a sent message.
21-
- name: processStarted
22-
link: processStarted
23-
description: ' '
2430

2531
---
2632
# chat

docs/api/chat/eventEmitter.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
name: eventEmitter
2+
data:
3+
name: eventEmitter
4+
category: chat
5+
link: eventEmitter.md
36
cbbaseinfo:
47
description: ' '
58
cbparameters:
@@ -8,10 +11,6 @@ cbparameters:
811
signatureTypeName: ' '
912
description: ' '
1013
typeArgs: []
11-
data:
12-
name: eventEmitter
13-
category: chat
14-
link: eventEmitter.md
1514
---
1615
<CBBaseInfo/>
1716
<CBParameters/>

docs/api/chat/processStarted.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
name: processStarted
2+
data:
3+
name: processStarted
4+
category: chat
5+
link: processStarted.md
36
cbbaseinfo:
4-
description: ' '
7+
description: >-
8+
Notifies the server that a process has started and sets up an event listener
9+
for stopProcessClicked events.
510
cbparameters:
611
parameters: []
712
returns:
8-
signatureTypeName: ' '
9-
description: ' '
13+
description: An object containing the event emitter and a stopProcess method.
1014
typeArgs: []
11-
data:
12-
name: processStarted
13-
category: chat
14-
link: processStarted.md
1515
---
1616
<CBBaseInfo/>
1717
<CBParameters/>

docs/api/chat/stopProcess.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
name: stopProcess
33
cbbaseinfo:
4-
description: ' '
4+
description: |-
5+
Stops the ongoing process.
6+
Sends a specific message to the server to stop the process.
57
cbparameters:
68
parameters: []
79
returns:

docs/api/chat/userMessageListener.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
---
22
name: userMessageListener
33
cbbaseinfo:
4-
description: ' '
4+
description: >-
5+
Sets up a listener for incoming WebSocket messages and emits a custom event
6+
when a message is received.
57
cbparameters:
68
parameters: []
79
returns:
8-
description: ' '
10+
description: The event emitter used for emitting custom events.
911
typeArgs: []
1012
data:
1113
name: userMessageListener

docs/api/codeutils/getCodeTree.md

-15
This file was deleted.

docs/api/debug/cb_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
cbapicategory:
33
- name: debug
44
link: debug
5-
description: ' '
5+
description: Sends a log message to the debug websocket and waits for a response.
66
- name: openDebugBrowser
77
link: openDebugBrowser
8-
description: ' '
8+
description: Requests to open a debug browser at the specified URL and port.
99

1010
---
1111
# debug

docs/api/debug/debug.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
---
22
name: debug
33
cbbaseinfo:
4-
description: ' '
4+
description: Sends a log message to the debug websocket and waits for a response.
55
cbparameters:
6-
parameters: []
6+
parameters:
7+
- name: log
8+
typeName: string
9+
description: The log message to send.
10+
- name: type
11+
typeName: logType
12+
description: The type of the log message (info, error, warning).
713
returns:
8-
signatureTypeName: ' '
9-
description: ' '
10-
typeArgs: []
14+
signatureTypeName: Promise
15+
description: A promise that resolves with the response from the debug event.
16+
typeArgs:
17+
- type: reference
18+
name: DebugAddLogResponse
1119
data:
1220
name: debug
1321
category: debug

docs/api/debug/openDebugBrowser.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
---
22
name: openDebugBrowser
33
cbbaseinfo:
4-
description: ' '
4+
description: Requests to open a debug browser at the specified URL and port.
55
cbparameters:
6-
parameters: []
6+
parameters:
7+
- name: url
8+
typeName: string
9+
description: The URL where the debug browser should be opened.
10+
- name: port
11+
typeName: number
12+
description: The port on which the debug browser will listen.
713
returns:
8-
signatureTypeName: ' '
9-
description: ' '
10-
typeArgs: []
14+
signatureTypeName: Promise
15+
description: >-
16+
A promise that resolves with the response from the open debug browser
17+
event.
18+
typeArgs:
19+
- type: reference
20+
name: OpenDebugBrowserResponse
1121
data:
1222
name: openDebugBrowser
1323
category: debug

docs/api/llm/inference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ cbparameters:
1616
signatureTypeName: Promise
1717
description: A promise that resolves with the LLM's response.
1818
typeArgs:
19-
- type: intrinsic
20-
name: any
19+
- type: reference
20+
name: LLMResponse
2121
data:
2222
name: inference
2323
category: llm

docs/api/project/getProjectPath.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ cbparameters:
88
signatureTypeName: Promise
99
description: A promise that resolves with the project path response.
1010
typeArgs:
11-
- type: intrinsic
12-
name: any
11+
- type: reference
12+
name: GetProjectPathResponse
1313
data:
1414
name: getProjectPath
1515
category: project

docs/api/terminal/executeCommand.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ cbparameters:
1919
A promise that resolves with the command's output, error, or finish
2020
signal.
2121
typeArgs:
22-
- type: intrinsic
23-
name: any
22+
- type: ' '
23+
name: ' '
2424
data:
2525
name: executeCommand
2626
category: terminal

docs/api/terminal/executeCommandRunUntilError.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ cbparameters:
1515
signatureTypeName: Promise
1616
description: A promise that resolves when an error occurs during command execution.
1717
typeArgs:
18-
- type: intrinsic
19-
name: any
18+
- type: reference
19+
name: CommandError
2020
data:
2121
name: executeCommandRunUntilError
2222
category: terminal

docs/api/tokenizer/addToken.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
name: addToken
33
cbbaseinfo:
4-
description: Adds a token asynchronously.
4+
description: Adds a token to the system via WebSocket.
55
cbparameters:
66
parameters:
77
- name: key
88
typeName: string
9-
description: The key of the token to add.
9+
description: The key associated with the token to be added.
1010
returns:
1111
signatureTypeName: Promise
12-
description: A promise that resolves with the response.
12+
description: A promise that resolves with the response from the add token event.
1313
typeArgs:
14-
- type: intrinsic
15-
name: any
14+
- type: reference
15+
name: AddTokenResponse
1616
data:
1717
name: addToken
1818
category: tokenizer

docs/api/tokenizer/cb_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
cbapicategory:
33
- name: addToken
44
link: addToken
5-
description: Adds a token asynchronously.
5+
description: Adds a token to the system via WebSocket.
66
- name: getToken
77
link: getToken
8-
description: ' '
8+
description: Retrieves a token from the system via WebSocket.
99

1010
---
1111
# tokenizer

docs/api/tokenizer/getToken.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
name: getToken
33
cbbaseinfo:
4-
description: ' '
4+
description: Retrieves a token from the system via WebSocket.
55
cbparameters:
66
parameters:
77
- name: key
88
typeName: string
9-
description: ''
9+
description: The key associated with the token to be retrieved.
1010
returns:
1111
signatureTypeName: Promise
12-
description: ' '
12+
description: A promise that resolves with the response from the get token event.
1313
typeArgs:
14-
- type: intrinsic
15-
name: any
14+
- type: reference
15+
name: GetTokenResponse
1616
data:
1717
name: getToken
1818
category: tokenizer

docs/api/vectordb/addVectorItem.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ cbparameters:
1111
signatureTypeName: Promise
1212
description: A promise that resolves when the item is successfully added.
1313
typeArgs:
14-
- type: intrinsic
15-
name: any
14+
- type: reference
15+
name: AddVectorItemResponse
1616
data:
1717
name: addVectorItem
1818
category: vectordb

0 commit comments

Comments
 (0)