Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# 10 — Linters and read-only checks
# 20 — Project-level checks (vitest, coverage, ratchet)

exclude: ^(nemoclaw/dist/|nemoclaw/node_modules/|docs/_build/|\.venv/|uv\.lock$)
exclude: ^(nemoclaw/dist/|nemoclaw/node_modules/|docs/_build/|\.venv/)

# Stage-less hooks run only while creating a commit. Hooks for later Git
# lifecycle stages declare their own `stages` explicitly below.
Expand Down Expand Up @@ -126,7 +126,7 @@ repos:
name: Biome lint fixes
entry: npx biome lint --write
language: system
files: ^(commitlint\.config\.js|bin/.*\.js|scripts/.*\.js|test/.*\.js|docs/_ext/.*\.js|.*\.ts)$
files: ^(commitlint\.config\.js|bin/.*\.js|scripts/.*\.js|test/.*\.js|.*\.ts)$
pass_filenames: true
priority: 6

Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ For shell scripts use `#` comments. For Markdown use HTML comments.

### No External Project Links

Do not add links to third-party code repositories, community collections, or unofficial resources. Links to official tool documentation (Node.js, Python, uv) are acceptable.
Do not add links to third-party code repositories, community collections, or unofficial resources. Links to official tool documentation (Node.js and Python) are acceptable.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Clarify the external-link exception.

CONTRIBUTING.md Line 351 also permits official documentation for dependencies and industry standards, so this narrower Node.js/Python wording may give agents and contributors contradictory guidance. Use the same allowlist in both files, or make the examples explicitly non-exhaustive.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` at line 156, Update the external-link guidance in AGENTS.md to
match the broader exception already permitted in CONTRIBUTING.md, including
official dependency documentation and industry standards; alternatively,
explicitly state that Node.js and Python are examples rather than an exhaustive
allowlist. Keep both documents consistent.

Source: Coding guidelines


## Git Hooks (prek)

Expand Down
10 changes: 4 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Install the following before you begin.
- Node.js 22.16+ and npm 10+
- Python 3.11+ (for documentation tooling)
- Docker (running)
- [uv](https://docs.astral.sh/uv/) (for Python dependency management — install with `curl -LsSf https://astral.sh/uv/install.sh | sh`, or `brew install uv` on macOS)
- [hadolint](https://github.com/hadolint/hadolint) (Dockerfile linter — `brew install hadolint` on macOS)

## Getting Started
Expand All @@ -82,7 +81,7 @@ From the repository root, prepare the checkout with one command:
./scripts/dev-setup.sh
```

The setup command installs repository-local dependencies, synchronizes the root Python environment, builds and type-checks the CLI and plugin, and installs prek hooks.
The setup command installs repository-local dependencies, verifies the available Python interpreter, builds and type-checks the CLI and plugin, and installs prek hooks.
It is safe to rerun and does not install host packages, change accounts or global Git configuration, accept licenses, manage credentials, or create a runtime sandbox.
Use `./scripts/dev-setup.sh --repair` to explicitly rerun the same repository-local repairs.

Expand Down Expand Up @@ -129,7 +128,6 @@ Use these commands when troubleshooting an individual setup step:
```bash
npm install --include=dev --ignore-scripts
npm --prefix nemoclaw install --include=dev --ignore-scripts
uv sync --python /path/to/python3.11-or-newer --no-python-downloads
npm run build:cli
npm --prefix nemoclaw run build
npm run typecheck:cli
Expand Down Expand Up @@ -263,11 +261,11 @@ The repository is organized as follows.
| Path | Purpose |
|------|---------|
| `nemoclaw/` | TypeScript plugin (Commander CLI, OpenClaw extension) |
| `nemoclaw-blueprint/` | Python blueprint for sandbox orchestration |
| `nemoclaw-blueprint/` | Blueprint definition and network policies |
| `bin/` | CLI entry point (`nemoclaw.js`) |
| `scripts/` | Install helpers and automation scripts |
| `test/` | Root-level integration tests |
| `docs/` | User-facing documentation (Fern MDX plus legacy MyST source during migration) |
| `docs/` | User-facing Fern MDX documentation |
| `fern/` | Fern site configuration, theme, and assets |

## Language Policy
Expand Down Expand Up @@ -350,7 +348,7 @@ If force-push is not allowed after an unverified commit is published, open a fre

Do not add links to third-party code repositories, community collections, or unofficial resources in documentation, README files, or code. This includes "awesome lists," community template repositories, wrapper projects, and similar community-maintained resources — regardless of popularity or utility.

Links to official documentation for tools we depend on (e.g., Node.js, Python, uv) and industry standards (e.g., Conventional Commits) are acceptable.
Links to official documentation for tools we depend on (e.g., Node.js and Python) and industry standards (e.g., Conventional Commits) are acceptable.

**Why:** External repositories are outside our control. They can change ownership, inject malicious content, or misrepresent an endorsement by NVIDIA. Keeping references within our own repo avoids these risks entirely.

Expand Down
17 changes: 1 addition & 16 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"scripts/**/*.js",
"scripts/**/*.mjs",
"test/**/*.js",
"docs/_ext/**/*.js",
"!dist",
"!nemoclaw/dist",
"!node_modules",
Expand Down Expand Up @@ -104,8 +103,7 @@
"scripts/**/*.mjs",
"test/**/*.js",
"test/credentials-shim.test.ts",
"test/runner-basic.test.ts",
"docs/_ext/**/*.js"
"test/runner-basic.test.ts"
],
"linter": {
"rules": {
Expand All @@ -115,19 +113,6 @@
}
}
},
{
"includes": ["docs/_ext/**/*.js"],
"formatter": {
"enabled": false
},
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": "off"
}
}
}
},
{
"includes": ["src/lib/actions/sandbox/status.ts", "src/lib/actions/sandbox/status-text.ts"],
"linter": {
Expand Down
3 changes: 1 addition & 2 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ To print the pinned Fern CLI version, run:
npm run docs:deps
```

To validate the Fern configuration and migrated MDX pages, run:
To validate the Fern configuration and MDX pages, run:

```bash
npm run docs
Expand Down Expand Up @@ -233,7 +233,6 @@ Remove them during review.

- Use tables for structured comparisons. Keep tables simple (no nested formatting).
- Use Fern callout components (`<Note>`, `<Tip>`, `<Warning>`) for callouts in MDX pages, not bold text.
- Use MyST admonitions (`:::{tip}`, `:::{note}`, `:::{warning}`) only in legacy `.md` pages that have not migrated yet.
- Avoid nested admonitions.
- Do not number section titles. Write "Deploy a Gateway" not "Section 1: Deploy a Gateway" or "Step 3: Verify."
- Do not use colons in titles. Write "Deploy and Manage Gateways" not "Gateways: Deploy and Manage."
Expand Down
48 changes: 0 additions & 48 deletions docs/_ext/json_output/__init__.py

This file was deleted.

Loading
Loading