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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 4 additions & 4 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bazel build configuration for the pi-natives NAPI addon pipeline.
# Bazel build configuration for the omp-natives NAPI addon pipeline.
# Cross targets, ISA variants, and release codegen are encoded in the
# //:natives-* addon targets (bazel/defs.bzl transition), so a bare
# `bazel build //:natives-<target>` is always release-grade.
Expand Down Expand Up @@ -51,11 +51,11 @@ build:macos --@rules_rust//rust/settings:extra_exec_rustc_flag=-Clink-arg=-Wl,-S


# --- Rust validation (replaces cargo clippy/nextest in CI) --------------------
# Mirrors cargo semantics: crates with `[lints] workspace = true` (pi-ast,
# pi-iso, pi-natives, pi-shell, pi-voice, pi-walker) get the strict workspace
# Mirrors cargo semantics: crates with `[lints] workspace = true` (omp-ast,
# omp-iso, omp-natives, omp-shell, omp-voice, omp-xfs) get the strict workspace
# policy
# (clippy-strict; bazel/clippy.bazelrc is generated from Cargo.toml); everything
# else gets default clippy + -Dwarnings (clippy). pi-builtins allows every
# else gets default clippy + -Dwarnings (clippy). omp-builtins allows every
# clippy group in its manifest (ported uutils/jaq code) while keeping
# rustc warnings at zero; the aspect ignores Cargo `[lints]`, so clippy-ported
# re-states those allows on top of -Dwarnings.
Expand Down
6 changes: 3 additions & 3 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# Doctests are NOT run by nextest (upstream limitation: they have no stable
# libtest-json interface). `scripts/run-rs-task.ts` pairs the nextest run with
# `cargo test --doc`, which runs every runnable doctest in the workspace's lib
# crates. Today that is tree-sitter-go's one example: pi-natives is a `cdylib`
# (rustdoc collects no doctests from it) and pi-builtins' examples are
# crates. Today that is tree-sitter-go's one example: omp-natives is a `cdylib`
# (rustdoc collects no doctests from it) and omp-builtins' examples are
# `ignore`d vendored uutils docs.

[profile.default]
Expand All @@ -26,7 +26,7 @@ slow-timeout = { period = "60s", terminate-after = 4 }
# The deep-chain walk tests build and delete a directory chain as deep as the
# host's path syscalls reach. That saturates the filesystem for as long as they
# run, which pushes tests elsewhere in the workspace past their own latency
# assertions (pi-natives' OAuth callback wake, pi-shell's TERM-trap cleanup).
# assertions (omp-natives' OAuth callback wake, omp-shell's TERM-trap cleanup).
# Each takes every test thread, so it runs alone.
[[profile.default.overrides]]
filter = 'test(deeper_than_the_stack) + test(stopping_at_the_leaf_of_a_deep_ignore_chain_returns)'
Expand Down
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ packages/catalog/src/models.json binary
packages/catalog/src/compat/rules.json binary
packages/tui/src/theme/defaults.json binary

# 4.7 KB wasm grammar the pi-ast tests load; stays out of LFS so plain
# 4.7 KB wasm grammar the omp-ast tests load; stays out of LFS so plain
# checkouts (CI included) get the real bytes.
crates/pi-ast/src/language/testdata/*.wasm -filter binary
crates/ast/src/language/testdata/*.wasm -filter binary

# Generated tree-sitter parser: regenerate from grammar.js (see its README.md).
crates/vendor/tree-sitter-go/src/parser.c linguist-generated
Expand Down
2 changes: 1 addition & 1 deletion .omp/skills/tool-prompt-optimization/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Structural code search via native ast-grep AST matching.
Bucket each real-prompt line:

- **Prune candidate:** stable across samples **and** models; schema restatement — parameter names/types, `required`, field-description value examples, stated clamp ranges.
- **Keep:** no model recovers it — defaults/direction (`gitignore` default true); routing/escalation (`NEVER` shell out to `find`/`fd` → use this tool; broad exploration → `Task` subagent); exact output shape (mtime sort, grouping, `artifact://` truncation); worked anti-patterns; type-invisible constraints (AST metavariable grammar, C++ trailing `;`).
- **Keep:** no model recovers it — defaults/direction (`gitignore` default true); routing/escalation (`NEVER` shell out to `find`/`fd` → use this tool; broad exploration → `Task` subagent); exact output shape (mtime sort, grouping, `local://N.log` truncation); worked anti-patterns; type-invisible constraints (AST metavariable grammar, C++ trailing `;`).

One sample: noise. Stable cross-sample/model overlap is only a candidate; history must clear it. MUST NOT delete on inferability alone.

Expand Down
2 changes: 1 addition & 1 deletion .omp/tools/tui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ const factory = (omp: ToolHost) => {
};
}
// ConPTY emits ESC[6n on startup and the native layer pre-answers it
// (crates/pi-natives/src/pty.rs, "ConPTY sends ESC[6n"). Drop only the
// (crates/natives/src/pty.rs, "ConPTY sends ESC[6n"). Drop only the
// screen's duplicate reply to that first query; keep later cursor
// reports and any other replies sharing the same output buffer.
let hostCursorHandshake = process.platform === "win32";
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This repo contains multiple packages, but **`packages/coding-agent/`** is the pr
|`packages/stats`|Local observability dashboard (`omp stats`)|
|`packages/omptype`|ArkType-compatible schema validation with a lazy JIT runtime|
|`packages/utils`|Shared utilities (logger, streams, temp files)|
|`crates/pi-natives`|Rust crate for performance-critical text/grep ops|
|`crates/natives`|Rust crate for performance-critical text/grep ops|

**Catalog import convention**: code in this repo imports catalog _values_ (bundled models, model-thinking helpers, identity, descriptors, model manager/cache) from `@oh-my-pi/pi-catalog/<module>` — never via `@oh-my-pi/pi-ai`. The pi-ai barrel re-exports only the model/effort _types_ its own signatures use (`Model`, `Api`, `ThinkingConfig`, `Effort`, …); type-only imports of those from `@oh-my-pi/pi-ai` are fine.

Expand Down Expand Up @@ -266,7 +266,7 @@ For the bash tool specifically:

- NEVER commit unless asked.
- Never use `tsc`/`npx tsc` — always `bun check`.
- Never run `cargo test` directly for Rust tests — use `bun run test:rs`. It runs `cargo nextest run` (config: `.config/nextest.toml`) followed by a `cargo test --doc` pass, because nextest does not execute doctests. The doctest pass runs every runnable doctest in the workspace's lib crates; today that is tree-sitter-go's one example (pi-natives is a `cdylib`, which rustdoc skips; pi-builtins' examples are `ignore`d vendored uutils docs).
- Never run `cargo test` directly for Rust tests — use `bun run test:rs`. It runs `cargo nextest run` (config: `.config/nextest.toml`) followed by a `cargo test --doc` pass, because nextest does not execute doctests. The doctest pass runs every runnable doctest in the workspace's lib crates; today that is tree-sitter-go's one example (omp-natives is a `cdylib`, which rustdoc skips; omp-builtins' examples are `ignore`d vendored uutils docs).
- `bun check`'s Rust half runs only when the branch changed a Rust-affecting file (`*.rs`, `crates/`, Cargo/toolchain files) since its merge base with `upstream/main` or `origin/main`, committed or not; it always runs in GitHub Actions, when that cannot be determined (e.g. shallow clone), or with `OMP_FORCE_RUST_TASKS=1`.
- Merge commits (maintainer merges of PRs) follow: `Merge PR #<number>: <conventional PR subject> (@<author>)` — e.g. `Merge PR #6386: feat(catalog): add native Meta Model API provider (@eggpeat)`.
## Rust Build Profiles
Expand Down
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ _ADDONS = {
[
native_addon(
name = "natives-" + target,
lib = "//crates/pi-natives:pi_natives",
lib = "//crates/natives:pi_natives",
out = out,
platform = platform,
)
Expand Down
Loading