Skip to content
Open

Doc #10

Show file tree
Hide file tree
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 Jun 7, 2025
46a7317
Update tasks.py
Web4application Jun 7, 2025
b3a581a
Create github_client.py
Web4application Jun 7, 2025
e23b151
Create llm_client.py
Web4application Jun 7, 2025
5617e0e
Create database.py
Web4application Jun 7, 2025
86c1863
Update and rename backend/app.py to backend/app/main.py
Web4application Jun 7, 2025
d664096
Rename gen-man-publish.yml to .github/workflows/gen-man-publish.yml
Web4application Jun 7, 2025
731b727
Update main.py
Web4application Jun 7, 2025
3a6329a
Update index.html
Web4application Jun 7, 2025
38fc465
Update main.py
Web4application Jun 7, 2025
af4c68d
Create ai_review.py
Web4application Jun 7, 2025
34c6acf
Create submit
Web4application Jun 7, 2025
140978a
Create run.sh
Web4application Jun 7, 2025
f1419ed
Delete .github/workflows/nextjs.yml
Web4application Jun 7, 2025
747d55e
Create astro.yml
Web4application Jun 7, 2025
c2d9720
Rename index.html to static/index.html
Web4application Jun 7, 2025
a9e3b11
Update qr.py
Web4application Jun 7, 2025
f5712cd
Rename ai-code-review.yaml to .github/workflows/ai-code-review.yml
Web4application Jun 7, 2025
6d5b3f3
Rename apply_patches.sh to scripts/apply_patches.sh
Web4application Jun 7, 2025
b39122f
Rename enclov_ai_backend.py to scripts/enclov_ai_backend.py
Web4application Jun 7, 2025
d5eece0
Rename generate_docs.py to scripts/generate_docs.py
Web4application Jun 7, 2025
db6af83
Delete app-hosting.tf
Web4application Jun 7, 2025
7f0a797
Rename config.py to scripts/config.py
Web4application Jun 7, 2025
5864257
Rename repo_analyzer.py to scripts/repo_analyzer.py
Web4application Jun 7, 2025
96430cc
Rename submit_pr.py to api/submit_pr.py
Web4application Jun 7, 2025
d19f53e
Rename api-client.js to api/api-client.js
Web4application Jun 7, 2025
50f8e88
Rename ai/review_diff.py to review_diff.py
Web4application Jun 7, 2025
e20954d
Rename generate_patchnotes.py to generate_patchnotes.py
Web4application Jun 7, 2025
9ff9b7f
Create index.html
Web4application Jun 7, 2025
ad8e77c
Rename wd/Dockerfile to dockerfile
Web4application Jun 7, 2025
3dc0c40
Update Dockerfile
Web4application Jun 7, 2025
d0595c6
Delete dockerfile
Web4application Jun 7, 2025
483bb3d
Create scripts.js
Web4application Jun 7, 2025
3932d2a
Update index.html
Web4application Jun 7, 2025
d2b9dfa
Update Makefile
Web4application Jun 7, 2025
0afabc8
Create generate-and-commit-patch.yml
Web4application Jun 7, 2025
7e872c9
Update index.html
Web4application Jun 7, 2025
e04581e
Create review
Web4application Jun 7, 2025
dde0308
Delete app/main.py
Web4application Jun 7, 2025
15c6a1d
Update main.py
Web4application Jun 7, 2025
08d759f
Rename main.jsx to app/main.jsx
Web4application Jun 7, 2025
627a03f
Delete backend/app/main.py
Web4application Jun 7, 2025
574814c
Create main.py
Web4application Jun 7, 2025
0ec379c
Update Dockerfile
Web4application Jun 7, 2025
3bf9b9b
Create SECURITY.md
Web4application Jun 14, 2025
ec13861
Create bash.sh
Web4application Jun 14, 2025
292a5f1
Rename .github/workflows/ai-code-review.yml to workflows/ai-code-revi…
Web4application Jun 14, 2025
19b410e
Rename .github/workflows/EnclovAI.prompt.yml to workflows/EnclovAI.pr…
Web4application Jun 14, 2025
c05916f
Rename .github/workflows/generate-and-commit-patch.yml to workflows/g…
Web4application Jun 14, 2025
e82f933
Rename .github/workflows/fortify.yml to workflows/fortify.yml
Web4application Jun 14, 2025
b755015
Rename .github/workflows/ai-provider-tests.yml to workflows/ai-provid…
Web4application Jun 14, 2025
e65a675
Rename Deploy.yaml to Deploy.yml
Web4application Jun 14, 2025
79a4639
Rename .github/workflows/summary.yml to workflows/summary.yml
Web4application Jun 14, 2025
0e7af3d
Rename .github/workflows/Deploy.yml to actions/Deploy.ym
Web4application Jun 14, 2025
b724194
Rename actions/Deploy.ym to Deploy.yaml
Web4application Jun 14, 2025
9f7c701
Delete workflows/Deploy.yml
Web4application Jun 14, 2025
612cfbe
Rename ci_cd_ai_analysis.yml to ci_cd_ai_analysis.yml
Web4application Jun 14, 2025
7c04978
Rename ai-code-review.yml to ai-code-review.yml
Web4application Jun 14, 2025
ae66ada
Update Deploy.yaml
Web4application Jun 14, 2025
be491ac
Delete index.html
Web4application Jun 20, 2025
5571c11
Delete .github/workflows/astro.yml
Web4application Jun 20, 2025
342fcc4
Create ai_code_reviewer.yml
Web4application Jun 20, 2025
3c76628
Update and rename ai-code-reviewer/action.yml to action.yml
Web4application Jun 20, 2025
5fd6871
Rename actions/Deploy.yaml to .github/workflows/Deploy.yml
Web4application Jun 20, 2025
1770f45
Rename Deploy.yaml to .github/script/Deploy.yml
Web4application Jun 20, 2025
67de358
Rename gen-man.yml to .github/script/gen-man.yml
Web4application Jun 20, 2025
3e09f30
Rename action.yml to .github/script/action.yml
Web4application Jun 20, 2025
b3cf05c
Rename actions/ai-code-review.yml to .github/workflows/ai-code-review…
Web4application Jun 20, 2025
f74b611
Rename actions/ci_cd_ai_analysis.yml to .github/workflows/ci_cd_ai_an…
Web4application Jun 20, 2025
9000fbf
Rename action.yml to action.yml
Web4application Jun 20, 2025
a0e84c1
Rename ai-review.yml to ai-code-reviewer.yml
Web4application Jun 20, 2025
247288a
Rename .github/workflows/gen-man-publish.yml to .github/gen-man-publi…
Web4application Jun 20, 2025
935b5d3
Rename .github/workflows/action.yml to .github/action.yml
Web4application Jun 20, 2025
cf79edd
Rename .github/workflows/deploy-docs.yml to ai-code-reviewer/deploy-d…
Web4application Jun 20, 2025
0370b69
Update Deploy.yml
Web4application Jun 20, 2025
ba14819
Update Deploy.yml
Web4application Jun 20, 2025
7fb28d7
Rename .github/script/Deploy.yml to ai-code-reviewer/deploy.yml
Web4application Jun 20, 2025
0536c3c
Rename .github/gen-man-publish.yml to .github/workflows/generate_man.py
Web4application Jun 20, 2025
1101af7
Rename action.yml to ai-code-reviewer.yml
Web4application Jun 20, 2025
c23b909
Update .env
Web4application Jun 20, 2025
e3909fe
Rename main.py to app.py
Web4application Jun 20, 2025
7078faa
Rename ai-code-reviewer/main.py to main.py
Web4application Jun 20, 2025
630185c
Rename app.jsx to app/app.jsx
Web4application Jun 20, 2025
4aa4edb
Rename createEnclovAppWithLLM.py to scripts/createEnclovAppWithLLM.py
Web4application Jun 20, 2025
644dcb3
Rename analyze-code/main.py to analyze-code.py
Web4application Jun 20, 2025
dca0a9b
Rename .github/script/gen-man.yml to .github/generate-man.yml
Web4application Jun 20, 2025
4666de9
Update Deploy.yml
Web4application Jun 20, 2025
7ebdd35
Rename enclove-cli.py to scripts/enclove-cli.py
Web4application Jun 20, 2025
c85edf0
Update ci-cd.yml
Web4application Jun 20, 2025
448d0dd
Rename workflows/ci-cd.yml to .github/workflows/ci-cd.yml
Web4application Jun 20, 2025
54fbe27
Rename deploy-docs.yml to deploy-docs.yml
Web4application Jun 20, 2025
d400b53
Rename ai-code-reviewer/deploy.yml to .github/workflows/deploy.yml
Web4application Jun 20, 2025
3763259
Update and rename .github/workflows/deploy.yml to .github/deploy.yml
Web4application Jun 20, 2025
8fe82af
Rename .github/workflows/ci_cd_ai_analysis.yml to .github/ci_cd_ai_an…
Web4application Jun 20, 2025
4a8dd20
Rename .github/workflows/docker-ci.yml to .github/docker-ci.yml
Web4application Jun 20, 2025
c48e35c
Update ci_cd_ai_analysis.yml
Web4application Jun 20, 2025
dad9eb7
Update deploy.yml
Web4application Jun 20, 2025
306f3fe
Update and rename .github/docker-ci.yml to docker-ci.yaml
Web4application Jun 20, 2025
64baa55
Rename docker-ci.yaml to .circle-ci/docker-ci.yml
Web4application Jun 20, 2025
fd34efa
Rename docker-ci.yml to docker-ci.yml
Web4application Jun 20, 2025
3d9b6cb
Update ci_cd_ai_analysis.yml
Web4application Jun 20, 2025
005056c
Rename .github/ci_cd_ai_analysis.yml to .github/workflows/ci_cd_ai_an…
Web4application Jun 20, 2025
29f236d
Rename .github/workflows/Deploy.yml to docs/deploy.yml
Web4application Jun 20, 2025
a882345
Rename gen-man.yml to generate-man.yml
Web4application Jun 20, 2025
2e03bec
Rename .github/workflows/generate_man.py to .github/generate_man.py
Web4application Jun 20, 2025
aa1d6c0
Rename .github/workflows/ai_code_reviewer.yml to ai_code_reviewer.yml
Web4application Jun 20, 2025
393daa6
Update ai_code_reviewer.yml
Web4application Jun 20, 2025
ee05c10
Update and rename .github/deploy-docs.yml to .github/workflows/deploy…
Web4application Jun 20, 2025
d8d2bf5
Update and rename .github/deploy.yml to .github/Workflows/deploy.yml
Web4application Jun 20, 2025
c3762e0
Update ci-cd.yml
Web4application Jun 20, 2025
7a31726
Create fastapi-ai-pr-reviewer
Web4application Jun 20, 2025
b6a72fd
Rename ai-code-reviewer/ai-code-reviewer.yml to .github/workflows/ai-…
Web4application Jun 20, 2025
9c0ba9f
Rename deploy.yml to deploy.yml
Web4application Jun 20, 2025
d558f1e
Rename .github/workflows/ai-code-reviewer.yml to actions/ai-code-revi…
Web4application Jun 20, 2025
12f967b
Rename .github/workflows/deploy-docs.yml to actions/deploy-docs.yml
Web4application Jun 20, 2025
045f1d9
Rename docker-ci.yml to docker-ci.yml
Web4application Jun 20, 2025
1e27d82
Rename .github/workflows/ai-code-review.yml to .github/ai-code-review…
Web4application Jun 20, 2025
2107abd
Rename .github/workflows/ci-cd.yml to actions/ci-cd.yml
Web4application Jun 20, 2025
b109802
Rename .github/workflows/deploy.yml to actions/deploy.yml
Web4application Jun 20, 2025
7a4ddfb
Rename .github/workflows/ci_cd_ai_analysis.yml to actions/ci_cd_ai_an…
Web4application Jun 20, 2025
1666630
Rename generate-man.yml to generate-man.yml
Web4application Jun 20, 2025
899e77a
Rename generate_man.py to generate_man_pages.py
Web4application Jun 20, 2025
1a27952
Rename .github/ai-code-reviewer.yml to .github/workflows/ai-code-revi…
Web4application Jun 20, 2025
8adeca4
Rename scripts/enclove-cli.py to enclove-cli.py
Web4application Jun 20, 2025
0de824f
Rename scripts/config.py to config.py
Web4application Jun 20, 2025
6062e3f
Rename repo_analyzer.py to repo_analyzer.py
Web4application Jun 20, 2025
da14542
Rename generate_docs.py to generate_docs.py
Web4application Jun 20, 2025
5390d7c
Rename scripts/data_pipeline.py to data_pipeline.py
Web4application Jun 20, 2025
7df1428
Rename enclov_ai_backend.py to enclov_ai_backend.py
Web4application Jun 20, 2025
9761e53
Rename generate_toc.py to generate_toc.py
Web4application Jun 20, 2025
ab9d186
Rename scripts/createEnclovAppWithLLM.py to scripts/Docs/createEnclov…
Web4application Jun 20, 2025
86dedf5
Rename gen_man_pages.py to generates_man_pages.py
Web4application Jun 20, 2025
8c7ae23
Rename scripts/github_model_client.py to github_model_client.py
Web4application Jun 20, 2025
04e80dd
Rename scripts/ai_code_review.py to ai_code_review.py
Web4application Jun 20, 2025
f37b835
Rename task_extractor.py to task_extractor.py
Web4application Jun 20, 2025
227808c
Rename scripts/apply_patches.sh to apply_patches.sh
Web4application Jun 20, 2025
e7d0b1a
Rename scripts/auto_release.sh to auto_release.sh
Web4application Jun 20, 2025
5d2e6ec
Delete scripts/D
Web4application Jun 20, 2025
9cc2140
Rename scripts/Docs/createEnclovAppWithLLM.py to Docs/createEnclovApp…
Web4application Jun 20, 2025
b312eda
Create docker-image.yml
Web4application Jun 20, 2025
26563a9
Create jekyll-docker.yml
Web4application Jun 20, 2025
9c4e35c
Rename generates_man_pages.py to generates_man_pages.py
Web4application Jun 20, 2025
a563221
Rename generate-man.yml to generate-man-pages.yml
Web4application Jun 20, 2025
b0c6ff2
Rename .github/workflows/ai-code-reviewer.yml to .github/ai-code-revi…
Web4application Jun 20, 2025
5705025
Delete .github/workflows/generate-man-pages.yml
Web4application Jun 20, 2025
cc11e7d
Rename .github/ai-code-reviewer.yml to .github/workflows/ai-code-revi…
Web4application Jun 20, 2025
1c1024e
Update ai-code-review.yml
Web4application Jun 20, 2025
8fdd4b7
Update ai-code-reviewer.yml
Web4application Jun 20, 2025
73cca5e
Create docker-publish.yml
Web4application Jun 20, 2025
a857a86
Rename .github/workflows/ai-code-review.yml to .github/ai-code-review…
Web4application Jun 20, 2025
9eb5d8d
Rename main.py to ai-code-reviewer/main.py
Web4application Jun 20, 2025
8500dfa
Rename app/main.py to backend/app/main.py
Web4application Jun 20, 2025
3846d41
Create devcontainer.json
Web4application Jun 20, 2025
2b56c3b
Create Dockerfile
Web4application Jun 20, 2025
c45f238
Update requirements.txt
Web4application Jun 20, 2025
55e017a
Add files via upload
Web4application Jun 20, 2025
4468c46
Update README.md
Web4application Jun 24, 2025
8992ab3
Create Deploy.sh
Web4application Jun 24, 2025
48a5d8e
Update and rename bash.sh to actions/Deploy.sh
Web4application Jun 24, 2025
eedb2a9
Update .env
Web4application Jun 24, 2025
0b33e01
Update README.md
Web4application Jun 24, 2025
d1f9971
Update Deploy.sh
Web4application Jun 24, 2025
9282184
Update Makefile
Web4application Jun 24, 2025
4aba3fe
Update README.md
Web4application Jun 24, 2025
8177a0a
Update Makefile
Web4application Jun 24, 2025
0774aa4
Update Makefile
Web4application Jun 24, 2025
fb70652
Create status.sh
Web4application Jun 24, 2025
b4f7e45
Create cleanup.sh
Web4application Jun 24, 2025
d00f550
Update Makefile
Web4application Jun 24, 2025
4bf7b84
Update Makefile
Web4application Jun 24, 2025
6ade98f
Create docker-compose up
Web4application Oct 16, 2025
161c453
Update ai-code-review.yml
Web4application Oct 16, 2025
2c31dde
Rename ai_code_reviewer.yml to .github/workflows/ai_code_reviewer.yml
Web4application Oct 16, 2025
dcc6fc7
Update and rename main.jsx to main.js
Web4application Oct 16, 2025
eea81d3
Create main.py
Web4application Oct 16, 2025
1277fe0
Delete backend/llm/__init__.py
Web4application Oct 16, 2025
43b1eb2
Delete backend/llm/Dd
Web4application Oct 16, 2025
7a1cca9
Update and rename nginx.conf to Nginx/nginx.conf
Web4application Oct 31, 2025
6d85c04
Update nginx.conf
Web4application Oct 31, 2025
47ea531
Update README.md
Web4application Oct 31, 2025
dfe45bf
Update README.md
Web4application Oct 31, 2025
f971135
Update README.md
Web4application Oct 31, 2025
3474bed
Update and rename README.md to README.md.rst
Web4application Oct 31, 2025
8ea0b32
Rename README.md.rst to README.rs.md
Web4application Oct 31, 2025
f98d457
Update and rename README.rs.md to Main.rs
Web4application Oct 31, 2025
4a2fb18
Create README.md
Web4application Oct 31, 2025
5d86e6e
Update and rename Docs/generate_docs.py to README.md
Web4application Oct 31, 2025
00fad2d
Rename docs/index.html to index.html
Web4application Nov 1, 2025
a9a9738
Update and rename Docs/createEnclovAppWithLLM.py to envlov.ai/src/cre…
Web4application Nov 1, 2025
ace45e7
Update and rename index.rs to Index.rst
Web4application Nov 1, 2025
698d1ce
Update README.md
Web4application Nov 1, 2025
b414447
Update README.md
Web4application Nov 1, 2025
c464a3f
Update and rename Docs/createEnclovAppWithLLM/src/Index.rst to Docs/c…
Web4application Nov 1, 2025
854e0c0
Update and rename README.md to index.py
Web4application Nov 1, 2025
7d347b3
Rename index.html to Cli/index.html
Web4application Nov 1, 2025
36af707
Update and rename register_webhook.py to src/Page/register-webhook/in…
Web4application Nov 1, 2025
93e5e69
Update and rename src/Page/register-webhook/index.rs to _site/registe…
Web4application Nov 1, 2025
392ca69
Update and rename _site/register-webhook/index.md to app/src/register…
Web4application Nov 1, 2025
c58f2f1
Merge pull request #19 from Web4application/Web4application-patch-8
Web4application Nov 1, 2025
9d22a8b
Create websql.js
Web4application Nov 1, 2025
6ca1b65
Create localstorage.js
Web4application Nov 1, 2025
4f1a536
Create indexeddb.js
Web4application Nov 1, 2025
3b6249d
Update scripts.js
Web4application Nov 1, 2025
1e31c56
Create __init_file__est.min.js
Web4application Nov 1, 2025
686bf43
Update and rename Main.rs to docs/Index.html
Web4application Nov 1, 2025
d1233d7
Rename index.html to index.html
Web4application Nov 1, 2025
6cad322
Create index.min.js
Web4application Nov 1, 2025
bc5a773
Update index.html
Web4application Nov 1, 2025
bfb2560
Update and rename index.py to indexeddb
Web4application Nov 1, 2025
79c129a
Update and rename indexeddb to script.js
Web4application Nov 1, 2025
30aba01
Update and rename script.js to core/indexeddb/script.min.js
Web4application Nov 1, 2025
9f13deb
Create drivers
Web4application Nov 1, 2025
8b1e041
Create index.html
Web4application Nov 1, 2025
fbd0719
Rename Index.html to Index.html
Web4application Nov 1, 2025
2736b7d
Rename analyze-code.py to Docs/analyze-code.py
Web4application Nov 1, 2025
ad9bab1
Rename actions/docker-ci.yml to .github/workflows/docker-ci.yml
Web4application Nov 1, 2025
82c6119
Rename github_model_client.py to AI/chat/github_model_client.py
Web4application Nov 1, 2025
62f4e24
Update index.html
Web4application Nov 1, 2025
f1a9961
Rename github_model_client.py to github_model_client.js
Web4application Nov 1, 2025
0012607
Update and rename github_model_client.js to github_model_client.py
Web4application Nov 1, 2025
67b272e
Rename AI/scripts/github_model_client.py to Cli/main.js
Web4application Nov 1, 2025
aa34220
Create main.js
Web4application Nov 1, 2025
7e18b4d
Update and rename .env to .env.local
Web4application Nov 1, 2025
485c0c4
Update .gitignore
Web4application Nov 1, 2025
a39e885
Create .bashmainrpc
Web4application Nov 1, 2025
e560629
Update and rename .bash_main to .bashrpc
Web4application Nov 1, 2025
ee0f85c
Update .bashmainrpc
Web4application Nov 1, 2025
4d4a3a9
Rename .github/ai-code-review.yml to .github/workflows/ai-code-review…
Web4application Nov 1, 2025
2f43c83
Rename .github/workflows/ai_code_reviewer.yml to actions/ai_code_revi…
Web4application Nov 1, 2025
8db1806
Update and rename .env.local to .env
Web4application Nov 1, 2025
627c5ba
Update ai-code-review.yml
Web4application Nov 1, 2025
ffc9ced
Update ci_cd_ai_analysis.yml
Web4application Nov 1, 2025
8f1b379
Rename actions/ci_cd_ai_analysis.yml to .github/workflows/_cd_ai_anal…
Web4application Nov 1, 2025
9b335d1
Update _cd_ai_analysis.yml
Web4application Nov 1, 2025
750702a
Update ai-code-review.yml
Web4application Nov 1, 2025
8166650
Update App.jsx
Web4application Nov 1, 2025
5667e75
Create enclov-ai-launch.md
Web4application Nov 6, 2025
274cc86
Create README.md
Web4application Nov 6, 2025
a32ec9b
Create enclov-ai-cinematic-launch.html
Web4application Nov 6, 2025
51552d6
Create Blog.html
Web4application Nov 6, 2025
1e780f6
Update index.html
Web4application Nov 6, 2025
8fb1f6c
Create about.html
Web4application Nov 6, 2025
d675f56
Create nextjs.yml
Web4application Nov 6, 2025
f529568
Rename EnclovAI.prompt.yml to EnclovAI.prompt.yaml
Web4application Nov 6, 2025
c18cde3
Update enclov-ai-full-pipeline.yml
Web4application Nov 6, 2025
229c117
Update and rename enclov-ai-full-pipeline.yml to enclov-ai-full-pipel…
Web4application Nov 6, 2025
0a8ecfb
Update model_config.py
Web4application Nov 6, 2025
0d37a25
Update .env
Web4application Nov 6, 2025
9f73759
Create CNAME
Web4application Nov 6, 2025
1c60f2b
Update CNAME
Web4application Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 42 additions & 0 deletions .bashmainrpc
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"
29 changes: 29 additions & 0 deletions .bashrpc
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
33 changes: 33 additions & 0 deletions .circleci/config.yml
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
12 changes: 12 additions & 0 deletions .devcontainer/Dockerfile
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
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
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"
}
22 changes: 22 additions & 0 deletions .dockerignore
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/
14 changes: 14 additions & 0 deletions .env
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
5 changes: 0 additions & 5 deletions .env.local

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/_cd_ai_analysis.yml
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 }}
22 changes: 22 additions & 0 deletions .github/workflows/ai-code-review.yml
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

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 3 months ago

To fix the problem, add a properly structured permissions block in the workflow configuration. You should place a permissions: 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 likely contents: read and possibly pull-requests: write. You must remove misplaced permission lines under the on: block and insert the permissions before the jobs: block.

Specifically:

  • Remove lines 6-8 (permission:, contents: read, pull-requests: write) under on:.
  • Add a root-level permissions: section before jobs:, with appropriate values:
    permissions:
      contents: read
      pull-requests: write
    

No additional imports or code changes are needed—just the correct YAML.

Suggested changeset 1
.github/workflows/ai-code-review.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/ai-code-review.yml b/.github/workflows/ai-code-review.yml
--- a/.github/workflows/ai-code-review.yml
+++ b/.github/workflows/ai-code-review.yml
@@ -3,7 +3,9 @@
 on:
   pull_request:
     types: [opened, synchronize, reopened]
-    permission:
+
+
+permissions:
   contents: read
   pull-requests: write
 
EOF
@@ -3,7 +3,9 @@
on:
pull_request:
types: [opened, synchronize, reopened]
permission:


permissions:
contents: read
pull-requests: write

Copilot is powered by AI and may make mistakes. Always verify output.

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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
27 changes: 0 additions & 27 deletions .github/workflows/ai_pr_review.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/ci_cd_ai_analysis.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/docker-ci.yml
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
Loading
Loading