diff --git a/.editorconfig b/.editorconfig
index 85e915e..5a7fc63 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -12,3 +12,7 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
+
+[Makefile]
+indent_style = tab
+indent_size = 4
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1ce63c7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+.PHONY: setup
+setup: setup-docker
+ @pnpm install
+ @echo Makefile target: $@ completed
+
+.PHONY: setup-docker
+setup-docker:
+ @docker-compose up -d
+ @echo Makefile target: $@ completed
+
+.PHONY: dev
+dev:
+ @pnpm run dev
+ @echo Makefile target: $@ completed
+
+.PHONY: build
+build:
+ @pnpm run build
+ @echo Makefile target: $@ completed
+
+.PHONY: lint
+lint:
+ @pnpm run lint
+ @echo Makefile target: $@ completed
+
+.PHONY: run
+run: build
+ @pnpm run start
+ @echo Makefile target: $@ completed
diff --git a/README.md b/README.md
index 8db7794..f135b18 100644
--- a/README.md
+++ b/README.md
@@ -8,16 +8,36 @@
ManasAI, inspired by the groundbreaking [Devin AI](https://www.cognition-labs.com/introducing-devin) by Cognition Labs, is an open-source venture aiming to redefine software engineering through AI. This project harnesses advanced technologies for automating development tasks, enhancing code quality, and streamlining the software lifecycle. Ideal for developers and engineers seeking AI-augmented tools to boost productivity and innovation. Join us in pioneering the next wave of AI in software engineering with ManasAI.
-
-
-
+[Demo](https://github.com/yashpokar/ManasAI/assets/7402810/a53817c6-3071-4c19-9ebe-98ffdaebd7d2)
+
+> [!IMPORTANT]
+> Currently, The project is in its infancy and can be considered experimental. Many features are either not yet implemented or are not working as intended. We warmly welcome contributions to assist in its development and progress!
+
+## Requirements
+
+To ensure a smooth setup and operation of this project, please ensure your environment meets the following requirements:
+
+### Node.js
+
+- Node.js 16 or newer is required.
+- You can download the latest version of Node.js from [the official Node.js website](https://nodejs.org/).
+
+### Docker
+
+- Docker and Docker Compose are required for containerization and orchestration.
+- Follow the installation guides for Docker and Docker Compose on [the official Docker website](https://docs.docker.com/get-docker/) to set up on your system.
+
+### pnpm
+
+- pnpm is required as the package manager for this project.
+- To install pnpm, ensure you have Node.js installed, then run `npm install -g pnpm` in your terminal.
## Installation
To install ManasAI, clone the repository and run the following command:
```shell
-pnpm install
+make setup
```
Create a `.env` file in the root directory and add the following environment variables:
@@ -25,3 +45,11 @@ Create a `.env` file in the root directory and add the following environment var
```shell
cp .env.example .env
```
+
+## Usage
+
+To run ManasAI, execute the following command:
+
+```shell
+make run
+```
diff --git a/apps/api/package.json b/apps/api/package.json
index 1c4d5cf..6e7fe50 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -7,7 +7,8 @@
"dev": "nodemon",
"build": "rm -rf ./dist && tsc",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
- "test": "echo \"Yet to be implemented\""
+ "test": "echo \"Yet to be implemented\"",
+ "start": "node dist/index.js --trace-deprecation"
},
"keywords": [
"API",
diff --git a/apps/api/src/core/agent.ts b/apps/api/src/core/agent.ts
index a1b11f2..ab6fa3a 100644
--- a/apps/api/src/core/agent.ts
+++ b/apps/api/src/core/agent.ts
@@ -46,8 +46,8 @@ The operating system is Ubuntu 20.04`
])
const model = new ChatOpenAI({
- modelName: 'gpt-4-0125-preview',
- temperature: 0
+ modelName: 'gpt-3.5-turbo',
+ temperature: 0.7
})
const modelWithFunctions = model.bind({
@@ -71,6 +71,6 @@ export const createAgentExecutor = (): AgentExecutor => {
return AgentExecutor.fromAgentAndTools({
agent: runnableAgent,
tools,
- maxIterations: 20
+ maxIterations: 10
})
}
diff --git a/package.json b/package.json
index a419545..ff669f1 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,7 @@
"description": "The Manas AI",
"scripts": {
"dev": "concurrently \"pnpm run ui:dev\" \"pnpm run api:dev\"",
+ "start": "concurrently \"nx run ui:preview --port 6288\" \"nx run api:dev\"",
"ui:dev": "nx run ui:dev",
"ui:build": "nx run ui:build",
"ui:lint": "nx run ui:lint",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 443cae0..497c548 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -207,15 +207,6 @@ importers:
specifier: ^5.2.2
version: 5.4.3
- packages/events:
- devDependencies:
- '@types/node':
- specifier: ^20.11.30
- version: 20.11.30
- typescript:
- specifier: ^5.2.2
- version: 5.4.3
-
packages:
/@aashutoshrathi/word-wrap@1.2.6:
@@ -1635,12 +1626,6 @@ packages:
dependencies:
undici-types: 5.26.5
- /@types/node@20.11.30:
- resolution: {integrity: sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==}
- dependencies:
- undici-types: 5.26.5
- dev: true
-
/@types/node@20.12.2:
resolution: {integrity: sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==}
dependencies:
@@ -5937,9 +5922,6 @@ packages:
/sqlite3@5.1.7:
resolution: {integrity: sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==}
requiresBuild: true
- peerDependenciesMeta:
- node-gyp:
- optional: true
dependencies:
bindings: 1.5.0
node-addon-api: 7.1.0