Skip to content

Commit 2eea35a

Browse files
committedDec 6, 2024
changes
1 parent 1a93c09 commit 2eea35a

32 files changed

+16433
-377
lines changed
 

‎.codebolt/4659_output.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
^Chttp-server stopped.\COMMAND_SUCCESS
2+
::
3+
::
4+
::
5+
::
6+
::
7+
:: COMMAND HAS FINISHED
8+
bash-3.2$
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"ports": [
3+
3000,
4+
3000,
5+
3000,
6+
3000,
7+
3000,
8+
3000,
9+
3000,
10+
3000,
11+
3000,
12+
3000
13+
]
14+
}

‎.codebolt/chat.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"threadId":"7c533199-7b87-4d4f-8105-5502a63c8020","chats":[{"type":"confirmationRequest","actionType":"confirmationRequest","content":{"eventType":"console","type":"command","message":"npx http-server tic-tac-toe Finished View Logs.","processId":4659,"command":"npx http-server tic-tac-toe","status":"done","messageId":"xpb3ned7njg00372tjisj","threadId":"b33b3a10-5a99-47ec-af8f-65f5cb1dd174"},"sender":"agent","data":{"text":{"eventType":"console","type":"command","message":"npx http-server tic-tac-toe Finished View Logs.","processId":4659,"command":"npx http-server tic-tac-toe","status":"done","messageId":"xpb3ned7njg00372tjisj","threadId":"b33b3a10-5a99-47ec-af8f-65f5cb1dd174"},"buttons":[]},"payload":{"eventType":"console","type":"command","message":"npx http-server tic-tac-toe Finished View Logs.","processId":4659,"command":"npx http-server tic-tac-toe","status":"done","messageId":"xpb3ned7njg00372tjisj","threadId":"b33b3a10-5a99-47ec-af8f-65f5cb1dd174"},"templateType":"commandconfirmation","messageId":"xpb3ned7njg00372tjisj","threadId":"7c533199-7b87-4d4f-8105-5502a63c8020","timestamp":"2024-12-05T06:04:57.680Z"}],"time":"12/5/2024, 11:34:57 AM"},{"threadId":"9fbe9d00-fc64-49cc-a6c3-75ba752929a4","chats":[{"type":"infoWithLink","content":"Sending Request To AI: View Logs.","templateType":"Debug","data":{"text":"Sending Request To AI: View Logs.","linkUrl":"Debug","requestId":"2024-12-05T06:04:57.705Z"},"messageId":"2024-12-05T06:04:57.709Z","threadId":"9fbe9d00-fc64-49cc-a6c3-75ba752929a4","timestamp":"2024-12-05T06:04:57.709Z"},{"type":"processStoped","actionType":"processStoped","messageId":"ppg6bopja1s52f91tq8p9","templateType":"informationWithUILink","data":{"linkUrl":"Planner"},"timestamp":"2024-12-05T06:05:02.367Z"}],"time":"12/5/2024, 11:34:57 AM"}]

‎.codebolt/debug.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

‎.codebolt/projectState.json

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"0": "{",
3+
"1": "\n",
4+
"2": " ",
5+
"3": " ",
6+
"4": "\"",
7+
"5": "a",
8+
"6": "c",
9+
"7": "t",
10+
"8": "i",
11+
"9": "v",
12+
"10": "e",
13+
"11": "A",
14+
"12": "g",
15+
"13": "e",
16+
"14": "n",
17+
"15": "t",
18+
"16": "\"",
19+
"17": ":",
20+
"18": " ",
21+
"19": "f",
22+
"20": "a",
23+
"21": "l",
24+
"22": "s",
25+
"23": "e",
26+
"24": ",",
27+
"25": "\n",
28+
"26": " ",
29+
"27": " ",
30+
"28": "\"",
31+
"29": "p",
32+
"30": "i",
33+
"31": "n",
34+
"32": "n",
35+
"33": "e",
36+
"34": "d",
37+
"35": "A",
38+
"36": "g",
39+
"37": "e",
40+
"38": "n",
41+
"39": "t",
42+
"40": "\"",
43+
"41": ":",
44+
"42": " ",
45+
"43": "[",
46+
"44": "]",
47+
"45": "\n",
48+
"46": "}",
49+
"currentLayout": {
50+
"grid": {
51+
"root": {
52+
"type": "branch",
53+
"data": [
54+
{
55+
"type": "leaf",
56+
"data": {
57+
"views": [
58+
"Code"
59+
],
60+
"activeView": "Code",
61+
"id": "1"
62+
},
63+
"size": 848
64+
},
65+
{
66+
"type": "branch",
67+
"data": [
68+
{
69+
"type": "leaf",
70+
"data": {
71+
"views": [
72+
"Chat",
73+
"MarketPlace"
74+
],
75+
"activeView": "MarketPlace",
76+
"id": "2"
77+
},
78+
"size": 343
79+
},
80+
{
81+
"type": "leaf",
82+
"data": {
83+
"views": [
84+
"Preview",
85+
"39e3776b-dc71-4079-91d6-324482baa467"
86+
],
87+
"activeView": "39e3776b-dc71-4079-91d6-324482baa467",
88+
"id": "3"
89+
},
90+
"size": 517
91+
}
92+
],
93+
"size": 622
94+
}
95+
],
96+
"size": 860
97+
},
98+
"width": 1470,
99+
"height": 860,
100+
"orientation": "HORIZONTAL"
101+
},
102+
"panels": {
103+
"Code": {
104+
"id": "Code",
105+
"contentComponent": "Code",
106+
"tabComponent": "props.defaultTabComponent",
107+
"title": "Code",
108+
"renderer": "always"
109+
},
110+
"Chat": {
111+
"id": "Chat",
112+
"contentComponent": "Chat",
113+
"tabComponent": "props.defaultTabComponent",
114+
"title": "Chat",
115+
"renderer": "always"
116+
},
117+
"MarketPlace": {
118+
"id": "MarketPlace",
119+
"contentComponent": "MarketPlace",
120+
"tabComponent": "props.defaultTabComponent",
121+
"title": "MarketPlace"
122+
},
123+
"Preview": {
124+
"id": "Preview",
125+
"contentComponent": "Preview",
126+
"tabComponent": "props.defaultTabComponent",
127+
"title": "Preview",
128+
"renderer": "always"
129+
},
130+
"39e3776b-dc71-4079-91d6-324482baa467": {
131+
"id": "39e3776b-dc71-4079-91d6-324482baa467",
132+
"contentComponent": "Terminal",
133+
"tabComponent": "props.defaultTabComponent",
134+
"title": "Terminal",
135+
"renderer": "always"
136+
}
137+
},
138+
"activeGroup": "1"
139+
},
140+
"pinnedAgent": [],
141+
"activeAgent": false
142+
}

‎.codebolt/tasks.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

‎.codebolt/undefined.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"ports": [
3+
3000,
4+
3000,
5+
3000,
6+
3000,
7+
3000,
8+
3000,
9+
3000,
10+
3000,
11+
3000,
12+
3000,
13+
3000,
14+
3000,
15+
3000,
16+
3000,
17+
3000,
18+
3000,
19+
3000,
20+
3000,
21+
3000,
22+
3000,
23+
3000,
24+
3000,
25+
3000,
26+
3000,
27+
3000,
28+
3000,
29+
3000,
30+
3000,
31+
3000,
32+
3000,
33+
3000,
34+
3000,
35+
3000,
36+
3000,
37+
3000,
38+
3000,
39+
3000,
40+
3000,
41+
3000,
42+
3000
43+
]
44+
}
File renamed without changes.

‎docs/agents/2_firstExtension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create your First Extension
1+
# Create your First Agent
22

33

44
## Create Codebolt Agent

‎docs/agents/3_publishExtension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Publish Extension
2+
# Publish Agent
33

44
### Publish an Agent Using codebolt-cli
55

‎docs/agents/4_runExtension.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Run Agent Locally
2+
3+
4+
## how to run agent Locally
5+
6+
Follow the steps below to run a new agent locally Codebolt.
7+
8+
### Step 1: Click On marketplace icon in buttom bar
9+
10+
### Step 2: Click On My Agents
11+
![install agent](../../static/img/installAgent.png)
12+
- **Click on "Add Agent"**
13+
- **Choose the folder containing the agent**
14+
- **The agent will be set up on your local machine**
15+

‎docs/api/chat/index.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
22
cbapicategory:
3-
- name: eventEmitter
4-
link: /docs/api/chat/eventEmitter
5-
description: ' '
63
- name: getChatHistory
74
link: /docs/api/chat/getChatHistory
85
description: Retrieves the chat history from the server.
@@ -19,11 +16,6 @@ cbapicategory:
1916
description: |-
2017
Stops the ongoing process.
2118
Sends a specific message to the server to stop the process.
22-
- name: userMessageListener
23-
link: /docs/api/chat/userMessageListener
24-
description: >-
25-
Sets up a listener for incoming WebSocket messages and emits a custom
26-
event when a message is received.
2719
- name: waitforReply
2820
link: /docs/api/chat/waitforReply
2921
description: Waits for a reply to a sent message.

‎docs/api/chat/userMessageListener.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎docs/api/fs/createFile.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

‎docs/api/fs/createFolder.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎docs/api/fs/deleteFile.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

‎docs/api/fs/index.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
---
22
cbapicategory:
3-
- name: createFile
4-
link: /docs/api/fs/createFile
5-
description: ' '
6-
- name: createFolder
7-
link: /docs/api/fs/createFolder
8-
description: ' '
9-
- name: deleteFile
10-
link: /docs/api/fs/deleteFile
11-
description: ' '
12-
- name: deleteFolder
13-
link: /docs/api/fs/deleteFolder
14-
description: ' '
15-
- name: listFile
16-
link: /docs/api/fs/listFile
17-
description: ' '
3+
- name: writeToFile
4+
link: /docs/api/fs/writeToFile
5+
description: 'Creates or updates a file and writes data to it.'
186
- name: readFile
197
link: /docs/api/fs/readFile
20-
description: ' '
21-
- name: updateFile
22-
link: /docs/api/fs/updateFile
23-
description: ' '
8+
description: 'Reads the contents of a file and returns it as a string.'
9+
- name: listFile
10+
link: /docs/api/fs/listFile
11+
description: 'Lists all files in the specified directory.'
12+
- name: listCodeDefinitionNames
13+
link: /docs/api/fs/listCodeDefinitionNames
14+
description: 'Lists all code definition names within a project.'
15+
- name: searchFiles
16+
link: /docs/api/fs/searchFiles
17+
description: 'Searches for files matching a specific pattern or criteria.'
18+
2419

2520
---
2621
# fs

‎docs/api/fs/updateFile.md renamed to ‎docs/api/fs/listCodeDefinitionNames.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: updateFile
2+
name: listCodeDefinitionNames
33
cbbaseinfo:
44
description: ' '
55
cbparameters:
@@ -20,9 +20,9 @@ cbparameters:
2020
- type: reference
2121
name: UpdateFileResponse
2222
data:
23-
name: updateFile
23+
name: listCodeDefinitionNames
2424
category: fs
25-
link: updateFile.md
25+
link: listCodeDefinitionNames.md
2626
---
2727
<CBBaseInfo/>
2828
<CBParameters/>

‎docs/api/fs/deleteFolder.md renamed to ‎docs/api/fs/searchFiles.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: deleteFolder
2+
name: searchFiles
33
cbbaseinfo:
44
description: ' '
55
cbparameters:
@@ -17,9 +17,9 @@ cbparameters:
1717
- type: reference
1818
name: DeleteFolderResponse
1919
data:
20-
name: deleteFolder
20+
name: searchFiles
2121
category: fs
22-
link: deleteFolder.md
22+
link: searchFiles.md
2323
---
2424
<CBBaseInfo/>
2525
<CBParameters/>

‎docs/api/fs/writeToFile.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: writeToFile
3+
cbbaseinfo:
4+
description: 'Creates or updates a file and writes data to it.'
5+
cbparameters:
6+
parameters:
7+
- name: filePath
8+
typeName: string
9+
description: The path where the file should be created or updated.
10+
- name: content
11+
typeName: string
12+
description: The content to write into the file.
13+
returns:
14+
signatureTypeName: Promise
15+
description: A promise that resolves with the server response.
16+
typeArgs:
17+
- type: reference
18+
name: WriteToFileResponse
19+
data:
20+
name: writeToFile
21+
category: fs
22+
link: writeToFile.md
23+
---
24+
<CBBaseInfo/>
25+
<CBParameters/>
26+
27+
### Example
28+
```js
29+
30+
31+
let { success, result } = await codebolt.fs.readFile(toolInput.path);
32+
33+
```
34+
35+
### Explaination
36+
37+
The codebolt.fs.writeToFile method is used to create a new file or update in a specified pah, with content provided as a string.
38+
39+
returns success and result. as output.

‎docs/api/llm/inference.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cbparameters:
1111
description: The input message or prompt to be sent to the LLM.
1212
- name: llmrole
1313
typeName: string
14-
description: The role of the LLM to determine which model to use.
14+
description: The role of the LLM to determine which model to use. This parameter is optional.
1515
returns:
1616
signatureTypeName: Promise
1717
description: A promise that resolves with the LLM's response.
@@ -30,10 +30,20 @@ data:
3030

3131
```js
3232

33-
const question = "Write an API to get all users from the User Table.";
34-
const llmRole = "assistant";
33+
let message={
34+
messages:[{
35+
"role":"system",
36+
"content":"you are developer agent expert in writing code"
37+
},{
38+
"role":"user",
39+
"content":"crete node js project"
40+
}],
41+
tools:[],
42+
tool_choice: "auto",//if useing any tools
43+
}
3544

36-
const response = codebolt.llm.inference(question, llmRole);
45+
46+
const response = codebolt.llm.inference(message,<optional llmrole>);
3747
console.log(response);
3848

3949

‎docs/api/start_browser/_category_.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎docs/api/start_browser/index.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎docs/api/userMessageListener/_category_.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎docs/api/userMessageListener/index.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎docs/api/waitForConnection/_category_.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎docs/api/waitForConnection/index.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎docs/api/websocket/_category_.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎docs/api/websocket/index.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎package-lock.json

Lines changed: 15890 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎static/img/installAgent.png

961 KB
Loading

‎yarn.lock

Lines changed: 242 additions & 126 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.