Skip to content

Commit 9d2f08f

Browse files
author
MStarRobotics
committed
Revert "sys(sentinel): Project integrity restored; autonomous quality framework engaged"
This reverts commit 43df637.
1 parent 2d9dec8 commit 9d2f08f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3685
-9530
lines changed

.dependency-cruiser.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

.env.example

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
1-
# Firebase - get these from your Firebase project console
1+
VITE_GEMINI_API_KEY=YOUR_GEMINI_API_KEY
2+
VITE_PUBLIC_ONCHAINKIT_API_KEY=YOUR_CDP_CLIENT_KEY
3+
VITE_BASE_RPC_URL=https://sepolia.base.org
4+
VITE_FRACTAL_RECIPE_CONTRACT_ADDRESS=0xYourDeployedRegistryAddress
5+
VITE_FRACTAL_RECIPE_DEPLOY_BLOCK=0
6+
7+
# Optional: Firebase client (enable if you want popup auth or phone/GitHub/anonymous flows)
28
VITE_FIREBASE_API_KEY=
39
VITE_FIREBASE_AUTH_DOMAIN=
410
VITE_FIREBASE_PROJECT_ID=
511
VITE_FIREBASE_STORAGE_BUCKET=
612
VITE_FIREBASE_MESSAGING_SENDER_ID=
7-
VITE_FIREBASE_APP_ID=
13+
VITE_FIREBASE_APP_ID=
14+
VITE_FIREBASE_MEASUREMENT_ID=
15+
# reCAPTCHA v2 site key for phone auth (invisible or container-based)
16+
VITE_FIREBASE_RECAPTCHA_SITE_KEY=
17+
18+
# Google Identity (frontend sign-in)
19+
VITE_GOOGLE_OAUTH_CLIENT_ID=
20+
21+
# Backend / server configuration
22+
PORT=4000
23+
JWT_SECRET=update-this-secret
24+
JWT_TTL_SECONDS=3600
25+
CORS_ORIGIN=http://localhost:5173
26+
FIREBASE_PROJECT_ID=your-firebase-project-id
27+
FIREBASE_CLIENT_EMAIL=[email protected]
28+
# Remember to escape newlines as \n in the private key value when storing it in .env
29+
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_CONTENTS\n-----END PRIVATE KEY-----\n"
30+
GOOGLE_OAUTH_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com
31+
# Optional: GitHub Webhook secret for verifying signatures
32+
GITHUB_WEBHOOK_SECRET=your-webhook-secret
33+
PASSWORD_MIN_LENGTH=10
34+
PWD_RESET_OTP_TTL_MS=600000
35+
PWD_RESET_MAX_ATTEMPTS=5

.github/dependabot.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Integration & Security
1+
name: Continuous Integration
22

33
on:
44
push:
@@ -10,10 +10,8 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
build-and-scan:
13+
quality-gate:
1414
runs-on: ubuntu-latest
15-
permissions:
16-
security-events: write # for github/codeql-action/analyze to upload results
1715
steps:
1816
- name: Checkout repository
1917
uses: actions/checkout@v4
@@ -24,6 +22,18 @@ jobs:
2422
node-version: 20
2523
cache: npm
2624

25+
- name: Create env file for CI
26+
run: |
27+
cat <<'EOF' > .env
28+
PORT=4000
29+
JWT_SECRET=ci-secret
30+
JWT_TTL_SECONDS=3600
31+
CORS_ORIGIN=http://localhost:5173
32+
PASSWORD_MIN_LENGTH=10
33+
PWD_RESET_OTP_TTL_MS=600000
34+
PWD_RESET_MAX_ATTEMPTS=5
35+
EOF
36+
2737
- name: Install dependencies
2838
run: npm install
2939

@@ -35,23 +45,3 @@ jobs:
3545

3646
- name: Build
3747
run: npm run build
38-
env:
39-
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
40-
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN }}
41-
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID }}
42-
VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET }}
43-
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
44-
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
45-
VITE_GEMINI_API_KEY: ${{ secrets.VITE_GEMINI_API_KEY }}
46-
47-
- name: Run dependency audit
48-
run: npm audit --audit-level=high
49-
50-
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@v2
52-
with:
53-
languages: 'javascript, typescript'
54-
config-file: ./.github/codeql/codeql-config.yml
55-
56-
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@v2

.github/workflows/master-pipeline.yml

Lines changed: 0 additions & 111 deletions
This file was deleted.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Static Analysis
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: static-analysis-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
lint-and-typecheck:
18+
name: ESLint and TypeScript
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
cache: 'npm'
29+
30+
- name: Create CI .env
31+
run: |
32+
cat <<'EOF' > .env
33+
# Frontend (Vite)
34+
VITE_FIREBASE_API_KEY=
35+
VITE_FIREBASE_AUTH_DOMAIN=
36+
VITE_FIREBASE_PROJECT_ID=
37+
VITE_FIREBASE_STORAGE_BUCKET=
38+
VITE_FIREBASE_MESSAGING_SENDER_ID=
39+
VITE_FIREBASE_APP_ID=
40+
VITE_FIREBASE_MEASUREMENT_ID=
41+
VITE_GOOGLE_OAUTH_CLIENT_ID=
42+
VITE_GEMINI_API_KEY=
43+
VITE_PUBLIC_ONCHAINKIT_API_KEY=
44+
VITE_BASE_RPC_URL=https://sepolia.base.org
45+
VITE_FRACTAL_RECIPE_CONTRACT_ADDRESS=
46+
VITE_FRACTAL_RECIPE_DEPLOY_BLOCK=0
47+
48+
# Backend (server)
49+
PORT=4000
50+
JWT_SECRET=ci-secret
51+
JWT_TTL_SECONDS=3600
52+
CORS_ORIGIN=http://localhost:5173
53+
FIREBASE_PROJECT_ID=ci
54+
FIREBASE_CLIENT_EMAIL=
55+
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n\n-----END PRIVATE KEY-----\n"
56+
GOOGLE_OAUTH_CLIENT_ID=
57+
PASSWORD_MIN_LENGTH=10
58+
PWD_RESET_OTP_TTL_MS=600000
59+
PWD_RESET_MAX_ATTEMPTS=5
60+
WEBHOOK_SECRET=ci-webhook-secret
61+
EOF
62+
63+
- name: Install dependencies
64+
run: npm install
65+
66+
- name: Run ESLint
67+
run: npm run lint
68+
69+
- name: Type check
70+
run: npm run typecheck

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ lerna-debug.log*
99

1010
node_modules
1111
dist
12-
13-
# macOS
14-
.DS_Store
15-
16-
# Logs
17-
npm-debug.log*
18-
yarn-debug.log*
19-
yarn-error.log*
2012
dist-ssr
2113
*.local
2214
.env

.husky/pre-commit

Lines changed: 0 additions & 8 deletions
This file was deleted.

.markdownlint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)