From bfb4280cc3208d73c8ec07d3fa6e4ad2520c37be Mon Sep 17 00:00:00 2001 From: levanion Date: Thu, 29 Feb 2024 13:43:34 +0400 Subject: [PATCH] feat: callsbot domain --- .github/workflows/az-ui-callsbot.yml | 151 +++++++++++++++++++++++++++ apps/ui/.env.callsbot | 109 +++++++++++++++++++ apps/ui/package.json | 2 + 3 files changed, 262 insertions(+) create mode 100644 .github/workflows/az-ui-callsbot.yml create mode 100644 apps/ui/.env.callsbot diff --git a/.github/workflows/az-ui-callsbot.yml b/.github/workflows/az-ui-callsbot.yml new file mode 100644 index 000000000..56f7f145e --- /dev/null +++ b/.github/workflows/az-ui-callsbot.yml @@ -0,0 +1,151 @@ +name: Azure Domain build + +on: + push: + branches: + - main + paths: + - "apps/ui/**" + # pull_request: + # types: [opened, synchronize, reopened, closed] + # branches: + # - main + +jobs: + buid_deploy_job_dev: + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + + - uses: actions/setup-node@v2 + with: + node-version: 18 + + - name: Setup yarn + run: npm install -g yarn + + # Get yarn cache directory path + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + working-directory: apps/ui + + # Cache yarn dependencies using the determined directory path + - uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('apps/ui/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install dependencies + run: yarn install + working-directory: apps/ui + + - name: Build + env: + NODE_OPTIONS: "--max_old_space_size=4096" + run: yarn run build:domain + working-directory: apps/ui + + - name: Postbuild + run: yarn run postbuild + working-directory: apps/ui + + # - name: List dist contents + # run: ls -l apps/ui/dist + + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_HAPPY_DUNE_05CDA6210 }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurawtions - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "/apps/ui/dist" # App source code path + # api_location: "" # Api source code path - optional + # output_location: "dist" # Built app content directory - optional + skip_app_build: true + ###### End of Repository/Build Configurations ###### + + # buid_deploy_job_prod: + # needs: buid_deploy_job_dev + # environment: prod + # runs-on: ubuntu-latest + # name: Build and Deploy Job Prod + # steps: + # - uses: actions/checkout@v3 + # with: + # submodules: true + # lfs: false + + # - uses: actions/setup-node@v2 + # with: + # node-version: 18 + + # - name: Setup yarn + # run: npm install -g yarn + + # # Get yarn cache directory path + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: echo "::set-output name=dir::$(yarn cache dir)" + # working-directory: apps/ui + + # # Cache yarn dependencies using the determined directory path + # - uses: actions/cache@v2 + # with: + # path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + # key: ${{ runner.os }}-yarn-${{ hashFiles('apps/ui/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- + + # - name: Install dependencies + # run: yarn install + # working-directory: apps/ui + + # - name: Build + # env: + # NODE_OPTIONS: '--max_old_space_size=4096' + # run: yarn run build:prod + # working-directory: apps/ui + + # - name: Postbuild + # run: yarn run postbuild + # working-directory: apps/ui + + # # - name: List dist contents + # # run: ls -l apps/ui/dist + + # - name: Build And Deploy + # id: builddeploy + # uses: Azure/static-web-apps-deploy@v1 + # with: + # azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_THANKFUL_ISLAND_005734510 }} + # repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + # action: "upload" + # ###### Repository/Build Configurawtions - These values can be configured to match your app requirements. ###### + # # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + # app_location: "/apps/ui/dist" # App source code path + # # api_location: "" # Api source code path - optional + # # output_location: "dist" # Built app content directory - optional + # skip_app_build: true + # ###### End of Repository/Build Configurations ###### + + # # close_pull_request_job: + # # if: github.event_name == 'pull_request' && github.event.action == 'closed' + # # runs-on: ubuntu-latest + # # name: Close Pull Request Job + # # steps: + # # - name: Close Pull Request + # # id: closepullrequest + # # uses: Azure/static-web-apps-deploy@v1 + # # with: + # # azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_GROUND_069DB8E10 }} + # # action: "close" diff --git a/apps/ui/.env.callsbot b/apps/ui/.env.callsbot new file mode 100644 index 000000000..dcf17ea15 --- /dev/null +++ b/apps/ui/.env.callsbot @@ -0,0 +1,109 @@ +REACT_APP_ENV=callsbot +REACT_APP_SERVICES_URL=https://api-dev.l3vels.xyz +REACT_APP_ACCOUNT_SERVICES_URL=https://api-dev.l3vels.xyz +REACT_APP_PR_SERVICES_URL=https://api-pr-dev.l3agi.com +REACT_APP_PR_SERVICES_WS_URL=wss://api-pr-dev.l3agi.com + +REACT_APP_MAIN_API_DOCS=https://api-dev.l3vels.xyz/docs +REACT_APP_PR_API_DOCS=https://api-pr-dev.l3agi.com/docs + +REACT_APP_DOMAIN_NAME=https://dev.l3agi.com + +REACT_APP_SENTRY_DNS= +REACT_APP_SENTRY_WEBPACK_AUTH_TOKEN= + +REACT_APP_DISCORD_LINK=https://discord.gg/FcVZKcaRCV +REACT_APP_GITHUB_LINK=https://github.com/l3vels/L3AGI +REACT_APP_TWITTER_LINK=https://twitter.com/l3velshq +REACT_APP_YOUTUBE_LINK=https://www.youtube.com/@L3AGI + +REACT_APP_YOUTUBE_VIDEO_ID=R2hYNONKwKI +REACT_APP_YOUTUBE_VIDEO_DATA_SOURCE_ID=Fza4gHP_M3o + +REACT_APP_TERMS_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/terms.md +REACT_APP_PRIVACY=https://github.com/l3vels/L3AGI/blob/main/docs/privacy.md +REACT_APP_BASICS_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/basic.md +REACT_APP_AGENTS_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/agent.md +REACT_APP_API_KEYS_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/apiKeys.md +REACT_APP_DATASOURCES_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/datasource.md +REACT_APP_TOOLS_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/toolkit.md + +REACT_APP_PLAN_AND_EXECUTE_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/team.md#types-of-teams +REACT_APP_AUTHORITARIAN_SPEAKER_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/team.md#types-of-teams +REACT_APP_DEBATES_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/team.md#types-of-teams +REACT_APP_DECENTRALIZED_SPEAKER_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/team.md#types-of-teams + +REACT_APP_TEAM_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/team.md + +REACT_APP_INDEX_TYPES_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/index-types.md +REACT_APP_RESPONSE_MODES_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/response-modes.md +REACT_APP_VECTOR_STORES_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/vector-stores.md + +REACT_APP_TWILIO_PHONE_NUMBER_SID_LINK=https://github.com/l3vels/L3AGI/blob/main/docs/twilio-phone-number-sid.md + +REACT_APP_STATIC_URL=https://static.l3vels.xyz +REACT_APP_DATA_TEST_MODE=true +PORT=3000 + + +# General Configurations +REACT_APP_TITLE=CallsBot +# REACT_APP_FAVICON="/ss.png" +REACT_APP_CONTENT="Revolutionize your team's collaboration with our open-source framework, crafted to make AI agents work together as seamlessly as human collaboration. Empower your projects with unparalleled efficiency and coordination. Experience the future of teamwork, where artificial intelligence meets human ingenuity. Elevate your collaborative efforts with CallsBot – because when AI agents unite, extraordinary outcomes become the new norm." +# REACT_APP_LOGO="/ss.png" +REACT_APP_WELCOME_MESSAGE="Welcome to CallsBot" + +# Login Page Configurations +# REACT_APP_LOGIN_EMAIL_PASSWORD=true +# REACT_APP_LOGIN_GITHUB=false +# REACT_APP_LOGIN_POPUP=false +# REACT_APP_LOGIN_DISCOVERY=false +REACT_APP_LOGIN_PAGE={"email_password":true,"github":false,"popup":false,"discovery":false} + +# Naming Configurations +REACT_APP_HOME_NAMING="Home" +REACT_APP_AGENT_NAMING="Assistant" +REACT_APP_TEAM_NAMING="Team" +REACT_APP_DATASOURCE_NAMING="Knowledge" +REACT_APP_MODEL_NAMING="Model" +REACT_APP_DISCOVERY_NAMING="Discovery" +REACT_APP_CHAT_NAMING="Assistants" +REACT_APP_TOOLKIT_NAMING="Toolkit" +REACT_APP_SCHEDULES_NAMING="Schedules" +REACT_APP_INTEGRATION_NAMING="Integration" + +# CHAT MODULE OPERATIONS +# TEAM +REACT_APP_CHAT_TEAM_CREATE=true +REACT_APP_CHAT_TEAM_LIST=true +REACT_APP_CHAT_TEAM_EDIT=true +REACT_APP_CHAT_TEAM_DELETE=true +# AGENT +REACT_APP_CHAT_TEAM_CREATE=true +REACT_APP_CHAT_TEAM_LIST=true +REACT_APP_CHAT_TEAM_EDIT=true +REACT_APP_CHAT_TEAM_DELETE=true + +# MODEL MODULE OPERATIONS +# MODELS +REACT_APP_MODELS_CREATE=true +REACT_APP_MODELS_LIST=true +REACT_APP_MODELS_EDIT=true +REACT_APP_MODELS_DELETE=true +# FINE-TUNING +REACT_APP_FINE_TUNINGS_CREATE=true +REACT_APP_FINE_TUNINGS_LIST=true +REACT_APP_FINE_TUNINGS_EDIT=true +REACT_APP_FINE_TUNINGS_DELETE=true + +# REST MODELS +REACT_APP_TOOLKIT=true +REACT_APP_DATASOURCE=true +REACT_APP_DISCOVERY=false +REACT_APP_SESSION=true +REACT_APP_SCHEDULE=true +REACT_APP_INTEGRATION=true +REACT_APP_CONTACT=true +REACT_APP_GROUP=true +REACT_APP_EXTERNAL_LINKS=false + diff --git a/apps/ui/package.json b/apps/ui/package.json index 9d614686d..64544528e 100644 --- a/apps/ui/package.json +++ b/apps/ui/package.json @@ -86,10 +86,12 @@ "scripts": { "start:local": "NODE_ENV=local vite --open", "start:domain": "vite --mode domain --open", + "start:callsbot": "vite --mode callsbot --open", "start:dev": "vite --mode develop --open", "build": "NODE_OPTIONS=--max_old_space_size=8192 tsc && vite build", "build:dev": "NODE_OPTIONS=--max_old_space_size=8192 vite build --mode develop", "build:domain": "NODE_OPTIONS=--max_old_space_size=8192 vite build --mode domain", + "build:callsbot": "NODE_OPTIONS=--max_old_space_size=8192 vite build --mode callsbot", "build:staging": "NODE_OPTIONS=--max_old_space_size=8192 vite build --mode staging", "build:prod": "NODE_OPTIONS=--max_old_space_size=8192 vite build --mode production", "test": "vite test",