diff --git a/.agents/skills/deploy-vps-akamai/SKILL.md b/.agents/skills/deploy-vps-akamai/SKILL.md deleted file mode 100644 index a0f0cd25c6..0000000000 --- a/.agents/skills/deploy-vps-akamai/SKILL.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -name: deploy-vps-akamai-cx -description: Deploy the latest OmniRoute code to the Akamai VPS (69.164.221.35) ---- - -# Deploy to Akamai VPS Workflow - -Deploy OmniRoute to the Akamai VPS using `npm pack + scp` + PM2. - -## Codex Execution Notes - -- Treat `// turbo` / `// turbo-all` as instructions to use `multi_tool_use.parallel` only for independent commands. Do not parallelize dependent build, copy, install, restart, and verification steps. -- Report each remote result explicitly before finishing. - -**Akamai VPS:** `69.164.221.35` -**Process manager:** PM2 (`omniroute`) -**Port:** `20128` - -## Steps - -### 1. Build + pack locally - -// turbo - -```bash -cd /home/diegosouzapw/dev/proxys/OmniRoute && rm -f omniroute-*.tgz && rm -rf .next/cache app/.next/cache && npm run build:cli && rm -rf app/logs app/coverage app/.git app/.app-build-backup* && npm pack --ignore-scripts -``` - -### 2. Copy to Akamai VPS and install - -// turbo-all - -```bash -scp omniroute-*.tgz root@69.164.221.35:/tmp/ -``` - -```bash -ssh root@69.164.221.35 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Akamai done'" -``` - -### 3. Verify the deployment - -```bash -curl -s -o /dev/null -w 'AKAMAI HTTP %{http_code}\n' http://69.164.221.35:20128/ -``` diff --git a/.agents/skills/deploy-vps-both/SKILL.md b/.agents/skills/deploy-vps-both/SKILL.md deleted file mode 100644 index 867fba8f9a..0000000000 --- a/.agents/skills/deploy-vps-both/SKILL.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: deploy-vps-both-cx -description: Deploy the latest OmniRoute code to BOTH the Akamai VPS and the Local VPS ---- - -# Deploy to VPS (Both) Workflow - -Deploy OmniRoute to the production VPSs using `npm pack + scp` + PM2. - -**Akamai VPS:** `69.164.221.35` -**Local VPS:** `192.168.0.15` -**Process manager:** PM2 (`omniroute`) -**Port:** `20128` -**PM2 entry:** `/usr/lib/node_modules/omniroute/app/server.js` - -> [!IMPORTANT] -> The npm registry rejects packages > 100MB, so deployment uses **npm pack + scp**. - -## Codex Execution Notes - -- Treat `// turbo` / `// turbo-all` as instructions to use `multi_tool_use.parallel` only for independent commands. -- Build/package once first. After the artifact exists, copy/install/verify on Akamai and Local may run in parallel if they do not depend on each other. -- Report each VPS result explicitly before finishing. - -## Steps - -### 1. Build + pack locally - -// turbo - -```bash -cd /home/diegosouzapw/dev/proxys/OmniRoute && rm -f omniroute-*.tgz && rm -rf .next/cache app/.next/cache && npm run build:cli && rm -rf app/logs app/coverage app/.git app/.app-build-backup* && npm pack --ignore-scripts -``` - -### 2. Copy to both VPS and install - -// turbo-all - -```bash -scp omniroute-*.tgz root@69.164.221.35:/tmp/ && scp omniroute-*.tgz root@192.168.0.15:/tmp/ -``` - -```bash -ssh root@69.164.221.35 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Akamai done'" -``` - -```bash -ssh root@192.168.0.15 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Local done'" -``` - -### 3. Verify the deployment - -```bash -curl -s -o /dev/null -w 'AKAMAI HTTP %{http_code}\n' http://69.164.221.35:20128/ -curl -s -o /dev/null -w 'LOCAL HTTP %{http_code}\n' http://192.168.0.15:20128/ -``` diff --git a/.agents/skills/generate-release/SKILL.md b/.agents/skills/generate-release/SKILL.md index 6632c2a434..1c27a4e933 100644 --- a/.agents/skills/generate-release/SKILL.md +++ b/.agents/skills/generate-release/SKILL.md @@ -296,24 +296,11 @@ Normally handled by CI, but if manual publish is required: npm publish ``` -### 16. Deploy to AKAMAI VPS (Production) - -Now that the release is officially cut, deploy it to the Akamai VPS. - -```bash -# Deploy to AKAMAI VPS (69.164.221.35) -scp omniroute-*.tgz root@69.164.221.35:/tmp/ -ssh root@69.164.221.35 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Akamai done'" - -# Verify -curl -s -o /dev/null -w "AKAMAI: HTTP %{http_code}\n" http://69.164.221.35:20128/ -``` - ## Phase 4: Release Monitoring & Artifact Validation > After triggering the official release, actively monitor the CI pipelines until all artifacts are successfully generated. If any pipeline fails, stop and apply the necessary corrections before continuing. -### 18. Monitor CI Pipelines +### 16. Monitor CI Pipelines Wait for and verify the successful completion of the following automated jobs: @@ -334,7 +321,7 @@ gh run watch npm info omniroute version ``` -### 19. Handle Failures (If Any) +### 17. Handle Failures (If Any) If a workflow fails: @@ -342,7 +329,7 @@ If a workflow fails: - Apply the fix on the `main` branch. - If necessary, re-trigger the workflow using `gh workflow run --repo diegosouzapw/OmniRoute --ref v3.x.y` -### 20. Preserve release branch +### 18. Preserve release branch ```bash # Branch is kept for historical purposes. Do not delete. diff --git a/.agents/workflows/deploy-vps-akamai-ag.md b/.agents/workflows/deploy-vps-akamai-ag.md deleted file mode 100644 index b25ae3cd99..0000000000 --- a/.agents/workflows/deploy-vps-akamai-ag.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -description: Deploy the latest OmniRoute code to the Akamai VPS (69.164.221.35) ---- - -# Deploy to Akamai VPS Workflow - -Deploy OmniRoute to the Akamai VPS using `npm pack + scp` + PM2. - -**Akamai VPS:** `69.164.221.35` -**Process manager:** PM2 (`omniroute`) -**Port:** `20128` - -## Steps - -### 1. Build + pack locally - -// turbo - -```bash -cd /home/diegosouzapw/dev/proxys/OmniRoute && rm -f omniroute-*.tgz && rm -rf .next/cache app/.next/cache && npm run build:cli && rm -rf app/logs app/coverage app/.git app/.app-build-backup* && npm pack --ignore-scripts -``` - -### 2. Copy to Akamai VPS and install - -// turbo-all - -```bash -scp omniroute-*.tgz root@69.164.221.35:/tmp/ -``` - -```bash -ssh root@69.164.221.35 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Akamai done'" -``` - -### 3. Verify the deployment - -```bash -curl -s -o /dev/null -w 'AKAMAI HTTP %{http_code}\n' http://69.164.221.35:20128/ -``` diff --git a/.agents/workflows/deploy-vps-both-ag.md b/.agents/workflows/deploy-vps-both-ag.md deleted file mode 100644 index e1aa4d1def..0000000000 --- a/.agents/workflows/deploy-vps-both-ag.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -description: Deploy the latest OmniRoute code to BOTH the Akamai VPS and the Local VPS ---- - -# Deploy to VPS (Both) Workflow - -Deploy OmniRoute to the production VPSs using `npm pack + scp` + PM2. - -**Akamai VPS:** `69.164.221.35` -**Local VPS:** `192.168.0.15` -**Process manager:** PM2 (`omniroute`) -**Port:** `20128` -**PM2 entry:** `/usr/lib/node_modules/omniroute/app/server.js` - -> [!IMPORTANT] -> The npm registry rejects packages > 100MB, so deployment uses **npm pack + scp**. - -## Steps - -### 1. Build + pack locally - -// turbo - -```bash -cd /home/diegosouzapw/dev/proxys/OmniRoute && rm -f omniroute-*.tgz && rm -rf .next/cache app/.next/cache && npm run build:cli && rm -rf app/logs app/coverage app/.git app/.app-build-backup* && npm pack --ignore-scripts -``` - -### 2. Copy to both VPS and install - -// turbo-all - -```bash -scp omniroute-*.tgz root@69.164.221.35:/tmp/ && scp omniroute-*.tgz root@192.168.0.15:/tmp/ -``` - -```bash -ssh root@69.164.221.35 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Akamai done'" -``` - -```bash -ssh root@192.168.0.15 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Local done'" -``` - -### 3. Verify the deployment - -```bash -curl -s -o /dev/null -w 'AKAMAI HTTP %{http_code}\n' http://69.164.221.35:20128/ -curl -s -o /dev/null -w 'LOCAL HTTP %{http_code}\n' http://192.168.0.15:20128/ -``` diff --git a/.agents/workflows/generate-release-ag.md b/.agents/workflows/generate-release-ag.md index 8919137688..d6b3fc29c7 100644 --- a/.agents/workflows/generate-release-ag.md +++ b/.agents/workflows/generate-release-ag.md @@ -290,24 +290,11 @@ Normally handled by CI, but if manual publish is required: npm publish ``` -### 16. Deploy to AKAMAI VPS (Production) - -Now that the release is officially cut, deploy it to the Akamai VPS. - -```bash -# Deploy to AKAMAI VPS (69.164.221.35) -scp omniroute-*.tgz root@69.164.221.35:/tmp/ -ssh root@69.164.221.35 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Akamai done'" - -# Verify -curl -s -o /dev/null -w "AKAMAI: HTTP %{http_code}\n" http://69.164.221.35:20128/ -``` - ## Phase 4: Release Monitoring & Artifact Validation > After triggering the official release, actively monitor the CI pipelines until all artifacts are successfully generated. If any pipeline fails, stop and apply the necessary corrections before continuing. -### 18. Monitor CI Pipelines +### 16. Monitor CI Pipelines Wait for and verify the successful completion of the following automated jobs: @@ -328,7 +315,7 @@ gh run watch npm info omniroute version ``` -### 19. Handle Failures (If Any) +### 17. Handle Failures (If Any) If a workflow fails: @@ -336,7 +323,7 @@ If a workflow fails: - Apply the fix on the `main` branch. - If necessary, re-trigger the workflow using `gh workflow run --repo diegosouzapw/OmniRoute --ref v3.x.y` -### 20. Preserve release branch +### 18. Preserve release branch ```bash # Branch is kept for historical purposes. Do not delete. diff --git a/electron/package.json b/electron/package.json index af5500818a..e394b07676 100644 --- a/electron/package.json +++ b/electron/package.json @@ -25,16 +25,15 @@ "pack": "npm run prepare:bundle && electron-builder --dir" }, "dependencies": { + "better-sqlite3": "^12.10.0", "electron-updater": "^6.8.6" }, - "optionalDependencies": { - "better-sqlite3": "^12.10.0" - }, "devDependencies": { - "electron": "^42.2.0", + "electron": "^41.2.0", "electron-builder": "^26.11.0" }, "overrides": { + "@xmldom/xmldom": "^0.9.10", "plist": "^4.0.0" }, "build": {