Skip to content

Commit 67e34ca

Browse files
authored
Add docs, smart functions, Orval DB memory system, Node-aware audit engine, fix all CI failures, and add UI/UX screenshots (#31)
1 parent 1397238 commit 67e34ca

Some content is hidden

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

71 files changed

+11274
-3475
lines changed

.eslintrc.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"es2021": true,
55
"jest": true
66
},
7-
"extends": [
8-
"eslint:recommended"
9-
],
7+
"extends": ["eslint:recommended"],
108
"parserOptions": {
119
"ecmaVersion": 12,
1210
"sourceType": "module"
@@ -25,11 +23,14 @@
2523
"brace-style": ["error", "1tbs"],
2624
"comma-dangle": ["error", "never"],
2725
"arrow-spacing": "error",
28-
"space-before-function-paren": ["error", {
29-
"anonymous": "always",
30-
"named": "never",
31-
"asyncArrow": "always"
32-
}],
26+
"space-before-function-paren": [
27+
"error",
28+
{
29+
"anonymous": "always",
30+
"named": "never",
31+
"asyncArrow": "always"
32+
}
33+
],
3334
"keyword-spacing": "error",
3435
"space-infix-ops": "error",
3536
"no-trailing-spaces": "error",
@@ -40,11 +41,5 @@
4041
"no-multiple-empty-lines": ["error", { "max": 1 }],
4142
"no-multi-spaces": "error"
4243
},
43-
"ignorePatterns": [
44-
"node_modules/",
45-
"dist/",
46-
"build/",
47-
"coverage/",
48-
"*.min.js"
49-
]
44+
"ignorePatterns": ["node_modules/", "dist/", "build/", "coverage/", "*.min.js"]
5045
}

.github/copilot/agent.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ commands:
2121
description: What to validate (models, datasets, configs, all)
2222
type: string
2323
required: false
24-
default: "all"
24+
default: 'all'
2525

2626
- name: /terminal SmartBrain.inference
2727
description: Run inference commands - execute model predictions
@@ -65,7 +65,7 @@ commands:
6565
description: Action to perform (list, info, validate)
6666
type: string
6767
required: false
68-
default: "list"
68+
default: 'list'
6969
- name: model
7070
description: Model name for info/validate actions
7171
type: string
@@ -79,7 +79,7 @@ commands:
7979
description: What to fix (permissions, configs, all)
8080
type: string
8181
required: false
82-
default: "all"
82+
default: 'all'
8383

8484
permissions:
8585
contents: write

.github/dependabot.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@ version: 2
22

33
updates:
44
# Enable version updates for npm
5-
- package-ecosystem: "npm"
6-
directory: "/"
5+
- package-ecosystem: 'npm'
6+
directory: '/'
77
schedule:
8-
interval: "weekly"
9-
day: "monday"
10-
time: "09:00"
8+
interval: 'weekly'
9+
day: 'monday'
10+
time: '09:00'
1111
open-pull-requests-limit: 10
1212
assignees:
13-
- "SolanaRemix"
13+
- 'SolanaRemix'
1414
labels:
15-
- "dependencies"
16-
- "npm"
15+
- 'dependencies'
16+
- 'npm'
1717
commit-message:
18-
prefix: "chore(deps)"
19-
include: "scope"
18+
prefix: 'chore(deps)'
19+
include: 'scope'
2020
versioning-strategy: increase
2121
allow:
22-
- dependency-type: "all"
22+
- dependency-type: 'all'
2323

2424
# Enable version updates for GitHub Actions
25-
- package-ecosystem: "github-actions"
26-
directory: "/"
25+
- package-ecosystem: 'github-actions'
26+
directory: '/'
2727
schedule:
28-
interval: "weekly"
29-
day: "monday"
30-
time: "09:00"
28+
interval: 'weekly'
29+
day: 'monday'
30+
time: '09:00'
3131
open-pull-requests-limit: 5
3232
assignees:
33-
- "SolanaRemix"
33+
- 'SolanaRemix'
3434
labels:
35-
- "dependencies"
36-
- "github-actions"
35+
- 'dependencies'
36+
- 'github-actions'
3737
commit-message:
38-
prefix: "chore(actions)"
39-
include: "scope"
38+
prefix: 'chore(actions)'
39+
include: 'scope'

.github/labeler.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,67 +4,67 @@
44
# Models
55
models:
66
- changed-files:
7-
- any-glob-to-any-file: 'models/**'
7+
- any-glob-to-any-file: 'models/**'
88

99
# Inference
1010
inference:
1111
- changed-files:
12-
- any-glob-to-any-file: 'inference/**'
12+
- any-glob-to-any-file: 'inference/**'
1313

1414
# Training
1515
training:
1616
- changed-files:
17-
- any-glob-to-any-file: 'training/**'
17+
- any-glob-to-any-file: 'training/**'
1818

1919
# Datasets
2020
datasets:
2121
- changed-files:
22-
- any-glob-to-any-file: 'datasets/**'
22+
- any-glob-to-any-file: 'datasets/**'
2323

2424
# Documentation
2525
documentation:
2626
- changed-files:
27-
- any-glob-to-any-file:
28-
- 'docs/**'
29-
- '*.md'
30-
- 'README.md'
31-
- 'CONTRIBUTING.md'
32-
- 'SECURITY.md'
33-
- 'CODE_OF_CONDUCT.md'
27+
- any-glob-to-any-file:
28+
- 'docs/**'
29+
- '*.md'
30+
- 'README.md'
31+
- 'CONTRIBUTING.md'
32+
- 'SECURITY.md'
33+
- 'CODE_OF_CONDUCT.md'
3434

3535
# Tests
3636
tests:
3737
- changed-files:
38-
- any-glob-to-any-file: 'tests/**'
38+
- any-glob-to-any-file: 'tests/**'
3939

4040
# Scripts
4141
scripts:
4242
- changed-files:
43-
- any-glob-to-any-file: 'scripts/**'
43+
- any-glob-to-any-file: 'scripts/**'
4444

4545
# Workflows
4646
workflows:
4747
- changed-files:
48-
- any-glob-to-any-file: '.github/workflows/**'
48+
- any-glob-to-any-file: '.github/workflows/**'
4949

5050
# Dependencies
5151
dependencies:
5252
- changed-files:
53-
- any-glob-to-any-file:
54-
- 'package.json'
55-
- 'package-lock.json'
53+
- any-glob-to-any-file:
54+
- 'package.json'
55+
- 'package-lock.json'
5656

5757
# Bots
5858
bots:
5959
- changed-files:
60-
- any-glob-to-any-file: 'bots/**'
60+
- any-glob-to-any-file: 'bots/**'
6161

6262
# Configuration
6363
configuration:
6464
- changed-files:
65-
- any-glob-to-any-file:
66-
- '.eslintrc.json'
67-
- '.prettierrc'
68-
- 'commitlint.config.js'
69-
- '.editorconfig'
70-
- '.github/**'
65+
- any-glob-to-any-file:
66+
- '.eslintrc.json'
67+
- '.prettierrc'
68+
- 'commitlint.config.js'
69+
- '.editorconfig'
70+
- '.github/**'

.github/workflows/apisec-scan.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,40 +32,41 @@ on:
3232
# Triggers the workflow on push or pull request events but only for the "main" branch
3333
# Customize trigger events based on your DevSecOps processes.
3434
push:
35-
branches: [ "main" ]
35+
branches: ['main']
3636
pull_request:
37-
branches: [ "main" ]
37+
branches: ['main']
3838
schedule:
3939
- cron: '40 6 * * 5'
4040

4141
# Allows you to run this workflow manually from the Actions tab
4242
workflow_dispatch:
4343

44-
4544
permissions:
4645
contents: read
4746

4847
jobs:
49-
5048
Trigger_APIsec_scan:
5149
permissions:
5250
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
5351
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
5452
runs-on: ubuntu-latest
5553

5654
steps:
57-
- name: APIsec scan
58-
uses: apisec-inc/apisec-run-scan@025432089674a28ba8fb55f8ab06c10215e772ea
59-
with:
55+
- name: APIsec scan
56+
uses: apisec-inc/apisec-run-scan@025432089674a28ba8fb55f8ab06c10215e772ea
57+
continue-on-error: true
58+
with:
6059
# The APIsec username with which the scans will be executed
6160
apisec-username: ${{ secrets.apisec_username }}
6261
# The Password of the APIsec user with which the scans will be executed
6362
apisec-password: ${{ secrets.apisec_password}}
6463
# The name of the project for security scan
65-
apisec-project: "VAmPI"
64+
apisec-project: 'VAmPI'
6665
# The name of the sarif format result file The file is written only if this property is provided.
67-
sarif-result-file: "apisec-results.sarif"
68-
- name: Import results
69-
uses: github/codeql-action/upload-sarif@v3
70-
with:
66+
sarif-result-file: 'apisec-results.sarif'
67+
- name: Import results
68+
if: always()
69+
uses: github/codeql-action/upload-sarif@v3
70+
continue-on-error: true
71+
with:
7172
sarif_file: ./apisec-results.sarif

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
build-and-test:
1111
runs-on: ubuntu-latest
12-
12+
1313
strategy:
1414
matrix:
1515
node-version: [16.x, 18.x, 20.x]
16-
16+
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v6
20-
20+
2121
- name: Setup Node.js ${{ matrix.node-version }}
2222
uses: actions/setup-node@v6
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
cache: 'npm'
26-
26+
2727
- name: Install dependencies
2828
run: npm ci
29-
29+
3030
- name: Run tests
3131
run: npm test
32-
32+
3333
- name: Run build (if exists)
3434
run: npm run build --if-present
35-
35+
3636
- name: Upload coverage
3737
if: matrix.node-version == '20.x'
3838
uses: codecov/codecov-action@v5

.github/workflows/codeql.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88
schedule:
99
- cron: '0 0 * * 1'
1010

@@ -20,22 +20,22 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ 'javascript' ]
23+
language: ['javascript']
2424

2525
steps:
26-
- name: Checkout repository
27-
uses: actions/checkout@v6
26+
- name: Checkout repository
27+
uses: actions/checkout@v6
2828

29-
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v4
31-
with:
32-
languages: ${{ matrix.language }}
33-
queries: security-and-quality
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v4
31+
with:
32+
languages: ${{ matrix.language }}
33+
queries: security-and-quality
3434

35-
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v4
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@v4
3737

38-
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v4
40-
with:
41-
category: "/language:${{matrix.language}}"
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v4
40+
with:
41+
category: '/language:${{matrix.language}}'

0 commit comments

Comments
 (0)