Skip to content

Commit b2fbe70

Browse files
committed
update
1 parent bbd86fb commit b2fbe70

136 files changed

Lines changed: 26447 additions & 4176 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.{ts,tsx,js,jsx,mjs,cjs}]
12+
indent_size = 2
13+
14+
[*.{rs,toml}]
15+
indent_size = 4
16+
17+
[*.{py,pyi}]
18+
indent_size = 4
19+
20+
[*.yml]
21+
indent_size = 2
22+
23+
[*.md]
24+
trim_trailing_whitespace = false
25+
26+
[Makefile]
27+
indent_style = tab

.github/workflows/ci.yml

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,71 @@ on:
77
branches: [main, master]
88

99
jobs:
10-
test:
10+
rust-lint:
11+
name: rust lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/rust-toolchain@nightly
16+
components: clippy, rustfmt
17+
- uses: Swatinem/rust-cache@v2
18+
- name: Check formatting
19+
run: cargo fmt --all -- --check
20+
- name: Run clippy
21+
run: cargo clippy --all-features -- -D warnings
22+
23+
rust-test:
1124
name: test (${{ matrix.os }})
1225
runs-on: ${{ matrix.os }}
26+
needs: rust-lint
1327
strategy:
1428
fail-fast: false
1529
matrix:
1630
os: [ubuntu-latest, macos-latest]
1731
steps:
1832
- uses: actions/checkout@v4
19-
20-
- name: Install Rust (nightly)
21-
uses: dtolnay/rust-toolchain@nightly
22-
23-
- name: Cache cargo
24-
uses: Swatinem/rust-cache@v2
33+
- uses: dtolnay/rust-toolchain@nightly
34+
- uses: Swatinem/rust-cache@v2
2535
with:
2636
key: ${{ matrix.os }}
27-
2837
- name: Install system dependencies (linux)
2938
if: runner.os == 'Linux'
3039
run: |
3140
sudo apt-get update
3241
sudo apt-get install -y --no-install-recommends libssl-dev pkg-config libglib2.0-dev libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev libsoup-3.0-dev
33-
3442
- name: Install LLVM (macOS)
3543
if: runner.os == 'macOS'
3644
run: brew install llvm
37-
3845
- name: Run tests
3946
env:
4047
LIBCLANG_PATH: ${{ runner.os == 'macOS' && '/opt/homebrew/opt/llvm/lib' || '' }}
4148
run: cargo test --all-features
49+
50+
ts-lint-test:
51+
name: ts lint & test
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v4
55+
- uses: actions/setup-node@v4
56+
with:
57+
node-version: '20'
58+
- name: Install ai-agent dependencies
59+
run: npm ci
60+
working-directory: ai-agent/pardus-browser
61+
- name: Typecheck ai-agent
62+
run: npm run lint
63+
working-directory: ai-agent/pardus-browser
64+
- name: Test ai-agent
65+
run: npm test
66+
working-directory: ai-agent/pardus-browser
67+
68+
security-audit:
69+
name: security audit
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
- uses: dtolnay/rust-toolchain@nightly
74+
- name: Install cargo-audit
75+
run: cargo install cargo-audit
76+
- name: Run cargo audit
77+
run: cargo audit --ignore RUSTSEC-2024-0438

.gitignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/target
22
**/*.rs.bk
33
**/*.bak
4-
Cargo.lock
54
.DS_Store
65
**/.DS_Store
76

@@ -29,12 +28,20 @@ web/dist/
2928
ai-agent/pardus-browser/node_modules/
3029
ai-agent/pardus-browser/dist/
3130

32-
# Lockfiles
33-
**/package-lock.json
31+
# Lockfiles (committed for reproducibility)
32+
# If you need to regenerate: rm **/package-lock.json && npm install
3433

3534
.env
3635
.env.*
3736
!.env.example
3837

3938
# Research benchmark data
4039
research/
40+
bench-results/
41+
42+
# Tool caches
43+
.ruff_cache/
44+
45+
# AI coding assistant configs (local only)
46+
.opencode/
47+
.claude/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)