-
Notifications
You must be signed in to change notification settings - Fork 0
Doc #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Web4application
wants to merge
1,054
commits into
Web4application-patch-2
Choose a base branch
from
main
base: Web4application-patch-2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Doc #10
Changes from all commits
Commits
Show all changes
1054 commits
Select commit
Hold shift + click to select a range
942925c
Create gen-man.yml
Web4application 46a7317
Update tasks.py
Web4application b3a581a
Create github_client.py
Web4application e23b151
Create llm_client.py
Web4application 5617e0e
Create database.py
Web4application 86c1863
Update and rename backend/app.py to backend/app/main.py
Web4application d664096
Rename gen-man-publish.yml to .github/workflows/gen-man-publish.yml
Web4application 731b727
Update main.py
Web4application 3a6329a
Update index.html
Web4application 38fc465
Update main.py
Web4application af4c68d
Create ai_review.py
Web4application 34c6acf
Create submit
Web4application 140978a
Create run.sh
Web4application f1419ed
Delete .github/workflows/nextjs.yml
Web4application 747d55e
Create astro.yml
Web4application c2d9720
Rename index.html to static/index.html
Web4application a9e3b11
Update qr.py
Web4application f5712cd
Rename ai-code-review.yaml to .github/workflows/ai-code-review.yml
Web4application 6d5b3f3
Rename apply_patches.sh to scripts/apply_patches.sh
Web4application b39122f
Rename enclov_ai_backend.py to scripts/enclov_ai_backend.py
Web4application d5eece0
Rename generate_docs.py to scripts/generate_docs.py
Web4application db6af83
Delete app-hosting.tf
Web4application 7f0a797
Rename config.py to scripts/config.py
Web4application 5864257
Rename repo_analyzer.py to scripts/repo_analyzer.py
Web4application 96430cc
Rename submit_pr.py to api/submit_pr.py
Web4application d19f53e
Rename api-client.js to api/api-client.js
Web4application 50f8e88
Rename ai/review_diff.py to review_diff.py
Web4application e20954d
Rename generate_patchnotes.py to generate_patchnotes.py
Web4application 9ff9b7f
Create index.html
Web4application ad8e77c
Rename wd/Dockerfile to dockerfile
Web4application 3dc0c40
Update Dockerfile
Web4application d0595c6
Delete dockerfile
Web4application 483bb3d
Create scripts.js
Web4application 3932d2a
Update index.html
Web4application d2b9dfa
Update Makefile
Web4application 0afabc8
Create generate-and-commit-patch.yml
Web4application 7e872c9
Update index.html
Web4application e04581e
Create review
Web4application dde0308
Delete app/main.py
Web4application 15c6a1d
Update main.py
Web4application 08d759f
Rename main.jsx to app/main.jsx
Web4application 627a03f
Delete backend/app/main.py
Web4application 574814c
Create main.py
Web4application 0ec379c
Update Dockerfile
Web4application 3bf9b9b
Create SECURITY.md
Web4application ec13861
Create bash.sh
Web4application 292a5f1
Rename .github/workflows/ai-code-review.yml to workflows/ai-code-revi…
Web4application 19b410e
Rename .github/workflows/EnclovAI.prompt.yml to workflows/EnclovAI.pr…
Web4application c05916f
Rename .github/workflows/generate-and-commit-patch.yml to workflows/g…
Web4application e82f933
Rename .github/workflows/fortify.yml to workflows/fortify.yml
Web4application b755015
Rename .github/workflows/ai-provider-tests.yml to workflows/ai-provid…
Web4application e65a675
Rename Deploy.yaml to Deploy.yml
Web4application 79a4639
Rename .github/workflows/summary.yml to workflows/summary.yml
Web4application 0e7af3d
Rename .github/workflows/Deploy.yml to actions/Deploy.ym
Web4application b724194
Rename actions/Deploy.ym to Deploy.yaml
Web4application 9f7c701
Delete workflows/Deploy.yml
Web4application 612cfbe
Rename ci_cd_ai_analysis.yml to ci_cd_ai_analysis.yml
Web4application 7c04978
Rename ai-code-review.yml to ai-code-review.yml
Web4application ae66ada
Update Deploy.yaml
Web4application be491ac
Delete index.html
Web4application 5571c11
Delete .github/workflows/astro.yml
Web4application 342fcc4
Create ai_code_reviewer.yml
Web4application 3c76628
Update and rename ai-code-reviewer/action.yml to action.yml
Web4application 5fd6871
Rename actions/Deploy.yaml to .github/workflows/Deploy.yml
Web4application 1770f45
Rename Deploy.yaml to .github/script/Deploy.yml
Web4application 67de358
Rename gen-man.yml to .github/script/gen-man.yml
Web4application 3e09f30
Rename action.yml to .github/script/action.yml
Web4application b3cf05c
Rename actions/ai-code-review.yml to .github/workflows/ai-code-review…
Web4application f74b611
Rename actions/ci_cd_ai_analysis.yml to .github/workflows/ci_cd_ai_an…
Web4application 9000fbf
Rename action.yml to action.yml
Web4application a0e84c1
Rename ai-review.yml to ai-code-reviewer.yml
Web4application 247288a
Rename .github/workflows/gen-man-publish.yml to .github/gen-man-publi…
Web4application 935b5d3
Rename .github/workflows/action.yml to .github/action.yml
Web4application cf79edd
Rename .github/workflows/deploy-docs.yml to ai-code-reviewer/deploy-d…
Web4application 0370b69
Update Deploy.yml
Web4application ba14819
Update Deploy.yml
Web4application 7fb28d7
Rename .github/script/Deploy.yml to ai-code-reviewer/deploy.yml
Web4application 0536c3c
Rename .github/gen-man-publish.yml to .github/workflows/generate_man.py
Web4application 1101af7
Rename action.yml to ai-code-reviewer.yml
Web4application c23b909
Update .env
Web4application e3909fe
Rename main.py to app.py
Web4application 7078faa
Rename ai-code-reviewer/main.py to main.py
Web4application 630185c
Rename app.jsx to app/app.jsx
Web4application 4aa4edb
Rename createEnclovAppWithLLM.py to scripts/createEnclovAppWithLLM.py
Web4application 644dcb3
Rename analyze-code/main.py to analyze-code.py
Web4application dca0a9b
Rename .github/script/gen-man.yml to .github/generate-man.yml
Web4application 4666de9
Update Deploy.yml
Web4application 7ebdd35
Rename enclove-cli.py to scripts/enclove-cli.py
Web4application c85edf0
Update ci-cd.yml
Web4application 448d0dd
Rename workflows/ci-cd.yml to .github/workflows/ci-cd.yml
Web4application 54fbe27
Rename deploy-docs.yml to deploy-docs.yml
Web4application d400b53
Rename ai-code-reviewer/deploy.yml to .github/workflows/deploy.yml
Web4application 3763259
Update and rename .github/workflows/deploy.yml to .github/deploy.yml
Web4application 8fe82af
Rename .github/workflows/ci_cd_ai_analysis.yml to .github/ci_cd_ai_an…
Web4application 4a8dd20
Rename .github/workflows/docker-ci.yml to .github/docker-ci.yml
Web4application c48e35c
Update ci_cd_ai_analysis.yml
Web4application dad9eb7
Update deploy.yml
Web4application 306f3fe
Update and rename .github/docker-ci.yml to docker-ci.yaml
Web4application 64baa55
Rename docker-ci.yaml to .circle-ci/docker-ci.yml
Web4application fd34efa
Rename docker-ci.yml to docker-ci.yml
Web4application 3d9b6cb
Update ci_cd_ai_analysis.yml
Web4application 005056c
Rename .github/ci_cd_ai_analysis.yml to .github/workflows/ci_cd_ai_an…
Web4application 29f236d
Rename .github/workflows/Deploy.yml to docs/deploy.yml
Web4application a882345
Rename gen-man.yml to generate-man.yml
Web4application 2e03bec
Rename .github/workflows/generate_man.py to .github/generate_man.py
Web4application aa1d6c0
Rename .github/workflows/ai_code_reviewer.yml to ai_code_reviewer.yml
Web4application 393daa6
Update ai_code_reviewer.yml
Web4application ee05c10
Update and rename .github/deploy-docs.yml to .github/workflows/deploy…
Web4application d8d2bf5
Update and rename .github/deploy.yml to .github/Workflows/deploy.yml
Web4application c3762e0
Update ci-cd.yml
Web4application 7a31726
Create fastapi-ai-pr-reviewer
Web4application b6a72fd
Rename ai-code-reviewer/ai-code-reviewer.yml to .github/workflows/ai-…
Web4application 9c0ba9f
Rename deploy.yml to deploy.yml
Web4application d558f1e
Rename .github/workflows/ai-code-reviewer.yml to actions/ai-code-revi…
Web4application 12f967b
Rename .github/workflows/deploy-docs.yml to actions/deploy-docs.yml
Web4application 045f1d9
Rename docker-ci.yml to docker-ci.yml
Web4application 1e27d82
Rename .github/workflows/ai-code-review.yml to .github/ai-code-review…
Web4application 2107abd
Rename .github/workflows/ci-cd.yml to actions/ci-cd.yml
Web4application b109802
Rename .github/workflows/deploy.yml to actions/deploy.yml
Web4application 7a4ddfb
Rename .github/workflows/ci_cd_ai_analysis.yml to actions/ci_cd_ai_an…
Web4application 1666630
Rename generate-man.yml to generate-man.yml
Web4application 899e77a
Rename generate_man.py to generate_man_pages.py
Web4application 1a27952
Rename .github/ai-code-reviewer.yml to .github/workflows/ai-code-revi…
Web4application 8adeca4
Rename scripts/enclove-cli.py to enclove-cli.py
Web4application 0de824f
Rename scripts/config.py to config.py
Web4application 6062e3f
Rename repo_analyzer.py to repo_analyzer.py
Web4application da14542
Rename generate_docs.py to generate_docs.py
Web4application 5390d7c
Rename scripts/data_pipeline.py to data_pipeline.py
Web4application 7df1428
Rename enclov_ai_backend.py to enclov_ai_backend.py
Web4application 9761e53
Rename generate_toc.py to generate_toc.py
Web4application ab9d186
Rename scripts/createEnclovAppWithLLM.py to scripts/Docs/createEnclov…
Web4application 86dedf5
Rename gen_man_pages.py to generates_man_pages.py
Web4application 8c7ae23
Rename scripts/github_model_client.py to github_model_client.py
Web4application 04e80dd
Rename scripts/ai_code_review.py to ai_code_review.py
Web4application f37b835
Rename task_extractor.py to task_extractor.py
Web4application 227808c
Rename scripts/apply_patches.sh to apply_patches.sh
Web4application e7d0b1a
Rename scripts/auto_release.sh to auto_release.sh
Web4application 5d2e6ec
Delete scripts/D
Web4application 9cc2140
Rename scripts/Docs/createEnclovAppWithLLM.py to Docs/createEnclovApp…
Web4application b312eda
Create docker-image.yml
Web4application 26563a9
Create jekyll-docker.yml
Web4application 9c4e35c
Rename generates_man_pages.py to generates_man_pages.py
Web4application a563221
Rename generate-man.yml to generate-man-pages.yml
Web4application b0c6ff2
Rename .github/workflows/ai-code-reviewer.yml to .github/ai-code-revi…
Web4application 5705025
Delete .github/workflows/generate-man-pages.yml
Web4application cc11e7d
Rename .github/ai-code-reviewer.yml to .github/workflows/ai-code-revi…
Web4application 1c1024e
Update ai-code-review.yml
Web4application 8fdd4b7
Update ai-code-reviewer.yml
Web4application 73cca5e
Create docker-publish.yml
Web4application a857a86
Rename .github/workflows/ai-code-review.yml to .github/ai-code-review…
Web4application 9eb5d8d
Rename main.py to ai-code-reviewer/main.py
Web4application 8500dfa
Rename app/main.py to backend/app/main.py
Web4application 3846d41
Create devcontainer.json
Web4application 2b56c3b
Create Dockerfile
Web4application c45f238
Update requirements.txt
Web4application 55e017a
Add files via upload
Web4application 4468c46
Update README.md
Web4application 8992ab3
Create Deploy.sh
Web4application 48a5d8e
Update and rename bash.sh to actions/Deploy.sh
Web4application eedb2a9
Update .env
Web4application 0b33e01
Update README.md
Web4application d1f9971
Update Deploy.sh
Web4application 9282184
Update Makefile
Web4application 4aba3fe
Update README.md
Web4application 8177a0a
Update Makefile
Web4application 0774aa4
Update Makefile
Web4application fb70652
Create status.sh
Web4application b4f7e45
Create cleanup.sh
Web4application d00f550
Update Makefile
Web4application 4bf7b84
Update Makefile
Web4application 6ade98f
Create docker-compose up
Web4application 161c453
Update ai-code-review.yml
Web4application 2c31dde
Rename ai_code_reviewer.yml to .github/workflows/ai_code_reviewer.yml
Web4application dcc6fc7
Update and rename main.jsx to main.js
Web4application eea81d3
Create main.py
Web4application 1277fe0
Delete backend/llm/__init__.py
Web4application 43b1eb2
Delete backend/llm/Dd
Web4application 7a1cca9
Update and rename nginx.conf to Nginx/nginx.conf
Web4application 6d85c04
Update nginx.conf
Web4application 47ea531
Update README.md
Web4application dfe45bf
Update README.md
Web4application f971135
Update README.md
Web4application 3474bed
Update and rename README.md to README.md.rst
Web4application 8ea0b32
Rename README.md.rst to README.rs.md
Web4application f98d457
Update and rename README.rs.md to Main.rs
Web4application 4a2fb18
Create README.md
Web4application 5d86e6e
Update and rename Docs/generate_docs.py to README.md
Web4application 00fad2d
Rename docs/index.html to index.html
Web4application a9a9738
Update and rename Docs/createEnclovAppWithLLM.py to envlov.ai/src/cre…
Web4application ace45e7
Update and rename index.rs to Index.rst
Web4application 698d1ce
Update README.md
Web4application b414447
Update README.md
Web4application c464a3f
Update and rename Docs/createEnclovAppWithLLM/src/Index.rst to Docs/c…
Web4application 854e0c0
Update and rename README.md to index.py
Web4application 7d347b3
Rename index.html to Cli/index.html
Web4application 36af707
Update and rename register_webhook.py to src/Page/register-webhook/in…
Web4application 93e5e69
Update and rename src/Page/register-webhook/index.rs to _site/registe…
Web4application 392ca69
Update and rename _site/register-webhook/index.md to app/src/register…
Web4application c58f2f1
Merge pull request #19 from Web4application/Web4application-patch-8
Web4application 9d22a8b
Create websql.js
Web4application 6ca1b65
Create localstorage.js
Web4application 4f1a536
Create indexeddb.js
Web4application 3b6249d
Update scripts.js
Web4application 1e31c56
Create __init_file__est.min.js
Web4application 686bf43
Update and rename Main.rs to docs/Index.html
Web4application d1233d7
Rename index.html to index.html
Web4application 6cad322
Create index.min.js
Web4application bc5a773
Update index.html
Web4application bfb2560
Update and rename index.py to indexeddb
Web4application 79c129a
Update and rename indexeddb to script.js
Web4application 30aba01
Update and rename script.js to core/indexeddb/script.min.js
Web4application 9f13deb
Create drivers
Web4application 8b1e041
Create index.html
Web4application fbd0719
Rename Index.html to Index.html
Web4application 2736b7d
Rename analyze-code.py to Docs/analyze-code.py
Web4application ad9bab1
Rename actions/docker-ci.yml to .github/workflows/docker-ci.yml
Web4application 82c6119
Rename github_model_client.py to AI/chat/github_model_client.py
Web4application 62f4e24
Update index.html
Web4application f1a9961
Rename github_model_client.py to github_model_client.js
Web4application 0012607
Update and rename github_model_client.js to github_model_client.py
Web4application 67b272e
Rename AI/scripts/github_model_client.py to Cli/main.js
Web4application aa34220
Create main.js
Web4application 7e18b4d
Update and rename .env to .env.local
Web4application 485c0c4
Update .gitignore
Web4application a39e885
Create .bashmainrpc
Web4application e560629
Update and rename .bash_main to .bashrpc
Web4application ee0f85c
Update .bashmainrpc
Web4application 4d4a3a9
Rename .github/ai-code-review.yml to .github/workflows/ai-code-review…
Web4application 2f43c83
Rename .github/workflows/ai_code_reviewer.yml to actions/ai_code_revi…
Web4application 8db1806
Update and rename .env.local to .env
Web4application 627c5ba
Update ai-code-review.yml
Web4application ffc9ced
Update ci_cd_ai_analysis.yml
Web4application 8f1b379
Rename actions/ci_cd_ai_analysis.yml to .github/workflows/_cd_ai_anal…
Web4application 9b335d1
Update _cd_ai_analysis.yml
Web4application 750702a
Update ai-code-review.yml
Web4application 8166650
Update App.jsx
Web4application 5667e75
Create enclov-ai-launch.md
Web4application 274cc86
Create README.md
Web4application a32ec9b
Create enclov-ai-cinematic-launch.html
Web4application 51552d6
Create Blog.html
Web4application 1e780f6
Update index.html
Web4application 8fb1f6c
Create about.html
Web4application d675f56
Create nextjs.yml
Web4application f529568
Rename EnclovAI.prompt.yml to EnclovAI.prompt.yaml
Web4application c18cde3
Update enclov-ai-full-pipeline.yml
Web4application 229c117
Update and rename enclov-ai-full-pipeline.yml to enclov-ai-full-pipel…
Web4application 0a8ecfb
Update model_config.py
Web4application 0d37a25
Update .env
Web4application 9f73759
Create CNAME
Web4application 1c60f2b
Update CNAME
Web4application File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| #!/usr/bin/env bash | ||
| MODEL_FILE="model.json" | ||
| RPC_LOG="/tmp/bashrpc.log" | ||
|
|
||
| # Load JSON model | ||
| model=$(jq '.' "$MODEL_FILE") | ||
|
|
||
| # Dynamically handle calls | ||
| handle_rpc() { | ||
| local service="$1" | ||
| local method="$2" | ||
| local data="$3" | ||
|
|
||
| # Check if service/method exist in model | ||
| if ! jq -e ".services.\"$service\".methods.\"$method\"" <<< "$model" >/dev/null; then | ||
| echo "{\"error\":\"Unknown method $service.$method\"}" | ||
| return | ||
| fi | ||
|
|
||
| # Execute service | ||
| case "$service.$method" in | ||
| ai.ask) | ||
| curl -s https://api.openai.com/v1/chat/completions \ | ||
| -H "Authorization: Bearer $GPT_API_KEY" \ | ||
| -H "Content-Type: application/json" \ | ||
| -d "{ | ||
| \"model\": \"$(jq -r ".services.ai.model" <<< "$model")\", | ||
| \"messages\": [{\"role\":\"user\",\"content\":\"$data\"}] | ||
| }" | jq -r '.choices[0].message.content' | ||
| ;; | ||
| sys.info) | ||
| echo "{\"hostname\":\"$(hostname)\",\"uptime\":\"$(uptime -p)\"}" | ||
| ;; | ||
| *) | ||
| echo "{\"error\":\"Service not implemented yet\"}" | ||
| ;; | ||
| esac | ||
| } | ||
|
|
||
| # Example local call | ||
| # ./bashmainrpc ai ask "Explain MDSE" | ||
| handle_rpc "$1" "$2" "$3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| docker build --build-arg CONFIGCAT_AUTH_KEY=yourkeyhere --build-arg JOB_ID=1234 -t myreactapp . | ||
| docker run -p 3000:3000 -e JOB_ID=1234 myreactapp | ||
| redis-server | ||
| uvicorn enclov_ai_backend:app --reload | ||
| celery -A enclov_ai_backend.celery_app worker --loglevel=info | ||
| pip install fastapi uvicorn celery redis pydantic mlflow optuna shap | ||
| pip install -r requirements.txt | ||
| base64 -w 0 kubeconfig.yaml | ||
| docker run --net=host -it -e NGROK_AUTHTOKEN=2y96VwzmhS1YV6vgll2Ua411oGc_755Qcpps22pznftiuGZWr ngrok/ngrok:latest http --url=above-feasible-lobster.ngrok-free.app 80 | ||
| docker run --net=host -it -e NGROK_AUTHTOKEN=2y96VwzmhS1YV6vgll2Ua411oGc_755Qcpps22pznftiuGZWr ngrok/ngrok:latest http 80 | ||
| docker pull ngrok/ngrok | ||
| ngrok config add-authtoken 2y96VwzmhS1YV6vgll2Ua411oGc_755Qcpps22pznftiuGZWr | ||
| npm install -r requirements.txt | ||
| cd enclov-AI | ||
| mkdir frontend | ||
| cd frontend | ||
| npx create-next-app@latest . | ||
|
|
||
| cat << 'EOF' | git apply | ||
| diff --git a/.github/workflows/gen-man.yml b/.github/workflows/gen-man.yml | ||
| --- a/.github/workflows/gen-man.yml | ||
| +++ b/.github/workflows/gen-man.yml | ||
| @@ -2,2 +2,5 @@ | ||
|
|
||
| +permissions: | ||
| + contents: read | ||
| + | ||
| on: | ||
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| version: 2.1 | ||
|
|
||
| orbs: | ||
| docker: circleci/docker@2.1.1 | ||
|
|
||
| jobs: | ||
| build_and_push: | ||
| docker: | ||
| - image: cimg/python:3.11 | ||
| steps: | ||
| - checkout | ||
|
|
||
| - setup_remote_docker: | ||
| docker_layer_caching: true | ||
|
|
||
| - run: | ||
| name: Install dependencies | ||
| command: pip install -r requirements.txt | ||
|
|
||
| - docker/build: | ||
| image: web4application.github.io/enclov-AI | ||
| tag: latest | ||
| path: . | ||
| extra_build_args: --compress | ||
|
|
||
| - docker/push: | ||
| image: web4application.github.io/enclov-AI | ||
| tag: latest | ||
|
|
||
| workflows: | ||
| build_and_push_workflow: | ||
| jobs: | ||
| - build_and_push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| FROM mcr.microsoft.com/devcontainers/python:3.11 | ||
|
|
||
| # Install Node.js and npm | ||
| RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ | ||
| && apt-get install -y nodejs | ||
|
|
||
| # Install global tools if needed (optional) | ||
| RUN npm install -g serve | ||
|
|
||
| # Set up Python packages early to cache them in Docker layer | ||
| COPY requirements.txt /tmp/requirements.txt | ||
| RUN pip install --upgrade pip && pip install -r /tmp/requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "name": "Enclov-AI Dev Container", | ||
| "dockerFile": "Dockerfile", | ||
|
|
||
| "settings": { | ||
| "terminal.integrated.shell.linux": "/bin/bash", | ||
| "python.pythonPath": "/usr/local/bin/python", | ||
| "editor.formatOnSave": true | ||
| }, | ||
|
|
||
| "extensions": [ | ||
| "ms-python.python", | ||
| "ms-toolsai.jupyter", | ||
| "esbenp.prettier-vscode", | ||
| "dbaeumer.vscode-eslint", | ||
| "formulahendry.auto-close-tag", | ||
| "formulahendry.auto-rename-tag" | ||
| ], | ||
|
|
||
| "forwardPorts": [3000, 8000, 8501], // React / FastAPI / Streamlit or similar | ||
|
|
||
| "postCreateCommand": "pip install -r requirements.txt && npm install", | ||
|
|
||
| "remoteUser": "vscode" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Python cache files | ||
| __pycache__/ | ||
| *.pyc | ||
| *.pyo | ||
| *.pyd | ||
|
|
||
| # Virtual environments | ||
| env/ | ||
| venv/ | ||
|
|
||
| # Git files (don’t send your git repo to Docker build context) | ||
| .git | ||
| .gitignore | ||
|
|
||
| # Dockerfile itself (optional, but usually you want to exclude it from context) | ||
| Dockerfile | ||
|
|
||
| # Markdown docs (usually not needed inside container) | ||
| *.md | ||
|
|
||
| # Test folders/files (not needed in production image) | ||
| tests/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| GITHUB_WEBHOOK_SECRET=84298ed9f2470f159b48e36e76eb90eeac061941 | ||
| GITHUB_APP_ID=1325944 | ||
| GITHUB_PRIVATE_KEY_PATH=./keys/private-key.pem | ||
| google_API_KEY=AIzaSyAvrxOyAVzPVcnzxuD0mjKVDyS2bNWfC10 | ||
| GOOGLE_API_KEY=AlzaSyCHjfdo3w160Dd5yTVJD409pWmigOJEg | ||
| GITHUB_REPOSITORY=web4application/enclove-ai | ||
| PR_NUMBER=123 | ||
| GEMINI_API_KEY=<AlzaSyCHjfdo3w160Dd5yTVJD409pWmigOJEg> | ||
| OPENAI_Api_KEY=gG1uZhj50x1lYFKrrB5kT3BlbkFJXP3R63ExWT9lkcHI0pRq | ||
| GITHUB_TOKEN=ghp_5ea33wQ9MnPEuszphuVv5X5jjiYRWT3uXtQ | ||
| GITHUB_TOKEN=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 | ||
| SENDGRID_API_KEY=your_sendgrid_api_key | ||
| EMAIL_TO=kubulee@gmail.com | ||
| WEBHOOK_PROXY_URL=https://smee.io/pMGkyDT3VfoxjdTK |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Deploy enclov-AI to Kubernetes | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| missions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| build_and_deploy: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v4 | ||
|
|
||
| - name: Log in to Docker Hub | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ enclovai }} | ||
| password: ${{ 84298ed9f2470f159b48e36e76eb90eeac061941 }} | ||
|
|
||
| - name: Build and push Docker image | ||
| uses: docker/build-push-action@v4 | ||
| with: | ||
| push: true | ||
| tags: ${{ web4application.github.io/enclov-ai:latest}} | ||
|
|
||
| - name: Set up kubectl | ||
| uses: azure/setup-kubectl@v3 | ||
| with: | ||
| version: 'latest' | ||
|
|
||
| - name: Deploy to Kubernetes | ||
| run: kubectl apply -f k8s/ | ||
| env: | ||
| KUBECONFIG: ${{ secrets.KUBECONFIG }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: AI Code Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| permission: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| ai_review: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Run AI Code Reviewer | ||
| uses: ./ai-code-reviewer | ||
| with: | ||
| _sk-svcacct-har5GKODfk8-tj201s33ZljryjcWD4W7-6H2Ub5yEBSvP8axegYfd69_j3WKhLwYwkQW0VRv0OT3BlbkFJBbshA3_NYfZSR6l77qSgPrj9Crgtr8KZPPoFJrZPTlUSYu1FfM-rKu70ETKAMctd9eu0G8RJgA", | ||
| GITHUB_TOKEN=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 | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Docker CI for enclov-AI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| jobs: | ||
| build-and-push: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Docker login | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ secrets.enclov-AI }} | ||
| password: ${{ secrets.84298ed9f2470f159b48e36e76eb90eeac061941 }} | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
|
|
||
| - name: Cache Docker layers | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: /tmp/.buildx-cache | ||
| key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-buildx- | ||
|
|
||
| - name: Build and push Docker image | ||
| uses: docker/build-push-action@v4 | ||
| with: | ||
| context: ./wd | ||
| file: ./wd/Dockerfile | ||
| push: true | ||
| tags: my-registry/my-image:latest | ||
| cache-from: type=local,src=/tmp/.buildx-cache | ||
| cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
|
||
| - name: Move cache for next build | ||
| run: | | ||
| rm -rf /tmp/.buildx-cache | ||
| mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 3 months ago
To fix the problem, add a properly structured
permissionsblock in the workflow configuration. You should place apermissions:section at the root of.github/workflows/ai-code-review.yml, assigning the minimal required permissions for this workflow. Based on normal requirements for code review workflows, the least privilege needed is likelycontents: readand possiblypull-requests: write. You must remove misplaced permission lines under theon:block and insert the permissions before thejobs:block.Specifically:
permission:,contents: read,pull-requests: write) underon:.permissions:section beforejobs:, with appropriate values:No additional imports or code changes are needed—just the correct YAML.