Skip to content

Commit 7dc7df6

Browse files
committed
Fix onboarding experience
1 parent b2c90e2 commit 7dc7df6

17 files changed

Lines changed: 51 additions & 35 deletions

File tree

.cargo/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[build]
2-
rustc-wrapper = "sccache"
32
rustflags = ["-C", "force-frame-pointers=yes"]
43
rustdocflags = ["-D", "warnings"]
54

.cursorrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- When creating new files, ensure the appropriate SPDX license header is included.
88
- Prioritize workspace-level dependency management as outlined in the root configs.
99
- Maintain concise, friendly, and professional attitude when assisting with development tasks.
10-
- **CRITICAL**: AI agents MUST execute `pnpm -w fix` after EVERY modification of code or documentation, and before signaling completion, to ensure strict adherence to project standards (linting, formatting, license headers).
10+
- **CRITICAL**: AI agents MUST execute `mise run --force fix` after EVERY modification of code or documentation, and before signaling completion, to ensure strict adherence to project standards (linting, formatting, license headers).
1111
- Use `printf` instead of `echo` for shell commands to ensure portability and avoid issues with interpretation of escape sequences.
1212
- Use `jq` (for JSON) and `yq` (for YAML and TOML) instead of `grep`, `sed`, or `awk` when processing structured data.
1313

.github/actions/init-workflow/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ outputs:
2222
value: |
2323
{
2424
"CI": "true",
25+
"MISE_QUIET": "false",
2526
"CARGO_INCREMENTAL": "0",
2627
"CARGO_NET_GIT_FETCH_WITH_CLI": "true",
2728
"RUST_BACKTRACE": "1"

.github/workflows/regular.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
fetch-depth: 1
9595
persist-credentials: false
9696
- name: "Run zizmor"
97-
uses: "zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4" # v0.3.0
97+
uses: "zizmorcore/zizmor-action@3aa7e2f1ad15075829ef5158ee06938ae12e1769" # v0.4.0
9898
with:
9999
persona: "auditor"
100100
env:

.mise-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2026.1.3
1+
v2026.1.4

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
## Development Basics
44

5-
- **Task Runner**: Use **mise** for all tasks. Use `mise run --list` to see available tasks.
5+
- **Task Runner**: Use **mise** for all tasks. Use `mise run` to see available tasks.
66
- **Testing**: Use `mise run test` to run all checks (unit tests, doctests, and linter).
7-
- **Package Manager**: Use **pnpm** for Node.js dependencies. Do not use `npm` or `yarn`.
87

98
## Dependency Management
109

@@ -32,5 +31,5 @@ Keep all dependencies in the workspace root.
3231
Before submitting a pull request, ensure your code passes the project checks:
3332

3433
```bash
35-
mise run check
34+
mise run --force test
3635
```

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ resolver = "3"
88

99
[workspace.package]
1010
edition = "2024"
11-
version = "0.0.0"
1211
license = "Apache-2.0 OR MIT"
1312

1413
[profile.dev]

mise.toml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ env_file = ".env"
88
npm.package_manager = "pnpm"
99
rust.cargo_home = ".cache/native/cargo"
1010
rust.rustup_home = ".cache/native/rustup"
11+
quiet = true
1112

1213
[env]
1314
PYTHONUTF8 = "1"
1415
PYTHONWARNINGS = "ignore"
1516
SCCACHE_CACHE_SIZE = "1G"
17+
RUSTC_WRAPPER = "sccache"
18+
MISE_ACTIVE = "1"
1619

1720
# Cache directories
1821
CARGO_HOME = "{{ config_root }}/.cache/native/cargo"
@@ -107,24 +110,10 @@ hide = true
107110
env = { CI = "true", HUSKY = "1" }
108111
run = [
109112
"corepack enable pnpm",
110-
"pnpm install --frozen-lockfile --prefer-offline",
111-
{ task = "setup:playwright" },
113+
"pnpm install --frozen-lockfile",
112114
]
113115
sources = ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json", "packages/**/package.json"]
114116

115-
[tasks."setup:playwright"]
116-
description = "Install Playwright dependencies"
117-
hide = true
118-
usage = """
119-
arg "[env]" help="Environment name" env="MISE_ENV" default="native"
120-
"""
121-
run = """
122-
{%- if usage.env != "docker" -%}
123-
playwright install-deps
124-
{%- endif -%}
125-
"""
126-
sources = ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json"]
127-
128117
[tasks."setup:python"]
129118
description = "Setup Python environment with uv"
130119
hide = true
@@ -135,7 +124,7 @@ mise sync python --uv
135124
sources = ["pyproject.toml", "packages/**/pyproject.toml", "uv.lock"]
136125

137126
[tasks.setup]
138-
description = "Install all tools and dependencies"
127+
description = "Install all dependencies"
139128
depends = ["setup:rust", "setup:pnpm", "setup:python"]
140129

141130
# ============================================================================
@@ -402,7 +391,7 @@ run = [{ task = "check:pnpm-audit" }]
402391

403392
# --- Global check/fix tasks ---
404393
[tasks.check]
405-
description = "Run all checks"
394+
description = "Verify code quality"
406395
alias = "c"
407396
depends = [
408397
"check:ruff-lint",
@@ -425,7 +414,7 @@ depends = [
425414
]
426415

427416
[tasks.fix]
428-
description = "Run all fixes"
417+
description = "Auto-fix code issues"
429418
alias = "f"
430419
depends = [
431420
"fix:ruff-lint",
@@ -478,7 +467,7 @@ docker system prune -af
478467
"""
479468

480469
[tasks.clean]
481-
description = "Run all cleanup tasks"
470+
description = "Free up disk space"
482471
depends = ["clean:pnpm", "clean:cargo", "clean:rustup", "clean:docker"]
483472

484473
# ============================================================================
@@ -501,7 +490,7 @@ hide = true
501490
run = "uv lock --upgrade --dry-run"
502491

503492
[tasks.update]
504-
description = "Check for all updates"
493+
description = "Show available updates"
505494
alias = "u"
506495
depends = ["update:pnpm", "update:cargo", "update:uv"]
507496

@@ -533,7 +522,7 @@ hide = true
533522
run = "uv lock --upgrade"
534523

535524
[tasks.upgrade]
536-
description = "Apply all updates"
525+
description = "Apply available updates"
537526
depends = ["upgrade:pnpm", "upgrade:cargo", "upgrade:uv"]
538527

539528
# ============================================================================
@@ -573,7 +562,7 @@ run = """
573562
"""
574563

575564
[tasks.docker]
576-
description = "Enter docker dev environment"
565+
description = "Open Docker dev shell"
577566
alias = "d"
578567
usage = """
579568
arg "[mode]" help="Docker mode" default="proxied" { choices "transparent" "proxied" }
@@ -674,7 +663,7 @@ run = "pnpm --filter node-reqwest --if-present run build"
674663
sources = ["packages/{core,meta,node}/**/*", "Cargo.{toml,lock}"]
675664

676665
[tasks.build]
677-
description = "Build all packages"
666+
description = "Compile all packages"
678667
alias = "b"
679668
depends = ["build:core", "build:meta", "build:node"]
680669

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"name": "workspace",
44
"type": "module",
55
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48",
6+
"engines": {
7+
"node": ">=22.19.1"
8+
},
69
"devDependencies": {
710
"@google/gemini-cli": "catalog:",
811
"@playwright/test": "catalog:",
@@ -15,7 +18,10 @@
1518
"vitest": "catalog:"
1619
},
1720
"scripts": {
18-
"prepare": "husky"
21+
"preinstall": "rustup show",
22+
"postinstall": "node ./scripts/setup-playwright.ts",
23+
"prepare": "husky",
24+
"test": "pnpm --recursive --if-present run test"
1925
},
2026
"pnpm": {
2127
"overrides": {

packages/core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "core"
33
edition.workspace = true
4-
version.workspace = true
54
license.workspace = true
65

76
[lints]

0 commit comments

Comments
 (0)